WEB中 APP流程级分组配置
This commit is contained in:
parent
90dc6281df
commit
0eaad0acc3
56
WebContent/AppFresh/AppFlow/AppFlowCatalogList.jsp
Normal file
56
WebContent/AppFresh/AppFlow/AppFlowCatalogList.jsp
Normal file
@ -0,0 +1,56 @@
|
||||
<%@ 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 = "/AppFresh/AppFlow/CatalogList.jsp";
|
||||
AsControl.OpenTab(sUrl,"flowNo="+flowno,{title:"手机流程阶段配置"});
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
50
WebContent/AppFresh/AppFlow/CatalogInfo.jsp
Normal file
50
WebContent/AppFresh/AppFlow/CatalogInfo.jsp
Normal file
@ -0,0 +1,50 @@
|
||||
<%@ 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"%>
|
||||
63
WebContent/AppFresh/AppFlow/CatalogList.jsp
Normal file
63
WebContent/AppFresh/AppFlow/CatalogList.jsp
Normal file
@ -0,0 +1,63 @@
|
||||
<%@ 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 = "/AppFresh/AppFlow/CatalogInfo.jsp";
|
||||
AsDialog.PopView(sUrl, "flowNo="+flowNo+"&phaseNo="+phaseNo, "dialogWidth=600px;dialogHeight=450px;",
|
||||
function(message) {
|
||||
reloadSelf();
|
||||
}, "新增阶段");
|
||||
}
|
||||
|
||||
function viewAndEdit() {
|
||||
var sUrl = "/AppFresh/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 = "/AppFresh/AppFlow/MiddleList.jsp";
|
||||
AsControl.OpenTab(sUrl,"id="+id + "&flowNo="+flowNo+"&phaseNo="+phaseNo, {title:"流程页签配置"});
|
||||
}
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
39
WebContent/AppFresh/AppFlow/MiddleInfo.jsp
Normal file
39
WebContent/AppFresh/AppFlow/MiddleInfo.jsp
Normal file
@ -0,0 +1,39 @@
|
||||
<%@ 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"%>
|
||||
68
WebContent/AppFresh/AppFlow/MiddleList.jsp
Normal file
68
WebContent/AppFresh/AppFlow/MiddleList.jsp
Normal file
@ -0,0 +1,68 @@
|
||||
<%@ 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 = "/AppFresh/AppFlow/MiddleInfo.jsp";
|
||||
AsDialog.PopView(sUrl, "catalogId="+catalogId + "&libraryId="+libraryId, "dialogWidth=600px;dialogHeight=450px;",
|
||||
function(message) {
|
||||
reloadSelf();
|
||||
}, "新增页签");
|
||||
});
|
||||
}
|
||||
|
||||
function viewAndEdit() {
|
||||
var sUrl = "/AppFresh/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"%>
|
||||
Loading…
x
Reference in New Issue
Block a user