执行HQL语句,即支持自己单独执行,也支持批处理的执行。 支持自己单独执行的目的是,在某些场合,去后台进行数据库操作只有一条HQL语句。 这时,就不用配置BatchExcuteAction了,直接配置HQLAction即可。
Inheritance: BaseAsyncAction
 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%A1%A3%E6%A1%88%E5%8F%98%E6%9B%B4.xaml", System.UriKind.Relative));
     this.LayoutRoot   = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.tempobj      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("tempobj")));
     this.tobj         = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("tobj")));
     this.personslist2 = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("personslist2")));
     this.card         = ((Com.Aote.ObjectTools.NewGeneralICCard)(this.FindName("card")));
     this.zzobj        = ((Com.Aote.ObjectTools.XYZZObj)(this.FindName("zzobj")));
     this.personslist1 = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("personslist1")));
     this.codelist     = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("codelist")));
     this.biangenggo   = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("biangenggo")));
     this.userfiles    = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfiles")));
     this.biangenglist = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("biangenglist")));
     this.tempgo       = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("tempgo")));
     this.UpdateAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateAction")));
     this.biangeng     = ((System.Windows.Controls.Grid)(this.FindName("biangeng")));
     this.save         = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.fileschange  = ((System.Windows.Controls.DataGrid)(this.FindName("fileschange")));
     this.userfile     = ((System.Windows.Controls.Grid)(this.FindName("userfile")));
     this.fileschanges = ((System.Windows.Controls.DataGrid)(this.FindName("fileschanges")));
 }
 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%8D%95%E7%94%9F%E6%88%90.xaml", System.UriKind.Relative));
     this.LayoutRoot      = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.test1           = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("test1")));
     this.excel           = ((Com.Aote.ObjectTools.ExcelObj)(this.FindName("excel")));
     this.search          = ((Com.Aote.ObjectTools.SearchObject)(this.FindName("search")));
     this.userfiles       = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfiles")));
     this.InsertHandplan  = ((Com.Aote.Behaviors.HQLAction)(this.FindName("InsertHandplan")));
     this.UpdateUserfile  = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateUserfile")));
     this.CreateHandplan  = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("CreateHandplan")));
     this.daninfosearch   = ((System.Windows.Controls.Grid)(this.FindName("daninfosearch")));
     this.dansearchbutton = ((System.Windows.Controls.Button)(this.FindName("dansearchbutton")));
     this.chargemaneger   = ((System.Windows.Controls.Button)(this.FindName("chargemaneger")));
     this.saveButton      = ((System.Windows.Controls.Button)(this.FindName("saveButton")));
     this.annex           = ((System.Windows.Controls.HyperlinkButton)(this.FindName("annex")));
     this.tj4             = ((System.Windows.Controls.TextBox)(this.FindName("tj4")));
     this.districtname    = ((System.Windows.Controls.ComboBox)(this.FindName("districtname")));
     this.pager           = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.daninfos        = ((System.Windows.Controls.DataGrid)(this.FindName("daninfos")));
 }
Ejemplo n.º 3
0
 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%9D%9E%E6%B0%91%E7%94%A8%E6%8A%84%E8%A1%A8%E4%BB%BB%E5%8A%A1%E5%88" +
                                                                   "%A0%E9%99%A4.xaml", System.UriKind.Relative));
     this.LayoutRoot      = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.DeleteAction    = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("DeleteAction")));
     this.Deleteinput     = ((Com.Aote.Behaviors.HQLAction)(this.FindName("Deleteinput")));
     this.Deleteinputlist = ((Com.Aote.Behaviors.HQLAction)(this.FindName("Deleteinputlist")));
     this.excel           = ((Com.Aote.ObjectTools.ExcelObj)(this.FindName("excel")));
     this.fgslist         = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("fgslist")));
     this.zonggongsi      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("zonggongsi")));
     this.input           = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("input")));
     this.inputlist       = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("inputlist")));
     this.daninfosearch   = ((System.Windows.Controls.Grid)(this.FindName("daninfosearch")));
     this.dansearchbutton = ((System.Windows.Controls.Button)(this.FindName("dansearchbutton")));
     this.Comboxfx        = ((System.Windows.Controls.ComboBox)(this.FindName("Comboxfx")));
     this.biaoti          = ((System.Windows.Controls.TextBox)(this.FindName("biaoti")));
     this.deletebutton    = ((System.Windows.Controls.Button)(this.FindName("deletebutton")));
     this.inputtj         = ((System.Windows.Controls.DataGrid)(this.FindName("inputtj")));
     this.pager2          = ((System.Windows.Controls.DataPager)(this.FindName("pager2")));
     this.daninfos        = ((System.Windows.Controls.DataGrid)(this.FindName("daninfos")));
     this.deletettip      = ((Com.Aote.Controls.MessageTipObj)(this.FindName("deletettip")));
 }
 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%E6%95%B0%E6%8D%AE%E5%BD%95%E5%85%A5.xaml", System.UriKind.Relative));
     this.LayoutRoot         = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.shifou             = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("shifou")));
     this.dbhljql            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("dbhljql")));
     this.myljql             = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("myljql")));
     this.dbhqj              = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("dbhqj")));
     this.dbhwljqj           = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("dbhwljqj")));
     this.minyqij            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("minyqij")));
     this.linjiewqj          = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("linjiewqj")));
     this.yhobject           = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("yhobject")));
     this.zidobj             = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("zidobj")));
     this.updaterecord       = ((Com.Aote.Behaviors.HQLAction)(this.FindName("updaterecord")));
     this.SaveAction         = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.searchHandUserUnit = ((System.Windows.Controls.StackPanel)(this.FindName("searchHandUserUnit")));
     this.searchbutton       = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.handUserUnits      = ((System.Windows.Controls.DataGrid)(this.FindName("handUserUnits")));
     this.personlist         = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("personlist")));
     this.pager              = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.handUserUnit       = ((System.Windows.Controls.Grid)(this.FindName("handUserUnit")));
     this.f_userid           = ((System.Windows.Controls.TextBox)(this.FindName("f_userid")));
     this.dishu              = ((System.Windows.Controls.TextBox)(this.FindName("dishu")));
     this.chaobiaoriqi       = ((System.Windows.Controls.DatePicker)(this.FindName("chaobiaoriqi")));
     this.save = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.chaobiaoriqi_Copy  = ((System.Windows.Controls.DatePicker)(this.FindName("chaobiaoriqi_Copy")));
     this.chaobiaoriqi_Copy1 = ((System.Windows.Controls.DatePicker)(this.FindName("chaobiaoriqi_Copy1")));
     this.deletettip         = ((Com.Aote.Controls.MessageTipObj)(this.FindName("deletettip")));
 }
Ejemplo n.º 5
0
 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%86%B2%E6%AD%A3.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.gongsitypelist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("gongsitypelist")));
     this.card           = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("card")));
     this.users          = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("users")));
     this.sellinggas     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("sellinggas")));
     this.fapiao         = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fapiao")));
     this.userfilego     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfilego")));
     this.UpdateSellgas  = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateSellgas")));
     this.UpdateFillgas  = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateFillgas")));
     this.Updatefapiao   = ((Com.Aote.Behaviors.HQLAction)(this.FindName("Updatefapiao")));
     this.SaveAction     = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.zzprint        = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("zzprint")));
     this.userfilesearch = ((System.Windows.Controls.DockPanel)(this.FindName("userfilesearch")));
     this.searchbutton   = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.tjczy_Copy     = ((System.Windows.Controls.ComboBox)(this.FindName("tjczy_Copy")));
     this.userfiles      = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.userfileslist  = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfileslist")));
     this.userfile       = ((System.Windows.Controls.Grid)(this.FindName("userfile")));
     this.save           = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.f_userid       = ((System.Windows.Controls.TextBox)(this.FindName("f_userid")));
     this.pager          = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
 }
Ejemplo n.º 6
0
 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%93%B6%E8%A1%8C%E7%A5%A8%E8%AF%81%E8%A1%A5%E6%89%93.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.card           = ((Com.Aote.ObjectTools.NewGeneralICCard)(this.FindName("card")));
     this.DeleteAction   = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteAction")));
     this.SubmitAction   = ((Com.Aote.Behaviors.HQLAction)(this.FindName("SubmitAction")));
     this.userfilego     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfilego")));
     this.sellinggas     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("sellinggas")));
     this.SaveAction     = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.userfilesearch = ((System.Windows.Controls.DockPanel)(this.FindName("userfilesearch")));
     this.searchbutton   = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.userfiles      = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.userfileslist  = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfileslist")));
     this.userfile       = ((System.Windows.Controls.Grid)(this.FindName("userfile")));
     this.save           = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.userid         = ((System.Windows.Controls.TextBox)(this.FindName("userid")));
     this.pager          = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.aofengprint    = ((System.Windows.Controls.Grid)(this.FindName("aofengprint")));
     this.bdprint        = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("bdprint")));
     this.guoshuiprint   = ((System.Windows.Controls.Grid)(this.FindName("guoshuiprint")));
     this.bdprint1       = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("bdprint1")));
     this.print          = ((Com.Aote.Controls.PrintObj)(this.FindName("print")));
     this.print1         = ((Com.Aote.Controls.PrintObj)(this.FindName("print1")));
 }
Ejemplo n.º 7
0
 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%AE%89%E6%A3%80%E5%9C%B0%E5%9D%80%E7%AE%A1%E7%90%86.xaml", System.UriKind.Relative));
     this.LayoutRoot    = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.apartmentxist = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("apartmentxist")));
     this.DeleteAction  = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteAction")));
     this.SaveAction    = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.applysearch   = ((System.Windows.Controls.Grid)(this.FindName("applysearch")));
     this.pager         = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.applys        = ((System.Windows.Controls.DataGrid)(this.FindName("applys")));
     this.applyslist    = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("applyslist")));
     this.apply         = ((System.Windows.Controls.Grid)(this.FindName("apply")));
     this.applygo       = ((Com.Aote.ObjectTools.GasADObject)(this.FindName("applygo")));
     this.Road          = ((System.Windows.Controls.TextBox)(this.FindName("Road")));
     this.Districtname  = ((System.Windows.Controls.TextBox)(this.FindName("Districtname")));
     this.CusDom        = ((System.Windows.Controls.TextBox)(this.FindName("CusDom")));
     this.CusDy         = ((System.Windows.Controls.TextBox)(this.FindName("CusDy")));
     this.CusFloor      = ((System.Windows.Controls.TextBox)(this.FindName("CusFloor")));
     this.Apartment     = ((System.Windows.Controls.TextBox)(this.FindName("Apartment")));
     this.save          = ((System.Windows.Controls.Button)(this.FindName("save")));
 }
 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/%E7%94%B3%E8%AF%B7%E7%99%BB%E8%AE%B0.xaml", System.UriKind.Relative));
     this.LayoutRoot          = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.userlist            = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("userlist")));
     this.DeleteAction        = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("DeleteAction")));
     this.DeleteApply         = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteApply")));
     this.DeleteImage         = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteImage")));
     this.DeleteApplycustomer = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteApplycustomer")));
     this.imagelist           = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("imagelist")));
     this.DeleteDirty         = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteDirty")));
     this.BatchSave           = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("BatchSave")));
     this.SubmitAction        = ((Com.Aote.Behaviors.HQLAction)(this.FindName("SubmitAction")));
     this.personsearch        = ((System.Windows.Controls.StackPanel)(this.FindName("personsearch")));
     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.yijingchaxue        = ((System.Windows.Controls.DockPanel)(this.FindName("yijingchaxue")));
     this.yijing     = ((System.Windows.Controls.DataGrid)(this.FindName("yijing")));
     this.yijinglist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("yijinglist")));
     this.main       = ((System.Windows.Controls.DockPanel)(this.FindName("main")));
     this.persongo   = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("persongo")));
     this.save       = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.submittip  = ((Com.Aote.Controls.MessageTipObj)(this.FindName("submittip")));
     this.deletettip = ((Com.Aote.Controls.MessageTipObj)(this.FindName("deletettip")));
 }
Ejemplo n.º 9
0
 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%AE%89%E6%A3%80%E8%AE%A1%E5%88%92%E4%B8%8B%E5%8F%91.xaml", System.UriKind.Relative));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ybuserfilego         = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("ybuserfilego")));
     this.planslist            = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("planslist")));
     this.userfileslist        = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfileslist")));
     this.MakeCheck            = ((Com.Aote.Behaviors.HQLAction)(this.FindName("MakeCheck")));
     this.DeleteCheckPlan      = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteCheckPlan")));
     this.DeleteCheckPaper     = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteCheckPaper")));
     this.DeleteInspection     = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteInspection")));
     this.DeleteInspectionLine = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteInspectionLine")));
     this.DeleteAction         = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("DeleteAction")));
     this.SaveAction           = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.pager          = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.userfilesearch = ((System.Windows.Controls.DockPanel)(this.FindName("userfilesearch")));
     this.shifuxiafa     = ((System.Windows.Controls.ComboBox)(this.FindName("shifuxiafa")));
     this.searchbutton   = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.userfiles      = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.pager1         = ((System.Windows.Controls.DataPager)(this.FindName("pager1")));
     this.PlanItem       = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("PlanItem")));
     this.ybuserfile     = ((System.Windows.Controls.Grid)(this.FindName("ybuserfile")));
     this.save           = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.delete         = ((System.Windows.Controls.Button)(this.FindName("delete")));
     this.searchxiafa    = ((System.Windows.Controls.ComboBox)(this.FindName("searchxiafa")));
     this.plans          = ((System.Windows.Controls.DataGrid)(this.FindName("plans")));
     this.deletettip     = ((Com.Aote.Controls.MessageTipObj)(this.FindName("deletettip")));
 }
 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%A1%97%E9%81%93%E7%AE%A1%E7%90%86.xaml", System.UriKind.Relative));
     this.LayoutRoot   = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.roadexist    = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("roadexist")));
     this.roadid       = ((Com.Aote.ObjectTools.SeriaNumber)(this.FindName("roadid")));
     this.zonggongsi   = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("zonggongsi")));
     this.DeleteAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteAction")));
     this.SaveAction   = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.roadmanege   = ((System.Windows.Controls.DockPanel)(this.FindName("roadmanege")));
     this.roadItem     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("roadItem")));
     this.save         = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.save_Copy    = ((System.Windows.Controls.Button)(this.FindName("save_Copy")));
     this.delete       = ((System.Windows.Controls.Button)(this.FindName("delete")));
     this.pager        = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.roadsearch   = ((System.Windows.Controls.Grid)(this.FindName("roadsearch")));
     this.searchbutton = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.roads        = ((System.Windows.Controls.DataGrid)(this.FindName("roads")));
     this.roadlist     = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("roadlist")));
 }
 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%E6%94%B6%E8%B4%B9.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.card           = ((Com.Aote.ObjectTools.NewGeneralICCard)(this.FindName("card")));
     this.feetype        = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("feetype")));
     this.pinpailist     = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("pinpailist")));
     this.wuxiaoAction   = ((Com.Aote.Behaviors.HQLAction)(this.FindName("wuxiaoAction")));
     this.userfiles      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfiles")));
     this.SaveAction     = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.pipelinesearch = ((System.Windows.Controls.DockPanel)(this.FindName("pipelinesearch")));
     this.wuxiaobutton   = ((System.Windows.Controls.Button)(this.FindName("wuxiaobutton")));
     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.pipelinego     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("pipelinego")));
     this.save           = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.CoboxPinpai    = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxPinpai")));
     this.DaXiaoKa       = ((System.Windows.Controls.ComboBox)(this.FindName("DaXiaoKa")));
     this.pager          = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.kabiaoprint    = ((System.Windows.Controls.Grid)(this.FindName("kabiaoprint")));
     this.cyqprint1      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("cyqprint1")));
     this.submittip      = ((Com.Aote.Controls.MessageTipObj)(this.FindName("submittip")));
     this.print          = ((Com.Aote.Controls.PrintObj)(this.FindName("print")));
 }
 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/%E7%A3%81%E6%8A%98%E8%A1%A5%E6%89%93.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.gongsitypelist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("gongsitypelist")));
     this.card           = ((Com.Aote.ObjectTools.NewGeneralICCard)(this.FindName("card")));
     this.fapiaogeshi    = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fapiaogeshi")));
     this.DeleteAction   = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteAction")));
     this.SubmitAction   = ((Com.Aote.Behaviors.HQLAction)(this.FindName("SubmitAction")));
     this.kbusers        = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("kbusers")));
     this.userfilego     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfilego")));
     this.sellinggas     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("sellinggas")));
     this.SaveAction     = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.zzobj          = ((Com.Aote.ObjectTools.XYZZObj)(this.FindName("zzobj")));
     this.userfilesearch = ((System.Windows.Controls.DockPanel)(this.FindName("userfilesearch")));
     this.tjczy_Copy     = ((System.Windows.Controls.ComboBox)(this.FindName("tjczy_Copy")));
     this.searchbutton   = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.userfiles      = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.userfileslist  = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfileslist")));
     this.userfile       = ((System.Windows.Controls.Grid)(this.FindName("userfile")));
     this.save           = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.userid         = ((System.Windows.Controls.TextBox)(this.FindName("userid")));
     this.pager          = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.zheziprint     = ((System.Windows.Controls.Grid)(this.FindName("zheziprint")));
     this.zheprint       = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("zheprint")));
     this.print          = ((Com.Aote.Controls.PrintObj)(this.FindName("print")));
 }
 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/%E7%94%A8%E6%88%B7%E4%BA%8B%E7%89%A9%E8%BF%87%E6%88%B7%E7%AE%A1%E7%90" +
                                                                   "%86.xaml", System.UriKind.Relative));
     this.LayoutRoot   = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.whf          = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("whf")));
     this.applygo      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("applygo")));
     this.paylist      = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("paylist")));
     this.ghfobj       = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("ghfobj")));
     this.userfiles    = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfiles")));
     this.DeleteAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteAction")));
     this.SaveAction   = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.qianfeiheji  = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("qianfeiheji")));
     this.kbsellgas    = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("kbsellgas")));
     this.zzobj        = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("zzobj")));
     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.PagedObjectList)(this.FindName("applyslist")));
     this.apply        = ((System.Windows.Controls.Grid)(this.FindName("apply")));
     this.save         = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.kbgaslist    = ((System.Windows.Controls.DataGrid)(this.FindName("kbgaslist")));
     this.pager        = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.fazheprint   = ((System.Windows.Controls.Grid)(this.FindName("fazheprint")));
     this.fzprint      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fzprint")));
     this.zzprint      = ((Com.Aote.Controls.PrintObj)(this.FindName("zzprint")));
     this.submittip    = ((Com.Aote.Controls.MessageTipObj)(this.FindName("submittip")));
 }
Ejemplo n.º 14
0
 private void save_Click(object sender, RoutedEventArgs e)
 {
     if (ui_id.Text == null)
     {
         MessageBox.Show("无收费记录");
         return;
     }
     try
     {
         String sql = "update t_apply set f_actualfee=f_actualfee-(select f_fee from t_paydetail where id=" + ui_id.Text + ") where f_code='" + ui_code.Text + "'";
         HQLAction action = new HQLAction();
         action.HQL = sql;
         action.Type = "sql";
         action.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
         action.Name = "abc";
         action.Invoke();
         String sql1 = "update t_paydetail set f_state='无效' where id=" + ui_id.Text;
         HQLAction action1 = new HQLAction();
         action1.HQL = sql1;
         action1.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
         action1.Name = "abc1";
         action1.Invoke();
         //GeneralObject go1=(from p in loader.Res where p.Name.Equals("reversalmx") select p).First() as GeneralObject;
         //go1.SetValue("id",null);
         SyncActionFactory save = (from p in loader.Res where p.Name.Equals("SaveAction") select p).First() as SyncActionFactory;
         save.Invoke();
         ((from p in loader.Res where p.Name.Equals("paydetails") select p).First() as GeneralObject).IsInit = true;
         //go1.IsInit = true;
         (reversalmxgrid.DataContext as GeneralObject).IsInit = true;
     }
     catch (Exception ex)
     {
         MessageBox.Show("请记录用户情况,联系管理员");
     }
 }
Ejemplo n.º 15
0
 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%94%80%E6%88%B7.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.card           = ((Com.Aote.ObjectTools.NewGeneralICCard)(this.FindName("card")));
     this.SubmitAction   = ((Com.Aote.Behaviors.HQLAction)(this.FindName("SubmitAction")));
     this.fgslist        = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("fgslist")));
     this.DeleteAction   = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteAction")));
     this.applygo        = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("applygo")));
     this.zonggongsi     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("zonggongsi")));
     this.userfiles      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfiles")));
     this.SaveAction     = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.pipelinesearch = ((System.Windows.Controls.DockPanel)(this.FindName("pipelinesearch")));
     this.Comboxfx       = ((System.Windows.Controls.ComboBox)(this.FindName("Comboxfx")));
     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.save           = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.pager          = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
 }
 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%BF%90%E8%90%A5%E7%BB%8F%E7%90%86%E5%AE%A1%E6%A0%B8.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.minshgasnum    = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("minshgasnum")));
     this.feishgasnum    = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("feishgasnum")));
     this.DeleteAction   = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteAction")));
     this.SaveAction     = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.SubmitAction   = ((Com.Aote.Behaviors.HQLAction)(this.FindName("SubmitAction")));
     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.pipelinego     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("pipelinego")));
     this.save           = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.pager          = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.submittip      = ((Com.Aote.Controls.MessageTipObj)(this.FindName("submittip")));
 }
 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%E6%94%B6%E8%B4%B9%E5%8F%91%E7%A5%A8%E8%A1%A5%E6%89" +
                                                                   "%93.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.feetype        = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("feetype")));
     this.DeleteAction   = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteAction")));
     this.userfiles      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfiles")));
     this.SaveAction     = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     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.save           = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.userfilego     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfilego")));
     this.pager          = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.kabiaoprint    = ((System.Windows.Controls.Grid)(this.FindName("kabiaoprint")));
     this.cyqprint1      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("cyqprint1")));
     this.print          = ((Com.Aote.Controls.PrintObj)(this.FindName("print")));
 }
Ejemplo n.º 18
0
 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%A1%A5%E6%8A%98.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.bhzlist        = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("bhzlist")));
     this.buzhefei       = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("buzhefei")));
     this.zzobj          = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("zzobj")));
     this.print          = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("print")));
     this.printfp        = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("printfp")));
     this.updateuser     = ((Com.Aote.Behaviors.HQLAction)(this.FindName("updateuser")));
     this.users          = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("users")));
     this.userfilego1    = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfilego1")));
     this.SaveAction     = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.userfile       = ((System.Windows.Controls.Grid)(this.FindName("userfile")));
     this.save           = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.ComboBox_road  = ((System.Windows.Controls.ComboBox)(this.FindName("ComboBox_road")));
     this.userfilesearch = ((System.Windows.Controls.Grid)(this.FindName("userfilesearch")));
     this.searchbutton   = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.userfiles      = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.userfileslist  = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfileslist")));
     this.buzheprint     = ((System.Windows.Controls.Grid)(this.FindName("buzheprint")));
     this.fzprint        = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fzprint")));
     this.guoshuiprint   = ((System.Windows.Controls.Grid)(this.FindName("guoshuiprint")));
     this.fkprint        = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fkprint")));
     this.pager          = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
 }
 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%8E%89%E6%B0%94%E7%99%BB%E8%AE%B0.xaml", System.UriKind.Relative));
     this.LayoutRoot      = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.card            = ((Com.Aote.ObjectTools.NewGeneralICCard)(this.FindName("card")));
     this.zhikashibailist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("zhikashibailist")));
     this.losttypelist    = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("losttypelist")));
     this.DeleteAction    = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteAction")));
     this.userfiles       = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfiles")));
     this.SaveAction      = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.SubmitAction    = ((Com.Aote.Behaviors.HQLAction)(this.FindName("SubmitAction")));
     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.pipelinego      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("pipelinego")));
     this.save            = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.caozuo          = ((System.Windows.Controls.ComboBox)(this.FindName("caozuo")));
     this.pager           = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.submittip       = ((Com.Aote.Controls.MessageTipObj)(this.FindName("submittip")));
 }
 private void save_Click(object sender, RoutedEventArgs e)
 {
     String sql="update t_handplan set f_username='******'"+
         ",lastinputdate='"+ui_lastinputdatechange.Text+"'"+
         ",lastinputgasnum='"+ui_lastinputgasnumchange.Text+"'"+
         ",f_inputtor='"+ui_inputtorchange.SelectedValue+"'"+
         ",f_phone='"+ui_phonechange.Text+"'"+
         ",f_address='"+ui_addresschange.Text+"'"+
         ",f_usertype='"+ui_usertypechange.Text+"'"+
         ",f_weizhi='"+ui_weizhichange.Text+"'"+
         ",f_gasproperties='" + CoboxGasPro.SelectedValue + "'" +
         ",f_gaspricetype='" + CoboxGas.SelectedValue + "'" +
         ",f_gasprice='"+ui_gaspricechange.Text+"'"+
         ",f_metertype='" + ui_metertypechange.SelectedValue + "'" +
         ",f_gasmetermanufacturers='"+ui_gasmetermanufacturerschange.Text+"'"+
         ",f_gasmeterstyle='"+ui_gasmeterstylechange.Text+"'"+
         ",f_meternumber='"+ui_meternumberchange.Text+"'"+
         ",f_aliasname='"+ui_aliasnamechange.Text+"' where f_state='未抄表' and f_userid='"+ui_userid.Text+"'";
     HQLAction action = new HQLAction();
     action.HQL = sql;
     action.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
     action.Name = "abc";
     action.Invoke();
     //如果数据有误,页面提示
     //回调页面保存按钮功能
     SyncActionFactory save = (from p in loader.Res where p.Name.Equals("SaveAction") select p).First() as SyncActionFactory;
     save.Invoke();
     //updatehandplan.New();
 }
Ejemplo n.º 21
0
 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%94%AE%E6%B0%94%E6%94%B6%E8%B4%B9.xaml", System.UriKind.Relative));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.whf                  = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("whf")));
     this.xgys                 = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("xgys")));
     this.gsxiangou            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("gsxiangou")));
     this.cainuanji            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("cainuanji")));
     this.kbsellgas            = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("kbsellgas")));
     this.kbbysellgas          = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("kbbysellgas")));
     this.paylist              = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("paylist")));
     this.openxiangou          = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openxiangou")));
     this.hunhes               = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("hunhes")));
     this.fbffobj              = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fbffobj")));
     this.mwhfobj              = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mwhfobj")));
     this.fwhfobj              = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fwhfobj")));
     this.mxggasobj            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mxggasobj")));
     this.mzdgasobj            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mzdgasobj")));
     this.fzdgasobj            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fzdgasobj")));
     this.mygqlobj             = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mygqlobj")));
     this.fapiaogeshi          = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fapiaogeshi")));
     this.kbusers              = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("kbusers")));
     this.kbfee                = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("kbfee")));
     this.fpinfosobj           = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fpinfosobj")));
     this.fillgas              = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fillgas")));
     this.SaveAction           = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.UpdateCardTimes      = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateCardTimes")));
     this.DeleteFillgas        = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteFillgas")));
     this.UpdateSellgas        = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateSellgas")));
     this.Updatefapiao         = ((Com.Aote.Behaviors.HQLAction)(this.FindName("Updatefapiao")));
     this.UpdateUserfile       = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateUserfile")));
     this.RollbackAction       = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("RollbackAction")));
     this.UpdateBeginFeeAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateBeginFeeAction")));
     this.zzobj                = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("zzobj")));
     this.card                 = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("card")));
     this.zzprint              = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("zzprint")));
     this.sellgasprint         = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("sellgasprint")));
     this.whfprint             = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("whfprint")));
     this.userfilesearch       = ((System.Windows.Controls.DockPanel)(this.FindName("userfilesearch")));
     this.kbfee1               = ((System.Windows.Controls.Grid)(this.FindName("kbfee1")));
     this.f_userid             = ((System.Windows.Controls.TextBox)(this.FindName("f_userid")));
     this.times                = ((System.Windows.Controls.TextBox)(this.FindName("times")));
     this.whfdate              = ((System.Windows.Controls.DatePicker)(this.FindName("whfdate")));
     this.save2                = ((System.Windows.Controls.Button)(this.FindName("save2")));
     this.kbgaslist            = ((System.Windows.Controls.DataGrid)(this.FindName("kbgaslist")));
     this.guoshuiprint         = ((System.Windows.Controls.Grid)(this.FindName("guoshuiprint")));
     this.fkprint              = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fkprint")));
     this.aofengprint          = ((System.Windows.Controls.Grid)(this.FindName("aofengprint")));
     this.fkprint1             = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fkprint1")));
     this.zheziprint           = ((System.Windows.Controls.Grid)(this.FindName("zheziprint")));
     this.zheprint             = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("zheprint")));
     this.submittip            = ((Com.Aote.Controls.MessageTipObj)(this.FindName("submittip")));
 }
        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();
            
        }
Ejemplo n.º 23
0
        private static void OnCanSaveChanged(DependencyObject dp, DependencyPropertyChangedEventArgs args)
        {
            HQLAction bea = (HQLAction)dp;

            if (bea.CanSave)
            {
                bea.Invoke();
            }
            bea.CanSave = false;
        }
Ejemplo n.º 24
0
 private void onlySave_Click(object sender, RoutedEventArgs e)
 {
     ui_meterBusy.IsBusy = true;
     string sql = "update t_changmeter set f_cancelnote='" + ui_f_cancelnote.Text + "',f_canceldate='" + ui_f_canceldate.SelectedDate + "',f_cxoperation='"+ ui_f_cxoperation.Text +"',f_payfeevalid='无效' where id=" + ui_id.Text;
     HQLAction action = new HQLAction();
     action.HQL = sql;
     action.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
     action.Name = "t_changmeter";
     action.Completed += action_Completed;
     action.Invoke();
 }
 private void save_Click(object sender, RoutedEventArgs e)
 {
     ui_userBusy1.IsBusy = true;
     string sql = "update t_otherfee set f_conclenote='" + ui_f_conclenote.Text + "',f_payfeevalid='无效' where id=" + ui_id.Text;
     HQLAction action = new HQLAction();
     action.HQL = sql;
     action.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
     action.Name = "t_otherfee";
     action.Completed += action_Completed;
     action.Invoke();
 }
Ejemplo n.º 26
0
 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%9D%9E%E6%B0%91%E7%94%A8%E6%9C%BA%E8%A1%A8%E5%BB%BA%E6%A1%A3.xaml", System.UriKind.Relative));
     this.LayoutRoot       = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.units            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("units")));
     this.unitinfoslist    = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("unitinfoslist")));
     this.pinpailist       = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("pinpailist")));
     this.usegaslist       = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("usegaslist")));
     this.ksnumobj         = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("ksnumobj")));
     this.ksnumobj1        = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("ksnumobj1")));
     this.openkafei        = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openkafei")));
     this.whfobj           = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("whfobj")));
     this.dkfobj           = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("dkfobj")));
     this.xkfobj           = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("xkfobj")));
     this.mzdgasobj        = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mzdgasobj")));
     this.fzdgasobj        = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fzdgasobj")));
     this.hunhes           = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("hunhes")));
     this.devicelist       = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("devicelist")));
     this.DeleteAction     = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("DeleteAction")));
     this.DeleteApply      = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteApply")));
     this.DeleteDevice     = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteDevice")));
     this.DeleteDirty      = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteDirty")));
     this.BatchSave        = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("BatchSave")));
     this.SubmitAction     = ((Com.Aote.Behaviors.HQLAction)(this.FindName("SubmitAction")));
     this.SaveAction       = ((Com.Aote.Behaviors.SyncActionFactory)(this.FindName("SaveAction")));
     this.getbianhao       = ((Com.Aote.Behaviors.CallMethodAction)(this.FindName("getbianhao")));
     this.saveu            = ((Com.Aote.Behaviors.CallMethodAction)(this.FindName("saveu")));
     this.userfilesearch   = ((System.Windows.Controls.Grid)(this.FindName("userfilesearch")));
     this.searchbutton     = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.userfiles        = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.userfileslist    = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfileslist")));
     this.userfile         = ((System.Windows.Controls.Grid)(this.FindName("userfile")));
     this.userfilego       = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfilego")));
     this.save             = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.edite            = ((System.Windows.Controls.Button)(this.FindName("edite")));
     this.CoboxGasPro      = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxGasPro")));
     this.CoboxGas         = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxGas")));
     this.CoboxPinpai      = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxPinpai")));
     this.DaXiaoKa         = ((System.Windows.Controls.ComboBox)(this.FindName("DaXiaoKa")));
     this.unitinfosearch   = ((System.Windows.Controls.DockPanel)(this.FindName("unitinfosearch")));
     this.unitsearchbutton = ((System.Windows.Controls.Button)(this.FindName("unitsearchbutton")));
     this.unitinfos        = ((System.Windows.Controls.DataGrid)(this.FindName("unitinfos")));
     this.devices          = ((System.Windows.Controls.DataGrid)(this.FindName("devices")));
     this.pager            = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.submittip        = ((Com.Aote.Controls.MessageTipObj)(this.FindName("submittip")));
     this.deletettip       = ((Com.Aote.Controls.MessageTipObj)(this.FindName("deletettip")));
     this.savedone         = ((Com.Aote.Controls.MessageTipObj)(this.FindName("savedone")));
 }
Ejemplo n.º 27
0
 private void action_Completed(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
 {
     string sql = "update t_userfiles set f_initcardsellgas = null,f_gasmeterstyle='"
     + f_newgasmeterstyle.Text + "',f_gasmetermanufacturers='" + f_newgasmetermanufacturers.Text +
     "',f_metertype='" + f_qbnumber.Text + "',f_gaswatchbrand='" + CoboxPinpai.Text +
     "' where id=" + ui_id.Text;
     HQLAction action1 = new HQLAction();
     action1.HQL = sql;
     action1.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
     action1.Name = "t_changmeter";
     action1.Completed += action_Completed1;
     action1.Invoke();
 }
Ejemplo n.º 28
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            ui_searchBusy.IsBusy = true;
            search.Search();

            string sql = "update t_repairsys set f_downloadstatus=NULL,f_accepter='" + f_accepter.SelectedValue + "' where " + search.Condition + "";
            HQLAction action = new HQLAction();
            action.HQL = sql;
            action.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
            action.Name = "t_repairsys";
            action.Completed += action_Completed;
            action.Invoke();

        }
Ejemplo n.º 29
0
 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%9C%BA%E8%A1%A8%E4%BA%A4%E8%B4%B9.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.whf            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("whf")));
     this.openxiangou    = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openxiangou")));
     this.openkafei      = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openkafei")));
     this.paylist        = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("paylist")));
     this.kbsellgas      = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("kbsellgas")));
     this.selected       = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("selected")));
     this.kbusers        = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("kbusers")));
     this.kbfee          = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("kbfee")));
     this.fpinfosobj     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fpinfosobj")));
     this.UpdateHandplan = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateHandplan")));
     this.SaveAction     = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.loadfapiao     = ((Com.Aote.Behaviors.ScriptAction)(this.FindName("loadfapiao")));
     this.search         = ((Com.Aote.ObjectTools.SearchObject)(this.FindName("search")));
     this.userfileslist  = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfileslist")));
     this.zzobj          = ((Com.Aote.ObjectTools.XYZZObj)(this.FindName("zzobj")));
     this.LayoutRoot1    = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot1")));
     this.pager          = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.userfilesearch = ((System.Windows.Controls.DockPanel)(this.FindName("userfilesearch")));
     this.searchbutton   = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.userfiles      = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.dataGrid1      = ((System.Windows.Controls.DataGrid)(this.FindName("dataGrid1")));
     this.kbfee1         = ((System.Windows.Controls.Grid)(this.FindName("kbfee1")));
     this.f_userid       = ((System.Windows.Controls.TextBox)(this.FindName("f_userid")));
     this.whfdate        = ((System.Windows.Controls.DatePicker)(this.FindName("whfdate")));
     this.shoukuan       = ((System.Windows.Controls.TextBox)(this.FindName("shoukuan")));
     this.save22         = ((System.Windows.Controls.TextBox)(this.FindName("save22")));
     this.save2          = ((System.Windows.Controls.Button)(this.FindName("save2")));
     this.cancle         = ((System.Windows.Controls.Button)(this.FindName("cancle")));
     this.guoshuiprint   = ((System.Windows.Controls.Grid)(this.FindName("guoshuiprint")));
     this.fkprint        = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fkprint")));
     this.aofengprint    = ((System.Windows.Controls.Grid)(this.FindName("aofengprint")));
     this.fkprint1       = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fkprint1")));
     this.zheziprint     = ((System.Windows.Controls.Grid)(this.FindName("zheziprint")));
     this.zheprint       = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("zheprint")));
     this.print          = ((Com.Aote.Controls.PrintObj)(this.FindName("print")));
     this.print1         = ((Com.Aote.Controls.PrintObj)(this.FindName("print1")));
     this.zzprint        = ((Com.Aote.Controls.PrintObj)(this.FindName("zzprint")));
     this.nouser         = ((Com.Aote.Controls.MessageTipObj)(this.FindName("nouser")));
 }
 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")));
 }
Ejemplo n.º 31
0
 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%B0%91%E7%94%A8%E8%90%A5%E4%B8%9A%E5%8E%85%E5%8F%91%E5%8D%A1%E5%94" +
                                                                   "%AE%E6%B0%94.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.qbpplist       = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("qbpplist")));
     this.usegaslist     = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("usegaslist")));
     this.fakafei        = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fakafei")));
     this.gsxiangou      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("gsxiangou")));
     this.payfeetypelist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("payfeetypelist")));
     this.paylist        = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("paylist")));
     this.openkafei      = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openkafei")));
     this.openxiangou    = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openxiangou")));
     this.hunhes         = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("hunhes")));
     this.userfiles1     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfiles1")));
     this.sellgasobj     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("sellgasobj")));
     this.userfilego     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfilego")));
     this.card           = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("card")));
     this.print          = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("print")));
     this.UpdateFaka     = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateFaka")));
     this.UpdateSellgas  = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateSellgas")));
     this.UpdateUserfile = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateUserfile")));
     this.RollbackAction = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("RollbackAction")));
     this.SaveAction     = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.pager          = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.userfilesearch = ((System.Windows.Controls.Grid)(this.FindName("userfilesearch")));
     this.searchbutton   = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.userfiles      = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.userfileslist  = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfileslist")));
     this.userfile       = ((System.Windows.Controls.Grid)(this.FindName("userfile")));
     this.save           = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.CoboxPinp      = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxPinp")));
     this.DaXiaoKa       = ((System.Windows.Controls.ComboBox)(this.FindName("DaXiaoKa")));
     this.CoboxGasPro    = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxGasPro")));
     this.times          = ((System.Windows.Controls.TextBox)(this.FindName("times")));
     this.CoboxGas       = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxGas")));
     this.guoshuiprint   = ((System.Windows.Controls.Grid)(this.FindName("guoshuiprint")));
     this.fkprint        = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fkprint")));
     this.aofengprint    = ((System.Windows.Controls.Grid)(this.FindName("aofengprint")));
     this.fkprint1       = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fkprint1")));
 }
 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%94%B6%E5%8F%96%E9%9D%9E%E6%B0%91%E7%94%A8%E5%B9%B4%E8%B4%B9.xaml", System.UriKind.Relative));
     this.LayoutRoot           = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.gsxiangou            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("gsxiangou")));
     this.cainuanji            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("cainuanji")));
     this.kbsellgas            = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("kbsellgas")));
     this.kbbysellgas          = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("kbbysellgas")));
     this.card                 = ((Com.Aote.ObjectTools.NewGeneralICCard)(this.FindName("card")));
     this.paylist              = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("paylist")));
     this.openxiangou          = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openxiangou")));
     this.hunhes               = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("hunhes")));
     this.fbffobj              = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fbffobj")));
     this.mwhfobj              = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mwhfobj")));
     this.fwhfobj              = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fwhfobj")));
     this.mxggasobj            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mxggasobj")));
     this.mzdgasobj            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mzdgasobj")));
     this.fzdgasobj            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fzdgasobj")));
     this.mygqlobj             = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mygqlobj")));
     this.kbusers              = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("kbusers")));
     this.kbfee                = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("kbfee")));
     this.UpdateBeginFeeAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateBeginFeeAction")));
     this.SaveAction           = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.fpinfosobj           = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fpinfosobj")));
     this.BackSave             = ((Com.Aote.Behaviors.SyncActionFactory)(this.FindName("BackSave")));
     this.kasave               = ((Com.Aote.Behaviors.CallMethodAction)(this.FindName("kasave")));
     this.userfilesearch       = ((System.Windows.Controls.DockPanel)(this.FindName("userfilesearch")));
     this.searchbutton         = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.pager                = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.userfiles            = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.userfileslist        = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfileslist")));
     this.kbfee1               = ((System.Windows.Controls.Grid)(this.FindName("kbfee1")));
     this.f_userid             = ((System.Windows.Controls.TextBox)(this.FindName("f_userid")));
     this.whfdate              = ((System.Windows.Controls.DatePicker)(this.FindName("whfdate")));
     this.save2                = ((System.Windows.Controls.Button)(this.FindName("save2")));
     this.kbgaslist            = ((System.Windows.Controls.DataGrid)(this.FindName("kbgaslist")));
     this.kabiaoprint          = ((System.Windows.Controls.Grid)(this.FindName("kabiaoprint")));
     this.cyqprint1            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("cyqprint1")));
     this.submittip            = ((Com.Aote.Controls.MessageTipObj)(this.FindName("submittip")));
     this.print                = ((Com.Aote.Controls.PrintObj)(this.FindName("print")));
 }
Ejemplo n.º 33
0
 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%B0%91%E7%94%A8%E6%8A%A5%E8%A3%85%E5%BB%BA%E6%A1%A3.xaml", System.UriKind.Relative));
     this.LayoutRoot       = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.pinpailist       = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("pinpailist")));
     this.usegaslist       = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("usegaslist")));
     this.openkafei        = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openkafei")));
     this.openxiangou      = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openxiangou")));
     this.userfilego       = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfilego")));
     this.areafileslist    = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("areafileslist")));
     this.areas            = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("areas")));
     this.updategasad      = ((Com.Aote.Behaviors.HQLAction)(this.FindName("updategasad")));
     this.ksnumobj         = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("ksnumobj")));
     this.ksnumobj1        = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("ksnumobj1")));
     this.SaveAction       = ((Com.Aote.Behaviors.SyncActionFactory)(this.FindName("SaveAction")));
     this.getbianhao       = ((Com.Aote.Behaviors.CallMethodAction)(this.FindName("getbianhao")));
     this.saveu            = ((Com.Aote.Behaviors.CallMethodAction)(this.FindName("saveu")));
     this.updatead         = ((Com.Aote.Behaviors.CallMethodAction)(this.FindName("updatead")));
     this.search           = ((Com.Aote.ObjectTools.SearchObject)(this.FindName("search")));
     this.userfileslist    = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfileslist")));
     this.pager            = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.areafilesearch   = ((System.Windows.Controls.DockPanel)(this.FindName("areafilesearch")));
     this.areasearchbutton = ((System.Windows.Controls.Button)(this.FindName("areasearchbutton")));
     this.areafiles        = ((System.Windows.Controls.DataGrid)(this.FindName("areafiles")));
     this.userfilesearch   = ((System.Windows.Controls.DockPanel)(this.FindName("userfilesearch")));
     this.searchbutton     = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.pager1           = ((System.Windows.Controls.DataPager)(this.FindName("pager1")));
     this.userfiles        = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.userfile         = ((System.Windows.Controls.DockPanel)(this.FindName("userfile")));
     this.save             = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.save2            = ((System.Windows.Controls.Button)(this.FindName("save2")));
     this.cancel           = ((System.Windows.Controls.Button)(this.FindName("cancel")));
     this.CoboxGasPro      = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxGasPro")));
     this.CoboxGas         = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxGas")));
     this.CoboxPinpai      = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxPinpai")));
     this.DaXiaoKa         = ((System.Windows.Controls.ComboBox)(this.FindName("DaXiaoKa")));
     this.savedone         = ((Com.Aote.Controls.MessageTipObj)(this.FindName("savedone")));
     this.huidanprint      = ((System.Windows.Controls.Grid)(this.FindName("huidanprint")));
     this.print            = ((Com.Aote.Controls.PrintObj)(this.FindName("print")));
 }
 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%B6%85%E7%94%A8%E5%8F%91%E5%8D%A1%E5%94%AE%E6%B0%94.xaml", System.UriKind.Relative));
     this.LayoutRoot     = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.gsxiangou      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("gsxiangou")));
     this.minshgasnum    = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("minshgasnum")));
     this.feishgasnum    = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("feishgasnum")));
     this.card           = ((Com.Aote.ObjectTools.NewGeneralICCard)(this.FindName("card")));
     this.paylist        = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("paylist")));
     this.openkafei      = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openkafei")));
     this.openxiangou    = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openxiangou")));
     this.whfobj         = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("whfobj")));
     this.fakafei        = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fakafei")));
     this.mxggasobj      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mxggasobj")));
     this.mzdgasobj      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mzdgasobj")));
     this.fzdgasobj      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fzdgasobj")));
     this.hunhes         = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("hunhes")));
     this.userfiles1     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfiles1")));
     this.sellgasobj     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("sellgasobj")));
     this.fpinfosobj     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fpinfosobj")));
     this.changmeters    = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("changmeters")));
     this.userfilego     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfilego")));
     this.SaveAction     = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.SubmitAction   = ((Com.Aote.Behaviors.HQLAction)(this.FindName("SubmitAction")));
     this.pager          = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.userfilesearch = ((System.Windows.Controls.Grid)(this.FindName("userfilesearch")));
     this.searchbutton   = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.userfiles      = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.userfileslist  = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfileslist")));
     this.userfile       = ((System.Windows.Controls.Grid)(this.FindName("userfile")));
     this.save           = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.qbnumber       = ((System.Windows.Controls.TextBox)(this.FindName("qbnumber")));
     this.kabiaoprint    = ((System.Windows.Controls.Grid)(this.FindName("kabiaoprint")));
     this.kbprint        = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("kbprint")));
     this.kabiaoprint1   = ((System.Windows.Controls.Grid)(this.FindName("kabiaoprint1")));
     this.cyqprint1      = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("cyqprint1")));
     this.print          = ((Com.Aote.Controls.PrintObj)(this.FindName("print")));
     this.print1         = ((Com.Aote.Controls.PrintObj)(this.FindName("print1")));
 }
Ejemplo n.º 35
0
        private void allSend_Click(object sender, RoutedEventArgs e)
        {
            BaseObjectList list = daninfos.ItemsSource as BaseObjectList;

            //对于每一条记录
            foreach (GeneralObject go in list)
            {
                // id
                String smsId = go.GetPropertyValue("id").ToString();

                String sql = "update t_sms set f_state='未发' where id="+ smsId +"";
                HQLAction action = new HQLAction();
                action.Name = "abc";
                action.HQL = sql;
                action.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
                action.Invoke();
            }
        }
 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%A1%A3%E6%A1%88%E4%BF%AE%E6%94%B9%E5%AD%97%E6%AE%B5.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.userfilesearch = ((System.Windows.Controls.DockPanel)(this.FindName("userfilesearch")));
     this.searchbutton = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.userfiles = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.userfileslist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("userfileslist")));
     this.save = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.userfile = ((System.Windows.Controls.Grid)(this.FindName("userfile")));
     this.userfilego = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfilego")));
 }
Ejemplo n.º 37
0
 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")));
 }
Ejemplo n.º 38
0
 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%97%A5%E6%9C%9F%E6%97%B6%E9%97%B4.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.DeleteAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteAction")));
     this.personsearch = ((System.Windows.Controls.StackPanel)(this.FindName("personsearch")));
     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.person = ((System.Windows.Controls.DockPanel)(this.FindName("person")));
     this.persongo = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("persongo")));
     this.save = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.deletettip = ((Com.Aote.Controls.MessageTipObj)(this.FindName("deletettip")));
 }
 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%AE%89%E6%A3%80%E8%AE%A1%E5%88%92%E7%94%9F%E6%88%90.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ybuserfilego = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("ybuserfilego")));
     this.userfileslist = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfileslist")));
     this.MakeCheck = ((Com.Aote.Behaviors.HQLAction)(this.FindName("MakeCheck")));
     this.SaveAction = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.userfilesearch = ((System.Windows.Controls.DockPanel)(this.FindName("userfilesearch")));
     this.searchbutton = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.userfiles = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.ybuserfile = ((System.Windows.Controls.Grid)(this.FindName("ybuserfile")));
     this.save = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.pager = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
 }
Ejemplo n.º 40
0
 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%9A%E6%B0%94.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.apply = ((System.Windows.Controls.Grid)(this.FindName("apply")));
     this.applygo = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("applygo")));
     this.save = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.submittip = ((Com.Aote.Controls.MessageTipObj)(this.FindName("submittip")));
 }
 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/%E7%A8%BD%E6%9F%A5%E6%9C%AA%E4%BD%8F%E7%BD%AE%E7%A9%BA.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.fgslist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("fgslist")));
     this.zonggongsi = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("zonggongsi")));
     this.jicha = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("jicha")));
     this.jichalist = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("jichalist")));
     this.UpdateAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateAction")));
     this.daninfosearch = ((System.Windows.Controls.Grid)(this.FindName("daninfosearch")));
     this.dansearchbutton = ((System.Windows.Controls.Button)(this.FindName("dansearchbutton")));
     this.jichatj = ((System.Windows.Controls.DataGrid)(this.FindName("jichatj")));
     this.pager2 = ((System.Windows.Controls.DataPager)(this.FindName("pager2")));
     this.daninfos = ((System.Windows.Controls.DataGrid)(this.FindName("daninfos")));
 }
Ejemplo n.º 42
0
 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%A0%A1%E8%A1%A8.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.rect = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("rect")));
     this.SaveAction = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.DeleteAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteAction")));
     this.pager = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.rectifysearch = ((System.Windows.Controls.Grid)(this.FindName("rectifysearch")));
     this.searchbutton = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.rectifies = ((System.Windows.Controls.DataGrid)(this.FindName("rectifies")));
     this.rectifieslist = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("rectifieslist")));
     this.rectifyinfo = ((System.Windows.Controls.DockPanel)(this.FindName("rectifyinfo")));
     this.rectifyItem = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("rectifyItem")));
 }
 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/%E7%BB%B4%E7%AE%A1%E8%B4%B9%E4%BB%B7%E6%A0%BC%E7%BB%B4%E6%8A%A4.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.scbdw = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("scbdw")));
     this.SaveAction = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.deleteaction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("deleteaction")));
     this.searchHandUserUnit = ((System.Windows.Controls.StackPanel)(this.FindName("searchHandUserUnit")));
     this.searchbutton = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.handUserUnits = ((System.Windows.Controls.DataGrid)(this.FindName("handUserUnits")));
     this.personlist = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("personlist")));
     this.pager = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.handUserUnit = ((System.Windows.Controls.Grid)(this.FindName("handUserUnit")));
     this.deletettip = ((Com.Aote.Controls.MessageTipObj)(this.FindName("deletettip")));
 }
Ejemplo n.º 44
0
 private void save2_Click(object sender, RoutedEventArgs e)
 {
     ObjectList ol = dataGrid1.ItemsSource as ObjectList;
     foreach (GeneralObject item in ol)
     {
         if (item.IsChecked)
         {
             string f_zhinajin = item.GetPropertyValue("f_zhinajin").ToString();
             string id =  item.GetPropertyValue("id").ToString();
             HQLAction hql = new HQLAction();
             hql.Name = "hql";
             hql.WebClientInfo = ol.WebClientInfo;
             hql.HQL = "update t_handplan set f_jmzhinajin=" + f_zhinajin +" where id="+id;
             hql.Invoke();
         }
     }
     BatchExcuteAction SaveAction = FrameworkElementExtension.FindResource(this.save2, "SaveAction") as BatchExcuteAction;
     SaveAction.Invoke();
 }
Ejemplo n.º 45
0
        private void save_Click(object sender, RoutedEventArgs e)
        {
            ui_userfileschange.IsBusy = true;

            String sql="update t_handplan set f_username='******'"+
                ",lastinputdate='"+ui_lastinputdatechange.Text+"'"+
                ",lastinputgasnum='"+ui_lastinputgasnumchange.Text+"'"+
                ",f_inputtor='"+ui_inputtorchange.SelectedValue+"'"+
                ",f_phone='"+ui_phonechange.Text+"'"+
                ",f_address='"+ui_addresschange.Text+"'"+
                ",f_usertype='"+ui_usertypechange.Text+"'"+
                ",f_weizhi='"+ui_weizhichange.Text+"'"+
                ",f_gasproperties='" + CoboxGasPro.SelectedValue + "'" +
                ",f_gaspricetype='" + CoboxGas.SelectedValue + "'" +
                ",f_gasprice='"+ui_gaspricechange.Text+"'"+
                ",f_metertype='" + ui_metertypechange.SelectedValue + "'" +
                ",f_gasmetermanufacturers='"+ui_gasmetermanufacturerschange.Text+"'"+
                ",f_gasmeterstyle='"+ui_gasmeterstylechange.Text+"'"+
                ",f_meternumber='"+ui_meternumberchange.Text+"'"+
                 ",f_stairtype='" + CoboxStair.SelectedValue.ToString() + "'" +
                ",f_aliasname='"+ui_aliasnamechange.Text+"' where f_state='未抄表' and f_userid='"+ui_userid.Text+"'";
            HQLAction action = new HQLAction();
            action.HQL = sql;
            action.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
            action.Name = "abc";
            action.Invoke();

            GeneralObject obj = userfileschange.DataContext as GeneralObject;
            userid = obj.GetPropertyValue("f_userid")+"";
            if ((obj.GetPropertyValue("f_meternumber") + "").Equals(obj.GetPropertyValue("f_meternumberchange") + "") && (obj.GetPropertyValue("terminal_name") + "").Equals(obj.GetPropertyValue("terminal_namechange") + "") && (obj.GetPropertyValue("meter_phone") + "").Equals(obj.GetPropertyValue("meter_phonechange") + ""))
                ui_refreshCachechange.Text = "0";
            else
            //{
                //if ("物联网表".Equals(ui_gasmeterstylechange.Text))
                    ui_refreshCachechange.Text = "1";
                //else
                    //ui_refreshCachechange.Text = "0";
            //}
            BatchExcuteAction save = (from p in loader.Res where p.Name.Equals("SaveAction") select p).First() as BatchExcuteAction;
            save.Completed += save_Completed;
            save.Invoke();
        }
Ejemplo n.º 46
0
 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%A1%A3%E6%A1%88%E4%BF%AE%E6%94%B9%E5%AD%97%E6%AE%B5.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.userfilesearch = ((System.Windows.Controls.DockPanel)(this.FindName("userfilesearch")));
     this.searchbutton   = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.userfiles      = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.userfileslist  = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("userfileslist")));
     this.save           = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.userfile       = ((System.Windows.Controls.Grid)(this.FindName("userfile")));
     this.userfilego     = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfilego")));
 }
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     try {
         GeneralObject go = daninfos.SelectedItem as GeneralObject;
         if (go != null)
         {
             f_userid = go.GetPropertyValue("f_userid") + "";
             string sql = "update t_userfiles set f_operate_zl='欠费', f_returnvalueoperate=" + "'1' " +
                          " where f_gasmeterstyle in ('物联网表','物联表','积成远传气表','远传表','短信表') and f_userid='" + f_userid + "'";
             HQLAction action = new HQLAction();
             action.HQL = sql;
             action.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
             action.Name = "t_userfiles";
             action.Completed += action_Completed;
             action.Invoke();
         }
     }
     catch(Exception ex){
     }
 }
Ejemplo n.º 48
0
 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%A0%A1%E8%A1%A8.xaml", System.UriKind.Relative));
     this.LayoutRoot    = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.rect          = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("rect")));
     this.SaveAction    = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.DeleteAction  = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteAction")));
     this.pager         = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.rectifysearch = ((System.Windows.Controls.Grid)(this.FindName("rectifysearch")));
     this.searchbutton  = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.rectifies     = ((System.Windows.Controls.DataGrid)(this.FindName("rectifies")));
     this.rectifieslist = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("rectifieslist")));
     this.rectifyinfo   = ((System.Windows.Controls.DockPanel)(this.FindName("rectifyinfo")));
     this.rectifyItem   = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("rectifyItem")));
 }
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     ui_searchBusy.IsBusy = true;
     search.Search();
     if (!"1=1".Equals(search.Condition.Trim()) && null != search.Condition)
     {
         //提交更改
         string sql = "update t_userfiles set f_operate_zl='" + f_operate_zl_zl.SelectedValue + "', f_returnvalueoperate=" + "'1' " +
                          " where f_gasmeterstyle in ('物联网表','物联表','积成远传气表','远传表','短信表') and " + search.Condition + "";
         HQLAction action = new HQLAction();
         action.HQL = sql;
         action.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
         action.Name = "t_userfiles";
         action.Completed += action_Completed;
         action.Invoke();
     }
     else {
         MessageBox.Show("请先按照条件筛选出进行阀门操作的用户,再确认执行!");
         ui_searchBusy.IsBusy = false;
     }
 }
Ejemplo n.º 50
0
 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%A4%A7%E5%8E%85%E6%8A%A5%E5%BB%BA.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.userlist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("userlist")));
     this.DeleteAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteAction")));
     this.personsearch = ((System.Windows.Controls.StackPanel)(this.FindName("personsearch")));
     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.person = ((System.Windows.Controls.DockPanel)(this.FindName("person")));
     this.persongo = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("persongo")));
     this.save = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.test = ((System.Windows.Controls.Button)(this.FindName("test")));
     this.testname = ((System.Windows.Controls.TextBox)(this.FindName("testname")));
     this.age = ((System.Windows.Controls.TextBox)(this.FindName("age")));
     this.sex = ((System.Windows.Controls.ComboBox)(this.FindName("sex")));
 }
Ejemplo n.º 51
0
 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%8B%86%E8%BF%81%E7%AE%A1%E7%90%86.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.DeleteActionInfo = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteActionInfo")));
     this.zonggongsi = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("zonggongsi")));
     this.SaveAction = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.DeleteAction = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("DeleteAction")));
     this.chaiqian = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("chaiqian")));
     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.save = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.pager = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
 }
Ejemplo n.º 52
0
 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%8D%A2%E8%A1%A8%E6%94%B6%E8%B4%B9.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.userfiles = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfiles")));
     this.SaveAction = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     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.PagedObjectList)(this.FindName("applyslist")));
     this.apply = ((System.Windows.Controls.Grid)(this.FindName("apply")));
     this.applygo = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("applygo")));
     this.save = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.qbnumber = ((System.Windows.Controls.TextBox)(this.FindName("qbnumber")));
     this.pager = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
 }
Ejemplo n.º 53
0
 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%86%B2%E6%AD%A3.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.SubmitAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("SubmitAction")));
     this.fgslist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("fgslist")));
     this.zonggongsi = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("zonggongsi")));
     this.userfiles = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfiles")));
     this.SaveAction = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.pipelinesearch = ((System.Windows.Controls.DockPanel)(this.FindName("pipelinesearch")));
     this.Comboxfx = ((System.Windows.Controls.ComboBox)(this.FindName("Comboxfx")));
     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.pipelinego = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("pipelinego")));
     this.save = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.pager = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
 }
 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%8E%89%E6%B0%94%E6%B0%94%E9%87%8F%E6%A0%B8%E5%AF%B9.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.card = ((Com.Aote.ObjectTools.GeneralICCard)(this.FindName("card")));
     this.DeleteAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteAction")));
     this.userfiles = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfiles")));
     this.SaveAction = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.SubmitAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("SubmitAction")));
     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.pipelinego = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("pipelinego")));
     this.save = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.pager = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.submittip = ((Com.Aote.Controls.MessageTipObj)(this.FindName("submittip")));
 }
        private void start_Click(object sender, RoutedEventArgs e)
        {
            String flagName = name.Text.ToString();
            String state = value.Text.ToString();

            if (flagName == "短信功能开关")
            {
                //执行sql开关 状态 改为 开启 短信表里所有待发改为 未发
                String sql = "update t_smstemplate set f_state='开启' where f_name='短信功能开关'";
                HQLAction action = new HQLAction();
                action.Name = "abc";
                action.HQL = sql;
                action.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
                action.Invoke();

                sql = "update t_sms set f_state = '未发' where f_state = '待发'";
                action.HQL = sql;
                action.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
                action.Invoke();
            }
            else
            {
                //开关状态改为开启, 短信表里 此类 待发短信 状态改为 未发
                String sql = "update t_smstemplate set f_state='开启' where f_name='" + flagName + "'";
                HQLAction action = new HQLAction();
                action.Name = "abc";
                action.HQL = sql;
                action.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
                action.Invoke();

                sql = "update t_sms set f_state = '未发' where f_state = '待发' and f_templatename='"+ flagName +"'";
                action.HQL = sql;
                action.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
                action.Invoke();
            }
            value.Text = "开启";
        }
 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%B0%91%E7%94%A8%E6%9C%BA%E8%A1%A8%E5%BB%BA%E6%A1%A3.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.pinpailist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("pinpailist")));
     this.usegaslist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("usegaslist")));
     this.qblxlist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("qblxlist")));
     this.openkafei = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openkafei")));
     this.openxiangou = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openxiangou")));
     this.userfilego = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfilego")));
     this.areas = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("areas")));
     this.ksnumobj1 = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("ksnumobj1")));
     this.whfobj = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("whfobj")));
     this.mxggasobj = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mxggasobj")));
     this.DeleteAction = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("DeleteAction")));
     this.DeleteApply = ((Com.Aote.Behaviors.HQLAction)(this.FindName("DeleteApply")));
     this.BatchSave = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("BatchSave")));
     this.SubmitAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("SubmitAction")));
     this.areas1 = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("areas1")));
     this.SaveAction = ((Com.Aote.Behaviors.SyncActionFactory)(this.FindName("SaveAction")));
     this.getbianhao = ((Com.Aote.Behaviors.CallMethodAction)(this.FindName("getbianhao")));
     this.saveu = ((Com.Aote.Behaviors.CallMethodAction)(this.FindName("saveu")));
     this.userfilesearch = ((System.Windows.Controls.Grid)(this.FindName("userfilesearch")));
     this.searchbutton = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.userfiles = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.userfileslist = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfileslist")));
     this.save = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.userfile = ((System.Windows.Controls.Grid)(this.FindName("userfile")));
     this.CoboxGasPro = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxGasPro")));
     this.CoboxGas = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxGas")));
     this.CoboxPinpai = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxPinpai")));
     this.DaXiaoKa = ((System.Windows.Controls.ComboBox)(this.FindName("DaXiaoKa")));
     this.areafilesearch = ((System.Windows.Controls.DockPanel)(this.FindName("areafilesearch")));
     this.areasearchbutton = ((System.Windows.Controls.Button)(this.FindName("areasearchbutton")));
     this.areafiles = ((System.Windows.Controls.DataGrid)(this.FindName("areafiles")));
     this.areafileslist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("areafileslist")));
     this.pager = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.submittip = ((Com.Aote.Controls.MessageTipObj)(this.FindName("submittip")));
     this.deletettip = ((Com.Aote.Controls.MessageTipObj)(this.FindName("deletettip")));
     this.savedone = ((Com.Aote.Controls.MessageTipObj)(this.FindName("savedone")));
 }
Ejemplo n.º 57
0
 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%A1%A3%E6%A1%88%E5%8F%98%E6%9B%B4.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.tempobj = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("tempobj")));
     this.tobj = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("tobj")));
     this.personslist2 = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("personslist2")));
     this.card = ((Com.Aote.ObjectTools.NewGeneralICCard)(this.FindName("card")));
     this.zzobj = ((Com.Aote.ObjectTools.XYZZObj)(this.FindName("zzobj")));
     this.personslist1 = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("personslist1")));
     this.codelist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("codelist")));
     this.biangenggo = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("biangenggo")));
     this.userfiles = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfiles")));
     this.biangenglist = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("biangenglist")));
     this.tempgo = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("tempgo")));
     this.UpdateAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateAction")));
     this.biangeng = ((System.Windows.Controls.Grid)(this.FindName("biangeng")));
     this.save = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.fileschange = ((System.Windows.Controls.DataGrid)(this.FindName("fileschange")));
     this.userfile = ((System.Windows.Controls.Grid)(this.FindName("userfile")));
     this.fileschanges = ((System.Windows.Controls.DataGrid)(this.FindName("fileschanges")));
 }
 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%93%B6%E8%A1%8C%E5%94%AE%E6%B0%94%E6%94%B6%E8%B4%B9.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.xgys = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("xgys")));
     this.gsxiangou = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("gsxiangou")));
     this.cainuanji = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("cainuanji")));
     this.kbsellgas = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("kbsellgas")));
     this.kbbysellgas = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("kbbysellgas")));
     this.card = ((Com.Aote.ObjectTools.NewGeneralICCard)(this.FindName("card")));
     this.paylist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("paylist")));
     this.openxiangou = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openxiangou")));
     this.hunhes = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("hunhes")));
     this.fbffobj = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fbffobj")));
     this.mwhfobj = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mwhfobj")));
     this.fwhfobj = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fwhfobj")));
     this.mxggasobj = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mxggasobj")));
     this.mzdgasobj = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mzdgasobj")));
     this.fzdgasobj = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fzdgasobj")));
     this.mygqlobj = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("mygqlobj")));
     this.fapiaogeshi = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fapiaogeshi")));
     this.kbusers = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("kbusers")));
     this.kbfee = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("kbfee")));
     this.UpdateSellgas = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateSellgas")));
     this.Updatefapiao = ((Com.Aote.Behaviors.HQLAction)(this.FindName("Updatefapiao")));
     this.UpdateUserfile = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateUserfile")));
     this.RollbackAction = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("RollbackAction")));
     this.UpdateBeginFeeAction = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateBeginFeeAction")));
     this.SaveAction = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.fpinfosobj = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fpinfosobj")));
     this.userfilesearch = ((System.Windows.Controls.DockPanel)(this.FindName("userfilesearch")));
     this.searchbutton = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.pager = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.userfiles = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.userfileslist = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfileslist")));
     this.kbfee1 = ((System.Windows.Controls.Grid)(this.FindName("kbfee1")));
     this.f_userid = ((System.Windows.Controls.TextBox)(this.FindName("f_userid")));
     this.whfdate = ((System.Windows.Controls.DatePicker)(this.FindName("whfdate")));
     this.save2 = ((System.Windows.Controls.Button)(this.FindName("save2")));
     this.kbgaslist = ((System.Windows.Controls.DataGrid)(this.FindName("kbgaslist")));
     this.guoshuiprint = ((System.Windows.Controls.Grid)(this.FindName("guoshuiprint")));
     this.fkprint = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fkprint")));
     this.aofengprint = ((System.Windows.Controls.Grid)(this.FindName("aofengprint")));
     this.fkprint1 = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fkprint1")));
     this.submittip = ((Com.Aote.Controls.MessageTipObj)(this.FindName("submittip")));
     this.print = ((Com.Aote.Controls.PrintObj)(this.FindName("print")));
     this.print1 = ((Com.Aote.Controls.PrintObj)(this.FindName("print1")));
 }
 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%B0%91%E7%94%A8%E8%90%A5%E4%B8%9A%E5%8E%85%E5%8F%91%E5%8D%A1%E5%94" +
                 "%AE%E6%B0%94.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.qbpplist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("qbpplist")));
     this.usegaslist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("usegaslist")));
     this.fakafei = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fakafei")));
     this.gsxiangou = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("gsxiangou")));
     this.payfeetypelist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("payfeetypelist")));
     this.paylist = ((Com.Aote.ObjectTools.ObjectList)(this.FindName("paylist")));
     this.openkafei = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openkafei")));
     this.openxiangou = ((Com.Aote.ObjectTools.ChildWindowObj)(this.FindName("openxiangou")));
     this.hunhes = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("hunhes")));
     this.userfiles1 = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfiles1")));
     this.sellgasobj = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("sellgasobj")));
     this.userfilego = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("userfilego")));
     this.card = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("card")));
     this.print = ((Com.Aote.ObjectTools.ScriptObj)(this.FindName("print")));
     this.UpdateFaka = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateFaka")));
     this.UpdateSellgas = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateSellgas")));
     this.UpdateUserfile = ((Com.Aote.Behaviors.HQLAction)(this.FindName("UpdateUserfile")));
     this.RollbackAction = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("RollbackAction")));
     this.SaveAction = ((Com.Aote.Behaviors.BatchExcuteAction)(this.FindName("SaveAction")));
     this.pager = ((System.Windows.Controls.DataPager)(this.FindName("pager")));
     this.userfilesearch = ((System.Windows.Controls.Grid)(this.FindName("userfilesearch")));
     this.searchbutton = ((System.Windows.Controls.Button)(this.FindName("searchbutton")));
     this.userfiles = ((System.Windows.Controls.DataGrid)(this.FindName("userfiles")));
     this.userfileslist = ((Com.Aote.ObjectTools.PagedObjectList)(this.FindName("userfileslist")));
     this.userfile = ((System.Windows.Controls.Grid)(this.FindName("userfile")));
     this.save = ((System.Windows.Controls.Button)(this.FindName("save")));
     this.CoboxPinp = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxPinp")));
     this.DaXiaoKa = ((System.Windows.Controls.ComboBox)(this.FindName("DaXiaoKa")));
     this.CoboxGasPro = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxGasPro")));
     this.times = ((System.Windows.Controls.TextBox)(this.FindName("times")));
     this.CoboxGas = ((System.Windows.Controls.ComboBox)(this.FindName("CoboxGas")));
     this.guoshuiprint = ((System.Windows.Controls.Grid)(this.FindName("guoshuiprint")));
     this.fkprint = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fkprint")));
     this.aofengprint = ((System.Windows.Controls.Grid)(this.FindName("aofengprint")));
     this.fkprint1 = ((Com.Aote.ObjectTools.GeneralObject)(this.FindName("fkprint1")));
 }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //拿出datagrid所选数据
            GeneralObject go = handUserUnits.SelectedItem as GeneralObject;
            //拿出页面数据上下文
            GeneralObject updatehandplan = handUserUnit.DataContext as GeneralObject;
            //新建对象,往t_updatehandplan插入数据
            GeneralObject obj = new GeneralObject();
            try
            {
                obj.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
                obj.EntityType = "t_updatehandplan";
                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("oughtfee", decimal.Parse(go.GetPropertyValue("oughtfee").ToString()), false);
                obj.SetPropertyValue("newoughtfee", decimal.Parse(ui_oughtfee.Text), false);
                if (go.GetPropertyValue("lastinputgasnum") != null)
                {
                    obj.SetPropertyValue("lastinputgasnum", decimal.Parse(go.GetPropertyValue("lastinputgasnum").ToString()), false);
                }
                //修改后上期指数
                if (updatehandplan.GetPropertyValue("lastinputgasnum") != null)
                {
                    obj.SetPropertyValue("newlastinputgasnum", decimal.Parse(updatehandplan.GetPropertyValue("lastinputgasnum").ToString()), false);
                }

                obj.SetPropertyValue("lastrecord", decimal.Parse(go.GetPropertyValue("lastrecord").ToString()), false);
                obj.SetPropertyValue("newlastrecord", decimal.Parse(ui_lastrecord.Text), false);
                obj.SetPropertyValue("shifoujiaofei", go.GetPropertyValue("shifoujiaofei").ToString(), false);
                obj.SetPropertyValue("f_newzhinajindate", ui_zhinajindate.SelectedDate.Value, false);
                //obj.SetPropertyValue("f_zhinajindate", go.GetPropertyValue("f_zhinajindate").ToString(), false);
                obj.SetPropertyValue("newshifoujiaofei", ui_shifoujiaofei.Text, false);
                obj.SetPropertyValue("f_updatenote", ui_updatenote.Text, false);
                obj.SetPropertyValue("lastinputdate", go.GetPropertyValue("lastinputdate"), false);
                obj.SetPropertyValue("newlastinputdate", ui_lastinputdate.SelectedDate, false);
                if (go.GetPropertyValue("f_inputtor") == null)
                {
                    go.SetPropertyValue("f_inputtor", "无", false);
                }
                obj.SetPropertyValue("f_inputtor", go.GetPropertyValue("f_inputtor").ToString(), false);
                obj.SetPropertyValue("f_newinputtor", ui_inputtor.Text, false);
                obj.SetPropertyValue("oughtamount", decimal.Parse(go.GetPropertyValue("oughtamount").ToString()), false);
                obj.SetPropertyValue("newoughtamount", decimal.Parse(ui_oughtamount.Text), false);
                obj.SetPropertyValue("f_handplanoperator", ui_handplanoperator.Text, false);
                obj.SetPropertyValue("f_handplandate", ui_handplandate.SelectedDate, false);
                obj.Name = "t_updatehandplan";
                //obj.Completed += obj_Completed;
                obj.Save();
            }
            catch (Exception a)
            {
                MessageBox.Show(a.Message);
            }

            //oughtfee shifoujiaofei f_operator f_inputtor f_zhinajindate
            //拼接更新sql
            
            string sql = "update t_handplan set lastrecord= " + decimal.Parse(ui_lastrecord.Text) +
                ",oughtfee=" + decimal.Parse(ui_oughtfee.Text) +
                ",shifoujiaofei='" + ui_shifoujiaofei.Text +
                "',f_operator='" + ui_operator.Text +
                "',f_inputtor='" + ui_inputtor.Text +
                "',f_zhinajindate='" + ui_zhinajindate.SelectedDate.ToString().Substring(0, 10) +
                "',f_meterstate='" + meterstate.SelectedValue.ToString() +
                "',oughtamount=" + decimal.Parse(ui_oughtamount.Text);
            if (updatehandplan.GetPropertyValue("lastinputgasnum") != null)
            {
                sql += ",lastinputgasnum=" + updatehandplan.GetPropertyValue("lastinputgasnum").ToString();
            }
            sql += "  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.Invoke();
            PagedObjectList save1 = (from p in loader.Res where p.Name.Equals("personlist") select p).First() as PagedObjectList;
            save1.IsOld = true;
            updatehandplan.New();
        }