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


C# GeneralObject.SetValue方法代码示例

本文整理汇总了C#中Com.Aote.ObjectTools.GeneralObject.SetValue方法的典型用法代码示例。如果您正苦于以下问题:C# GeneralObject.SetValue方法的具体用法?C# GeneralObject.SetValue怎么用?C# GeneralObject.SetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Com.Aote.ObjectTools.GeneralObject的用法示例。


在下文中一共展示了GeneralObject.SetValue方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: toright_Click

 private void toright_Click(object sender, RoutedEventArgs e)
 {
     if (userfiles1.SelectedItem == null)
         return;
     Com.Aote.ObjectTools.ObjectList c = userfiles1.ItemsSource as Com.Aote.ObjectTools.ObjectList;
     GeneralObject checkPaper = userfiles1.SelectedItem as GeneralObject;
     GeneralObject address = new GeneralObject();
     address.EntityType = "t_userfiles";
     address.SetValue("ID", checkPaper.GetPropertyValue("pid"));
     address.SetValue("f_userid", checkPaper.GetPropertyValue("f_userid"));
     address.SetValue("f_districtname", checkPaper.GetPropertyValue("UNIT_NAME"));
     address.SetValue("f_road", checkPaper.GetPropertyValue("ROAD"));
     address.SetValue("f_cusDom", checkPaper.GetPropertyValue("CUS_DOM"));
     address.SetValue("f_cusDy", checkPaper.GetPropertyValue("CUS_DY"));
     address.SetValue("f_cusFloor", checkPaper.GetPropertyValue("CUS_FLOOR"));
     address.SetValue("f_apartment", checkPaper.GetPropertyValue("CUS_ROOM"));
     (userfiles.ItemsSource as ObjectList).Add(address);
     List<Object> list = new List<Object>();
     foreach (Object obj in userfiles1.SelectedItems)
         list.Add(obj);
     foreach (Object obj in list)
         c.Remove(obj);
     c.OnPropertyChanged("Count");
 }
开发者ID:DuBin1988,项目名称:newsellinggas,代码行数:24,代码来源:安检计划.xaml.cs

示例2: parsePos

 //解析pos机数据
 private GeneralObject parsePos(string info)
 {
     //登陆用户
     //CommonObject user = (CommonObject)Application.Current.Resources["loginuser"];
     GeneralObject co = new GeneralObject();
     char[] ch = { '|' };
     string[] strs = info.Split(ch);
     //卡号
     co.SetValue("cardId", strs[0]); ;
     //操作员号
     co.SetValue("posOperate", strs[1]);
     //维修时间
     co.SetValue("repairsDate", parseDate(strs));
     //维修原因
     co.SetValue("repsirsReason", reason(strs));
     //维修结果
     //气量
     co.SetValue("gas", strs[6]);
     //  设备号
     co.SetValue("posCode", strs[7]);
     //表型
     co.SetValue("tabletype", tabletype(strs[8]));
     //操作员
     //co["opCode"] = user["userId"];
     ////操作地点
     ////CommonObject attributes = (CommonObject)user["attributes"];
     //co["opSpot"] = user["localport"];
     ////操作时间
     //DateTime dt = CalendarHelper.getServerDate();
     //co["opDate"] = dt.ToString("yyyy-MM-dd hh:mm:ss");
     return co;
 }
开发者ID:DuBin1988,项目名称:restv2,代码行数:33,代码来源:PosObj.cs

示例3: alltoright_Click

 private void alltoright_Click(object sender, RoutedEventArgs e)
 {
     if (userfiles1.ItemsSource == null)
         return;
     Com.Aote.ObjectTools.ObjectList c = userfiles1.ItemsSource as Com.Aote.ObjectTools.ObjectList;
     Com.Aote.ObjectTools.ObjectList target = GetTarget();
     foreach (GeneralObject checkPaper in c)
     {
         GeneralObject address = new GeneralObject();
         address.EntityType = "t_gasaddress2";
         address.SetValue("ID", checkPaper.GetPropertyValue("pid"));
         address.SetValue("f_districtname", checkPaper.GetPropertyValue("UNIT_NAME"));
         address.SetValue("f_road", checkPaper.GetPropertyValue("ROAD"));
         address.SetValue("f_cusDom", checkPaper.GetPropertyValue("CUS_DOM"));
         address.SetValue("f_cusDy", checkPaper.GetPropertyValue("CUS_DY"));
         address.SetValue("f_cusFloor", checkPaper.GetPropertyValue("CUS_FLOOR"));
         address.SetValue("f_apartment", checkPaper.GetPropertyValue("CUS_ROOM"));
         (userfiles.ItemsSource as ObjectList).Add(address);
     }
     c.Clear();
 }
开发者ID:DuBin1988,项目名称:anjian_pad_server,代码行数:21,代码来源:安检计划.xaml.cs


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