protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.Entity.Year = DateTime.Now.Year; this.Entity.Month = DateTime.Now.Month; string cllx = System.Configuration.ConfigurationManager.AppSettings["Cllx"].Trim(); WebUiProcess.InitDropDownList(this.Clxs, cllx, ref errmsg); string ywly = System.Configuration.ConfigurationManager.AppSettings["Ywly"].Trim(); WebUiProcess.InitDropDownList(this.Ywly, ywly, ref errmsg); string szxbf = System.Configuration.ConfigurationManager.AppSettings["Szxbf"].Trim(); WebUiProcess.InitDropDownList(this.Szxbf, szxbf, ref errmsg); string nxConfig = System.Configuration.ConfigurationManager.AppSettings["NxConfig"].Trim(); WebUiProcess.InitDropDownList(this.Synx, nxConfig, ref errmsg); string Cxcs = System.Configuration.ConfigurationManager.AppSettings["Cxcs"].Trim(); WebUiProcess.InitDropDownList(this.Cxcs, Cxcs, ref errmsg); WebUiProcess.InitDropDownList(this.Depart, "ddlCbDepart", null, ref errmsg); } }
protected void Depart_SelectedIndexChanged(object sender, EventArgs e) { if (Depart.SelectedValue == "") { this.YwyCode.Items.Clear(); this.YwyCode.SelectedValue = ""; } else { BaseDao baseDao = new BaseDao(); Hashtable ht = new Hashtable(); XtmDepart de = new XtmDepart(); de.DepartCode = Depart.SelectedValue; IList <XtmDepart> depL = baseDao.List(de); if (depL != null && depL.Count > 0) { ht.Add("depart", depL[0].Did); WebUiProcess.InitDropDownList(this.YwyCode, "ddlCbYwy", ht, ref errmsg); } } //if (Depart.SelectedValue == "") //{ // this.YwyCode.Items.Clear(); // this.YwyCode.SelectedValue = ""; //} //else //{ // Hashtable ht = new Hashtable(); // ht.Add("depart", Depart.SelectedValue); // WebUiProcess.InitDropDownList(this.YwyCode, "ddlCbYwy", ht, ref errmsg); //} }
protected void Page_Load(object sender, EventArgs e) { if (CoreCache.GetCache("SysUserCode") == null) { TimeOut.ExecTimeOut(this); return; } string usertype = CoreCache.GetCache("SysUserType").ToString(); XtmMenu menu = new XtmMenu(); menu.SysKey = Request.QueryString["Action"].ToString(); menu = WebUiProcess.Get(menu); if (errmsg != "") { Response.Write("加载页面出错:" + errmsg); Response.End(); return; } if (menu.Pri == "n" && usertype != "man") { Response.Write("您没有操作该页面的权限,请和管理员联系!"); Response.End(); } else { string strurl = "../" + menu.MenuConfig; Navigate(strurl, menu.MenuCode); } }
private void InitPTTree() { XtmMenu menu = new XtmMenu(); XtmMenu oldMenu = null; TreeNode oldNode = null; menu.Type = "1"; IList <XtmMenu> list = WebUiProcess.ListUdf("XtmMenuLoad", menu); if (list != null && list.Count > 0) { for (int i = 0; i < list.Count; i++) { XtmMenu temp = list[i]; if (temp.Pri != "y") { continue; } TreeNode item = new TreeNode(); if (oldMenu != null && oldMenu.MenuLayer < temp.MenuLayer) { i = InitTreeT(oldNode, list, i); } else { item.Text = temp.MenuName; item.Value = temp.SysKey; tvMenuList.Nodes.Add(item); oldMenu = temp; oldNode = item; } } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string Cxcs = System.Configuration.ConfigurationManager.AppSettings["Cxcs"].Trim(); WebUiProcess.InitDropDownList(this.Cxcs, Cxcs, ref errmsg); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { #region 统计区间段 string yearT = ""; int nowYear = DateTime.Now.Year; for (int i = 0; i < 10; i++) { string temp = (nowYear - i).ToString(); if (i == 9) { yearT += temp + "," + temp; } else { yearT += temp + "," + temp + "|"; } } WebUiProcess.InitDropDownList(this.Year, yearT, ref errmsg); this.Year.SelectedValue = DateTime.Now.Year.ToString(); string monthT = ""; for (int i = 1; i < 13; i++) { string temp = i.ToString(); if (i == 12) { monthT += temp + "," + temp; } else { monthT += temp + "," + temp + "|"; } } WebUiProcess.InitDropDownList(this.Month, monthT, ref errmsg); this.Month.SelectedValue = DateTime.Now.Month.ToString(); #endregion #region 部门、业务员 if (this.Entity.SysUserType == "ywy") { this.Depart.Enabled = false; this.Ywy.Enabled = false; } else { Hashtable ht = new Hashtable(); ht.Add("userId", this.Entity.SysUserId); WebUiProcess.InitDropDownList(this.Depart, "ddlCbDepartByPri", ht, ref errmsg); } #endregion } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { WebUiProcess.InitDropDownList(this.ParentId, "ddlDepart", null, ref errmsg); } GVNavigater1.Rebind = true; GVNavigater1.Gridview = this.list; GVNavigater1.Entity = this.Entity; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { WebUiProcess.InitDropDownList(this.DepartId, "ddlDepart", null, ref errmsg); if (Task.ParentCommand != "ucreate") { this.UserCode.Enabled = false; } else { this.UserCode.Attributes.Add("style", "background-color:#FFFFAA"); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { #region 统计区间段 string yearT = ""; int nowYear = DateTime.Now.Year; for (int i = 0; i < 10; i++) { string temp = (nowYear - i).ToString(); if (i == 9) { yearT += temp + "," + temp; } else { yearT += temp + "," + temp + "|"; } } WebUiProcess.InitDropDownList(this.Year, yearT, ref errmsg); this.Year.SelectedValue = DateTime.Now.Year.ToString(); string monthT = ""; for (int i = 1; i < 13; i++) { string temp = i.ToString(); if (i == 12) { monthT += temp + "," + temp; } else { monthT += temp + "," + temp + "|"; } } WebUiProcess.InitDropDownList(this.Month, monthT, ref errmsg); this.Month.SelectedValue = DateTime.Now.Month.ToString(); #endregion Hashtable ht = new Hashtable(); ht.Add("userId", this.Entity.SysUserId); WebUiProcess.InitDropDownList(this.Depart, "ddlCbDepartByPri", ht, ref errmsg); } GVNavigater1.Rebind = true; GVNavigater1.Gridview = this.list; GVNavigater1.Entity = this.Entity; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string Cxcs = System.Configuration.ConfigurationManager.AppSettings["Cxcs"].Trim(); WebUiProcess.InitDropDownList(this.Cxcs, Cxcs, ref errmsg); WebUiProcess.InitDropDownList(this.Depart, "ddlCbDepart", null, ref errmsg); if (Entity.Depart != null && Entity.Depart != "") { BaseDao baseDao = new BaseDao(); Hashtable ht = new Hashtable(); XtmDepart de = new XtmDepart(); de.DepartCode = Entity.Depart; IList <XtmDepart> depL = baseDao.List(de); if (depL != null && depL.Count > 0) { ht.Add("depart", depL[0].Did); WebUiProcess.InitDropDownList(this.Ywy, "ddlCbYwy", ht, ref errmsg); } } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string title = ",--请选择--|"; string qd = title + System.Configuration.ConfigurationManager.AppSettings["Sxflx"].Trim(); WebUiProcess.InitDropDownList(this.Sxflx, qd, ref errmsg); string xz = title + System.Configuration.ConfigurationManager.AppSettings["Xz"].Trim(); WebUiProcess.InitDropDownList(this.Xz, xz, ref errmsg); string ywly = title + System.Configuration.ConfigurationManager.AppSettings["Ywly"].Trim(); WebUiProcess.InitDropDownList(this.Ywly, ywly, ref errmsg); string nxConfig = title + System.Configuration.ConfigurationManager.AppSettings["NxConfig"].Trim(); WebUiProcess.InitDropDownList(this.Synx, nxConfig, ref errmsg); string Cxcs = title + System.Configuration.ConfigurationManager.AppSettings["Cxcs"].Trim(); WebUiProcess.InitDropDownList(this.Zhcxcs, Cxcs, ref errmsg); } GVNavigater1.Rebind = true; GVNavigater1.Gridview = this.list; GVNavigater1.Entity = this.Entity; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string Sxflx = System.Configuration.ConfigurationManager.AppSettings["Sxflx"].Trim(); WebUiProcess.InitDropDownList(this.Sxflx, Sxflx, ref errmsg); string xz = System.Configuration.ConfigurationManager.AppSettings["Xz"].Trim(); WebUiProcess.InitDropDownList(this.Xz, xz, ref errmsg); string ywly = System.Configuration.ConfigurationManager.AppSettings["Ywly"].Trim(); WebUiProcess.InitDropDownList(this.Ywly, ywly, ref errmsg); string nxConfig = System.Configuration.ConfigurationManager.AppSettings["NxConfig"].Trim(); WebUiProcess.InitDropDownList(this.Synx, nxConfig, ref errmsg); string Cxcs = System.Configuration.ConfigurationManager.AppSettings["Cxcs"].Trim(); WebUiProcess.InitDropDownList(this.Zhcxcs, Cxcs, ref errmsg); if (Task.ParentCommand != "ucreate") { this.Xz.Enabled = false; this.Dbdsz.Enabled = false; this.Dbjq.Enabled = false; this.Sxflx.Enabled = false; this.Ywly.Enabled = false; this.Wfglcxcs.Enabled = false; this.Zhcxcs.Enabled = false; this.Synx.Enabled = false; this.Sfbcs.Enabled = false; this.Pfvsfc100.Enabled = false; this.Cx3c.Enabled = false; //this.Bcsry.Enabled = false; //this.Bdqx.Enabled = false; //this.Bzrx.Enabled = false; //this.Bfdj.Enabled = false; //this.Sz100.Enabled = false; //this.Qx.Enabled = false; } else { this.Xz.Attributes.Add("style", "background-color:#FFFFAA"); this.Dbdsz.Attributes.Add("style", "background-color:#FFFFAA"); this.Dbjq.Attributes.Add("style", "background-color:#FFFFAA"); this.Sxflx.Attributes.Add("style", "background-color:#FFFFAA"); this.Ywly.Attributes.Add("style", "background-color:#FFFFAA"); this.Wfglcxcs.Attributes.Add("style", "background-color:#FFFFAA"); this.Zhcxcs.Attributes.Add("style", "background-color:#FFFFAA"); this.Synx.Attributes.Add("style", "background-color:#FFFFAA"); this.Sfbcs.Attributes.Add("style", "background-color:#FFFFAA"); this.Pfvsfc100.Attributes.Add("style", "background-color:#FFFFAA"); this.Cx3c.Attributes.Add("style", "background-color:#FFFFAA"); this.Bcsry.Attributes.Add("style", "background-color:#FFFFAA"); this.Bdqx.Attributes.Add("style", "background-color:#FFFFAA"); this.Bzrx.Attributes.Add("style", "background-color:#FFFFAA"); this.Bfdj.Attributes.Add("style", "background-color:#FFFFAA"); this.Sz100.Attributes.Add("style", "background-color:#FFFFAA"); } } }