示例#1
0
        public override void OnLoad()
        {
            base.OnLoad();
            ReportService report = (ReportService)dw_1.Services.Add(ServiceName.Report);

            report.RequestorDrawTitle = false;
            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_1.GetChild("ywy");

            dwc.SetTransaction(this.AdoTransaction);
            dwc.Retrieve("");

            dwc = dw_1.GetChild("zdr");
            dwc.SetTransaction(this.AdoTransaction);
            dwc.Retrieve("");
            //dw_1.Retrieve(userid,DateTime.Parse(this.dp_begin.Value.ToString()), DateTime.Parse(this.dp_end.Value.ToString()));
            dw_1.Modify("DataWindow.Readonly=yes");
            DateTime date = System.DateTime.Now.AddDays(-180);

            this.dp_begin.Value = date;
        }
示例#2
0
        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 mxdbh = this.Request["mxdbh"].ToString();

            this.SetParm("mxdbh", mxdbh);
            DataWindowChild dwc = dw_master.GetChild("hxd_ldr");

            dwc.SetTransaction(this.AdoTransaction);
            dwc.Retrieve("");

            dwc = dw_master.GetChild("sdry");
            dwc.SetTransaction(this.AdoTransaction);
            dwc.Retrieve("");

            //注册相关的js文件
            this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js");

            //注册需要使用的弹出窗口的事件处理程序的JS文件
            this.RegisterClientScriptInclude("W_Index", "W_Index.win.js");
            //AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod));
        }
示例#3
0
        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("");

            //dwc = dw_list.GetChild("yw_mxd_dzjh_zdy");
            //dwc.SetTransaction(this.AdoTransaction);
            //dwc.Retrieve("");

            this.ds_1.DataWindowObject = "d_sys_modules_all";
            this.ds_1.Retrieve();

            var      node   = "000102";
            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.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_MxdList", "/Mxd/W_MxdList.win.js");
            this.RegisterClientScriptInclude("W_MxdEdit", "/Mxd/W_MxdEdit.win.js");

            //注册需要使用的弹出窗口的事件处理程序的JS文件
            this.RegisterClientScriptInclude("W_Index", "W_Index.win.js");
            AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod));
        }
示例#4
0
        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      = "000207";
            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_print.GetChild("sqr");

            dwc.SetTransaction(this.AdoTransaction);
            dwc.Retrieve("");

            dwc = dw_print.GetChild("bm");
            dwc.SetTransaction(this.AdoTransaction);
            dwc.Retrieve("");


            dwc = dw_list.GetChild("ywy");
            dwc.SetTransaction(this.AdoTransaction);
            dwc.Retrieve("");

            dwc = dw_list.GetChild("sqr");
            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));
        }
示例#5
0
        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();
            var userip    = AppService.GetIp();

            this.SetParm("userid", userid);
            this.SetParm("username", username);

            this.SetParm("ShareMode", ShareMode);
            this.SetParm("Dlwtf", Dlwtf);
            this.SetParm("userip", userip);
            DataWindowChild dwc = dw_print.GetChild("ywy");

            dwc.SetTransaction(this.AdoTransaction);
            dwc.Retrieve("");

            dwc = dw_print.GetChild("sqr");
            dwc.SetTransaction(this.AdoTransaction);
            dwc.Retrieve("");

            dwc = dw_print.GetChild("bm");
            dwc.SetTransaction(this.AdoTransaction);
            dwc.Retrieve("");


            if (this.Request["sqdbh"] != null)
            {
                var sqdbh = this.Request["sqdbh"].ToString();
                dw_master.Retrieve(sqdbh);
                dw_mx.Retrieve(sqdbh);
            }


            //注册相关的js文件
            AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod));
            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_Mxd_Select", "/Xt_Popwin/W_Mxd_Select.win.js");
        }
        public override void OnLoad()
        {
            base.OnLoad();
            //系统模块编码
            DataWindowChild dwc_fybm = dw_jzxxx.GetChild("fybm");

            dwc_fybm.SetTransaction(this.AdoTransaction);
            dwc_fybm.Retrieve("%");
            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();

            this.SetParm("userid", userid);
            this.SetParm("username", username);
            this.SetParm("ShareMode", ShareMode);
            this.SetParm("Dlwtf", Dlwtf);
            this.SetParm("userip", userip);


            if (this.Request["khbm"] != null)
            {
                var      khbm = this.Request["khbm"].ToString();
                var      end  = this.Request["end"];
                DateTime date = Convert.ToDateTime(end);
                this.SetParm("khbm", khbm);

                dw_master.Retrieve(date, khbm);

                if (dw_master.RowCount == 0)
                {
                    dw_jzxxx.Retrieve("");
                }
                else
                {
                    var zdbm = dw_master.GetItemString(1, "zdbm");
                    dw_jzxxx.Retrieve(zdbm);
                }
            }

            this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js");
            this.RegisterClientScriptInclude("W_GmDr_Zdcx_Edit", "/Yw_Zjgl/W_GmDr_Zdcx_Edit.win.js");
            this.RegisterClientScriptInclude("W_Yw_ZjglFkglList", "/Yw_Zjgl/W_Yw_ZjglFkglList.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");
            //注册相关的js文件
            //注册需要使用的弹出窗口的事件处理程序的JS文件
            this.RegisterClientScriptInclude("W_Index", "W_Index.win.js");
            AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod));
        }
示例#7
0
        public override void OnLoad()
        {
            base.OnLoad();

            DataWindowChild dwc = dw_1.GetChild("khbm");

            dwc.SetTransaction(this.AdoTransaction);
            dwc.Retrieve("%");


            if (this.Request["ID"] != null)
            {
                dw_1.Retrieve(this.Request["ID"].ToString());
            }
            else
            {
                dw_1.InsertRow(0);
            }

            //注册相关的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));
        }
示例#8
0
        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("khbm");

            dwc.SetTransaction(this.AdoTransaction);
            dwc.Retrieve("%");


            dw_1.Retrieve();

            ////注册需要使用的弹出窗口的事件处理程序的JS文件
            if (this.Page != null)
            {
                this.RegisterClientScriptInclude("W_Wxlxr_List", "/Wldw/W_Wxlxr_List.win.js");
                this.RegisterClientScriptInclude("W_Wxlxr_Edit", "/Wldw/W_Wxlxr_Edit.win.js");
                this.RegisterClientScriptInclude("W_Wxlxr_SetRoles", "/Wldw/W_Wxlxr_SetRoles.win.js");
                this.RegisterClientScriptInclude("W_Wldw_Select", "/Xt_Popwin/W_Wldw_Select.win.js");
            }

            AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod));
        }
示例#9
0
        public override void OnLoad()
        {
            base.OnLoad();
            ReportService report = (ReportService)dw_1.Services.Add(ServiceName.Report);

            report.RequestorDrawTitle = false;
            var ywy       = this.Request["ywy"];
            var ShareMode = this.Request["ShareMode"];
            var Dlwtf     = this.Request["Dlwtf"];

            this.SetParm("ywy", ywy);
            this.SetParm("ShareMode", ShareMode);
            this.SetParm("Dlwtf", Dlwtf);

            DataWindowChild dwc_fybm = dw_2.GetChild("fybm");

            dwc_fybm.SetTransaction(this.AdoTransaction);
            dwc_fybm.Retrieve("0103");

            DateTime date = System.DateTime.Now.AddDays(0);

            this.dp_end.Value = date;
            date = System.DateTime.Now.AddDays(-90);
            this.dp_begin.Value = date;

            dw_1.Retrieve(DateTime.Parse(this.dp_begin.Value.ToString()), DateTime.Parse(this.dp_end.Value.ToString()));
            dw_2.Retrieve(DateTime.Parse(this.dp_begin.Value.ToString()), DateTime.Parse(this.dp_end.Value.ToString()));
            //dw_1.Modify("DataWindow.Readonly=yes");
        }
示例#10
0
        public override void OnLoad()
        {
            base.OnLoad();
            ReportService report = (ReportService)this.dw_1.Services.Add(ServiceName.Report);

            report.RequestorDrawTitle = false;
            var userid    = AppService.GetUserID();
            var username  = AppService.GetUserName();
            var ShareMode = AppService.GetShareMode();
            var Dlwtf     = AppService.GetDlwtf();

            DataWindowChild dwc_fybm = dw_1.GetChild("fybm");

            dwc_fybm.SetTransaction(this.AdoTransaction);
            dwc_fybm.Retrieve("06");

            this.SetParm("userid", userid);
            this.SetParm("username", username);
            this.SetParm("ShareMode", ShareMode);
            this.SetParm("Dlwtf", Dlwtf);
            dw_1.Retrieve("%");

            this.RegisterClientScriptInclude("W_Filter", "/Hddz/W_Filter.win.js");
            this.RegisterClientScriptInclude("W_Sfdqlm_Select", "/Xt_Popwin/W_Sfdqlm_Select.win.js");
            this.RegisterClientScriptInclude("W_Sfdqlm_Select_New", "/Xt_Popwin/W_Sfdqlm_Select_New.win.js");
            AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod));
        }
示例#11
0
        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("0102");

            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["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_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_Mtthf_Select", "/Xt_Popwin/W_Hddz_Mtthf_Select.win.js");
            //注册相关的js文件
            //注册需要使用的弹出窗口的事件处理程序的JS文件
            this.RegisterClientScriptInclude("W_Index", "W_Index.win.js");
            AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod));
        }
示例#12
0
        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);
                if (dw_tybm_list.Retrieve(tybm) < 1)
                {
                    var tybm_insert = dw_tybm_list.InsertRow(0);
                    dw_tybm_list.SetItemString(tybm_insert, "tybm", tybm);

                    var pdcs_max = dw_tybm_list.GetItemDecimal(tybm_insert, "pdcs_max");

                    dw_tybm_list.SetItemDecimal(tybm_insert, "pdcs", pdcs_max);
                    dw_tybm_list.SetItemString(tybm_insert, "zbr", userid);
                }
                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");
        }
示例#13
0
        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      = "000710";
            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");

            this.SetParm("userid", userid);
            this.SetParm("ShareMode", ShareMode);
            this.SetParm("Dlwtf", Dlwtf);

            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");
            }

            //// 数据检索

            DataWindowChild dwc = dw_list.GetChild("khbm");

            dwc.SetTransaction(this.AdoTransaction);
            dwc.Retrieve("");


            this.dw_list.Retrieve();


            //注册相关的js文件
            this.RegisterClientScriptInclude("ExtPB_Demo", "/Beta3/ExtPB_Demo.js");
            this.RegisterClientScriptInclude("W_GnkhLxrList", "/Xxcx/W_GnkhLxrList.win.js");
            this.RegisterClientScriptInclude("W_Filter", "/Hddz/W_Filter.win.js");
            AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod));
        }
示例#14
0
        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));
        }
示例#15
0
        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");
        }
示例#16
0
        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");
        }
示例#17
0
        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");
        }
示例#18
0
        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));
        }
示例#19
0
        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));
        }
示例#20
0
        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)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("0109");

            DataWindowChild dwc_fkxx_fybm = dw_fkxx.GetChild("fybm");

            dwc_fkxx_fybm.SetTransaction(this.AdoTransaction);
            dwc_fkxx_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["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);
                dw_jzxxx.Retrieve(yfkdbh, ywbh, cxh);
                dw_fkxx.Retrieve(ywbh, cxh);
            }

            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");
            //注册相关的js文件
            //注册需要使用的弹出窗口的事件处理程序的JS文件
            this.RegisterClientScriptInclude("W_Index", "W_Index.win.js");
            AjaxPro.Utility.RegisterTypeForAjax(typeof(PubMethod));
        }
示例#23
0
        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));
        }
示例#24
0
        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));
        }
示例#25
0
        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));
        }
示例#26
0
        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));
        }
示例#27
0
        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));
        }
示例#28
0
        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));
        }
示例#29
0
        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));
        }
示例#30
0
        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));
        }