public override void OnLoad() { base.OnLoad(); //系统模块编码 ReportService report = (ReportService)dw_jzxxx.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; //DataWindowChild dwc = dw_master.GetChild("cllx"); //dwc.SetTransaction(this.AdoTransaction); //dwc.Retrieve("%"); //DataWindowChild dwc_jgfs = dw_master.GetChild("jgfs"); //dwc_jgfs.SetTransaction(this.AdoTransaction); //dwc_jgfs.Retrieve("%"); //DataWindowChild dwc_xx = dw_jzxxx.GetChild("xx"); //dwc_xx.SetTransaction(this.AdoTransaction); //dwc_xx.Retrieve("%"); //DataWindowChild dwc_xl = dw_jzxxx.GetChild("xl"); //dwc_xl.SetTransaction(this.AdoTransaction); //dwc_xl.Retrieve("%"); DataWindowChild dwc_fybm = dw_jzxxx.GetChild("fydlbm"); dwc_fybm.SetTransaction(this.AdoTransaction); dwc_fybm.Retrieve("05"); var operation = this.Request["operation"].ToString(); this.SetParm("operation", operation); var userid = AppService.GetUserID(); var username = AppService.GetUserName(); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); var userip = AppService.GetIp(); this.SetParm("userid", userid); this.SetParm("username", username); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); this.SetParm("userip", userip); if (this.Request["skdbh"] != null) { var skdbh = this.Request["skdbh"].ToString(); this.SetParm("skdbh", skdbh); dw_master.Retrieve(skdbh); dw_jzxxx.Retrieve(skdbh); } this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Yh_Select", "/Xt_Popwin/W_Wldw_Yh_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Zfdx_Select", "/Xt_Popwin/W_Wldw_Zfdx_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Jsbm_Select", "/Xt_Popwin/W_Wldw_Jsbm_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Jdr_Select", "/Xt_Popwin/W_Wldw_Jdr_Select.win.js"); //注册相关的js文件 //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); var operation = this.Request["operation"].ToString(); this.SetParm("operation", operation); var userid = AppService.GetUserID(); var username = AppService.GetUserName(); this.SetParm("userid", userid); this.SetParm("username", username); DataWindowChild dwc_fybm = dw_jzxxx.GetChild("fybm"); dwc_fybm.SetTransaction(this.AdoTransaction); dwc_fybm.Retrieve("06"); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); var ywbh = this.Request["Ywbh"].ToString(); var hddz_cxh = this.Request["Hddz_cxh"].ToString(); var rwbh = this.Request["Rwbh"].ToString(); this.SetParm("ywbh", ywbh); this.SetParm("hddz_cxh", hddz_cxh); this.SetParm("rwbh", rwbh); dw_master.Retrieve(rwbh); dw_jzxxx.Retrieve(rwbh); dw_rwxz.Retrieve(ywbh, int.Parse(hddz_cxh), rwbh); if (operation == "open") { if (dw_jzxxx.RowCount < 1) { var jsfs = dw_master.GetItemString(1, "jsfs"); var mdd = dw_master.GetItemString(1, "mdd"); var lx = dw_master.GetItemString(1, "lx"); var qyd = dw_master.GetItemString(1, "qyd"); var hxfs = dw_rwxz.GetItemString(1, "hxfs"); var hxssmt = dw_master.GetItemString(1, "hxssmt"); if (jsfs == null) { jsfs = ""; } if (mdd == null) { mdd = ""; } if (lx == null) { lx = ""; } if (qyd == null) { qyd = ""; } if (hxfs == null) { hxfs = ""; } if (hxssmt == null) { hxssmt = ""; } if (jsfs == "不用结算") { jsfs = "包月结算"; } ; if (lx == "还箱") { ds_fybz.Retrieve(lx, mdd, qyd, jsfs, hxfs, hxssmt); } else { ds_fybz.Retrieve(lx, qyd, mdd, jsfs, hxfs, hxssmt); } if (ds_fybz.RowCount > 0) { int i = 1; int li_insertrow = 0; for (i = 1; i <= ds_fybz.RowCount; i++) { var je = ds_fybz.GetItemDecimal(i, "je"); if (je != 0) { li_insertrow = dw_jzxxx.InsertRow(0); var fybm = ds_fybz.GetItemString(i, "fybm"); var fymc = ds_fybz.GetItemString(i, "fymc"); dw_jzxxx.SetItemString(li_insertrow, "fybm", fybm); dw_jzxxx.SetItemString(li_insertrow, "fymc", fymc); dw_jzxxx.SetItemDecimal(li_insertrow, "fyje", je); } } } } } //注册相关的js文件 this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js"); this.RegisterClientScriptInclude("W_Cj_Select", "/Xt_Popwin/W_Cj_Select.win.js"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 ReportService report = (ReportService)this.dw_list.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; var userid = AppService.GetUserID(); var username = AppService.GetUserName(); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); this.SetParm("userid", userid); this.SetParm("username", username); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); // 数据分页检索,必须在数据检索之前设置 //this.dw_list.PageSize = 50; //每页检索50条记录 //DataWindowChild dwc = dw_list.GetChild("ywy"); //dwc.SetTransaction(this.AdoTransaction); //dwc.Retrieve(""); //dwc = dw_list.GetChild("zdr"); //dwc.SetTransaction(this.AdoTransaction); //dwc.Retrieve(""); //dwc = dw_list.GetChild("dz_zdy"); //dwc.SetTransaction(this.AdoTransaction); //dwc.Retrieve(""); DataWindowChild dwc_fybm = dw_list.GetChild("fybm"); dwc_fybm.SetTransaction(this.AdoTransaction); dwc_fybm.Retrieve("0102"); this.ds_1.DataWindowObject = "d_sys_modules_all"; this.ds_1.Retrieve(); var node = "009101"; var li_row = this.ds_1.FindRow("id='" + node + "'", 1, this.ds_1.RowCount); var role_no = this.ds_1.GetItemString(li_row, "role_no"); DateTime date = System.DateTime.Now.AddDays(-180); this.dp_begin.Value = date; ds_role.Retrieve(userid, role_no); if (ds_role.RowCount > 0) { dw_list.Modify("DataWindow.Readonly=no"); this.SetParm("Readonly", "no"); } else { dw_list.Modify("DataWindow.Readonly=yes"); this.SetParm("Readonly", "yes"); } // 数据检索 this.dw_list.Retrieve(DateTime.Parse(this.dp_begin.Value.ToString()), DateTime.Parse(this.dp_end.Value.ToString())); //注册相关的js文件 this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js"); this.RegisterClientScriptInclude("W_Fybz_MtzlfyList", "/Fybz/W_Fybz_MtzlfyList.win.js"); this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); this.RegisterClientScriptInclude("W_Filter", "/Hddz/W_Filter.win.js"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 ReportService report = (ReportService)dw_jzxxx.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; //DataWindowChild dwc = dw_master.GetChild("cllx"); //dwc.SetTransaction(this.AdoTransaction); //dwc.Retrieve("%"); //DataWindowChild dwc_jgfs = dw_master.GetChild("jgfs"); //dwc_jgfs.SetTransaction(this.AdoTransaction); //dwc_jgfs.Retrieve("%"); //DataWindowChild dwc_xx = dw_jzxxx.GetChild("xx"); //dwc_xx.SetTransaction(this.AdoTransaction); //dwc_xx.Retrieve("%"); //DataWindowChild dwc_xl = dw_jzxxx.GetChild("xl"); //dwc_xl.SetTransaction(this.AdoTransaction); //dwc_xl.Retrieve("%"); DataWindowChild dwc_fybm = dw_jzxxx.GetChild("fybm"); dwc_fybm.SetTransaction(this.AdoTransaction); dwc_fybm.Retrieve("%"); var operation = this.Request["operation"].ToString(); this.SetParm("operation", operation); var userid = AppService.GetUserID(); var username = AppService.GetUserName(); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); var userip = AppService.GetIp(); this.SetParm("userid", userid); this.SetParm("username", username); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); this.SetParm("userip", userip); if (operation == "sqsp") { btn_sp.Visible = true; } if (operation == "cxsp") { btn_cxsp.Visible = true; } if (this.Request["ywbh"] != null) { var ywbh = this.Request["ywbh"].ToString(); var hddz_cxh = this.Request["hddz_cxh"].ToString(); var yshdfygjbh = this.Request["yshdfygjbh"].ToString(); if (yshdfygjbh != null || yshdfygjbh != "") { dw_master.InsertRow(0); //dw_master.Retrieve(yshdfygjbh); } else { dw_master.Retrieve(ywbh); } this.SetParm("ywbh", ywbh); this.SetParm("hddz_cxh", hddz_cxh); this.SetParm("yshdfygjbh", yshdfygjbh); dw_cb_cmd.Retrieve(ywbh); dw_jzxxx.Retrieve(ywbh); } //dw_log.Retrieve(userid, "dbys"); dw_log.Retrieve(userid, "hdgj"); this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Yh_Select", "/Xt_Popwin/W_Wldw_Yh_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Zfdx_Select", "/Xt_Popwin/W_Wldw_Zfdx_Select.win.js"); this.RegisterClientScriptInclude("W_Yw_Zjgl_Dbys_Select", "/Xt_Popwin/W_Yw_Zjgl_Dbys_Select.win.js"); //注册相关的js文件 //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 ReportService report = (ReportService)dw_cmd.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; report = (ReportService)dw_fy.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; DataWindowChild dwc = dw_spms.GetChild("bzdw"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); dwc = dw_spms.GetChild("sldw"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); dwc = dw_kehu.GetChild("tt_no"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); dwc = dw_master.GetChild("ckka"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve("%"); var operation = this.Request["operation"].ToString(); this.SetParm("operation", operation); var userid = AppService.GetUserID(); var username = AppService.GetUserName(); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); this.SetParm("userid", userid); this.SetParm("username", username); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); if (this.Request["mxdbh"] != null) { var bbh = Convert.ToDecimal(this.Request["bbh"]); var mxdbh = this.Request["mxdbh"].ToString(); dw_master.Retrieve(mxdbh, bbh); dw_cmd.Retrieve(mxdbh, bbh); dw_fy.Retrieve(mxdbh, bbh); dw_selected.Retrieve(); dw_memo.Retrieve(mxdbh); } //注册相关的js文件 this.RegisterClientScriptInclude("W_Commodity_Select", "/Commodity/W_Commodity_Select.win.js"); this.RegisterClientScriptInclude("W_Eport_Select", "/Xt_Popwin/W_Eport_Select.win.js"); this.RegisterClientScriptInclude("W_Country_Select", "/Xt_Popwin/W_Country_Select.win.js"); this.RegisterClientScriptInclude("W_Jnhyd_Select", "/Xt_Popwin/W_Jnhyd_Select.win.js"); this.RegisterClientScriptInclude("W_Dlxy_Select", "/Xt_Popwin/W_Dlxy_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); this.RegisterClientScriptInclude("W_CommodityAdd", "/Commodity/W_CommodityAdd.win.js"); //注册相关的js文件 this.RegisterClientScriptInclude("W_Spdl_Select", "/Xt_Popwin/W_Spdl_Select.win.js"); this.RegisterClientScriptInclude("W_Hssh_Select", "/Xt_Popwin/W_Hssh_Select.win.js"); this.RegisterClientScriptInclude("W_Jldw_Select", "/Xt_Popwin/W_Jldw_Select.win.js"); this.RegisterClientScriptInclude("W_Bzdw_Select", "/Xt_Popwin/W_Bzdw_Select.win.js"); this.RegisterClientScriptInclude("W_WldwAdd_New", "/Xt_Popwin/W_WldwAdd_New.win.js"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 ReportService report = (ReportService)dw_jzxxx.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; DataWindowChild dwc = dw_master.GetChild("mdg"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve("%"); DataWindowChild dwc_bm = dw_master.GetChild("bm"); dwc_bm.SetTransaction(this.AdoTransaction); dwc_bm.Retrieve("%"); DataWindowChild dwc_master_clfs = dw_master.GetChild("clfs"); dwc_master_clfs.SetTransaction(this.AdoTransaction); dwc_master_clfs.Retrieve("%"); DataWindowChild dwc_td_mdg = dw_tdzb.GetChild("mdg"); dwc_td_mdg.SetTransaction(this.AdoTransaction); dwc_td_mdg.Retrieve("%"); DataWindowChild dwc_td_clfs = dw_tdzb.GetChild("clfs"); dwc_td_clfs.SetTransaction(this.AdoTransaction); dwc_td_clfs.Retrieve("%"); DataWindowChild dwc_td_ycddm = dw_tdzb.GetChild("ycddm"); dwc_td_ycddm.SetTransaction(this.AdoTransaction); dwc_td_ycddm.Retrieve("%"); DataWindowChild dwc_td_qiyunguodm = dw_tdzb.GetChild("qiyunguodm"); dwc_td_qiyunguodm.SetTransaction(this.AdoTransaction); dwc_td_qiyunguodm.Retrieve("%"); DataWindowChild dwc_td_jcka = dw_tdzb.GetChild("jcka"); dwc_td_jcka.SetTransaction(this.AdoTransaction); dwc_td_jcka.Retrieve("%"); DataWindowChild dwc_fp_jgfs = dw_fpzb.GetChild("jgfs"); dwc_fp_jgfs.SetTransaction(this.AdoTransaction); dwc_fp_jgfs.Retrieve("%"); //DataWindowChild dwc_jgfs = dw_master.GetChild("jgfs"); //dwc_jgfs.SetTransaction(this.AdoTransaction); //dwc_jgfs.Retrieve("%"); DataWindowChild dwc_xx = dw_jzxxx.GetChild("xx"); dwc_xx.SetTransaction(this.AdoTransaction); dwc_xx.Retrieve("%"); DataWindowChild dwc_xl = dw_jzxxx.GetChild("xl"); dwc_xl.SetTransaction(this.AdoTransaction); dwc_xl.Retrieve("%"); DataWindowChild dwc_clfs = dw_jzxxx.GetChild("clfs"); dwc_clfs.SetTransaction(this.AdoTransaction); dwc_clfs.Retrieve("%"); DataWindowChild dwc_zjmsfs = dw_spdhsr.GetChild("zjmsfs"); dwc_zjmsfs.SetTransaction(this.AdoTransaction); dwc_zjmsfs.Retrieve("%"); DataWindowChild dwc_yt = dw_spdhsr.GetChild("yt"); dwc_yt.SetTransaction(this.AdoTransaction); dwc_yt.Retrieve("%"); DataWindowChild dwc_hgjldw = dw_spdhsr.GetChild("hgjldw"); dwc_hgjldw.SetTransaction(this.AdoTransaction); dwc_hgjldw.Retrieve("%"); DataWindowChild dwc_fdjldw = dw_spdhsr.GetChild("fdjldw"); dwc_fdjldw.SetTransaction(this.AdoTransaction); dwc_fdjldw.Retrieve("%"); DataWindowChild dwc_bzzl = dw_spdhsr.GetChild("bzzl"); dwc_bzzl.SetTransaction(this.AdoTransaction); dwc_bzzl.Retrieve("%"); DataWindowChild dwc_sjyt = dw_spdhsr.GetChild("sjyt"); dwc_sjyt.SetTransaction(this.AdoTransaction); dwc_sjyt.Retrieve("%"); //DataWindowChild dwc_clqy = dw_master.GetChild("clqy"); //dwc_clqy.SetTransaction(this.AdoTransaction); //dwc_clqy.Retrieve("", ""); DataWindowChild dwc_gwgysbm_td = dw_tdzb.GetChild("gwgysbm"); dwc_gwgysbm_td.SetTransaction(this.AdoTransaction); dwc_gwgysbm_td.Retrieve("%"); DataWindowChild dwc_jydwbm_td = dw_tdzb.GetChild("jydwbm"); dwc_jydwbm_td.SetTransaction(this.AdoTransaction); dwc_jydwbm_td.Retrieve("%"); DataWindowChild dwc_jydwbm_fp = dw_fpzb.GetChild("jydwbm"); dwc_jydwbm_fp.SetTransaction(this.AdoTransaction); dwc_jydwbm_fp.Retrieve("%"); DataWindowChild dwc_wbbb_fp = dw_fpzb.GetChild("wbbb"); dwc_wbbb_fp.SetTransaction(this.AdoTransaction); dwc_wbbb_fp.Retrieve("%"); DataWindowChild dwc_yjbb_fp = dw_fpzb.GetChild("yjbb"); dwc_yjbb_fp.SetTransaction(this.AdoTransaction); dwc_yjbb_fp.Retrieve("%"); var operation = this.Request["operation"].ToString(); this.SetParm("operation", operation); var userid = AppService.GetUserID(); var username = AppService.GetUserName(); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); var userip = AppService.GetIp(); this.SetParm("userid", userid); this.SetParm("username", username); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); this.SetParm("userip", userip); if (this.Request["ywbh"] != null) { var ywbh = this.Request["ywbh"].ToString(); this.SetParm("ywbh", ywbh); dw_master.Retrieve(ywbh); dw_jzxxx.Retrieve(ywbh); dw_spxx.Retrieve(ywbh); dw_zzxx.Retrieve(ywbh); dw_fsdz.Retrieve(ywbh); dw_sjzs.Retrieve(ywbh); dw_sjbzcl.Retrieve(ywbh); dw_dzqk.Retrieve(ywbh); dw_sxgsjjl.Retrieve(ywbh); this.dw_log.Retrieve(userid, "hdbj"); ds_jdr.Retrieve(userid); var zsbh_rowcount = dw_zsbh.Retrieve(ywbh); if (zsbh_rowcount <= 0) { var sjzsbh_row = ds_sjzsbh.Retrieve("%"); var zsbh_sum = ""; var zsmc_sum = ""; int i = 1; for (i = 1; i <= sjzsbh_row; i++) { var insert_row = dw_zsbh.InsertRow(0); var zsbh = ds_sjzsbh.GetItemString(i, "zsbh"); dw_zsbh.SetItemString(insert_row, "zsbh", zsbh); var sfxz = ds_sjzsbh.GetItemString(i, "sfxz"); dw_zsbh.SetItemString(insert_row, "sfxz", sfxz); var zsmc = ds_sjzsbh.GetItemString(insert_row, "zsmc"); if (sfxz == "Y") { if (zsbh_sum == "" || zsbh_sum == null) { zsmc_sum = zsmc; zsbh_sum = zsbh; } else { zsmc_sum = zsmc_sum + "," + zsmc; zsbh_sum = zsbh_sum + zsbh; } } } this.SetParm("zsmc", zsmc_sum); this.SetParm("zsbh", zsbh_sum); } ; var sjsfdj_rowcount = dw_sjsfdj.Retrieve(ywbh); if (sjsfdj_rowcount <= 0) { var sjsfdj_row = ds_sjsfdj.Retrieve("%"); var sfdj = ""; var sfdjbm = ""; int i = 1; for (i = 1; i <= sjsfdj_row; i++) { var insert_row = dw_sjsfdj.InsertRow(0); var sfdjbh = ds_sjsfdj.GetItemString(i, "sfdjbh"); dw_sjsfdj.SetItemString(insert_row, "sfdjbh", sfdjbh); var sfdjmc = ds_sjsfdj.GetItemString(i, "sfdjmc"); dw_sjsfdj.SetItemString(insert_row, "sfdjmc", sfdjmc); var sfxz = ds_sjsfdj.GetItemString(i, "sfxz"); dw_sjsfdj.SetItemString(insert_row, "sfxz", sfxz); var cxh = ds_sjsfdj.GetItemDecimal(i, "cxh"); dw_sjsfdj.SetItemDecimal(insert_row, "cxh", cxh); if (sfxz == "Y") { if (sfdj == "" || sfdj == null) { sfdj = sfdjmc; sfdjbm = sfdjbh; } else { sfdj = sfdj + "," + sfdjmc; sfdjbm = sfdjbm + sfdjbh; } } } this.SetParm("sfdj", sfdj); this.SetParm("sfdjbm", sfdjbm); } } //注册相关的js文件 this.RegisterClientScriptInclude("W_Commodity_Select", "/Commodity/W_Commodity_Select.win.js"); this.RegisterClientScriptInclude("W_Eport_Select", "/Xt_Popwin/W_Eport_Select.win.js"); this.RegisterClientScriptInclude("W_Country_Select", "/Xt_Popwin/W_Country_Select.win.js"); this.RegisterClientScriptInclude("W_Jnhyd_Select", "/Xt_Popwin/W_Jnhyd_Select.win.js"); this.RegisterClientScriptInclude("W_Hddz_Dlxy_Select", "/Xt_Popwin/W_Hddz_Dlxy_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); this.RegisterClientScriptInclude("W_Mxd_Select", "/Xt_Popwin/W_Mxd_Select.win.js"); this.RegisterClientScriptInclude("W_CommodityAdd", "/Commodity/W_CommodityAdd.win.js"); //注册相关的js文件 this.RegisterClientScriptInclude("W_Spdl_Select", "/Xt_Popwin/W_Spdl_Select.win.js"); this.RegisterClientScriptInclude("W_Hssh_Select", "/Xt_Popwin/W_Hssh_Select.win.js"); this.RegisterClientScriptInclude("W_Jldw_Select", "/Xt_Popwin/W_Jldw_Select.win.js"); this.RegisterClientScriptInclude("W_Bzdw_Select", "/Xt_Popwin/W_Bzdw_Select.win.js"); this.RegisterClientScriptInclude("W_WldwAdd_New", "/Xt_Popwin/W_WldwAdd_New.win.js"); this.RegisterClientScriptInclude("W_Country_Select", "/Xt_Popwin/W_Country_Select.win.js"); this.RegisterClientScriptInclude("W_RqTime_Select", "/Xt_Popwin/W_RqTime_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Lxr_Select", "/Xt_Popwin/W_Wldw_Lxr_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Shdz_Select", "/Xt_Popwin/W_Wldw_Shdz_Select.win.js"); this.RegisterClientScriptInclude("W_WldwAdd_Lxr_New", "/Xt_Popwin/W_WldwAdd_Lxr_New.win.js"); this.RegisterClientScriptInclude("W_WldwAdd_Shdz_New", "/Xt_Popwin/W_WldwAdd_Shdz_New.win.js"); this.RegisterClientScriptInclude("W_Clqy_Select", "/Xt_Popwin/W_Clqy_Select.win.js"); this.RegisterClientScriptInclude("W_Hddz_Dzsd", "/Hddz/W_Hddz_Dzsd.win.js"); this.RegisterClientScriptInclude("W_Hddz_Zqhc", "/Hddz/W_Hddz_Zqhc.win.js"); this.RegisterClientScriptInclude("W_Wldw_Dz_Select", "/Xt_Popwin/W_Wldw_Dz_Select.win.js"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 ReportService report = (ReportService)dw_jzxxx.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; DataWindowChild dwc = dw_master.GetChild("cllx"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve("%"); //DataWindowChild dwc_jgfs = dw_master.GetChild("jgfs"); //dwc_jgfs.SetTransaction(this.AdoTransaction); //dwc_jgfs.Retrieve("%"); //DataWindowChild dwc_xx = dw_jzxxx.GetChild("xx"); //dwc_xx.SetTransaction(this.AdoTransaction); //dwc_xx.Retrieve("%"); //DataWindowChild dwc_xl = dw_jzxxx.GetChild("xl"); //dwc_xl.SetTransaction(this.AdoTransaction); //dwc_xl.Retrieve("%"); //DataWindowChild dwc_clfs = dw_jzxxx.GetChild("clfs"); //dwc_clfs.SetTransaction(this.AdoTransaction); //dwc_clfs.Retrieve("%"); var operation = this.Request["operation"].ToString(); this.SetParm("operation", operation); var userid = AppService.GetUserID(); var username = AppService.GetUserName(); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); var userip = AppService.GetIp(); this.SetParm("userid", userid); this.SetParm("username", username); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); this.SetParm("userip", userip); if (this.Request["cdphbm"] != null) { var cdphbm = this.Request["cdphbm"].ToString(); this.SetParm("cdphbm", cdphbm); dw_master.Retrieve(cdphbm); dw_jzxxx.Retrieve(cdphbm); dw_qd.Retrieve(cdphbm); } ; dw_kh.Retrieve(Dlwtf); this.dw_log.Retrieve(userid, "kpmx"); this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); this.RegisterClientScriptInclude("W_Sj_Select", "/Xt_Popwin/W_Sj_Select.win.js"); this.RegisterClientScriptInclude("W_Tpxx_Cdph_Select", "/Xt_Popwin/W_Tpxx_Cdph_Select.win.js"); this.RegisterClientScriptInclude("W_Set_Sj", "/Wlxx/W_Set_Sj.win.js"); this.RegisterClientScriptInclude("W_Bdsbh_Select", "/Xt_Popwin/W_Bdsbh_Select.win.js"); //注册相关的js文件 //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 ReportService report = (ReportService)this.dw_list.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; var userid = AppService.GetUserID(); var username = AppService.GetUserName(); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); var Tybm = AppService.GetTybm(); var Sfqytybm = AppService.GetSfqytybm(); this.SetParm("userid", userid); this.SetParm("username", username); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); this.SetParm("Tybm", Tybm); this.SetParm("Sfqytybm", Sfqytybm); // 数据分页检索,必须在数据检索之前设置 //this.dw_list.PageSize = 50; //每页检索50条记录 DataWindowChild dwc = dw_list.GetChild("zbr"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); //dwc = dw_list.GetChild("zdr"); //dwc.SetTransaction(this.AdoTransaction); //dwc.Retrieve(""); //dwc = dw_list.GetChild("dz_zdy"); //dwc.SetTransaction(this.AdoTransaction); //dwc.Retrieve(""); //dwc = dw_list.GetChild("yw_Kptzs_dzjh_zdy"); //dwc.SetTransaction(this.AdoTransaction); //dwc.Retrieve(""); this.ds_1.DataWindowObject = "d_sys_modules_all"; this.ds_1.Retrieve(); this.ds_2.DataWindowObject = "dw_xtdm_area2"; this.ds_2.Retrieve(); ddlb_ctr_area2.Items.Add("全部"); for (int row = 1; row <= this.ds_2.RowCount; row++) { var ctr_area2 = this.ds_2.GetItemString(row, "ctr_area2"); ddlb_ctr_area2.Items.Add(ctr_area2); } var node = "000171"; var li_row = this.ds_1.FindRow("id='" + node + "'", 1, this.ds_1.RowCount); var role_no = this.ds_1.GetItemString(li_row, "role_no"); DateTime date = System.DateTime.Now.AddDays(-90); this.dp_begin.Value = date; ds_role.Retrieve(userid, role_no); if (ds_role.RowCount > 0) { btn_new.Visible = true; btn_duplicate.Visible = true; btn_delete.Visible = true; this.SetParm("operation", "open"); dw_list.Modify("DataWindow.Readonly=no"); } else { btn_new.Visible = false; btn_duplicate.Visible = false; btn_delete.Visible = false; this.SetParm("operation", "show"); dw_list.Modify("DataWindow.Readonly=yes"); } ds_role_kybmjl.Retrieve(userid, "076"); if (ds_role_kybmjl.RowCount > 0) { this.SetParm("kybmjl", "Y"); btn_zgggbz.Visible = true; } else { this.SetParm("kybmjl", "N"); btn_zgggbz.Visible = false; } ds_role_hybmjl.Retrieve(userid, "077"); if (ds_role_hybmjl.RowCount > 0) { this.SetParm("hybmjl", "Y"); } else { this.SetParm("hybmjl", "N"); } //接单人 this.ds_3.DataWindowObject = "d_sys_userroles_wldw"; this.ds_3.Retrieve(userid); this.ddlb_jdrjc.Items.Add("全部"); for (var row = 1; row <= this.ds_3.RowCount; row++) { this.ddlb_jdrjc.Items.Add(this.ds_3.GetItemString(row, "dwjc")); } ////接单人 //this.ds_2.DataWindowObject = "d_sys_userroles_wldw"; //this.ds_2.Retrieve(userid); //this.ddlb_jdr.Items.Add("全部"); //for (int row = 1; row <= this.ds_2.RowCount; row++) //{ // var ctr_area2 = this.ds_2.GetItemString(row, "dwjc"); // this.ddlb_jdr.Items.Add(ctr_area2); //} // 数据检索 this.dw_list.Retrieve(userid, DateTime.Parse(this.dp_begin.Value.ToString()), DateTime.Parse(this.dp_end.Value.ToString()), "zj", "未靠港", Dlwtf, "单证", Tybm, Sfqytybm, "全部", "N", "全部"); ds_role.Retrieve(userid, "hddz"); dw_log.Retrieve(userid, "kylb"); //注册相关的js文件 this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js"); this.RegisterClientScriptInclude("W_HddzList_Ky", "/Hddz/W_HddzList_Ky.win.js"); this.RegisterClientScriptInclude("W_HddzEdit_Ky", "/Hddz/W_HddzEdit_Ky.win.js"); this.RegisterClientScriptInclude("W_Hddz_Beizhu", "/Hddz/W_Hddz_Beizhu.win.js"); this.RegisterClientScriptInclude("W_Hddz_Edit_Yflr", "/Hddz/W_Hddz_Edit_Yflr.win.js"); this.RegisterClientScriptInclude("W_Hddz_Dzsd", "/Hddz/W_Hddz_Dzsd.win.js"); this.RegisterClientScriptInclude("W_Hddz_Ycyy", "/Hddz/W_Hddz_Ycyy.win.js"); this.RegisterClientScriptInclude("W_Fj_Edit", "/Hddz/W_Fj_Edit.win.js"); this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); this.RegisterClientScriptInclude("W_Main1", "/Hddz/W_Main1.win.js"); this.RegisterClientScriptInclude("W_Wldw_Lxr_Select", "/Xt_Popwin/W_Wldw_Lxr_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Shdz_Select", "/Xt_Popwin/W_Wldw_Shdz_Select.win.js"); this.RegisterClientScriptInclude("W_WldwAdd_Lxr_New", "/Xt_Popwin/W_WldwAdd_Lxr_New.win.js"); this.RegisterClientScriptInclude("W_Hddz_Zqhc", "/Hddz/W_Hddz_Zqhc.win.js"); this.RegisterClientScriptInclude("W_FtpEdit", "/pdfwj/W_FtpEdit.win.js"); this.RegisterClientScriptInclude("W_Filter", "/Hddz/W_Filter.win.js"); this.RegisterClientScriptInclude("W_FileWindow", "/Hddz/W_FileWindow.win.js"); //this.RegisterClientScriptInclude("W_Test", "/Hddz/W_Test.win.js"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 ReportService report = (ReportService)dw_jzxxx.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; DataWindowChild dwc_xx = dw_jzxxx.GetChild("xx"); dwc_xx.SetTransaction(this.AdoTransaction); dwc_xx.Retrieve("%"); DataWindowChild dwc_xl = dw_jzxxx.GetChild("xl"); dwc_xl.SetTransaction(this.AdoTransaction); dwc_xl.Retrieve("%"); DataWindowChild dwc_clfs = dw_jzxxx.GetChild("clfs"); dwc_clfs.SetTransaction(this.AdoTransaction); dwc_clfs.Retrieve("%"); DataWindowChild dwc_yt = dw_spdhsr.GetChild("yt"); dwc_yt.SetTransaction(this.AdoTransaction); dwc_yt.Retrieve("%"); DataWindowChild dwc_hgjldw = dw_spdhsr.GetChild("hgjldw"); dwc_hgjldw.SetTransaction(this.AdoTransaction); dwc_hgjldw.Retrieve("%"); DataWindowChild dwc_fdjldw = dw_spdhsr.GetChild("fdjldw"); dwc_fdjldw.SetTransaction(this.AdoTransaction); dwc_fdjldw.Retrieve("%"); DataWindowChild dwc_bzzl = dw_spdhsr.GetChild("bzzl"); dwc_bzzl.SetTransaction(this.AdoTransaction); dwc_bzzl.Retrieve("%"); DataWindowChild dwc_sjyt = dw_spdhsr.GetChild("sjyt"); dwc_sjyt.SetTransaction(this.AdoTransaction); dwc_sjyt.Retrieve("%"); var operation = this.Request["operation"].ToString(); this.SetParm("operation", operation); var userid = AppService.GetUserID(); var username = AppService.GetUserName(); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); var userip = AppService.GetIp(); this.SetParm("userid", userid); this.SetParm("username", username); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); this.SetParm("userip", userip); if (this.Request["ywbh"] != null) { var ywbh = this.Request["ywbh"].ToString(); this.SetParm("ywbh", ywbh); dw_master.Retrieve(ywbh); dw_jzxxx.Retrieve(ywbh); dw_spxx.Retrieve(ywbh); this.dw_log.Retrieve(userid, "hdbj"); ds_jdr.Retrieve(userid); } if (this.Request["ysfs"] != null) { var ysfs = this.Request["ysfs"]; this.SetParm("ysfs", ysfs); } ; if (this.Request["bg"] != null) { var bg = this.Request["bg"]; this.SetParm("bg", bg); } ; if (this.Request["bj"] != null) { var bj = this.Request["bj"]; this.SetParm("bj", bj); } ; if (this.Request["wl"] != null) { var wl = this.Request["wl"]; this.SetParm("wl", wl); } ; if (this.Request["hd"] != null) { var hd = this.Request["hd"]; this.SetParm("hd", hd); } ; if (this.Request["fx"] != null) { var fx = this.Request["fx"]; this.SetParm("fx", fx); } ; //注册相关的js文件 this.RegisterClientScriptInclude("W_Commodity_Select", "/Commodity/W_Commodity_Select.win.js"); this.RegisterClientScriptInclude("W_Eport_Select", "/Xt_Popwin/W_Eport_Select.win.js"); this.RegisterClientScriptInclude("W_Country_Select", "/Xt_Popwin/W_Country_Select.win.js"); this.RegisterClientScriptInclude("W_Jnhyd_Select", "/Xt_Popwin/W_Jnhyd_Select.win.js"); this.RegisterClientScriptInclude("W_Hddz_Dlxy_Select", "/Xt_Popwin/W_Hddz_Dlxy_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); this.RegisterClientScriptInclude("W_CommodityAdd", "/Commodity/W_CommodityAdd.win.js"); //注册相关的js文件 this.RegisterClientScriptInclude("W_Spdl_Select", "/Xt_Popwin/W_Spdl_Select.win.js"); this.RegisterClientScriptInclude("W_Hssh_Select", "/Xt_Popwin/W_Hssh_Select.win.js"); this.RegisterClientScriptInclude("W_Jldw_Select", "/Xt_Popwin/W_Jldw_Select.win.js"); this.RegisterClientScriptInclude("W_Bzdw_Select", "/Xt_Popwin/W_Bzdw_Select.win.js"); this.RegisterClientScriptInclude("W_WldwAdd_New", "/Xt_Popwin/W_WldwAdd_New.win.js"); this.RegisterClientScriptInclude("W_Country_Select", "/Xt_Popwin/W_Country_Select.win.js"); this.RegisterClientScriptInclude("W_RqTime_Select", "/Xt_Popwin/W_RqTime_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Lxr_Select", "/Xt_Popwin/W_Wldw_Lxr_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Shdz_Select", "/Xt_Popwin/W_Wldw_Shdz_Select.win.js"); this.RegisterClientScriptInclude("W_WldwAdd_Lxr_New", "/Xt_Popwin/W_WldwAdd_Lxr_New.win.js"); this.RegisterClientScriptInclude("W_WldwAdd_Shdz_New", "/Xt_Popwin/W_WldwAdd_Shdz_New.win.js"); this.RegisterClientScriptInclude("W_Clqy_Select", "/Xt_Popwin/W_Clqy_Select.win.js"); this.RegisterClientScriptInclude("W_Hddz_Zqhc", "/Hddz/W_Hddz_Zqhc.win.js"); this.RegisterClientScriptInclude("W_Wldw_Dz_Select", "/Xt_Popwin/W_Wldw_Dz_Select.win.js"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 ReportService report = (ReportService)dw_jzxxx.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; //DataWindowChild dwc = dw_master.GetChild("mdg"); //dwc.SetTransaction(this.AdoTransaction); //dwc.Retrieve("%"); //DataWindowChild dwc_master_clfs = dw_master.GetChild("clfs"); //dwc_master_clfs.SetTransaction(this.AdoTransaction); //dwc_master_clfs.Retrieve("%"); //DataWindowChild dwc_jgfs = dw_master.GetChild("jgfs"); //dwc_jgfs.SetTransaction(this.AdoTransaction); //dwc_jgfs.Retrieve("%"); DataWindowChild dwc_xx = dw_jzxxx.GetChild("xx"); dwc_xx.SetTransaction(this.AdoTransaction); dwc_xx.Retrieve("%"); DataWindowChild dwc_xl = dw_jzxxx.GetChild("xl"); dwc_xl.SetTransaction(this.AdoTransaction); dwc_xl.Retrieve("%"); //DataWindowChild dwc_clfs = dw_jzxxx.GetChild("clfs"); //dwc_clfs.SetTransaction(this.AdoTransaction); //dwc_clfs.Retrieve("%"); //DataWindowChild dwc_zjmsfs = dw_spdhsr.GetChild("zjmsfs"); //dwc_zjmsfs.SetTransaction(this.AdoTransaction); //dwc_zjmsfs.Retrieve("%"); DataWindowChild dwc_sjyt = dw_spdhsr.GetChild("sjyt"); dwc_sjyt.SetTransaction(this.AdoTransaction); dwc_sjyt.Retrieve("%"); DataWindowChild dwc_hgjldw = dw_spdhsr.GetChild("hgjldw"); dwc_hgjldw.SetTransaction(this.AdoTransaction); dwc_hgjldw.Retrieve("%"); DataWindowChild dwc_fdjldw = dw_spdhsr.GetChild("fdjldw"); dwc_fdjldw.SetTransaction(this.AdoTransaction); dwc_fdjldw.Retrieve("%"); var operation = this.Request["operation"].ToString(); this.SetParm("operation", operation); if (this.Request["ywbh"] != null) { var ywbh = this.Request["ywbh"].ToString(); this.SetParm("ywbh", ywbh); if (dw_dzxx.Retrieve(ywbh) > 0) { var jyjysljg = dw_dzxx.GetItemString(1, "jyjysljg"); var jyjysljg_jsl = dw_dzxx.GetItemString(1, "jyjysljg_jsl"); if (jyjysljg == null || jyjysljg == "") { dw_dzxx.SetItemString(1, "jyjysljg", jyjysljg_jsl); } var kajyjyjg = dw_dzxx.GetItemString(1, "kajyjyjg"); var kajyjyjg_jsl = dw_dzxx.GetItemString(1, "kajyjyjg_jsl"); if (kajyjyjg == null || kajyjyjg == "") { dw_dzxx.SetItemString(1, "kajyjyjg", kajyjyjg_jsl); } var mddjyjyjg = dw_dzxx.GetItemString(1, "mddjyjyjg"); var mddjyjyjg_jsl = dw_dzxx.GetItemString(1, "mddjyjyjg_jsl"); if (mddjyjyjg == null || mddjyjyjg == "") { dw_dzxx.SetItemString(1, "mddjyjyjg", mddjyjyjg_jsl); } var lzjg = dw_dzxx.GetItemString(1, "lzjg"); var lzjg_jsl = dw_dzxx.GetItemString(1, "lzjg_jsl"); if (lzjg == null || lzjg == "") { dw_dzxx.SetItemString(1, "lzjg", lzjg_jsl); } var yjzxbs = dw_dzxx.GetItemString(1, "yjzxbs"); if (yjzxbs == null || yjzxbs == "") { dw_dzxx.SetItemString(1, "yjzxbs", "1"); } } ; if (dw_hwxx.Retrieve(ywbh) > 0) { var i = 1; for (i = 1; i <= dw_hwxx.RowCount; i++) { var jnmdd = dw_hwxx.GetItemString(i, "jnmdd"); if (jnmdd == null || jnmdd == "") { dw_hwxx.SetItemString(i, "jnmdd", "31222"); } var mdddm = dw_hwxx.GetItemString(i, "mdddm"); if (mdddm == null || mdddm == "") { var mdddm_jsl = dw_dzxx.GetItemString(1, "mdddm"); dw_hwxx.SetItemString(i, "mdddm", mdddm_jsl); } } } ; dw_jzxxx.Retrieve(ywbh); if (dw_hgfsdz.Retrieve(ywbh) <= 0) { var li_insert = dw_hgfsdz.InsertRow(0); dw_hgfsdz.SetItemString(li_insert, "dzdm", "Y"); } dw_jyjyxydz.Retrieve(ywbh); dw_qyzz.Retrieve(ywbh); dw_syrxx.Retrieve(ywbh); dw_sjzs.Retrieve(ywbh); dw_sjbzcl.Retrieve(ywbh); if (dw_jyjyxydz.Retrieve(ywbh) <= 0) { var sjzsbh_row = ds_sjzsbh.Retrieve("%"); int i = 1; for (i = 1; i <= sjzsbh_row; i++) { var insert_row = dw_jyjyxydz.InsertRow(0); var zsbh = ds_sjzsbh.GetItemString(i, "zsbh"); dw_jyjyxydz.SetItemString(insert_row, "zsbh", zsbh); dw_jyjyxydz.SetItemDecimal(insert_row, "zbfs", 1); dw_jyjyxydz.SetItemDecimal(insert_row, "fbfs", 1); } } ; if (dw_sjsfdj.Retrieve(ywbh) <= 0) { var sjsfdj_row = ds_sjsfdj.Retrieve("%"); int i = 1; for (i = 1; i <= sjsfdj_row; i++) { var insert_row = dw_sjsfdj.InsertRow(0); var sfdjbh = ds_sjsfdj.GetItemString(i, "sfdjbh"); dw_sjsfdj.SetItemString(insert_row, "sfdjbh", sfdjbh); var sfdjmc = ds_sjsfdj.GetItemString(i, "sfdjmc"); dw_sjsfdj.SetItemString(insert_row, "sfdjmc", sfdjmc); } } } //注册相关的js文件 this.RegisterClientScriptInclude("W_Commodity_Select", "/Commodity/W_Commodity_Select.win.js"); this.RegisterClientScriptInclude("W_Eport_Select", "/Xt_Popwin/W_Eport_Select.win.js"); this.RegisterClientScriptInclude("W_Country_Select", "/Xt_Popwin/W_Country_Select.win.js"); this.RegisterClientScriptInclude("W_Jnhyd_Select", "/Xt_Popwin/W_Jnhyd_Select.win.js"); this.RegisterClientScriptInclude("W_Hddz_Dlxy_Select", "/Xt_Popwin/W_Hddz_Dlxy_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); this.RegisterClientScriptInclude("W_Mxd_Select", "/Xt_Popwin/W_Mxd_Select.win.js"); this.RegisterClientScriptInclude("W_CommodityAdd", "/Commodity/W_CommodityAdd.win.js"); //注册相关的js文件 this.RegisterClientScriptInclude("W_Spdl_Select", "/Xt_Popwin/W_Spdl_Select.win.js"); this.RegisterClientScriptInclude("W_Hssh_Select", "/Xt_Popwin/W_Hssh_Select.win.js"); this.RegisterClientScriptInclude("W_Jldw_Select", "/Xt_Popwin/W_Jldw_Select.win.js"); this.RegisterClientScriptInclude("W_Bzdw_Select", "/Xt_Popwin/W_Bzdw_Select.win.js"); this.RegisterClientScriptInclude("W_WldwAdd_New", "/Xt_Popwin/W_WldwAdd_New.win.js"); this.RegisterClientScriptInclude("W_Country_Select", "/Xt_Popwin/W_Country_Select.win.js"); this.RegisterClientScriptInclude("W_RqTime_Select", "/Xt_Popwin/W_RqTime_Select.win.js"); ////注册需要使用的弹出窗口的事件处理程序的JS文件 //this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); //AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 ReportService report = (ReportService)dw_jzxxx.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; var operation = this.Request["operation"].ToString(); this.SetParm("operation", operation); var userid = AppService.GetUserID(); var username = AppService.GetUserName(); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); var userip = AppService.GetIp(); var bm = AppService.GetBm(); this.SetParm("userid", userid); this.SetParm("username", username); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); this.SetParm("userip", userip); this.SetParm("bm", bm); DataWindowChild gwgysjc = dw_master.GetChild("gwgysjc"); gwgysjc.SetTransaction(this.AdoTransaction); gwgysjc.Retrieve(""); DataWindowChild khjc = dw_master.GetChild("khjc"); khjc.SetTransaction(this.AdoTransaction); khjc.Retrieve(""); DataWindowChild xskhjc = dw_master.GetChild("xskhjc"); xskhjc.SetTransaction(this.AdoTransaction); xskhjc.Retrieve(""); DataWindowChild jhdd = dw_master.GetChild("jhdd"); jhdd.SetTransaction(this.AdoTransaction); jhdd.Retrieve(""); DataWindowChild hgdc = dw_master.GetChild("hgdc"); hgdc.SetTransaction(this.AdoTransaction); hgdc.Retrieve(""); DataWindowChild spmc = dw_spxx.GetChild("spmc"); spmc.SetTransaction(this.AdoTransaction); spmc.Retrieve(""); if (this.Request["ywbh"] != null) { var ywbh = this.Request["ywbh"].ToString(); this.SetParm("ywbh", ywbh); dw_master.Retrieve(ywbh); dw_jzxxx.Retrieve(ywbh); dw_spxx.Retrieve(ywbh); this.dw_log.Retrieve(userid, "ywbj"); ds_jdr.Retrieve(userid); } //注册相关的js文件 this.RegisterClientScriptInclude("W_Commodity_Select", "/Commodity/W_Commodity_Select.win.js"); this.RegisterClientScriptInclude("W_Eport_Select", "/Xt_Popwin/W_Eport_Select.win.js"); this.RegisterClientScriptInclude("W_Country_Select", "/Xt_Popwin/W_Country_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Select_Sz", "/Xt_Popwin/W_Wldw_Select_Sz.win.js"); this.RegisterClientScriptInclude("W_WldwAdd_New", "/Xt_Popwin/W_WldwAdd_New.win.js"); this.RegisterClientScriptInclude("W_CommodityAdd", "/Commodity/W_CommodityAdd.win.js"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 ReportService report = (ReportService)dw_jzxxx.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; //DataWindowChild dwc = dw_master.GetChild("mdg"); //dwc.SetTransaction(this.AdoTransaction); //dwc.Retrieve("%"); //DataWindowChild dwc_xx = dw_jzxxx.GetChild("xx"); //dwc_xx.SetTransaction(this.AdoTransaction); //dwc_xx.Retrieve("%"); //DataWindowChild dwc_xl = dw_jzxxx.GetChild("xl"); //dwc_xl.SetTransaction(this.AdoTransaction); //dwc_xl.Retrieve("%"); //DataWindowChild dwc_clfs = dw_jzxxx.GetChild("clfs"); //dwc_clfs.SetTransaction(this.AdoTransaction); //dwc_clfs.Retrieve("%"); DataWindowChild hgdc = dw_master.GetChild("hgdc"); hgdc.SetTransaction(this.AdoTransaction); hgdc.Retrieve(""); DataWindowChild hgcp = dw_master.GetChild("hgcp"); hgcp.SetTransaction(this.AdoTransaction); hgcp.Retrieve(""); var operation = this.Request["operation"].ToString(); this.SetParm("operation", operation); var userid = AppService.GetUserID(); var username = AppService.GetUserName(); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); var userip = AppService.GetIp(); this.SetParm("userid", userid); this.SetParm("username", username); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); this.SetParm("userip", userip); if (this.Request["ywbh"] != null) { var ywbh = this.Request["ywbh"].ToString(); this.SetParm("ywbh", ywbh); dw_master.Retrieve(ywbh); dw_jzxxx.Retrieve(ywbh); dw_spxx.Retrieve(ywbh); this.dw_log.Retrieve(userid, "hgbj"); ds_jdr.Retrieve(userid); if (dw_wlgz.Retrieve(ywbh, 1) <= 0) { dw_wlgz.InsertRow(0); dw_wlgz.SetItemString(1, "ywbh", ywbh); dw_wlgz.SetItemDouble(1, "hddz_cxh", 1); dw_wlgz.SetItemString(1, "rwbh", ywbh + "11"); } if (dw_wlgz_cmd.Retrieve(ywbh, 1) <= 0) { var li_insertrow = dw_wlgz_cmd.InsertRow(0); dw_wlgz_cmd.SetItemString(li_insertrow, "ywbh", ywbh); dw_wlgz_cmd.SetItemDouble(li_insertrow, "hddz_cxh", 1); dw_wlgz_cmd.SetItemString(li_insertrow, "rwbh", ywbh + "11"); dw_wlgz_cmd.SetItemString(li_insertrow, "rwlx", "1"); dw_wlgz_cmd.SetItemDouble(li_insertrow, "rwxh", 1); dw_wlgz_cmd.SetItemString(li_insertrow, "rwmc", "港区"); var li_insertrow_shd = dw_wlgz_cmd.InsertRow(0); dw_wlgz_cmd.SetItemString(li_insertrow_shd, "ywbh", ywbh); dw_wlgz_cmd.SetItemDouble(li_insertrow_shd, "hddz_cxh", 1); dw_wlgz_cmd.SetItemString(li_insertrow_shd, "rwbh", ywbh + "11"); dw_wlgz_cmd.SetItemString(li_insertrow_shd, "rwlx", "1"); dw_wlgz_cmd.SetItemDouble(li_insertrow_shd, "rwxh", 2); dw_wlgz_cmd.SetItemString(li_insertrow_shd, "rwmc", "非市场物流地1"); var li_insertrow_dc = dw_wlgz_cmd.InsertRow(0); dw_wlgz_cmd.SetItemString(li_insertrow_dc, "ywbh", ywbh); dw_wlgz_cmd.SetItemDouble(li_insertrow_dc, "hddz_cxh", 1); dw_wlgz_cmd.SetItemString(li_insertrow_dc, "rwbh", ywbh + "11"); dw_wlgz_cmd.SetItemString(li_insertrow_dc, "rwlx", "1"); dw_wlgz_cmd.SetItemDouble(li_insertrow_dc, "rwxh", 3); dw_wlgz_cmd.SetItemString(li_insertrow_dc, "rwmc", "堆场"); } } //注册相关的js文件 this.RegisterClientScriptInclude("W_Commodity_Select", "/Commodity/W_Commodity_Select.win.js"); this.RegisterClientScriptInclude("W_Eport_Select", "/Xt_Popwin/W_Eport_Select.win.js"); this.RegisterClientScriptInclude("W_Country_Select", "/Xt_Popwin/W_Country_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); this.RegisterClientScriptInclude("W_CommodityAdd", "/Commodity/W_CommodityAdd.win.js"); //注册相关的js文件 this.RegisterClientScriptInclude("W_WldwAdd_New", "/Xt_Popwin/W_WldwAdd_New.win.js"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 ReportService report = (ReportService)this.dw_list.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; // 数据分页检索,必须在数据检索之前设置 //this.dw_list.PageSize = 50; //每页检索50条记录 this.ds_1.DataWindowObject = "d_sys_modules_all"; this.ds_1.Retrieve(); // 数据检索 var userid = AppService.GetUserID(); var li_row = this.ds_1.FindRow("id = '009003'", 1, this.ds_1.RowCount); var role_no = this.ds_1.GetItemString(li_row, "role_no"); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); this.SetParm("userid", userid); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); DataWindowChild dwc_spdl = dw_list.GetChild("spdl"); dwc_spdl.SetTransaction(this.AdoTransaction); dwc_spdl.Retrieve("%"); ds_role.Retrieve(userid, role_no); if (ds_role.RowCount > 0) { btn_new.Visible = true; btn_duplicate.Visible = true; btn_delete.Visible = true; this.SetParm("operation", "open"); } else { btn_new.Visible = false; btn_duplicate.Visible = false; btn_delete.Visible = false; this.SetParm("operation", "show"); } // 数据检索 this.dw_list.Retrieve(); //this.dw_list.Retrieve("zyxx", userid); //注册相关的js文件 this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js"); this.RegisterClientScriptInclude("W_CommodityList", "/Commodity/W_CommodityList.win.js"); this.RegisterClientScriptInclude("W_CommodityEdit", "/Commodity/W_CommodityEdit.win.js"); this.RegisterClientScriptInclude("W_CommodityAdd", "/Commodity/W_CommodityAdd.win.js"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 ReportService report = (ReportService)this.dw_list.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; var userid = AppService.GetUserID(); var username = AppService.GetUserName(); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); this.SetParm("userid", userid); this.SetParm("username", username); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); // 数据分页检索,必须在数据检索之前设置 //this.dw_list.PageSize = 50; //每页检索50条记录 DataWindowChild dwc = dw_list.GetChild("zbr"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); //dwc = dw_list.GetChild("zdr"); //dwc.SetTransaction(this.AdoTransaction); //dwc.Retrieve(""); //dwc = dw_list.GetChild("dz_zdy"); //dwc.SetTransaction(this.AdoTransaction); //dwc.Retrieve(""); //dwc = dw_list.GetChild("yw_Kptzs_dzjh_zdy"); //dwc.SetTransaction(this.AdoTransaction); //dwc.Retrieve(""); this.ds_1.DataWindowObject = "d_sys_modules_all"; this.ds_1.Retrieve(); var node = "000148"; var li_row = this.ds_1.FindRow("id='" + node + "'", 1, this.ds_1.RowCount); var role_no = this.ds_1.GetItemString(li_row, "role_no"); DateTime date = System.DateTime.Now.AddDays(-90); this.dp_begin.Value = date; ds_role.Retrieve(userid, role_no); if (ds_role.RowCount > 0) { this.SetParm("operation", "open"); dw_list.Modify("DataWindow.Readonly=no"); } else { this.SetParm("operation", "show"); dw_list.Modify("DataWindow.Readonly=yes"); } //接单人 this.ds_2.DataWindowObject = "d_sys_userroles_wldw"; this.ds_2.Retrieve(userid); this.ddlb_jdrjc.Items.Add("全部"); for (int row = 1; row <= ds_2.RowCount; row++) { this.ddlb_jdrjc.Items.Add(ds_2.GetItemString(row, "dwjc")); } // 数据检索 this.dw_list.Retrieve(DateTime.Parse(this.dp_begin.Value.ToString()), DateTime.Parse(this.dp_end.Value.ToString()), "未发送", "全部"); //注册相关的js文件 this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js"); this.RegisterClientScriptInclude("W_YtjkList", "/Hddz/W_YtjkList.win.js"); this.RegisterClientScriptInclude("W_YtjkEdit", "/Hddz/W_YtjkEdit.win.js"); this.RegisterClientScriptInclude("W_Hddz_Beizhu", "/Hddz/W_Hddz_Beizhu.win.js"); this.RegisterClientScriptInclude("W_Hddz_Ycyy", "/Hddz/W_Hddz_Ycyy.win.js"); this.RegisterClientScriptInclude("W_Fj_Edit", "/Hddz/W_Fj_Edit.win.js"); this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); this.RegisterClientScriptInclude("W_Main1", "/Hddz/W_Main1.win.js"); //this.RegisterClientScriptInclude("W_Test", "/Hddz/W_Test.win.js"); this.RegisterClientScriptInclude("W_Filter", "/Hddz/W_Filter.win.js"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 ReportService report = (ReportService)this.dw_list.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; report = (ReportService)this.dw_1.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; // 数据分页检索,必须在数据检索之前设置 //this.dw_list.PageSize = 50; //每页检索50条记录 DataWindowChild dwc = dw_list.GetChild("ywy"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); dwc = dw_list.GetChild("bm"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); dwc = dw_list.GetChild("dz_zdy"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); this.ds_1.DataWindowObject = "d_sys_modules_all"; this.ds_1.Retrieve(); var node = "000104"; var li_row = this.ds_1.FindRow("id='" + node + "'", 1, this.ds_1.RowCount); var userid = AppService.GetUserID(); var username = AppService.GetUserName(); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); this.SetParm("userid", userid); this.SetParm("username", username); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); DateTime date = System.DateTime.Now.AddDays(-180); this.dp_begin.Value = date; // 数据检索 //this.dw_list.Retrieve(righttype, userid, DateTime.Parse(this.dp_begin.Value.ToString()), DateTime.Parse(this.dp_end.Value.ToString())); //注册相关的js文件 this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js"); this.RegisterClientScriptInclude("W_BgdjList", "/Dz_bgdj/W_BgdjList.win.js"); this.RegisterClientScriptInclude("W_BgdjEdit", "/Dz_bgdj/W_BgdjEdit.win.js"); this.RegisterClientScriptInclude("W_Bgdj_Slwts", "/Xt_Popwin/W_Bgdj_Slwts.win.js"); this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); this.RegisterClientScriptInclude("W_WldwAdd_New", "/Xt_Popwin/W_WldwAdd_New.win.js"); this.RegisterClientScriptInclude("W_Dzka_Cx", "/Xt_Popwin/W_Dzka_Cx.win.js"); this.RegisterClientScriptInclude("W_Cm_Dj", "/Xt_Popwin/W_Cm_Dj.win.js"); this.RegisterClientScriptInclude("W_Tdh_Dj", "/Xt_Popwin/W_Tdh_Dj.win.js"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 //ReportService report = (ReportService)this.dw_list.Services.Add(ServiceName.Report); //report.RequestorDrawTitle = false; var userid = AppService.GetUserID(); var username = AppService.GetUserName(); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); this.SetParm("userid", userid); this.SetParm("username", username); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); this.ds_1.DataWindowObject = "d_sys_modules_all"; this.ds_1.Retrieve(); var node = "000723"; var li_row = this.ds_1.FindRow("id='" + node + "'", 1, this.ds_1.RowCount); DateTime date = DateTime.Parse(System.DateTime.Now.ToString("yyyy/01/01")); this.dp_begin.Value = date; var role_no = this.ds_1.GetItemString(li_row, "role_no"); ds_role.Retrieve(userid, role_no); if (ds_role.RowCount > 0) { dw_list.Modify("DataWindow.Readonly=no"); this.SetParm("Readonly", "no"); } else { dw_list.Modify("DataWindow.Readonly=yes"); this.SetParm("Readonly", "yes"); }; //// 数据检索 dw_cxtj.InsertRow(0); var sjkgsj_ks_jsl = dw_cxtj.GetItemDate(1, "sjkgsj_ks_jsl"); dw_cxtj.SetItemDate(1, "sjkgsj_ks", sjkgsj_ks_jsl); DataWindowChild dwc_mdka = dw_cxtj.GetChild("mdka"); dwc_mdka.SetTransaction(this.AdoTransaction); dwc_mdka.Retrieve("%"); //// 数据检索 //this.dw_list.Retrieve("2018.01.01", "2018.12.12", "40010002", "海运", ""); //注册相关的js文件 this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js"); this.RegisterClientScriptInclude("W_Khywqktj_List", "/Xxcx/W_Khywqktj_List.win.js"); this.RegisterClientScriptInclude("W_Filter", "/Hddz/W_Filter.win.js"); this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }