public override void OnLoad() { base.OnLoad(); //系统模块编码 ReportService report = (ReportService)dw_jzxxx.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; DataWindowChild dwc_fybm = dw_jzxxx.GetChild("fybm"); dwc_fybm.SetTransaction(this.AdoTransaction); dwc_fybm.Retrieve("0116"); 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["sqdbh"] != null) { var sqdbh = this.Request["sqdbh"].ToString(); this.SetParm("sqdbh", sqdbh); dw_master.Retrieve(sqdbh); dw_jzxxx.Retrieve(sqdbh); } 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_Hddz_Kyccf_Select", "/Xt_Popwin/W_Hddz_Kyccf_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); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); DataWindowChild dwc_spdl = dw_master.GetChild("spdl"); dwc_spdl.SetTransaction(this.AdoTransaction); dwc_spdl.Retrieve("%"); if (this.Request["yw_spbm"] != null) { var spbm = this.Request["yw_spbm"].ToString(); dw_master.Retrieve(spbm); } //注册相关的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"); 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_Commodity_Select", "/Commodity/W_Commodity_Select.win.js"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); var operation = "new"; this.SetParm("operation", operation); var userid = AppService.GetUserID(); var username = AppService.GetUserName(); this.SetParm("userid", userid); this.SetParm("username", username); var ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); //DataWindowChild dwc = dw_master.GetChild("fgflx"); //dwc.SetTransaction(this.AdoTransaction); //dwc.Retrieve(""); DataWindowChild dwc = dw_master.GetChild("country"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); dw_master.InsertRow(0); dw_lxr.InsertRow(0); dw_yh.InsertRow(0); dw_jsbm.InsertRow(0); dw_ohdlxy.InsertRow(0); dw_log.Retrieve(userid, "wldw"); dw_dz.InsertRow(0); dw_khsdttsz.InsertRow(0); //注册相关的js文件 this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.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"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 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["tybm"] != null) { var tybm = this.Request["tybm"].ToString(); dw_master.Retrieve(tybm); dw_lxr.Retrieve(tybm); dw_yh.Retrieve(tybm); dw_jsbm.Retrieve(tybm); dw_gnkh_list.Retrieve(tybm); DataWindowChild dwc = dw_gnkh_lxr.GetChild("khbm"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(tybm); dw_gnkh_lxr.Retrieve(tybm); dw_gnkh_shdz.Retrieve(tybm); } //注册相关的js文件 AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); this.RegisterClientScriptInclude("W_Country_Select", "/Xt_Popwin/W_Country_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); }
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 ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); var node = "000209"; var li_row = this.ds_1.FindRow("id='" + node + "'", 1, this.ds_1.RowCount); DateTime date = System.DateTime.Now.AddDays(-180); this.dp_begin.Value = date; this.SetParm("userid", userid); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); DataWindowChild dwc = dw_list.GetChild("ywy"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); dwc = dw_list.GetChild("bm"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); //// 数据检索 // this.dw_list.Retrieve(ShareMode, userid,Dlwtf, "全部"); //注册相关的js文件 this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js"); this.RegisterClientScriptInclude("W_YfkdList", "/Yw_Zjgl/W_YfkdList.win.js"); this.RegisterClientScriptInclude("W_YfkdEdit", "/Yw_Zjgl/W_YfkdEdit.win.js"); this.RegisterClientScriptInclude("W_Filter", "/Hddz/W_Filter.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)); dw_wldz.Retrieve(ywbh, int.Parse(hddz_cxh)); //注册相关的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(); //系统模块编码 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); DataWindowChild dwc = dw_print.GetChild("ywy"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); dwc = dw_print.GetChild("bm"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); if (this.Request["sdbh"] != null) { var sqdbh = this.Request["sdbh"].ToString(); dw_master.Retrieve(sqdbh); dw_mx.Retrieve(sqdbh); } //注册相关的js文件 AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); this.RegisterClientScriptInclude("W_Mxd_Select", "/Xt_Popwin/W_Mxd_Select.win.js"); }
public override void OnLoad() { base.OnLoad(); var operation = "new"; this.SetParm("operation", operation); var userid = AppService.GetUserID(); var username = AppService.GetUserName(); this.SetParm("userid", userid); this.SetParm("username", username); var ShareMode = AppService.GetShareMode(); //var Dlwtf = AppService.GetDlwtf(); this.SetParm("ShareMode", ShareMode); //this.SetParm("Dlwtf", Dlwtf); DataWindowChild dwc_sdzbry = dw_list.GetChild("sdzbry"); dwc_sdzbry.SetTransaction(this.AdoTransaction); dwc_sdzbry.Retrieve("%"); DataWindowChild dwc_sdr = dw_list.GetChild("sdr"); dwc_sdr.SetTransaction(this.AdoTransaction); dwc_sdr.Retrieve("%"); DataWindowChild dwc_sdfbry = dw_list.GetChild("sdfbry"); dwc_sdfbry.SetTransaction(this.AdoTransaction); dwc_sdfbry.Retrieve("%"); dw_log.Retrieve(userid, "dzsd"); //注册相关的js文件 this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js"); //this.RegisterClientScriptInclude("W_Country_Select", "/Xt_Popwin/W_Country_Select.win.js"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); }
public override void OnLoad() { base.OnLoad(); //系统模块编码 DataWindowChild dwc_sjr_lxr = dw_master.GetChild("sjr_lxr"); dwc_sjr_lxr.SetTransaction(this.AdoTransaction); dwc_sjr_lxr.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["kddbh"] != null) { var kddbh = this.Request["kddbh"].ToString(); this.SetParm("kddbh", kddbh); dw_master.Retrieve(kddbh); } 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_Ry_Select", "/Xt_Popwin/W_Ry_Select.win.js"); //注册相关的js文件 //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }
public override void OnLoad() { base.OnLoad(); DataWindowChild dwc = dw_1.GetChild("Dlwtf"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve("%"); var userid = AppService.GetUserID(); this.SetParm("userid", userid); var Dlwtf = AppService.GetDlwtf(); this.SetParm("Dlwtf", Dlwtf); if (this.Request["ID"] != null) { dw_1.Retrieve(this.Request["ID"].ToString()); } else { dw_1.InsertRow(0); var id_max = this.Request["id_max"].ToString(); dw_1.SetItemString(1, "id", id_max); dw_1.SetItemString(1, "dlwtf", Dlwtf); } //注册相关的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)); }
public override void OnLoad() { base.OnLoad(); ReportService report = (ReportService)dw_1.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; report.MainTitle = "系统用户列表"; report.ReportTiles.Add(new ReportTitle(1, Sybase.DataWindow.Alignment.Right, "打印日期:[@系统日期] 页码:[@页码]/[@总页数]")); DataWindowChild dwc = dw_1.GetChild("Dlwtf"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve("%"); DataWindowChild dwc_d_no = dw_1.GetChild("d_no"); dwc_d_no.SetTransaction(this.AdoTransaction); dwc_d_no.Retrieve("%"); dw_1.Retrieve(); ////注册需要使用的弹出窗口的事件处理程序的JS文件 if (this.Page != null) { this.RegisterClientScriptInclude("W_Sys_User_List", "/Admin/W_Sys_User_List.win.js"); this.RegisterClientScriptInclude("W_Sys_User_Edit", "/Admin/W_Sys_User_Edit.win.js"); this.RegisterClientScriptInclude("W_Sys_User_SetPassword", "/Admin/W_Sys_User_SetPassword.win.js"); this.RegisterClientScriptInclude("W_Sys_User_SetRoles", "/Admin/W_Sys_User_SetRoles.win.js"); this.RegisterClientScriptInclude("W_Sys_User_SetBType", "/Admin/W_Sys_User_SetBType.win.js"); this.RegisterClientScriptInclude("W_Sys_User_SetPower", "/Admin/W_Sys_User_SetPower.win.js"); this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.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(); var node = "000165"; 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.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_HddzList", "/Hddz/W_HddzList.win.js"); this.RegisterClientScriptInclude("W_HddzEdit", "/Hddz/W_HddzEdit.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)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(""); this.ds_1.DataWindowObject = "d_sys_modules_all"; this.ds_1.Retrieve(); var node = "000129"; 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_dlxysxgyl.Retrieve(userid); //if (ds_dlxysxgyl.RowCount > 0 ) { // btn_sx.Visible = true; // } //else { // btn_sx.Visible = false; //} ds_role.Retrieve(userid, role_no); if (ds_role.RowCount > 0) { btn_new.Visible = true; btn_duplicate.Visible = true; btn_delete.Visible = true; btn_sx.Visible = true; this.SetParm("operation", "open"); } else { btn_new.Visible = false; btn_duplicate.Visible = false; btn_delete.Visible = false; btn_sx.Visible = false; this.SetParm("operation", "show"); } //接单人 this.ds_2.DataWindowObject = "d_sys_userroles_wldw"; this.ds_2.Retrieve(userid); this.ddlb_jdrjc.Items.Add("全部"); for (int i = 1; i <= this.ds_2.RowCount; i++) { this.ddlb_jdrjc.Items.Add(this.ds_2.GetItemString(i, "dwjc")); } // 数据检索 //this.dw_list.Retrieve(DateTime.Parse(this.dp_begin.Value.ToString()), DateTime.Parse(this.dp_end.Value.ToString()), Dlwtf); //注册相关的js文件 this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js"); this.RegisterClientScriptInclude("W_DlxyList", "/Dlxy/W_DlxyList.win.js"); this.RegisterClientScriptInclude("W_DlxyEdit", "/Dlxy/W_DlxyEdit.win.js"); this.RegisterClientScriptInclude("W_Fj_Edit", "/Hddz/W_Fj_Edit.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("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_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); 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); if (dw_zsbh.Retrieve(ywbh) <= 0) { var sjzsbh_row = ds_sjzsbh.Retrieve("%"); 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); } } ; 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)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); } this.ds_jyj.DataWindowObject = "dw_wldw_jyj_select"; this.ds_jyj.Retrieve(); ddlb_jyj.Items.Add("全部"); for (int row = 1; row <= this.ds_jyj.RowCount; row++) { var jyjjc = this.ds_jyj.GetItemString(row, "khjc"); ddlb_jyj.Items.Add(jyjjc); } var node = "000109"; 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(-60); 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"); } ds_role.Retrieve(userid, "00010902"); var count = ds_role.RowCount; if (count <= 0) { dw_list.Modify("hxzgtgzt.Protect=1"); } //if (userid == "1003") //{ // btn_qgld.Visible = true; // btn_yspt.Visible = true; //} //接单人 this.ds_3.DataWindowObject = "d_sys_userroles_wldw"; this.ds_3.Retrieve(userid); this.ddlb_jdrjc.Items.Add("全部"); for (int row = 1; row <= this.ds_3.RowCount; row++) { var ctr_area2 = this.ds_3.GetItemString(row, "dwjc"); this.ddlb_jdrjc.Items.Add(ctr_area2); } //目的港 this.ds_4.DataWindowObject = "dd_cport_select"; this.ds_4.Retrieve(); this.ddlb_mdg.Items.Add("全部"); for (int row = 1; row <= ds_4.RowCount; row++) { this.ddlb_mdg.Items.Add(this.ds_4.GetItemString(row, "cname")); } //WebRequest wreq = WebRequest.Create("http://www.fruitease.com:8009/images/799870015563432762.jpg"); //HttpWebResponse wresp = (HttpWebResponse)wreq.GetResponse(); //Stream s = wresp.GetResponseStream(); //System.Drawing.Image img; //img = System.Drawing.Image.FromStream(s); //img.Save("D:\\aa.jpg", ImageFormat.Gif); var dd = DateTime.Parse(this.dp_end.Value.ToString("yyyy/MM/dd hh:mm")); // 数据检索 this.dw_list.Retrieve(userid, DateTime.Parse(this.dp_begin.Value.ToString("yyyy/MM/dd hh:mm")), DateTime.Parse(this.dp_end.Value.ToString("yyyy/MM/dd hh:mm")), "zj", "未靠港", Dlwtf, "单证", Tybm, Sfqytybm, "全部", "N", "全部", "全部", "全部", "全部"); this.dw_log.Retrieve(userid, "hdlb"); //注册相关的js文件 this.RegisterClientScriptInclude("W_Wldw_Tggz_hddz", "/Xt_Popwin/W_Wldw_Tggz_hddz.win.js"); this.RegisterClientScriptInclude("W_Hddz_lxr", "/Hddz/W_Hddz_lxr.win.js"); this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js"); this.RegisterClientScriptInclude("W_HddzList", "/Hddz/W_HddzList.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_Ygkthsj", "/Hddz/W_Hddz_Ygkthsj.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_Eport_Select", "/Xt_Popwin/W_Eport_Select.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_cmd.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; report = (ReportService)dw_fy.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; report = (ReportService)dw_bg.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; report = (ReportService)dw_selected.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_bg.Retrieve(mxdbh, bbh); dw_fy.Retrieve(mxdbh, bbh); dw_tyzss.Retrieve(mxdbh, bbh); dw_selected.Retrieve(); dw_memo.Retrieve(mxdbh); dw_1.Retrieve(mxdbh); } this.tabpage_tyzss.Visible = false; //注册相关的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_Gen_Bgsp", "/Xt_Popwin/W_Gen_Bgsp.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)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_bsnr.GetChild("sdzbry"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); dwc = dw_bsnr.GetChild("sdfbry"); 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 = "000151"; 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.ds_3.DataWindowObject = "d_sys_userroles_wldw"; this.ds_3.Retrieve(userid); this.ddlb_jdrjc.Items.Add("全部"); for (int row = 1; row <= ds_3.RowCount; row++) { this.ddlb_jdrjc.Items.Add(ds_3.GetItemString(row, "dwjc")); } // 数据检索 this.dw_list.Retrieve(DateTime.Parse(this.dp_begin.Value.ToString()), DateTime.Parse(this.dp_end.Value.ToString()), Dlwtf, Tybm, Sfqytybm, "N", "N", 3, "全部"); //注册相关的js文件 this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js"); this.RegisterClientScriptInclude("W_DzgzList", "/Hddz/W_DzgzList.win.js"); //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); this.RegisterClientScriptInclude("W_Hddz_Dzsd", "/Hddz/W_Hddz_Dzsd.win.js"); this.RegisterClientScriptInclude("W_Filter", "/Hddz/W_Filter.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)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("%"); 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); } //注册相关的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)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(); for (int row = 1; row <= this.ds_2.RowCount; row++) { var ctr_area2 = this.ds_2.GetItemString(row, "ctr_area2"); } this.ds_jyj.DataWindowObject = "dw_wldw_jyj_select"; this.ds_jyj.Retrieve(); for (int row = 1; row <= this.ds_jyj.RowCount; row++) { var jyjjc = this.ds_jyj.GetItemString(row, "khjc"); } var node = "000109"; 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(-60); 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"); } ds_role_kybmjl.Retrieve(userid, "076"); if (ds_role_kybmjl.RowCount > 0) { this.SetParm("kybmjl", "Y"); } else { this.SetParm("kybmjl", "N"); } ds_role_hybmjl.Retrieve(userid, "077"); if (ds_role_hybmjl.RowCount > 0) { this.SetParm("hybmjl", "Y"); } else { this.SetParm("hybmjl", "N"); } //if (userid == "1003") //{ // btn_qgld.Visible = true; // btn_yspt.Visible = true; //} // 数据检索 this.dw_list.Retrieve(userid, DateTime.Parse(this.dp_begin.Value.ToString("yyyy/MM/dd hh:mm")), DateTime.Parse(this.dp_end.Value.ToString("yyyy/MM/dd hh:mm")), "zj", "未靠港", Dlwtf, "单证", Tybm, Sfqytybm, "全部", "N", "全部", "全部", "全部", "全部"); this.dw_log.Retrieve(userid, "hdlb"); //注册相关的js文件 this.RegisterClientScriptInclude("W_Hddz_List_GBywbhs", "/Hddz/W_Hddz_List_GBywbhs.win.js"); this.RegisterClientScriptInclude("W_Wldw_Tggz", "/Xt_Popwin/W_Wldw_Tggz.win.js"); this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js"); this.RegisterClientScriptInclude("W_Hddz_List_GB_ywbh", "/Hddz/W_Hddz_List_GB_ywbh.win.js"); this.RegisterClientScriptInclude("W_HddzEdit", "/Hddz/W_HddzEdit.win.js"); this.RegisterClientScriptInclude("W_Hddz_Beizhu", "/Hddz/W_Hddz_Beizhu.win.js"); this.RegisterClientScriptInclude("W_Hddz_Ygkthsj", "/Hddz/W_Hddz_Ygkthsj.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_Eport_Select", "/Xt_Popwin/W_Eport_Select.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 = 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("0115"); 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["sqdbh"] != null) { var sqdbh = this.Request["sqdbh"].ToString(); var fydl = "0105"; DateTime dqkssj = System.DateTime.Now.AddDays(-180); DateTime dqjssj = System.DateTime.Now;; this.SetParm("sqdbh", sqdbh); var row = dw_master.Retrieve(sqdbh); if (row > 0) { fydl = dw_master.GetItemString(row, "fydl"); dqkssj = dw_master.GetItemDateTime(row, "dqkssj"); dqjssj = dw_master.GetItemDateTime(row, "dqjssj"); } dw_jzxxx.Retrieve(sqdbh, "N", fydl, dqkssj, dqjssj); } 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_Hddz_Scfy_Select", "/Xt_Popwin/W_Hddz_Scfy_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 = 200; //每页检索50条记录 DataWindowChild dwc = dw_list.GetChild("zbr"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); DataWindowChild jcka = dw_list.GetChild("jcka"); jcka.SetTransaction(this.AdoTransaction); jcka.Retrieve(""); DataWindowChild gwgysmc = dw_gl.GetChild("gwgysmc"); gwgysmc.SetTransaction(this.AdoTransaction); gwgysmc.Retrieve(""); DataWindowChild hdzt = dw_gl.GetChild("hdzt"); hdzt.SetTransaction(this.AdoTransaction); hdzt.Retrieve(""); DataWindowChild pz = dw_gl.GetChild("pz"); pz.SetTransaction(this.AdoTransaction); pz.Retrieve(""); DataWindowChild rjka = dw_gl.GetChild("rjka"); rjka.SetTransaction(this.AdoTransaction); rjka.Retrieve(""); DataWindowChild lry = dw_gl.GetChild("lry"); lry.SetTransaction(this.AdoTransaction); lry.Retrieve(""); this.ds_1.DataWindowObject = "d_sys_modules_all"; this.ds_1.Retrieve(); var node = "002001"; 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(-60); DateTime date = DateTime.Parse(System.DateTime.Now.ToString("yyyy-MM-01")).AddMonths(-1); 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=no"); } dw_gl.InsertRow(0); this.ds_ssbm.DataWindowObject = "dd_ssbm_select"; this.ds_ssbm.Retrieve(userid); this.ddlb_ssbm.Items.Add("全部"); for (int row = 1; row <= this.ds_ssbm.RowCount; row++) { var name = this.ds_ssbm.GetItemString(row, "name"); this.ddlb_ssbm.Items.Add(name); } this.ds_lbgs.DataWindowObject = "dw_lbgs_select"; this.ds_lbgs.Retrieve(userid, "QsWebSoft.Szyw.W_Ywxx_List", "dw_ywxx_list"); for (int row = 1; row <= this.ds_lbgs.RowCount; row++) { var gsmc = ds_lbgs.GetItemString(row, "gsmc"); this.ddlb_gsxz.Items.Add(gsmc); } var dd = DateTime.Parse(this.dp_end.Value.ToString("yyyy/MM/dd hh:mm")); // 数据检索 //this.dw_list.Retrieve("单证", DateTime.Parse(this.dp_begin.Value.ToString("yyyy/MM/dd hh:mm")), DateTime.Parse(this.dp_end.Value.ToString("yyyy/MM/dd hh:mm")), ""); //this.dw_list.Retrieve(DateTime.Parse(this.dp_begin.Value.ToString("yyyy/MM/dd hh:mm")), DateTime.Parse(this.dp_end.Value.ToString("yyyy/MM/dd hh:mm")), "单证", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""); this.dw_log.Retrieve(userid, "ywxx"); //注册相关的js文件 this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js"); this.RegisterClientScriptInclude("W_Ywxx_List", "/Hddz/W_Ywxx_List.win.js"); this.RegisterClientScriptInclude("W_Ywxx_Edit", "/Hddz/W_Ywxx_Edit.win.js"); this.RegisterClientScriptInclude("W_Hddz_Ycyy", "/Hddz/W_Hddz_Ycyy.win.js"); this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); this.RegisterClientScriptInclude("W_Filter", "/Hddz/W_Filter.win.js"); this.RegisterClientScriptInclude("W_FileWindow", "/Hddz/W_FileWindow.win.js"); this.RegisterClientScriptInclude("W_Eport_Select", "/Xt_Popwin/W_Eport_Select.win.js"); this.RegisterClientScriptInclude("W_CommodityAdd", "/Commodity/W_CommodityAdd.win.js"); this.RegisterClientScriptInclude("W_Lbgs_Edit", "/Szyw/W_Lbgs_Edit.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 = 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("0109"); 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); var li_insert = 0; var jzxxx_sc_bz = ""; if (this.Request["ywbh"] != null) { var ywbh = this.Request["ywbh"].ToString(); var cxh = this.Request["cxh"]; var yfkdbh = this.Request["yfkdbh"]; this.SetParm("ywbh", ywbh); this.SetParm("cxh", cxh); dw_master.Retrieve(ywbh, cxh); yfkdbh = dw_master.GetItemString(1, "jzxxx_yfkdbh"); if (yfkdbh == "" || yfkdbh == null) { li_insert = dw_jzxxx.InsertRow(0); dw_jzxxx.SetItemString(li_insert, "fybm", "010902"); jzxxx_sc_bz = dw_master.GetItemString(1, "jzxxx_sc_bz"); dw_jzxxx.SetItemDecimal(li_insert, "je", 1100); dw_jzxxx.SetItemString(li_insert, "ywbh", dw_master.GetItemString(1, "ywbh")); dw_jzxxx.SetItemDouble(li_insert, "hddz_cxh", dw_master.GetItemDouble(1, "jzxxx_cxh")); dw_jzxxx.SetItemDateTime(li_insert, "hdcsj", dw_master.GetItemDateTime(1, "jzxxx_hdcsj")); dw_jzxxx.SetItemString(li_insert, "hth", dw_master.GetItemString(1, "hth")); dw_jzxxx.SetItemString(li_insert, "khbm", dw_master.GetItemString(1, "khbm")); dw_jzxxx.SetItemString(li_insert, "khmc", dw_master.GetItemString(1, "khmc")); dw_jzxxx.SetItemString(li_insert, "khjc", dw_master.GetItemString(1, "khjc")); dw_jzxxx.SetItemString(li_insert, "khpym", dw_master.GetItemString(1, "khpym")); dw_jzxxx.SetItemString(li_insert, "jzxh", dw_master.GetItemString(1, "jzxxx_jzxh")); dw_jzxxx.SetItemString(li_insert, "xx", dw_master.GetItemString(1, "jzxxx_xx")); dw_jzxxx.SetItemString(li_insert, "xl", dw_master.GetItemString(1, "jzxxx_xl")); dw_jzxxx.SetItemString(li_insert, "sjshrbm", dw_master.GetItemString(1, "jzxxx_sjshrbm")); dw_jzxxx.SetItemString(li_insert, "sjshrmc", dw_master.GetItemString(1, "jzxxx_sjshrmc")); dw_jzxxx.SetItemString(li_insert, "xhgqbm", dw_master.GetItemString(1, "xhgqbm")); dw_jzxxx.SetItemString(li_insert, "xhgq", dw_master.GetItemString(1, "xhgq")); dw_jzxxx.SetItemString(li_insert, "xhgqjc", dw_master.GetItemString(1, "xhgqjc")); dw_jzxxx.SetItemString(li_insert, "xhgqpym", dw_master.GetItemString(1, "xhgqpym")); dw_jzxxx.SetItemString(li_insert, "sc_bz", dw_master.GetItemString(1, "jzxxx_sc_bz")); dw_jzxxx.SetItemString(li_insert, "hxfs", dw_master.GetItemString(1, "jzxxx_hxfs")); dw_jzxxx.SetItemString(li_insert, "zjfscwld_bz", dw_master.GetItemString(1, "jzxxx_zjfscwld_bz")); dw_jzxxx.SetItemString(li_insert, "zjfscwld_zyxx", dw_master.GetItemString(1, "jzxxx_zjfscwld_zyxx")); dw_jzxxx.SetItemDateTime(li_insert, "fscwl_ddsj", dw_master.GetItemDateTime(1, "jzxxx_fscwl_ddsj")); dw_jzxxx.SetItemDateTime(li_insert, "fscwl_lksj", dw_master.GetItemDateTime(1, "jzxxx_fscwl_lksj")); dw_jzxxx.SetItemSqlDecimal(li_insert, "zlsj", dw_master.GetItemDecimal(1, "zlsj")); dw_jzxxx.SetItemString(li_insert, "jdrbm", dw_master.GetItemString(1, "jdrbm")); dw_jzxxx.SetItemString(li_insert, "jdrjc", dw_master.GetItemString(1, "jdrjc")); dw_jzxxx.SetItemString(li_insert, "jdrmc", dw_master.GetItemString(1, "jdrmc")); dw_jzxxx.SetItemString(li_insert, "jdrpym", dw_master.GetItemString(1, "jdrpym")); var zjfscwld_bz = dw_master.GetItemString(1, "jzxxx_zjfscwld_bz"); var jschfscwld_bz = dw_master.GetItemString(1, "jzxxx_jschfscwld_bz"); if (zjfscwld_bz == "Y" || jschfscwld_bz == "Y") { li_insert = dw_jzxxx.InsertRow(0); dw_jzxxx.SetItemString(li_insert, "fybm", "010903"); dw_jzxxx.SetItemDecimal(li_insert, "je", 0); dw_jzxxx.SetItemString(li_insert, "ywbh", dw_master.GetItemString(1, "ywbh")); dw_jzxxx.SetItemDouble(li_insert, "hddz_cxh", dw_master.GetItemDouble(1, "jzxxx_cxh")); dw_jzxxx.SetItemDateTime(li_insert, "hdcsj", dw_master.GetItemDateTime(1, "jzxxx_hdcsj")); dw_jzxxx.SetItemString(li_insert, "hth", dw_master.GetItemString(1, "hth")); dw_jzxxx.SetItemString(li_insert, "khbm", dw_master.GetItemString(1, "khbm")); dw_jzxxx.SetItemString(li_insert, "khmc", dw_master.GetItemString(1, "khmc")); dw_jzxxx.SetItemString(li_insert, "khjc", dw_master.GetItemString(1, "khjc")); dw_jzxxx.SetItemString(li_insert, "khpym", dw_master.GetItemString(1, "khpym")); dw_jzxxx.SetItemString(li_insert, "jzxh", dw_master.GetItemString(1, "jzxxx_jzxh")); dw_jzxxx.SetItemString(li_insert, "xx", dw_master.GetItemString(1, "jzxxx_xx")); dw_jzxxx.SetItemString(li_insert, "xl", dw_master.GetItemString(1, "jzxxx_xl")); dw_jzxxx.SetItemString(li_insert, "sjshrbm", dw_master.GetItemString(1, "jzxxx_sjshrbm")); dw_jzxxx.SetItemString(li_insert, "sjshrmc", dw_master.GetItemString(1, "jzxxx_sjshrmc")); dw_jzxxx.SetItemString(li_insert, "xhgqbm", dw_master.GetItemString(1, "xhgqbm")); dw_jzxxx.SetItemString(li_insert, "xhgq", dw_master.GetItemString(1, "xhgq")); dw_jzxxx.SetItemString(li_insert, "xhgqjc", dw_master.GetItemString(1, "xhgqjc")); dw_jzxxx.SetItemString(li_insert, "xhgqpym", dw_master.GetItemString(1, "xhgqpym")); dw_jzxxx.SetItemString(li_insert, "sc_bz", dw_master.GetItemString(1, "jzxxx_sc_bz")); dw_jzxxx.SetItemString(li_insert, "hxfs", dw_master.GetItemString(1, "jzxxx_hxfs")); dw_jzxxx.SetItemString(li_insert, "zjfscwld_bz", dw_master.GetItemString(1, "jzxxx_zjfscwld_bz")); dw_jzxxx.SetItemString(li_insert, "zjfscwld_zyxx", dw_master.GetItemString(1, "jzxxx_zjfscwld_zyxx")); dw_jzxxx.SetItemDateTime(li_insert, "fscwl_ddsj", dw_master.GetItemDateTime(1, "jzxxx_fscwl_ddsj")); dw_jzxxx.SetItemDateTime(li_insert, "fscwl_lksj", dw_master.GetItemDateTime(1, "jzxxx_fscwl_lksj")); dw_jzxxx.SetItemSqlDecimal(li_insert, "zlsj", dw_master.GetItemDecimal(1, "zlsj")); dw_jzxxx.SetItemString(li_insert, "jdrbm", dw_master.GetItemString(1, "jdrbm")); dw_jzxxx.SetItemString(li_insert, "jdrjc", dw_master.GetItemString(1, "jdrjc")); dw_jzxxx.SetItemString(li_insert, "jdrmc", dw_master.GetItemString(1, "jdrmc")); dw_jzxxx.SetItemString(li_insert, "jdrpym", dw_master.GetItemString(1, "jdrpym")); } ; var xhgqjc = dw_master.GetItemString(1, "xhgqjc"); if (xhgqjc == "洋山" || xhgqjc == "洋三" || xhgqjc == "洋四") { li_insert = dw_jzxxx.InsertRow(0); dw_jzxxx.SetItemString(li_insert, "fybm", "010901"); dw_jzxxx.SetItemDecimal(li_insert, "je", 800); dw_jzxxx.SetItemString(li_insert, "ywbh", dw_master.GetItemString(1, "ywbh")); dw_jzxxx.SetItemDouble(li_insert, "hddz_cxh", dw_master.GetItemDouble(1, "jzxxx_cxh")); dw_jzxxx.SetItemDateTime(li_insert, "hdcsj", dw_master.GetItemDateTime(1, "jzxxx_hdcsj")); dw_jzxxx.SetItemString(li_insert, "hth", dw_master.GetItemString(1, "hth")); dw_jzxxx.SetItemString(li_insert, "khbm", dw_master.GetItemString(1, "khbm")); dw_jzxxx.SetItemString(li_insert, "khmc", dw_master.GetItemString(1, "khmc")); dw_jzxxx.SetItemString(li_insert, "khjc", dw_master.GetItemString(1, "khjc")); dw_jzxxx.SetItemString(li_insert, "khpym", dw_master.GetItemString(1, "khpym")); dw_jzxxx.SetItemString(li_insert, "jzxh", dw_master.GetItemString(1, "jzxxx_jzxh")); dw_jzxxx.SetItemString(li_insert, "xx", dw_master.GetItemString(1, "jzxxx_xx")); dw_jzxxx.SetItemString(li_insert, "xl", dw_master.GetItemString(1, "jzxxx_xl")); dw_jzxxx.SetItemString(li_insert, "sjshrbm", dw_master.GetItemString(1, "jzxxx_sjshrbm")); dw_jzxxx.SetItemString(li_insert, "sjshrmc", dw_master.GetItemString(1, "jzxxx_sjshrmc")); dw_jzxxx.SetItemString(li_insert, "xhgqbm", dw_master.GetItemString(1, "xhgqbm")); dw_jzxxx.SetItemString(li_insert, "xhgq", dw_master.GetItemString(1, "xhgq")); dw_jzxxx.SetItemString(li_insert, "xhgqjc", dw_master.GetItemString(1, "xhgqjc")); dw_jzxxx.SetItemString(li_insert, "xhgqpym", dw_master.GetItemString(1, "xhgqpym")); dw_jzxxx.SetItemString(li_insert, "sc_bz", dw_master.GetItemString(1, "jzxxx_sc_bz")); dw_jzxxx.SetItemString(li_insert, "hxfs", dw_master.GetItemString(1, "jzxxx_hxfs")); dw_jzxxx.SetItemString(li_insert, "zjfscwld_bz", dw_master.GetItemString(1, "jzxxx_zjfscwld_bz")); dw_jzxxx.SetItemString(li_insert, "zjfscwld_zyxx", dw_master.GetItemString(1, "jzxxx_zjfscwld_zyxx")); dw_jzxxx.SetItemDateTime(li_insert, "fscwl_ddsj", dw_master.GetItemDateTime(1, "jzxxx_fscwl_ddsj")); dw_jzxxx.SetItemDateTime(li_insert, "fscwl_lksj", dw_master.GetItemDateTime(1, "jzxxx_fscwl_lksj")); dw_jzxxx.SetItemSqlDecimal(li_insert, "zlsj", dw_master.GetItemDecimal(1, "zlsj")); dw_jzxxx.SetItemString(li_insert, "jdrbm", dw_master.GetItemString(1, "jdrbm")); dw_jzxxx.SetItemString(li_insert, "jdrjc", dw_master.GetItemString(1, "jdrjc")); dw_jzxxx.SetItemString(li_insert, "jdrmc", dw_master.GetItemString(1, "jdrmc")); dw_jzxxx.SetItemString(li_insert, "jdrpym", dw_master.GetItemString(1, "jdrpym")); } var hxfs = dw_master.GetItemString(1, "jzxxx_hxfs"); if (hxfs == "空车还箱") { li_insert = dw_jzxxx.InsertRow(0); dw_jzxxx.SetItemString(li_insert, "fybm", "010905"); dw_jzxxx.SetItemDecimal(li_insert, "je", 500); dw_jzxxx.SetItemString(li_insert, "ywbh", dw_master.GetItemString(1, "ywbh")); dw_jzxxx.SetItemDouble(li_insert, "hddz_cxh", dw_master.GetItemDouble(1, "jzxxx_cxh")); dw_jzxxx.SetItemDateTime(li_insert, "hdcsj", dw_master.GetItemDateTime(1, "jzxxx_hdcsj")); dw_jzxxx.SetItemString(li_insert, "hth", dw_master.GetItemString(1, "hth")); dw_jzxxx.SetItemString(li_insert, "khbm", dw_master.GetItemString(1, "khbm")); dw_jzxxx.SetItemString(li_insert, "khmc", dw_master.GetItemString(1, "khmc")); dw_jzxxx.SetItemString(li_insert, "khjc", dw_master.GetItemString(1, "khjc")); dw_jzxxx.SetItemString(li_insert, "khpym", dw_master.GetItemString(1, "khpym")); dw_jzxxx.SetItemString(li_insert, "jzxh", dw_master.GetItemString(1, "jzxxx_jzxh")); dw_jzxxx.SetItemString(li_insert, "xx", dw_master.GetItemString(1, "jzxxx_xx")); dw_jzxxx.SetItemString(li_insert, "xl", dw_master.GetItemString(1, "jzxxx_xl")); dw_jzxxx.SetItemString(li_insert, "sjshrbm", dw_master.GetItemString(1, "jzxxx_sjshrbm")); dw_jzxxx.SetItemString(li_insert, "sjshrmc", dw_master.GetItemString(1, "jzxxx_sjshrmc")); dw_jzxxx.SetItemString(li_insert, "xhgqbm", dw_master.GetItemString(1, "xhgqbm")); dw_jzxxx.SetItemString(li_insert, "xhgq", dw_master.GetItemString(1, "xhgq")); dw_jzxxx.SetItemString(li_insert, "xhgqjc", dw_master.GetItemString(1, "xhgqjc")); dw_jzxxx.SetItemString(li_insert, "xhgqpym", dw_master.GetItemString(1, "xhgqpym")); dw_jzxxx.SetItemString(li_insert, "sc_bz", dw_master.GetItemString(1, "jzxxx_sc_bz")); dw_jzxxx.SetItemString(li_insert, "hxfs", dw_master.GetItemString(1, "jzxxx_hxfs")); dw_jzxxx.SetItemString(li_insert, "zjfscwld_bz", dw_master.GetItemString(1, "jzxxx_zjfscwld_bz")); dw_jzxxx.SetItemString(li_insert, "zjfscwld_zyxx", dw_master.GetItemString(1, "jzxxx_zjfscwld_zyxx")); dw_jzxxx.SetItemDateTime(li_insert, "fscwl_ddsj", dw_master.GetItemDateTime(1, "jzxxx_fscwl_ddsj")); dw_jzxxx.SetItemDateTime(li_insert, "fscwl_lksj", dw_master.GetItemDateTime(1, "jzxxx_fscwl_lksj")); dw_jzxxx.SetItemSqlDecimal(li_insert, "zlsj", dw_master.GetItemDecimal(1, "zlsj")); dw_jzxxx.SetItemString(li_insert, "jdrbm", dw_master.GetItemString(1, "jdrbm")); dw_jzxxx.SetItemString(li_insert, "jdrjc", dw_master.GetItemString(1, "jdrjc")); dw_jzxxx.SetItemString(li_insert, "jdrmc", dw_master.GetItemString(1, "jdrmc")); dw_jzxxx.SetItemString(li_insert, "jdrpym", dw_master.GetItemString(1, "jdrpym")); } var zlsj = dw_master.GetItemDecimal(1, "zlsj"); if (zlsj > 1) { li_insert = dw_jzxxx.InsertRow(0); dw_jzxxx.SetItemString(li_insert, "fybm", "010904"); dw_jzxxx.SetItemDecimal(li_insert, "je", 1000 * (zlsj - 1)); dw_jzxxx.SetItemString(li_insert, "ywbh", dw_master.GetItemString(1, "ywbh")); dw_jzxxx.SetItemDouble(li_insert, "hddz_cxh", dw_master.GetItemDouble(1, "jzxxx_cxh")); dw_jzxxx.SetItemDateTime(li_insert, "hdcsj", dw_master.GetItemDateTime(1, "jzxxx_hdcsj")); dw_jzxxx.SetItemString(li_insert, "hth", dw_master.GetItemString(1, "hth")); dw_jzxxx.SetItemString(li_insert, "khbm", dw_master.GetItemString(1, "khbm")); dw_jzxxx.SetItemString(li_insert, "khmc", dw_master.GetItemString(1, "khmc")); dw_jzxxx.SetItemString(li_insert, "khjc", dw_master.GetItemString(1, "khjc")); dw_jzxxx.SetItemString(li_insert, "khpym", dw_master.GetItemString(1, "khpym")); dw_jzxxx.SetItemString(li_insert, "jzxh", dw_master.GetItemString(1, "jzxxx_jzxh")); dw_jzxxx.SetItemString(li_insert, "xx", dw_master.GetItemString(1, "jzxxx_xx")); dw_jzxxx.SetItemString(li_insert, "xl", dw_master.GetItemString(1, "jzxxx_xl")); dw_jzxxx.SetItemString(li_insert, "sjshrbm", dw_master.GetItemString(1, "jzxxx_sjshrbm")); dw_jzxxx.SetItemString(li_insert, "sjshrmc", dw_master.GetItemString(1, "jzxxx_sjshrmc")); dw_jzxxx.SetItemString(li_insert, "xhgqbm", dw_master.GetItemString(1, "xhgqbm")); dw_jzxxx.SetItemString(li_insert, "xhgq", dw_master.GetItemString(1, "xhgq")); dw_jzxxx.SetItemString(li_insert, "xhgqjc", dw_master.GetItemString(1, "xhgqjc")); dw_jzxxx.SetItemString(li_insert, "xhgqpym", dw_master.GetItemString(1, "xhgqpym")); dw_jzxxx.SetItemString(li_insert, "sc_bz", dw_master.GetItemString(1, "jzxxx_sc_bz")); dw_jzxxx.SetItemString(li_insert, "hxfs", dw_master.GetItemString(1, "jzxxx_hxfs")); dw_jzxxx.SetItemString(li_insert, "zjfscwld_bz", dw_master.GetItemString(1, "jzxxx_zjfscwld_bz")); dw_jzxxx.SetItemString(li_insert, "zjfscwld_zyxx", dw_master.GetItemString(1, "jzxxx_zjfscwld_zyxx")); dw_jzxxx.SetItemDateTime(li_insert, "fscwl_ddsj", dw_master.GetItemDateTime(1, "jzxxx_fscwl_ddsj")); dw_jzxxx.SetItemDateTime(li_insert, "fscwl_lksj", dw_master.GetItemDateTime(1, "jzxxx_fscwl_lksj")); dw_jzxxx.SetItemSqlDecimal(li_insert, "zlsj", dw_master.GetItemDecimal(1, "zlsj")); dw_jzxxx.SetItemString(li_insert, "jdrbm", dw_master.GetItemString(1, "jdrbm")); dw_jzxxx.SetItemString(li_insert, "jdrjc", dw_master.GetItemString(1, "jdrjc")); dw_jzxxx.SetItemString(li_insert, "jdrmc", dw_master.GetItemString(1, "jdrmc")); dw_jzxxx.SetItemString(li_insert, "jdrpym", dw_master.GetItemString(1, "jdrpym")); } ; } else { dw_jzxxx.Retrieve(yfkdbh); } } 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_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(); //系统模块编码 ReportService report = (ReportService)dw_jzxxx.Services.Add(ServiceName.Report); report.RequestorDrawTitle = false; DataWindowChild dwc_fybm = dw_jzxxx.GetChild("fybm"); dwc_fybm.SetTransaction(this.AdoTransaction); dwc_fybm.Retrieve("0123"); //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("06"); 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["sqdbh"] != null) { var cdphbm = this.Request["sqdbh"].ToString(); this.SetParm("cdphbm", cdphbm); dw_master.Retrieve(cdphbm); dw_jzxxx.Retrieve(cdphbm); } this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); this.RegisterClientScriptInclude("W_SzywFkglEdit_pop", "/Szyw/W_SzywFkglEdit_pop.win.js"); this.RegisterClientScriptInclude("W_SzywFkglEdit", "/Szyw/W_SzywFkglEdit.win.js"); this.RegisterClientScriptInclude("W_SzywFkglList", "/Szyw/W_SzywFkglList.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_Wlgz_Sjfk_Select", "/Xt_Popwin/W_Wlgz_Sjfk_Select.win.js"); this.RegisterClientScriptInclude("W_Filter", "/Hddz/W_Filter.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(); 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("0107"); this.ds_1.DataWindowObject = "d_sys_modules_all"; this.ds_1.Retrieve(); var node = "009104"; 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_ThzcfList", "/Fybz/W_Fybz_ThzcfList.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_cmd.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_cmd.GetChild("xx"); //dwc_xx.SetTransaction(this.AdoTransaction); //dwc_xx.Retrieve("%"); //DataWindowChild dwc_xl = dw_cmd.GetChild("xl"); //dwc_xl.SetTransaction(this.AdoTransaction); //dwc_xl.Retrieve("%"); //DataWindowChild dwc_fybm = dw_cmd.GetChild("fybm"); //dwc_fybm.SetTransaction(this.AdoTransaction); //dwc_fybm.Retrieve("0116"); DataWindowChild dwc_fybm = dw_cmd.GetChild("fybm"); dwc_fybm.SetTransaction(this.AdoTransaction); dwc_fybm.Retrieve("0"); 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["yshdfygjbh"] != null) { var yshdfygjbh = this.Request["yshdfygjbh"].ToString(); this.SetParm("yshdfygjbh", yshdfygjbh); dw_master.Retrieve(yshdfygjbh); dw_cmd.Retrieve(yshdfygjbh); } dw_log.Retrieve(userid, "kfgj"); 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_Hdfy_Akhfygj_Select", "/Xt_Popwin/W_Hdfy_Akhfygj_Select.win.js"); this.RegisterClientScriptInclude("W_Wldw_Jsbm_Select", "/Xt_Popwin/W_Wldw_Jsbm_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_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_jydzyq = dw_jydzyq.GetChild("dzbh"); dwc_jydzyq.SetTransaction(this.AdoTransaction); dwc_jydzyq.Retrieve("jydzyq"); 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["cpxxkbm"] != null) { var cpxxkbm = this.Request["cpxxkbm"].ToString(); this.SetParm("cpxxkbm", cpxxkbm); dw_master.Retrieve(cpxxkbm); dw_jzxxx.Retrieve(cpxxkbm); dw_jycljtyq.Retrieve(cpxxkbm); dw_jydzyq.Retrieve(cpxxkbm); dw_hgsj.Retrieve(cpxxkbm); dw_clqy.Retrieve(cpxxkbm); dw_slb.Retrieve(cpxxkbm); } this.RegisterClientScriptInclude("W_Country_Select", "/Xt_Popwin/W_Country_Select.win.js"); this.RegisterClientScriptInclude("W_Commodity_Select", "/Commodity/W_Commodity_Select.win.js"); this.RegisterClientScriptInclude("W_Fj_Edit", "/Hddz/W_Fj_Edit.win.js"); this.RegisterClientScriptInclude("W_CommodityAdd", "/Commodity/W_CommodityAdd.win.js"); this.RegisterClientScriptInclude("W_CommodityList", "/Commodity/W_CommodityList.win.js"); this.RegisterClientScriptInclude("W_CommodityEdit", "/Commodity/W_CommodityEdit.win.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"); //注册相关的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 clxx = dw_master.GetChild("clxx"); clxx.SetTransaction(this.AdoTransaction); clxx.Retrieve(""); DataWindowChild tjhm = dw_master.GetChild("tjhm"); tjhm.SetTransaction(this.AdoTransaction); tjhm.Retrieve(""); DataWindowChild hgtjhm = dw_master.GetChild("hgtjhm"); hgtjhm.SetTransaction(this.AdoTransaction); hgtjhm.Retrieve(""); DataWindowChild xskhjc = dw_master.GetChild("xskhjc"); xskhjc.SetTransaction(this.AdoTransaction); xskhjc.Retrieve(""); DataWindowChild hgcp = dw_master.GetChild("hgcp"); hgcp.SetTransaction(this.AdoTransaction); hgcp.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(""); 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, "wlbj"); 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_Sz", "/Xt_Popwin/W_Wldw_Select_Sz.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 ShareMode = AppService.GetShareMode(); var Dlwtf = AppService.GetDlwtf(); var node = "000580"; 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; this.SetParm("userid", userid); this.SetParm("ShareMode", ShareMode); this.SetParm("Dlwtf", Dlwtf); DataWindowChild dwc = dw_list.GetChild("zbr"); dwc.SetTransaction(this.AdoTransaction); dwc.Retrieve(""); this.ds_2.DataWindowObject = "dw_ywy_wldw_select_qx"; this.ds_2.Retrieve(ShareMode, userid, Dlwtf, "申请人", ""); ddlb_sqrgs.Items.Add("全部"); for (int row = 1; row <= this.ds_2.RowCount; row++) { var ctr_area2 = this.ds_2.GetItemString(row, "khjc"); ddlb_sqrgs.Items.Add(ctr_area2); } 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()), "未付款", "全部", userid); //注册相关的js文件 this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js"); this.RegisterClientScriptInclude("W_FkcnqrList", "/Yw_Zjgl/W_FkcnqrList.win.js"); this.RegisterClientScriptInclude("W_Wldw_Yh_Select", "/Xt_Popwin/W_Wldw_Yh_Select.win.js"); this.RegisterClientScriptInclude("W_Filter", "/Hddz/W_Filter.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_jzxxx.GetChild("fymc"); //dwc.SetTransaction(this.AdoTransaction); //dwc.Retrieve("0123"); DataWindowChild dwc_fybm = dw_jzxxx.GetChild("fybm"); dwc_fybm.SetTransaction(this.AdoTransaction); dwc_fybm.Retrieve("0123"); DataWindowChild dwc_wbbb = dw_master.GetChild("wbbb"); dwc_wbbb.SetTransaction(this.AdoTransaction); dwc_wbbb.Retrieve("%"); //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("0123"); 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["yfkdbh"] != null) { var yfkdbh = this.Request["yfkdbh"].ToString(); this.SetParm("yfkdbh", yfkdbh); dw_master.Retrieve(yfkdbh); dw_jzxxx.Retrieve(yfkdbh); } this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js"); this.RegisterClientScriptInclude("W_SzywYfglEdit_pop", "/Szyw/W_SzywYfglEdit_pop.win.js"); this.RegisterClientScriptInclude("W_SzywYfglEdit", "/Szyw/W_SzywYfglEdit.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_Hddz_cxf_Select", "/Xt_Popwin/W_Hddz_cxf_Select.win.js"); //注册相关的js文件 //注册需要使用的弹出窗口的事件处理程序的JS文件 this.RegisterClientScriptInclude("W_Index", "W_Index.win.js"); AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod)); }