protected void UserAccessTypeValidation() { int CurrentUserID = GetSessionUserID(); //string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_TypeManagement objType = new BLL_TypeManagement(); string Variable_Type = "Supplier_Type"; string Approver_Type = null; objUAType = objType.Get_UserTypeAccess(CurrentUserID, Variable_Type, GetSessionSupplierType(), Approver_Type); if (objUAType.Add == 0) { btnRemarks.Visible = false; } else { btnRemarks.Visible = true; } if (objUAType.Edit == 1) { uaEditFlag = true; } btnUpdate.Visible = true; //else // btnsave.Visible = false; if (objUAType.Delete == 1) { uaDeleteFlage = true; } }
protected void UserAccessTypeValidation() { int CurrentUserID = GetSessionUserID(); //string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_TypeManagement objType = new BLL_TypeManagement(); string Variable_Type = "Supplier_Type"; string Variable_Code = ""; string Approver_Type = null; objUA = objType.Get_UserTypeAccess(CurrentUserID, Variable_Type, Variable_Code, Approver_Type); }
protected void UserAccessTypeValidation() { int CurrentUserID = GetSessionUserID(); //string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_TypeManagement objType = new BLL_TypeManagement(); string Variable_Type = "Supplier_Type"; string Approver_Type = null; objUAType = objType.Get_UserTypeAccess(CurrentUserID, Variable_Type, GetSessionSupplierType(), Approver_Type); if (objUAType.Delete == 1) { uaDeleteFlage = true; } }
protected void UserAccessTypeValidation(string Supplier_Type) { int CurrentUserID = GetSessionUserID(); //string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_TypeManagement objType = new BLL_TypeManagement(); string Variable_Type = "Supplier_Type"; string Approver_Type = "Evaluation"; objUAType = objType.Get_UserTypeAccess(CurrentUserID, Variable_Type, Supplier_Type, Approver_Type); if (objUAType.Add == 0) { btnSaveEvalution.Enabled = false; btnVerify.Enabled = false; } if (objUAType.Approve == 1) { btnforApproval.Enabled = true; btnRejected.Enabled = true; btnRework.Enabled = true; btnApproval.Enabled = true; } else { btnforApproval.Enabled = false; btnRejected.Enabled = false; btnRework.Enabled = false; btnApproval.Enabled = false; } if (objUAType.Delete == 1) { uaDeleteFlage = true; //btnDelete.Visible = true; } else { btnDelete.Visible = false; } }
protected void UserAccessTypeValidation(string Variable_Code) { int CurrentUserID = GetSessionUserID(); //string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_TypeManagement objType = new BLL_TypeManagement(); string Variable_Type = "Supplier_Type"; string Approver_Type = null; objUAType = objType.Get_UserTypeAccess(CurrentUserID, Variable_Type, Variable_Code, Approver_Type); if (objUAType.Add == 0) { btnSave.Enabled = false; btnSubmit.Enabled = false; } else { btnSave.Enabled = true; btnSubmit.Enabled = true; } }
protected void UserAccessTypeValidation() { try { int CurrentUserID = GetSessionUserID(); //string PageURL = UDFLib.GetPageURL(Request.Path.ToUpper()); BLL_TypeManagement objType = new BLL_TypeManagement(); string Variable_Type = "Supplier_Type"; string Approver_Type = "ChangeRequest"; objUAType = objType.Get_UserTypeAccess(CurrentUserID, Variable_Type, GetSessionSupplierType(), Approver_Type); if (objUAType.Add == 0) { //btnSaveDraft.Enabled = false; btnSubmitRequest.Enabled = false; } if (objUAType.Approve == 1) { //btnSaveDraft.Enabled = true; btnFinalApprove.Visible = true; btnApprove.Visible = true; btnReject.Visible = true; btnFinalApprove.Enabled = true; btnApprove.Enabled = true; btnReject.Enabled = true; } else { btnFinalApprove.Enabled = false; btnApprove.Enabled = false; btnReject.Enabled = false; } } catch { } { } }