protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } toolBar.FunctionCode = FUNCTION_CODE; SelectAllPanel.Visible = toolBar.DeleteButton_Visible; binding = new SearchBinding(dbConn, db); //binding.initValues("RosterCodeLunch", null, Values.VLYesNo, HROne.Common.WebUtility.GetSessionCultureInfo(Session)); //binding.initValues("RosterCodeOT", null, Values.VLYesNo, HROne.Common.WebUtility.GetSessionCultureInfo(Session)); binding.initValues("RosterCodeType", null, ERosterCode.VLRosterType, HROne.Common.WebUtility.GetSessionUICultureInfo(Session)); binding.add(new LikeSearchBinder(RosterCode, "RosterCode")); binding.add(new LikeSearchBinder(RosterCodeDesc, "RosterCodeDesc")); binding.add(new DropDownVLSearchBinder(RosterCodeType, "RosterCodeType", ERosterCode.VLRosterType)); binding.init(DecryptedRequest, null); HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); info = ListFooter.ListInfo; if (!Page.IsPostBack) { view = loadData(info, db, Repeater); } }
protected void Page_Load(object sender, EventArgs e) { //PreRender += new EventHandler(Emp_Authorize_List_PreRender); binding = new SearchBinding(dbConn, EEmpPersonalInfo.db); //binding.add(new DropDownVLSearchBinder(EmpRequestStatus2, "R.EmpRequestStatus", VLStatusUnit)); //binding.add(new FieldDateRangeSearchBinder(EmpRequestFromDate, EmpRequestToDate, "EmpRequestCreateDate").setUseCurDate(false)); if (!ESystemParameter.getParameter(dbConn, ESystemParameter.PARAM_CODE_ENABLE_OTCLAIM).Equals("Y", StringComparison.CurrentCultureIgnoreCase)) { binding.add(new DropDownVLSearchBinder(EmpRequestType, "R.EmpRequestType", EEmpRequest.VLRequestType)); } else { binding.add(new DropDownVLSearchBinder(EmpRequestType, "R.EmpRequestType", EEmpRequest.VLRequestType2)); } binding.initValues("EmpRequestType", null, EEmpRequest.VLRequestType, null); binding.initValues("EmpRequestStatus", null, EEmpRequest.VLRequestStatus, null); binding.init(Request.QueryString, null); info = ListFooter.ListInfo; EESSUser user = WebUtils.GetCurUser(Session); if (user != null) { CurID = user.EmpID; EmpID.Value = CurID.ToString(); } }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } toolBar.FunctionCode = FUNCTION_CODE; if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite)) { IsAllowEdit = false; } AddPanel.Visible = IsAllowEdit; binding = new Binding(dbConn, db); binding.add(PositionCode); binding.add(PositionDesc); binding.add(PositionCapacity); binding.init(Request, Session); sbinding = new SearchBinding(dbConn, db); sbinding.init(DecryptedRequest, null); info = ListFooter.ListInfo; HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite)) { return; } binding = new Binding(dbConn, db); binding.add(TaxPayID); binding.add(new LabelVLBinder(db, TaxPayCode, "TaxPayID", ETaxPayment.VLTaxPayment)); binding.add(TaxFormType); binding.add(TaxPayNature); binding.init(Request, Session); sbinding = new SearchBinding(dbConn, EPaymentCode.db); if (!int.TryParse(DecryptedRequest["TaxPayID"], out CurID)) { CurID = -1; } info = ListFooter.ListInfo; HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } binding = new SearchBinding(dbConn, db); //binding.add(new LikeSearchBinder(EmpNo, "EmpNo")); //binding.add(new LikeSearchBinder(EmpEngSurname, "EmpEngSurname")); //binding.add(new LikeSearchBinder(EmpEngOtherName, "EmpEngOtherName")); //binding.add(new LikeSearchBinder(EmpChiFullName, "EmpChiFullName")); //binding.add(new LikeSearchBinder(EmpAlias, "EmpAlias")); //binding.add(new DropDownVLSearchBinder(EmpGender, "EmpGender", Values.VLGender).setLocale(ci)); //binding.add(new FieldDateRangeSearchBinder(JoinDateFrom, JoinDateTo, "EmpDateOfJoin").setUseCurDate(false)); //binding.add(new DropDownVLSearchBinder(EmpStatus, "EmpStatus", EEmpPersonalInfo.VLEmpStatus).setLocale(ci)); binding.initValues("EmpStatus", null, EEmpPersonalInfo.VLEmpStatus, ci); binding.init(DecryptedRequest, null); info = ListFooter.ListInfo; HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite)) { return; } sbinding = new SearchBinding(dbConn, EEmpPersonalInfo.db); sbinding.init(DecryptedRequest, null); sbinding.initValues("LeaveTypeID", new DBFilter(), ELeaveType.VLLeaveType, HROne.Common.WebUtility.GetSessionUICultureInfo(Session)); sbinding.initValues("LeaveBalAdjType", new DBFilter(), ELeaveBalanceAdjustment.VLLeaveBalAdjType, HROne.Common.WebUtility.GetSessionUICultureInfo(Session)); info = ListFooter.ListInfo; HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); if (!Page.IsPostBack) { view = loadData(info, db, Repeater); } //CNDImportFile.ControlStyle.CssClass = "button"; }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } toolBar.FunctionCode = FUNCTION_CODE; SelectAllPanel.Visible = toolBar.DeleteButton_Visible; binding = new SearchBinding(dbConn, db); binding.add(new LikeSearchBinder(MPFPlanCode, "MPFPlanCode")); binding.add(new LikeSearchBinder(MPFPlanDesc, "MPFPlanDesc")); binding.add(new LikeSearchBinder(MPFPlanSchemeName, "MPFSchemeDesc")); binding.add(new LikeSearchBinder(MPFSchemeCode, "MPFSchemeCode")); binding.add(new LikeSearchBinder(MPFPlanCompanyName, "MPFPlanCompanyName")); binding.init(DecryptedRequest, null); HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); info = ListFooter.ListInfo; if (!Page.IsPostBack) { view = loadData(info, db, Repeater); } }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } binding = new SearchBinding(dbConn, db); //binding.add(new LikeSearchBinder(EmpNo, "EmpNo")); //binding.add(new LikeSearchBinder(EmpEngSurname, "EmpEngSurname")); //binding.add(new LikeSearchBinder(EmpEngOtherName, "EmpEngOtherName")); //binding.add(new LikeSearchBinder(EmpChiFullName, "EmpChiFullName")); //binding.add(new LikeSearchBinder(EmpAlias, "EmpAlias")); //binding.add(new DropDownVLSearchBinder(EmpGender, "EmpGender", EPayrollGroup.VLPayrollGroup).setLocale(ci)); //binding.add(new FieldDateRangeSearchBinder(JoinDateFrom, JoinDateTo, "EmpDateOfJoin").setUseCurDate(false)); //binding.add(new FieldDateRangeSearchBinder((WebDatePicker)EmployeeSearchControl1.AdditionElementControl.FindControl("LastEmploymentDateFrom"), (WebDatePicker)EmployeeSearchControl1.AdditionElementControl.FindControl("LastEmploymentDateTo"), "et.EmpTermLastDate").setUseCurDate(false)); binding.init(DecryptedRequest, null); info = ListFooter.ListInfo; HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); }
//WFValueList functionList = new AppUtils.NewWFTextList( // new string[] { // "PER001", // "PER002", // "PER003" // }, // new string[] { // "Personal Information", // "Position Information", // "Terminated" } // ); protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } foreach (string functionCode in export_Function_List) { CheckBox functionCheckBox = (CheckBox)this.FunctionList.FindControl(FUNCTION_CHECKBOX_PREFIX + functionCode); if (!WebUtils.CheckPermission(Session, functionCode.Replace("_", "-"), WebUtils.AccessLevel.Read)) { functionCheckBox.Visible = false; functionCheckBox.Checked = false; } else { functionCheckBox.Visible = true; } } empSBinding = new SearchBinding(dbConn, EEmpPersonalInfo.db); empSBinding.initValues("EmpStatus", null, EEmpPersonalInfo.VLEmpStatus, HROne.Common.WebUtility.GetSessionUICultureInfo(Session)); empSBinding.init(DecryptedRequest, null); HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); empInfo = ListFooter.ListInfo; empInfo.recordPerPage = 0; }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite)) { return; } toolBar.FunctionCode = FUNCTION_CODE; binding = new Binding(dbConn, db); binding.add(MPFSchemeCessationReasonID); binding.add(MPFSchemeID); binding.add(MPFSchemeCessationReasonCode); binding.add(MPFSchemeCessationReasonDesc); binding.init(Request, Session); sbinding = new SearchBinding(dbConn, ECessationReason.db); if (!int.TryParse(DecryptedRequest["MPFSchemeCessationReasonID"], out CurID)) { CurID = -1; } info = ListFooter.ListInfo; HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); }
protected void Page_Load(object sender, EventArgs e) { btnConfirmAndSeal.OnClientClick = HROne.Translation.PromptMessage.CreateConfirmDialogJavascript(HROne.Common.WebUtility.GetLocalizedString("ARE_YOU_SURE_TO_CONFIRM", ci), btnConfirmAndSeal); if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite)) { return; } toolBar.FunctionCode = FUNCTION_CODE; sbinding = new SearchBinding(dbConn, db); HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); if (!int.TryParse(DecryptedRequest["AttendancePreparationProcessID"], out CurID)) { CurID = -1; } if (!Page.IsPostBack) { if (CurID > 0) { loadObject(); } else { AttendancePreparationProcessStatus.Text = EAttendancePreparationProcess.STATUS_NORMAL; AttendancePreparationProcessStatusDesc.Text = EAttendancePreparationProcess.STATUS_NORMAL_DESC; toolBar.DeleteButton_Visible = false; btnConfirmAndSeal.Visible = false; } } }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } binding = new Binding(dbConn, db); binding.add(new DropDownVLBinder(db, PayGroupID, EPayrollGroup.VLPayrollGroup)); binding.init(Request, Session); sbinding = new SearchBinding(dbConn, EEmpPersonalInfo.db); sbinding.initValues("EmpStatus", null, EEmpPersonalInfo.VLEmpStatus, HROne.Common.WebUtility.GetSessionUICultureInfo(Session)); if (!int.TryParse(PayGroupID.SelectedValue, out CurID)) { CurID = -1; } Payroll_ConfirmedPeriod_List1.PayGroupID = CurID; Payroll_ConfirmedPeriod_List1.PayrollStatus = PayrollStatus.SelectedValue; info = ListFooter.ListInfo; HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); }
//protected void Page_Init(object sender, EventArgs e) //{ // EUser defaultUser = (HROne.Lib.Entities.EUser)Session["User"]; // if (defaultUser != null) // { // EUser user = new EUser(); // user.UserID = defaultUser.UserID; // user.UserLanguage = cboLanguage.SelectedValue; // WebUtils.SetSessionLanguage(Session, user); // HROne.Common.WebUtility.initLanguage(Session); // } //} protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session)) { return; } reminderBinding = new SearchBinding(dbConn, EReminderType.db); EUser user = WebUtils.GetCurUser(this.Session); if (user != null) { CurID = user.UserID; } string selectedLanguage = cboLanguage.SelectedValue; cboLanguage.Items.Clear(); cboLanguage.Items.Add(new ListItem("System Default", "")); WebUtils.AddLanguageOptionstoDropDownList(cboLanguage); cboLanguage.SelectedIndex = cboLanguage.Items.IndexOf(cboLanguage.Items.FindByValue(selectedLanguage)); reminderInfo = ListFooter.ListInfo; productLicense = WebUtils.productLicense(Session); if (productLicense.ProductType != HROne.ProductLicense.ProductLicenseType.HROne) { UserIsKeepConnectedRow.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } toolBar.FunctionCode = FUNCTION_CODE; SelectAllPanel.Visible = toolBar.DeleteButton_Visible; binding = new SearchBinding(dbConn, db); DBFilter MPFSchemeIDFilter = new DBFilter(); MPFSchemeIDFilter.add(new IN("MPFSchemeID", "Select MPFSchemeID from MPFPlan", new DBFilter())); binding.add(new DropDownVLSearchBinder(MPFSchemeID, "MPFSchemeID", EMPFScheme.VLMPFScheme, false).setFilter(MPFSchemeIDFilter)); binding.add(new LikeSearchBinder(MPFSchemeCessationReasonCode, "MPFSchemeCessationReasonCode")); binding.add(new LikeSearchBinder(MPFSchemeCessationReasonDesc, "MPFSchemeCessationReasonDesc")); binding.init(DecryptedRequest, null); HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); info = ListFooter.ListInfo; if (!IsPostBack) { try { MPFSchemeID.SelectedValue = DecryptedRequest["MPFSchemeID"]; } catch { } } }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite)) { AllowEditPanel.Visible = false; m_IsAllowEdit = false; } AllowEditPanel.Visible = m_IsAllowEdit; PreRender += new EventHandler(Emp_Beneficiaries_List_PreRender); sbinding = new SearchBinding(dbConn, sdb); sbinding.init(DecryptedRequest, null); if (!int.TryParse(DecryptedRequest["EmpID"], out CurID)) { CurID = -1; } EmpID.Value = CurID.ToString(); info = ListFooter.ListInfo; }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite)) { return; } toolBar.FunctionCode = FUNCTION_CODE; binding = new Binding(dbConn, db); binding.add(TaxCompID); binding.add(TaxCompEmployerName); binding.add(TaxCompEmployerAddress); binding.add(TaxCompSection); binding.add(TaxCompERN); binding.add(TaxCompDesignation); binding.init(Request, Session); sbinding = new SearchBinding(dbConn, ECompany.db); sbinding.init(DecryptedRequest, null); if (!int.TryParse(DecryptedRequest["TaxCompID"], out CurID)) { CurID = -1; } info = ListFooter.ListInfo; HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } toolBar.FunctionCode = FUNCTION_CODE; SelectAllPanel.Visible = toolBar.DeleteButton_Visible; PreRender += new EventHandler(Emp_Dependant_List_PreRender); sbinding = new SearchBinding(dbConn, sdb); sbinding.init(DecryptedRequest, null); if (!int.TryParse(DecryptedRequest["EmpID"], out CurID)) { CurID = -1; } EmpID.Value = CurID.ToString(); info = ListFooter.ListInfo; }
protected void Page_Load(object sender, EventArgs e) { isAllowLeaveCancel = ESystemParameter.getParameter(dbConn, ESystemParameter.PARAM_CODE_ESS_FUNCTION_CANCEL_LEAVE_APPLICATION).Equals("N", StringComparison.CurrentCultureIgnoreCase) ? false : true; EESSUser user = WebUtils.GetCurUser(Session); if (user != null) { CurID = user.EmpID; EmpID.Value = CurID.ToString(); } DBFilter leaveTypeFilter = new DBFilter(); { DBFilter leaveAppFilter = new DBFilter(); leaveAppFilter.add(new Match("EmpID", CurID)); DBFilter leaveCodeFilter = new DBFilter(); leaveCodeFilter.add(new IN("LeaveCodeID", "SELECT DISTINCT la.LeaveCodeID FROM " + ELeaveApplication.db.dbclass.tableName + " la", leaveAppFilter)); leaveTypeFilter.add(new IN("LeaveTypeID", "SELECT DISTINCT lc.LeaveTypeID FROM " + ELeaveCode.db.dbclass.tableName + " lc", leaveCodeFilter)); } binding = new SearchBinding(dbConn, db); binding.initValues("LeaveAppUnit", null, Values.VLLeaveUnit, null); binding.add(new DropDownVLSearchBinder(LeaveType, "l.LeaveTypeID", ELeaveType.VLLeaveType).setFilter(leaveTypeFilter)); //binding.add(new FieldDateRangeSearchBinder(LeaveAppDateFrom.TextBox, LeaveAppDateTo.TextBox, "LeaveAppDateFrom").setUseCurDate(false)); binding.init(Request.QueryString, null); info = ListFooter.ListInfo; }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite)) { AllowEditPanel.Visible = false; m_IsAllowEdit = false; } AllowEditPanel.Visible = m_IsAllowEdit; PreRender += new EventHandler(Emp_WorkingExperience_List_PreRender); sbinding = new SearchBinding(dbConn, sdb); sbinding.initValues("EmpWorkExpFromMonth", null, Values.VLMonth, HROne.Common.WebUtility.GetSessionUICultureInfo(Session)); sbinding.initValues("EmpWorkExpToMonth", null, Values.VLMonth, HROne.Common.WebUtility.GetSessionUICultureInfo(Session)); sbinding.init(DecryptedRequest, null); if (!int.TryParse(DecryptedRequest["EmpID"], out CurID)) { CurID = -1; } EmpID.Value = CurID.ToString(); info = ListFooter.ListInfo; }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite)) { IsAllowEdit = false; ConfirmPayrollSelectAllPanel.Visible = false; } Year.Attributes.Add("onchange", "year=parseInt(" + Year.ClientID + ".value); if (!(year>1900)) {if (" + Year.ClientID + ".value!='') alert('Invalid Year');return true; }if (" + Month.ClientID + ".selectedIndex==0) return true;"); Month.Attributes.Add("onchange", "year=parseInt(" + Year.ClientID + ".value); if (!(year>1900)) return true;"); Year2.Attributes.Add("onchange", "year2=parseInt(" + Year2.ClientID + ".value); if (!(year2>1900)) {if (" + Year2.ClientID + ".value!='') alert('Invalid Year');return true; }if (" + Month2.ClientID + ".selectedIndex==0) return true;"); Month2.Attributes.Add("onchange", "year2=parseInt(" + Year2.ClientID + ".value); if (!(year2>1900)) return true;"); sbinding = new SearchBinding(dbConn, db); sbinding.init(DecryptedRequest, null); binding = new SearchBinding(dbConn, EEmpCostCenter.db); binding.add(new DropDownVLSearchBinder(Month, "Month", Values.VLMonth)); binding.add(new DropDownVLSearchBinder(Month2, "Month", Values.VLMonth)); binding.init(DecryptedRequest, null); info = ListFooter.ListInfo; HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE)) { return; } //toolBar.FunctionCode = FUNCTION_CODE; //if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite)) //{ // IsAllowEdit = false; //} AddPanel.Visible = IsAllowEdit; HolidayImport.Visible = IsAllowEdit; binding = new Binding(dbConn, db); binding.add(new TextBoxBinder(db, PublicHolidayDate.TextBox, PublicHolidayDate.ID)); binding.add(PublicHolidayDesc); binding.init(Request, Session); sbinding = new SearchBinding(dbConn, db); sbinding.add(new DropDownVLSearchBinder(YearSelect, "YEAR(PublicHolidayDate)", new WFYearList(15, 5), false)); sbinding.init(Request.QueryString, null); info = ListFooter.ListInfo; HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); }
// End 0000185, KuangWei, 2015-05-05 protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } sbinding = new SearchBinding(dbConn, EHierarchyElement.db); //sbinding.add(new DropDownVLSearchBinder(HLevelID, "HLevelID", EHierarchyLevel.VLHierarchy, false)); //sbinding.init(DecryptedRequest, null); DBFilter hierarchyLevelFilter = new DBFilter(); // additional grouping method not limited to hierarchy setting hierarchyLevelFilter.add("HLevelSeqNo", true); ArrayList hierarchyLevelList = EHierarchyLevel.db.select(dbConn, hierarchyLevelFilter); foreach (EHierarchyLevel hlevel in hierarchyLevelList) { HLevelID.Items.Add(new ListItem(hlevel.HLevelCode + " - " + hlevel.HLevelDesc, hlevel.HLevelID.ToString())); } // Start 0000185, KuangWei, 2015-05-05 binding = new SearchBinding(dbConn, db); binding.init(DecryptedRequest, null); info = ListFooter.ListInfo; // End 0000185, KuangWei, 2015-05-05 HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); }
protected void Page_Load(object sender, EventArgs e) { binding = new SearchBinding(dbConn, db); //binding.add(new LikeSearchBinder(EmpNo, "EmpNo")); //binding.add(new LikeSearchBinder(EmpEngSurname, "EmpEngSurname")); //binding.add(new LikeSearchBinder(EmpEngOtherName, "EmpEngOtherName")); //binding.add(new LikeSearchBinder(EmpChiFullName, "EmpChiFullName")); //binding.add(new LikeSearchBinder(EmpAlias, "EmpAlias")); //binding.add(new DropDownVLSearchBinder(EmpGender, "EmpGender", Values.VLGender).setLocale(ci)); //binding.add(new FieldDateRangeSearchBinder(JoinDateFrom, JoinDateTo, "EmpDateOfJoin").setUseCurDate(false)); //binding.add(new DropDownVLSearchBinder(EmpStatus, "EmpStatus", EEmpPersonalInfo.VLEmpStatus)); //binding.initValues("EmpStatus", null, EEmpPersonalInfo.VLEmpStatus, ci); binding.init(DecryptedRequest, null); if (!Page.IsPostBack) { PositionList.LoadListControl(dbConn, EPosition.VLPosition, true); RankList.LoadListControl(dbConn, ERank.VLRank, false); EmploymentTypeList.LoadListControl(dbConn, EEmploymentType.VLEmploymentType, true); StaffTypeList.LoadListControl(dbConn, EStaffType.VLStaffType, true); PayrollGroupList.LoadListControl(dbConn, EPayrollGroup.VLPayrollGroup, true); //selected = PayGroupID.SelectedValue; //WebFormUtils.loadValues(PayGroupID, EPayrollGroup.VLPayrollGroup, new DBFilter(), null, (string)selected, (string)"combobox.notselected"); string selected = EmpGender.SelectedValue; WebFormUtils.loadValues(dbConn, EmpGender, Values.VLGender, new DBFilter(), ci, (string)selected, (string)"combobox.notselected"); } }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } m_IsAllowWrite = WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite); RosterClientSiteSBinding = new SearchBinding(dbConn, ERosterClientSite.db); if (!IsPostBack) { rosterClientSiteloadData(); } HtmlLink cssLink = new HtmlLink(); cssLink.Href = "~/CSS/RadScheduler.css"; cssLink.Attributes.Add("rel", "stylesheet"); cssLink.Attributes.Add("type", "text/css"); Header.Controls.Add(cssLink); HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); }
protected void Page_Load(object sender, EventArgs e) { btnUndo.OnClientClick = HROne.Translation.PromptMessage.CreateConfirmDialogJavascript(HROne.Common.WebUtility.GetLocalizedString("PAYROLL_UNDO_CLICK_MESSAGE", ci), btnUndo); if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite)) { toolBar.CustomButton1_Visible = false; } sbinding = new SearchBinding(dbConn, EEmpPersonalInfo.db); sbinding.add(new HiddenMatchBinder(CAImportBatchID)); sbinding.init(DecryptedRequest, null); binding = new Binding(dbConn, ECommissionAchievementImportBatch.db); binding.add(CAImportBatchDateTime); binding.add(CAImportBatchID); binding.add(new LabelVLBinder(ECommissionAchievementImportBatch.db, CAImportBatchUploadedBy, EUser.VLUserName)); binding.add(CAImportBatchRemark); binding.init(Request, Session); if (!int.TryParse(DecryptedRequest["CAImportBatchID"], out CurID)) { CurID = -1; } info = ListFooter.ListInfo; HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } toolBar.FunctionCode = FUNCTION_CODE; if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite)) { //AddPanel.Visible = false; IsAllowEdit = false; } //binding = new Binding(dbConn, db); //binding.add(AuthorizationCode); //binding.add(AuthorizationDesc); //binding.add(new CheckBoxBinder(db, AuthorizationGroupIsApproveEEInfo)); //binding.add(new CheckBoxBinder(db, AuthorizationGroupIsApproveLeave)); //binding.add(new CheckBoxBinder(db, AuthorizationGroupIsReceiveOtherGrpAlert)); //binding.init(Request, Session); sbinding = new SearchBinding(dbConn, db); sbinding.add(new LikeSearchBinder(AuthorizationGroupCode, "AuthorizationCode")); sbinding.add(new LikeSearchBinder(AuthorizationGroupDesc, "AuthorizationDesc")); sbinding.init(DecryptedRequest, null); sbinding.initValues("AuthorizationGroupIsApproveEEInfo", null, Values.VLYesNo, HROne.Common.WebUtility.GetSessionUICultureInfo(Session)); sbinding.initValues("AuthorizationGroupIsApproveLeave", null, Values.VLYesNo, HROne.Common.WebUtility.GetSessionUICultureInfo(Session)); sbinding.initValues("AuthorizationGroupIsReceiveOtherGrpAlert", null, Values.VLYesNo, HROne.Common.WebUtility.GetSessionUICultureInfo(Session)); info = ListFooter.ListInfo; HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } toolBar.FunctionCode = FUNCTION_CODE; SelectAllPanel.Visible = toolBar.DeleteButton_Visible; PreRender += new EventHandler(Emp_AVCPlan_List_PreRender); sbinding = new SearchBinding(dbConn, sdb); sbinding.initValues("AVCPlanID", null, EAVCPlan.VLAVCPlan, HROne.Common.WebUtility.GetSessionUICultureInfo(Session)); sbinding.init(DecryptedRequest, null); if (!int.TryParse(DecryptedRequest["EmpID"], out CurID)) { CurID = -1; } EmpID.Value = CurID.ToString(); info = ListFooter.ListInfo; if (!IsPostBack) { ListFooter.ListOrderBy = "EmpAVCEffFr"; ListFooter.ListOrder = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } binding = new SearchBinding(dbConn, db); //binding.add(new LikeSearchBinder(EmpNo, "EmpNo")); //binding.add(new LikeSearchBinder(EmpName, "EmpEngSurname", "EmpEngOtherName", "EmpChiFullName")); //binding.add(new FieldDateRangeSearchBinder(JoinDateFrom, JoinDateTo, "EmpDateOfJoin").setUseCurDate(false)); //binding.add(new DropDownVLSearchBinder(EmpStatus, "EmpStatus", EEmpPersonalInfo.VLEmpStatus).setLocale(ci)); //binding.add(new DropDownVLSearchBinder((DropDownList)EmployeeSearchControl1.AdditionElementControl.FindControl("PayGroup"), "pp.PayGroupID", EPayrollGroup.VLPayrollGroup).setLocale(ci)); binding.initValues("EmpStatus", null, EEmpPersonalInfo.VLEmpStatus, ci); binding.init(DecryptedRequest, null); info = ListFooter.ListInfo; HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); if (!IsPostBack) { WebFormUtils.loadValues(dbConn, TrainingCourseList, ETrainingCourse.VLTrainingCourse, new DBFilter()); } }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read)) { return; } toolBar.FunctionCode = FUNCTION_CODE; SelectAllPanel.Visible = toolBar.DeleteButton_Visible; binding = new SearchBinding(dbConn, db); binding.add(new LikeSearchBinder(LeaveCodeDesc, "LeaveCodeDesc")); binding.add(new DropDownVLSearchBinder(LeaveTypeID, "c.LeaveTypeID", ELeaveType.VLLeaveType)); //binding.add(new DropDownVLSearchBinder(PaymentCodeID, "PaymentCodeID", EPaymentCode.VLPaymentCode)); binding.init(DecryptedRequest, null); HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); info = ListFooter.ListInfo; if (!Page.IsPostBack) { view = loadData(info, db, Repeater); } }
protected void Page_Load(object sender, EventArgs e) { if (!WebUtils.CheckAccess(Response, Session, "RPT206", WebUtils.AccessLevel.Read)) { return; } binding = new SearchBinding(dbConn, db); //binding.add(new LikeSearchBinder(EmpNo, "EmpNo")); //binding.add(new LikeSearchBinder(EmpEngSurname, "EmpEngSurname")); //binding.add(new LikeSearchBinder(EmpEngOtherName, "EmpEngOtherName")); //binding.add(new LikeSearchBinder(EmpChiFullName, "EmpChiFullName")); //binding.add(new LikeSearchBinder(EmpAlias, "EmpAlias")); //binding.add(new DropDownVLSearchBinder(EmpGender, "EmpGender", EPayrollGroup.VLPayrollGroup).setLocale(ci)); //binding.add(new FieldDateRangeSearchBinder(JoinDateFrom, JoinDateTo, "EmpDateOfJoin").setUseCurDate(false)); binding.init(DecryptedRequest, null); SearchBinding tempBinding = new SearchBinding(dbConn, db); tempBinding.add(new DropDownVLSearchBinder(ProcessMonth, "", Values.VLMonth)); tempBinding.add(new DropDownVLSearchBinder(ReferenceMonth, "", Values.VLMonth)); tempBinding.init(DecryptedRequest, null); info = ListFooter.ListInfo; HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls); }