59 lines
1.8 KiB
Plaintext
59 lines
1.8 KiB
Plaintext
<%@page import="jbo.awe.AWE_DO_CATALOG"%>
|
|
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@include file="/Frame/resources/include/include_begin_info.jspf"%>
|
|
<%
|
|
//获得参数
|
|
String GROUP_CODE = CurPage.getParameter("GROUP_CODE");
|
|
if (GROUP_CODE == null)
|
|
GROUP_CODE = "";
|
|
|
|
ASObjectModel doTemp = new ASObjectModel(
|
|
"APP_BUSINESS_ADD");
|
|
|
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,
|
|
request);
|
|
dwTemp.Style = "2"; //设置DW风格 1:Grid 2:Freeform
|
|
dwTemp.ReadOnly = "0"; //设置是否只读 1:只读 0:可写
|
|
dwTemp.genHTMLObjectWindow(GROUP_CODE);
|
|
|
|
String sButtons[][] = {
|
|
{"true", "All", "Button", "添加","添加", "saveRecord()", "", "", "", "btn_icon_add"},
|
|
{"true", "All", "Button", "关闭","关闭", "goBack()", "", "", "", "btn_icon_close"},
|
|
};
|
|
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
|
<script type="text/javascript">
|
|
function goBack() {
|
|
parent.AsDialog.ClosePage();
|
|
}
|
|
|
|
function saveRecord() {
|
|
debugger;
|
|
var isList = getItemValue(0, getRow(0), 'ISLIST');
|
|
var selName = 'SelectDo';
|
|
var GROUP_CODE = "";
|
|
var dono = "";
|
|
var doname = "";
|
|
AsDialog.selectCatalogDialog(selName, "", "",
|
|
function(sReturn) {
|
|
if (typeof (sReturn) == "undefined" || sReturn.length == 0)
|
|
return;
|
|
sReturn = sReturn.split("@");
|
|
dono = sReturn[0];
|
|
doname = sReturn[1];
|
|
var param = "dono=" + dono
|
|
+ ",groupCode='',isList=" + isList;
|
|
var sResult = AsControl.RunJavaMethodTrans(
|
|
"com.amarsoft.app.check.AppFlow",
|
|
"importDonoGroup", param);
|
|
|
|
var array = sResult.split("@");
|
|
alert(array[1]);
|
|
if ("success" == array[0]) {
|
|
goBack();
|
|
}
|
|
});
|
|
|
|
}
|
|
</script>
|
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|