protected void Page_Load(object sender, EventArgs e) { Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache"; //block if without login if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } //block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); if (user.MenuList.ContainsKey("3,11,1") == true) { if (this.IsPostBack == false) { this.LoadOrganization(); this.LoadSewa(); this.LoadLevel(); this.LoadDistrict(); this.LoadQualification(); this.LoadCountry(); this.LoadPostingType(); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache"; //block if without login if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } //block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); Session["OrgID"] = user.OrgID; //if (user.MenuList.ContainsKey("3,57,1") == true) //{ Session["UserName"] = user.UserName; Session["UserID"] = user.PID; txtEmpName.Text = user.UserName; if (!IsPostBack) { GetLeaveType(); } //} //else //{ // Response.Redirect("~/MODULES/Login.aspx", true); //} }
protected void Page_Load(object sender, EventArgs e) { Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache"; //block if without login if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } //block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); Session["OrgID"] = user.OrgID; Session["User"] = user.UserName; if (user.MenuList.ContainsKey("3,8,1") == true) { Session["UserName"] = user.UserName; if (!IsPostBack) { LoadOrganizationWithChilds(int.Parse(Session["OrgID"].ToString())); LoadDesignations(); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache"; if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); orgID = user.OrgID; entryBy = user.UserName; loginID = int.Parse(user.PID.ToString()); if (!IsPostBack) { LoadControls(); } HiddenField hdnType = (HiddenField)this.PurposeOrderDetail.FindControl("hdnType"); hdnType.Value = "1"; }
protected void Page_Load(object sender, EventArgs e) { if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); Session["OrgID"] = user.OrgID; if (user.MenuList.ContainsKey("1,18,1") == true) { if (this.Page.IsPostBack == false) { this.chkWritActive.Checked = true; this.chkWritSubCatActive.Checked = true; this.chkWritSubCatSubTitleActive.Checked = true; this.chkWritSubCatTitleActive.Checked = true; createTempObj(); //Session["TempWritSubject"] = new ATTWritSubject(); LoadWritSubjectDetails(); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { //block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); Session["OrgID"] = user.OrgID; if (!IsPostBack) { if (Session["PropDetailsEmpID"] != null) { int empID = int.Parse(Session["PropDetailsEmpID"].ToString()); Session["PropDetailsEmpID"] = null; LoadEmpOrgInfo(empID); } Session["PropertyCatList"] = null; Session["PropertyCatColList"] = null; Session["PCatCount"] = null; Session["rqd_lstPCatCols"] = null; Session["grdPCat"] = null; Session["SetSubDate"] = false; Session["SubDate"] = null; Session["alreadySet"] = null; Session["AmountDate"] = null; LoadProperty(); LoadOrganisation(); //CallCreateAmountDateGrid(); } }
protected void Page_Load(object sender, EventArgs e) { Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache"; //block if without login if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } //block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); if (user.MenuList.ContainsKey("3,35,1") == true) { Session["User"] = user.UserName; Session["OrgID"] = user.OrgID; if (this.IsPostBack == false) { GetYear(); this.lblStatus.Text = ""; Session["FxHoliday"] = new List <ATTFixedHoliday>(); Session["AnnPrevHoliday"] = new List <ATTAnnualHoliday>(); Session["LoadedData"] = new List <ATTAnnualHoliday>(); LoadFixedHolidays(); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { ////block if without login if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } ////block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); Session["OrgID"] = user.OrgID; if (user.MenuList.ContainsKey("Participants") == true || user.MenuList.ContainsKey("Resource Person") == true) { if (Page.IsPostBack == false) { GetProgram(); LoadDistricts(); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void btnAddEvidence_Click(object sender, EventArgs e) { if (this.txtPraEvidence.Text == "") { return; } ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); int intPraEvidence; List <ATTPratiuttarEvidence> lst = (List <ATTPratiuttarEvidence>)Session["PratiuttarEvidence"]; intPraEvidence = this.grdPraEvidence.SelectedIndex > -1 ? lst[this.grdPraEvidence.SelectedIndex].EvidenceID : 0; ATTPratiuttarEvidence praEvidence = new ATTPratiuttarEvidence(double.Parse(Session["CaseID"].ToString()), 0, intPraEvidence, this.txtPraEvidence.Text.Trim()); praEvidence.Action = this.grdPraEvidence.SelectedIndex > -1 ? (lst[this.grdPraEvidence.SelectedIndex].Action == "A" ? "A" : "E") : "A"; praEvidence.EntryBy = user.UserName; if (this.grdPraEvidence.SelectedIndex > -1) { lst[this.grdPraEvidence.SelectedIndex].Evidence = praEvidence.Evidence; } else { lst.Add(praEvidence); } this.grdPraEvidence.DataSource = lst; this.grdPraEvidence.DataBind(); this.txtPraEvidence.Text = ""; this.grdPraEvidence.SelectedIndex = -1; SetGridColor(4, 6, grdPraEvidence); }
protected void Page_Load(object sender, EventArgs e) { if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } ////block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); Session["OrgID"] = user.OrgID; if (user.MenuList.ContainsKey("3,45,1") == true) { //grdAttendance.Visible = false; if (!IsPostBack) { ddlMonth.Enabled = false; Session["MonthlyHolidays"] = "null"; GetYear(); LoadOrganizationWithChilds(int.Parse(Session["OrgID"].ToString())); LoadOrganizationUnit(int.Parse(Session["OrgID"].ToString())); LoadDesignations(); //GetApprovedLeaves(); //LoadGridHeader(); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache"; //block if without login if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } //block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); if ((user.MenuList.ContainsKey("3,14,1") == true) || (user.MenuList.ContainsKey("2,11,1") == true)) { if (!this.IsPostBack) { LoadDocumentsType(); this.txtDocTypeName_rqd.Text = ""; } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache"; //block if without login if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } //block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); if (user.MenuList.ContainsKey("1,24,1") == true) { Session["OrgID"] = user.OrgID; if (!Page.IsPostBack) { GetOrganisations(); LoadBenchType(); GetOrderList(); this.assignmentDiv.Visible = false; } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } ////block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); if (user.MenuList.ContainsKey("5,8,1") == true) { if (Page.IsPostBack == false) { this.LoadOrganization(); this.LoadMeetingType(); this.LoadMeetingStatus(); this.SetTemporaryMinuteSession(); this.LoadCurrentMonthDate(); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } ////block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); Session["OrgID"] = user.OrgID; if (user.MenuList.ContainsKey("Resource Person Marks") == true) { if (Page.IsPostBack == false) { this.LoadProgram(user.OrgID); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } if (this.IsPostBack == false) { } }
protected void Page_Load(object sender, EventArgs e) { if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } ////block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); Session["OrgID"] = user.OrgID; if (user.MenuList.ContainsKey("3,43,1") == true) { if (!IsPostBack) { //LoadOrganization(9); LoadOrganizationUnit(); LoadOrganizationWithChilds(int.Parse(Session["OrgID"].ToString())); LoadDesignations(); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void btnDocPlus_Click(object sender, EventArgs e) { ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); if (!fileUp.HasFile) { return; } int intdocID; List <ATTPratiuttarDocuments> lstPraDocuments = (List <ATTPratiuttarDocuments>)Session["PratiuttarDocument"]; intdocID = this.grdPraDocument.SelectedIndex > -1 ? lstPraDocuments[this.grdPraDocument.SelectedIndex].DocumentID : 0; ATTPratiuttarDocuments praDocument = new ATTPratiuttarDocuments(double.Parse(Session["CaseID"].ToString()), 0, intdocID, fileUp.FileName, fileUp.FileBytes); praDocument.Action = this.grdPraDocument.SelectedIndex > -1 ? (lstPraDocuments[this.grdPraDocument.SelectedIndex].Action == "A" ? "A" : "E") : "A"; praDocument.EntryBy = user.UserName; if (this.grdPraDocument.SelectedIndex > -1) { lstPraDocuments[this.grdPraDocument.SelectedIndex].DocumentFileName = praDocument.DocumentFileName; lstPraDocuments[this.grdPraDocument.SelectedIndex].DocumentContent = praDocument.DocumentContent; } else { lstPraDocuments.Add(praDocument); } this.grdPraDocument.DataSource = lstPraDocuments; this.grdPraDocument.DataBind(); this.grdPraDocument.SelectedIndex = -1; SetGridColor(4, 5, this.grdPraDocument); }
protected void Page_Load(object sender, EventArgs e) { Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache"; //block if without login if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } //block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); if (user.MenuList.ContainsKey("3,29,1") == true) { if (IsPostBack == false) { GetInstitution(); GetCountry(); chkActive.Checked = true; } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { ////block if without login if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } ////block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); Session["OrgID"] = user.OrgID; if (!IsPostBack) { #region session //Session["Cat"] = new List<ATTInvItemsCategory>(); //Session["SubCat"] = new List<ATTInvItemSubCategory>(); //Session["Items"] = new List<ATTInvOrgItemsPrice>(); //Session["KNJItems"] = new List<ATTInvOrgItemsKNJ>(); Session["ItemsTransfered"] = new List <ATTInvItemsTransfered>(); //Session["Organization"] = new List<ATTOrganization>(); Session["OrgID"] = user.OrgID; #endregion LoadCategory(); LoadTransferOrg(int.Parse(Session["OrgID"].ToString())); LoadOrganizationWithChilds(int.Parse(Session["OrgID"].ToString())); LoadDesignations(); Panel1.Visible = false; Panel3.Visible = false; Panel6.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache"; //block if without login if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } //block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); entryBy = user.UserName; if (user.MenuList.ContainsKey("2,2,1") == true) { if (!IsPostBack) { InspectionList = new List <ATTJudgeWorkInspectionDetails>(); Session["WorkDetailsLst"] = null; Session["WorkDetailsLst"] = InspectionList; LoadCourts(); LoadWorkList(); Session["AddEdit"] = "A"; Check(); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } ////block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); if (!Page.IsPostBack) { LoadItemCategoryList(); Session["ItemCategory"] = new ATTInvItemsCategory();// } /* * if (user.MenuList.ContainsKey("5,5,1") == true) * { * if (!Page.IsPostBack) * { * // load grid; * * } * } * else * Response.Redirect("~/MODULES/Login.aspx", true); * */ }
protected void Page_Load(object sender, EventArgs e) { if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } ////block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); //Session["OrgID"] = user.OrgID; Session["OrgID"] = user.OrgID; if (user.MenuList.ContainsKey("3,49,1") == true) { if (!IsPostBack) { GetOrganization(); Session["LstPhone"] = null; Session["LstEmail"] = null; Session["LstPhone"] = new List <ATTPhone>(); Session["LstEmail"] = new List <ATTEmail>(); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void btnAddEvidence_Click(object sender, EventArgs e) { if (this.txtEvidence.Text == "") { this.lblStatusMessage.Text = "Evidence Can't Be Blank"; this.programmaticModalPopup.Show(); return; } ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); List <ATTCaseEvidence> EvidenceLST = (List <ATTCaseEvidence>)Session["Evidence"]; if (this.grdEvidence.SelectedIndex == -1) { ATTCaseEvidence objEvidence = new ATTCaseEvidence(); objEvidence.CaseID = 1;// double.Parse(this.lblCaseNo.Text); objEvidence.EvidenceID = 0; objEvidence.Evidence = this.txtEvidence.Text; objEvidence.EntryBy = user.UserName; objEvidence.Action = "A"; EvidenceLST.Add(objEvidence); } else { EvidenceLST[this.grdEvidence.SelectedIndex].Evidence = this.txtEvidence.Text; EvidenceLST[this.grdEvidence.SelectedIndex].Action = "E"; } this.grdEvidence.DataSource = EvidenceLST; this.grdEvidence.DataBind(); this.grdEvidence.SelectedIndex = -1; this.txtEvidence.Text = ""; }
protected void Page_Load(object sender, EventArgs e) { Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache"; //block if without login if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } //block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); if (user.MenuList.ContainsKey("4,4,1") == true) { if (this.IsPostBack == false) { this.LoadAuthor(); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { //this.SrchGrid.Height = Unit.Pixel(0); Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache"; //block if without login if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } //block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); //if (user.MenuList.ContainsKey("3,59,1") == true) //{ if (!IsPostBack) { LoadAllOrganizationNameList(); Session["EmployeeDuptation"] = new ATTEmployeeDeputaion(); LoadEmpCurentPostingInfo(user.PID); LoadEmpDeputationInfo(); } //} //else // Response.Redirect("~/MODULES/Login.aspx", true); }
protected void Page_Load(object sender, EventArgs e) { Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache"; if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); if (user.MenuList.ContainsKey("5,10,1") == true) { if (!this.IsPostBack) { LoadOrganizationUnits(); LoadItemsCategory(); Session["MaagDetail"] = new List <ATTMaagFaaramDetail>(); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void btnAdd_Click(object sender, EventArgs e) { ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); ATTEmployeeDeputaion obj = (ATTEmployeeDeputaion)Session["EmployeeDuptation"]; ATTEmployeePosting objEcp = (ATTEmployeePosting)Session["EmployeeCurentPosting"]; obj.EmpID = user.PID; obj.OrgID = user.OrgID; obj.DesID = objEcp.DesID; obj.CreatedDate = objEcp.CreatedDate; obj.PostID = objEcp.PostID; obj.FromDate = objEcp.FromDate; obj.ApplicationDate = txtAppdate_DT.Text; obj.DepOrgID = int.Parse(ddlOrganization.SelectedValue); //obj.DecisionVerifiedBy = ""; //obj.LeaveDate = ""; //obj.LeaveVerifiedBy = ""; //obj.ReturnDate = ""; //obj.ReturnVerifiedBy = ""; obj.Responsibilities = txtdescription.Text; obj.Active = "Y"; obj.EntryBy = user.UserName; //obj.TipOrgID = ""; // obj.TippaniID = ""; //obj.DecisionDate = ""; obj.Action = "A"; if (this.ddlOrganization.SelectedIndex <= 0) { this.lblStatusMessage.Text = "Please select organization Name."; this.programmaticModalPopup.Show(); this.lblStatus.Focus(); return; } if (this.txtAppdate_DT.Text == "") { this.lblStatusMessage.Text = "Please Enter Application Date."; this.programmaticModalPopup.Show(); this.lblStatus.Focus(); return; } if (this.txtdescription.Text == "") { this.lblStatusMessage.Text = "Please Enter Responsibilities."; this.programmaticModalPopup.Show(); this.lblStatus.Focus(); return; } if (BLLEmployeeDeputation.AddEmpForDeputationDetail(obj)) { this.lblStatusMessage.Text = "Information Saved"; this.programmaticModalPopup.Show(); } else { this.lblStatusMessage.Text = "Information could not be Saved"; this.programmaticModalPopup.Show(); } ClearControl(); }
protected void Page_Load(object sender, EventArgs e) { Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache"; //block if without login if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } //block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); if (user.MenuList.ContainsKey("2,30,1") == true) { if (!IsPostBack) { LoadOrganisation(); LoadOrganizationAvailablePosts(); LoadLevel(); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d); Response.Expires = -1500; Response.CacheControl = "no-cache"; if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); if (user.MenuList.ContainsKey("5,11,1") == true) { if (!this.IsPostBack) { this.pnlMaagDetail.Visible = false; } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } ////block if from URL ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); Session["OrgID"] = user.OrgID; if (user.MenuList.ContainsKey("2,29,1") == true) { if (Page.IsPostBack == false) { LoadOffice(); LoadPost(); LoadSewa(); LoadLevel(); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["Login_User_Detail"] == null) { Response.Redirect("~/MODULES/Login.aspx", true); } ATTUserLogin user = ((ATTUserLogin)Session["Login_User_Detail"]); Session["OrgID"] = user.OrgID; if (user.MenuList.ContainsKey("Assign Material/Member") == true) { if (this.Page.IsPostBack == false) { this.LoadProgram(user.OrgID); this.LoadOrganization(); this.LoadFacultyMember(user.OrgID, null); } } else { Response.Redirect("~/MODULES/Login.aspx", true); } if (this.IsPostBack == false) { //Session["DLPDS_SessionCourse"] = new ATTSessionCourse(); } }