修改模板
This commit is contained in:
@@ -80,9 +80,9 @@ public class DataImport
|
|||||||
" kshmc,\n" +
|
" kshmc,\n" +
|
||||||
" zhjywybm,\n" +
|
" zhjywybm,\n" +
|
||||||
" zhjywybmm,\n" +
|
" zhjywybmm,\n" +
|
||||||
" chshdm,\n" +
|
//" chshdm,\n" +
|
||||||
" khmc,\n" +
|
//" khmc,\n" +
|
||||||
" chph,\n" +
|
//" chph,\n" +
|
||||||
" khjl,\n" +
|
" khjl,\n" +
|
||||||
" khjllx,\n" +
|
" khjllx,\n" +
|
||||||
" jjbj,\n" +
|
" jjbj,\n" +
|
||||||
@@ -96,9 +96,9 @@ public class DataImport
|
|||||||
" ?,\n" +
|
" ?,\n" +
|
||||||
" ?,\n" +
|
" ?,\n" +
|
||||||
" ?,\n" +
|
" ?,\n" +
|
||||||
" ?,\n" +
|
//" ?,\n" +
|
||||||
" ?,\n" +
|
//" ?,\n" +
|
||||||
" ?,\n" +
|
//" ?,\n" +
|
||||||
" 0,\n" +
|
" 0,\n" +
|
||||||
" 0,\n" +
|
" 0,\n" +
|
||||||
" 1,\n" +
|
" 1,\n" +
|
||||||
@@ -117,15 +117,15 @@ public class DataImport
|
|||||||
|
|
||||||
while ( row != null )
|
while ( row != null )
|
||||||
{
|
{
|
||||||
policyNo = row.getCell( 1 ).getStringCellValue().trim();
|
policyNo = row.getCell( 0 ).getStringCellValue().trim();
|
||||||
operatorCode = getStringValueFromHSSFCell( row.getCell( 4 ) );
|
operatorCode = getStringValueFromHSSFCell( row.getCell( 1 ) );
|
||||||
|
|
||||||
//判断一下是不是空的单元格
|
//判断一下是不是空的单元格
|
||||||
if ( policyNo.length() == 0 || operatorCode.length() == 0 )
|
if ( policyNo.length() == 0 || operatorCode.length() == 0 )
|
||||||
{
|
{
|
||||||
importResult = importResult + "第" + rowCount + "行数据为空。<br>";
|
importResult = importResult + "第" + rowCount + "行数据为空。<br>";
|
||||||
|
|
||||||
isSuccess = false;
|
//isSuccess = false;
|
||||||
}
|
}
|
||||||
else //不是空单元格,进行处理
|
else //不是空单元格,进行处理
|
||||||
{
|
{
|
||||||
@@ -142,9 +142,9 @@ public class DataImport
|
|||||||
ifxStmt.setString( 5, staff.getSectionOfficeName() );
|
ifxStmt.setString( 5, staff.getSectionOfficeName() );
|
||||||
ifxStmt.setString( 6, staff.getDepartmentCode() );
|
ifxStmt.setString( 6, staff.getDepartmentCode() );
|
||||||
ifxStmt.setString( 7, staff.getDepartmentName() );
|
ifxStmt.setString( 7, staff.getDepartmentName() );
|
||||||
ifxStmt.setString( 8, getStringValueFromHSSFCell( row.getCell( 6 ) ) );
|
//ifxStmt.setString( 8, getStringValueFromHSSFCell( row.getCell( 6 ) ) );
|
||||||
ifxStmt.setString( 9, getStringValueFromHSSFCell( row.getCell( 3 ) ) );
|
//ifxStmt.setString( 9, getStringValueFromHSSFCell( row.getCell( 3 ) ) );
|
||||||
ifxStmt.setString( 10, getStringValueFromHSSFCell( row.getCell( 2 ) ) );
|
//ifxStmt.setString( 10, getStringValueFromHSSFCell( row.getCell( 2 ) ) );
|
||||||
|
|
||||||
ifxStmt.execute();
|
ifxStmt.execute();
|
||||||
|
|
||||||
|
Binary file not shown.
@@ -27,7 +27,7 @@
|
|||||||
<input type="reset" name="reset" value="<22><><EFBFBD><EFBFBD>">
|
<input type="reset" name="reset" value="<22><><EFBFBD><EFBFBD>">
|
||||||
</form>
|
</form>
|
||||||
<a href="../doc/<2F><><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD>ܵ<EFBFBD><DCB5><EFBFBD>ģ<EFBFBD><C4A3>.xls" style="color:red;"><3E><><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>
|
<a href="../doc/<2F><><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD>ܵ<EFBFBD><DCB5><EFBFBD>ģ<EFBFBD><C4A3>.xls" style="color:red;"><3E><><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a>
|
||||||
<p style="display: inline"><3E><>ע<EFBFBD><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>š<EFBFBD><C5A1><EFBFBD><EFBFBD>ƺš<C6BA><C5A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˡ<EFBFBD><CBA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˴<EFBFBD><CBB4>롢<EFBFBD><EBA1A2><EFBFBD>̴<EFBFBD><CCB4><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD></p>
|
<%--<p style="display: inline"><3E><>ע<EFBFBD><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>š<EFBFBD><C5A1><EFBFBD><EFBFBD>ƺš<C6BA><C5A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˡ<EFBFBD><CBA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˴<EFBFBD><CBB4>롢<EFBFBD><EBA1A2><EFBFBD>̴<EFBFBD><CCB4><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD></p>--%>
|
||||||
<!--<2D>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ-->
|
<!--<2D>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ-->
|
||||||
<%
|
<%
|
||||||
int uploadCount = 0;
|
int uploadCount = 0;
|
||||||
|
Reference in New Issue
Block a user