示例#1
0
 public V_EmployeeAddsumView GetEmployeeAddSumViewByID(string ID)
 {
     using (EmployeeAddSumBLL bll = new EmployeeAddSumBLL())
     {
         return bll.GetEmployeeAddSumViewByID(ID);
     }
 }
示例#2
0
 public List<T_HR_EMPLOYEEADDSUM> GetEmployeeAddSumWithPaging(int pageIndex, int pageSize, string sort, string filterString, string[] paras, ref int pageCount, DateTime starttime, DateTime endtime, string userID, string CheckState, int orgtype, string orgid)
 {
     using (EmployeeAddSumBLL bll = new EmployeeAddSumBLL())
     {
         
         IQueryable<T_HR_EMPLOYEEADDSUM> q = bll.QueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, starttime, endtime, userID, CheckState, orgtype, orgid);
         if (q != null)
         {
             return q.Count() > 0 ? q.ToList() : null;
         }
         else
         {
             return null;
         }
     }
 }
示例#3
0
 public int EmployeeAddSumByEmployeeIDDelete(string[] employeeIDs, string year, string month)
 {
     using (EmployeeAddSumBLL bll = new EmployeeAddSumBLL())
     {
         return bll.EmployeeAddSumByEmployeeIDDelete(employeeIDs, year, month);
     }
 }
示例#4
0
 public T_HR_EMPLOYEEADDSUM GetEmployeeAddSumByID(string ID)
 {
     using (EmployeeAddSumBLL bll = new EmployeeAddSumBLL())
     {
         return bll.GetEmployeeAddSumByID(ID);
     }
 }
示例#5
0
 public bool EmployeeAddSumDelete(string[] IDs)
 {
     using (EmployeeAddSumBLL bll = new EmployeeAddSumBLL())
     {
         int rslt = bll.EmployeeAddSumDelete(IDs);
         return (rslt > 0);
     }
 }
示例#6
0
 public void EmployeeAddSumUpdate(T_HR_EMPLOYEEADDSUM obj)
 {
     using (EmployeeAddSumBLL bll = new EmployeeAddSumBLL())
     {
         bll.EmployeeAddSumUpdate(obj);
     }
 }
示例#7
0
 public bool EmployeeAddSumLotsofADD(List<T_HR_EMPLOYEEADDSUM> objs)
 {
     using (EmployeeAddSumBLL bll = new EmployeeAddSumBLL())
     {
         return bll.EmployeeAddSumLotsofADD(objs);
     }
 }
示例#8
0
        public List<T_HR_EMPLOYEEADDSUM> ImportEmployeeAddSumFromExcelForShow(UploadFileModel UploadFile, Dictionary<string, string> paras, ref string strMsg, bool IsPreview)
        {
            List<T_HR_EMPLOYEEADDSUM> ListResult = new List<T_HR_EMPLOYEEADDSUM>();
            try
            {
                Tracer.Debug("import start" + paras.Count.ToString());
                string strPath = string.Empty;
                SaveFile(UploadFile, out strPath);
                string strPhysicalPath = HttpContext.Current.Server.MapPath(strPath);

                using (EmployeeAddSumBLL bll = new EmployeeAddSumBLL())
                {
                    ListResult = bll.ImportEmployeeAddSumFromExcelForShow(strPhysicalPath, paras, ref strMsg,IsPreview);
                }
                Tracer.Debug("import sucess");
            }
            catch (Exception ex)
            {
                Tracer.Debug("ImportClockInRdListFromExcelWS:" + ex.Message);
            }
            return ListResult;
        }
示例#9
0
 public List<V_RESIGN> GetResign(int pageIndex, int pageSize, string sort, string filterString, string[] paras, ref int pageCount, DateTime starttime, DateTime endtime, string userID, int orgtype, string orgid)
 {
     using (EmployeeAddSumBLL bll = new EmployeeAddSumBLL())
     {
         IQueryable<V_RESIGN> q = bll.GetResign(pageIndex, pageSize, sort, filterString, paras, ref pageCount, starttime, endtime, userID, orgtype, orgid);
         return q.Count() > 0 ? q.ToList() : null;
     }
 }