public T_HR_EMPLOYEEINSURANCE GetEmployeeInsuranceByID(string employInsuranceID) { using (EmployeeInsuranceBLL bll = new EmployeeInsuranceBLL()) { return bll.GetEmployeeInsuranceByID(employInsuranceID); } }
public void EmployeeInsuranceUpdate(T_HR_EMPLOYEEINSURANCE entity, ref string strMsg) { using (EmployeeInsuranceBLL bll = new EmployeeInsuranceBLL()) { bll.EmployeeInsuranceUpdate(entity, ref strMsg); } }
public bool EmployeeInsuranceDelete(string[] employInsuranceIDs) { using (EmployeeInsuranceBLL bll = new EmployeeInsuranceBLL()) { int rslt = bll.EmployeeInsuranceDelete(employInsuranceIDs); return (rslt > 0); } }
public List<T_HR_EMPLOYEEINSURANCE> EmployeeInsurancePaging(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string strCheckState, string userID) { using (EmployeeInsuranceBLL bll = new EmployeeInsuranceBLL()) { IQueryable<T_HR_EMPLOYEEINSURANCE> q = bll.EmployeeInsurancePaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, strCheckState, userID); if (q != null) { return q.Count() > 0 ? q.ToList() : null; } else { return null; } } // return q.Count() > 0 ? q.ToList() : null; }