当前位置: 首页>>代码示例>>C#>>正文


C# ObjectTools.ObjectList类代码示例

本文整理汇总了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;
     }
 }       
开发者ID:DuBin1988,项目名称:newsellinggas,代码行数:28,代码来源:其他严重隐患类型明细表.xaml.cs

示例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();
 }
开发者ID:DuBin1988,项目名称:newsellinggas,代码行数:12,代码来源:地址管理.xaml.cs

示例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();
 }
开发者ID:DuBin1988,项目名称:newsellinggas,代码行数:10,代码来源:用户信息.xaml.cs

示例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();
 }
开发者ID:DuBin1988,项目名称:newsellinggas,代码行数:11,代码来源:用户档案信息.xaml.cs

示例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")));
 }
开发者ID:DuBin1988,项目名称:anjian_pad_server,代码行数:13,代码来源:Excel.g.cs

示例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")));
 }
开发者ID:DuBin1988,项目名称:anjian_pad_server,代码行数:13,代码来源:获取计划.g.cs

示例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")));
 }
开发者ID:DuBin1988,项目名称:anjian_pad_server,代码行数:15,代码来源:MainPage1.g.i.cs

示例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")));
 }
开发者ID:DuBin1988,项目名称:anjian_pad_server,代码行数:15,代码来源:其他上传报表查询.g.cs

示例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")));
 }
开发者ID:DuBin1988,项目名称:anjian_pad_server,代码行数:16,代码来源:抄表任务打印.g.i.cs

示例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")));
 }
开发者ID:DuBin1988,项目名称:anjian_pad_server,代码行数:16,代码来源:读卡.g.cs

示例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();
 }
开发者ID:DuBin1988,项目名称:newsellinggas,代码行数:16,代码来源:安检结果查看.xaml.cs

示例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();
 }
开发者ID:DuBin1988,项目名称:restv2,代码行数:48,代码来源:PosObj.cs

示例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")));
 }
开发者ID:DuBin1988,项目名称:anjian_pad_server,代码行数:17,代码来源:公告查看.g.cs

示例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")));
 }
开发者ID:DuBin1988,项目名称:anjian_pad_server,代码行数:17,代码来源:查询.g.cs

示例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")));
 }
开发者ID:DuBin1988,项目名称:anjian_pad_server,代码行数:17,代码来源:选择转换.g.i.cs


注:本文中的Com.Aote.ObjectTools.ObjectList类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。