48 lines
2.1 KiB
Plaintext
48 lines
2.1 KiB
Plaintext
<%@page import="com.amarsoft.app.als.customer.model.CustomerConstant"%>
|
|
<%@page import="com.amarsoft.app.als.sys.tools.RolesConstant"%>
|
|
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
|
|
|
String sSortno = CurOrg.getSortNo();
|
|
//通过DW模型产生ASDataObject对象doTemp
|
|
ASObjectModel doTemp = new ASObjectModel("ChangeCustomerList");
|
|
if(CurUser.hasRole(RolesConstant.ROLE_MANAGE)){
|
|
doTemp.appendJboWhere("and CB.UserID= '"+CurUser.getUserID()+"' and (CustomerType like '01%' or CustomerType like '06%' or CustomerType like '02%' or CustomerType like '03%') and CB.BELONGATTRIBUTE='"+CustomerConstant.HAVENO_1+"'");
|
|
}
|
|
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(sSortno);
|
|
String sButtons[][] = {
|
|
{"true","","Button","证件信息修改","证件信息修改","viewAndEdit()","","","",""},
|
|
{"true","","Button","查看修改历史","查看修改历史","viewHistory()","","","",""},
|
|
};
|
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
<script type="text/javascript">
|
|
/*~[Describe=查看及修改详情;InputParam=无;OutPutParam=无;]~*/
|
|
function viewAndEdit(){
|
|
var sCustomerID = getItemValue(0,getRow(),"CustomerID");
|
|
if (typeof(sCustomerID)=="undefined" || sCustomerID.length==0){
|
|
alert(getHtmlMessage('1'));//请选择一条信息!
|
|
return;
|
|
}else{
|
|
OpenPage("/SystemManage/SynthesisManage/ChangeCustomerInfo.jsp?CustomerID="+sCustomerID, "_self","");
|
|
}
|
|
}
|
|
|
|
/*~[Describe=查看更改历史记录;InputParam=无;OutPutParam=无;]~*/
|
|
function viewHistory(){
|
|
var sCustomerID = getItemValue(0,getRow(),"CustomerID");
|
|
if (typeof(sCustomerID)=="undefined" || sCustomerID.length==0){
|
|
alert(getHtmlMessage('1'));//请选择一条信息!
|
|
return;
|
|
}else{
|
|
OpenPage("/SystemManage/SynthesisManage/ChangeHistoryList.jsp?CustomerID="+sCustomerID, "_self","");
|
|
}
|
|
}
|
|
|
|
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |