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


C# ObjectTools.GeneralObject类代码示例

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


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

示例1: CreateObj

 //创建发票对象
 public GeneralObject CreateObj(GeneralObject source,double no)
 {
     GeneralObject go = new GeneralObject();
     go.EntityType = EntityType;
     string value = no.ToString();
     if (value.Length != BeginNo.ToString().Length)
     {
         for (int i = 0; i <= BeginNo.ToString().Length-value.Length; i++)
         {
             value = "0" + value;
         }
     }
     //发票号
     go.SetPropertyValue("f_invoicenum", value, true);
     //所属公司
     go.SetPropertyValue("f_filiale", source.GetPropertyValue("f_filiale"), true);
     //发票状态
     go.SetPropertyValue("f_fapiaostatue", "未用", true);
     //使用人
     go.SetPropertyValue("f_sgoperator", source.GetPropertyValue("f_sgoperator"), true);
     //分配人
     go.SetPropertyValue("f_operator", source.GetPropertyValue("f_operator"), true);
     //分配日期
     go.SetPropertyValue("f_date", source.GetPropertyValue("f_date"), true);
     return go;
 }
开发者ID:DuBin1988,项目名称:newsellinggas,代码行数:27,代码来源:CreateReceiptAction.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: 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

示例4: checkerGrid_SelectionChanged

 /// <summary>
 /// 安检单列表选择改变
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void checkerGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     GeneralObject item = checkerGrid.SelectedItem as GeneralObject;
     if (item == null)
         return;
     GeneralObject go = new GeneralObject();
     go.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
     go.EntityType = "T_INSPECTION";
     if (!item.GetPropertyValue("CONDITION").Equals("未检"))
     {
         go.Path = "one/select distinct t from T_INSPECTION t left join fetch t.LINES where t.id ='" + item.GetPropertyValue("id").ToString() + "'";
         go.DataLoaded += go_DataLoaded;
         //if (!item.GetPropertyValue("CONDITION").Equals("正常"))
         //    userfile.IsEnabled = false;
         //else
         //    userfile.IsEnabled = true;
         go.Load();
     }
     else
     {
         userfile.DataContext = null;
         ClearAll();
         //userfile.IsEnabled = false;
     }
 }
开发者ID:DuBin1988,项目名称:anjian_phone_server,代码行数:30,代码来源:燃气表故障明细.xaml.cs

示例5: 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

示例6: Button_Click

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //拿出datagrid所选数据
            GeneralObject go = OtherUserUnits.SelectedItem as GeneralObject;
            //拿出页面数据上下文
            GeneralObject updatehandplan = OtherUserUnit.DataContext as GeneralObject;
            //新建对象,往t_updatehandplan插入数据
            GeneralObject obj = new GeneralObject();
            try
            {
                obj.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
                obj.EntityType = "t_updateotherfee";
                obj.SetPropertyValue("f_userid", ui_userid.Text, false);
                obj.SetPropertyValue("f_username", ui_username.Text, false);
                obj.SetPropertyValue("f_address", ui_address.Text, false);
                obj.SetPropertyValue("f_sellid", go.GetPropertyValue("id").ToString(), false);


                obj.SetPropertyValue("f_feetype", go.GetPropertyValue("f_feetype").ToString(), false);
                obj.SetPropertyValue("f_newfeetype", ui_f_feetype.Text, false);
                obj.SetPropertyValue("f_fee", decimal.Parse(go.GetPropertyValue("f_fee").ToString()), false);
                obj.SetPropertyValue("f_newfee", decimal.Parse(ui_f_fee.Text), false);
                obj.SetPropertyValue("f_payfeevalid", go.GetPropertyValue("f_payfeevalid").ToString(), false);
                obj.SetPropertyValue("f_newpayfeevalid", ui_payfeevalid.SelectedValue, false);

                obj.SetPropertyValue("f_sellinggasoperator", ui_handplanoperator.Text, false);
                obj.SetPropertyValue("f_sellinggasdate", ui_handplandate.SelectedDate, false);
                obj.SetPropertyValue("f_updatenote", ui_updatenote.Text, false);
                obj.Name = "t_updateotherfee";
                //obj.Completed += obj_Completed;
                obj.Save();
            }
            catch (Exception a)
            {
                MessageBox.Show(a.Message);
            }
            //MessageBox.Show(go.GetPropertyValue("id").ToString());
           //  MessageBox.Show(ui_handplandate.SelectedDate.ToString());
            //oughtfee shifoujiaofei f_operator f_inputtor f_zhinajindate
            string sql = "update t_otherfee set f_feetype= '" + ui_f_feetype.Text +
              "',f_fee=" + decimal.Parse(ui_f_fee.Text) + ",f_payfeevalid='" + ui_payfeevalid.SelectedValue +
                 "' where id = " + go.GetPropertyValue("id");
           HQLAction action = new HQLAction();
           action.HQL = sql;
            action.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
            action.Name = "abc";
           action.Invoke();
            
            //如果数据有误,页面提示
            //回调页面保存按钮功能
            BatchExcuteAction save = (from p in loader.Res where p.Name.Equals("SaveAction") select p).First() as BatchExcuteAction;
            save.State = State.End;
            PagedObjectList save1 = (from p in loader.Res where p.Name.Equals("personlist") select p).First() as PagedObjectList;
            save1.IsOld = true;
            updatehandplan.New();
            
        }
开发者ID:DuBin1988,项目名称:newsellinggas,代码行数:57,代码来源:其他收费修改.xaml.cs

示例7: transformData

        private void transformData(GeneralObject go)
        {
            ClearAll();

            if (go == null)
                return;

            PostUITask(go);
        }
开发者ID:DuBin1988,项目名称:newsellinggas,代码行数:9,代码来源:小区安检查询.xaml.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/%E9%A2%86%E5%AF%BC.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.sellinggas = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("sellinggas")));
 }
开发者ID:DuBin1988,项目名称:anjian_pad_server,代码行数:10,代码来源:领导.g.cs

示例9:

        void 售气收费信息_Loaded(object sender, RoutedEventArgs e)
        {

            loginUser = (GeneralObject)FrameworkElementExtension.FindResource(this, "LoginUser");

            kbfee.DataLoaded += kbfee_DataLoaded;
            ThirdStairStairlist1.DataLoaded += ThirdStairStairlist1_DataLoaded;
            FourthStairlist1.DataLoaded += FourthStairlist1_DataLoaded;
            czylistnull1.DataLoaded += czylistnull1_DataLoaded;
        }
开发者ID:DuBin1988,项目名称:newsellinggas,代码行数:10,代码来源:售气收费信息.xaml.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/%E6%8A%84%E8%A1%A8%E5%8F%8A%E5%AE%89%E6%A3%80.xaml", System.UriKind.Relative));
     this.security = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("security")));
     this.SaveAction = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.securityfiles = ((System.Windows.Controls.Grid)(this.FindName("securityfiles")));
 }
开发者ID:DuBin1988,项目名称:anjian_pad_server,代码行数:11,代码来源:抄表及安检.g.i.cs

示例11: 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/%E4%BF%AE%E6%94%B9%E9%99%90%E8%B4%AD.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.apply = ((System.Windows.Controls.Grid)(this.FindName("apply")));
     this.applygo = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("applygo")));
     this.userfile = ((System.Windows.Controls.Grid)(this.FindName("userfile")));
     this.save = ((System.Windows.Controls.Button)(this.FindName("save")));
 }
开发者ID:DuBin1988,项目名称:anjian_pad_server,代码行数:13,代码来源:修改限购.g.i.cs

示例12: PathListBox_SelectionChanged

 private void PathListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     PathListBox pathListBox = sender as PathListBox;
     if (selectObj != null)
     {
         selectObj.SetPropertyValue("childsShow", "Collapsed", false);
     }
     selectObj = pathListBox.SelectedItem as GeneralObject;
     if (selectObj != null)
     {
         selectObj.SetPropertyValue("childsShow", "Visible", false);
     }
 }
开发者ID:DuBin1988,项目名称:anjian_pad_server,代码行数:13,代码来源:MainPage.xaml.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/%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

示例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/%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

示例15: dansearch_DownloadStringCompleted

 void dansearch_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
 {
     //有错误
     if (e.Error != null)
     {
         MessageBox.Show(e.Error.Message);
     }
     else
     {
         //把数据转换成JSON
         JsonObject obj = JsonValue.Parse(e.Result) as JsonObject;
         JsonArray items = obj["rows"] as JsonArray;
         daninfos.ItemsSource = list;
         if (list.Size != 0)
             list.Clear();
         foreach (JsonObject json in items)
         {
             GeneralObject go = new GeneralObject();
             try
             {
                 go.EntityType = "t_";
                 go.SetPropertyValue("id", json["id"], false);//用户编号
                 go.SetPropertyValue("remote_key", json["remote_key"], false);//用户编号
                 go.SetPropertyValue("terminal_code", json["terminal_code"], false);//用户编号
                 go.SetPropertyValue("meter_code", json["meter_code"], false);//用户编号
                 go.SetPropertyValue("operate_type", json["operate_type"], false);//用户编号
                 go.SetPropertyValue("send_data", json["send_data"], false);//用户编号
                 go.SetPropertyValue("receive_data", json["receive_data"], false);//用户编号
                 go.SetPropertyValue("state", json["state"], false);//用户编号
                 go.SetPropertyValue("result", json["result"], false);//用户编号
                 go.SetPropertyValue("operator1",json["operator"], false);//用户编号
                 go.SetPropertyValue("des", json["des"], false);//用户编号
                 go.SetPropertyValue("create_date", json["create_date"], false);//用户编号
                 go.SetPropertyValue("company_code", json["company_code"], false);//用户编号
                 go.SetPropertyValue("telecomm_address", json["telecomm_address"], false);//用户编号
                 go.SetPropertyValue("customer_code",json["customer_code"], false);//用户编号
                 list.Add(go);
             }
             catch (Exception ex)
             {
                 MessageBox.Show(ex.Message);
                 return;
             }
         }
     }
 }
开发者ID:DuBin1988,项目名称:newsellinggas,代码行数:46,代码来源:物联表远传记录.xaml.cs


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