本文整理汇总了C#中Com.Aote.ObjectTools.ObjectList类的典型用法代码示例。如果您正苦于以下问题:C# ObjectList类的具体用法?C# ObjectList怎么用?C# ObjectList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ObjectList类属于Com.Aote.ObjectTools命名空间,在下文中一共展示了ObjectList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: wc_UploadStringCompleted
void wc_UploadStringCompleted(object sender, UploadStringCompletedEventArgs e)
{
if (e.Error == null)
{
JsonArray items = JsonValue.Parse(e.Result) as JsonArray;
ObjectList list = new ObjectList();
list.EntityType = "T_INSPECTION_LINE";
foreach(JsonObject row in items)
{
GeneralObject go = new GeneralObject();
go.EntityType = "T_INSPECTION_LINE";
go.SetPropertyValue("precaution", row["precaution"], true);
go.SetPropertyValue("road", row["road"], true);
go.SetPropertyValue("unit_name", row["unit_name"], true);
go.SetPropertyValue("cus_dom", row["cus_dom"], true);
go.SetPropertyValue("cus_dy", row["cus_dy"], true);
go.SetPropertyValue("cus_floor", row["cus_floor"], true);
go.SetPropertyValue("cus_room", row["cus_room"], true);
go.SetPropertyValue("user_name", row["user_name"], true);
go.SetPropertyValue("telphone", row["telphone"], true);
go.SetPropertyValue("departure_time", row["departure_time"], true);
go.SetPropertyValue("precaution_notified", row["precaution_notified"], true);
go.SetPropertyValue("sn", row["sn"], true);
list.Add(go);
}
paperGrid.ItemsSource = list;
}
}
示例2: pageResource_Loaded
/// <summary>
/// 初始化时加载小区
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void pageResource_Loaded(object sender, RoutedEventArgs e)
{
pageResource.Loaded -= pageResource_Loaded;
list = pageResource.Res[0] as ObjectList;
AreaContext = pageResource.Res[1] as GeneralObject;
LoadResidentialAreaData();
}
示例3: InitializeComponent
public 用户信息()
{
// Required to initialize variables
InitializeComponent();
this.Loaded += 用户信息_Loaded;
kbfee = (ObjectList)(from r in loader.Res where r.Name.Equals("SecondStairlist") select r).First();
ThirdStairStairlist1 = (ObjectList)(from r in loader.Res where r.Name.Equals("ThirdStairStairlist") select r).First();
FourthStairlist1 = (ObjectList)(from r in loader.Res where r.Name.Equals("FourthStairlist") select r).First();
czylistnull1 = (ObjectList)(from r in loader.Res where r.Name.Equals("czylistnull") select r).First();
}
示例4: InitializeComponent
public 用户档案信息()
{
// Required to initialize variables
InitializeComponent();
daninfosearch.DataContext = userSearch;
daninfos.ItemsSource = userList;
this.Loaded += 售气收费信息_Loaded;
kbfee = (ObjectList)(from r in PageResources.Res where r.Name.Equals("SecondStairlist") select r).First();
ThirdStairStairlist1 = (ObjectList)(from r in PageResources.Res where r.Name.Equals("ThirdStairStairlist") select r).First();
FourthStairlist1 = (ObjectList)(from r in PageResources.Res where r.Name.Equals("FourthStairlist") select r).First();
}
示例5: InitializeComponent
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Windows.Application.LoadComponent(this, new System.Uri("/%E5%A5%A5%E6%9E%AB%E7%87%83%E6%B0%94%E8%90%A5%E6%94%B6%E7%B3%BB%E7%BB%9FV3;compo" +
"nent/Pages/Excel.xaml", System.UriKind.Relative));
this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
this.datalist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("datalist")));
this.data = ((System.Windows.Controls.StackPanel)(this.FindName("data")));
this.FileLoad = ((Com.Aote.Controls.FileLoad)(this.FindName("FileLoad")));
this.DataGrid = ((System.Windows.Controls.DataGrid)(this.FindName("DataGrid")));
}
示例6: InitializeComponent
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Windows.Application.LoadComponent(this, new System.Uri("/%E5%A5%A5%E6%9E%AB%E7%87%83%E6%B0%94%E8%90%A5%E6%94%B6%E7%B3%BB%E7%BB%9FV3;compo" +
"nent/Pages/%E8%8E%B7%E5%8F%96%E8%AE%A1%E5%88%92.xaml", System.UriKind.Relative));
this.child = ((Com.Aote.Controls.CustomChildWindow)(this.FindName("child")));
this.Layout = ((System.Windows.Controls.Grid)(this.FindName("Layout")));
this.searchPanel = ((System.Windows.Controls.DockPanel)(this.FindName("searchPanel")));
this.planGrid = ((System.Windows.Controls.DataGrid)(this.FindName("planGrid")));
this.planList = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("planList")));
}
示例7: InitializeComponent
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Windows.Application.LoadComponent(this, new System.Uri("/%E5%A5%A5%E6%9E%AB%E7%87%83%E6%B0%94%E8%90%A5%E6%94%B6%E7%B3%BB%E7%BB%9FV3;compo" +
"nent/MainPage1.xaml", System.UriKind.Relative));
this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
this.selected = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("selected")));
this.tab = ((System.Windows.Controls.TabControl)(this.FindName("tab")));
this.menu1 = ((System.Windows.Controls.ListBox)(this.FindName("menu1")));
this.menu2 = ((System.Windows.Controls.ListBox)(this.FindName("menu2")));
this.start = ((System.Windows.Controls.Primitives.ToggleButton)(this.FindName("start")));
this.PictureWindow = ((Com.Aote.Controls.ImageView)(this.FindName("PictureWindow")));
}
示例8: InitializeComponent
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Windows.Application.LoadComponent(this, new System.Uri("/%E5%A5%A5%E6%9E%AB%E7%87%83%E6%B0%94%E8%90%A5%E6%94%B6%E7%B3%BB%E7%BB%9FV3;compo" +
"nent/Pages/%E5%85%B6%E4%BB%96%E4%B8%8A%E4%BC%A0%E6%8A%A5%E8%A1%A8%E6%9F%A5%E8%AF" +
"%A2.xaml", System.UriKind.Relative));
this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
this.uplists = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("uplists")));
this.typeview = ((Com.Aote.ObjectTools.ObjectListView)(this.FindName("typeview")));
this.uplistsearch = ((System.Windows.Controls.DockPanel)(this.FindName("uplistsearch")));
this.searchbutton = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
this.uploads = ((System.Windows.Controls.DataGrid)(this.FindName("uploads")));
}
示例9: InitializeComponent
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Windows.Application.LoadComponent(this, new System.Uri("/%E5%A5%A5%E6%9E%AB%E7%87%83%E6%B0%94%E8%90%A5%E6%94%B6%E7%B3%BB%E7%BB%9FV3;compo" +
"nent/Pages/%E6%8A%84%E8%A1%A8%E4%BB%BB%E5%8A%A1%E6%89%93%E5%8D%B0.xaml", System.UriKind.Relative));
this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
this.DeleteAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteAction")));
this.SubmitAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("SubmitAction")));
this.applysearch = ((System.Windows.Controls.DockPanel)(this.FindName("applysearch")));
this.searchbutton = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
this.applys = ((System.Windows.Controls.DataGrid)(this.FindName("applys")));
this.applyslist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("applyslist")));
this.print = ((Com.Aote.Controls.PrintObj)(this.FindName("print")));
}
示例10: InitializeComponent
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Windows.Application.LoadComponent(this, new System.Uri("/%E5%A5%A5%E6%9E%AB%E7%87%83%E6%B0%94%E8%90%A5%E6%94%B6%E7%B3%BB%E7%BB%9FV3;compo" +
"nent/Pages/%E8%AF%BB%E5%8D%A1.xaml", System.UriKind.Relative));
this.card = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("card")));
this.pinpailist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("pinpailist")));
this.userfiles = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfiles")));
this.userfile1 = ((System.Windows.Controls.Grid)(this.FindName("userfile1")));
this.readsel = ((System.Windows.Controls.Grid)(this.FindName("readsel")));
this.kaattr = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("kaattr")));
this.readcard = ((System.Windows.Controls.Button)(this.FindName("readcard")));
this.CoboxPinpai = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxPinpai")));
}
示例11: userfile_DataContextChanged
private void userfile_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
{
//clear up suggestions
suggestionPane.Children.Clear();
GeneralObject go = (sender as Grid).DataContext as GeneralObject;
if (go == null)
return;
String id = go.GetPropertyValue("id") as String;
ObjectList lines = new ObjectList();
lines.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
lines.EntityType = "T_INSPECTION_LINE";
lines.LoadOnPathChanged = false;
lines.Path = "from T_INSPECTION_LINE where INSPECTION_ID='" + id + "'order by EQUIPMENT";
lines.DataLoaded += lines_DataLoaded;
lines.Load();
}
示例12: posUpload
//pos 上传
public void posUpload()
{
ObjectList datalist = new ObjectList();
GetEvent("pcPort").pcPort = PcPort;
if (GetEvent("OpenComm").OpenComm() != 0)
{
MessageBox.Show("打开串口" + PcPort + "失败!");
return;
}
GetEvent("ack").ack = "C";
GetEvent("RespAckPos").RespAckPos();
var ret = 0;
while ((ret = GetEvent("Readdata").Readdata()) == 0)
{
var data = GetEvent("strdata").strdata;
//如果数据内容是ok,传完了,发送ok过去后pos机控件开始清除数据
if (data == "OK")
{
datalist.Completed += (o, a) =>
{
if (a.Error == null)
{
GetEvent("ack").ack = "C";
GetEvent("RespAckPos").RespAckPos();
}
};
datalist.Save();
break;
}
else
{
MessageBox.Show(data);
//解析,保存数据
GeneralObject go = parsePos(data);
datalist.Add(go);
//校验数据 ,正确 ,数据存储,否则,发送N
GetEvent("ack").ack = "C";
GetEvent("RespAckPos").RespAckPos();
}
}
if (ret != 0)
{
MessageBox.Show("错误类型" + ret);
}
//关串口
GetEvent("CloseComm").CloseComm();
}
示例13: InitializeComponent
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Windows.Application.LoadComponent(this, new System.Uri("/%E5%A5%A5%E6%9E%AB%E7%87%83%E6%B0%94%E8%90%A5%E6%94%B6%E7%B3%BB%E7%BB%9FV3;compo" +
"nent/Pages/%E5%85%AC%E5%91%8A%E6%9F%A5%E7%9C%8B.xaml", System.UriKind.Relative));
this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
this.gonggao = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("gonggao")));
this.annexlist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("annexlist")));
this.pipelinesearch = ((System.Windows.Controls.DockPanel)(this.FindName("pipelinesearch")));
this.searchbutton = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
this.pipelines = ((System.Windows.Controls.DataGrid)(this.FindName("pipelines")));
this.pipelineslist = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("pipelineslist")));
this.pipeline = ((System.Windows.Controls.Grid)(this.FindName("pipeline")));
this.pager = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
}
示例14: InitializeComponent
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Windows.Application.LoadComponent(this, new System.Uri("/%E5%A5%A5%E6%9E%AB%E7%87%83%E6%B0%94%E8%90%A5%E6%94%B6%E7%B3%BB%E7%BB%9FV3;compo" +
"nent/Pages/%E6%9F%A5%E8%AF%A2.xaml", System.UriKind.Relative));
this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
this.pageResource = ((Com.Aote.Marks.ResourceLoad)(this.FindName("pageResource")));
this.areafileslist = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("areafileslist")));
this.conditionlist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("conditionlist")));
this.pager = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
this.areafilesearch = ((System.Windows.Controls.DockPanel)(this.FindName("areafilesearch")));
this.condition = ((System.Windows.Controls.ComboBox)(this.FindName("condition")));
this.areasearchbutton = ((System.Windows.Controls.Button)(this.FindName("areasearchbutton")));
this.areafiles = ((System.Windows.Controls.DataGrid)(this.FindName("areafiles")));
}
示例15: InitializeComponent
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Windows.Application.LoadComponent(this, new System.Uri("/%E5%A5%A5%E6%9E%AB%E7%87%83%E6%B0%94%E8%90%A5%E6%94%B6%E7%B3%BB%E7%BB%9FV3;compo" +
"nent/Pages/%E9%80%89%E6%8B%A9%E8%BD%AC%E6%8D%A2.xaml", System.UriKind.Relative));
this.personsearch = ((System.Windows.Controls.Grid)(this.FindName("personsearch")));
this.tempobj = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("tempobj")));
this.tobj = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("tobj")));
this.searchbutton = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
this.persons = ((System.Windows.Controls.DataGrid)(this.FindName("persons")));
this.personslist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("personslist")));
this.right = ((System.Windows.Controls.DataGrid)(this.FindName("right")));
this.personslist1 = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("personslist1")));
this.personslist2 = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("personslist2")));
}