2018-06-03 22:26:41 +08:00

46 lines
1.8 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
String PG_TITLE = "清理无效客户信息"; // 浏览器窗口标题 <title> PG_TITLE </title>
//通过DW模型产生ASObjectModel对象doTemp
ASObjectModel doTemp = new ASObjectModel("DeleteCustomerList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //设置DW风格 1:Grid 2:Freeform
dwTemp.ReadOnly = "1"; //设置是否只读 1:只读 0:可写
dwTemp.setPageSize(100);
//生成HTMLDataWindow
dwTemp.genHTMLObjectWindow(CurOrg.getSortNo()+","+CurPage.getUserId());
//add by hwang 20090615,新增无效客户清理说明信息
//(清理:概况、关联、申请、合同、担保信息均无的客户)
String sButtons[][] = {
{"true","","Button","清理","清理无效客户信息","clearCustomer()","","","",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
/*~[Describe=清理无效客户;InputParam=无;OutPutParam=无;]~*/
function clearCustomer(){
var sCustomerID = getItemValue(0,getRow(),"CustomerID");
var sCustomerType = getItemValue(0,getRow(),"CustomerType");
if (typeof(sCustomerID)=="undefined" || sCustomerID.length==0){
alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
if(!confirm("确认要清理吗?")) return ;
sReturn = RunJavaMethodTrans("com.amarsoft.app.als.customer.action.DeleteCustomerAction", "deleteCustomer", "CustomerID="+sCustomerID+",CustomerType="+sCustomerType);
if(typeof(sReturn) != "undefined" && sReturn != "")
{
PopPage("/Common/WorkFlow/CheckActionView.jsp?Flag="+sReturn,"","resizable=yes;dialogWidth=45;dialogHeight=40;center:yes;status:no;statusbar:no");
return;
}
alert(getBusinessMessage('947'));//无效客户被成功清理!
reloadSelf();
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>