From 1ac21d1e660390dd937555e2a17e4b3a765bf18d Mon Sep 17 00:00:00 2001 From: le Date: Sun, 14 Jun 2026 09:50:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=95=E4=BF=9D=E5=8D=95=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=AD=97=E6=AE=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sinosoft/lis/schema/LCGrpContSchema.java | 109 +++++++++++++++++- .../lis/schema/LCGrpInvoiceDetailSchema.java | 14 ++- .../g_app/LCGrpContPolController.java | 25 ++++ .../webapp/g_app/LCGrpCompContPolInput.js | 6 +- .../webapp/g_app/LCGrpCompNewContPolInput.js | 8 +- .../main/webapp/g_app/LCGrpContPolInput.js | 102 ++++++++++++++-- .../main/webapp/g_app/LCGrpContPolInput.jsp | 85 ++++++++++++-- 7 files changed, 321 insertions(+), 28 deletions(-) diff --git a/lis-model-policy-schema/src/main/java/com/sinosoft/lis/schema/LCGrpContSchema.java b/lis-model-policy-schema/src/main/java/com/sinosoft/lis/schema/LCGrpContSchema.java index 3c6e60c5..1f40270b 100644 --- a/lis-model-policy-schema/src/main/java/com/sinosoft/lis/schema/LCGrpContSchema.java +++ b/lis-model-policy-schema/src/main/java/com/sinosoft/lis/schema/LCGrpContSchema.java @@ -794,8 +794,48 @@ public class LCGrpContSchema extends Entity implements Schema, @Column(index = 169, name = "ModifyOperator", desc = "最后一次修改操作员", type = Schema.TYPE_STRING) private String modifyOperator; + @Getter + @Setter + @Column(index = 170, name = "grpType", desc = "组织类型", type = Schema.TYPE_STRING) + private String grpType; + + @Getter + @Setter + @Column(index = 171, name = "cDate", desc = "成立日期", type = Schema.TYPE_DATE) + private Date cDate; + + @Getter + @Setter + @Column(index = 172, name = "bussarea", desc = "经营区域", type = Schema.TYPE_STRING) + private String bussarea; + + @Getter + @Setter + @Column(index = 173, name = "Corporation1", desc = "法人姓名", type = Schema.TYPE_STRING) + private String Corporation1; + + @Getter + @Setter + @Column(index = 174, name = "CorIDType1", desc = "法人证件类型", type = Schema.TYPE_STRING) + private String CorIDType1; + + @Getter + @Setter + @Column(index = 175, name = "CorID1", desc = "法人证件号码", type = Schema.TYPE_STRING) + private String CorID1; + + @Getter + @Setter + @Column(index = 176, name = "CorIDStartDate1", desc = "法人证件有效期起", type = Schema.TYPE_DATE) + private Date CorIDStartDate1; + + @Getter + @Setter + @Column(index = 177, name = "CorIDExpiryDate1", desc = "法人证件有效期止", type = Schema.TYPE_DATE) + private Date CorIDExpiryDate1; + - public static final int FIELDNUM = 170; // 数据库表的字段个数 + public static final int FIELDNUM = 178; // 数据库表的字段个数 private transient FDate fDate = new FDate(); // 处理日期 @@ -1806,6 +1846,73 @@ public class LCGrpContSchema extends Entity implements Schema, return this; } + + public String getCorIDStartDate1() { + if (CorIDStartDate1 != null) + return fDate.getString(CorIDStartDate1); + else + return null; + } + + public LCGrpContSchema setCorIDStartDate1(Date acDate) { + CorIDStartDate1 = acDate; + return this; + } + + public LCGrpContSchema setCorIDStartDate1(String acDate) { + if (acDate != null && !acDate.equals("") && !acDate.equals("null")) { + CorIDStartDate1 = fDate.getDate(acDate); + } else { + CorIDStartDate1 = null; + } + return this; + } + + public String getCDate() { + if (cDate != null) + return fDate.getString(cDate); + else + return null; + } + + public LCGrpContSchema setCDate(Date acDate) { + cDate = acDate; + return this; + } + + public LCGrpContSchema setCDate(String acDate) { + if (acDate != null && !acDate.equals("") && !acDate.equals("null")) { + cDate = fDate.getDate(acDate); + } else { + cDate = null; + } + return this; + } + + + public String getCorIDExpiryDate1() { + if (CorIDExpiryDate1 != null) + return fDate.getString(CorIDExpiryDate1); + else + return null; + } + + public LCGrpContSchema setCorIDExpiryDate1(Date acDate) { + CorIDExpiryDate1 = acDate; + return this; + } + + public LCGrpContSchema setCorIDExpiryDate1(String acDate) { + if (acDate != null && !acDate.equals("") && !acDate.equals("null")) { + CorIDExpiryDate1 = fDate.getDate(acDate); + } else { + CorIDExpiryDate1 = null; + } + return this; + } + + + public LCGrpContSchema setAmntShareRate(double aAmntShareRate) { amntShareRate = aAmntShareRate; return this; diff --git a/lis-model-policy-schema/src/main/java/com/sinosoft/lis/schema/LCGrpInvoiceDetailSchema.java b/lis-model-policy-schema/src/main/java/com/sinosoft/lis/schema/LCGrpInvoiceDetailSchema.java index d89d6777..10776009 100644 --- a/lis-model-policy-schema/src/main/java/com/sinosoft/lis/schema/LCGrpInvoiceDetailSchema.java +++ b/lis-model-policy-schema/src/main/java/com/sinosoft/lis/schema/LCGrpInvoiceDetailSchema.java @@ -212,8 +212,20 @@ public class LCGrpInvoiceDetailSchema extends Entity implements Schema0 && document.all("CorIDType1").value=="") { + i18nAlert("请先选择证件类型!", "LIS-00574"); + return false; + } + + if(document.all("CorIDType1").value=="0"&&document.all("CorID1").value.length>0) { + + if((document.all("CorID1").value.length!=15) &&(document.all("CorID1").value.length!=18)){ + i18nAlert("输入的身份证号位数错误", "LIS-00575"); + document.all('CorID1').value=""; + return false; + } + + if(!checkIdCard(document.all("CorID1").value)) { + + i18nAlert("身份证号码不合法", "LIS-01833") ; + document.all('CorID1').value=""; + document.all('CorID1').className = "warn"; + return false; + } + } +} + + function checkCity(){ var ManageCom =document.all('ManageCom').value; var ProvinceCode =document.all('ProvinceCode').value; @@ -3403,7 +3442,11 @@ function afterCodeSelect(o, p){ if(p.name=="BankProvince"){ document.all("BankCity").value=""; document.all("BankCityName").value=""; - + } else if(p.name=="LinkProvince2"){ + document.getElementById("LinkCityCode2").value=""; + document.getElementById("LinkCity2").value=""; + document.getElementById("LinkCounty2").value=""; + document.getElementById("LinkCountyCode2").value=""; } else { document.all("CityCode").value=""; document.all("CityName").value=""; @@ -3411,7 +3454,10 @@ function afterCodeSelect(o, p){ document.all("CountyCode").value=""; } } else if(o=="city"){ - if(p.name=="CityName"){ + if(p.name=="LinkCity2"){ + document.getElementById("LinkCounty2").value=""; + document.getElementById("LinkCountyCode2").value=""; + } else if(p.name=="CityName"){ document.all("CountyName").value=""; document.all("CountyCode").value=""; } @@ -3684,6 +3730,48 @@ function calEndDate(code, type) { } } + +function calEndDate2(code, type) { + + if (fm.IDType.value == '0' && type == "IDType1") { + var tapage = getAgeFromIdCard(fm.IDNo.value,fm.IDStartDate.value); + if (tapage < 16) { + var tyear = caldateYear(fm.IDStartDate.value, 5); + fm.IDEndDate.value = tyear; + } + if (16 <= tapage && tapage <= 25) { + var tyear = caldateYear(fm.IDStartDate.value, 10); + fm.IDEndDate.value = tyear; + } + if (26 <= tapage && tapage <= 45) { + var tyear = caldateYear(fm.IDStartDate.value, 20); + fm.IDEndDate.value = tyear; + } + if (tapage >= 46) { + fm.IDExpDate.value = '9999-01-01'; + } + } + + if (fm.CorIDType.value == '0' && type == "CorIDType") { + var tapage = getAgeFromIdCard(fm.CorID.value,fm.CorIDStartDate.value); + if (tapage < 16) { + var tyear = caldateYear(fm.CorIDStartDate.value, 5); + fm.CorIDExpiryDate.value = tyear; + } + if (16 <= tapage && tapage <= 25) { + var tyear = caldateYear(fm.CorIDStartDate.value, 10); + fm.CorIDExpiryDate.value = tyear; + } + if (26 <= tapage && tapage <= 45) { + var tyear = caldateYear(fm.CorIDStartDate.value, 20); + fm.CorIDExpiryDate.value = tyear; + } + if (tapage >= 46) { + fm.CorIDExpiryDate.value = '9999-01-01'; + } + } +} + function getAgeFromIdCard(idCard,StartDate) { // 校验身份证号基本格式 if (!idCard || (idCard.length !== 15 && idCard.length !== 18)) { @@ -4489,7 +4577,7 @@ function InsureListProtect(){ /** * 关联方模糊认定结果 */ -var relationbtn= 1 ; +var relationbtn= 0 ; function relationresult() { relationbtn+=1; var numFlag = 0; diff --git a/lis-module-grp-nb-web/src/main/webapp/g_app/LCGrpContPolInput.jsp b/lis-module-grp-nb-web/src/main/webapp/g_app/LCGrpContPolInput.jsp index 92881f14..ace49696 100644 --- a/lis-module-grp-nb-web/src/main/webapp/g_app/LCGrpContPolInput.jsp +++ b/lis-module-grp-nb-web/src/main/webapp/g_app/LCGrpContPolInput.jsp @@ -138,8 +138,7 @@ 是否为关联交易 -<%-- --%> - + @@ -336,6 +335,42 @@ 合计 + + + 组织类型 + + + 成立日期 + + + 经营区域 + + + + +<%-- --%> + +<%-- 联系地址--%> +<%-- --%> +<%-- --%> +<%-- --%> +<%-- 区/县--%> +<%-- --%> +<%-- --%> +<%-- --%> + + + + 联系地址 + + + + 区/县 + + + + + 单位性质 @@ -346,22 +381,40 @@ 单位联系电话 + + + <%-- 单位传真--%> + <%-- --%> + 法人姓名 + + 法人证件类型 + + 法人证件号码 + + + + 法人证件有效起期 + + + 法人证件有效止期 + + <%-- 单位传真--%> <%-- --%> - 法人/负责人姓名 - - 法人/负责人证件类型 - - 法人/负责人证件号码 - + 负责人姓名 + + 负责人证件类型 + + 负责人证件号码 + - 法人/负责人证件有效起期 - + 负责人证件有效起期 + - 法人/负责人证件有效止期 - + 负责人证件有效止期 + 单位地址 @@ -535,6 +588,14 @@ <%--电子发票--%> + + 开通弹性福利平台 + + 纳税人类型 + + 开票样式 + + 电子发票