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.
53 lines
1.5 KiB
53 lines
1.5 KiB
/***************************************************************
|
|
* <p>ProName:PreCustomerManagerInput.js</p>
|
|
* <p>Title:查询客户经理</p>
|
|
* <p>Description:查询客户经理</p>
|
|
* <p>Copyright:Copyright (c) 2012</p>
|
|
* <p>Company:Sinosoft</p>
|
|
* @author : 蔡云聪
|
|
* @version : 8.0
|
|
* @date : 2014-07-31
|
|
****************************************************************/
|
|
|
|
var showInfo;
|
|
var turnPage = new turnPageClass();
|
|
var turnPage1 = new turnPageClass();
|
|
var tSQLInfo = new SqlClass();
|
|
|
|
/**
|
|
* 查询客户经理信息
|
|
*/
|
|
function queryManager() {
|
|
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_customer.PreCustomerManagerQuerySql");
|
|
tSQLInfo.setModule("grp_customer");
|
|
tSQLInfo.setSqlId("PreCustomerManagerQuerySql2");
|
|
tSQLInfo.addSubPara(document.all("CustomerName").value);
|
|
tSQLInfo.addSubPara(tManageCom);
|
|
turnPage1.queryModal(tSQLInfo.getString(), ManagerGrid, 1, 1);
|
|
|
|
if (!turnPage1.strQueryResult) {
|
|
i18nAlert("未查询到符合条件的查询结果!", "LIS-03016");
|
|
}
|
|
}
|
|
|
|
/***
|
|
* 返回准客户名
|
|
*/
|
|
function returnManager() {
|
|
|
|
var tSelNo = ManagerGrid.getSelNo()-1;
|
|
if (tSelNo<0) {
|
|
i18nAlert("请选中一条客户经理信息记录!", "LIS-03745");
|
|
return false;
|
|
}
|
|
var tManagerrNo = ManagerGrid.getRowColData(tSelNo,1);
|
|
var tManagerName = ManagerGrid.getRowColData(tSelNo,2);
|
|
|
|
top.opener.document.all("SalerCode").value=tManagerrNo;
|
|
top.opener.document.all("SalerName").value=tManagerName;
|
|
|
|
top.close();
|
|
}
|
|
|
|
|