/*************************************************************** *

ProName:LCGrpQueryAgentComInput.js

*

Title:查询中介机构

*

Description:查询中介机构

*

Copyright:Copyright (c) 2012

*

Company:Sinosoft

* @author : 蔡云聪 * @version : 8.0 * @date : 2014-05-14 ****************************************************************/ var showInfo; var turnPage = new turnPageClass(); var turnPage1 = new turnPageClass(); var tSQLInfo = new SqlClass(); /** * 查询信息 */ function queryAgent() { var tComAgentType=""; if (tSaleChnl == "02") { tComAgentType = "04";//经纪公司 } else if (tSaleChnl == "03") { tComAgentType = "03";//专业代理公司 } else if (tSaleChnl == "04") { tComAgentType = "02";//兼业代理公司 } if(tFlag=='0'){ tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_nb"); tSQLInfo.setResourceName("g_app.LCGrpQueryManagerSql"); tSQLInfo.setSqlId("LCGrpQueryManagerSql3"); tSQLInfo.addSubPara(document.all('AgentName').value); tSQLInfo.addSubPara(tComAgentType); tSQLInfo.addSubPara(fm.ManageCom.value); tSQLInfo.addSubPara(tBranchType); turnPage1.queryModal(tSQLInfo.getString(), AgentGrid, 1, 1); if (!turnPage1.strQueryResult) { i18nAlert("未查询到符合条件的查询结果!", "LIS-03016"); } } else if(tFlag=='1') { tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_nb"); tSQLInfo.setResourceName("g_app.LCGrpQueryManagerSql"); tSQLInfo.setSqlId("LCGrpQueryManagerSql4"); tSQLInfo.addSubPara(document.all('AgentName').value); tSQLInfo.addSubPara(tManageCom); tSQLInfo.addSubPara(NullToEmpty(tSaleDepart)); tSQLInfo.addSubPara(NullToEmpty(tChnlType)); tSQLInfo.addSubPara(NullToEmpty(tSaleChnl)); turnPage1.queryModal(tSQLInfo.getString(), AgentGrid,1,1); if (!turnPage1.strQueryResult) { i18nAlert("未查询到符合条件的查询结果!", "LIS-03016"); } } else if(tFlag=='2') { tSQLInfo = new SqlClass(); tSQLInfo.setModule("grp_nb"); tSQLInfo.setResourceName("g_app.LCGrpQueryManagerSql"); tSQLInfo.setSqlId("LCGrpQueryManagerSql6"); tSQLInfo.addSubPara(document.all('AgentName').value); tSQLInfo.addSubPara(NullToEmpty(tSaleChnl)); tSQLInfo.addSubPara(tManageCom); turnPage1.queryModal(tSQLInfo.getString(), AgentGrid,1,1); if (!turnPage1.strQueryResult) { i18nAlert("未查询到符合条件的查询结果!", "LIS-03016"); } } } /*** * 返回信息 */ function returnAgent() { if(tFlag=='0'){ var tSelNo = AgentGrid.getSelNo()-1; if (tSelNo<0) { i18nAlert("请选中一条中介机构信息记录!", "LIS-01505"); return false; } var tAgentCom = AgentGrid.getRowColData(tSelNo,1); var tAgentName = AgentGrid.getRowColData(tSelNo,2); top.opener.AgentComGrid.setRowColData(tMulLineNo,1,tAgentCom); top.opener.AgentComGrid.setRowColData(tMulLineNo,2,tAgentName); top.close(); }else if(tFlag=='1'){ var tSelNo = AgentGrid.getSelNo()-1; if (tSelNo<0) { i18nAlert("请选中一条网点机构信息记录!", "LIS-01506"); return false; } var tAgentCom = AgentGrid.getRowColData(tSelNo,1); var tAgentName = AgentGrid.getRowColData(tSelNo,2); top.opener.AgentComGrid.setRowColData(tMulLineNo,3,tAgentCom); top.opener.AgentComGrid.setRowColData(tMulLineNo,4,tAgentName); top.close(); }else{ var tSelNo = AgentGrid.getSelNo()-1; if (tSelNo<0) { i18nAlert("请选中一条中介机构信息记录!", "LIS-01505"); return false; } var tAgentCom = AgentGrid.getRowColData(tSelNo,1); var tAgentName = AgentGrid.getRowColData(tSelNo,2); top.opener.ZJGrid.setRowColData(tMulLineNo,1,tAgentCom); top.opener.ZJGrid.setRowColData(tMulLineNo,2,tAgentName); top.close(); } }