protected void Page_Load(object sender, EventArgs e) { if (IsPostBack.IsFalse()) { InitializeSession(); txtApproveBy_nc.Text = Enc.Decrypt(CurrentUserSession.UserName, ASL.STATIC.StaticInfo.encString); } else { Page.ClientScript.GetPostBackEventReference(this, String.Empty); String eventTarget = Request["__EVENTTARGET"].IsNullOrEmpty() ? String.Empty : Request["__EVENTTARGET"]; if (eventTarget == "SearchSalaryRule") { SalaryRuleBackup searchSalaryRule = Session[ASL.STATIC.StaticInfo.SearchSessionVarName] as SalaryRuleBackup; if (searchSalaryRule.IsNotNull()) { txtSalaryRuleID.Text = searchSalaryRule.SalaryRuleCode; grdSalaryRuleList = manager.GetAllSalaryRuleBackup(searchSalaryRule.SalaryRuleCode); if (grdSalaryRuleList.Count != 0) { chkApproved.Checked = grdSalaryRuleList[0].IsApproved; txtApprovalDate.Text = grdSalaryRuleList[0].ApprovalDate == DateTime.MinValue ? string.Empty : grdSalaryRuleList[0].ApprovalDate.ToShortDateString(); txtApproveBy_nc.Text = grdSalaryRuleList[0].ApproveBy; } } } } }
public CustomList <SalaryRuleBackup> GetAllSalaryRuleBackup(string salaryRuleCode) { return(SalaryRuleBackup.GetAllSalaryRuleBackup(salaryRuleCode)); }
public CustomList <SalaryRuleBackup> GetAllSalaryRuleBackup() { return(SalaryRuleBackup.doSearch("")); }
public CustomList <SalaryRuleBackup> GetAllSalaryRuleBackup() { return(SalaryRuleBackup.GetAllSalaryRuleBackup()); }