コード例 #1
0
ファイル: PersonnelService.cs プロジェクト: JuRogn/OA
        public List<T_HR_PENSIONDETAIL> ImportClockInRdListFromExcelForShow(UploadFileModel UploadFile, Dictionary<string, string> paras, ref string strMsg)
        {
            List<T_HR_PENSIONDETAIL> ListResult = new List<T_HR_PENSIONDETAIL>();
            try
            {
                Tracer.Debug("import start" + paras.Count.ToString());
                string strPath = string.Empty;
                SaveFileReturnFilePath(UploadFile, out strPath);
                string strPhysicalPath = HttpContext.Current.Server.MapPath(strPath);

                using (PensionDetailBLL bll = new PensionDetailBLL())
                {
                    ListResult = bll.ImportPensionByImportExcelForShow(strPhysicalPath, paras, ref strMsg);
                }
                Tracer.Debug("import sucess");
            }
            catch (Exception ex)
            {
                Tracer.Debug("ImportClockInRdListFromExcelWS:" + ex.Message);
            }
            return ListResult;
        }
コード例 #2
0
ファイル: PersonnelService.cs プロジェクト: JuRogn/OA
        public bool BatchAddPensionDetail(List<T_HR_PENSIONDETAIL> listPension, Dictionary<string, string> paras, ref string StrMsg)
        {
            bool IsResult = false;
            try
            {
                Tracer.Debug("导入社保的数量:" + listPension.Count().ToString());
                Tracer.Debug("开始导入社保时间:" + System.DateTime.Now.ToString());


                using (PensionDetailBLL bll = new PensionDetailBLL())
                {
                    IsResult = bll.BatchAddPensionDetail(listPension, paras, ref StrMsg);
                }
                Tracer.Debug("import end");
                Tracer.Debug("社保导入结束时间:" + System.DateTime.Now.ToString());
            }
            catch (Exception ex)
            {
                Tracer.Debug("ImportClockInRdListFromExcelWS:" + ex.Message);
            }
            return IsResult;
        }
コード例 #3
0
ファイル: PersonnelService.cs プロジェクト: JuRogn/OA
        public void ImportClockInRdListFromExcel(UploadFileModel UploadFile, Dictionary<string, string> paras, ref string strMsg)
        {
            try
            {
                Tracer.Debug("import start" + paras.Count.ToString());
                string strPath = string.Empty;
                SaveFileReturnFilePath(UploadFile, out strPath);
                string strPhysicalPath = HttpContext.Current.Server.MapPath(strPath);

                using (PensionDetailBLL bll = new PensionDetailBLL())
                {
                    bll.ImportPensionByImportExcel(strPhysicalPath, paras, ref strMsg);
                }
                Tracer.Debug("import sucess");
            }
            catch (Exception ex)
            {
                Tracer.Debug("ImportClockInRdListFromExcelWS:" + ex.Message);
            }
        }
コード例 #4
0
ファイル: PersonnelService.cs プロジェクト: JuRogn/OA
 public bool PensionDetailDelete(string[] pensionDetailIDs)
 {
     using (PensionDetailBLL bll = new PensionDetailBLL())
     {
         int rslt = bll.PensionDetailDelete(pensionDetailIDs);
         return (rslt > 0);
     }
 }
コード例 #5
0
ファイル: PersonnelService.cs プロジェクト: JuRogn/OA
 public byte[] ExportPensionDetailReport(string sort, string filterString, object[] paras, string userID, string CompanyID, string StrYear, string StrMonth)
 {
     using (PensionDetailBLL bll = new PensionDetailBLL())
     {
         return bll.ExportPensionDetailReport(sort, filterString, paras, userID, CompanyID, StrYear, StrMonth);
     }
 }
コード例 #6
0
ファイル: PersonnelService.cs プロジェクト: JuRogn/OA
 public List<T_HR_PENSIONDETAIL> PensionDetailPaging(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string userID)
 {
     using (PensionDetailBLL bll = new PensionDetailBLL())
     {
         IQueryable<T_HR_PENSIONDETAIL> q = bll.PensionDetailPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userID);
         return q.Count() > 0 ? q.ToList() : null;
     }
 }
コード例 #7
0
ファイル: SalaryService.svc.cs プロジェクト: fuhongliang/oa
 public byte[] ExportEmployeePensionReports( string sort, string filterString, IList<object> paras, string userID,string CompanyID,DateTime Dt)
 {
     using (PensionDetailBLL bll = new PensionDetailBLL())
     {
         return bll.ExportEmployeePensionReports(sort, filterString, paras, userID, CompanyID,Dt);
     }
 }