添加web中APP页面配置功能
This commit is contained in:
parent
4814b6b128
commit
06d01a12c2
56
WebContent/AppConfig/AppPage/AppLibraryAdd.jsp
Normal file
56
WebContent/AppConfig/AppPage/AppLibraryAdd.jsp
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
<%@page import="jbo.awe.AWE_DO_CATALOG"%>
|
||||||
|
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||||
|
include file="/Frame/resources/include/include_begin_list.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() {
|
||||||
|
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"%>
|
||||||
44
WebContent/AppConfig/AppPage/AppLibraryGroupInfo.jsp
Normal file
44
WebContent/AppConfig/AppPage/AppLibraryGroupInfo.jsp
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
<%@page import="jbo.awe.AWE_DO_CATALOG"%>
|
||||||
|
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||||
|
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||||
|
//获得参数
|
||||||
|
|
||||||
|
String dono = CurPage.getParameter("dono");
|
||||||
|
if (dono == null) dono = "";
|
||||||
|
String doname = CurPage.getParameter("doname");
|
||||||
|
if (doname == null) doname = "";
|
||||||
|
|
||||||
|
String GROUP_CODE = CurPage.getParameter("GROUP_CODE");
|
||||||
|
if (GROUP_CODE == null) GROUP_CODE = "";
|
||||||
|
|
||||||
|
String sUserID = CurPage.getParameter("UserID");
|
||||||
|
if (sUserID == null) sUserID = "";
|
||||||
|
|
||||||
|
ASObjectModel doTemp = new ASObjectModel("APP_BUSINESS_GROUP_INFO");
|
||||||
|
|
||||||
|
doTemp.setReadOnly("GROUP_CODE", true);
|
||||||
|
doTemp.setRequired("GROUP_CODE", true);
|
||||||
|
doTemp.setRequired("GROUP_NAME", true);
|
||||||
|
doTemp.setVisible("DONO", false);
|
||||||
|
|
||||||
|
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_save"},
|
||||||
|
{"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(sPostEvents) {
|
||||||
|
as_save("myiframe0", "goBack()");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||||
70
WebContent/AppConfig/AppPage/AppLibraryGroupList.jsp
Normal file
70
WebContent/AppConfig/AppPage/AppLibraryGroupList.jsp
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||||
|
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||||
|
ASObjectModel doTemp = new ASObjectModel("APP_BUSINESS_GROUP_LIST");
|
||||||
|
doTemp.setLockCount(2); //锁定两列
|
||||||
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||||
|
|
||||||
|
dwTemp.Style="1"; //设置为Grid风格
|
||||||
|
dwTemp.ReadOnly = "1";//编辑模式
|
||||||
|
dwTemp.setPageSize(10);
|
||||||
|
dwTemp.ConvertCode2Title = "1";
|
||||||
|
dwTemp.genHTMLObjectWindow("");
|
||||||
|
|
||||||
|
String sButtons[][] = {
|
||||||
|
{"true","","Button","新增新模板分组","新增新模板分组","newRecord()","","","","btn_icon_add"},
|
||||||
|
{"true","","Button","取消模板分组","取消模板分组","if(confirm('确实要删除吗?'))del()","","","","btn_icon_delete"},
|
||||||
|
{"true","","Button","编辑模板分组","编辑模板分组","viewAndEdit()","","","","btn_icon_edit"},
|
||||||
|
{"true","","Button","模板分组配置","模板分组配置","templateConfig()","","","","btn_icon_workflow"},
|
||||||
|
};
|
||||||
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function newRecord() {
|
||||||
|
var sUrl = "/AppConfig/AppPage/AppLibraryAdd.jsp";
|
||||||
|
AsDialog.PopView(sUrl, "", "dialogWidth=600px;dialogHeight=450px;",
|
||||||
|
function(message) {
|
||||||
|
reloadSelf();
|
||||||
|
}, "新模板分组配置");
|
||||||
|
}
|
||||||
|
|
||||||
|
function viewAndEdit() {
|
||||||
|
var sUrl = "/AppConfig/AppPage/AppLibraryGroupInfo.jsp";
|
||||||
|
var GROUP_CODE = getItemValue(0, getRow(0), 'GROUP_CODE');
|
||||||
|
|
||||||
|
if (GROUP_CODE == "" || typeof (GROUP_CODE) == "undefined") {
|
||||||
|
alert("请选择一条分组!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AsDialog.PopView(sUrl, "GROUP_CODE=" + GROUP_CODE + "&dono=''",
|
||||||
|
"dialogWidth=600px;dialogHeight=450px;", function(message) {
|
||||||
|
reloadSelf();
|
||||||
|
}, "模板分组配置");
|
||||||
|
}
|
||||||
|
|
||||||
|
function del() {
|
||||||
|
var GROUP_CODE = getItemValue(0, getRow(0), 'GROUP_CODE');
|
||||||
|
|
||||||
|
if (GROUP_CODE == "" || typeof (GROUP_CODE) == "undefined") {
|
||||||
|
alert("请选择一条分组!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
var sResult = AsControl.RunJavaMethodTrans(
|
||||||
|
"com.amarsoft.app.check.AppFlow", "delDonoGroup", "groupCode="+GROUP_CODE);
|
||||||
|
|
||||||
|
alert(sResult);
|
||||||
|
reloadSelf();
|
||||||
|
}
|
||||||
|
|
||||||
|
function templateConfig() {
|
||||||
|
var GROUP_CODE = getItemValue(0, getRow(0), 'GROUP_CODE');
|
||||||
|
if (GROUP_CODE == "" || typeof (GROUP_CODE) == "undefined") {
|
||||||
|
alert("请选择一条分组!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
var flowNo = getItemValue(0, getRow(0), 'flowno');
|
||||||
|
var phaseNo = getItemValue(0, getRow(0), 'phaseno');
|
||||||
|
var sUrl = "/AppConfig/AppPage/AppLibraryTemplateList.jsp";
|
||||||
|
AsControl.OpenTab(sUrl, "GROUP_CODE=" + GROUP_CODE, {title : "模板分组配置"});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||||
43
WebContent/AppConfig/AppPage/AppLibraryTemplateInfo.jsp
Normal file
43
WebContent/AppConfig/AppPage/AppLibraryTemplateInfo.jsp
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<%@page import="jbo.awe.AWE_DO_CATALOG"%>
|
||||||
|
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||||
|
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||||
|
//获得参数
|
||||||
|
String GROUP_CODE = CurPage.getParameter("GROUP_CODE");
|
||||||
|
if (GROUP_CODE == null) GROUP_CODE = "";
|
||||||
|
String DATA_CODE = CurPage.getParameter("DATA_CODE");
|
||||||
|
if (DATA_CODE == null) DATA_CODE = "";
|
||||||
|
|
||||||
|
ASObjectModel doTemp = new ASObjectModel("APP_BUSINESS_TEMPLATE_INFO");
|
||||||
|
|
||||||
|
if (!"".equals(DATA_CODE)) {
|
||||||
|
doTemp.setReadOnly("DONO", true);
|
||||||
|
doTemp.setReadOnly("COLINDEX", true);
|
||||||
|
doTemp.setReadOnly("SORTNO", true);
|
||||||
|
doTemp.setReadOnly("COLNAME", true);
|
||||||
|
|
||||||
|
doTemp.setReadOnly("DATA_CODE", true);
|
||||||
|
} else {
|
||||||
|
doTemp.setDefaultValue("GROUP_CODE", GROUP_CODE);
|
||||||
|
}
|
||||||
|
|
||||||
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||||
|
dwTemp.Style = "2"; //设置DW风格 1:Grid 2:Freeform
|
||||||
|
dwTemp.ReadOnly = "0"; //设置是否只读 1:只读 0:可写
|
||||||
|
dwTemp.genHTMLObjectWindow(GROUP_CODE+","+DATA_CODE);
|
||||||
|
|
||||||
|
String sButtons[][] = {
|
||||||
|
{"true", "All", "Button", "保存","保存所有修改", "saveRecord()", "", "", "", "btn_icon_save"},
|
||||||
|
{"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(sPostEvents) {
|
||||||
|
as_save("myiframe0", "goBack()");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||||
64
WebContent/AppConfig/AppPage/AppLibraryTemplateList.jsp
Normal file
64
WebContent/AppConfig/AppPage/AppLibraryTemplateList.jsp
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||||
|
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||||
|
String GROUP_CODE = CurPage.getParameter("GROUP_CODE");
|
||||||
|
if (GROUP_CODE == null)
|
||||||
|
GROUP_CODE = "";
|
||||||
|
|
||||||
|
ASObjectModel doTemp = new ASObjectModel("APP_BUSINESS_TEMPLATE_LIST");
|
||||||
|
doTemp.setLockCount(2); //锁定两列
|
||||||
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||||
|
|
||||||
|
dwTemp.Style="1"; //设置为Grid风格
|
||||||
|
dwTemp.ReadOnly = "1";//编辑模式
|
||||||
|
dwTemp.setPageSize(10);
|
||||||
|
dwTemp.ConvertCode2Title = "1";
|
||||||
|
dwTemp.genHTMLObjectWindow(GROUP_CODE);
|
||||||
|
|
||||||
|
String sButtons[][] = {
|
||||||
|
{"true","","Button","新增字段","新增字段","newRecord()","","","","btn_icon_add"},
|
||||||
|
{"true","","Button","删除字段","删除字段","if(confirm('确实要删除吗?'))as_delete(0,'')","","","","btn_icon_delete"},
|
||||||
|
{"true","","Button","编辑字段","编辑字段","viewAndEdit()","","","","btn_icon_edit"},
|
||||||
|
};
|
||||||
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
function newRecord() {
|
||||||
|
var GROUP_CODE = getItemValue(0, getRow(0), 'GROUP_CODE');
|
||||||
|
var sUrl = "/AppConfig/AppPage/AppLibraryTemplateInfo.jsp";
|
||||||
|
|
||||||
|
AsDialog.PopView(sUrl,"GROUP_CODE="+GROUP_CODE,
|
||||||
|
"dialogWidth=600px;dialogHeight=450px;", function(message) {
|
||||||
|
reloadSelf();
|
||||||
|
}, "新模板分组配置");
|
||||||
|
}
|
||||||
|
|
||||||
|
function viewAndEdit() {
|
||||||
|
var sUrl = "/AppConfig/AppPage/AppLibraryTemplateInfo.jsp";
|
||||||
|
var GROUP_CODE = getItemValue(0, getRow(0), 'GROUP_CODE');
|
||||||
|
var DATA_CODE = getItemValue(0, getRow(0), 'DATA_CODE');
|
||||||
|
alert(DATA_CODE);
|
||||||
|
if (DATA_CODE == "" || typeof (DATA_CODE) == "undefined") {
|
||||||
|
alert("请选择一条分组字段!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
AsDialog.PopView(sUrl,"GROUP_CODE="+GROUP_CODE+"&DATA_CODE="+DATA_CODE,
|
||||||
|
"dialogWidth=600px;dialogHeight=450px;", function(message) {
|
||||||
|
reloadSelf();
|
||||||
|
}, "模板分组配置");
|
||||||
|
}
|
||||||
|
|
||||||
|
function middleConfig() {
|
||||||
|
var id = getItemValue(0, getRow(0), 'id');
|
||||||
|
if (id == "" || typeof(id) == "undefined") {
|
||||||
|
alert("请选择一条阶段!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
var flowNo = getItemValue(0, getRow(0), 'flowno');
|
||||||
|
var phaseNo = getItemValue(0, getRow(0), 'phaseno');
|
||||||
|
var sUrl = "/AppConfig/AppFlow/MiddleList.jsp";
|
||||||
|
AsControl.OpenTab(sUrl,"id="+id + "&flowNo="+flowNo+"&phaseNo="+phaseNo, {title:"流程页签配置"});
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||||
40
WebContent/AppConfig/AppPage/AppNodeInfo.jsp
Normal file
40
WebContent/AppConfig/AppPage/AppNodeInfo.jsp
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
<%@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 = "";
|
||||||
|
|
||||||
|
String id = CurPage.getParameter("id");
|
||||||
|
if (id == null) id = "";
|
||||||
|
|
||||||
|
ASObjectModel doTemp = new ASObjectModel("APP_NODEINFO_LIBRARY_APP_INFO");
|
||||||
|
doTemp.setReadOnly("APP_BUSINESS_GROUP_CODE", true);
|
||||||
|
if ("".equals(id)) {
|
||||||
|
doTemp.setDefaultValue("APP_BUSINESS_GROUP_CODE", GROUP_CODE);
|
||||||
|
/* doTemp.setHtmlEvent("ENABLE_CONDITION", "onchange", "openConditionShow"); */
|
||||||
|
}
|
||||||
|
|
||||||
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||||
|
dwTemp.Style = "2"; //设置DW风格 1:Grid 2:Freeform
|
||||||
|
dwTemp.ReadOnly = "0"; //设置是否只读 1:只读 0:可写
|
||||||
|
dwTemp.genHTMLObjectWindow(id);
|
||||||
|
|
||||||
|
String sButtons[][] = {
|
||||||
|
{"true", "All", "Button", "保存","保存所有修改", "saveRecord()", "", "", "", "btn_icon_save"},
|
||||||
|
{"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(sPostEvents) {
|
||||||
|
as_save("myiframe0", "goBack()");
|
||||||
|
}
|
||||||
|
/* openConditionShow(); */
|
||||||
|
</script>
|
||||||
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||||
58
WebContent/AppConfig/AppPage/AppNodeList.jsp
Normal file
58
WebContent/AppConfig/AppPage/AppNodeList.jsp
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||||
|
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||||
|
ASObjectModel doTemp = new ASObjectModel("APP_NODEINFO_LIBRARY_APP_LIST");
|
||||||
|
doTemp.setLockCount(2); //锁定两列
|
||||||
|
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||||
|
|
||||||
|
dwTemp.Style="1"; //设置为Grid风格
|
||||||
|
dwTemp.ReadOnly = "1";//编辑模式
|
||||||
|
dwTemp.setPageSize(10);
|
||||||
|
dwTemp.ConvertCode2Title = "1";
|
||||||
|
dwTemp.genHTMLObjectWindow("");
|
||||||
|
|
||||||
|
String sButtons[][] = {
|
||||||
|
{"true","","Button","新增页面","新增页面","newRecord()","","","","btn_icon_add"},
|
||||||
|
{"true","","Button","编辑页面","编辑页面","viewAndEdit()","","","","btn_icon_edit"},
|
||||||
|
};
|
||||||
|
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
function newRecord() {
|
||||||
|
var selName = "AppPageGroupList";
|
||||||
|
var GROUP_CODE = "";
|
||||||
|
var GROUP_NAME = "";
|
||||||
|
AsDialog.selectCatalogDialog(selName, "", "",
|
||||||
|
function(sReturn) {
|
||||||
|
if (typeof (sReturn) == "undefined" || sReturn.length == 0)
|
||||||
|
return;
|
||||||
|
sReturn = sReturn.split("@");
|
||||||
|
GROUP_CODE = sReturn[0];
|
||||||
|
GROUP_NAME = sReturn[1];
|
||||||
|
|
||||||
|
var param = "GROUP_CODE="+GROUP_CODE;
|
||||||
|
alert(param);
|
||||||
|
var sUrl = "/AppConfig/AppPage/AppNodeInfo.jsp";
|
||||||
|
AsDialog.PopView(sUrl, param, "dialogWidth=800px;dialogHeight=650px;",
|
||||||
|
function(message) {
|
||||||
|
reloadSelf();
|
||||||
|
}, "新增页面");
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function viewAndEdit() {
|
||||||
|
debugger;
|
||||||
|
var sUrl = "/AppConfig/AppPage/AppNodeInfo.jsp";
|
||||||
|
var id = getItemValue(0, getRow(0), 'id');
|
||||||
|
|
||||||
|
if (id == "" || typeof (id) == "undefined") {
|
||||||
|
alert("请选择一条页面配置!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AsDialog.PopView(sUrl, "id=" + id,
|
||||||
|
"dialogWidth=800px;dialogHeight=650px;", function(message) {
|
||||||
|
reloadSelf();
|
||||||
|
}, "编辑页面");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||||
Loading…
x
Reference in New Issue
Block a user