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

42 lines
1.7 KiB
Plaintext

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
String orgCompany=CurUser.getOrgID();
String customerId=CurPage.getParameter("customerId");
String id=CurPage.getParameter("id");
String rightType = CurPage.getParameter("rightType");
if(id ==null)id="";
if(customerId ==null)customerId="";
if(rightType ==null)rightType="";
String sTempletNo = "CustomerAttribution";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setDefaultValue("nationCode","CHN");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
if(rightType.equals("ReadOnly")){//控制页面只读
dwTemp.ReadOnly="1";
}
dwTemp.genHTMLObjectWindow(id);
CurPage.getCurComp().setAttribute("RightType", rightType);
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","saveRecord()","","","",""},
{"true","","Button","返回","返回列表","goBack()","","","","btn_icon_return"}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function saveRecord(){
as_save("myiframe0");
}
function goBack(){
CHANGED=false;
AsControl.OpenView("/Tenwa/Customer/Lessee/Comm/Attribution/CustomerAttributionList.jsp", "customerId=<%=customerId%>","_self","");
}
function selectUser(){
var sUserID = getItemValue(0,getRow(),"userid");
var sUserName = getItemValue(0,getRow(),"username");
AsDialog.SetTreeValue("SelectUserName", '<%=orgCompany%>'+'%', "userid=USERID@username=USERNAME","USERID","USERNAME", [sUserID,sUserName], false, true);
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>