Ver código fonte

工资条导入表格必填验证标识减少

工资条导入顺序出错
新疆警官学校中职
ndbs 1 ano atrás
pai
commit
09f4457883
2 arquivos alterados com 3 adições e 3 exclusões
  1. BIN
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/excel/SalarySheetImport.xls
  2. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleService.cs

BIN
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/excel/SalarySheetImport.xls Ver arquivo


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleService.cs Ver arquivo

@@ -364,7 +364,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
try
{
//检测是否有空值
if (dr[1].ToString() == "" || dr[3].ToString() == "" || dr[4].ToString() == "" || dr[5].ToString() == "" || dr[6].ToString() == "" || dr[26].ToString() == "" || dr[35].ToString() == "")
if (dr[1].ToString() == "" || dr[3].ToString() == "" || dr[6].ToString() == "" || dr[26].ToString() == "" || dr[35].ToString() == "")
{
throw (new Exception("行内必填项数据有空值,不能为空!"));
}
@@ -421,8 +421,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
OccupationalAnnuities = dr[29].ToDecimalOrNull(),
MedicalInsurance = dr[30].ToDecimalOrNull(),
UnemploymentInsurance = dr[31].ToDecimalOrNull(),
PersonalIncomeTax = dr[32].ToDecimalOrNull(),
LaborUnionWage = dr[33].ToDecimalOrNull(),
LaborUnionWage = dr[32].ToDecimalOrNull(),
PersonalIncomeTax = dr[33].ToDecimalOrNull(),
Other = dr[34].ToDecimalOrNull(),
NetCombined = dr[35].ToDecimalOrNull(),
IssueMonth = dr[36].ToInt(),


Carregando…
Cancelar
Salvar