49 lines
1.9 KiB
Plaintext
49 lines
1.9 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
|
String rightType = CurPage.getParameter("rightType");
|
|
if(rightType == null) rightType = "";
|
|
String group_id = CurPage.getParameter("group_id");
|
|
String id = CurPage.getParameter("id");
|
|
if(group_id == null) group_id = "";
|
|
String sTempletNo = "DistributorGroupRelation";//--模板号--
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
if(rightType.equals("ReadOnly")){
|
|
dwTemp.ReadOnly = "1";//只读模式
|
|
}
|
|
CurPage.getCurComp().setAttribute("RightType", rightType);
|
|
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
|
|
String sButtons[][] = {
|
|
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
|
|
{"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","parent.AsDialog.ClosePage()");
|
|
}
|
|
//返回
|
|
function goBack(){
|
|
parent.AsDialog.ClosePage();
|
|
reloadSelf();
|
|
}
|
|
//从数据库表中取客户名称
|
|
function selectCustomerName(){
|
|
AsDialog.OpenSelector("selectdistriInfo","","dialogWidth=" + parseInt(window.screen.width * 0.7) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
|
|
if(!sReturn||sReturn=="_CANCEL_"){
|
|
//alert(getHtmlMessage('1'));//请选择一条信息!
|
|
return;
|
|
}
|
|
sReturn = sReturn.split("@");
|
|
setItemValue(0,0,"distributor_id",sReturn[0]);
|
|
setItemValue(0,0,"DISTRIBUTOR_CODING",sReturn[1]);
|
|
setItemValue(0,0,"DISTRIBUTOR_NAME",sReturn[2]);
|
|
setItemValue(0,0,"group_id",'<%=id%>');
|
|
},"请选择集团客户成员",'');
|
|
}
|
|
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |