zhouger 5 месяцев назад
Родитель
Сommit
0ad36b464e

+ 20 - 20
src/main/java/fi/em/formPlugin/SalaryFileUploadEditPlugin.java

@@ -529,10 +529,10 @@ public class SalaryFileUploadEditPlugin extends AbstractBillPlugIn implements Up
         //薪酬明细(一般员工)
         if (billtype.equals("nckd_staffentry")) {
             //获取单据的字段名
-             flag=headList.get(0).getCell(9).getStringCellValue();
-            if (!flag.equals("基本工资(1)")) {
-                throw new KDBizException("上传的文件格式有误,请检查!");
-            }
+//             flag=headList.get(0).getCell(9).getStringCellValue();
+//            if (!flag.equals("基本工资(1)")) {
+//                throw new KDBizException("上传的文件格式有误,请检查!");
+//            }
             for (int i=0;i<rowList.size();i++) {
                 //校验金额字段
                 for (int j=9;j<rowList.get(i).getLastCellNum();j++) {
@@ -549,10 +549,10 @@ public class SalaryFileUploadEditPlugin extends AbstractBillPlugIn implements Up
         }
         //薪酬明细(内退)
         if (billtype.equals("nckd_earlyretiredentry")) {
-            flag=headList.get(0).getCell(9).getStringCellValue();
-            if (!flag.equals("内退员工基本工资(1)")) {
-                throw new KDBizException("上传的文件格式有误,请检查!");
-            }
+//            flag=headList.get(0).getCell(9).getStringCellValue();
+//            if (!flag.equals("内退员工基本工资(1)")) {
+//                throw new KDBizException("上传的文件格式有误,请检查!");
+//            }
             for (int i=0;i<rowList.size();i++) {
                 //校验金额字段
                 for (int j=9;j<rowList.get(i).getLastCellNum();j++) {
@@ -569,10 +569,10 @@ public class SalaryFileUploadEditPlugin extends AbstractBillPlugIn implements Up
         }
         //薪酬明细(退休)
         if (billtype.equals("nckd_retireentry")) {
-            flag=headList.get(0).getCell(9).getStringCellValue();
-            if (!flag.equals("退休员工生活补贴(1)")) {
-                throw new KDBizException("上传的文件格式有误,请检查!");
-            }
+//            flag=headList.get(0).getCell(9).getStringCellValue();
+//            if (!flag.equals("退休员工生活补贴(1)")) {
+//                throw new KDBizException("上传的文件格式有误,请检查!");
+//            }
             for (int i=0;i<rowList.size();i++) {
                 //校验金额字段
                 for (int j=9;j<rowList.get(i).getLastCellNum();j++) {
@@ -589,10 +589,10 @@ public class SalaryFileUploadEditPlugin extends AbstractBillPlugIn implements Up
         }
         //人力薪酬
         if (billtype.equals("nckd_salaryentry")) {
-            flag=headList.get(0).getCell(9).getStringCellValue();
-            if (!flag.equals("级别工资")) {
-                throw new KDBizException("上传的文件格式有误,请检查!");
-            }
+//            flag=headList.get(0).getCell(9).getStringCellValue();
+//            if (!flag.equals("级别工资")) {
+//                throw new KDBizException("上传的文件格式有误,请检查!");
+//            }
             for (int i=0;i<rowList.size();i++) {
                 //校验金额字段
                 for (int j=9;j<rowList.get(i).getLastCellNum();j++) {
@@ -610,10 +610,10 @@ public class SalaryFileUploadEditPlugin extends AbstractBillPlugIn implements Up
         //人力薪酬(内退)
         if (billtype.equals("nckd_salaryentryre"))
         {
-            flag=headList.get(0).getCell(9).getStringCellValue();
-            if (!flag.equals("内退生活费")) {
-                throw new KDBizException("上传的文件格式有误,请检查!");
-            }
+//            flag=headList.get(0).getCell(9).getStringCellValue();
+//            if (!flag.equals("内退生活费")) {
+//                throw new KDBizException("上传的文件格式有误,请检查!");
+//            }
             for (int i=0;i<rowList.size();i++) {
                 //校验金额字段
                 for (int j=9;j<rowList.get(i).getLastCellNum();j++) {

+ 20 - 20
src/main/java/fi/em/formPlugin/SalaryFileUploadEditPluginCp.java

@@ -529,10 +529,10 @@ public class SalaryFileUploadEditPluginCp extends AbstractBillPlugIn implements
         //薪酬明细(一般员工)
         if (billtype.equals("nckd_staffentry")) {
             //获取单据的字段名
-             flag=headList.get(0).getCell(9).getStringCellValue();
-            if (!flag.equals("基本工资(1)")) {
-                throw new KDBizException("上传的文件格式有误,请检查!");
-            }
+//             flag=headList.get(0).getCell(9).getStringCellValue();
+//            if (!flag.equals("基本工资(1)")) {
+//                throw new KDBizException("上传的文件格式有误,请检查!");
+//            }
             for (int i=0;i<rowList.size();i++) {
                 //校验金额字段
                 for (int j=9;j<rowList.get(i).getLastCellNum();j++) {
@@ -549,10 +549,10 @@ public class SalaryFileUploadEditPluginCp extends AbstractBillPlugIn implements
         }
         //薪酬明细(内退)
         if (billtype.equals("nckd_earlyretiredentry")) {
-            flag=headList.get(0).getCell(9).getStringCellValue();
-            if (!flag.equals("内退员工基本工资(1)")) {
-                throw new KDBizException("上传的文件格式有误,请检查!");
-            }
+//            flag=headList.get(0).getCell(9).getStringCellValue();
+//            if (!flag.equals("内退员工基本工资(1)")) {
+//                throw new KDBizException("上传的文件格式有误,请检查!");
+//            }
             for (int i=0;i<rowList.size();i++) {
                 //校验金额字段
                 for (int j=9;j<rowList.get(i).getLastCellNum();j++) {
@@ -569,10 +569,10 @@ public class SalaryFileUploadEditPluginCp extends AbstractBillPlugIn implements
         }
         //薪酬明细(退休)
         if (billtype.equals("nckd_retireentry")) {
-            flag=headList.get(0).getCell(9).getStringCellValue();
-            if (!flag.equals("退休员工生活补贴(1)")) {
-                throw new KDBizException("上传的文件格式有误,请检查!");
-            }
+//            flag=headList.get(0).getCell(9).getStringCellValue();
+//            if (!flag.equals("退休员工生活补贴(1)")) {
+//                throw new KDBizException("上传的文件格式有误,请检查!");
+//            }
             for (int i=0;i<rowList.size();i++) {
                 //校验金额字段
                 for (int j=9;j<rowList.get(i).getLastCellNum();j++) {
@@ -589,10 +589,10 @@ public class SalaryFileUploadEditPluginCp extends AbstractBillPlugIn implements
         }
         //人力薪酬
         if (billtype.equals("nckd_salaryentry")) {
-            flag=headList.get(0).getCell(9).getStringCellValue();
-            if (!flag.equals("级别工资")) {
-                throw new KDBizException("上传的文件格式有误,请检查!");
-            }
+//            flag=headList.get(0).getCell(9).getStringCellValue();
+//            if (!flag.equals("级别工资")) {
+//                throw new KDBizException("上传的文件格式有误,请检查!");
+//            }
             for (int i=0;i<rowList.size();i++) {
                 //校验金额字段
                 for (int j=9;j<rowList.get(i).getLastCellNum();j++) {
@@ -610,10 +610,10 @@ public class SalaryFileUploadEditPluginCp extends AbstractBillPlugIn implements
         //人力薪酬(内退)
         if (billtype.equals("nckd_salaryentryre"))
         {
-            flag=headList.get(0).getCell(9).getStringCellValue();
-            if (!flag.equals("内退生活费")) {
-                throw new KDBizException("上传的文件格式有误,请检查!");
-            }
+//            flag=headList.get(0).getCell(9).getStringCellValue();
+//            if (!flag.equals("内退生活费")) {
+//                throw new KDBizException("上传的文件格式有误,请检查!");
+//            }
             for (int i=0;i<rowList.size();i++) {
                 //校验金额字段
                 for (int j=9;j<rowList.get(i).getLastCellNum();j++) {