You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1311 lines
36 KiB
1311 lines
36 KiB
/***************************************************************
|
|
* <p>ProName:EdorRRInput.js</p>
|
|
* <p>Title:无名单实名化</p>
|
|
* <p>Description:无名单实名化</p>
|
|
* <p>Copyright:Copyright (c) 2012</p>
|
|
* <p>Company:Sinosoft</p>
|
|
* @author : weigh
|
|
* @version : 8.0
|
|
* @date : 2014-06-27
|
|
****************************************************************/
|
|
|
|
var showInfo;
|
|
var turnPage = new turnPageClass();
|
|
var turnPage1 = new turnPageClass();
|
|
var turnPage2 = new turnPageClass();
|
|
var turnPage3 = new turnPageClass();
|
|
var turnPage4 = new turnPageClass();
|
|
var mOperate = "";//操作状态
|
|
var tSQLInfo = new SqlClass();
|
|
var tQuerFlag;
|
|
var Hidrelatomain=null;
|
|
|
|
function resultAfterSubmit(flagStr,content,result){//返回方法应有三个参数分别为(String,String,result)类型
|
|
afterSubmit(flagStr,content,result.Insuredid);
|
|
}
|
|
|
|
/**
|
|
* 提交数据后返回操作
|
|
*/
|
|
function afterSubmit(tFlagStr, tContent,tInsuredid) {
|
|
|
|
if (typeof(showInfo) == "object" && typeof(showInfo) != "unknown") {
|
|
|
|
showInfo.close();
|
|
}
|
|
|
|
if (tFlagStr == "Fail") {
|
|
var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content=" + encodeURIComponent(tContent);
|
|
//showModalDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px");
|
|
var name='提示'; //网页名称,可为空;
|
|
var iWidth=550; //弹出窗口的宽度;
|
|
var iHeight=250; //弹出窗口的高度;
|
|
var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置
|
|
var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置
|
|
showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false);
|
|
|
|
showInfo.focus();
|
|
} else {
|
|
var urlStr = "../common/jsp/MessagePage.jsp?picture=S&content=" + encodeURIComponent(tContent);
|
|
//showModalDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px");
|
|
var name='提示'; //网页名称,可为空;
|
|
var iWidth=550; //弹出窗口的宽度;
|
|
var iHeight=250; //弹出窗口的高度;
|
|
var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置
|
|
var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置
|
|
showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false);
|
|
|
|
showInfo.focus();
|
|
|
|
if(mOperate == "INSERT"|| mOperate == "CHOSEDEL" || mOperate == "CONDDEL" || mOperate == "ALLDEL"){
|
|
clearPage();
|
|
queryInsured(2);
|
|
initBnfGrid();
|
|
initQueryInfoGrid();
|
|
divQuerySpe.style.display="none";
|
|
divQueryShow.style.display="none";
|
|
}else if(mOperate == "UPDATE"){
|
|
clearPage();
|
|
initQueryInfoGrid();
|
|
initBnfGrid();
|
|
//queryBnf(tInsuredid);
|
|
queryInsured(2);
|
|
divQuerySpe.style.display="none";
|
|
divQuerySpe.style.display="none";
|
|
divQueryShow.style.display="none";
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 提交
|
|
*/
|
|
function submitForm() {
|
|
|
|
var i = 0;
|
|
var showStr = i18nMessage("正在保存数据,请您稍候并且不要修改屏幕上的值或链接其他页面", "LIS-04525");
|
|
var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content=" + encodeURIComponent(showStr);
|
|
//showInfo = window.showModelessDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px");
|
|
var name='提示'; //网页名称,可为空;
|
|
var iWidth=550; //弹出窗口的宽度;
|
|
var iHeight=250; //弹出窗口的高度;
|
|
var iTop = (window.screen.availHeight - iHeight) / 2; //获得窗口的垂直位置
|
|
var iLeft = (window.screen.availWidth - iWidth) / 2; //获得窗口的水平位置
|
|
showInfo = window.open (urlStr,name, "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no,height="+ iHeight+",width="+iWidth+",innerHeight="+iHeight+",innerWidth=" +iWidth+",left="+iLeft+",top="+iTop,false);
|
|
|
|
showInfo.focus();
|
|
fm.Operate.value = mOperate;
|
|
//fm.submit();
|
|
ajaxSubmit2(document.getElementById("fm"),resultAfterSubmit);
|
|
}
|
|
|
|
|
|
/**
|
|
* 查询
|
|
**/
|
|
function queryInsured(o){
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorRRSql");
|
|
tSQLInfo.setSqlId("EdorRRSql6");
|
|
tSQLInfo.addSubPara(fm.GrpPropNo.value);
|
|
tSQLInfo.addSubPara(fm.EdorAppNo.value);
|
|
tSQLInfo.addSubPara(fm.InsuredNameQ.value);
|
|
tSQLInfo.addSubPara(fm.IdNoQ.value);
|
|
tSQLInfo.addSubPara(fm.InsuredNoQ.value);
|
|
tSQLInfo.addSubPara(fm.PlanCodeQ.value);
|
|
tSQLInfo.addSubPara(fm.ImpBatch.value);
|
|
tSQLInfo.addSubPara(fm.EdorType.value);
|
|
tSQLInfo.addSubPara(NullToEmpty(fm.EdorNo.value));
|
|
tSQLInfo.addSubPara(fm.BatchNo.value);
|
|
|
|
initEdorDetailGrid();
|
|
initBnfGrid();
|
|
divQuerySpe.style.display="none";
|
|
divQueryShow.style.display="none";
|
|
document.all("relatomain").disabled=false;
|
|
clearPage();
|
|
turnPage1.queryModal(tSQLInfo.getString(), EdorDetailGrid, 1, 1);
|
|
|
|
if(o=='1'){
|
|
if(!turnPage1.strQueryResult){
|
|
i18nAlert("未查询到符合条件的查询结果!", "LIS-03011");
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 选择删除
|
|
*/
|
|
function choseDelet(){
|
|
|
|
var tSelNo = EdorDetailGrid.getSelNo();
|
|
if(tSelNo=='0'){
|
|
i18nAlert("请选择一条被保人信息进行删除!", "LIS-03502");
|
|
return false;
|
|
}
|
|
mOperate = "CHOSEDEL";
|
|
fm.action = "../API/grp_pa/g_pos/EdorRRSave/CHOSEDEL";
|
|
submitForm();
|
|
|
|
}
|
|
|
|
/**
|
|
* 条件删除
|
|
*/
|
|
function condDelete(){
|
|
|
|
if(fm.InsuredNameQ.value =="" && fm.IdNoQ.value=="" && fm.InsuredNoQ.value=="" && fm.PlanCodeQ.value=="" && fm.ImpBatch.value==""){
|
|
i18nAlert("请至少录入一个查询条件进行条件删除操作!", "LIS-03503");
|
|
return false;
|
|
}
|
|
|
|
var tCount = EdorDetailGrid.mulLineCount;
|
|
if(tCount =='0'){
|
|
i18nAlert("没有需要进行【条件删除】的数据!", "LIS-03504");
|
|
return false;
|
|
}
|
|
|
|
mOperate = "CONDDEL";
|
|
fm.action = "../API/grp_pa/g_pos/EdorRRSave/CONDDEL";
|
|
submitForm();
|
|
|
|
}
|
|
|
|
/**
|
|
* 全部删除
|
|
*/
|
|
function allDelete(){
|
|
|
|
if(!i18nConfirm("是否确定执行全部删除操作?", "LIS-00695")){
|
|
return false;
|
|
}
|
|
|
|
mOperate = "ALLDEL";
|
|
fm.action = "../API/grp_pa/g_pos/EdorRRSave/ALLDEL";
|
|
submitForm();
|
|
}
|
|
|
|
/**
|
|
* 新增
|
|
*/
|
|
function addRecord() {
|
|
|
|
mOperate = "INSERT";
|
|
if (!beforeSubmit()) {
|
|
return false;
|
|
}
|
|
fm.action = "../API/grp_pa/g_pos/EdorRRSave/ADD";
|
|
submitForm();
|
|
}
|
|
|
|
/**
|
|
* 修改
|
|
*/
|
|
function modifyRecord() {
|
|
|
|
var tSelNo = EdorDetailGrid.getSelNo();
|
|
if(tSelNo=='0'){
|
|
i18nAlert("请选择一条被保人信息进行修改!", "LIS-03505");
|
|
return false;
|
|
}
|
|
|
|
mOperate = "UPDATE";
|
|
if (!beforeSubmit()) {
|
|
return false;
|
|
}
|
|
fm.action = "../API/grp_pa/g_pos/EdorRRSave/UPDATE";
|
|
submitForm();
|
|
}
|
|
|
|
/**
|
|
* 根据前台页面进行下拉控制
|
|
**/
|
|
function returnShowCodeList (value1, value2, value3) {
|
|
|
|
if (value1=='bankprovince') {
|
|
|
|
return showCodeList('province',value2,value3,null,null,null,'1',180);
|
|
|
|
} else if (value1=='bankcity') {
|
|
if (isEmpty(fm.BankProvince)) {
|
|
i18nAlert("请选择省!", "LIS-00795");
|
|
return false;
|
|
}
|
|
var tProvince = fm.BankProvince.value;
|
|
|
|
return showCodeList('city',value2,value3,null,tProvince,'UpPlaceName','1',180);
|
|
} else if (value1=='city') {
|
|
if (isEmpty(fm.ProvinceName)) {
|
|
i18nAlert("请选择省!", "LIS-00795");
|
|
return false;
|
|
}
|
|
var tProvince = fm.ProvinceCode.value;
|
|
|
|
return showCodeList('city',value2,value3,null,tProvince,'UpPlaceName','1',180);
|
|
} else if (value1=='district') {
|
|
|
|
if (isEmpty(fm.ProvinceName)) {
|
|
i18nAlert("请选择省!", "LIS-00795");
|
|
return false;
|
|
}
|
|
|
|
if (isEmpty(fm.CityName)) {
|
|
i18nAlert("请选择市!", "LIS-00796");
|
|
return false;
|
|
}
|
|
|
|
var tCity = fm.CityCode.value;
|
|
|
|
return showCodeList('district',value2,value3,null,tCity,'UpPlaceName','1',180);
|
|
}
|
|
}
|
|
|
|
function returnShowCodeLisKey (value1, value2, value3) {
|
|
|
|
if (value1=='city') {
|
|
|
|
if (isEmpty(fm2.ProvinceName)) {
|
|
i18nAlert("请选择省!", "LIS-00795");
|
|
return false;
|
|
}
|
|
|
|
var tProvince = fm.ProvinceCode.value;
|
|
|
|
return showCodeList('city',value2,value3,null,tProvince,'UpPlaceName','1',180);
|
|
} else if (value1=='district') {
|
|
|
|
if (isEmpty(fm.ProvinceName)) {
|
|
i18nAlert("请选择省!", "LIS-00795");
|
|
return false;
|
|
}
|
|
|
|
if (isEmpty(fm.CityName)) {
|
|
i18nAlert("请选择市!", "LIS-00796");
|
|
return false;
|
|
}
|
|
|
|
var tCity = fm.CityCode.value;
|
|
|
|
return showCodeList('district',value2,value3,null,tCity,'UpPlaceName','1',180);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 下拉框选择后处理
|
|
*/
|
|
function afterCodeSelect(tSelectValue, tObj) {
|
|
|
|
if(tSelectValue=='relation'){
|
|
if (fm.relatomain.value!='00') {
|
|
mainname.style.display="";
|
|
mainname1.style.display="";
|
|
mainIDNo.style.display="";
|
|
mainCustNo1.style.display="";
|
|
}else{
|
|
mainname.style.display="none";
|
|
mainname1.style.display="none";
|
|
mainIDNo.style.display="none";
|
|
mainCustNo1.style.display="none";
|
|
}
|
|
}
|
|
|
|
if(tSelectValue=='contplan'){
|
|
initAmntGrid();
|
|
var querySql = "";
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorNISql");
|
|
tSQLInfo.setSqlId("EdorNISql12");
|
|
tSQLInfo.addSubPara(fm.GrpPropNo.value);
|
|
tSQLInfo.addSubPara(fm.ContPlanCode.value);
|
|
|
|
var arrRsult= easyExecSql(tSQLInfo.getString());
|
|
if(arrRsult!=null){
|
|
fm.AmntFlag.value = "ShowAmnt";
|
|
divQueryShow.style.display="";
|
|
turnPage4.queryModal(tSQLInfo.getString(), AmntGrid, 1,1,10);;
|
|
}else {
|
|
fm.AmntFlag.value = "";
|
|
divQueryShow.style.display="none";
|
|
}
|
|
|
|
if(fm.relatomain.value!='00'){
|
|
if(fm.mainCustName.value==""){
|
|
i18nAlert("请先录入主被保险人信息!", "LIS-03506");
|
|
return false;
|
|
}
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorNISql");
|
|
tSQLInfo.setSqlId("EdorNISql15");
|
|
tSQLInfo.addSubPara(fm.GrpPropNo.value);
|
|
tSQLInfo.addSubPara(fm.mainCustName.value);
|
|
tSQLInfo.addSubPara(fm.mainIDNo.value);
|
|
tSQLInfo.addSubPara(fm.mainIDNo.value);
|
|
tSQLInfo.addSubPara(fm.EdorAppNo.value);
|
|
tSQLInfo.addSubPara(fm.EdorType.value);
|
|
tSQLInfo.addSubPara(fm.EdorAppNo.value);
|
|
tSQLInfo.addSubPara(fm.GrpPropNo.value);
|
|
|
|
var arrResulter = easyExecSql(tSQLInfo.getString());
|
|
if(arrResulter !=null){
|
|
i18nAlert("被保险人的主被保人方案属于【主附属共保方案】方案编码为【{0}】", "LIS-03507", arrResulter[0][0]);
|
|
}
|
|
}
|
|
}
|
|
if(tSelectValue == "province"){
|
|
if(tObj.name=="BankProvince"){
|
|
fm.BankCity.value="";
|
|
fm.BankCityName.value="";
|
|
}else {
|
|
|
|
fm.CityName.value="";
|
|
fm.CityCode.value="";
|
|
fm.CountyName.value="";
|
|
fm.CountyCode.value="";
|
|
}
|
|
} else if(tSelectValue == "city"){
|
|
|
|
if(tObj.name=="BankCity"){
|
|
|
|
}else {
|
|
fm.CountyName.value="";
|
|
fm.CountyCode.value="";
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 校验身份证以及返回出生日期和性别、年龄
|
|
*/
|
|
function checkidtype(){
|
|
|
|
if(fm.IDNo.value.length>0 && fm.IDType.value=="") {
|
|
i18nAlert("请先选择证件类型!", "LIS-00574");
|
|
return false;
|
|
}
|
|
|
|
if(fm.IDType.value=="0"&&fm.IDNo.value.length>0) {
|
|
|
|
if((fm.IDNo.value.length!=18)){
|
|
i18nAlert("输入的身份证号位数错误", "LIS-00575");
|
|
document.all('IDNo').value="";
|
|
return false;
|
|
}
|
|
if(!checkIdCard(fm.IDNo.value)) {
|
|
document.all('IDNo').value="";
|
|
document.all('IDNo').className = "warn";
|
|
return false;
|
|
}else {
|
|
fm.InsuredBirthDay.value =getBirthdatByIdNo(fm.IDNo.value);
|
|
fm.InsuredGender.value = getSex(fm.IDNo.value);
|
|
|
|
if(fm.InsuredGender.value=='0'){
|
|
fm.InsuredGenderName.value ='男';
|
|
}else if(fm.InsuredGender.value=='1'){
|
|
fm.InsuredGenderName.value ='女';
|
|
}
|
|
fm.InsuredAppAge.value = calAge(fm.InsuredBirthDay.value);
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 选择城市前必须先选择省份
|
|
*/
|
|
function checkProvince(){
|
|
|
|
if(fm.Province.value == ""){
|
|
i18nAlert("请先选择省份", "LIS-03010");
|
|
fm.City.value = "";
|
|
fm.CityName.value = "";
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 清空关联查询的项目
|
|
|
|
*/
|
|
function clearInput(codeInput,nameInput) {
|
|
codeInput.value = "";
|
|
nameInput.value = "";
|
|
}
|
|
|
|
/**
|
|
* 查询方案信息
|
|
|
|
*/
|
|
function showContPlanCode(cObj,cObjName,cObjCode){
|
|
return showCodeList('contplan',[cObj,cObjName,cObjCode],[0,1,2],null,[ document.all('GrpPropNo').value,'LCInsuredEx'],['GrpContNo','LCInsuredEx'],1,null);
|
|
}
|
|
|
|
function showContPlanCodeName(cObj,cObjName,cObjCode){
|
|
return showCodeListKey('contplan',[cObj,cObjName,cObjCode],[0,1,2],null,[ document.all('GrpPropNo').value,'LCInsuredEx'],['GrpContNo','LCInsuredEx'],1,null);
|
|
}
|
|
|
|
//初始化职级的下拉内容
|
|
function initPosition(cObj,cName){
|
|
showCodeList('position',[cObj,cName], [0,1], null,document.all('GrpPropNo').value,'GrpContNo', 1,null);
|
|
}
|
|
|
|
|
|
//职业类别
|
|
function showOccupationCodeList(obj1,obj1Name,obj2,obj2Name){
|
|
var keycode = event.keyCode;
|
|
//回车的ascii码是13
|
|
if(keycode!="13" && keycode!="9") {
|
|
return;
|
|
}
|
|
showCodeList('occupationcode',[obj1,obj1Name,obj2,obj2Name],[0,1,2,3],null,fm.OccupationCodeName.value,'OccupationName',1);
|
|
}
|
|
|
|
function showOccupationCodeListKey(obj1,obj1Name,obj2,obj2Name){
|
|
var keycode = event.keyCode;
|
|
//回车的ascii码是13
|
|
if(keycode!="13" && keycode!="9") {
|
|
return;
|
|
}
|
|
showCodeList('occupationcode',[obj1,obj1Name,obj2,obj2Name],[0,1,2,3],null,fm.OccupationCodeName.value,'OccupationName',1);
|
|
}
|
|
|
|
/**
|
|
* 选择主客户 --按回车键和Tab键时触发
|
|
*/
|
|
function selectMainUser() {
|
|
|
|
var keyCode = event.keyCode;
|
|
if (keyCode=="13"|| keyCode=="9") {
|
|
if (!selectMainUserInfo()) {
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 选择主客户详细方法
|
|
*/
|
|
|
|
function selectMainUserInfo(){
|
|
fm.mainCustNameTemp.value = fm.mainCustName.value;
|
|
if(fm.mainCustNameTemp.value != fm.mainCustName.value.trim()){
|
|
i18nAlert("录入主被保人姓名不能带空格!", "LIS-03508");
|
|
return false;
|
|
}
|
|
|
|
if(fm.mainCustName.value !=null && fm.mainCustName.value !=''){
|
|
|
|
var arrResult = new Array();
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorRRSql");
|
|
tSQLInfo.setSqlId("EdorRRSql4");
|
|
tSQLInfo.addSubPara(fm.GrpPropNo.value);
|
|
tSQLInfo.addSubPara(fm.mainCustName.value);
|
|
tSQLInfo.addSubPara(fm.mainIDNo.value);
|
|
|
|
arrResult = easyExecSql(tSQLInfo.getString());
|
|
if(arrResult=='0'){
|
|
i18nAlert("没有查询到主被保人,同时增【主附被保险人】的话请使用导入模板!", "LIS-03509");
|
|
fm.mainInsuredNo.value="";
|
|
fm.mainCustName.value="";
|
|
fm.mainIDNo.value="";
|
|
return false;
|
|
}
|
|
|
|
var n=arrResult[0];
|
|
if (n>1) {
|
|
showMainLCInsuredInfo();//主被保人查询
|
|
fm.mainInsuredNo.value="";
|
|
fm.mainCustName.value="";
|
|
fm.mainIDNo.value="";
|
|
|
|
}else if(n==1){
|
|
|
|
var arrResult = new Array();
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorRRSql");
|
|
tSQLInfo.setSqlId("EdorRRSql7");
|
|
tSQLInfo.addSubPara(fm.GrpPropNo.value);
|
|
tSQLInfo.addSubPara(fm.mainCustName.value);
|
|
tSQLInfo.addSubPara(fm.mainIDNo.value);
|
|
|
|
fm.mainInsuredNo.value="";
|
|
fm.mainCustName.value="";
|
|
fm.mainIDNo.value="";
|
|
arrResult = new Array();
|
|
arrResult = easyExecSql(tSQLInfo.getString());
|
|
fm.mainInsuredNo.value = arrResult[0][1];
|
|
fm.mainCustName.value= arrResult[0][2];
|
|
fm.mainIDNo.value= arrResult[0][3];
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 检查主被保人信息
|
|
*/
|
|
function checkMain(){
|
|
if(fm.relatomain.value !='00'){
|
|
|
|
if(fm.mainCustName.value==''){
|
|
i18nAlert("请先录入主被保险人姓名!", "LIS-03510");
|
|
fm.InsuredName.value="";
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 选择客户 --按回车键和Tab键时触发
|
|
*/
|
|
function selectUser() {
|
|
|
|
var keyCode = event.keyCode;
|
|
if (keyCode=="13"|| keyCode=="9") {
|
|
if (!selectUserInfo()) {
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 选择客户详细方法
|
|
*/
|
|
function selectUserInfo() {
|
|
|
|
fm.InsuredNameTemp.value = fm.InsuredName.value;
|
|
if (fm.InsuredNameTemp.value != fm.InsuredName.value.trim()) {
|
|
i18nAlert("录入被保人姓名不能带空格!", "LIS-03351");
|
|
return false;
|
|
}
|
|
if (fm.InsuredName.value!=null && fm.InsuredName.value!='') {
|
|
|
|
var arrResult = new Array();
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorRRSql");
|
|
tSQLInfo.setSqlId("EdorRRSql3");
|
|
tSQLInfo.addSubPara(fm.GrpPropNo.value);
|
|
tSQLInfo.addSubPara(fm.InsuredName.value);
|
|
|
|
arrResult = easyExecSql(tSQLInfo.getString());
|
|
if(arrResult==0){
|
|
emptyCustInfo();
|
|
return ;
|
|
}
|
|
|
|
var n=arrResult[0];
|
|
if (n>1) {
|
|
showLCInsuredInfo();//客户查询
|
|
emptyCustInfo();//清空被保人客户页面信息
|
|
} else if(n==1) {
|
|
var arrResult = new Array();
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorRRSql");
|
|
tSQLInfo.setSqlId("EdorRRSql5");
|
|
tSQLInfo.addSubPara(fm.GrpPropNo.value);
|
|
tSQLInfo.addSubPara(fm.InsuredName.value);
|
|
|
|
emptyCustInfo();
|
|
arrResult = new Array();
|
|
arrResult = easyExecSql(tSQLInfo.getString());
|
|
fm.InsuredName.value = arrResult[0][0];
|
|
fm.IDType.value = arrResult[0][1];
|
|
fm.IDTypeName.value = arrResult[0][2];
|
|
fm.IDNo.value = arrResult[0][3];
|
|
fm.InsuredGender.value = arrResult[0][4];
|
|
fm.InsuredGenderName.value = arrResult[0][5];
|
|
fm.InsuredBirthDay.value = arrResult[0][6];
|
|
fm.InsuredAppAge.value = arrResult[0][7];
|
|
|
|
} else {
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 清空被保人基本信息
|
|
*/
|
|
function emptyCustInfo(){
|
|
|
|
fm.IDType.value="";
|
|
fm.IDTypeName.value="";
|
|
fm.IDNo.value="";
|
|
fm.InsuredGender.value="";
|
|
fm.InsuredGenderName.value="";
|
|
fm.InsuredBirthDay.value="";
|
|
fm.InsuredAppAge.value="";
|
|
}
|
|
|
|
|
|
/**
|
|
* 客户姓名查出多条时,跳转到客户查询页面
|
|
*/
|
|
function showLCInsuredInfo() {
|
|
|
|
var tGrpPropNo=fm.GrpPropNo.value;
|
|
var tInsuredName=fm.InsuredName.value;
|
|
window.open("./EdorNIQueryMain.jsp?GrpPropNo="+tGrpPropNo+"&InsuredName="+tInsuredName+"&ManageCom="+tManageCom,"查询被保人信息",'width=950,height=520,top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0');
|
|
}
|
|
|
|
/**
|
|
* 主被保人客户姓名查出多条时,跳转到主被保人客户查询页面
|
|
*/
|
|
function showMainLCInsuredInfo() {
|
|
|
|
var tGrpPropNo=fm.GrpPropNo.value;
|
|
var tmainCustName=fm.mainCustName.value;
|
|
var tmainIDNO = fm.mainIDNo.value;
|
|
var tEdorAppNo = fm.EdorAppNo.value ;
|
|
var tEdorType = fm.EdorType.value ;
|
|
window.open("./EdorMQueryMain.jsp?GrpPropNo="+tGrpPropNo+"&mainCustName="+tmainCustName+"&ManageCom="+tManageCom+"&MainIDNO="+tmainIDNO+"&EdorAppNo="+tEdorAppNo+"&EdorType="+tEdorType,"查询主被保人信息",'width=950,height=520,top=0,left=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,status=0');
|
|
}
|
|
|
|
/**
|
|
* 获取返回的客户数据
|
|
*/
|
|
function showUserInfo(tArr) {
|
|
|
|
if (tArr!=null) {
|
|
var Result=new Array();
|
|
Result=tArr;
|
|
fm.InsuredName.value = Result[0];
|
|
fm.InsuredGenderName.value = Result[1];
|
|
fm.InsuredGender.value = Result[6];
|
|
fm.InsuredBirthDay.value= Result[2];
|
|
fm.IDTypeName.value = Result[3];
|
|
fm.IDType.value = Result[5];
|
|
fm.IDNo.value = Result[4];
|
|
fm.InsuredNo.value = Result[7];
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 获取返回的主客户数据
|
|
*/
|
|
function showMainUserInfo(tArr){
|
|
|
|
if (tArr!=null) {
|
|
var Result=new Array();
|
|
Result=tArr;
|
|
fm.mainInsuredNo.value=Result[7];
|
|
fm.mainIDNo.value=Result[4];
|
|
fm.mainCustName.value=Result[0];
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
* 提交前的校验、计算
|
|
*/
|
|
function beforeSubmit() {
|
|
|
|
document.all("relatomain").disabled=false;
|
|
if (!verifyInput2()) {
|
|
return false;
|
|
}
|
|
|
|
if(fm.relatomain.value!='00'){
|
|
if(fm.mainCustName.value==''){
|
|
i18nAlert("请先录入主被保人信息!", "LIS-03648");
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
if(fm.ContPlanCode.value==""){
|
|
i18nAlert("方案编码不能为空!", "LIS-02724");
|
|
return false;
|
|
}
|
|
|
|
// tSQLInfo = new SqlClass();
|
|
// tSQLInfo.setResourceName("g_pos.EdorRRSql");
|
|
// tSQLInfo.setSqlId("EdorRRSql10");
|
|
// tSQLInfo.addSubPara(fm.GrpPropNo.value);
|
|
// tSQLInfo.addSubPara(fm.ContPlanCode.value);
|
|
// tSQLInfo.addSubPara(fm.sysPlanCode.value);
|
|
//
|
|
// var arrResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
// if(arrResult !=null){
|
|
// if(arrResult[0][0]=='02'){
|
|
// if(fm.Salary.value==''){
|
|
// i18nAlert("被保险人方案需要录入月薪!", "LIS-03649");
|
|
// return false ;
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
if (mOperate=="INSERT" || mOperate=="UPDATE") {
|
|
|
|
if(fm.edorValDate.value ==''){
|
|
i18nAlert("请录入保全生效日期!", "LIS-03650");
|
|
return false ;
|
|
}
|
|
|
|
// 校验生效日期
|
|
var CurrentDate = fm.CurrentDate.value;
|
|
var birthday = fm.InsuredBirthDay.value;
|
|
var LiscenceValidDate = fm.LiscenceValidDate.value;// 证件是否长期有效
|
|
if(birthday>CurrentDate){
|
|
i18nAlert("出生日期必须小于当前日期!", "LIS-03651");
|
|
return false ;
|
|
}
|
|
|
|
// // 校验职级信息
|
|
// if(fm.Position.value !=""){
|
|
// if(fm.JoinCompDate.value=="" || fm.Seniority.value==""){
|
|
// i18nAlert("账户型归属请填写入司时间或工龄!", "LIS-03652");
|
|
// return false ;
|
|
// }
|
|
// }
|
|
|
|
// 校验证件有效期
|
|
if(LiscenceValidDate !=""){
|
|
if(LiscenceValidDate<CurrentDate){
|
|
i18nAlert("证件有效期需大于当前日期", "LIS-03653");
|
|
return false ;
|
|
}
|
|
}
|
|
|
|
if(fm.ProvinceCode.value !=""){
|
|
if(fm.CityCode.value =="" || fm.CountyCode.value =="" || fm.DetailAddress.value==""){
|
|
i18nAlert("详细地址必须录入市和区/县/详细信息!", "LIS-03654");
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// 校验地址信息
|
|
if(!checkCity()){
|
|
return false;
|
|
}
|
|
|
|
// 校验银行信息
|
|
var tflag1 = true;
|
|
var bankFlag = 0;
|
|
if(fm.HeadBankCode.value!=null || fm.HeadBankCode.value!=""){
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_common");
|
|
tSQLInfo.setResourceName("g_app.LCContCommonSql");
|
|
tSQLInfo.setSqlId("LCContCommonSql9");
|
|
tSQLInfo.addSubPara(fm.HeadBankCode.value);
|
|
bankFlag = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
}
|
|
if(bankFlag =='1'){
|
|
if(fm.HeadBankCode.value==''&& fm.BankProvince.value==''&& fm.BankCity.value=='' && fm.AccName.value=='' && trim(fm.BankAccNo.value)==''){
|
|
tflag1= true;
|
|
}else if(fm.HeadBankCode.value !=''&& fm.BankProvince.value!=''&& fm.BankCity.value!='' && fm.AccName.value!='' && trim(fm.BankAccNo.value)!=''){
|
|
tflag1= true;
|
|
}else{
|
|
tflag1=false;
|
|
}
|
|
|
|
} else {
|
|
if(fm.HeadBankCode.value=='' && fm.AccName.value=='' && trim(fm.BankAccNo.value)==''){
|
|
tflag1= true;
|
|
}else if(fm.HeadBankCode.value !='' && fm.AccName.value!='' && trim(fm.BankAccNo.value)!=''){
|
|
tflag1= true;
|
|
}else{
|
|
tflag1=false;
|
|
}
|
|
}
|
|
if(tflag1==false){
|
|
i18nAlert("请填写银行相关信息!", "LIS-03014");
|
|
return false;
|
|
|
|
}
|
|
if(fm.BankProvince.value != ''){
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorCommonSql");
|
|
tSQLInfo.setSqlId("EdorCommonSql8");
|
|
tSQLInfo.addSubPara(fm.BankProvince.value);
|
|
|
|
var arrReslut = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
if(arrReslut==null){
|
|
i18nAlert("请选择有效的开户行所在省!", "LIS-03337");
|
|
fm.BankProvince.focus();
|
|
return false;
|
|
}
|
|
}
|
|
if(fm.BankCity.value != ''){
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorCommonSql");
|
|
tSQLInfo.setSqlId("EdorCommonSql9");
|
|
tSQLInfo.addSubPara(fm.BankProvince.value);
|
|
tSQLInfo.addSubPara(fm.BankCity.value);
|
|
var arrReslut = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
if(arrReslut==null){
|
|
i18nAlert("请选择有效的开户行所在市!", "LIS-03338");
|
|
fm.BankCity.focus();
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
if(fm.HeadBankCode.value != '' && fm.Province.value !='' && fm.City.value!=''){
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.EdorBISql");
|
|
tSQLInfo.setSqlId("EdorBISql8");
|
|
tSQLInfo.addSubPara(fm.HeadBankCode.value);
|
|
tSQLInfo.addSubPara(fm.Province.value);
|
|
tSQLInfo.addSubPara(fm.City.value);
|
|
|
|
var arrReslut = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
if(arrReslut==null){
|
|
i18nAlert("银行信息不符合规则要求!", "LIS-03655");
|
|
return false;
|
|
}
|
|
}
|
|
**/
|
|
// 校验增加受益人信息
|
|
BnfGrid.delBlankLine();
|
|
if(!valBnfInfo()){
|
|
return false;
|
|
}
|
|
|
|
if (fm.mainCustName.value !=null && fm.mainCustName.value !='') {
|
|
|
|
var arrResult = new Array();
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorRRSql");
|
|
tSQLInfo.setSqlId("EdorRRSql4");
|
|
tSQLInfo.addSubPara(fm.GrpPropNo.value);
|
|
tSQLInfo.addSubPara(fm.mainCustName.value);
|
|
tSQLInfo.addSubPara(fm.mainIDNo.value);
|
|
|
|
arrResult = easyExecSql(tSQLInfo.getString());
|
|
if(arrResult=='0'){
|
|
i18nAlert("没有查询到主被保人,同时增【主附被保险人】的话请使用导入模板!", "LIS-03509");
|
|
fm.mainInsuredNo.value="";
|
|
fm.mainCustName.value="";
|
|
fm.mainIDNo.value="";
|
|
return false;
|
|
}
|
|
}
|
|
if (fm.Seniority.value!="" && fm.Seniority.value<0) {
|
|
i18nAlert("工龄必须大于等于0!", "LIS-03656");
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
|
|
/**
|
|
*校验受益人信息
|
|
*/
|
|
function valBnfInfo(){
|
|
|
|
var tCount = BnfGrid.mulLineCount;
|
|
var sumRate = 0;
|
|
|
|
if(parseInt(tCount)>0){
|
|
if(!BnfGrid.checkValue("BnfGrid")){
|
|
return false;
|
|
}
|
|
|
|
for (var i=0; i<tCount;i++){
|
|
if(BnfGrid.getRowColData(i,10) !=''){
|
|
if(BnfGrid.getRowColData(i,10)!='0' ){
|
|
if(BnfGrid.getRowColData(i,7)==null || BnfGrid.getRowColData(i,7) =='' && BnfGrid.getRowColData(i,8)==null || BnfGrid.getRowColData(i,8) =='' ){
|
|
i18nAlert("请输入受益人性别/出生日期!", "LIS-03332");
|
|
return false;
|
|
}
|
|
}else if(BnfGrid.getRowColData(i,10)=='0'){
|
|
if(BnfGrid.getRowColData(i,11).length!='18'){
|
|
i18nAlert("受益人身份证号码必须为18位!", "LIS-03333");
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* 银行信息4为隔开
|
|
*/
|
|
function FormatString(Field){
|
|
|
|
var oldStr = Field.value;
|
|
var newStr = transformStr(oldStr,4);
|
|
Field.value = newStr;
|
|
}
|
|
|
|
function transformStr(Str,tLimit){
|
|
|
|
var newStr = "";
|
|
if(Str==null||Str==""){
|
|
return newStr;
|
|
}
|
|
if(!isInteger(tLimit)){
|
|
tLimit = 4;
|
|
}
|
|
Str = Str.replace(/\s/g,"");
|
|
var i=0;
|
|
while(i<Str.length){
|
|
|
|
newStr+=Str.charAt(i);
|
|
if((i+1)%tLimit==0){
|
|
newStr+=" ";
|
|
}
|
|
i++;
|
|
}
|
|
return newStr;
|
|
}
|
|
|
|
|
|
/**
|
|
* 获取页面信息
|
|
*/
|
|
function getCustomerInfo(){
|
|
|
|
var tSelNo= EdorDetailGrid.getSelNo();
|
|
var tSerialno = EdorDetailGrid.getRowColData(tSelNo-1,16);
|
|
var tInsuredID = EdorDetailGrid.getRowColData(tSelNo-1,17);
|
|
fm.Serialno.value = tSerialno;
|
|
fm.InsuredID.value = tInsuredID;
|
|
|
|
var querySql = "";
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorNISql");
|
|
tSQLInfo.setSqlId("EdorNISql13");
|
|
tSQLInfo.addSubPara(fm.EdorAppNo.value);
|
|
tSQLInfo.addSubPara(fm.GrpPropNo.value);
|
|
tSQLInfo.addSubPara(fm.BatchNo.value);
|
|
tSQLInfo.addSubPara(tInsuredID);
|
|
tSQLInfo.addSubPara(fm.EdorType.value);
|
|
|
|
var arrResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
if(arrResult !=null){
|
|
queryUnFixedAmnt(tInsuredID);
|
|
}else{
|
|
divQueryShow.style.display="none";
|
|
}
|
|
|
|
queryBnf(tInsuredID);
|
|
|
|
var querySql = "";
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorRRSql");
|
|
tSQLInfo.setSqlId("EdorRRSql1");
|
|
tSQLInfo.addSubPara(tSerialno);
|
|
tSQLInfo.addSubPara(tInsuredID);
|
|
tSQLInfo.addSubPara(fm.GrpPropNo.value);
|
|
tSQLInfo.addSubPara(fm.EdorAppNo.value);
|
|
tSQLInfo.addSubPara(fm.EdorType.value);
|
|
tSQLInfo.addSubPara(fm.BatchNo.value);
|
|
|
|
var arrResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
if(arrResult != null){
|
|
divQueryPage.style.display="";
|
|
|
|
fm.relatomain.value = arrResult[0][4];
|
|
Hidrelatomain = arrResult[0][4];
|
|
if(arrResult[0][4] != '00'){
|
|
document.all("relatomain").disabled=false;
|
|
mainname.style.display="";
|
|
mainname1.style.display="";
|
|
mainIDNo.style.display="";
|
|
mainCustNo1.style.display="";
|
|
}else{
|
|
document.all("relatomain").disabled=true;
|
|
mainname.style.display="none";
|
|
mainname1.style.display="none";
|
|
mainIDNo.style.display="none";
|
|
mainCustNo1.style.display="none";
|
|
}
|
|
showRelationtoMain(arrResult[0][8], arrResult[0][11]);
|
|
fm.relatomainName.value = arrResult[0][5];
|
|
fm.mainCustName.value = arrResult[0][6];
|
|
fm.mainIDNo.value = arrResult[0][7];
|
|
fm.InsuredName.value = arrResult[0][8];
|
|
fm.IDType.value = arrResult[0][9];
|
|
fm.IDTypeName.value = arrResult[0][10];
|
|
fm.IDNo.value = arrResult[0][11];
|
|
fm.InsuredGender.value = arrResult[0][12];
|
|
fm.InsuredGenderName.value = arrResult[0][13];
|
|
fm.InsuredBirthDay.value = arrResult[0][14];
|
|
fm.InsuredAppAge.value = calAge(arrResult[0][14]);
|
|
fm.edorValDate.value = arrResult[0][15];
|
|
fm.ContPlanCode.value = arrResult[0][16];
|
|
fm.ContPlanCodeName.value = arrResult[0][17];
|
|
fm.OccupationCode.value = arrResult[0][18];
|
|
fm.OccupationCodeName.value = arrResult[0][19];
|
|
fm.HeadBankCode.value = arrResult[0][20];
|
|
fm.BankCodeName.value = arrResult[0][21];
|
|
fm.AccName.value = arrResult[0][22];
|
|
fm.BankAccNo.value = arrResult[0][23];
|
|
fm.BankProvince.value = arrResult[0][24];
|
|
fm.BankProvinceName.value = arrResult[0][25];
|
|
fm.BankCity.value = arrResult[0][26];
|
|
fm.BankCityName.value = arrResult[0][27];
|
|
fm.ServerArea.value = arrResult[0][28];
|
|
fm.ServiceArName.value = arrResult[0][29];
|
|
fm.Substandard.value = arrResult[0][30];
|
|
fm.SubstandardName.value = arrResult[0][31];
|
|
fm.Social.value = arrResult[0][32];
|
|
fm.SocialName.value = arrResult[0][33];
|
|
fm.Position.value = arrResult[0][34];
|
|
fm.JoinCompDate.value = arrResult[0][35];
|
|
fm.Seniority.value = arrResult[0][36];
|
|
fm.Salary.value = arrResult[0][37];
|
|
fm.WorkIDNo.value = arrResult[0][38];
|
|
fm.ISLongValid.value = arrResult[0][39];
|
|
fm.ISLongValidName.value = arrResult[0][40];
|
|
fm.LiscenceValidDate.value = arrResult[0][41];
|
|
fm.ComponyName.value = arrResult[0][42];
|
|
fm.DeptCode.value = arrResult[0][43];
|
|
fm.InsureCode.value = arrResult[0][44];
|
|
//fm.SubCustomerNo.value = arrResult[0][45];
|
|
fm.WorkAddress.value = arrResult[0][46];
|
|
fm.SocialAddress.value = arrResult[0][47];
|
|
fm.ZipCode.value = arrResult[0][48];
|
|
fm.EMail.value = arrResult[0][49];
|
|
fm.MicroNo.value = arrResult[0][50];
|
|
fm.Phone.value = arrResult[0][51];
|
|
fm.Mobile.value = arrResult[0][52];
|
|
fm.ProvinceCode.value = arrResult[0][53];
|
|
fm.ProvinceName.value = arrResult[0][54];
|
|
fm.CityCode.value = arrResult[0][55];
|
|
fm.CityName.value = arrResult[0][56];
|
|
fm.CountyCode.value = arrResult[0][57];
|
|
fm.CountyName.value = arrResult[0][58];
|
|
fm.DetailAddress.value = arrResult[0][59];
|
|
//fm.SubCustomerName.value = arrResult[0][61];
|
|
|
|
// 查询职业类别
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorRRSql");
|
|
tSQLInfo.setSqlId("EdorRRSql2");
|
|
tSQLInfo.addSubPara(arrResult[0][18]);
|
|
var oarrResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
|
|
if(oarrResult !=null){
|
|
fm.OccupationType.value = oarrResult[0][0];
|
|
fm.OccupationTypeName.value = oarrResult[0][1];
|
|
}
|
|
|
|
fm.PositionName.value = '';
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 返回上一页面
|
|
*/
|
|
function returnBack(){
|
|
top.close();
|
|
}
|
|
|
|
|
|
/**
|
|
* 清除页面信息
|
|
*/
|
|
function clearPage(){
|
|
|
|
fm.ContPlanCode.value="";
|
|
fm.ContPlanCodeName.value="";
|
|
|
|
fm.relatomain.value="00";
|
|
fm.relatomainName.value="本人";
|
|
fm.mainCustName.value="";
|
|
fm.mainIDNo.value="";
|
|
fm.mainInsuredNo.value ="";
|
|
fm.InsuredName.value="";
|
|
fm.IDType.value="";
|
|
fm.IDTypeName.value="";
|
|
fm.IDNo.value="";
|
|
fm.InsuredGender.value="";
|
|
fm.InsuredGenderName.value="";
|
|
fm.InsuredBirthDay.value="";
|
|
fm.InsuredAppAge.value="";
|
|
|
|
fm.OccupationCode.value="";
|
|
fm.OccupationCodeName.value="";
|
|
fm.OccupationType.value="";
|
|
fm.OccupationTypeName.value="";
|
|
fm.ZipCode.value="";
|
|
fm.EMail.value="";
|
|
fm.MicroNo.value="";
|
|
fm.Phone.value="";
|
|
fm.Mobile.value="";
|
|
fm.ProvinceName.value="";
|
|
fm.ProvinceCode.value="";
|
|
fm.CityName.value="";
|
|
fm.CityCode.value="";
|
|
fm.CountyName.value="";
|
|
fm.CountyCode.value="";
|
|
fm.DetailAddress.value="";
|
|
|
|
fm.ServerArea.value="";
|
|
fm.ServiceArName.value="";
|
|
fm.Substandard.value="";
|
|
fm.SubstandardName.value="";
|
|
fm.Social.value="0";
|
|
fm.SocialName.value="无";
|
|
|
|
fm.Position.value="";
|
|
fm.PositionName.value="";
|
|
fm.JoinCompDate.value="";
|
|
fm.Seniority.value="";
|
|
fm.Salary.value="";
|
|
|
|
fm.HeadBankCode.value="";
|
|
fm.BankCodeName.value="";
|
|
fm.AccName.value="";
|
|
fm.BankAccNo.value="";
|
|
fm.BankProvince.value="";
|
|
fm.BankProvinceName.value="";
|
|
fm.BankCity.value="";
|
|
fm.BankCityName.value="";
|
|
fm.WorkIDNo.value="";
|
|
fm.ISLongValid.value="";
|
|
fm.ISLongValidName.value="";
|
|
fm.LiscenceValidDate.value="";
|
|
fm.ComponyName.value="";
|
|
fm.DeptCode.value="";
|
|
fm.InsureCode.value="";
|
|
//fm.SubCustomerNo.value="";
|
|
//fm.SubCustomerName.value="";
|
|
fm.WorkAddress.value="";
|
|
fm.SocialAddress.value="";
|
|
|
|
fm.mainCustNameTemp.value="";
|
|
fm.InsuredNameTemp.value ="";
|
|
fm.edorValDate.value="";
|
|
fm.Serialno.value = "";
|
|
|
|
mainname.style.display="none";
|
|
mainname1.style.display="none";
|
|
mainIDNo.style.display="none";
|
|
mainCustNo1.style.display="none";
|
|
}
|
|
|
|
|
|
/**
|
|
* 查询附属被保人信息
|
|
*/
|
|
|
|
function showRelationtoMain(mainName,mainIDNO){
|
|
|
|
var querySql = "";
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorRRSql");
|
|
tSQLInfo.setSqlId("EdorRRSql8");
|
|
tSQLInfo.addSubPara(mainName);
|
|
tSQLInfo.addSubPara(mainIDNO);
|
|
tSQLInfo.addSubPara(fm.GrpPropNo.value);
|
|
tSQLInfo.addSubPara(fm.EdorAppNo.value);
|
|
tSQLInfo.addSubPara(fm.EdorType.value);
|
|
tSQLInfo.addSubPara(fm.BatchNo.value);
|
|
|
|
var arrResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
|
|
if(arrResult !='0'){
|
|
divQuerySpe.style.display="";
|
|
var querySql = "";
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorRRSql");
|
|
tSQLInfo.setSqlId("EdorRRSql9");
|
|
tSQLInfo.addSubPara(fm.GrpPropNo.value);
|
|
tSQLInfo.addSubPara(fm.EdorAppNo.value);
|
|
tSQLInfo.addSubPara(mainName);
|
|
tSQLInfo.addSubPara(mainIDNO);
|
|
tSQLInfo.addSubPara(fm.EdorType.value);
|
|
tSQLInfo.addSubPara(fm.BatchNo.value);
|
|
|
|
turnPage2.queryModal(tSQLInfo.getString(), QueryInfoGrid, 1,1,10);
|
|
}else{
|
|
divQuerySpe.style.display="none";
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 查询受益人信息
|
|
*/
|
|
function queryBnf(insuredid){
|
|
|
|
var querySql = "";
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorRRSql");
|
|
tSQLInfo.setSqlId("EdorRRSql11");
|
|
tSQLInfo.addSubPara(fm.EdorAppNo.value);
|
|
tSQLInfo.addSubPara(insuredid);
|
|
tSQLInfo.addSubPara(fm.BatchNo.value);
|
|
turnPage3.queryModal(tSQLInfo.getString(), BnfGrid, 1,1,10);
|
|
}
|
|
|
|
/**
|
|
* 查询非固定保额信息
|
|
*/
|
|
function queryUnFixedAmnt(insuredid){
|
|
|
|
divQueryShow.style.display="";
|
|
var querySql = "";
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorNISql");
|
|
tSQLInfo.setSqlId("EdorNISql13");
|
|
tSQLInfo.addSubPara(fm.EdorAppNo.value);
|
|
tSQLInfo.addSubPara(fm.GrpPropNo.value);
|
|
tSQLInfo.addSubPara(fm.BatchNo.value);
|
|
tSQLInfo.addSubPara(insuredid);
|
|
tSQLInfo.addSubPara(fm.EdorType.value);
|
|
|
|
turnPage4.queryModal(tSQLInfo.getString(), AmntGrid, 1,1,10);
|
|
|
|
}
|
|
|
|
/**
|
|
* 校验详细地址信息
|
|
*/
|
|
function checkCity(){
|
|
var ProvinceCode =document.all('ProvinceCode').value;
|
|
var CityCode =document.all('CityCode').value;
|
|
var CountyCode =document.all('CountyCode').value;
|
|
|
|
if(ProvinceCode !=""){
|
|
if(CityCode ==''){
|
|
CityCode ='0';
|
|
}
|
|
if(CountyCode ==''){
|
|
CountyCode ='0';
|
|
}
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setResourceName("g_pos.EdorBBSql");
|
|
tSQLInfo.setSqlId("EdorBBSql4");
|
|
tSQLInfo.addSubPara(ProvinceCode);
|
|
tSQLInfo.addSubPara(CityCode);
|
|
tSQLInfo.addSubPara(CountyCode);
|
|
|
|
var arrResult = easyExecSql(tSQLInfo.getString());
|
|
if(arrResult =='0'){
|
|
i18nAlert("联系地址不存在或者关联不正确", "LIS-03657");
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
|
|
|