40 lines
2.0 KiB
Plaintext
40 lines
2.0 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_no = CurPage.getParameter("group_no");
|
|
if(group_no ==null)group_no="";
|
|
String group_name = CurPage.getParameter("group_name");
|
|
if(group_name ==null)group_name="";
|
|
String sTempletNo = "DistributorCustomerGroupCompany";//--模板号--
|
|
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
|
dwTemp.Style = "2";//freeform
|
|
if(rightType.equals("ReadOnly")){
|
|
dwTemp.ReadOnly = "1";//只读模式
|
|
}
|
|
dwTemp.genHTMLObjectWindow(CurPage.getParameter("group_no"));
|
|
CurPage.getCurComp().setAttribute("RightType", rightType);
|
|
String compClientID = request.getParameter("CompClientID");
|
|
dwTemp.replaceColumn("groupList", "<iframe type='iframe' name=\"frame_list_group\" width=\"100%\" height=\"250\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Customer/Group/Subcompany/DistributorCustomerGroupRelationList.jsp?group_no="+group_no+"&CompClientID="+sCompClientID+"\"></iframe>", CurPage.getObjectWindowOutput());
|
|
String sButtons[][] = {
|
|
{"true","All","Button","保存","保存","saveRecord()","","","","btn_icon_save"},
|
|
{"true","","Button","返回","返回列表","goBack()","","","","btn_icon_return"}
|
|
};
|
|
sButtonPosition = "north";
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
//保存
|
|
function saveRecord(){
|
|
var date = new Date();
|
|
var updatetime = date.toJSON().substring(0,10).replace(/-/g,"/")+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
|
|
setItemValue(0,getRow(),"updatetime",updatetime);
|
|
as_save("myiframe0");
|
|
}
|
|
//返回
|
|
function goBack(){
|
|
CHANGED=false;//跳转新页面时是否弹框提示已修改本页。
|
|
AsControl.OpenView("/Tenwa/Customer/Group/GroupCompany/DistributorGroupCompanyList.jsp","","_self","");
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%> |