protected void Page_Load(object sender, EventArgs e) { if (UserAcc.UserExpired()) { SetBodyEventOnLoad(SystemFunction.PopupLogin()); } else { if (!IsPostBack) { int Prms = SystemFunction.GetPermissionMenu(34); hdfPrmsMenu.Value = Prms + ""; IsView = Prms == 1; if (IsView) { ckbAll.Visible = false; btnDel.Visible = false; btnCreate.Visible = false; } SystemFunction.BindDropdownPageSize(ddlPageSize, null); BlindDDL(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!UserAcc.UserExpired()) { if (!IsPostBack) { setCBL(); string sQueryStrIndID = Request.QueryString["in"]; if (!string.IsNullOrEmpty(sQueryStrIndID)) { hdfIndID.Value = STCrypt.Encrypt(sQueryStrIndID); ((_MP_EPI_FORMS)this.Master).hdfPRMS = SystemFunction.GetPermissionMenu(15) + ""; ((_MP_EPI_FORMS)this.Master).hdfCheckRole = UserAcc.GetObjUser().nRoleID + ""; } else { SetBodyEventOnLoad(SystemFunction.DialogWarningRedirect(SystemFunction.Msg_HeadWarning, "Invalid Data", "Intensity_from.aspx"));// กรณีเข้ามาด้วย link ที่ไม่มี Querystring } } } else { SetBodyEventOnLoad(SystemFunction.PopupLogin()); } }
protected void Page_Load(object sender, EventArgs e) { if (UserAcc.UserExpired()) { SetBodyEventOnLoad(SystemFunction.PopupLogin()); } else { if (!IsPostBack) { SystemFunction.BindDropdownPageSize(ddlPageSize, null); GETDDL(); int Prms = SystemFunction.GetPermissionMenu(36); //hdfPrmsMenu.Value = Prms + ""; //bool isView = Prms == 1; //if (isView) //{ // DivCreate_Workflow.Visible = false; // ckbAll.Visible = false; // btnDel.Visible = false; //} } } }
protected void Page_Load(object sender, EventArgs e) { if (!UserAcc.UserExpired()) { ((_MP_EPI_FORMS)this.Master).hdfPRMS = SystemFunction.GetPermissionMenu(nMenu) + ""; ((_MP_EPI_FORMS)this.Master).hdfCheckRole = UserAcc.GetObjUser().nRoleID + ""; hdfsRoleID.Value = UserAcc.GetObjUser().nRoleID + ""; } }