WEB中 APP页面配置
This commit is contained in:
parent
3ce99d3f46
commit
33b2148d09
@ -1,56 +0,0 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
ASObjectModel doTemp = new ASObjectModel("APP_FLOW_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","导入新流程","导入新流程","importNewFlow()","","","","btn_icon_add"},
|
||||
{"true","","Button","取消流程","取消流程","delFlow()","","","","btn_icon_delete"},
|
||||
{"true","","Button","流程配置","流程配置","configureFlow()","","","","btn_icon_workflow"},
|
||||
};
|
||||
%>
|
||||
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
function importNewFlow() {
|
||||
AsDialog.selectCatalogDialog("SelectFlow", "", "", function(sReturn) {
|
||||
if (typeof (sReturn) == "undefined" || sReturn.length == 0)
|
||||
return;
|
||||
sReturn = sReturn.split("@");
|
||||
var FlowNo = sReturn[0];
|
||||
var sResult = AsControl.RunJavaMethodTrans("com.amarsoft.app.check.AppFlow","checkFlowByFlowNo","flowNo="+FlowNo);
|
||||
alert(sResult);
|
||||
reloadSelf();
|
||||
});
|
||||
}
|
||||
|
||||
function delFlow() {
|
||||
var flowno = getItemValue(0, getRow(), "flowno");
|
||||
if (typeof (flowno) == "undefined" || flowno.length == 0) {
|
||||
alert("请选择一条流程记录");
|
||||
return;
|
||||
}
|
||||
var sResult = AsControl.RunJavaMethodTrans("com.amarsoft.app.check.AppFlow",
|
||||
"DelFlowByFlowNo","flowNo="+flowno);
|
||||
alert(sResult);
|
||||
reloadSelf();
|
||||
}
|
||||
|
||||
function configureFlow() {
|
||||
var flowno = getItemValue(0, getRow(), "flowno");
|
||||
if (typeof (flowno) == "undefined" || flowno.length == 0) {
|
||||
alert("请选择一条流程记录");
|
||||
return;
|
||||
}
|
||||
var sUrl = "/AppConfig/AppFlow/CatalogList.jsp";
|
||||
AsControl.OpenTab(sUrl,"flowNo="+flowno,{title:"手机流程阶段配置"});
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -1,50 +0,0 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||
include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
//获得参数
|
||||
String flowNo = CurPage.getParameter("flowNo");
|
||||
String phaseNo = CurPage.getParameter("phaseNo");
|
||||
if (flowNo == null) flowNo = "";
|
||||
if (phaseNo == null) phaseNo = "";
|
||||
|
||||
String id = CurPage.getParameter("id");
|
||||
if (id == null) id = "";
|
||||
|
||||
String sUserID = CurPage.getParameter("UserID");
|
||||
if (sUserID == null) sUserID = "";
|
||||
|
||||
java.util.Date dateNow = new java.util.Date();
|
||||
SimpleDateFormat sdfTemp = new SimpleDateFormat("yyyy/MM/dd");
|
||||
String date = sdfTemp.format(dateNow);
|
||||
|
||||
ASObjectModel doTemp = new ASObjectModel("APP_PRD_CATALOG_INFO");
|
||||
|
||||
doTemp.setDefaultValue("FLOWNO", flowNo);
|
||||
doTemp.setReadOnly("FLOWNO", true);
|
||||
|
||||
if (!"".equals(phaseNo)) {
|
||||
doTemp.setReadOnly("PHASENO", true);
|
||||
} else {
|
||||
doTemp.setReadOnly("PHASENO", false);
|
||||
}
|
||||
|
||||
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()");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -1,63 +0,0 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
String flowNo = CurPage.getParameter("flowNo");
|
||||
if (null == flowNo) flowNo = "";
|
||||
ASObjectModel doTemp = new ASObjectModel("APP_PRD_CATALOG_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(flowNo);
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true","","Button","新增阶段","新增阶段","newRecord()","","","","btn_icon_add"},
|
||||
{"true","","Button","取消阶段","取消阶段",
|
||||
"if(confirm('确实要删除吗?'))as_delete(0,'')","","","","btn_icon_delete"},
|
||||
{"true","","Button","编辑阶段","编辑阶段","viewAndEdit()","","","","btn_icon_edit"},
|
||||
{"true","","Button","页签配置","页签配置","middleConfig()","","","","btn_icon_workflow"},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
function newRecord() {
|
||||
var flowNo = getItemValue(0, getRow(0), 'flowno');
|
||||
var phaseNo = "";
|
||||
var sUrl = "/AppConfig/AppFlow/CatalogInfo.jsp";
|
||||
AsDialog.PopView(sUrl, "flowNo="+flowNo+"&phaseNo="+phaseNo, "dialogWidth=600px;dialogHeight=450px;",
|
||||
function(message) {
|
||||
reloadSelf();
|
||||
}, "新增阶段");
|
||||
}
|
||||
|
||||
function viewAndEdit() {
|
||||
var sUrl = "/AppConfig/AppFlow/CatalogInfo.jsp";
|
||||
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');
|
||||
AsDialog.PopView(sUrl, "id=" + id + "&flowNo="+flowNo+"&phaseNo="+phaseNo,
|
||||
"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"%>
|
||||
@ -1,39 +0,0 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||
include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
//获得参数
|
||||
String catalogId = CurPage.getParameter("catalogId");
|
||||
String libraryId = CurPage.getParameter("libraryId");
|
||||
if (catalogId == null) catalogId = "";
|
||||
if (libraryId == null) libraryId = "";
|
||||
|
||||
String sUserID = CurPage.getParameter("UserID");
|
||||
if (sUserID == null) sUserID = "";
|
||||
|
||||
java.util.Date dateNow = new java.util.Date();
|
||||
SimpleDateFormat sdfTemp = new SimpleDateFormat("yyyy/MM/dd");
|
||||
String date = sdfTemp.format(dateNow);
|
||||
|
||||
ASObjectModel doTemp = new ASObjectModel("APP_MIDDLE_INFO");
|
||||
if (!"".equals(catalogId)) doTemp.setDefaultValue("APP_NODE_CATALOG_ID", catalogId);
|
||||
if (!"".equals(libraryId)) doTemp.setDefaultValue("APP_NODE_LIBRARY_ID", libraryId);
|
||||
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2"; //设置DW风格 1:Grid 2:Freeform
|
||||
dwTemp.ReadOnly = "0"; //设置是否只读 1:只读 0:可写
|
||||
dwTemp.genHTMLObjectWindow(catalogId+","+libraryId);
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true", "All", "Button", "保存","保存所有修改", "saveRecord()", "", "", "", "btn_icon_save"}
|
||||
};
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
function goBack(){
|
||||
parent.AsDialog.ClosePage();
|
||||
}
|
||||
|
||||
function saveRecord() {
|
||||
as_save("myiframe0", "goBack()");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -1,68 +0,0 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
String id = CurPage.getParameter("id");
|
||||
String flowNo = CurPage.getParameter("flowNo");
|
||||
String phaseNo = CurPage.getParameter("phaseNo");
|
||||
|
||||
if (id == null) id = "";
|
||||
if (null == flowNo) flowNo = "";
|
||||
if (phaseNo == null) phaseNo = "";
|
||||
|
||||
String sUserID = CurPage.getParameter("UserID");
|
||||
if (sUserID == null) sUserID = "";
|
||||
|
||||
ASObjectModel doTemp = new ASObjectModel("APP_MIDDLE_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(id);
|
||||
|
||||
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 catalogId = "<%=id%>"
|
||||
var libraryId = "";
|
||||
AsDialog.selectCatalogDialog("AppPageLibraryList", "", "", function(sReturn) {
|
||||
if (typeof (sReturn) == "undefined" || sReturn.length == 0)
|
||||
return;
|
||||
sReturn = sReturn.split("@");
|
||||
libraryId = sReturn[0];
|
||||
var sUrl = "/AppConfig/AppFlow/MiddleInfo.jsp";
|
||||
AsDialog.PopView(sUrl, "catalogId="+catalogId + "&libraryId="+libraryId, "dialogWidth=600px;dialogHeight=450px;",
|
||||
function(message) {
|
||||
reloadSelf();
|
||||
}, "新增页签");
|
||||
});
|
||||
}
|
||||
|
||||
function viewAndEdit() {
|
||||
var sUrl = "/AppConfig/AppFlow/MiddleInfo.jsp";
|
||||
var catalogId = "<%=id%>"
|
||||
var libraryId = getItemValue(0, getRow(0), 'APP_NODE_LIBRARY_ID');
|
||||
if (catalogId == "" || typeof (catalogId) == "undefined") {
|
||||
alert("请选择一条页签!");
|
||||
return false;
|
||||
}
|
||||
if (libraryId == "" || typeof (libraryId) == "undefined") {
|
||||
alert("请选择一条页签!");
|
||||
return false;
|
||||
}
|
||||
AsDialog.PopView(sUrl, "catalogId=" + catalogId + "&libraryId="
|
||||
+ libraryId, "dialogWidth=600px;dialogHeight=450px;", function(
|
||||
message) {
|
||||
reloadSelf();
|
||||
}, "编辑页签");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -1,6 +1,6 @@
|
||||
<%@page import="jbo.awe.AWE_DO_CATALOG"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
//获得参数
|
||||
|
||||
String dono = CurPage.getParameter("dono");
|
||||
@ -19,7 +19,7 @@
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function newRecord() {
|
||||
var sUrl = "/AppConfig/AppPage/AppLibraryAdd.jsp";
|
||||
var sUrl = "/AppFresh/AppPage/AppLibraryAdd.jsp";
|
||||
AsDialog.PopView(sUrl, "", "dialogWidth=600px;dialogHeight=450px;",
|
||||
function(message) {
|
||||
reloadSelf();
|
||||
@ -27,7 +27,7 @@
|
||||
}
|
||||
|
||||
function viewAndEdit() {
|
||||
var sUrl = "/AppConfig/AppPage/AppLibraryGroupInfo.jsp";
|
||||
var sUrl = "/AppFresh/AppPage/AppLibraryGroupInfo.jsp";
|
||||
var GROUP_CODE = getItemValue(0, getRow(0), 'GROUP_CODE');
|
||||
|
||||
if (GROUP_CODE == "" || typeof (GROUP_CODE) == "undefined") {
|
||||
@ -63,7 +63,7 @@
|
||||
}
|
||||
var flowNo = getItemValue(0, getRow(0), 'flowno');
|
||||
var phaseNo = getItemValue(0, getRow(0), 'phaseno');
|
||||
var sUrl = "/AppConfig/AppPage/AppLibraryTemplateList.jsp";
|
||||
var sUrl = "/AppFresh/AppPage/AppLibraryTemplateList.jsp";
|
||||
AsControl.OpenTab(sUrl, "GROUP_CODE=" + GROUP_CODE, {title : "Ä£°å·Ö×éÅäÖÃ"});
|
||||
}
|
||||
</script>
|
||||
@ -1,6 +1,6 @@
|
||||
<%@page import="jbo.awe.AWE_DO_CATALOG"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||
include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
//获得参数
|
||||
String GROUP_CODE = CurPage.getParameter("GROUP_CODE");
|
||||
if (GROUP_CODE == null) GROUP_CODE = "";
|
||||
@ -24,7 +24,7 @@
|
||||
|
||||
function newRecord() {
|
||||
var GROUP_CODE = getItemValue(0, getRow(0), 'GROUP_CODE');
|
||||
var sUrl = "/AppConfig/AppPage/AppLibraryTemplateInfo.jsp";
|
||||
var sUrl = "/AppFresh/AppPage/AppLibraryTemplateInfo.jsp";
|
||||
|
||||
AsDialog.PopView(sUrl,"GROUP_CODE="+GROUP_CODE,
|
||||
"dialogWidth=600px;dialogHeight=450px;", function(message) {
|
||||
@ -33,7 +33,7 @@
|
||||
}
|
||||
|
||||
function viewAndEdit() {
|
||||
var sUrl = "/AppConfig/AppPage/AppLibraryTemplateInfo.jsp";
|
||||
var sUrl = "/AppFresh/AppPage/AppLibraryTemplateInfo.jsp";
|
||||
var GROUP_CODE = getItemValue(0, getRow(0), 'GROUP_CODE');
|
||||
var DATA_CODE = getItemValue(0, getRow(0), 'DATA_CODE');
|
||||
alert(DATA_CODE);
|
||||
@ -56,7 +56,7 @@
|
||||
}
|
||||
var flowNo = getItemValue(0, getRow(0), 'flowno');
|
||||
var phaseNo = getItemValue(0, getRow(0), 'phaseno');
|
||||
var sUrl = "/AppConfig/AppFlow/MiddleList.jsp";
|
||||
var sUrl = "/AppFresh/AppFlow/MiddleList.jsp";
|
||||
AsControl.OpenTab(sUrl,"id="+id + "&flowNo="+flowNo+"&phaseNo="+phaseNo, {title:"Á÷³ÌҳǩÅäÖÃ"});
|
||||
}
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
|
||||
var param = "GROUP_CODE="+GROUP_CODE;
|
||||
//alert(param);
|
||||
var sUrl = "/AppConfig/AppPage/AppNodeInfo.jsp";
|
||||
var sUrl = "/AppFresh/AppPage/AppNodeInfo.jsp";
|
||||
AsDialog.PopView(sUrl, param, "dialogWidth=800px;dialogHeight=650px;",
|
||||
function(message) {
|
||||
reloadSelf();
|
||||
@ -42,7 +42,7 @@
|
||||
|
||||
function viewAndEdit() {
|
||||
debugger;
|
||||
var sUrl = "/AppConfig/AppPage/AppNodeInfo.jsp";
|
||||
var sUrl = "/AppFresh/AppPage/AppNodeInfo.jsp";
|
||||
var id = getItemValue(0, getRow(0), 'id');
|
||||
|
||||
if (id == "" || typeof (id) == "undefined") {
|
||||
Loading…
x
Reference in New Issue
Block a user