|
@@ -529,10 +529,10 @@ public class SalaryFileUploadEditPlugin extends AbstractBillPlugIn implements Up
|
|
//薪酬明细(一般员工)
|
|
//薪酬明细(一般员工)
|
|
if (billtype.equals("nckd_staffentry")) {
|
|
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 i=0;i<rowList.size();i++) {
|
|
//校验金额字段
|
|
//校验金额字段
|
|
for (int j=9;j<rowList.get(i).getLastCellNum();j++) {
|
|
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")) {
|
|
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 i=0;i<rowList.size();i++) {
|
|
//校验金额字段
|
|
//校验金额字段
|
|
for (int j=9;j<rowList.get(i).getLastCellNum();j++) {
|
|
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")) {
|
|
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 i=0;i<rowList.size();i++) {
|
|
//校验金额字段
|
|
//校验金额字段
|
|
for (int j=9;j<rowList.get(i).getLastCellNum();j++) {
|
|
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")) {
|
|
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 i=0;i<rowList.size();i++) {
|
|
//校验金额字段
|
|
//校验金额字段
|
|
for (int j=9;j<rowList.get(i).getLastCellNum();j++) {
|
|
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"))
|
|
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 i=0;i<rowList.size();i++) {
|
|
//校验金额字段
|
|
//校验金额字段
|
|
for (int j=9;j<rowList.get(i).getLastCellNum();j++) {
|
|
for (int j=9;j<rowList.get(i).getLastCellNum();j++) {
|