protected bool loadObject() { obj = new EAttendancePlan(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } if (obj.AttendancePlanBonusAmountUnit.Equals("H", StringComparison.CurrentCultureIgnoreCase)) { OTBonusPanel.Visible = false; } else { OTBonusPanel.Visible = true; } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); RefreshOTPayrollRegion(); return(true); }
protected bool loadObject() { obj = new ERosterTableGroup(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } if (!IsPostBack) { DBFilter rosterClientSiteFilter = new DBFilter(); rosterClientSiteFilter.add(new Match("RosterClientID", obj.RosterClientID)); binding.add(new DropDownVLBinder(db, RosterClientSiteID, ERosterClientSite.VLRosterClientSite, rosterClientSiteFilter)); binding.init(Request, Session); } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); return(true); }
protected bool loadObject() { obj = new EPaymentCode(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); if (string.IsNullOrEmpty(obj.PaymentCodeRoundingRule)) { obj.PaymentCodeRoundingRule = Values.ROUNDING_RULE_ROUND_TO; obj.PaymentCodeDecimalPlace = 2; } db.populate(obj, values); binding.toControl(values); if (obj.PaymentCodeRoundingRuleIsAbsoluteValue) { PaymentCodeRoundingRuleIsAbsoluteValue.Visible = true; } else { PaymentCodeRoundingRuleIsAbsoluteValue.Visible = false; } loadTaxPayment(); return(true); }
protected bool loadObject() { obj = new ELeaveType(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); if (obj.LeaveType == ELeaveType.LEAVETYPECODE_COMPENSATION) { LeaveUnit.Text = " Hour(s)"; } else { LeaveUnit.Text = " Day(s)"; } return(true); }
protected bool loadObject() { obj = new ELeavePlan(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); if (obj.LeavePlanALRoundingRuleIsApplyFirstYearBroughtForwardOnly) { LeavePlanALRoundingRuleIsApplyFirstYearBroughtForwardOnly.Visible = true; } else { LeavePlanALRoundingRuleIsApplyFirstYearBroughtForwardOnly.Visible = false; } CommonLeaveYearRow1.Visible = obj.LeavePlanUseCommonLeaveYear; CommonLeaveYearRow2.Visible = obj.LeavePlanUseCommonLeaveYear; RestDayMonthlyOption1.Visible = obj.LeavePlanRestDayEntitlePeriod.Equals("M"); RestDayMonthlyOption2.Visible = obj.LeavePlanRestDayEntitlePeriod.Equals("M"); RestDayWeeklyOption.Visible = obj.LeavePlanRestDayEntitlePeriod.Equals("W"); LeavePlanComparePreviousLeavePlanOptionPanel.Visible = obj.LeavePlanComparePreviousLeavePlan; return(true); }
protected bool loadObject() { obj = new EEmpBankAccount(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); DBFilter filter = new DBFilter(); filter.add(new Match("EmpID", CurEmpID)); filter.add(WebUtils.AddRankFilter(Session, "EmpID", true)); if (EEmpPersonalInfo.db.count(dbConn, filter) == 0) { if (CurEmpID <= 0) { return(false); } else { HROne.Common.WebUtility.RedirectURLwithEncryptedQueryString(Response, Session, "~/AccessDeny.aspx"); } } if (!db.select(dbConn, obj)) { if (CurID <= 0) { return(false); } else { HROne.Common.WebUtility.RedirectURLwithEncryptedQueryString(Response, Session, "~/AccessDeny.aspx"); } } if (obj.EmpID != CurEmpID) { if (CurID <= 0) { return(false); } else { HROne.Common.WebUtility.RedirectURLwithEncryptedQueryString(Response, Session, "~/AccessDeny.aspx"); } } //DBFilter filter = new DBFilter(); //filter.add(new Match("EmpBankAccountID", obj.EmpBankAccountID)); //filter.add(WebUtils.AddRankFilter(Session, "EmpID", true)); //ArrayList empBankAccountList = EEmpBankAccount.db.select(dbConn, filter); //if (empBankAccountList.Count == 0) // return false; //obj = (EEmpBankAccount)empBankAccountList[0]; Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); return(true); }
protected bool loadObject() { obj = new EAttendancePreparationProcess(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); switch (obj.AttendancePreparationProcessStatus) { case EAttendancePreparationProcess.STATUS_NORMAL: AttendancePreparationProcessStatusDesc.Text = EAttendancePreparationProcess.STATUS_NORMAL_DESC; break; case EAttendancePreparationProcess.STATUS_CONFIRMED: AttendancePreparationProcessStatusDesc.Text = EAttendancePreparationProcess.STATUS_CONFIRMED_DESC; break; } return(true); }
protected bool loadObject() { EEmpPersonalInfo obj = new EEmpPersonalInfo(); bool isNew = WebFormWorkers.loadKeys(empDB, obj, DecryptedRequest); DBFilter filter = new DBFilter(); filter.add(new Match("EmpID", obj.EmpID)); filter.add(WebUtils.AddRankFilter(Session, "EmpID", true)); ArrayList empInfoList = EEmpPersonalInfo.db.select(dbConn, filter); if (empInfoList.Count == 0) { return(false); } obj = (EEmpPersonalInfo)empInfoList[0]; Hashtable values = new Hashtable(); empDB.populate(obj, values); empBinding.toControl(values); OldEmpNo.Text = EmpNo.Text; EEmpPositionInfo empPos = AppUtils.GetLastPositionInfo(dbConn, CurEmpID); values = new Hashtable(); empPosDB.populate(empPos, values); empPosBinding.toControl(values); return(true); }
protected bool loadObject() { obj = new EEmpPersonalInfo(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); DBFilter filter = new DBFilter(); filter.add(new Match("EmpID", obj.EmpID)); filter.add(WebUtils.AddRankFilter(Session, "EmpID", true)); ArrayList empPayrollList = EEmpPersonalInfo.db.select(dbConn, filter); if (empPayrollList.Count == 0) { //IsAllowEdit = false; Attendance_AttendanceRecordList.Visible = false; return(false); } obj = (EEmpPersonalInfo)empPayrollList[0]; Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); ucEmp_Header.CurrentEmpID = obj.EmpID; return(true); }
protected bool loadObject() { obj = new EUserGroup(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); DBFilter filter = new DBFilter(); filter.add(new Match("UserGroupID", this.CurID)); ArrayList list; list = EUserGroupFunction.db.select(dbConn, filter); foreach (EUserGroupFunction o in list) { selectedFunctionList.Add(o.FunctionID, o); } return(true); }
protected bool loadObject() { ETaxPayment obj = new ETaxPayment(); bool isNew = WebFormWorkers.loadKeys(ETaxPayment.db, obj, DecryptedRequest); if (!ETaxPayment.db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); // Start 0000020, KuangWei, 2014-08-19 if (obj.TaxPayCode.Length == 2 || obj.TaxPayCode == "Others (d)" || obj.TaxPayCode == "Others (e)") // a.k.a k1,k2,k3 with nature, others (d), others (e) // End 0000020, KuangWei, 2014-08-19 { TaxPayNature.Visible = true; } else { TaxPayNature.Visible = false; } return(true); }
protected bool loadObject() { obj = new EEmpPersonalInfo(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); DBFilter filter = new DBFilter(); filter.add(new Match("EmpID", obj.EmpID)); filter.add(WebUtils.AddRankFilter(Session, "EmpID", true)); ArrayList empInfoList = EEmpPersonalInfo.db.select(dbConn, filter); if (empInfoList.Count == 0) { return(false); } obj = (EEmpPersonalInfo)empInfoList[0]; DBFilter empUniformFilter = new DBFilter(); empUniformFilter.add(new Match("EmpID", obj.EmpID)); ArrayList empUniformList = EEmpUniform.db.select(dbConn, empUniformFilter); if (empUniformList.Count > 0) { EEmpUniform empUniform = (EEmpUniform)empUniformList[0]; EmpUniformB.Text = empUniform.EmpUniformB; EmpUniformW.Text = empUniform.EmpUniformW; EmpUniformH.Text = empUniform.EmpUniformH; } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); return(true); }
protected bool loadObject() { EYEBPlan obj = new EYEBPlan(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } if (obj.YEBPlanPaymentBaseMethod.Equals(Values.PAYMENT_BASE_RECURRING_BASIC_SALARY)) { YEBPlanRPPaymentCodeID.Visible = true; } else { YEBPlanRPPaymentCodeID.Visible = false; } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); return(true); }
protected bool loadObject() { obj = new EPayrollGroup(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); if (obj.CurrentPayPeriodID > 0) { panelEmployeeList.Visible = true; } else { panelEmployeeList.Visible = false; } return(true); }
protected bool loadObject() { EDatabaseServer obj = new EDatabaseServer(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { if (CurID <= 0) { return(false); } else { Response.Redirect("~/AccessDeny.aspx"); } } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); return(true); }
protected bool loadObject() { EPayrollProrataFormula obj = new EPayrollProrataFormula(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); if (obj.PayFormIsSys == "Y") { toolBar.SaveButton_Visible = false; toolBar.DeleteButton_Visible = false; } if (obj.ReferencePayFormID.Equals(0)) { FormulaType.SelectedValue = "MONTHLYPAYMENT"; ReferencePayFormID.Visible = false; FormulaParameter.Visible = true; } else { FormulaType.SelectedValue = "PAYFORMID"; ReferencePayFormID.Visible = true; FormulaParameter.Visible = false; } return(true); }
protected bool loadObject() { ETaxCompany obj = new ETaxCompany(); bool isNew = WebFormWorkers.loadKeys(ETaxCompany.db, obj, DecryptedRequest); if (!ETaxCompany.db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); ETaxCompany.db.populate(obj, values); binding.toControl(values); if (CurrentTaxFormID <= 0) { if (TaxFormID.Items.Count > 1) { CurrentTaxFormID = int.Parse(TaxFormID.Items[1].Value); } } if (CurrentTaxFormID > 0) { TaxFormID.SelectedValue = CurrentTaxFormID.ToString(); } else if (TaxFormID.Items.Count > 0) { TaxFormID.SelectedIndex = 1; } return(true); }
protected bool loadObject() { obj = new EEmpPositionInfo(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); DBFilter filter = new DBFilter(); filter.add(new Match("EmpID", CurEmpID)); filter.add(WebUtils.AddRankFilter(Session, "EmpID", true)); if (EEmpPersonalInfo.db.count(dbConn, filter) == 0) { if (CurEmpID <= 0) { return(false); } else { HROne.Common.WebUtility.RedirectURLwithEncryptedQueryString(Response, Session, "~/AccessDeny.aspx"); } } if (!db.select(dbConn, obj)) { if (CurID <= 0) { return(false); } else { HROne.Common.WebUtility.RedirectURLwithEncryptedQueryString(Response, Session, "~/AccessDeny.aspx"); } } if (obj.EmpID != CurEmpID) { if (CurID <= 0) { return(false); } else { HROne.Common.WebUtility.RedirectURLwithEncryptedQueryString(Response, Session, "~/AccessDeny.aspx"); } } //if (obj.EmpPosIsRosterTableGroupSupervisor) // EmpPosIsRosterTableGroupSupervisor.Visible = true; //else // EmpPosIsRosterTableGroupSupervisor.Visible = false; Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); return(true); }
protected bool loadObject() { obj = new EEmpWorkExp(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); DBFilter filter = new DBFilter(); filter.add(new Match("EmpID", CurEmpID)); filter.add(WebUtils.AddRankFilter(Session, "EmpID", true)); if (EEmpPersonalInfo.db.count(dbConn, filter) == 0) { if (CurEmpID <= 0) { return(false); } else { HROne.Common.WebUtility.RedirectURLwithEncryptedQueryString(Response, Session, "~/AccessDeny.aspx"); } } if (!db.select(dbConn, obj)) { if (CurID <= 0) { return(false); } else { HROne.Common.WebUtility.RedirectURLwithEncryptedQueryString(Response, Session, "~/AccessDeny.aspx"); } } if (obj.EmpID != CurEmpID) { if (CurID <= 0) { return(false); } else { HROne.Common.WebUtility.RedirectURLwithEncryptedQueryString(Response, Session, "~/AccessDeny.aspx"); } } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); if (EmpWorkExpToYear.Text.Equals("0")) { EmpWorkExpToYear.Text = string.Empty; } return(true); }
// End 0000069, KuangWei, 2014-08-26 protected bool loadObject() { obj = new EUser(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); DBFilter filter = new DBFilter(); filter.add(new Match("UserID", this.CurID)); ArrayList list; list = EUserGroupAccess.db.select(dbConn, filter); foreach (EUserGroupAccess o in list) { CurUserGroups.Add(o.UserGroupID, o); } list = EUserCompany.db.select(dbConn, filter); foreach (EUserCompany o in list) { CurCompanies.Add(o.CompanyID, o); } list = EUserRank.db.select(dbConn, filter); foreach (EUserRank o in list) { CurRanks.Add(o.RankID, o); } // Start 0000069, KuangWei, 2014-08-26 list = EPayrollGroupUsers.db.select(dbConn, filter); foreach (EPayrollGroupUsers o in list) { CurPayGroups.Add(o.PayGroupID, o); } // End 0000069, KuangWei, 2014-08-26 if (WebUtils.GetCurUser(Session).UserID == obj.UserID) { UsersCannotCreateUsersWithMorePermission.Enabled = false; } else { UsersCannotCreateUsersWithMorePermission.Enabled = true; } return(true); }
protected bool loadObject() { obj = new EEmpDependant(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); DBFilter filter = new DBFilter(); filter.add(new Match("EmpID", CurEmpID)); filter.add(WebUtils.AddRankFilter(Session, "EmpID", true)); if (EEmpPersonalInfo.db.count(dbConn, filter) == 0) { if (CurEmpID <= 0) { return(false); } else { HROne.Common.WebUtility.RedirectURLwithEncryptedQueryString(Response, Session, "~/AccessDeny.aspx"); } } if (!db.select(dbConn, obj)) { if (CurID <= 0) { return(false); } else { HROne.Common.WebUtility.RedirectURLwithEncryptedQueryString(Response, Session, "~/AccessDeny.aspx"); } } if (obj.EmpID != CurEmpID) { if (CurID <= 0) { return(false); } else { HROne.Common.WebUtility.RedirectURLwithEncryptedQueryString(Response, Session, "~/AccessDeny.aspx"); } } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); //Start 0000190, Miranda, 2015-04-30 isMedicalSchemeInsured(EmpDependantMedicalSchemeInsured.Checked); //End 0000190, Miranda, 2015-04-30 return(true); }
protected bool loadObject() { obj = new EESSAnnouncement(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); if (!isNew) { ESSAnnouncementCode.Enabled = false; } else { ESSAnnouncementCode.Enabled = true; } string companies = obj.ESSAnnouncementTargetCompanies; string ranks = obj.ESSAnnouncementTargetRanks; string[] list; if (companies != null) { list = companies.Split(new Char[] { ';' }); foreach (string o in list) { if (o != "") { CurCompanies.Add(int.Parse(o), o); } } } if (ranks != null) { list = ranks.Split(new Char[] { ';' }); foreach (string o in list) { if (o != "") { CurRanks.Add(int.Parse(o), o); } } } return(true); }
protected bool loadObject() { EPayrollProrataFormula obj = new EPayrollProrataFormula(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); bool IsSysFormula = obj.PayFormIsSys.Equals("Y"); toolBar.EditButton_Visible = !IsSysFormula; PaymentIsSystemDefault.Visible = IsSysFormula; PaymentIsNotSystemDefault.Visible = !IsSysFormula; toolBar.DeleteButton_Visible = !IsSysFormula; if (obj.ReferencePayFormID.Equals(0)) { UseMonthlyPaymentLabel.Visible = true; UseExistingFormulaLabel.Visible = false; ReferencePayFormID.Visible = false; FormulaParameter.Visible = true; } else { UseMonthlyPaymentLabel.Visible = false; UseExistingFormulaLabel.Visible = true; ReferencePayFormID.Visible = true; FormulaParameter.Visible = false; } if (string.IsNullOrEmpty(obj.PayFormRoundingRule)) { PayFormDecimalPlace.Visible = false; } else if (obj.PayFormRoundingRule.Equals(Values.ROUNDING_RULE_NO_ROUND)) { PayFormDecimalPlace.Visible = false; PayFormDecimalPlaceDesc.Visible = false; } else { PayFormDecimalPlace.Visible = true; PayFormDecimalPlaceDesc.Visible = true; } return(true); }
protected bool loadObject() { obj = new ETaxEmp(); bool isNew = WebFormWorkers.loadKeys(ETaxEmp.db, obj, DecryptedRequest); if (!ETaxEmp.db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); ETaxEmp.db.populate(obj, values); binding.toControl(values); ucTaxation_Emp_Header.CurrentTaxEmpID = obj.TaxEmpID; ETaxForm taxForm = new ETaxForm(); taxForm.TaxFormID = obj.TaxFormID; if (ETaxForm.db.select(dbConn, taxForm)) { TaxFormType = taxForm.TaxFormType; } EEmpPersonalInfo empInfo = new EEmpPersonalInfo(); empInfo.EmpID = obj.EmpID; if (EEmpPersonalInfo.db.select(dbConn, empInfo)) { TaxEmpPlaceAddress.Text = empInfo.EmpResAddr; if (empInfo.EmpResAddrAreaCode.Equals("H")) { TaxEmpPlaceAddress.Text += ", " + "Hong Kong"; } else if (empInfo.EmpResAddrAreaCode.Equals("K")) { TaxEmpPlaceAddress.Text += ", " + "Kowloon"; } else if (empInfo.EmpResAddrAreaCode.Equals("N")) { TaxEmpPlaceAddress.Text += ", " + "New Territories"; } } TaxEmpPlaceNature.Text = "Flat"; TaxEmpPlacePeriodFr.Value = obj.TaxEmpStartDate.ToString("yyyy-MM-dd"); TaxEmpPlacePeriodTo.Value = obj.TaxEmpEndDate.ToString("yyyy-MM-dd"); return(true); }
protected bool loadObject() { EPayrollGroup obj = new EPayrollGroup(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); if (CurPayPeriodID <= 0) { CurPayPeriodID = obj.CurrentPayPeriodID; } PayPeriodID.SelectedValue = CurPayPeriodID.ToString(); ucPayroll_PeriodInfo.CurrentPayPeriodID = CurPayPeriodID; if (CurPayPeriodID > 0) { EPayrollPeriod payPeriod = new EPayrollPeriod(); payPeriod.PayPeriodID = CurPayPeriodID; if (EPayrollPeriod.db.select(dbConn, payPeriod)) { if (payPeriod.PayPeriodStatus.Equals("N")) { PayPeriodEdit.Visible = true; } else { PayPeriodEdit.Visible = false; } } } StatutoryHolidayOptionSection.Visible = !obj.PayGroupIsSkipStatHol; if (string.IsNullOrEmpty(obj.PayGroupFreq) || obj.PayGroupFreq.Equals("M", StringComparison.CurrentCultureIgnoreCase)) { SemiMonthlyDayOptionsRow.Visible = false; } else { SemiMonthlyDayOptionsRow.Visible = true; } return(true); }
protected bool loadObject() { ECommissionAchievementImportBatch obj = new ECommissionAchievementImportBatch(); bool isNew = WebFormWorkers.loadKeys(ECommissionAchievementImportBatch.db, obj, DecryptedRequest); if (!ECommissionAchievementImportBatch.db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); ECommissionAchievementImportBatch.db.populate(obj, values); binding.toControl(values); return(true); }
protected bool loadObject() { obj = new EShiftDutyCode(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); return(true); }
protected bool loadObject() { EMPFSchemeCessationReason obj = new EMPFSchemeCessationReason(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); return(true); }
protected bool loadObject() { EAuthorizationGroup obj = new EAuthorizationGroup(); bool isNew = WebFormWorkers.loadKeys(EAuthorizationGroup.db, obj, DecryptedRequest); if (!EAuthorizationGroup.db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); EAuthorizationGroup.db.populate(obj, values); binding.toControl(values); return(true); }
protected bool loadObject() { obj = new EPayrollPeriod(); bool isNew = WebFormWorkers.loadKeys(db, obj, DecryptedRequest); if (!db.select(dbConn, obj)) { return(false); } Hashtable values = new Hashtable(); db.populate(obj, values); binding.toControl(values); ucPayroll_PeriodInfo.CurrentPayPeriodID = obj.PayPeriodID; return(true); }