protected void btnFindSupervisor_Click(object sender, ImageClickEventArgs e) { try { TextBox empCodeTextBox = (TextBox)ctrlEmpSearch2.FindControl("txtSearch"); string EmpCode = empCodeTextBox.Text; CustomList <HRM_Emp> EmpList = _salaryManager.doSearch(EmpCode); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("EmpCode", "Employee Code"); columns.Add("EmpName", "Employee Name"); columns.Add("StaffCategory", "Staff Category"); columns.Add("Designation", "Designation"); columns.Add("Department", "Department"); columns.Add("JobLocation", "Job Location"); StaticInfo.SearchItem(EmpList, "Emp Info", "SearchSupervisor", SearchColumnConfig.GetColumnConfig(typeof(HRM_Emp), columns), 700, GlobalEnums.enumSearchType.StoredProcedured); } catch (SqlException ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getSqlExceptionMessage(ex)); } catch (Exception ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { StringBuilder sb = new StringBuilder(); if (ddlCompany.SelectedValue != "") { sb.Append("@OrgKey="); sb.Append(ddlCompany.SelectedValue.ToInt()); sb.Append(","); } if (ddlBranch.SelectedValue != "") { sb.Append("@BranchKey="); sb.Append(ddlBranch.SelectedValue.ToInt()); sb.Append(","); } if (ddlDepartment.SelectedValue != "") { sb.Append("@DepartmentKey="); sb.Append(ddlDepartment.SelectedValue.ToInt()); sb.Append(","); } if (ddlGrade.SelectedValue != "") { sb.Append("@GradeKey="); sb.Append(ddlGrade.SelectedValue.ToInt()); sb.Append(","); } if (ddlDesignation.SelectedValue != "") { sb.Append("@DesigKey="); sb.Append(ddlDesignation.SelectedValue.ToInt()); sb.Append(","); } string EmpKey = ""; Session[StaticInfo.SearchArg] = sb; CustomList <HRM_Emp> ProcessedAndUnProcessedList = _manager.doSearch(EmpKey); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("EmpCode", "Employee Code"); columns.Add("EmpName", "Employee Name"); StaticInfo.SearchItem(ProcessedAndUnProcessedList, "Emp Info", "SearchEmployee", SearchColumnConfig.GetColumnConfig(typeof(HRM_Emp), columns), 500, GlobalEnums.enumSearchType.StoredProcedured); //StaticInfo.SearchItem(items, "Emp Info", "SearchEmployee", SearchColumnConfig.GetColumnConfig(typeof(HRM_Emp), columns), 500); } catch (SqlException ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getSqlExceptionMessage(ex)); } catch (Exception ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <CmnTransactionType> items = _manager.GetAllReferenceType(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("TransTypeName", "Transaction Type"); StaticInfo.SearchItem(items, "TransactionType", "SearchTransactionType", FRAMEWORK.SearchColumnConfig.GetColumnConfig(typeof(CmnTransactionType), columns), 500); } catch (Exception ex) { this.ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <CmnDocListFormat> items = _manager.GetAllDocListFormatFind(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("Description", "Description"); StaticInfo.SearchItem(items, "DocListFormat", "SearchCmnDocListFormat", FRAMEWORK.SearchColumnConfig.GetColumnConfig(typeof(CmnDocListFormat), columns), 500); } catch (Exception ex) { this.ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <Gen_Bank> items = manager.GetAllGen_Bank(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("BnakName", "Bank Name"); StaticInfo.SearchItem(items, "Bank", "SearchBank", ASL.Web.Framework.SearchColumnConfig.GetColumnConfig(typeof(Gen_Bank), columns), 500); } catch (Exception ex) { this.ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <HouseKeepingValue> items = manager.GetAllHouseKeepingValue(ddlEntityType.SelectedValue); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("HKName", "HKName"); StaticInfo.SearchItem(items, "HK Entry", "SearchHK", ASL.Web.Framework.SearchColumnConfig.GetColumnConfig(typeof(HouseKeepingValue), columns), 500); } catch (Exception ex) { this.ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <ASL.Hr.DAO.OTSlab> items = manager.GetAllOTSlab(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("OTSlabID", "OT Slab"); StaticInfo.SearchItem(items, "OT Slab", "SearchOTSlab", ASL.Web.Framework.SearchColumnConfig.GetColumnConfig(typeof(ASL.Hr.DAO.OTSlab), columns), 500); } catch (Exception ex) { this.ErrorMessage = ("Error: <br>" + ex.Message + "<br>Call Stack: <br>" + ex.StackTrace); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <ContactInfo> items = manager.GetAllContactInfo(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("Name", "Name"); columns.Add("PhoneNo", "Phone No"); StaticInfo.SearchItem(items, "ContactInfo", "SearchContactInfo", FRAMEWORK.SearchColumnConfig.GetColumnConfig(typeof(ContactInfo), columns), 500); } catch (Exception ex) { this.ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <BonusPolicyMaster> items = manager.GetAllBonusPolicyMaster(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("PolicyCode", "Policy Code"); columns.Add("PolicyName", "Policy Name"); StaticInfo.SearchItem(items, "Bonus Policy", "SearchBonusPolicy", ASL.Web.Framework.SearchColumnConfig.GetColumnConfig(typeof(BonusPolicyMaster), columns), 500); } catch (Exception ex) { this.ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <Contact> items = _manager.GetAllContact(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("Name", "Name"); columns.Add("CardNo", "Card No"); StaticInfo.SearchItem(items, "Contact Info", "SearchContactInfo", ASL.Web.Framework.SearchColumnConfig.GetColumnConfig(typeof(Contact), columns), 500); } catch (Exception ex) { this.ErrorMessage = ("Error: <br>" + ex.Message + "<br>Call Stack: <br>" + ex.StackTrace); } }
protected void btnFindCOA_Click(object sender, ImageClickEventArgs e) { try { CustomList <Acc_COA> items = manager.GetAllCashOrBankCOA(_MenuName); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("COACode", "COA Code"); columns.Add("COAName", "COA Name"); StaticInfo.SearchItem(items, "COA", "SearchCOA", FRAMEWORK.SearchColumnConfig.GetColumnConfig(typeof(Acc_COA), columns), 500); } catch (Exception ex) { ((PageBase)this.Page).ErrorMessage = ("Error: <br>" + ex.Message + "<br>Call Stack: <br>" + ex.StackTrace); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <Users> items = manager.GetAllUsers(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("UserCode", "User Code"); columns.Add("Name", "Name"); StaticInfo.SearchItem(items, "User Info", "SearchUser", FRAMEWORK.SearchColumnConfig.GetColumnConfig(typeof(Users), columns), 500); EnableAllControls(true); } catch (Exception ex) { this.ErrorMessage = ("Error: <br>" + ex.Message + "<br>Call Stack: <br>" + ex.StackTrace); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <Group> items = manager.GetAllGroup(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("GroupCode", "Group Code"); columns.Add("GroupName", "Group Name"); StaticInfo.SearchItem(items, "Group Info", "SearchGroup", ASL.Web.Framework.SearchColumnConfig.GetColumnConfig(typeof(Group), columns), 500); EnableAllControls(true); } catch (Exception ex) { this.ErrorMessage = ("Error: <br>" + ex.Message + "<br>Call Stack: <br>" + ex.StackTrace); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { //CustomList<CmnTransactionReference> items = _manager.GetAllReferenceType(); CustomList <CmnDocListTableMapping> items = _manager.GetAllCmnTransactionReferenceFind(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("DisplayMember", "Display Member"); // columns.Add("TypeName", "TypeName"); StaticInfo.SearchItem(items, "Search DocListID", "SearchCmnDocListTableMapping", FRAMEWORK.SearchColumnConfig.GetColumnConfig(typeof(CmnDocListTableMapping), columns), 500); } catch (Exception ex) { this.ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <ItemMaster> items = manager.FindAllItemMaster(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("ItemCode", "Item Code"); columns.Add("GroupName", "Group"); columns.Add("SubGroupName", "Sub Group"); columns.Add("ItemDescription", "Item Description"); StaticInfo.SearchItem(items, "ItemMaster", "SearchItem", FRAMEWORK.SearchColumnConfig.GetColumnConfig(typeof(ItemMaster), columns), 600); } catch (Exception ex) { this.ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <CmnWorkFlowMaster> items = _manager.GetAllCmnWorkFlowMasterFind(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("DocName", "Menu Name"); columns.Add("Sequence", "Sequence"); columns.Add("CostCenter", "CostCenter"); columns.Add("Department", "Department"); StaticInfo.SearchItem(items, "Work Flow", "SearchWF", FRAMEWORK.SearchColumnConfig.GetColumnConfig(typeof(CmnWorkFlowMaster), columns), 600); } catch (Exception ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <ASL.Hr.DAO.ShiftPlan> items = manager.GetAllShiftPlan(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("ShiftID", "Shift ID"); columns.Add("Description", "Description"); columns.Add("ShiftIntime", "Shift in time"); columns.Add("ShiftOutTime", "Shift out time"); StaticInfo.SearchItem(items, "Shift Plan", "SearchShiftPlan", ASL.Web.Framework.SearchColumnConfig.GetColumnConfig(typeof(ASL.Hr.DAO.ShiftPlan), columns), 500); } catch (Exception ex) { this.ErrorMessage = ("Error: <br>" + ex.Message + "<br>Call Stack: <br>" + ex.StackTrace); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <AccReportConfigurationHead> items = hCM.GetAllAccReportConfigurationHead(Convert.ToInt32(ddlReportType.SelectedValue)); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("HeadCategoryName", "Head Category"); columns.Add("HeadName", "HeadName"); columns.Add("Sequence", "Sequence"); columns.Add("OperationOperator", "Operation Operator"); StaticInfo.SearchItem(items, "Report Configuration", "SearchAccReportConfigurationHead", FRAMEWORK.SearchColumnConfig.GetColumnConfig(typeof(AccReportConfigurationHead), columns), 500); } catch (Exception ex) { this.ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <POMaster> items = manager.GetAllPOMasterFind(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("CustomCode", "Requisition No"); columns.Add("PODate", "PO Date"); columns.Add("Description", "Note"); columns.Add("CostCenter", "CostCenter"); columns.Add("Department", "Department"); StaticInfo.SearchItem(items, "POMaster", "SearchPO", FRAMEWORK.SearchColumnConfig.GetColumnConfig(typeof(POMaster), columns), 600); } catch (Exception ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <SalaryRuleBackup> items = manager.GetAllSalaryRuleBackup(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("SalaryRuleCode", "Salary Rule Code"); StaticInfo.SearchItem(items, "Shift Rule Info", "SearchSalaryRule", ASL.Web.Framework.SearchColumnConfig.GetColumnConfig(typeof(SalaryRuleBackup), columns), 500); } catch (SqlException ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getSqlExceptionMessage(ex)); } catch (Exception ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <CmnBankAccount> items = manager.GetAllCmnBankAccount(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("AccountName", "Account Name"); columns.Add("AccountNo", "Account No"); columns.Add("BranchName", "Branch"); StaticInfo.SearchItem(items, "Bank Account", "SearchBankAccount", FRAMEWORK.SearchColumnConfig.GetColumnConfig(typeof(CmnBankAccount), columns), 500); } catch (Exception ex) { this.ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <LoanDefination> items = _manager.GetAllLoanDefination(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("LoanCode", "Loan Code"); StaticInfo.SearchItem(items, "Loan", "SearchLoan", ASL.Web.Framework.SearchColumnConfig.GetColumnConfig(typeof(LoanDefination), columns), 500); } catch (SqlException ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getSqlExceptionMessage(ex)); } catch (Exception ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <ASL.Hr.DAO.OtherSalaryRule> items = manager.GetAllOtherSalaryRule(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("RuleName", "Role Name"); StaticInfo.SearchItem(items, "Other Salary Role", "SearchOtherSalaryRole", ASL.Web.Framework.SearchColumnConfig.GetColumnConfig(typeof(ASL.Hr.DAO.OtherSalaryRule), columns), 500); } catch (SqlException ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getSqlExceptionMessage(ex)); } catch (Exception ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { //FormUtil.ClearForm(this, FormClearOptions.ClearAll, false); InitializeSession(); CustomList <Acc_Voucher> items = manager.GetAllAcc_Voucher(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("VoucherNo", "Voucher No"); columns.Add("VoucherDate", "Voucher Date"); StaticInfo.SearchItem(items, "PF Voucher", "SearchPFVoucher", ASL.Web.Framework.SearchColumnConfig.GetColumnConfig(typeof(Acc_Voucher), columns), 500); } catch (Exception ex) { this.ErrorMessage = ("Error: <br>" + ex.Message + "<br>Call Stack: <br>" + ex.StackTrace); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { StringBuilder sb = new StringBuilder(); Session[StaticInfo.SearchArg] = sb; string empKey = Request.QueryString.Get("EmpKey"); CustomList <HRM_Emp> ProcessedAndUnProcessedList = new CustomList <HRM_Emp>(); if (empKey.IsNullOrEmpty()) { ProcessedAndUnProcessedList = _salaryManager.doSearch(empKey); } else { ProcessedAndUnProcessedList = _empManager.GetReportees(Convert.ToInt64(empKey)); } Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("EmpCode", "Employee Code"); columns.Add("EmpName", "Employee Name"); columns.Add("Staff Category", "Staff Category"); columns.Add("Designation", "Designation"); columns.Add("Department", "Department"); columns.Add("JobLocation", "Job Location"); //columns.Add("LOB","LOB"); columns.Add("SupervisorName", "SupervisorName"); columns.Add("EmpStatus", "EmpStatus"); StaticInfo.SearchItem(ProcessedAndUnProcessedList, "Emp Info", "SearchEmployee", SearchColumnConfig.GetColumnConfig(typeof(HRM_Emp), columns), 750, GlobalEnums.enumSearchType.StoredProcedured); //StaticInfo.SearchItem(items, "Emp Info", "SearchEmployee", SearchColumnConfig.GetColumnConfig(typeof(HRM_Emp), columns), 500); } catch (SqlException ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getSqlExceptionMessage(ex)); } catch (Exception ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <HRM_Emp> EmpList = manager.doSearch(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("EmpCode", "Employee Code"); columns.Add("EmpName", "Employee Name"); StaticInfo.SearchItem(EmpList, "Emp Info", "SearchEmployee", SearchColumnConfig.GetColumnConfig(typeof(HRM_Emp), columns), 500, GlobalEnums.enumSearchType.StoredProcedured); } catch (SqlException ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getSqlExceptionMessage(ex)); } catch (Exception ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { CustomList <StockTransactionMaster> items = manager.GetAllStockTransactionMaster(TransType); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("CustomCode", "Custom Code"); columns.Add("TransDate", "Transaction Date"); columns.Add("Description", "Note"); columns.Add("FromBranch", "From Branch"); columns.Add("FromCostCenter", "From CostCenter"); columns.Add("ToBranch", "To Branch"); columns.Add("ToCostCenter", "To CostCenter"); StaticInfo.SearchItem(items, "Stock Transaction", "SearchStockTransaction", FRAMEWORK.SearchColumnConfig.GetColumnConfig(typeof(StockTransactionMaster), columns), 600); } catch (Exception ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFindSupervisor_Click(object sender, ImageClickEventArgs e) { try { string EmployeeCode = ((TextBox)this.Header1.FindControl("txtSearch")).Text.ToString(); CustomList <HRM_Emp> EmpList = _salaryManager.doSearch(EmployeeCode); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("EmpCode", "Employee Code"); columns.Add("EmpName", "Employee Name"); StaticInfo.SearchItem(EmpList, "Emp Info", "SearchSupervisor", SearchColumnConfig.GetColumnConfig(typeof(HRM_Emp), columns), 500, GlobalEnums.enumSearchType.StoredProcedured); } catch (SqlException ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getSqlExceptionMessage(ex)); } catch (Exception ex) { ((PageBase)this.Page).ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnFind_Click(object sender, ImageClickEventArgs e) { try { InitializeSession(); CustomList <SECURITY.DAO.SecurityRule> items = manager.GettblSecurityRuleForSearch(); Dictionary <string, string> columns = new Dictionary <string, string>(); columns.Add("SecurityRuleCode", "Security Rule Code"); columns.Add("SecurityRuleName", "Security Rule Name"); //columns.Add("CustomerDisplay", "Customer"); //columns.Add("SecurityRuleDescription", "Security Rule Description"); //columns.Add("ApplicationID", "Application ID"); //columns.Add("CompanyID", "Company ID"); StaticInfo.SearchItem(items, "Security Rule Info", "SearchSecurityRule", FRAMEWORK.SearchColumnConfig.GetColumnConfig(typeof(SECURITY.DAO.SecurityRule), columns), 500); EnableAllControls(true); } catch (Exception ex) { this.ErrorMessage = ("Error: <br>" + ex.Message + "<br>Call Stack: <br>" + ex.StackTrace); } }