public void ListPageLoad(Page page, out ButtonsModel main_bm, string PD_PROJECT_CODE) { PublicDal.ShowMxButton(this.Page, out main_bm, "TB_PROJECT", "PD_PROJECT_CODE", PD_PROJECT_CODE, "PD_PROJECT_SERVERPK"); main_bm.IfSave = true; main_bm.IfPutOut = true; main_bm.IbtPutOutText = "导出Excel"; }
public static void ListPageLoad(Page page, out ButtonsModel main_bm) { string userName = ((UserModel) HttpContext.Current.Session["User"]).UserName; main_bm = new ButtonsModel(userName); main_bm.IfAdd = true; main_bm.IfUpdate = true; main_bm.IfSave = true; main_bm.IfAudit = true; main_bm.IfSetBack = true; main_bm.IfRollBack = true; main_bm.IfExit = true; main_bm.IfDo = true; main_bm.IbtDoText = "指标下发"; main_bm.IbtDoUrl = "images/new/process.png"; }
protected void Page_Load(object sender, EventArgs e) { this.Master.LBTitle = "乡镇财政资金监管信息系统 - 系统配置"; if (base.Request["strTitle"] != null) { this.txttitle.Value = base.Server.UrlDecode(base.Request["strTitle"].ToString().Trim()); } this.Master.strTitle = this.txttitle.Value; this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); if (!this.Page.IsPostBack) { if (this.Session["User"] == null) { Const.GoLoginPath_Open(this.Page); } else { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; string companyPower = ((UserModel)this.Session["User"]).CompanyPower; ButtonsModel model = new ButtonsModel(userName); if (PowerClass.IfHasPower(userName, power, PowerNum.SystemSet)) { model.IfSave = true; model.IfAdd = false; model.IfUpdate = false; model.IfDelete = false; model.IfLook = false; model.IfSearch = false; model.IfRefresh = true; model.IfHuiZong = false; model.IfPutOut = false; model.IfSet = false; model.IfExit = true; this.Master.btModel = model; try { try { this.dbo = new DB_OPT(); this.dbo.Open(); this.cfd = new ConfigurationDal(); ConfigurationModel model2 = this.cfd.GetModel(this.dbo); if (model2 != null) { this.txtMenuNodeName.Text = model2.MENUNODENAME.ToString(); this.txtMenuNodeValue.Text = model2.MENUNODEVALUE.ToString(); this.txtPageSizeOne.Text = model2.PAGESIZEONE.ToString(); this.txtPageSizeTwo.Text = model2.PAGESIZETWO.ToString(); this.txtServiceName.Text = model2.SERVICENAME.ToString(); this.txtUserName.Text = model2.USERNAME.ToString(); this.txtServiceIP.Text = model2.SERVICEIP.ToString(); this.FileErrMessPath.Text = model2.ErrMessPath.ToString(); this.rbtifOpenExceptionLog.SelectedValue = model2.IFOPENEXCEPTIONLOG.ToString(); this.rbtifOpenOpLog.SelectedValue = model2.IFOPENOPLOG.ToString(); TB_QUOTA_Bll bll = new TB_QUOTA_Bll(); this.db_quota_fileIsShow.SelectedValue = bll.tFileIsShow("ZBOper.aspx", "tr_wjzl").ToString(); } } catch (Exception exception) { this.el = new ExceptionLog.ExceptionLog(); this.el.ErrClassName = base.GetType().ToString(); this.el.ErrMessage = exception.Message.ToString(); this.el.ErrMethod = "Page_Load()"; this.el.WriteExceptionLog(true); Const.OpenErrorPage(" 获取数据失败,请联系管理员!", this.Page); } return; } finally { if (this.dbo != null) { this.dbo.Close(); } } } Const.SorryForPower(this.Page); } } }
protected void Page_Load(object sender, EventArgs e) { this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); if (base.IsPostBack) { return; } if (this.Session["user"] == null) { Const.GoLoginPath_OpenWindow(this.Page); return; } string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; ButtonsModel model = new ButtonsModel(userName) { IfAdd = false, IfUpdate = false, IfDelete = false, IfLook = false, IfSearch = false, IfRefresh = true, IfHuiZong = false, IfPutOut = false, IfSet = false, IfSave = true, IfExit = true }; if ((base.Request["PK"] != null) && (base.Request["PK"] != "")) { try { try { this.Master.LBTitle = "字典设置 - 修改数据字典——表信息"; this.Master.TitlePic = "~/images/页标题/修改税费项目.jpg"; this.dbo = new DB_OPT(); this.dbo.Open(); this.sd = new DataTableDal(); this.model = this.sd.GetModel(base.Request.QueryString["PK"].ToString(), this.dbo); this.txtZWName.Text = this.model.TABLEREMARK.Trim(); this.txtYWName.Text = this.model.TABLENAME.Trim(); this.txtRemark.Text = this.model.REMARK.Trim(); } catch (Exception exception) { this.el = new ExceptionLog.ExceptionLog(); this.el.ErrClassName = base.GetType().ToString(); this.el.ErrMessage = exception.Message.ToString(); this.el.ErrMethod = "Page_Load()"; this.el.WriteExceptionLog(true); Const.OpenErrorPage("获取数据失败,请联系管理员!", this.Page); } goto Label_025D; } finally { if (this.dbo != null) { this.dbo.Close(); } } } this.Master.LBTitle = "字典设置 - 新增数据字典——表信息"; this.Master.TitlePic = "~/images/页标题/修改税费项目.jpg"; Label_025D: this.Master.btModel = model; }
protected void Page_Load(object sender, EventArgs e) { if (base.Request["strTitle"] != null) { this.txttitle.Value = base.Server.UrlDecode(base.Request["strTitle"].ToString().Trim()); } this.Master.strTitle = this.txttitle.Value; this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); this.Master.SearchHasGone = new SearchHandler(this.SearchControl); this.Master.PageNavigatorChange = new PageNavigatorHandler(this.PageChangControl); if (!base.IsPostBack) { if (this.Session["user"] == null) { Const.GoLoginPath_List(this.Page); } else { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; ButtonsModel model = new ButtonsModel(userName); if (userName == "admin") { model.IfAdd = true; model.IfUpdate = true; model.IfDelete = true; model.IfLook = false; model.IfSearch = false; model.IfRefresh = true; model.IfHuiZong = false; model.IfPutOut = false; model.IfSet = false; model.IfExit = true; } else if ((((base.Request["List"] != null) && (base.Request["Add"] != null)) && ((base.Request["Update"] != null) && (base.Request["Delete"] != null))) && (base.Request["Print"] != null)) { if (PowerClass.IfHasPower(userName, power, base.Request["List"].ToString())) { if (PowerClass.IfHasPower(userName, power, base.Request["Add"].ToString())) { model.IfAdd = true; } if (PowerClass.IfHasPower(userName, power, base.Request["Update"].ToString())) { model.IfUpdate = true; } if (PowerClass.IfHasPower(userName, power, base.Request["Delete"].ToString())) { model.IfDelete = true; } } else { Const.SorryForPower_List(this.Page); } } this.Master.btModel = model; this.ubtm = new UsualBookTableDal(); if (base.Request.QueryString["tn"].ToString() != "") { this.ubtm.TableName = base.Request.QueryString["tn"].ToString(); } string[] names = new string[] { "Name", "BH" }; DataSet searchControlDataSet = Common.GetSearchControlDataSet(names); this.Master.DataSetClo = searchControlDataSet; names[0] = "名称"; names[1] = "编号"; DataSet set2 = Common.GetSearchControlDataSet(names); this.Master.DataSetTable = set2; } } }
protected void Page_Load(object sender, EventArgs e) { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; ButtonsModel model = new ButtonsModel(userName) { IfAdd = false, IfUpdate = false, IfDelete = false, IfLook = false, IfSearch = false, IfRefresh = true, IfHuiZong = false, IfPutOut = false, IfSet = false, IfExit = true }; this.Master.btModel = model; this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); if (!base.IsPostBack) { if (this.Session["user"] == null) { Const.GoLoginPath_OpenWindow(this.Page); } else { if ((base.Request["PK"] != null) && (base.Request["PK"].ToString() != "")) { model.IfSave = true; this.getTitleUpdate(); this.txtBH.ReadOnly = true; this.flog.Value = "Update"; try { this.dbo = new DB_OPT(); this.dbo.Open(); this.ubtm = new UsualBookTableDal(); this.ubtm.TableName = base.Request["tn"].ToString(); this.ubtm.PK = base.Request["PK"].ToString(); this.ubtm = this.ubtm.GetModel(true, this.dbo); this.txtBH.Text = this.ubtm.BH; this.txtname.Text = this.ubtm.Name.ToString(); this.txtDiscription.Text = this.ubtm.Discription.ToString(); this.FatherPk.Value = this.ubtm.FatherPK.Trim(); if (this.ubtm.FatherPK.ToString() != "") { DataSet set = new DataSet(); string strSql = "select * from " + base.Request["tn"].ToString() + " where pk='" + this.ubtm.FatherPK.Trim() + "'"; set = this.dbo.BackDataSet(strSql, null); if ((set != null) && (set.Tables[0].Rows.Count > 0)) { this.txtFatherPk.Text = set.Tables[0].Rows[0]["Name"].ToString(); } } } catch (Exception exception) { this.el = new ExceptionLog.ExceptionLog(); this.el.ErrClassName = base.GetType().ToString(); this.el.ErrMessage = exception.Message.ToString(); this.el.ErrMethod = "addupdate()"; this.el.WriteExceptionLog(true); Const.OpenErrorPage("获取数据失败,请联系管理员!", this.Page); } finally { if (this.dbo != null) { this.dbo.Close(); } } } else { model.IfSave = true; this.getTitleAdd(); this.flog.Value = "add"; } if (base.Request["tn"] != null) { this.tableName.Value = base.Request["tn"].ToString(); } } } }
protected void Page_Load(object sender, EventArgs e) { this.Master.LBTitle = "乡镇财政资金监管信息系统 - 查看操作日志"; this.Master.strTitle = "查看操作日志"; this.Master.TitlePic = "~/images/页标题/查看操作日志.jpg"; this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); if (!this.Page.IsPostBack) { if (this.Session["User"] != null) { if (base.Request.QueryString["PK"] == null) { return; } DB_OPT dbo = null; try { try { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; ButtonsModel model = new ButtonsModel(userName); if (PowerClass.IfHasPower(userName, power, PowerNum.ServicesMessUpdate)) { model.IfRefresh = true; model.IfExit = true; this.Master.btModel = model; dbo = new DB_OPT(); dbo.Open(); this.SetValue(dbo); } else { Const.SorryForPower(this.Page); } } catch (Exception exception) { new ExceptionLog.ExceptionLog { ErrClassName = base.GetType().ToString(), ErrMessage = exception.Message.ToString(), ErrMethod = "Page_Load()" }.WriteExceptionLog(true); Const.OpenErrorPage("获取数据失败,请联系管理员!", this.Page); } return; } finally { dbo.Close(); } } Const.GoLoginPath_Open(this.Page); } }
protected void Page_Load(object sender, EventArgs e) { this.Master.LBTitle = "乡镇财政资金监管信息系统 - 修改用户信息"; this.Master.TitlePic = "~/images/页标题/修改用户副本.jpg"; this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); if (!this.Page.IsPostBack && (base.Request.QueryString["PK"] != null)) { try { if (this.Session["User"] == null) { Const.GoLoginPath_Open(this.Page); } string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; string companyPower = ((UserModel)this.Session["User"]).CompanyPower; ButtonsModel model = new ButtonsModel(userName); if (PowerClass.IfHasPower(userName, power, PowerNum.UserUpdate)) { this.dbo = new DB_OPT(); this.dbo.Open(); this.PowerCompany1.BindTV(this.dbo); this.PowerMenu1.BindTV(this.dbo); this.PowerRow1.BindTV(this.dbo); this.BingData(base.Request.QueryString["PK"].ToString(), this.dbo); model.IfAdd = false; model.IfUpdate = false; model.IfSave = true; model.IfDelete = false; model.IfLook = false; model.IfSearch = false; model.IfRefresh = true; model.IfHuiZong = false; model.IfPutOut = false; model.IfSet = false; model.IfExit = true; this.Master.btModel = model; } else { Const.SorryForPower(this.Page); } } catch (Exception exception) { this.el = new ExceptionLog.ExceptionLog(); this.el.ErrClassName = base.GetType().ToString(); this.el.ErrMessage = exception.Message.ToString(); this.el.ErrMethod = "Page_Load()"; this.el.WriteExceptionLog(true); Const.OpenErrorPage("获取数据失败,请联系管理员!", this.Page); } finally { if (this.dbo != null) { this.dbo.Close(); } } } }
public static string ShowBZ_MxButton_IsUP(Page page, out ButtonsModel main_bm, string serverPK, bool isQianShou) { if (HttpContext.Current.Session["User"] == null) { PageShowText.GoLoginPath_List(page); main_bm = null; return null; } string userName = ((UserModel) HttpContext.Current.Session["User"]).UserName; main_bm = new ButtonsModel(userName); string str2 = page.Request.Url.ToString(); int startIndex = str2.LastIndexOf("/") + 1; int num2 = str2.LastIndexOf("?"); string path = (num2 < 0) ? str2.Substring(startIndex) : str2.Substring(startIndex, num2 - startIndex); UserModel model = new UserDal(); DB_OPT dbo = new DB_OPT(); string showButtonID = ""; string buttonShowTxt = ""; string str6 = ""; string str7 = ""; model.GetServiceStream(path, userName, serverPK, out showButtonID, out buttonShowTxt, out str6, out str7, dbo); if (str7.Trim() != null) { string[] strArray = str7.Split(new char[] { '_' }); if ((strArray.Length == 2) && (int.Parse(strArray[0]) == 1)) { main_bm.IfSave = true; } } if (!isQianShou) { string str8 = showButtonID.Trim(); if (str8 != null) { if (!(str8 == "ibtcontrol_ibtaudit")) { if (str8 == "ibtcontrol_ibtapply") { main_bm.IfApply = true; if (buttonShowTxt != "") { main_bm.IbtApplyText = buttonShowTxt; } else { buttonShowTxt = main_bm.IbtApplyText; } } } else { main_bm.IfAudit = true; if (buttonShowTxt != "") { main_bm.IbtAuditText = buttonShowTxt; } else { buttonShowTxt = main_bm.IbtAuditText; } } } if (str6 != null) { string[] strArray2 = str6.Split(new char[] { '_' }); if (strArray2.Length != 2) { return buttonShowTxt; } if (int.Parse(strArray2[0]) == 1) { main_bm.IfSetBack = true; } if (int.Parse(strArray2[1]) == 1) { main_bm.IfRollBack = true; } } } return buttonShowTxt; }
protected void Page_Load(object sender, EventArgs e) { if (this.Session["user"] == null) { Const.GoLoginPath_OpenWindow(this.Page); } else { this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); if (!base.IsPostBack) { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; ButtonsModel model = new ButtonsModel(userName) { IfAdd = false, IfUpdate = false, IfDelete = false, IfLook = false, IfSearch = false, IfRefresh = true, IfHuiZong = false, IfPutOut = false, IfSet = false, IfSave = true, IfExit = true }; if ((base.Request["PK"] != null) && (base.Request["PK"] != "")) { try { DataSet list = this.B_news.GetList(" PD_PROJECT_CODE='" + base.Request.QueryString["PK"] + "'"); this.txtPD_PROJECT_SUBJECTS.Text = list.Tables[0].Rows[0]["PD_PROJECT_SUBJECTS"].ToString(); this.txtPD_PROJECT_CONTENTS.Value = list.Tables[0].Rows[0]["PD_PROJECT_CONTENTS"].ToString(); this.DropDownList1.SelectedValue = list.Tables[0].Rows[0]["PD_PROJECT_TYPE"].ToString(); PD_PROJECT_REGULATE_DETAIL_Model model2 = new PD_PROJECT_REGULATE_DETAIL_Bll().GetModel(base.Request["PK"].Trim()); DataSet ds = new DataSet(); ds.Tables.Add(); ds.Tables[0].Columns.Add("AUTO_NO"); ds.Tables[0].Columns.Add("FILE_NAME"); ds.Tables[0].Columns.Add("FILE_SYSNAME"); if (model2 != null) { DataRow row = ds.Tables[0].NewRow(); row["AUTO_NO"] = model2.AUTO_NO; row["FILE_NAME"] = model2.FILENAME; row["FILE_SYSNAME"] = model2.FILESYSNAME; ds.Tables[0].Rows.Add(row); } this.json_btData.Value = PublicDal.DataToJSON(ds); if ((base.Request["oper"] != null) && (base.Request.Params["oper"] == "look")) { model.IfSave = false; this.t1.Visible = false; this.t2.Visible = true; this.lblcont.Text = this.txtPD_PROJECT_CONTENTS.Value; } else { this.t2.Visible = false; } } catch (Exception exception) { this.el = new ExceptionLog.ExceptionLog(); this.el.ErrClassName = base.GetType().ToString(); this.el.ErrMessage = exception.Message.ToString(); this.el.ErrMethod = "Page_Load()"; this.el.WriteExceptionLog(true); Const.OpenErrorPage("获取数据失败,请联系管理员!", this.Page); } } this.Master.btModel = model; } } }
public void ListPageLoad(Page page, out ButtonsModel main_bm, string MES_ID) { PublicDal.ShowMxButton(this.Page, out main_bm, "MESS_BACK", "MES_ID", MES_ID, "PD_NOW_SERVERPK"); }
protected void Page_Load(object sender, EventArgs e) { this.Master.LBTitle = "新增员工"; this.Master.TitlePic = "~/images/页标题/新增员工副本.jpg"; this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); if (!base.IsPostBack) { if (this.Session["user"] == null) { Const.GoLoginPath_OpenWindow(this.Page); } else { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; string companyPower = ((UserModel)this.Session["User"]).CompanyPower; ButtonsModel model = new ButtonsModel(userName); if (PowerClass.IfHasPower(userName, power, PowerNum.EmployeeAdd)) { model.IfAdd = false; model.IfUpdate = false; model.IfSave = true; model.IfDelete = false; model.IfLook = false; model.IfSearch = false; model.IfRefresh = true; model.IfHuiZong = false; model.IfPutOut = false; model.IfSet = false; model.IfExit = true; this.Master.btModel = model; } else { Const.SorryForPower(this.Page); } } } }
public void ListPageLoad(Page page, out ButtonsModel main_bm, string PD_PROJECT_CODE) { PublicDal.ShowMxButton(this.Page, out main_bm, "TB_PROJECT", "PD_PROJECT_CODE", PD_PROJECT_CODE, "PD_PROJECT_SERVERPK"); }
public void ListPageLoad(Page page, out ButtonsModel main_bm) { string userName = ((UserModel)HttpContext.Current.Session["User"]).UserName; main_bm = new ButtonsModel(userName); main_bm.IfSave = true; main_bm.IfExit = true; }
public static string ShowMxButton(Page page, out ButtonsModel main_bm, string tableName, string IdName, string IdValue, string PD_NOW_SERVERPK_NAME) { if (HttpContext.Current.Session["User"] == null) { PageShowText.GoLoginPath_List(page); main_bm = null; return null; } string userName = ((UserModel) HttpContext.Current.Session["User"]).UserName; main_bm = new ButtonsModel(userName); string mainServerPK = ""; if ((IdValue != null) && (IdValue.Trim() != "")) { mainServerPK = new TB_PROJECT_Bll().GetServerPK(tableName, IdName, IdValue, PD_NOW_SERVERPK_NAME); } else { main_bm.IfSave = true; return "新建"; } string str3 = page.Request.Url.ToString(); int startIndex = str3.LastIndexOf("/") + 1; int num2 = str3.LastIndexOf("?"); string path = (num2 < 0) ? str3.Substring(startIndex) : str3.Substring(startIndex, num2 - startIndex); UserModel model = new UserDal(); DB_OPT dbo = new DB_OPT(); string showButtonID = ""; string buttonShowTxt = ""; string str7 = ""; string str8 = ""; model.GetServiceStream(path, userName, mainServerPK, out showButtonID, out buttonShowTxt, out str7, out str8, dbo); string str9 = showButtonID.Trim(); if (str9 != null) { if (!(str9 == "ibtcontrol_ibtaudit")) { if (str9 == "ibtcontrol_ibtapply") { main_bm.IfApply = true; if (buttonShowTxt != "") { main_bm.IbtApplyText = buttonShowTxt; } } } else { main_bm.IfAudit = true; if (buttonShowTxt != "") { main_bm.IbtAuditText = buttonShowTxt; } } } if (str8.Trim() != null) { string[] strArray = str8.Split(new char[] { '_' }); if ((strArray.Length == 2) && (int.Parse(strArray[0]) == 1)) { main_bm.IfSave = true; } } if (str7 != null) { string[] strArray2 = str7.Split(new char[] { '_' }); if (strArray2.Length != 2) { return buttonShowTxt; } if (int.Parse(strArray2[0]) == 1) { main_bm.IfSetBack = true; } if (int.Parse(strArray2[1]) == 1) { main_bm.IfRollBack = true; } } return buttonShowTxt; }
public static void ShowListButton(Page page, out ButtonsModel model, string PD_PROJECT_CODE) { if (HttpContext.Current.Session["User"] == null) { PageShowText.GoLoginPath_List(page); model = null; } else { string userName = ((UserModel) HttpContext.Current.Session["User"]).UserName; model = new ButtonsModel(userName); string str2 = page.Request.Url.ToString(); int startIndex = str2.LastIndexOf("/") + 1; int num2 = str2.LastIndexOf("?"); string path = (num2 < 0) ? str2.Substring(startIndex) : str2.Substring(startIndex, num2 - startIndex); UserModel model2 = new UserDal(); DB_OPT dbo = new DB_OPT(); int isShow = 0; string showtxt = ""; model2.GetServiceCode("ibtcontrol_ibtadd", path, userName, out isShow, out showtxt, dbo); if (isShow == 1) { model.IfAdd = true; if (showtxt != "") { model.IbtAddText = showtxt; } } model2.GetServiceCode("ibtcontrol_ibtdo", path, userName, out isShow, out showtxt, dbo); if (isShow == 1) { model.IfDo = true; if (showtxt != "") { model.IbtDoText = showtxt; } } model2.GetServiceCode("ibtcontrol_ibtdelete", path, userName, out isShow, out showtxt, dbo); if (isShow == 1) { model.IfDelete = true; if (showtxt != "") { model.IbtDeleteText = showtxt; } } } }
protected void Page_Load(object sender, EventArgs e) { if (base.Request["strTitle"] != null) { this.txttitle.Value = base.Server.UrlDecode(base.Request["strTitle"].ToString().Trim()); } this.Master.strTitle = this.txttitle.Value; this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); this.Master.SearchHasGone = new SearchHandler(this.SearchControl); this.Master.PageNavigatorChange = new PageNavigatorHandler(this.PageChangControl); this.Master.gvGridView = this.gvResult; if (!base.IsPostBack) { if (this.Session["user"] != null) { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; string companyPower = ((UserModel)this.Session["User"]).CompanyPower; ButtonsModel model = new ButtonsModel(userName); if (PowerClass.IfHasPower(userName, power, PowerNum.UserList)) { string[] names = new string[] { "UserName", "eName" }; DataSet searchControlDataSet = Common.GetSearchControlDataSet(names); this.Master.DataSetClo = searchControlDataSet; names[0] = "用户名"; names[1] = "职员姓名"; DataSet set2 = Common.GetSearchControlDataSet(names); this.Master.DataSetTable = set2; if (PowerClass.IfHasPower(userName, power, PowerNum.UserAdd)) { model.IfAdd = true; } if (PowerClass.IfHasPower(userName, power, PowerNum.UserUpdate)) { model.IfUpdate = true; } if (PowerClass.IfHasPower(userName, power, PowerNum.UserDelete)) { model.IfDelete = true; } model.IfLook = false; model.IfSearch = false; model.IfRefresh = true; model.IfHuiZong = false; model.IfPutOut = false; model.IfSet = false; model.IfExit = true; this.Master.btModel = model; } else { Const.SorryForPower(this.Page); } } else { Const.GoLoginPath_List(this.Page); } } }
protected void Page_Load(object sender, EventArgs e) { this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); if (!base.IsPostBack) { if (this.Session["user"] == null) { Const.GoLoginPath_OpenWindow(this.Page); } else { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; ButtonsModel model = new ButtonsModel(userName) { IfAdd = false, IfUpdate = false, IfDelete = false, IfLook = false, IfSearch = false, IfRefresh = true, IfHuiZong = false, IfPutOut = false, IfSet = false, IfExit = true }; this.Master.btModel = model; if ((base.Request["PK"] != null) && (base.Request["PK"].ToString() != "")) { if (PowerClass.IfHasPower(userName, power, PowerNum.BankCardUpdate)) { model.IfSave = true; this.Master.LBTitle = "乡镇财政资金监管信息系统 - 修改单位帐户信息"; this.Master.TitlePic = "修改单位帐户信息"; try { try { this.dbo = new DB_OPT(); this.dbo.Open(); this.bmd = new BankDal(); DataSet list = new DataSet(); list = this.bmd.GetList("BankPK='" + base.Request["PK"].ToString() + "'", this.dbo); this.txtCompany.Text = list.Tables[0].Rows[0]["Name"].ToString(); this.CompanyPk.Value = list.Tables[0].Rows[0]["pk_corp"].ToString(); this.txtBankName.Text = list.Tables[0].Rows[0]["BankName"].ToString(); this.txtBankNum.Text = list.Tables[0].Rows[0]["BankNum"].ToString(); this.txtDiscription.Text = list.Tables[0].Rows[0]["Discription"].ToString(); this.txtBankNumMan.Text = list.Tables[0].Rows[0]["BankNumMan"].ToString(); } catch (Exception exception) { this.el = new ExceptionLog.ExceptionLog(); this.el.ErrClassName = base.GetType().ToString(); this.el.ErrMessage = exception.Message.ToString(); this.el.ErrMethod = "Page_Load()"; this.el.WriteExceptionLog(true); Const.OpenErrorPage("获取数据失败,请联系管理员!", this.Page); } return; } finally { if (this.dbo != null) { this.dbo.Close(); } } } Const.SorryForPower(this.Page); } else if (PowerClass.IfHasPower(userName, power, PowerNum.BankCardAdd)) { model.IfSave = true; this.Master.LBTitle = "乡镇财政资金监管信息系统 - 新增单位帐户信息"; this.Master.TitlePic = "新增单位帐户信息"; } else { Const.SorryForPower(this.Page); } } } }
public void ListPageLoad(Page page, out ButtonsModel main_bm, string PK) { PublicDal.ShowMxButton(this.Page, out main_bm, "GOV_TC_DB_COMPANYDATADZ", "PK", PK, "PD_NOW_SERVERPK"); }
protected void Page_Load(object sender, EventArgs e) { if (base.Request["strTitle"] != null) { this.txttitle.Value = base.Server.UrlDecode(base.Request["strTitle"].ToString().Trim()); } this.Master.strTitle = this.txttitle.Value; this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); this.Master.SearchHasGone = new SearchHandler(this.SearchControl); this.Master.PageNavigatorChange = new PageNavigatorHandler(this.PageChangControl); if (!this.Page.IsPostBack) { if (this.Session["user"] != null) { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; string companyPower = ((UserModel)this.Session["User"]).CompanyPower; ButtonsModel model = new ButtonsModel(userName); if (PowerClass.IfHasPower(userName, power, PowerNum.RoleList)) { try { try { string[] names = new string[] { "Name", "BH" }; DataSet searchControlDataSet = Common.GetSearchControlDataSet(names); this.Master.DataSetClo = searchControlDataSet; names[0] = "角色名称"; names[1] = "角色编号"; DataSet set2 = Common.GetSearchControlDataSet(names); this.Master.DataSetTable = set2; this.dbo = new DB_OPT(); this.dbo.Open(); this.BindList(this.dbo); if (PowerClass.IfHasPower(userName, power, PowerNum.RoleAdd)) { model.IfAdd = true; } if (PowerClass.IfHasPower(userName, power, PowerNum.RoleUpdate)) { model.IfUpdate = true; } if (PowerClass.IfHasPower(userName, power, PowerNum.RoleDelete)) { model.IfDelete = true; } model.IfLook = false; model.IfSearch = false; model.IfRefresh = true; model.IfHuiZong = false; model.IfPutOut = false; model.IfSet = false; model.IfExit = true; this.Master.btModel = model; } catch (Exception exception) { this.el = new ExceptionLog.ExceptionLog(); this.el.ErrClassName = base.GetType().ToString(); this.el.ErrMessage = exception.Message.ToString(); this.el.ErrMethod = "bind()"; this.el.WriteExceptionLog(true); Const.OpenErrorPage("获取数据失败,请联系管理员!", this.Page); } return; } finally { if (this.dbo != null) { this.dbo.Close(); } } } Const.SorryForPower(this.Page); } else { Const.GoLoginPath_List(this.Page); } } }
protected void Page_Load(object sender, EventArgs e) { if (base.Request["strTitle"] != null) { this.txttitle.Value = base.Server.UrlDecode(base.Request["strTitle"].ToString().Trim()); } this.Master.strTitle = this.txttitle.Value; this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); this.Master.SearchHasGone = new SearchHandler(this.SearchControl); this.Master.PageNavigatorChange = new PageNavigatorHandler(this.PageChangControl); if (!base.IsPostBack) { if (this.Session["user"] == null) { Const.GoLoginPath_List(this.Page); } else { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; ButtonsModel model = new ButtonsModel(userName); if (PowerClass.IfHasPower(userName, power, PowerNum.DataColumnPowerList)) { model.IfHuiZong = false; model.IfSet = false; model.IfSearch = false; model.IfAdd = true; model.IfPutOut = false; model.IfUpdate = true; model.IfDelete = true; model.IfExit = true; } else { Const.SorryForPower_List(this.Page); } string[] names = new string[] { "COLUMNREMARK", "COLUMNNAME", "TABLEPK" }; DataSet searchControlDataSet = Common.GetSearchControlDataSet(names); this.Master.DataSetClo = searchControlDataSet; names[0] = "列中文名"; names[1] = "列名"; names[2] = "表名"; DataSet set2 = Common.GetSearchControlDataSet(names); this.Master.DataSetTable = set2; this.Master.btModel = model; } } }
protected void Page_Load(object sender, EventArgs e) { if (base.Request["strTitle"] != null) { this.txttitle.Value = base.Server.UrlDecode(base.Request["strTitle"].ToString().Trim()); } this.Master.strTitle = this.txttitle.Value; this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); this.Master.SearchHasGone = new SearchHandler(this.SearchControl); this.Master.PageNavigatorChange = new PageNavigatorHandler(this.PageChangControl); if (!base.IsPostBack) { if (this.Session["user"] == null) { Const.GoLoginPath_Open(this.Page); } else { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; ButtonsModel model = new ButtonsModel(userName); if (PowerClass.IfHasPower(userName, power, PowerNum.OperationLogList)) { PowerClass.IfHasPower(userName, power, PowerNum.OperationLogPrint); PowerClass.IfHasPower(userName, power, PowerNum.OperationLogDelete); string[] names = new string[] { "UserName", "opTime" }; DataSet searchControlDataSet = Common.GetSearchControlDataSet(names); this.Master.DataSetClo = searchControlDataSet; names[0] = "操作人"; names[1] = "操作时间"; DataSet set2 = Common.GetSearchControlDataSet(names); this.Master.DataSetTable = set2; model.IfLook = true; model.IfExit = true; this.Master.btModel = model; } else { Const.SorryForPower(this.Page); } } } }
protected void Page_Load(object sender, EventArgs e) { this.txtMenuPX.Attributes.Add("onkeypress", "javascript:return onlyNum();"); this.Master.LBTitle = "乡镇财政资金监管信息系统 - 修改菜单"; this.Master.TitlePic = "~/images/页标题/修改菜单副本.jpg"; this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); if (!this.Page.IsPostBack && (this.Session["User"] != null)) { if (base.Request.QueryString["PK"] != null) { try { try { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; ButtonsModel model = new ButtonsModel(userName); if (PowerClass.IfHasPower(userName, power, PowerNum.MenuUpdate)) { model.IfAdd = false; model.IfSave = true; model.IfUpdate = false; model.IfDelete = false; model.IfLook = false; model.IfSearch = false; model.IfRefresh = true; model.IfHuiZong = false; model.IfPutOut = false; model.IfSet = false; model.IfExit = true; this.Master.btModel = model; this.dbo = new DB_OPT(); this.dbo.Open(); this.mm = new MenuDal(); this.mm.MemuPK = base.Request.QueryString["PK"].ToString(); this.mm = this.mm.GetModel(false, this.dbo); this.SetValue(this.mm); } else { Const.SorryForPower(this.Page); } } catch (Exception exception) { this.el = new ExceptionLog.ExceptionLog(); this.el.ErrClassName = base.GetType().ToString(); this.el.ErrMessage = exception.Message.ToString(); this.el.ErrMethod = "Page_Load()"; this.el.WriteExceptionLog(true); Const.OpenErrorPage("获取数据失败,请联系管理员!", this.Page); } goto Label_0237; } finally { if (this.dbo != null) { this.dbo.Close(); } } } Const.GoLoginPath_Open(this.Page); } Label_0237: this.fl1.VirtualCatalog = ""; this.fl1.ImagePath = "System/menu/images"; }
private void SetInputEnabled(ButtonsModel model) { if (!model.IfSave) { PageShowText.Run_javascript("", this.Page); } }
protected void Page_Load(object sender, EventArgs e) { this.Master.LBTitle = "新增考核明细"; this.Master.TitlePic = "~/images/页标题/新增菜单副本.jpg"; this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); if (!this.Page.IsPostBack) { if (this.Session["User"] != null) { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; ButtonsModel model = new ButtonsModel(userName) { IfAdd = false, IfUpdate = false, IfSave = true, IfDelete = false, IfLook = false, IfSearch = false, IfRefresh = true, IfHuiZong = false, IfPutOut = false, IfSet = false, IfExit = true }; this.Master.btModel = model; if (base.Request["PK"] != null) { this.ShowInfo(base.Request["PK"].ToString()); } if (base.Request["DetailTypeID"] != null) { Convert.ToInt32(base.Request["DetailTypeID"].ToString()); } } else { Const.GoLoginPath_Open(this.Page); } } }
private bool ShowBZ_MxButton(out ButtonsModel model) { string str = base.Request["UpdatePK"]; string str2 = ((UserModel)HttpContext.Current.Session["User"]).Company.pk_corp; ((UserModel)HttpContext.Current.Session["User"]).Branch.BH.Trim(); bool isQianShou = false; model = new ButtonsModel(); if (str != null) { TB_QUOTA_Model isUpModel = new TB_QUOTA_Bll().GetIsUpModel(str); if (isUpModel.PD_QUOTA_ISUP == "1") { SMZJ.BLL.TB_QUOTA_DETAIL tb_quota_detail = new SMZJ.BLL.TB_QUOTA_DETAIL(); SMZJ.Model.TB_QUOTA_DETAIL tb_quota_detail2 = tb_quota_detail.GetSonServerPK_Model(str2, str); if (tb_quota_detail2 != null) { this.buttonTxt.Value = PublicDal.ShowBZ_MxButton_IsUP(this.Page, out model, tb_quota_detail2.PD_QUOTA_SERVERPK, isQianShou); model.IfSave = false; model.IfSetBack = false; model.IfRollBack = false; return isQianShou; } isQianShou = !tb_quota_detail.GetShiDFouJS_Model(str, 1); this.buttonTxt.Value = PublicDal.ShowBZ_MxButton_IsUP(this.Page, out model, isUpModel.PD_QUOTA_SERVERPK, isQianShou); if (!PublicDal.IsJGBM(((UserModel)this.Session["User"]).Branch.BH.Trim())) { model.IfSave = false; } if (model.IfSave) { } return isQianShou; } this.buttonTxt.Value = PublicDal.ShowMxButton(this.Page, out model, "TB_QUOTA", "PD_QUOTA_CODE", str, "PD_QUOTA_SERVERPK"); return isQianShou; } this.buttonTxt.Value = PublicDal.ShowMxButton(this.Page, out model, "TB_QUOTA", "PD_QUOTA_CODE", null, "PD_QUOTA_SERVERPK"); return isQianShou; }
public void ListPageLoad(Page page, out ButtonsModel main_bm, string PD_PROJECT_CODE) { PublicDal.ShowMxButton(this.Page, out main_bm, "PD_CONTRACT_CHANGE", "AUTO_NO", PD_PROJECT_CODE, "PD_NOW_SERVERPK"); }
protected void Page_Load(object sender, EventArgs e) { if (this.Session["user"] == null) { Const.GoLoginPath_OpenWindow(this.Page); } else { this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); if (!base.IsPostBack) { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; ButtonsModel model = new ButtonsModel(userName) { IfAdd = false, IfUpdate = false, IfDelete = false, IfLook = false, IfSearch = false, IfRefresh = true, IfHuiZong = false, IfPutOut = false, IfSet = false, IfSave = true, IfExit = true }; if ((base.Request["PK"] != null) && (base.Request["PK"] != "")) { try { this.dbo = new DB_OPT(); this.dbo.Open(); this.sd = new DataTableDal(); this.model = this.sd.GetModel(base.Request.QueryString["PK"].ToString(), this.dbo); } catch (Exception exception) { this.el = new ExceptionLog.ExceptionLog(); this.el.ErrClassName = base.GetType().ToString(); this.el.ErrMessage = exception.Message.ToString(); this.el.ErrMethod = "Page_Load()"; this.el.WriteExceptionLog(true); Const.OpenErrorPage("获取数据失败,请联系管理员!", this.Page); } finally { if (this.dbo != null) { this.dbo.Close(); } } } this.Master.btModel = model; } } }
protected void Page_Load(object sender, EventArgs e) { this.Master.TitlePic = "单位信息列表"; this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); this.Master.SearchHasGone = new SearchHandler(this.SearchControl); this.Master.PageNavigatorChange = new PageNavigatorHandler(this.PageChangControl); ((ScriptManager)this.Master.FindControl("ScriptManager1")).RegisterAsyncPostBackControl(this.gvResult); if (!base.IsPostBack) { if (this.Session["User"] != null) { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; string companyPower = ((UserModel)this.Session["User"]).CompanyPower; ButtonsModel model = new ButtonsModel(userName); if (PowerClass.IfHasPower(userName, power, PowerNum.CompanyList)) { string[] names = new string[] { "Name", "pk_corp" }; DataSet searchControlDataSet = Common.GetSearchControlDataSet(names); this.Master.DataSetClo = searchControlDataSet; names[0] = "单位名称"; names[1] = "单位编号"; DataSet set2 = Common.GetSearchControlDataSet(names); this.Master.DataSetTable = set2; if (PowerClass.IfHasPower(userName, power, PowerNum.CompanyAdd)) { model.IfAdd = true; } if (PowerClass.IfHasPower(userName, power, PowerNum.CompanyUpdate)) { model.IfUpdate = true; } if (PowerClass.IfHasPower(userName, power, PowerNum.CompanyDelete)) { model.IfDelete = true; } this.ChildDataBind(""); this.ChildDataBindBank(""); this.EmployeeDataBind(""); model.IfLook = false; model.IfSearch = false; model.IfRefresh = true; model.IfHuiZong = false; model.IfPutOut = false; model.IfSet = false; model.IfExit = true; this.Master.btModel = model; } else { Const.SorryForPower(this.Page); } } else { Const.GoLoginPath_List(this.Page); } } }
protected void Page_Load(object sender, EventArgs e) { this.txtMenuPX.Attributes.Add("onkeypress", "javascript:return onlyNum();"); this.Master.LBTitle = "乡镇财政资金监管信息系统 - 新增菜单"; this.Master.TitlePic = "~/images/页标题/新增菜单副本.jpg"; this.Master.ButtonsPushDown = new ButtonsHandler(this.Buttons); if (!this.Page.IsPostBack) { if (this.Session["User"] != null) { string userName = ((UserModel)this.Session["User"]).UserName; string power = ((UserModel)this.Session["User"]).Power; ButtonsModel model = new ButtonsModel(userName); if (PowerClass.IfHasPower(userName, power, PowerNum.MenuAdd)) { model.IfAdd = false; model.IfUpdate = false; model.IfSave = true; model.IfDelete = false; model.IfLook = false; model.IfSearch = false; model.IfRefresh = true; model.IfHuiZong = false; model.IfPutOut = false; model.IfSet = false; model.IfExit = true; this.Master.btModel = model; } else { Const.SorryForPower(this.Page); } } else { Const.GoLoginPath_Open(this.Page); } } this.fl1.VirtualCatalog = ""; this.fl1.ImagePath = "System/menu/images"; }