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.
618 lines
23 KiB
618 lines
23 KiB
//该文件中包含客户端需要处理的函数和事件
|
|
var mDebug = "0";
|
|
var mOperate = "";
|
|
var showInfo;
|
|
var arrDataSet;
|
|
var turnPage = new turnPageClass();
|
|
var QueryResult = "";
|
|
var QueryCount = 0;
|
|
var mulLineCount = 0;
|
|
var QueryWhere = "";
|
|
var initDataSet;
|
|
var arrResult = new Array();
|
|
var arrResult2 = new Array();
|
|
window.onfocus = myonfocus;
|
|
var tSQLInfo = new SqlClass();
|
|
|
|
var turnPage1 = new turnPageClass();
|
|
var turnPage2 = new turnPageClass();
|
|
var turnPage3 = new turnPageClass();
|
|
|
|
|
|
//显示div,第一个参数为一个div的引用,第二个参数为是否显示,如果为"true"则显示,否则不显示
|
|
function showDiv(cDiv, cShow) {
|
|
if (cShow == "true") {
|
|
cDiv.style.display = "";
|
|
} else {
|
|
cDiv.style.display = "none";
|
|
}
|
|
}
|
|
|
|
//显示frmSubmit框架,用来调试
|
|
function showSubmitFrame(cDebug) {
|
|
if (cDebug == "1") {
|
|
parent.fraMain.rows = "0,0,0,0,*";
|
|
} else {
|
|
parent.fraMain.rows = "0,0,0,82,*";
|
|
}
|
|
parent.fraMain.rows = "0,0,0,0,*";
|
|
}
|
|
|
|
//数据提交(保存)
|
|
function submitForm() {
|
|
|
|
if (fm.all('RiskCode').value == null || fm.all('RiskCode').value.length == 0) {
|
|
alert("请选择险种");
|
|
return false;
|
|
}
|
|
|
|
for (let i = 0; i <=AccTriggerGrid.getRowColData.length ; i++) {
|
|
var aa = AccTriggerGrid.getRowColData(i, 4);
|
|
if(aa === "00" || aa === "01" || aa === "02"){
|
|
|
|
}else{
|
|
alert("序号为"+ (i+1) +"行,请选择红利处理方式");
|
|
return false;
|
|
}
|
|
}
|
|
|
|
document.getElementById("fm").action = "../API/grp_pa/g_pos/GEdorTypeBMSubmit/ADD";
|
|
|
|
|
|
fm.all('mOperate').value = "INSERT||MAIN";
|
|
var showStr = "正在保存数据,请您稍候并且不要修改屏幕上的值或链接其他页面";
|
|
var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content=" + showStr;
|
|
// showInfo=window.showModelessDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px");
|
|
var name = '提示'; //网页名称,可为空;
|
|
var iWidth = 550; //弹出窗口的宽度;
|
|
var iHeight = 350; //弹出窗口的高度;
|
|
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();
|
|
|
|
ajaxSubmit2(fm);
|
|
fm.submit(); //提交
|
|
|
|
}
|
|
|
|
function afterSubmit(FlagStr, content) {
|
|
showInfo.close();
|
|
if (FlagStr == "Fail") {
|
|
var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content=" + content;
|
|
// showModalDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:350px");
|
|
var name = '提示'; //网页名称,可为空;
|
|
var iWidth = 550; //弹出窗口的宽度;
|
|
var iHeight = 350; //弹出窗口的高度;
|
|
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 {
|
|
content = "操作成功!";
|
|
var urlStr = "../common/jsp/MessagePage.jsp?picture=S&content=" + content;
|
|
// showModalDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:350px");
|
|
var name = '提示'; //网页名称,可为空;
|
|
var iWidth = 550; //弹出窗口的宽度;
|
|
var iHeight = 350; //弹出窗口的高度;
|
|
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();
|
|
// initForm();
|
|
}
|
|
afterCodeSelect("GrpRisk", fm.all('RiskCode'));
|
|
}
|
|
|
|
|
|
function returnParent() {
|
|
var ButtonFlag;
|
|
try {
|
|
ButtonFlag = top.opener.fm.all('ButtonFlag').value;
|
|
} catch (E) {
|
|
ButtonFlag = "1";
|
|
}
|
|
if (!(ButtonFlag != null && ButtonFlag == "1")) {
|
|
try {
|
|
top.opener.initForm();
|
|
} catch (E) {
|
|
}
|
|
try {
|
|
top.opener.initForm();
|
|
} catch (E) {
|
|
}
|
|
}
|
|
top.opener.initForm();
|
|
top.close();
|
|
}
|
|
|
|
|
|
|
|
function Edorquery() {
|
|
try {
|
|
var ButtonFlag = top.opener.fm.all('ButtonFlag').value;
|
|
if (ButtonFlag != null && ButtonFlag == "1") {
|
|
divEdorquery1.style.display = "";
|
|
} else {
|
|
divEdorquery.style.display = "";
|
|
}
|
|
} catch (E) {
|
|
divEdorquery.style.display = "";
|
|
}
|
|
}
|
|
|
|
|
|
function afterCodeSelect(cCodeName, Field) {
|
|
try {
|
|
|
|
if (cCodeName == 'accscope') {
|
|
if (Field.value == '00') {
|
|
fm.all('subRiskAccCode').style.display = "none";
|
|
fm.all('RiskAccCode').style.display = '';
|
|
//fm.all('subRiskAccCode').style.visibility="hidden";
|
|
//fm.all('RiskAccCode').style.visibility="visible";
|
|
}
|
|
if (Field.value == '01') {
|
|
fm.all('RiskAccCode').style.display = "none";
|
|
fm.all('subRiskAccCode').style.display = '';
|
|
}
|
|
}
|
|
|
|
//alert(cCodeName);
|
|
if (cCodeName == 'subRiskAccCode') {
|
|
var str = Field.value;
|
|
var PayPlanCode = str.substring(0, 6);
|
|
//alert(PayPlanCode);
|
|
var InsuAccNo = str.substring(6, 12);
|
|
fm.all('PayPlanCode').value = PayPlanCode;
|
|
fm.all('InsuAccNo').value = InsuAccNo;
|
|
fm.all('ToPayPlanCode').value = PayPlanCode;
|
|
}
|
|
|
|
if (cCodeName == 'riskacccode') {
|
|
var str = Field.value;
|
|
var PayPlanCode = str.substring(0, 6);
|
|
var InsuAccNo = str.substring(6, 12);
|
|
fm.all('PayPlanCode').value = PayPlanCode;
|
|
fm.all('InsuAccNo').value = InsuAccNo;
|
|
fm.all('ToPayPlanCode').value = PayPlanCode;
|
|
}
|
|
|
|
if (cCodeName == 'actioncalmode') {
|
|
//alert(cCodeName);
|
|
try {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.EdorBMSql");
|
|
tSQLInfo.setSqlId("QueryLMAccTriggerPartInfo");
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.addSubPara(fm.PayPlanCode.value);
|
|
tSQLInfo.addSubPara(fm.InsuAccNo.value);
|
|
tSQLInfo.addSubPara(fm.ActionCalMode.value);
|
|
|
|
// var strSQL = "select ActionCalModeType,ActionCalCode,Value,CompareValue from LMAccTrigger where 1=1" +
|
|
// getWherePart("PayPlanCode") + getWherePart("InsuAccNo") + getWherePart("ActionCalMode");
|
|
var arrResult = easyExecSql(tSQLInfo.getString());
|
|
|
|
if (arrResult != null) {
|
|
// turnPage.arrDataCacheSet = decodeEasyQueryResult(turnPage.strQueryResult);
|
|
fm.ActionCalModeType.value = arrResult[0][0];
|
|
fm.ActionCalCode.value = arrResult[0][1];
|
|
if (arrResult[0][2] != 'null')
|
|
fm.Value.value = arrResult[0][2];
|
|
else
|
|
fm.Value.value = '';
|
|
|
|
if (arrResult[0][3] != 'null')
|
|
fm.CompareValue.value = arrResult[0][3];
|
|
else
|
|
fm.CompareValue.value = '';
|
|
}
|
|
//fm.Value.value='0000';
|
|
} catch (ex) {
|
|
alert("出现异常" + ex);
|
|
}
|
|
|
|
}
|
|
|
|
if (cCodeName == 'GrpRisk') {
|
|
getGrpPolNo();
|
|
//加载当前险种(分红险)的缴费帐户
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.EdorBMSql");
|
|
tSQLInfo.setSqlId("QueryLPGrpAccTriggerExists");
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.addSubPara(EdorNo);
|
|
tSQLInfo.addSubPara(EdorType);
|
|
|
|
// var strSQL = "select * from LPGrpAccTrigger where edorno ='" + fm.EdorNo.value + "' and edortype ='"+ fm.EdorType.value + "'";
|
|
var resultCh = easyExecSql(tSQLInfo.getString());
|
|
var strRiskCode = Field.value;
|
|
|
|
if (resultCh != null ) {
|
|
|
|
if(ActivityID =="null"){
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.EdorBMSql");
|
|
tSQLInfo.setSqlId("QueryLMRiskAccPayByRiskCodeandInsuaccNo2");
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.addSubPara(GrpContNo);
|
|
tSQLInfo.addSubPara(strRiskCode);
|
|
|
|
turnPage3.queryModal(tSQLInfo.getString(), AccTriggerGrid);
|
|
}else{
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.EdorBMSql");
|
|
tSQLInfo.setSqlId("QueryLMRiskAccPayByRiskCodeandInsuaccNo");
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.addSubPara(GrpContNo);
|
|
tSQLInfo.addSubPara(EdorNo);
|
|
tSQLInfo.addSubPara(EdorType);
|
|
tSQLInfo.addSubPara(strRiskCode);
|
|
tSQLInfo.addSubPara(strRiskCode);
|
|
|
|
|
|
turnPage3.queryModal(tSQLInfo.getString(), AccTriggerGrid);
|
|
}
|
|
|
|
} else {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.EdorBMSql");
|
|
tSQLInfo.setSqlId("QueryLMRiskAccPayByRiskCodeandInsuaccNo2");
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.addSubPara(GrpContNo);
|
|
tSQLInfo.addSubPara(strRiskCode);
|
|
|
|
turnPage3.queryModal(tSQLInfo.getString(), AccTriggerGrid);
|
|
}
|
|
}
|
|
|
|
if (cCodeName == 'toobjecttype') {
|
|
if (Field.value == '00') {
|
|
fm.ToObject.value = '00';
|
|
if (fm.InsuAccNo.value == '') {
|
|
alert("保险账户号码为空");
|
|
changeText(false);
|
|
return false;
|
|
}
|
|
fm.ToInsuAccNo.value = fm.InsuAccNo.value;
|
|
fm.ToPolNo.value = '';
|
|
fm.ToDutycode.value = '';
|
|
changeText(true);
|
|
//fm.ToPolNo.readOnly=true;
|
|
}
|
|
if (Field.value == '01') {
|
|
fm.ToObject.value = '01';
|
|
if (InsuAcc("002") == false)
|
|
return false;
|
|
fm.ToPolNo.value = '';
|
|
fm.ToDutycode.value = '';
|
|
changeText(true);
|
|
//fm.ToInsuAccNo.value='000002';
|
|
}
|
|
if (Field.value == '02') {
|
|
fm.ToObject.value = '02';
|
|
if (companyAcc("002") == false)
|
|
return false;
|
|
changeText(true);
|
|
}
|
|
if (Field.value == '03') {
|
|
fm.ToObject.value = '02';
|
|
if (companyAcc("001") == false)
|
|
return false;
|
|
changeText(true);
|
|
}
|
|
}
|
|
} catch (ex) {
|
|
}
|
|
}
|
|
|
|
function InsuAcc(AccType) {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.EdorBMSql");
|
|
tSQLInfo.setSqlId("QueryInsuaccNoByLMRiskInsuaccAndLMRiskToAcc");
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.addSubPara(fm.RiskCode.value);
|
|
tSQLInfo.addSubPara(AccType);
|
|
|
|
// var sql = "select lmi.insuaccno from lmriskinsuacc lmi,lmrisktoacc lmt where lmi.insuaccno=lmt.insuaccno " +
|
|
// "and lmt.riskcode='" + fm.RiskCode.value + "' and lmi.acctype='" + AccType + "'";
|
|
var InsuResult = easyExecSql(tSQLInfo.getString());
|
|
if (InsuResult == null) {
|
|
alert("没有查到红利账户信息,请自已添写");
|
|
changeText(false);
|
|
return false;
|
|
}
|
|
// var InsuDataSet = decodeEasyQueryResult(InsuResult);
|
|
fm.ToInsuAccNo.value = InsuResult[0][0];
|
|
}
|
|
|
|
function companyAcc(AccType) {
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.EdorBMSql");
|
|
tSQLInfo.setSqlId("QueryPolNoBylcpol");
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.addSubPara(fm.GrpPolNo.value);
|
|
|
|
// var strSQL = "select polno from lcpol where poltypeflag='2' and grppolno='" + fm.GrpPolNo.value + "'";
|
|
//alert(strSQL);
|
|
var accResult = easyExecSql(tSQLInfo.getString());
|
|
if (!accResult) {
|
|
alert("没有查到企业帐户,请自已添写");
|
|
changeText(false);
|
|
return false;
|
|
}
|
|
//var accDataSet=decodeEasyQueryResult(InsuResult);
|
|
//alert(accResult.length);
|
|
if (accResult.length > 1) {
|
|
alert("保单险种下有多个企业账户,请自已添写");
|
|
changeText(false);
|
|
return false;
|
|
}
|
|
fm.ToPolNo.value = accResult[0];
|
|
InsuAcc(AccType);
|
|
}
|
|
|
|
function changeText(ble) {
|
|
fm.ToObject.readOnly = ble;
|
|
fm.ToInsuAccNo.readOnly = ble;
|
|
fm.ToPolNo.readOnly = ble;
|
|
fm.ToDutycode.readOnly = ble;
|
|
}
|
|
|
|
|
|
function showAccTrigger() {
|
|
var i = AccTriggerGrid.getSelNo();
|
|
var j = i - 1;
|
|
//alert(j);
|
|
fm.GrpPolNo.value = initDataSet[j][0];
|
|
fm.RiskCode.value = initDataSet[j][2];
|
|
fm.AccType.value = initDataSet[j][3];
|
|
if (fm.AccType.value == '00') {
|
|
fm.RiskAccCode.style.display = '';
|
|
fm.subRiskAccCode.style.display = "none";
|
|
fm.RiskAccCode.value = initDataSet[j][4] + initDataSet[j][5];
|
|
}
|
|
if (fm.AccType.value == '01') {
|
|
fm.RiskAccCode.style.display = "none";
|
|
fm.subRiskAccCode.style.display = "";
|
|
fm.subRiskAccCode.value = initDataSet[j][4] + initDataSet[j][5];
|
|
}
|
|
fm.PayPlanCode.value = initDataSet[j][4];
|
|
fm.InsuAccNo.value = initDataSet[j][5];
|
|
fm.RiskAccPayName.value = initDataSet[j][6];
|
|
fm.ChgType.value = initDataSet[j][7];
|
|
fm.ChgOperationType.value = initDataSet[j][8];
|
|
fm.TriggerOrder.value = initDataSet[j][9];
|
|
fm.Action.value = initDataSet[j][10];
|
|
fm.ActionObject.value = initDataSet[j][12];
|
|
fm.ActionCalMode.value = initDataSet[j][13];
|
|
fm.ActionCalModeType.value = initDataSet[j][14];
|
|
fm.ActionCalCode.value = initDataSet[j][15];
|
|
fm.Value.value = initDataSet[j][16];
|
|
fm.CompareValue.value = initDataSet[j][17];
|
|
fm.ToObject.value = initDataSet[j][18];
|
|
fm.ToObjectType.value = initDataSet[j][19];
|
|
fm.ToPolNo.value = initDataSet[j][20];
|
|
fm.ToDutycode.value = initDataSet[j][21];
|
|
fm.ToPayPlanCode.value = initDataSet[j][22];
|
|
fm.ToInsuAccNo.value = initDataSet[j][23];
|
|
}
|
|
|
|
|
|
function updateForm() {
|
|
|
|
if (AccTriggerGrid.getSelNo() == 0) {
|
|
alert("请选择要修改的记录");
|
|
return false;
|
|
}
|
|
if (verifyInput2() == false) return false;
|
|
fm.all('mOperate').value = "UPDATE";
|
|
var showStr = "正在保存数据,请您稍候并且不要修改屏幕上的值或链接其他页面";
|
|
var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content=" + showStr;
|
|
// showInfo=window.showModelessDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px");
|
|
var name = '提示'; //网页名称,可为空;
|
|
var iWidth = 550; //弹出窗口的宽度;
|
|
var iHeight = 350; //弹出窗口的高度;
|
|
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.submit();//修改
|
|
}
|
|
|
|
function deleteForm() {
|
|
if (AccTriggerGrid.getSelNo() == 0) {
|
|
alert("请选择要删除的记录");
|
|
return false;
|
|
}
|
|
if (!confirm("真的要删除这条记录吗?")) {
|
|
return false;
|
|
}
|
|
if (verifyInput2() == false) return false;
|
|
fm.all('mOperate').value = 'DELETE';
|
|
var showStr = "正在保存数据,请您稍候并且不要修改屏幕上的值或链接其他页面";
|
|
var urlStr = "../common/jsp/MessagePage.jsp?picture=C&content=" + showStr;
|
|
// showInfo=window.showModelessDialog(urlStr,window,"status:no;help:0;close:0;dialogWidth:550px;dialogHeight:250px");
|
|
var name = '提示'; //网页名称,可为空;
|
|
var iWidth = 550; //弹出窗口的宽度;
|
|
var iHeight = 350; //弹出窗口的高度;
|
|
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.submit();//删除
|
|
}
|
|
|
|
function getGrpPolNo() {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.EdorBMSql");
|
|
tSQLInfo.setSqlId("QueryGrpPolNoByLCGrpPol");
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.addSubPara(GrpContNo);
|
|
tSQLInfo.addSubPara(fm.RiskCode.value);
|
|
|
|
// var strSQL = "select a.GrpPolNo from LCGrpPol a where a.GrpContNo='" + fm.GrpContNo.value + "' and a.RiskCode='" + fm.RiskCode.value + "'";
|
|
var accResult = easyExecSql(tSQLInfo.getString(), 1, 0, 1);
|
|
if (accResult != null) {
|
|
// turnPage.arrDataCacheSet = decodeEasyQueryResult(turnPage.strQueryResult);
|
|
fm.all('GrpPolNo').value = accResult[0][0];
|
|
}
|
|
}
|
|
|
|
function GrpPerPolDefine() {
|
|
// var queryGrpContInfo = new Array();
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.EdorBMSql");
|
|
tSQLInfo.setSqlId("QueryLCGrpContInfo");
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.addSubPara(GrpContNo);
|
|
tSQLInfo.addSubPara(EdorAppNo);
|
|
|
|
|
|
// queryGrpContInfo = easyExecSql(tSQLInfo.getString());
|
|
|
|
// var strSQL;
|
|
// strSQL = "select GrpContNo,ProposalGrpContNo,ManageCom,AppntNo,GrpName from LCGrpCont where GrpContNo = '" +fm.GrpContNoIn.value+ "'";
|
|
var arrResult = easyExecSql(tSQLInfo.getString());
|
|
if (arrResult != null) {
|
|
|
|
// turnPage.arrDataCacheSet = decodeEasyQueryResult(turnPage.strQueryResult);
|
|
|
|
//fm.all('GrpContNo').value = turnPage.arrDataCacheSet[0][0];
|
|
|
|
fm.all('ProposalGrpContNo').value = arrResult[0][1];
|
|
|
|
//fm.all('ManageCom').value = turnPage.arrDataCacheSet[0][2];
|
|
|
|
fm.all('AppntNo').value = arrResult[0][3];
|
|
fm.all('GrpName').value = arrResult[0][4];
|
|
fm.all('EdorItemAppDate').value = arrResult[0][5];
|
|
fm.all('EdorValiDate').value = arrResult[0][6];
|
|
}
|
|
return;
|
|
}
|
|
|
|
function GrpPerPolDefineOld() {
|
|
// 初始化表格
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.EdorBMSql");
|
|
tSQLInfo.setSqlId("QueryLCGrpAccTriggerPartInfo");
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.addSubPara(GrpContNo);
|
|
// var strSQL = "";
|
|
// strSQL = " select RiskCode,AccType,PayPlanCode,InsuAccNo,RiskAccPayName,chgtype," +
|
|
// "chgoperationtype,triggerorder,grppolno from LCGrpAccTrigger where GrpContNo='" + fm.GrpContNoIn.value + "'";
|
|
turnPage3 = new turnPageClass();
|
|
// turnPage3.strQueryResult = easyExecSql(tSQLInfo.getString());
|
|
|
|
turnPage3.queryModal(tSQLInfo.getString(), AccTriggerGrid)
|
|
// if (arrResult != null) {
|
|
// turnPage3.arrDataCacheSet = turnPage3.strQueryResult;
|
|
// turnPage3.pageDisplayGrid = AccTriggerGrid;
|
|
// turnPage3.strQuerySql = tSQLInfo.getString();
|
|
// turnPage3.pageIndex = 0;
|
|
// arrDataSet = turnPage3.getData(turnPage3.arrDataCacheSet, turnPage3.pageIndex, MAXSCREENLINES);
|
|
// getInitResult();
|
|
// }
|
|
return;
|
|
}
|
|
|
|
function getInitResult() {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.EdorBMSql");
|
|
tSQLInfo.setSqlId("QueryAllByLCGrpAccTrigger");
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.addSubPara(GrpContNo);
|
|
|
|
// var sql = "select * from LCGrpAccTrigger where GrpContNo='" + fm.GrpContNoIn.value + "'";
|
|
var query = easyExecSql(tSQLInfo.getString());
|
|
if (query != null) {
|
|
//initDataSet=decodeEasyQueryResult(query);
|
|
}
|
|
}
|
|
|
|
function check() {
|
|
if (fm.RiskCode.value == '' || fm.RiskCode.value == null) {
|
|
alert("请选择一个险种信息");
|
|
return false;
|
|
}
|
|
if (fm.AccType.value == '' || fm.AccType.value == null) {
|
|
alert("请先选择账户范围");
|
|
return false;
|
|
}
|
|
}
|
|
|
|
function check2() {
|
|
if (fm.all('PayPlanCode').value == '' || fm.all('PayPlanCode').value == null) {
|
|
alert("请选择险种账户编码!");
|
|
return false;
|
|
}
|
|
if (fm.all('InsuAccNo').value == '' && fm.all('InsuAccNo').value == null) {
|
|
alert("请选择险种账户编码!");
|
|
return false;
|
|
}
|
|
}
|
|
|
|
//查询险种帐户编码
|
|
function getRiskAcc() {
|
|
var strRiskCode = fm.all('RiskCode').value;
|
|
}
|
|
|
|
|
|
|
|
function lll(cCodeName){
|
|
if (cCodeName == 'GrpRisk') {
|
|
getGrpPolNo();
|
|
//加载当前险种(分红险)的缴费帐户
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.EdorBMSql");
|
|
tSQLInfo.setSqlId("QueryLPGrpAccTriggerExists");
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.addSubPara(EdorNo);
|
|
tSQLInfo.addSubPara(EdorType);
|
|
|
|
var resultCh = easyExecSql(tSQLInfo.getString());
|
|
var strRiskCode = Field.value;
|
|
|
|
if (resultCh != null) {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.EdorBMSql");
|
|
tSQLInfo.setSqlId("QueryLMRiskAccPayByRiskCodeandInsuaccNo");
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.addSubPara(GrpContNo);
|
|
tSQLInfo.addSubPara(EdorNo);
|
|
tSQLInfo.addSubPara(EdorType);
|
|
tSQLInfo.addSubPara(strRiskCode);
|
|
|
|
turnPage3.queryModal(tSQLInfo.getString(), AccTriggerGrid);
|
|
} else {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.EdorBMSql");
|
|
tSQLInfo.setSqlId("QueryLMRiskAccPayByRiskCodeandInsuaccNo2");
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.addSubPara(GrpContNo);
|
|
tSQLInfo.addSubPara(strRiskCode);
|
|
|
|
turnPage3.queryModal(tSQLInfo.getString(), AccTriggerGrid);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|