From 0eaad0acc32276201e50afb59d5d52981c967337 Mon Sep 17 00:00:00 2001 From: yexuan Date: Mon, 25 Jun 2018 15:05:05 +0800 Subject: [PATCH] =?UTF-8?q?WEB=E4=B8=AD=20=20APP=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E7=BA=A7=E5=88=86=E7=BB=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppFresh/AppFlow/AppFlowCatalogList.jsp | 56 +++++++++++++++ WebContent/AppFresh/AppFlow/CatalogInfo.jsp | 50 ++++++++++++++ WebContent/AppFresh/AppFlow/CatalogList.jsp | 63 +++++++++++++++++ WebContent/AppFresh/AppFlow/MiddleInfo.jsp | 39 +++++++++++ WebContent/AppFresh/AppFlow/MiddleList.jsp | 68 +++++++++++++++++++ 5 files changed, 276 insertions(+) create mode 100644 WebContent/AppFresh/AppFlow/AppFlowCatalogList.jsp create mode 100644 WebContent/AppFresh/AppFlow/CatalogInfo.jsp create mode 100644 WebContent/AppFresh/AppFlow/CatalogList.jsp create mode 100644 WebContent/AppFresh/AppFlow/MiddleInfo.jsp create mode 100644 WebContent/AppFresh/AppFlow/MiddleList.jsp diff --git a/WebContent/AppFresh/AppFlow/AppFlowCatalogList.jsp b/WebContent/AppFresh/AppFlow/AppFlowCatalogList.jsp new file mode 100644 index 000000000..e97ad16f4 --- /dev/null +++ b/WebContent/AppFresh/AppFlow/AppFlowCatalogList.jsp @@ -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"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/AppFresh/AppFlow/CatalogInfo.jsp b/WebContent/AppFresh/AppFlow/CatalogInfo.jsp new file mode 100644 index 000000000..46759e044 --- /dev/null +++ b/WebContent/AppFresh/AppFlow/CatalogInfo.jsp @@ -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"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/AppFresh/AppFlow/CatalogList.jsp b/WebContent/AppFresh/AppFlow/CatalogList.jsp new file mode 100644 index 000000000..6e72a85a5 --- /dev/null +++ b/WebContent/AppFresh/AppFlow/CatalogList.jsp @@ -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"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/AppFresh/AppFlow/MiddleInfo.jsp b/WebContent/AppFresh/AppFlow/MiddleInfo.jsp new file mode 100644 index 000000000..a73af8036 --- /dev/null +++ b/WebContent/AppFresh/AppFlow/MiddleInfo.jsp @@ -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"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> diff --git a/WebContent/AppFresh/AppFlow/MiddleList.jsp b/WebContent/AppFresh/AppFlow/MiddleList.jsp new file mode 100644 index 000000000..e9453f0be --- /dev/null +++ b/WebContent/AppFresh/AppFlow/MiddleList.jsp @@ -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"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file