流程发布代码
This commit is contained in:
parent
7732f03930
commit
e29ef114b6
Binary file not shown.
@ -3,7 +3,7 @@
|
||||
<app xmlns="http://www.actionsoft.com.cn/app">
|
||||
<name>流程发布</name>
|
||||
<version>1.0</version>
|
||||
<buildNo>49</buildNo>
|
||||
<buildNo>50</buildNo>
|
||||
<developer id="776cca9a287c8b4d63b9cad216aa3859" tablePrefix="ACT" url="http://www.actionsoft.com.cn">北京炎黄盈动科技发展有限责任公司</developer>
|
||||
<productId>2d48c93d3dc26d493c6735c962fc9df6</productId>
|
||||
<categoryVisible>true</categoryVisible>
|
||||
@ -28,10 +28,10 @@
|
||||
<uninstallListener/>
|
||||
<reloadable>true</reloadable>
|
||||
<requires>
|
||||
<require appId="com.actionsoft.apps.coe.pal.cooperation" notActiveHandler="none" res="false"/>
|
||||
<require appId="com.actionsoft.apps.addons.xpages" notActiveHandler="none" res="false"/>
|
||||
<require appId="com.actionsoft.apps.notification" notActiveHandler="none" res="false"/>
|
||||
<require appId="com.actionsoft.apps.dict" notActiveHandler="warning" res="false"/>
|
||||
<require appId="com.actionsoft.apps.coe.pal.cooperation" notActiveHandler="none" res="false"/>
|
||||
<require appId="com.actionsoft.apps.addons.xpages" notActiveHandler="none" res="false"/>
|
||||
<require appId="com.actionsoft.apps.notification" notActiveHandler="none" res="false"/>
|
||||
<require appId="com.actionsoft.apps.dict" notActiveHandler="warning" res="false"/>
|
||||
</requires>
|
||||
<depend versions="6.3,6.4,6.5" env="6.3.3">com.actionsoft.apps.coe.pal</depend>
|
||||
<properties>
|
||||
|
||||
@ -2,68 +2,68 @@
|
||||
|
||||
<!--AWS 字典描述文件,适用于6.0以上版本 \n-->
|
||||
<dictionary>
|
||||
<id>8ce080c6-a411-4cae-81a1-8a04c076b901</id>
|
||||
<!--App分类-->
|
||||
<categoryName>资产库周期管理</categoryName>
|
||||
<!--字典显示的标题-->
|
||||
<title>L2流程列表</title>
|
||||
<!--要显示的SQL记录 \n 1.where条件支持所有@命令 \n 2.这个SQL应该是一个完整的,经过调试的SQL,除@命令外 \n-->
|
||||
<data><![CDATA[select PROCESSCODE,PROCESSNAME from BO_ACT_PROCESSINFO where LEVEL='L2']]></data>
|
||||
<!--每页显示行数-->
|
||||
<page>10</page>
|
||||
<!--是否换行显示-->
|
||||
<wordWrap>false</wordWrap>
|
||||
<!--插入前保存表单-->
|
||||
<saveForm>false</saveForm>
|
||||
<!--插入前非空校验-->
|
||||
<checkNotNull>true</checkNotNull>
|
||||
<!--插入后非空提示-->
|
||||
<aftersaveAlert>false</aftersaveAlert>
|
||||
<!--数据字典多选时是否显示已选中项-->
|
||||
<showChoose>false</showChoose>
|
||||
<!--字典模型是否受管-->
|
||||
<managed>false</managed>
|
||||
<configParam><![CDATA[{}]]></configParam>
|
||||
<!--管理员-->
|
||||
<administrator>admin</administrator>
|
||||
<!--创建人-->
|
||||
<createUser>admin</createUser>
|
||||
<!--参与显示的字段定义-->
|
||||
<field>
|
||||
<!--字段名称-->
|
||||
<name>PROCESSCODE</name>
|
||||
<!--该字段是否用来返回给父级窗口的控件,targetName为控件名-->
|
||||
<targetName>LEVEL_2_PROCESS_ID</targetName>
|
||||
<nameType>文本</nameType>
|
||||
<uicomponent>文本</uicomponent>
|
||||
<!--列表显示的标题-->
|
||||
<title>流程编码</title>
|
||||
<!--列表显示宽度,支持象素单位和百分比宽度-->
|
||||
<width>100</width>
|
||||
<!--是否该字段参与模糊检索,目前只允许为字符类型的字段支持模糊检索-->
|
||||
<filter>false</filter>
|
||||
<exact>false</exact>
|
||||
<hidden>false</hidden>
|
||||
<!--DW查询条件的searchID,数据字典时,回填策略需要targetName+DWID组合来进行回填-->
|
||||
</field>
|
||||
<field>
|
||||
<!--字段名称-->
|
||||
<name>PROCESSNAME</name>
|
||||
<!--该字段是否用来返回给父级窗口的控件,targetName为控件名-->
|
||||
<targetName>LEVEL_2_PROCESS_NAME</targetName>
|
||||
<nameType>文本</nameType>
|
||||
<uicomponent>文本</uicomponent>
|
||||
<!--列表显示的标题-->
|
||||
<title>流程名称</title>
|
||||
<!--列表显示宽度,支持象素单位和百分比宽度-->
|
||||
<width>100</width>
|
||||
<!--是否该字段参与模糊检索,目前只允许为字符类型的字段支持模糊检索-->
|
||||
<filter>false</filter>
|
||||
<exact>false</exact>
|
||||
<hidden>false</hidden>
|
||||
<!--DW查询条件的searchID,数据字典时,回填策略需要targetName+DWID组合来进行回填-->
|
||||
</field>
|
||||
<!--连接数据源-->
|
||||
<dataAdapter class="com.actionsoft.bpms.commons.dictionary.core.datasource.local.AWSDBData"/>
|
||||
<id>8ce080c6-a411-4cae-81a1-8a04c076b901</id>
|
||||
<!--App分类-->
|
||||
<categoryName>资产库周期管理</categoryName>
|
||||
<!--字典显示的标题-->
|
||||
<title>L2流程列表</title>
|
||||
<!--要显示的SQL记录 \n 1.where条件支持所有@命令 \n 2.这个SQL应该是一个完整的,经过调试的SQL,除@命令外 \n-->
|
||||
<data><![CDATA[select PROCESSCODE,PROCESSNAME from BO_ACT_PROCESSINFO where LEVEL='L2']]></data>
|
||||
<!--每页显示行数-->
|
||||
<page>10</page>
|
||||
<!--是否换行显示-->
|
||||
<wordWrap>false</wordWrap>
|
||||
<!--插入前保存表单-->
|
||||
<saveForm>false</saveForm>
|
||||
<!--插入前非空校验-->
|
||||
<checkNotNull>true</checkNotNull>
|
||||
<!--插入后非空提示-->
|
||||
<aftersaveAlert>false</aftersaveAlert>
|
||||
<!--数据字典多选时是否显示已选中项-->
|
||||
<showChoose>false</showChoose>
|
||||
<!--字典模型是否受管-->
|
||||
<managed>false</managed>
|
||||
<configParam><![CDATA[{}]]></configParam>
|
||||
<!--管理员-->
|
||||
<administrator>admin</administrator>
|
||||
<!--创建人-->
|
||||
<createUser>admin</createUser>
|
||||
<!--参与显示的字段定义-->
|
||||
<field>
|
||||
<!--字段名称-->
|
||||
<name>PROCESSCODE</name>
|
||||
<!--该字段是否用来返回给父级窗口的控件,targetName为控件名-->
|
||||
<targetName>LEVEL_2_PROCESS_ID</targetName>
|
||||
<nameType>文本</nameType>
|
||||
<uicomponent>文本</uicomponent>
|
||||
<!--列表显示的标题-->
|
||||
<title>流程编码</title>
|
||||
<!--列表显示宽度,支持象素单位和百分比宽度-->
|
||||
<width>100</width>
|
||||
<!--是否该字段参与模糊检索,目前只允许为字符类型的字段支持模糊检索-->
|
||||
<filter>false</filter>
|
||||
<exact>false</exact>
|
||||
<hidden>false</hidden>
|
||||
<!--DW查询条件的searchID,数据字典时,回填策略需要targetName+DWID组合来进行回填-->
|
||||
</field>
|
||||
<field>
|
||||
<!--字段名称-->
|
||||
<name>PROCESSNAME</name>
|
||||
<!--该字段是否用来返回给父级窗口的控件,targetName为控件名-->
|
||||
<targetName>LEVEL_2_PROCESS_NAME</targetName>
|
||||
<nameType>文本</nameType>
|
||||
<uicomponent>文本</uicomponent>
|
||||
<!--列表显示的标题-->
|
||||
<title>流程名称</title>
|
||||
<!--列表显示宽度,支持象素单位和百分比宽度-->
|
||||
<width>100</width>
|
||||
<!--是否该字段参与模糊检索,目前只允许为字符类型的字段支持模糊检索-->
|
||||
<filter>false</filter>
|
||||
<exact>false</exact>
|
||||
<hidden>false</hidden>
|
||||
<!--DW查询条件的searchID,数据字典时,回填策略需要targetName+DWID组合来进行回填-->
|
||||
</field>
|
||||
<!--连接数据源-->
|
||||
<dataAdapter class="com.actionsoft.bpms.commons.dictionary.core.datasource.local.AWSDBData"/>
|
||||
</dictionary>
|
||||
<!--AWS 字典描述UUID-->
|
||||
<!--AWS 字典描述UUID-->
|
||||
|
||||
@ -2,68 +2,68 @@
|
||||
|
||||
<!--AWS 字典描述文件,适用于6.0以上版本 \n-->
|
||||
<dictionary>
|
||||
<id>8baf0fb9-d239-488e-b1ce-c284e892c6fb</id>
|
||||
<!--App分类-->
|
||||
<categoryName>资产库周期管理</categoryName>
|
||||
<!--字典显示的标题-->
|
||||
<title>L1流程列表</title>
|
||||
<!--要显示的SQL记录 \n 1.where条件支持所有@命令 \n 2.这个SQL应该是一个完整的,经过调试的SQL,除@命令外 \n-->
|
||||
<data><![CDATA[select PROCESSCODE,PROCESSNAME from BO_ACT_PROCESSINFO where LEVEL='L1']]></data>
|
||||
<!--每页显示行数-->
|
||||
<page>10</page>
|
||||
<!--是否换行显示-->
|
||||
<wordWrap>false</wordWrap>
|
||||
<!--插入前保存表单-->
|
||||
<saveForm>false</saveForm>
|
||||
<!--插入前非空校验-->
|
||||
<checkNotNull>true</checkNotNull>
|
||||
<!--插入后非空提示-->
|
||||
<aftersaveAlert>false</aftersaveAlert>
|
||||
<!--数据字典多选时是否显示已选中项-->
|
||||
<showChoose>false</showChoose>
|
||||
<!--字典模型是否受管-->
|
||||
<managed>false</managed>
|
||||
<configParam><![CDATA[{}]]></configParam>
|
||||
<!--管理员-->
|
||||
<administrator>admin</administrator>
|
||||
<!--创建人-->
|
||||
<createUser>admin</createUser>
|
||||
<!--参与显示的字段定义-->
|
||||
<field>
|
||||
<!--字段名称-->
|
||||
<name>PROCESSCODE</name>
|
||||
<!--该字段是否用来返回给父级窗口的控件,targetName为控件名-->
|
||||
<targetName>LEVEL_1_PROCESS_ID</targetName>
|
||||
<nameType>文本</nameType>
|
||||
<uicomponent>文本</uicomponent>
|
||||
<!--列表显示的标题-->
|
||||
<title>流程编码</title>
|
||||
<!--列表显示宽度,支持象素单位和百分比宽度-->
|
||||
<width>100</width>
|
||||
<!--是否该字段参与模糊检索,目前只允许为字符类型的字段支持模糊检索-->
|
||||
<filter>false</filter>
|
||||
<exact>false</exact>
|
||||
<hidden>false</hidden>
|
||||
<!--DW查询条件的searchID,数据字典时,回填策略需要targetName+DWID组合来进行回填-->
|
||||
</field>
|
||||
<field>
|
||||
<!--字段名称-->
|
||||
<name>PROCESSNAME</name>
|
||||
<!--该字段是否用来返回给父级窗口的控件,targetName为控件名-->
|
||||
<targetName>LEVEL_1_PROCESS_NAME</targetName>
|
||||
<nameType>文本</nameType>
|
||||
<uicomponent>文本</uicomponent>
|
||||
<!--列表显示的标题-->
|
||||
<title>流程名称</title>
|
||||
<!--列表显示宽度,支持象素单位和百分比宽度-->
|
||||
<width>100</width>
|
||||
<!--是否该字段参与模糊检索,目前只允许为字符类型的字段支持模糊检索-->
|
||||
<filter>false</filter>
|
||||
<exact>false</exact>
|
||||
<hidden>false</hidden>
|
||||
<!--DW查询条件的searchID,数据字典时,回填策略需要targetName+DWID组合来进行回填-->
|
||||
</field>
|
||||
<!--连接数据源-->
|
||||
<dataAdapter class="com.actionsoft.bpms.commons.dictionary.core.datasource.local.AWSDBData"/>
|
||||
<id>8baf0fb9-d239-488e-b1ce-c284e892c6fb</id>
|
||||
<!--App分类-->
|
||||
<categoryName>资产库周期管理</categoryName>
|
||||
<!--字典显示的标题-->
|
||||
<title>L1流程列表</title>
|
||||
<!--要显示的SQL记录 \n 1.where条件支持所有@命令 \n 2.这个SQL应该是一个完整的,经过调试的SQL,除@命令外 \n-->
|
||||
<data><![CDATA[select PROCESSCODE,PROCESSNAME from BO_ACT_PROCESSINFO where LEVEL='L1']]></data>
|
||||
<!--每页显示行数-->
|
||||
<page>10</page>
|
||||
<!--是否换行显示-->
|
||||
<wordWrap>false</wordWrap>
|
||||
<!--插入前保存表单-->
|
||||
<saveForm>false</saveForm>
|
||||
<!--插入前非空校验-->
|
||||
<checkNotNull>true</checkNotNull>
|
||||
<!--插入后非空提示-->
|
||||
<aftersaveAlert>false</aftersaveAlert>
|
||||
<!--数据字典多选时是否显示已选中项-->
|
||||
<showChoose>false</showChoose>
|
||||
<!--字典模型是否受管-->
|
||||
<managed>false</managed>
|
||||
<configParam><![CDATA[{}]]></configParam>
|
||||
<!--管理员-->
|
||||
<administrator>admin</administrator>
|
||||
<!--创建人-->
|
||||
<createUser>admin</createUser>
|
||||
<!--参与显示的字段定义-->
|
||||
<field>
|
||||
<!--字段名称-->
|
||||
<name>PROCESSCODE</name>
|
||||
<!--该字段是否用来返回给父级窗口的控件,targetName为控件名-->
|
||||
<targetName>LEVEL_1_PROCESS_ID</targetName>
|
||||
<nameType>文本</nameType>
|
||||
<uicomponent>文本</uicomponent>
|
||||
<!--列表显示的标题-->
|
||||
<title>流程编码</title>
|
||||
<!--列表显示宽度,支持象素单位和百分比宽度-->
|
||||
<width>100</width>
|
||||
<!--是否该字段参与模糊检索,目前只允许为字符类型的字段支持模糊检索-->
|
||||
<filter>false</filter>
|
||||
<exact>false</exact>
|
||||
<hidden>false</hidden>
|
||||
<!--DW查询条件的searchID,数据字典时,回填策略需要targetName+DWID组合来进行回填-->
|
||||
</field>
|
||||
<field>
|
||||
<!--字段名称-->
|
||||
<name>PROCESSNAME</name>
|
||||
<!--该字段是否用来返回给父级窗口的控件,targetName为控件名-->
|
||||
<targetName>LEVEL_1_PROCESS_NAME</targetName>
|
||||
<nameType>文本</nameType>
|
||||
<uicomponent>文本</uicomponent>
|
||||
<!--列表显示的标题-->
|
||||
<title>流程名称</title>
|
||||
<!--列表显示宽度,支持象素单位和百分比宽度-->
|
||||
<width>100</width>
|
||||
<!--是否该字段参与模糊检索,目前只允许为字符类型的字段支持模糊检索-->
|
||||
<filter>false</filter>
|
||||
<exact>false</exact>
|
||||
<hidden>false</hidden>
|
||||
<!--DW查询条件的searchID,数据字典时,回填策略需要targetName+DWID组合来进行回填-->
|
||||
</field>
|
||||
<!--连接数据源-->
|
||||
<dataAdapter class="com.actionsoft.bpms.commons.dictionary.core.datasource.local.AWSDBData"/>
|
||||
</dictionary>
|
||||
<!--AWS 字典描述UUID-->
|
||||
<!--AWS 字典描述UUID-->
|
||||
|
||||
@ -2,68 +2,68 @@
|
||||
|
||||
<!--AWS 字典描述文件,适用于6.0以上版本 \n-->
|
||||
<dictionary>
|
||||
<id>765921e7-2abb-4780-a68e-4cfbf940a41f</id>
|
||||
<!--App分类-->
|
||||
<categoryName>资产库周期管理</categoryName>
|
||||
<!--字典显示的标题-->
|
||||
<title>L3流程列表</title>
|
||||
<!--要显示的SQL记录 \n 1.where条件支持所有@命令 \n 2.这个SQL应该是一个完整的,经过调试的SQL,除@命令外 \n-->
|
||||
<data><![CDATA[select PROCESSCODE,PROCESSNAME from BO_ACT_PROCESSINFO where LEVEL='L3']]></data>
|
||||
<!--每页显示行数-->
|
||||
<page>10</page>
|
||||
<!--是否换行显示-->
|
||||
<wordWrap>false</wordWrap>
|
||||
<!--插入前保存表单-->
|
||||
<saveForm>false</saveForm>
|
||||
<!--插入前非空校验-->
|
||||
<checkNotNull>true</checkNotNull>
|
||||
<!--插入后非空提示-->
|
||||
<aftersaveAlert>false</aftersaveAlert>
|
||||
<!--数据字典多选时是否显示已选中项-->
|
||||
<showChoose>false</showChoose>
|
||||
<!--字典模型是否受管-->
|
||||
<managed>false</managed>
|
||||
<configParam><![CDATA[{}]]></configParam>
|
||||
<!--管理员-->
|
||||
<administrator>admin</administrator>
|
||||
<!--创建人-->
|
||||
<createUser>admin</createUser>
|
||||
<!--参与显示的字段定义-->
|
||||
<field>
|
||||
<!--字段名称-->
|
||||
<name>PROCESSCODE</name>
|
||||
<!--该字段是否用来返回给父级窗口的控件,targetName为控件名-->
|
||||
<targetName>LEVEL_3_PROCESS_ID</targetName>
|
||||
<nameType>文本</nameType>
|
||||
<uicomponent>文本</uicomponent>
|
||||
<!--列表显示的标题-->
|
||||
<title>流程编码</title>
|
||||
<!--列表显示宽度,支持象素单位和百分比宽度-->
|
||||
<width>100</width>
|
||||
<!--是否该字段参与模糊检索,目前只允许为字符类型的字段支持模糊检索-->
|
||||
<filter>false</filter>
|
||||
<exact>false</exact>
|
||||
<hidden>false</hidden>
|
||||
<!--DW查询条件的searchID,数据字典时,回填策略需要targetName+DWID组合来进行回填-->
|
||||
</field>
|
||||
<field>
|
||||
<!--字段名称-->
|
||||
<name>PROCESSNAME</name>
|
||||
<!--该字段是否用来返回给父级窗口的控件,targetName为控件名-->
|
||||
<targetName>LEVEL_3_PROCESS_NAME</targetName>
|
||||
<nameType>文本</nameType>
|
||||
<uicomponent>文本</uicomponent>
|
||||
<!--列表显示的标题-->
|
||||
<title>流程名称</title>
|
||||
<!--列表显示宽度,支持象素单位和百分比宽度-->
|
||||
<width>100</width>
|
||||
<!--是否该字段参与模糊检索,目前只允许为字符类型的字段支持模糊检索-->
|
||||
<filter>false</filter>
|
||||
<exact>false</exact>
|
||||
<hidden>false</hidden>
|
||||
<!--DW查询条件的searchID,数据字典时,回填策略需要targetName+DWID组合来进行回填-->
|
||||
</field>
|
||||
<!--连接数据源-->
|
||||
<dataAdapter class="com.actionsoft.bpms.commons.dictionary.core.datasource.local.AWSDBData"/>
|
||||
<id>765921e7-2abb-4780-a68e-4cfbf940a41f</id>
|
||||
<!--App分类-->
|
||||
<categoryName>资产库周期管理</categoryName>
|
||||
<!--字典显示的标题-->
|
||||
<title>L3流程列表</title>
|
||||
<!--要显示的SQL记录 \n 1.where条件支持所有@命令 \n 2.这个SQL应该是一个完整的,经过调试的SQL,除@命令外 \n-->
|
||||
<data><![CDATA[select PROCESSCODE,PROCESSNAME from BO_ACT_PROCESSINFO where LEVEL='L3']]></data>
|
||||
<!--每页显示行数-->
|
||||
<page>10</page>
|
||||
<!--是否换行显示-->
|
||||
<wordWrap>false</wordWrap>
|
||||
<!--插入前保存表单-->
|
||||
<saveForm>false</saveForm>
|
||||
<!--插入前非空校验-->
|
||||
<checkNotNull>true</checkNotNull>
|
||||
<!--插入后非空提示-->
|
||||
<aftersaveAlert>false</aftersaveAlert>
|
||||
<!--数据字典多选时是否显示已选中项-->
|
||||
<showChoose>false</showChoose>
|
||||
<!--字典模型是否受管-->
|
||||
<managed>false</managed>
|
||||
<configParam><![CDATA[{}]]></configParam>
|
||||
<!--管理员-->
|
||||
<administrator>admin</administrator>
|
||||
<!--创建人-->
|
||||
<createUser>admin</createUser>
|
||||
<!--参与显示的字段定义-->
|
||||
<field>
|
||||
<!--字段名称-->
|
||||
<name>PROCESSCODE</name>
|
||||
<!--该字段是否用来返回给父级窗口的控件,targetName为控件名-->
|
||||
<targetName>LEVEL_3_PROCESS_ID</targetName>
|
||||
<nameType>文本</nameType>
|
||||
<uicomponent>文本</uicomponent>
|
||||
<!--列表显示的标题-->
|
||||
<title>流程编码</title>
|
||||
<!--列表显示宽度,支持象素单位和百分比宽度-->
|
||||
<width>100</width>
|
||||
<!--是否该字段参与模糊检索,目前只允许为字符类型的字段支持模糊检索-->
|
||||
<filter>false</filter>
|
||||
<exact>false</exact>
|
||||
<hidden>false</hidden>
|
||||
<!--DW查询条件的searchID,数据字典时,回填策略需要targetName+DWID组合来进行回填-->
|
||||
</field>
|
||||
<field>
|
||||
<!--字段名称-->
|
||||
<name>PROCESSNAME</name>
|
||||
<!--该字段是否用来返回给父级窗口的控件,targetName为控件名-->
|
||||
<targetName>LEVEL_3_PROCESS_NAME</targetName>
|
||||
<nameType>文本</nameType>
|
||||
<uicomponent>文本</uicomponent>
|
||||
<!--列表显示的标题-->
|
||||
<title>流程名称</title>
|
||||
<!--列表显示宽度,支持象素单位和百分比宽度-->
|
||||
<width>100</width>
|
||||
<!--是否该字段参与模糊检索,目前只允许为字符类型的字段支持模糊检索-->
|
||||
<filter>false</filter>
|
||||
<exact>false</exact>
|
||||
<hidden>false</hidden>
|
||||
<!--DW查询条件的searchID,数据字典时,回填策略需要targetName+DWID组合来进行回填-->
|
||||
</field>
|
||||
<!--连接数据源-->
|
||||
<dataAdapter class="com.actionsoft.bpms.commons.dictionary.core.datasource.local.AWSDBData"/>
|
||||
</dictionary>
|
||||
<!--AWS 字典描述UUID-->
|
||||
<!--AWS 字典描述UUID-->
|
||||
|
||||
@ -2,15 +2,15 @@
|
||||
|
||||
<!--AWS 字典描述文件,适用于3.0以上版本-->
|
||||
<dictionary>
|
||||
<id>0dbcd2ef-52f6-4879-a04b-13c93e1e0913</id>
|
||||
<!--app分类-->
|
||||
<!--字典显示的标题-->
|
||||
<!--要显示的SQL记录
|
||||
1.where条件支持所有@命令,@命令与其他SQL字符串连接使用+,参见+语法
|
||||
2.这个SQL应该是一个完整的,经过调试的SQL,除@命令外
|
||||
-->
|
||||
<!--每页显示行数-->
|
||||
<page>10</page>
|
||||
<!--连接数据源-->
|
||||
<id>0dbcd2ef-52f6-4879-a04b-13c93e1e0913</id>
|
||||
<!--app分类-->
|
||||
<!--字典显示的标题-->
|
||||
<!--要显示的SQL记录
|
||||
1.where条件支持所有@命令,@命令与其他SQL字符串连接使用+,参见+语法
|
||||
2.这个SQL应该是一个完整的,经过调试的SQL,除@命令外
|
||||
-->
|
||||
<!--每页显示行数-->
|
||||
<page>10</page>
|
||||
<!--连接数据源-->
|
||||
</dictionary>
|
||||
<!--AWS 字典描述UUID-->
|
||||
<!--AWS 字典描述UUID-->
|
||||
|
||||
@ -20,321 +20,321 @@ import com.actionsoft.bpms.server.conf.server.AWSServerConf;
|
||||
import com.actionsoft.bpms.util.DBSql;
|
||||
public class PublisherClientDao {
|
||||
|
||||
/**
|
||||
* 获取模型关联的模型Id
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
* @author zhangming
|
||||
*/
|
||||
public List<Map<String, String>> getFileIdsByRelationFileId(String id) {
|
||||
String sql = "SELECT DISTINCT(r.FILEID), pal.PLNAME, MODIFYDATE FROM APP_ACT_COE_PAL_SHAPE_RLAT r, APP_ACT_COE_PAL_REPOSITORY pal WHERE r.RELATIONFILEID in (" + id + ") AND r.FILEID = pal.ID AND pal.PLCATEGORY='process' ORDER BY MODIFYDATE DESC";
|
||||
List<Map<String, String>> list = DBSql.query(sql, new RowMapper<Map<String, String>>() {
|
||||
@Override
|
||||
public Map<String, String> mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
map.put("id", rs.getString(1));
|
||||
map.put("name", rs.getString(2));
|
||||
return map;
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
/**
|
||||
* 获取模型关联的模型Id
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
* @author zhangming
|
||||
*/
|
||||
public List<Map<String, String>> getFileIdsByRelationFileId(String id) {
|
||||
String sql = "SELECT DISTINCT(r.FILEID), pal.PLNAME, MODIFYDATE FROM APP_ACT_COE_PAL_SHAPE_RLAT r, APP_ACT_COE_PAL_REPOSITORY pal WHERE r.RELATIONFILEID in (" + id + ") AND r.FILEID = pal.ID AND pal.PLCATEGORY='process' ORDER BY MODIFYDATE DESC";
|
||||
List<Map<String, String>> list = DBSql.query(sql, new RowMapper<Map<String, String>>() {
|
||||
@Override
|
||||
public Map<String, String> mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
map.put("id", rs.getString(1));
|
||||
map.put("name", rs.getString(2));
|
||||
return map;
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取模型关联的模型Id(只有文件属性关联)
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
* @author zhangming
|
||||
*/
|
||||
public List<Map<String, String>> getFileIdsByRelationFileId1(String id) {
|
||||
String sql = "SELECT DISTINCT(r.FILEID), pal.PLNAME, MODIFYDATE FROM APP_ACT_COE_PAL_SHAPE_RLAT r, APP_ACT_COE_PAL_REPOSITORY pal WHERE r.RELATIONFILEID in (" + id + ") AND r.FILEID = pal.ID AND r.SHAPEID='' AND pal.PLCATEGORY='process' ORDER BY MODIFYDATE DESC";
|
||||
List<Map<String, String>> list = DBSql.query(sql, new RowMapper<Map<String, String>>() {
|
||||
@Override
|
||||
public Map<String, String> mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
map.put("id", rs.getString(1));
|
||||
map.put("name", rs.getString(2));
|
||||
return map;
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取管理标准、技术标准和工作标准的Id
|
||||
*
|
||||
* @return
|
||||
* @author zhangming
|
||||
*/
|
||||
public Map<String, String> getControlPolicyId(String wsId) {
|
||||
Map<String, String> resultMap = new HashMap<String, String>();
|
||||
String sql = "SELECT ID, PLNAME FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME IN (?,?,?) AND WSID=? AND PLMETHODID='control.policy'";
|
||||
List<Map<String, String>> listMap = DBSql.query(sql, new RowMapper<Map<String, String>>() {
|
||||
@Override
|
||||
public Map<String, String> mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
map.put(rs.getString(2), rs.getString(1));
|
||||
return map;
|
||||
}
|
||||
}, new Object[]{PublisherConstant.ORG_RELATION_MANAGEMENT_STANDARD, PublisherConstant.ORG_RELATION_TECHNICAL_STANDARD, PublisherConstant.ORG_RELATION_WORK_STANDARD, wsId});
|
||||
for (Map<String, String> map : listMap) {
|
||||
Set<String> set = map.keySet();
|
||||
for (String key : set) {
|
||||
resultMap.put(key, map.get(key));
|
||||
}
|
||||
}
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取某个范围内的关联模型Id
|
||||
*
|
||||
* @param relationFileIds
|
||||
* @return
|
||||
* @author zhangming
|
||||
*/
|
||||
public List<Map<String, String>> getFileIdsByRelation(String relationFileIds) {
|
||||
if (relationFileIds == null || "".equals(relationFileIds)) {
|
||||
return new ArrayList<Map<String, String>>();
|
||||
}
|
||||
String sql = "SELECT pal.ID, pal.PLNAME, p.PUBLISHDATE FROM APP_ACT_COE_PAL_REPOSITORY pal, ("
|
||||
+ " SELECT r.FILEID, MAX(p.PUBLISHDATE) PUBLISHDATE"
|
||||
+ " FROM APP_ACT_COE_PAL_SHAPE_RLAT r, APP_ACT_COE_PAL_PUBLISH p, APP_ACT_COE_PAL_PUBLISH_LIST pl"
|
||||
+ " WHERE r.FILEID = pl.PALREPOSITORYID AND r.RELATIONFILEID IN (" + relationFileIds + ") AND p.ID=pl.PID AND pl.ACTIONTYPE='N'"
|
||||
+ " GROUP BY r.FILEID) p"
|
||||
+ " WHERE pal.ID = p.FILEID and pal.ISPUBLISH=1"
|
||||
+ " ORDER BY p.PUBLISHDATE DESC";
|
||||
List<Map<String, String>> list = DBSql.query(sql, new RowMapper<Map<String, String>>() {
|
||||
@Override
|
||||
public Map<String, String> mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
if (rs.getString(1) == null) {
|
||||
return null;
|
||||
}
|
||||
map.put("id", rs.getString(1));
|
||||
map.put("name", rs.getString(2));
|
||||
Timestamp publishDate = rs.getTimestamp(3);
|
||||
DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
map.put("publishDate", sdf.format(publishDate));
|
||||
return map;
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取某个范围内的关联模型Id(只有文件属性关联)
|
||||
*
|
||||
* @param relationFileIds
|
||||
* @return
|
||||
* @author zhangming
|
||||
*/
|
||||
public List<Map<String, String>> getFileIdsByRelation1(String relationFileIds) {
|
||||
if (relationFileIds == null || "".equals(relationFileIds)) {
|
||||
return new ArrayList<Map<String, String>>();
|
||||
}
|
||||
String sql = "SELECT pal.ID, pal.PLNAME, p.PUBLISHDATE FROM APP_ACT_COE_PAL_REPOSITORY pal, ("
|
||||
+ " SELECT r.FILEID, MAX(p.PUBLISHDATE) PUBLISHDATE"
|
||||
+ " FROM APP_ACT_COE_PAL_SHAPE_RLAT r, APP_ACT_COE_PAL_PUBLISH p, APP_ACT_COE_PAL_PUBLISH_LIST pl"
|
||||
+ " WHERE r.FILEID = pl.PALREPOSITORYID AND r.RELATIONFILEID IN (" + relationFileIds + ") AND r.SHAPEID='' AND p.ID=pl.PID AND pl.ACTIONTYPE='N'"
|
||||
+ " GROUP BY r.FILEID) p"
|
||||
+ " WHERE pal.ID = p.FILEID and pal.ISPUBLISH=1"
|
||||
+ " ORDER BY p.PUBLISHDATE DESC";
|
||||
List<Map<String, String>> list = DBSql.query(sql, new RowMapper<Map<String, String>>() {
|
||||
@Override
|
||||
public Map<String, String> mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
if (rs.getString(1) == null) {
|
||||
return null;
|
||||
}
|
||||
map.put("id", rs.getString(1));
|
||||
map.put("name", rs.getString(2));
|
||||
Timestamp publishDate = rs.getTimestamp(3);
|
||||
DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
map.put("publishDate", sdf.format(publishDate));
|
||||
return map;
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取某个范围内的被关联模型Id
|
||||
*
|
||||
* @param fileIds
|
||||
* @param relationFileIds
|
||||
* @return
|
||||
* @author zhangming
|
||||
*/
|
||||
public List<Map<String, String>> getRelationFileIds(String fileIds, String relationFileIds) {
|
||||
if (fileIds == null || "".equals(fileIds) || relationFileIds == null || "".equals(relationFileIds)) {
|
||||
return new ArrayList<Map<String, String>>();
|
||||
}
|
||||
String sql = "SELECT pal.ID, pal.PLNAME, p.PUBLISHDATE from APP_ACT_COE_PAL_REPOSITORY pal, ("
|
||||
+ " SELECT r.RELATIONFILEID, MAX(p.PUBLISHDATE) PUBLISHDATE"
|
||||
+ " FROM APP_ACT_COE_PAL_SHAPE_RLAT r, APP_ACT_COE_PAL_PUBLISH p, APP_ACT_COE_PAL_PUBLISH_LIST pl"
|
||||
+ " WHERE r.RELATIONFILEID = pl.PALREPOSITORYID AND r.FILEID IN (" + fileIds + ") AND r.RELATIONFILEID IN (" + relationFileIds + ") AND p.ID=pl.PID AND pl.ACTIONTYPE='N'"
|
||||
+ " GROUP BY r.RELATIONFILEID) p"
|
||||
+ " WHERE pal.ID=p.RELATIONFILEID and pal.ISPUBLISH=1"
|
||||
+ " ORDER BY p.PUBLISHDATE DESC";
|
||||
List<Map<String, String>> list = DBSql.query(sql, new RowMapper<Map<String, String>>() {
|
||||
@Override
|
||||
public Map<String, String> mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
if (rs.getString(1) == null) {
|
||||
return null;
|
||||
}
|
||||
map.put("id", rs.getString(1));
|
||||
map.put("name", rs.getString(2));
|
||||
Timestamp publishDate = rs.getTimestamp(3);
|
||||
DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
map.put("publishDate", sdf.format(publishDate));
|
||||
return map;
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 发布历史
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
* @author zhangming
|
||||
*/
|
||||
public List<Map<String, String>> getPublishListData(String ids, String category, String wsId, String methodId) {
|
||||
if (ids == null || "".equals(ids)) {
|
||||
return new ArrayList<Map<String, String>>();
|
||||
}
|
||||
String sql = "SELECT r.ID, r.PLNAME, p.PUBLISHDATE from APP_ACT_COE_PAL_REPOSITORY r, ("
|
||||
+ " SELECT pl.PALREPOSITORYID, MAX(p.PUBLISHDATE) publishdate "
|
||||
+ " FROM APP_ACT_COE_PAL_PUBLISH p, APP_ACT_COE_PAL_PUBLISH_LIST pl"
|
||||
+ " WHERE p.ID=pl.PID AND pl.PALREPOSITORYID IN (" + ids + ")"
|
||||
+ " GROUP BY pl.PALREPOSITORYID ) p"
|
||||
+ " WHERE r.ID = p.PALREPOSITORYID AND r.PLCATEGORY='" + category + "' AND r.PLMETHODID <> 'default' AND r.WSID='" + wsId + "'";
|
||||
if (methodId != null && !"".equals(methodId)) {
|
||||
sql += " AND r.PLMETHODID='" + methodId + "'";
|
||||
}
|
||||
sql += " ORDER BY p.PUBLISHDATE DESC";
|
||||
List<Map<String, String>> list = DBSql.query(sql, new RowMapper<Map<String, String>>() {
|
||||
@Override
|
||||
public Map<String, String> mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
if (rs.getString(1) == null) {
|
||||
return null;
|
||||
}
|
||||
map.put("id", rs.getString(1));
|
||||
map.put("name", rs.getString(2));
|
||||
Timestamp publishDate = rs.getTimestamp(3);
|
||||
DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
map.put("publishDate", sdf.format(publishDate));
|
||||
return map;
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
/**
|
||||
* 根据name获取未发布的流程文件
|
||||
* @param name
|
||||
* @param wsId
|
||||
* @param methodId
|
||||
* @return
|
||||
*/
|
||||
public List<PALRepositoryModel> getCoeProcessLevelByNamen(String name, String wsId, String methodId) {
|
||||
String namelike = "";
|
||||
if (StringUtil.containSpecialChar(name)) {
|
||||
namelike = "'%" + StringUtil.replaceSqlStr(name, AWSServerConf.isMySQL()) + "%'" + (AWSServerConf.isMySQL() ? "ESCAPE '\\\\'" : " ESCAPE '\\'");
|
||||
} else {
|
||||
namelike = "'%" + name + "%'";
|
||||
}
|
||||
StringBuilder sql = new StringBuilder("select * from " + PALRepositoryModelImpl.DATABASE_ENTITY + " where " + PALRepositoryModelImpl.FIELD_WS_ID + "='" + wsId + "' and " + PALRepositoryModelImpl.FIELD_PL_NAME + " like " + namelike + " and ISPUBLISH = '0'");
|
||||
if (methodId != null && !"".equals(methodId)) {
|
||||
sql.append(" and PLMETHODID = '" + methodId + "' ");
|
||||
}
|
||||
sql.append(" ORDER BY " + PALRepositoryModelImpl.FIELD_PL_ORDERINDEX + " ASC");
|
||||
return DBSql.query(sql.toString(), new PALRespositoryModelMapper());
|
||||
}
|
||||
/**
|
||||
* 根据name获取有多个版本的流程文件
|
||||
* @param name
|
||||
* @param wsId
|
||||
* @param methodId
|
||||
* @return
|
||||
*/
|
||||
public List<PALRepositoryModel> getCoeProcessLevelByNamec(String name, String wsId, String methodId) {
|
||||
String namelike = "";
|
||||
if (StringUtil.containSpecialChar(name)) {
|
||||
namelike = "'%" + StringUtil.replaceSqlStr(name, AWSServerConf.isMySQL()) + "%'" + (AWSServerConf.isMySQL() ? "ESCAPE '\\\\'" : " ESCAPE '\\'");
|
||||
} else {
|
||||
namelike = "'%" + name + "%'";
|
||||
}
|
||||
StringBuilder sql = new StringBuilder("select * from " + PALRepositoryModelImpl.DATABASE_ENTITY + " where " + PALRepositoryModelImpl.FIELD_WS_ID + "='" + wsId + "' and " + PALRepositoryModelImpl.FIELD_PL_NAME + " like " + namelike + " and ISPUBLISH = '1'");
|
||||
String sqlcount = "select count(*) from " + PALRepositoryModelImpl.DATABASE_ENTITY + " where " + PALRepositoryModelImpl.FIELD_WS_ID + "='" + wsId + "' and " + PALRepositoryModelImpl.FIELD_PL_NAME + " like " + namelike + "";
|
||||
|
||||
/**
|
||||
* 获取模型关联的模型Id(只有文件属性关联)
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
* @author zhangming
|
||||
*/
|
||||
public List<Map<String, String>> getFileIdsByRelationFileId1(String id) {
|
||||
String sql = "SELECT DISTINCT(r.FILEID), pal.PLNAME, MODIFYDATE FROM APP_ACT_COE_PAL_SHAPE_RLAT r, APP_ACT_COE_PAL_REPOSITORY pal WHERE r.RELATIONFILEID in (" + id + ") AND r.FILEID = pal.ID AND r.SHAPEID='' AND pal.PLCATEGORY='process' ORDER BY MODIFYDATE DESC";
|
||||
List<Map<String, String>> list = DBSql.query(sql, new RowMapper<Map<String, String>>() {
|
||||
@Override
|
||||
public Map<String, String> mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
map.put("id", rs.getString(1));
|
||||
map.put("name", rs.getString(2));
|
||||
return map;
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
if (methodId != null && !"".equals(methodId)) {
|
||||
sql.append(" and PLMETHODID = '" + methodId + "' ");
|
||||
}
|
||||
sql.append(" ORDER BY " + PALRepositoryModelImpl.FIELD_PL_ORDERINDEX + " ASC");
|
||||
sqlcount+=" ORDER BY " + PALRepositoryModelImpl.FIELD_PL_ORDERINDEX + " ASC";
|
||||
String num = DBSql.getString(sqlcount);
|
||||
int number = Integer.parseInt(num);
|
||||
if(number <= 1) {
|
||||
List<PALRepositoryModel> data = null;
|
||||
return data;
|
||||
}
|
||||
return DBSql.query(sql.toString(), new PALRespositoryModelMapper());
|
||||
}
|
||||
/**
|
||||
* 根据name获取停用的流程文件
|
||||
* @param name
|
||||
* @param wsId
|
||||
* @param category
|
||||
* @return
|
||||
*/
|
||||
public List<PALRepositoryModel> getCoeProcessLevelByNameAndCategorys(String name, String wsId, String category) {
|
||||
|
||||
String namelike = "";
|
||||
|
||||
if (StringUtil.containSpecialChar(name)) {
|
||||
namelike = "'%" + StringUtil.replaceSqlStr(name, AWSServerConf.isMySQL()) + "%'" + (AWSServerConf.isMySQL() ? "ESCAPE '\\\\'" : " ESCAPE '\\'");
|
||||
} else {
|
||||
namelike = "'%" + name + "%'";
|
||||
}
|
||||
StringBuilder sql = new StringBuilder("select * from " + PALRepositoryModelImpl.DATABASE_ENTITY + " where " + PALRepositoryModelImpl.FIELD_WS_ID + "='" + wsId + "' and " + PALRepositoryModelImpl.FIELD_PL_NAME + " like " + namelike + " and " + PALRepositoryModelImpl.FIELD_IS_USE + "='1' and ISPUBLISH = '1'");
|
||||
|
||||
/**
|
||||
* 获取管理标准、技术标准和工作标准的Id
|
||||
*
|
||||
* @return
|
||||
* @author zhangming
|
||||
*/
|
||||
public Map<String, String> getControlPolicyId(String wsId) {
|
||||
Map<String, String> resultMap = new HashMap<String, String>();
|
||||
String sql = "SELECT ID, PLNAME FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME IN (?,?,?) AND WSID=? AND PLMETHODID='control.policy'";
|
||||
List<Map<String, String>> listMap = DBSql.query(sql, new RowMapper<Map<String, String>>() {
|
||||
@Override
|
||||
public Map<String, String> mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
map.put(rs.getString(2), rs.getString(1));
|
||||
return map;
|
||||
}
|
||||
}, new Object[]{PublisherConstant.ORG_RELATION_MANAGEMENT_STANDARD, PublisherConstant.ORG_RELATION_TECHNICAL_STANDARD, PublisherConstant.ORG_RELATION_WORK_STANDARD, wsId});
|
||||
for (Map<String, String> map : listMap) {
|
||||
Set<String> set = map.keySet();
|
||||
for (String key : set) {
|
||||
resultMap.put(key, map.get(key));
|
||||
}
|
||||
}
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取某个范围内的关联模型Id
|
||||
*
|
||||
* @param relationFileIds
|
||||
* @return
|
||||
* @author zhangming
|
||||
*/
|
||||
public List<Map<String, String>> getFileIdsByRelation(String relationFileIds) {
|
||||
if (relationFileIds == null || "".equals(relationFileIds)) {
|
||||
return new ArrayList<Map<String, String>>();
|
||||
}
|
||||
String sql = "SELECT pal.ID, pal.PLNAME, p.PUBLISHDATE FROM APP_ACT_COE_PAL_REPOSITORY pal, ("
|
||||
+ " SELECT r.FILEID, MAX(p.PUBLISHDATE) PUBLISHDATE"
|
||||
+ " FROM APP_ACT_COE_PAL_SHAPE_RLAT r, APP_ACT_COE_PAL_PUBLISH p, APP_ACT_COE_PAL_PUBLISH_LIST pl"
|
||||
+ " WHERE r.FILEID = pl.PALREPOSITORYID AND r.RELATIONFILEID IN (" + relationFileIds + ") AND p.ID=pl.PID AND pl.ACTIONTYPE='N'"
|
||||
+ " GROUP BY r.FILEID) p"
|
||||
+ " WHERE pal.ID = p.FILEID and pal.ISPUBLISH=1"
|
||||
+ " ORDER BY p.PUBLISHDATE DESC";
|
||||
List<Map<String, String>> list = DBSql.query(sql, new RowMapper<Map<String, String>>() {
|
||||
@Override
|
||||
public Map<String, String> mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
if (rs.getString(1) == null) {
|
||||
return null;
|
||||
}
|
||||
map.put("id", rs.getString(1));
|
||||
map.put("name", rs.getString(2));
|
||||
Timestamp publishDate = rs.getTimestamp(3);
|
||||
DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
map.put("publishDate", sdf.format(publishDate));
|
||||
return map;
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取某个范围内的关联模型Id(只有文件属性关联)
|
||||
*
|
||||
* @param relationFileIds
|
||||
* @return
|
||||
* @author zhangming
|
||||
*/
|
||||
public List<Map<String, String>> getFileIdsByRelation1(String relationFileIds) {
|
||||
if (relationFileIds == null || "".equals(relationFileIds)) {
|
||||
return new ArrayList<Map<String, String>>();
|
||||
}
|
||||
String sql = "SELECT pal.ID, pal.PLNAME, p.PUBLISHDATE FROM APP_ACT_COE_PAL_REPOSITORY pal, ("
|
||||
+ " SELECT r.FILEID, MAX(p.PUBLISHDATE) PUBLISHDATE"
|
||||
+ " FROM APP_ACT_COE_PAL_SHAPE_RLAT r, APP_ACT_COE_PAL_PUBLISH p, APP_ACT_COE_PAL_PUBLISH_LIST pl"
|
||||
+ " WHERE r.FILEID = pl.PALREPOSITORYID AND r.RELATIONFILEID IN (" + relationFileIds + ") AND r.SHAPEID='' AND p.ID=pl.PID AND pl.ACTIONTYPE='N'"
|
||||
+ " GROUP BY r.FILEID) p"
|
||||
+ " WHERE pal.ID = p.FILEID and pal.ISPUBLISH=1"
|
||||
+ " ORDER BY p.PUBLISHDATE DESC";
|
||||
List<Map<String, String>> list = DBSql.query(sql, new RowMapper<Map<String, String>>() {
|
||||
@Override
|
||||
public Map<String, String> mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
if (rs.getString(1) == null) {
|
||||
return null;
|
||||
}
|
||||
map.put("id", rs.getString(1));
|
||||
map.put("name", rs.getString(2));
|
||||
Timestamp publishDate = rs.getTimestamp(3);
|
||||
DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
map.put("publishDate", sdf.format(publishDate));
|
||||
return map;
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取某个范围内的被关联模型Id
|
||||
*
|
||||
* @param fileIds
|
||||
* @param relationFileIds
|
||||
* @return
|
||||
* @author zhangming
|
||||
*/
|
||||
public List<Map<String, String>> getRelationFileIds(String fileIds, String relationFileIds) {
|
||||
if (fileIds == null || "".equals(fileIds) || relationFileIds == null || "".equals(relationFileIds)) {
|
||||
return new ArrayList<Map<String, String>>();
|
||||
}
|
||||
String sql = "SELECT pal.ID, pal.PLNAME, p.PUBLISHDATE from APP_ACT_COE_PAL_REPOSITORY pal, ("
|
||||
+ " SELECT r.RELATIONFILEID, MAX(p.PUBLISHDATE) PUBLISHDATE"
|
||||
+ " FROM APP_ACT_COE_PAL_SHAPE_RLAT r, APP_ACT_COE_PAL_PUBLISH p, APP_ACT_COE_PAL_PUBLISH_LIST pl"
|
||||
+ " WHERE r.RELATIONFILEID = pl.PALREPOSITORYID AND r.FILEID IN (" + fileIds + ") AND r.RELATIONFILEID IN (" + relationFileIds + ") AND p.ID=pl.PID AND pl.ACTIONTYPE='N'"
|
||||
+ " GROUP BY r.RELATIONFILEID) p"
|
||||
+ " WHERE pal.ID=p.RELATIONFILEID and pal.ISPUBLISH=1"
|
||||
+ " ORDER BY p.PUBLISHDATE DESC";
|
||||
List<Map<String, String>> list = DBSql.query(sql, new RowMapper<Map<String, String>>() {
|
||||
@Override
|
||||
public Map<String, String> mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
if (rs.getString(1) == null) {
|
||||
return null;
|
||||
}
|
||||
map.put("id", rs.getString(1));
|
||||
map.put("name", rs.getString(2));
|
||||
Timestamp publishDate = rs.getTimestamp(3);
|
||||
DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
map.put("publishDate", sdf.format(publishDate));
|
||||
return map;
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
* 发布历史
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
* @author zhangming
|
||||
*/
|
||||
public List<Map<String, String>> getPublishListData(String ids, String category, String wsId, String methodId) {
|
||||
if (ids == null || "".equals(ids)) {
|
||||
return new ArrayList<Map<String, String>>();
|
||||
}
|
||||
String sql = "SELECT r.ID, r.PLNAME, p.PUBLISHDATE from APP_ACT_COE_PAL_REPOSITORY r, ("
|
||||
+ " SELECT pl.PALREPOSITORYID, MAX(p.PUBLISHDATE) publishdate "
|
||||
+ " FROM APP_ACT_COE_PAL_PUBLISH p, APP_ACT_COE_PAL_PUBLISH_LIST pl"
|
||||
+ " WHERE p.ID=pl.PID AND pl.PALREPOSITORYID IN (" + ids + ")"
|
||||
+ " GROUP BY pl.PALREPOSITORYID ) p"
|
||||
+ " WHERE r.ID = p.PALREPOSITORYID AND r.PLCATEGORY='" + category + "' AND r.PLMETHODID <> 'default' AND r.WSID='" + wsId + "'";
|
||||
if (methodId != null && !"".equals(methodId)) {
|
||||
sql += " AND r.PLMETHODID='" + methodId + "'";
|
||||
}
|
||||
sql += " ORDER BY p.PUBLISHDATE DESC";
|
||||
List<Map<String, String>> list = DBSql.query(sql, new RowMapper<Map<String, String>>() {
|
||||
@Override
|
||||
public Map<String, String> mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
if (rs.getString(1) == null) {
|
||||
return null;
|
||||
}
|
||||
map.put("id", rs.getString(1));
|
||||
map.put("name", rs.getString(2));
|
||||
Timestamp publishDate = rs.getTimestamp(3);
|
||||
DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
map.put("publishDate", sdf.format(publishDate));
|
||||
return map;
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
/**
|
||||
* 根据name获取未发布的流程文件
|
||||
* @param name
|
||||
* @param wsId
|
||||
* @param methodId
|
||||
* @return
|
||||
*/
|
||||
public List<PALRepositoryModel> getCoeProcessLevelByNamen(String name, String wsId, String methodId) {
|
||||
String namelike = "";
|
||||
if (StringUtil.containSpecialChar(name)) {
|
||||
namelike = "'%" + StringUtil.replaceSqlStr(name, AWSServerConf.isMySQL()) + "%'" + (AWSServerConf.isMySQL() ? "ESCAPE '\\\\'" : " ESCAPE '\\'");
|
||||
} else {
|
||||
namelike = "'%" + name + "%'";
|
||||
}
|
||||
StringBuilder sql = new StringBuilder("select * from " + PALRepositoryModelImpl.DATABASE_ENTITY + " where " + PALRepositoryModelImpl.FIELD_WS_ID + "='" + wsId + "' and " + PALRepositoryModelImpl.FIELD_PL_NAME + " like " + namelike + " and ISPUBLISH = '0'");
|
||||
if (methodId != null && !"".equals(methodId)) {
|
||||
sql.append(" and PLMETHODID = '" + methodId + "' ");
|
||||
}
|
||||
sql.append(" ORDER BY " + PALRepositoryModelImpl.FIELD_PL_ORDERINDEX + " ASC");
|
||||
return DBSql.query(sql.toString(), new PALRespositoryModelMapper());
|
||||
}
|
||||
/**
|
||||
* 根据name获取有多个版本的流程文件
|
||||
* @param name
|
||||
* @param wsId
|
||||
* @param methodId
|
||||
* @return
|
||||
*/
|
||||
public List<PALRepositoryModel> getCoeProcessLevelByNamec(String name, String wsId, String methodId) {
|
||||
String namelike = "";
|
||||
if (StringUtil.containSpecialChar(name)) {
|
||||
namelike = "'%" + StringUtil.replaceSqlStr(name, AWSServerConf.isMySQL()) + "%'" + (AWSServerConf.isMySQL() ? "ESCAPE '\\\\'" : " ESCAPE '\\'");
|
||||
} else {
|
||||
namelike = "'%" + name + "%'";
|
||||
}
|
||||
StringBuilder sql = new StringBuilder("select * from " + PALRepositoryModelImpl.DATABASE_ENTITY + " where " + PALRepositoryModelImpl.FIELD_WS_ID + "='" + wsId + "' and " + PALRepositoryModelImpl.FIELD_PL_NAME + " like " + namelike + " and ISPUBLISH = '1'");
|
||||
String sqlcount = "select count(*) from " + PALRepositoryModelImpl.DATABASE_ENTITY + " where " + PALRepositoryModelImpl.FIELD_WS_ID + "='" + wsId + "' and " + PALRepositoryModelImpl.FIELD_PL_NAME + " like " + namelike + "";
|
||||
|
||||
if (methodId != null && !"".equals(methodId)) {
|
||||
sql.append(" and PLMETHODID = '" + methodId + "' ");
|
||||
}
|
||||
sql.append(" ORDER BY " + PALRepositoryModelImpl.FIELD_PL_ORDERINDEX + " ASC");
|
||||
sqlcount+=" ORDER BY " + PALRepositoryModelImpl.FIELD_PL_ORDERINDEX + " ASC";
|
||||
String num = DBSql.getString(sqlcount);
|
||||
int number = Integer.parseInt(num);
|
||||
if(number <= 1) {
|
||||
List<PALRepositoryModel> data = null;
|
||||
return data;
|
||||
}
|
||||
return DBSql.query(sql.toString(), new PALRespositoryModelMapper());
|
||||
}
|
||||
/**
|
||||
* 根据name获取停用的流程文件
|
||||
* @param name
|
||||
* @param wsId
|
||||
* @param category
|
||||
* @return
|
||||
*/
|
||||
public List<PALRepositoryModel> getCoeProcessLevelByNameAndCategorys(String name, String wsId, String category) {
|
||||
|
||||
String namelike = "";
|
||||
|
||||
if (StringUtil.containSpecialChar(name)) {
|
||||
namelike = "'%" + StringUtil.replaceSqlStr(name, AWSServerConf.isMySQL()) + "%'" + (AWSServerConf.isMySQL() ? "ESCAPE '\\\\'" : " ESCAPE '\\'");
|
||||
} else {
|
||||
namelike = "'%" + name + "%'";
|
||||
}
|
||||
StringBuilder sql = new StringBuilder("select * from " + PALRepositoryModelImpl.DATABASE_ENTITY + " where " + PALRepositoryModelImpl.FIELD_WS_ID + "='" + wsId + "' and " + PALRepositoryModelImpl.FIELD_PL_NAME + " like " + namelike + " and " + PALRepositoryModelImpl.FIELD_IS_USE + "='1' and ISPUBLISH = '1'");
|
||||
|
||||
if (category != null && !"".equals(category)) {
|
||||
sql.append(" and PLCATEGORY = '" + category + "' ");
|
||||
}
|
||||
sql.append(" ORDER BY " + PALRepositoryModelImpl.FIELD_PL_ORDERINDEX + " ASC");
|
||||
return DBSql.query(sql.toString(), new PALRespositoryModelMapper());
|
||||
}
|
||||
private class PALRespositoryModelMapper implements RowMapper<PALRepositoryModel> {
|
||||
PALRepository pal = new PALRepository();
|
||||
public PALRepositoryModel mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
return (PALRepositoryModel) pal.record2Model(rs);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 根据userId获取资源Id列表
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
public List<String> getTeamUserPerms(String userId) {
|
||||
String sql = " select distinct perm.RESOURCEID from APP_ACT_NETWORK_TEAM_MEMBER tm , APP_ACT_COE_TEAM_PERM perm " +
|
||||
"where tm.TEAMID=perm.TEAMID and tm.MEMBERSTATUS='1' and tm.USERID=? ";
|
||||
List<String> resourceIdList = DBSql.query(sql.toString(), new RowMapper<String>() {
|
||||
@Override
|
||||
public String mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
return rs.getString(1);
|
||||
}
|
||||
}, new Object[] { userId });
|
||||
if(resourceIdList == null) {
|
||||
resourceIdList = new ArrayList<String>();
|
||||
}
|
||||
return resourceIdList;
|
||||
}
|
||||
if (category != null && !"".equals(category)) {
|
||||
sql.append(" and PLCATEGORY = '" + category + "' ");
|
||||
}
|
||||
sql.append(" ORDER BY " + PALRepositoryModelImpl.FIELD_PL_ORDERINDEX + " ASC");
|
||||
return DBSql.query(sql.toString(), new PALRespositoryModelMapper());
|
||||
}
|
||||
private class PALRespositoryModelMapper implements RowMapper<PALRepositoryModel> {
|
||||
PALRepository pal = new PALRepository();
|
||||
public PALRepositoryModel mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
return (PALRepositoryModel) pal.record2Model(rs);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 根据userId获取资源Id列表
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
public List<String> getTeamUserPerms(String userId) {
|
||||
String sql = " select distinct perm.RESOURCEID from APP_ACT_NETWORK_TEAM_MEMBER tm , APP_ACT_COE_TEAM_PERM perm " +
|
||||
"where tm.TEAMID=perm.TEAMID and tm.MEMBERSTATUS='1' and tm.USERID=? ";
|
||||
List<String> resourceIdList = DBSql.query(sql.toString(), new RowMapper<String>() {
|
||||
@Override
|
||||
public String mapRow(ResultSet rs, int arg1) throws SQLException {
|
||||
return rs.getString(1);
|
||||
}
|
||||
}, new Object[] { userId });
|
||||
if(resourceIdList == null) {
|
||||
resourceIdList = new ArrayList<String>();
|
||||
}
|
||||
return resourceIdList;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -10,23 +10,23 @@ import com.actionsoft.bpms.util.DBSql;
|
||||
|
||||
/**
|
||||
* 导航处理类
|
||||
*
|
||||
*
|
||||
* @author ZZ
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class PublisherSkinsDao {
|
||||
|
||||
public long getPrevLoginTime(String userId) {
|
||||
long prevLoginTime = 0;
|
||||
String sql = " select * from SYS_SESSION s where s.userid = '" + userId + "' order by s.STARTTIME desc ";
|
||||
List<Long> list = DBSql.query(SQLPagination.getPaginitionSQL(sql, 0, 2), new RowMapper<Long>() {
|
||||
public Long mapRow(ResultSet rs, int paramInt) throws SQLException {
|
||||
return rs.getLong("starttime");
|
||||
}
|
||||
});
|
||||
if (list != null && list.size() > 0) {
|
||||
prevLoginTime = list.get(list.size() - 1);
|
||||
}
|
||||
return prevLoginTime;
|
||||
}
|
||||
public long getPrevLoginTime(String userId) {
|
||||
long prevLoginTime = 0;
|
||||
String sql = " select * from SYS_SESSION s where s.userid = '" + userId + "' order by s.STARTTIME desc ";
|
||||
List<Long> list = DBSql.query(SQLPagination.getPaginitionSQL(sql, 0, 2), new RowMapper<Long>() {
|
||||
public Long mapRow(ResultSet rs, int paramInt) throws SQLException {
|
||||
return rs.getLong("starttime");
|
||||
}
|
||||
});
|
||||
if (list != null && list.size() > 0) {
|
||||
prevLoginTime = list.get(list.size() - 1);
|
||||
}
|
||||
return prevLoginTime;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -5,231 +5,231 @@ import com.actionsoft.sdk.local.SDK;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
|
||||
public final class PublisherConf {
|
||||
public static final String APPID = "com.actionsoft.apps.coe.pal.publisher";
|
||||
public static final String APPID = "com.actionsoft.apps.coe.pal.publisher";
|
||||
|
||||
public static final String RELATION_SEARCH_ID = "com.actionsoft.apps.coe.pal.relationsearch";
|
||||
public static final String RELATION_SEARCH_NAME = "关联查询";
|
||||
|
||||
public static final String PORTAL_TREE_ICON_FOLDER = "../apps/com.actionsoft.apps.coe.pal.publisher/img/tree-folder.png";
|
||||
public static final String PORTAL_TREE_ICON_FOLDER1 = "../apps/com.actionsoft.apps.coe.pal.publisher/img/tree-folder1.png";
|
||||
|
||||
public static String PUBLISH_PORTAL_VERSION = "v1";
|
||||
|
||||
public static String XPAGES_ID = "";
|
||||
|
||||
public static JSONArray PORTAL_TABS = null;
|
||||
|
||||
/**
|
||||
* 页底信息,如客户流程管理部联系信息
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static String getFotter() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "fotter");
|
||||
if (UtilString.isEmpty(value)) {
|
||||
value = "炎黄盈动";
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void setFotter(String fotter) {
|
||||
fotter = fotter == null ? "" : fotter;
|
||||
SDK.getAppAPI().setProperty(APPID, "fotter", fotter);
|
||||
}
|
||||
|
||||
public static final String RELATION_SEARCH_ID = "com.actionsoft.apps.coe.pal.relationsearch";
|
||||
public static final String RELATION_SEARCH_NAME = "关联查询";
|
||||
/**
|
||||
* 门户标题
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static String getTitle() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "title");
|
||||
if (UtilString.isEmpty(value)) {
|
||||
value = "CoE Process Portal";
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void setTitle(String title) {
|
||||
title = title == null ? "" : title;
|
||||
SDK.getAppAPI().setProperty(APPID, "title", title);
|
||||
}
|
||||
|
||||
public static final String PORTAL_TREE_ICON_FOLDER = "../apps/com.actionsoft.apps.coe.pal.publisher/img/tree-folder.png";
|
||||
public static final String PORTAL_TREE_ICON_FOLDER1 = "../apps/com.actionsoft.apps.coe.pal.publisher/img/tree-folder1.png";
|
||||
/**
|
||||
* 流程发布流程版本Id
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static String getPublishProcessId() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "publishProcessId");
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String PUBLISH_PORTAL_VERSION = "v1";
|
||||
/**
|
||||
* 发布门户的浏览者是否整合AWS用户
|
||||
*
|
||||
* @return 整合返回true
|
||||
*/
|
||||
public static boolean isIntegrationAWSUser() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "isIntegrationAWSUser");
|
||||
return (value != null && value.trim().equalsIgnoreCase("true")) ? true : false;
|
||||
}
|
||||
|
||||
public static String XPAGES_ID = "";
|
||||
/**
|
||||
* 如果门户未整合AWS用户,此处配置来自外部系统访问门户的统一访客账户。该账户是AWS平台合法的账户
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static String getGuest() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "guest");
|
||||
return value;
|
||||
}
|
||||
|
||||
public static JSONArray PORTAL_TABS = null;
|
||||
/**
|
||||
* 发布门户的内容允许复制
|
||||
*
|
||||
* @return 允许返回true
|
||||
*/
|
||||
public static boolean isCopy() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "isCopy");
|
||||
return (value != null && value.trim().equalsIgnoreCase("true")) ? true : false;
|
||||
}
|
||||
|
||||
public static void setCopy(String isCopy) {
|
||||
if (isCopy != null && isCopy.trim().equalsIgnoreCase("true")) {
|
||||
isCopy = "true";
|
||||
} else {
|
||||
isCopy = "false";
|
||||
}
|
||||
SDK.getAppAPI().setProperty(APPID, "isCopy", isCopy);
|
||||
}
|
||||
|
||||
/**
|
||||
* 页底信息,如客户流程管理部联系信息
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static String getFotter() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "fotter");
|
||||
if (UtilString.isEmpty(value)) {
|
||||
value = "炎黄盈动";
|
||||
}
|
||||
return value;
|
||||
}
|
||||
/**
|
||||
* 发布门户的内容允许打印
|
||||
*
|
||||
* @return 允许返回true
|
||||
*/
|
||||
public static boolean isPrint() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "isPrint");
|
||||
return (value != null && value.trim().equalsIgnoreCase("true")) ? true : false;
|
||||
}
|
||||
|
||||
public static void setPrint(String isPrint) {
|
||||
if (isPrint != null && isPrint.trim().equalsIgnoreCase("true")) {
|
||||
isPrint = "true";
|
||||
} else {
|
||||
isPrint = "false";
|
||||
}
|
||||
SDK.getAppAPI().setProperty(APPID, "isPrint", isPrint);
|
||||
}
|
||||
|
||||
public static void setFotter(String fotter) {
|
||||
fotter = fotter == null ? "" : fotter;
|
||||
SDK.getAppAPI().setProperty(APPID, "fotter", fotter);
|
||||
}
|
||||
/**
|
||||
* 发布门户的内容允许留言
|
||||
*
|
||||
* @return 允许返回true
|
||||
*/
|
||||
public static boolean isComment() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "isComment");
|
||||
return (value != null && value.trim().equalsIgnoreCase("true")) ? true : false;
|
||||
}
|
||||
|
||||
public static void setComment(String isComment) {
|
||||
if (isComment != null && isComment.trim().equalsIgnoreCase("true")) {
|
||||
isComment = "true";
|
||||
} else {
|
||||
isComment = "false";
|
||||
}
|
||||
SDK.getAppAPI().setProperty(APPID, "isComment", isComment);
|
||||
}
|
||||
|
||||
/**
|
||||
* 门户标题
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static String getTitle() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "title");
|
||||
if (UtilString.isEmpty(value)) {
|
||||
value = "CoE Process Portal";
|
||||
}
|
||||
return value;
|
||||
}
|
||||
/**
|
||||
* 发布门户的内容允许查看属性
|
||||
*
|
||||
* @return 允许返回true
|
||||
*/
|
||||
public static boolean isViewAttribute() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "isViewAttribute");
|
||||
return (value != null && value.trim().equalsIgnoreCase("true")) ? true : false;
|
||||
}
|
||||
|
||||
public static void setViewAttribute(String isViewAttribute) {
|
||||
if (isViewAttribute != null && isViewAttribute.trim().equalsIgnoreCase("true")) {
|
||||
isViewAttribute = "true";
|
||||
} else {
|
||||
isViewAttribute = "false";
|
||||
}
|
||||
SDK.getAppAPI().setProperty(APPID, "isViewAttribute", isViewAttribute);
|
||||
}
|
||||
|
||||
public static void setTitle(String title) {
|
||||
title = title == null ? "" : title;
|
||||
SDK.getAppAPI().setProperty(APPID, "title", title);
|
||||
}
|
||||
|
||||
/**
|
||||
* 流程发布流程版本Id
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static String getPublishProcessId() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "publishProcessId");
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* 发布门户的浏览者是否整合AWS用户
|
||||
*
|
||||
* @return 整合返回true
|
||||
*/
|
||||
public static boolean isIntegrationAWSUser() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "isIntegrationAWSUser");
|
||||
return (value != null && value.trim().equalsIgnoreCase("true")) ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
* 如果门户未整合AWS用户,此处配置来自外部系统访问门户的统一访客账户。该账户是AWS平台合法的账户
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static String getGuest() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "guest");
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* 发布门户的内容允许复制
|
||||
*
|
||||
* @return 允许返回true
|
||||
*/
|
||||
public static boolean isCopy() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "isCopy");
|
||||
return (value != null && value.trim().equalsIgnoreCase("true")) ? true : false;
|
||||
}
|
||||
|
||||
public static void setCopy(String isCopy) {
|
||||
if (isCopy != null && isCopy.trim().equalsIgnoreCase("true")) {
|
||||
isCopy = "true";
|
||||
} else {
|
||||
isCopy = "false";
|
||||
}
|
||||
SDK.getAppAPI().setProperty(APPID, "isCopy", isCopy);
|
||||
}
|
||||
|
||||
/**
|
||||
* 发布门户的内容允许打印
|
||||
*
|
||||
* @return 允许返回true
|
||||
*/
|
||||
public static boolean isPrint() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "isPrint");
|
||||
return (value != null && value.trim().equalsIgnoreCase("true")) ? true : false;
|
||||
}
|
||||
|
||||
public static void setPrint(String isPrint) {
|
||||
if (isPrint != null && isPrint.trim().equalsIgnoreCase("true")) {
|
||||
isPrint = "true";
|
||||
} else {
|
||||
isPrint = "false";
|
||||
}
|
||||
SDK.getAppAPI().setProperty(APPID, "isPrint", isPrint);
|
||||
}
|
||||
|
||||
/**
|
||||
* 发布门户的内容允许留言
|
||||
*
|
||||
* @return 允许返回true
|
||||
*/
|
||||
public static boolean isComment() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "isComment");
|
||||
return (value != null && value.trim().equalsIgnoreCase("true")) ? true : false;
|
||||
}
|
||||
|
||||
public static void setComment(String isComment) {
|
||||
if (isComment != null && isComment.trim().equalsIgnoreCase("true")) {
|
||||
isComment = "true";
|
||||
} else {
|
||||
isComment = "false";
|
||||
}
|
||||
SDK.getAppAPI().setProperty(APPID, "isComment", isComment);
|
||||
}
|
||||
|
||||
/**
|
||||
* 发布门户的内容允许查看属性
|
||||
*
|
||||
* @return 允许返回true
|
||||
*/
|
||||
public static boolean isViewAttribute() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "isViewAttribute");
|
||||
return (value != null && value.trim().equalsIgnoreCase("true")) ? true : false;
|
||||
}
|
||||
|
||||
public static void setViewAttribute(String isViewAttribute) {
|
||||
if (isViewAttribute != null && isViewAttribute.trim().equalsIgnoreCase("true")) {
|
||||
isViewAttribute = "true";
|
||||
} else {
|
||||
isViewAttribute = "false";
|
||||
}
|
||||
SDK.getAppAPI().setProperty(APPID, "isViewAttribute", isViewAttribute);
|
||||
}
|
||||
|
||||
/**
|
||||
* 发布门户的内容允许查看历史发布记录
|
||||
*
|
||||
* @return 允许返回true
|
||||
*/
|
||||
public static boolean isViewHistory() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "isViewHistory");
|
||||
return (value != null && value.trim().equalsIgnoreCase("true")) ? true : false;
|
||||
}
|
||||
|
||||
public static void setViewHistory(String isViewHistory) {
|
||||
if (isViewHistory != null && isViewHistory.trim().equalsIgnoreCase("true")) {
|
||||
isViewHistory = "true";
|
||||
} else {
|
||||
isViewHistory = "false";
|
||||
}
|
||||
SDK.getAppAPI().setProperty(APPID, "isViewHistory", isViewHistory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 流程管理门户xpage
|
||||
* @param type common:常用流程;frequency:高频流程;systemMap:系统地图;processMap:流程地图;notification:发布动态
|
||||
* @return
|
||||
*/
|
||||
public static String getXpagesContent(String type) {
|
||||
StringBuffer content = new StringBuffer();
|
||||
switch (type) {
|
||||
case "common":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.common.js'></script>");
|
||||
break;
|
||||
case "frequency":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.frequency.js'></script>");
|
||||
break;
|
||||
case "systemMap":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.systemmap.js'></script>");
|
||||
break;
|
||||
case "dataMap":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.datamap.js'></script>");
|
||||
break;
|
||||
case "controlMap":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.controlmap.js'></script>");
|
||||
break;
|
||||
case "orgMap":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.orgmap.js'></script>");
|
||||
break;
|
||||
case "processMap":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.processmap.js'></script>");
|
||||
break;
|
||||
case "notification":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.notification.js'></script>");
|
||||
break;
|
||||
case "banner":// 横幅轮播图
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.banner.js'></script>");
|
||||
break;
|
||||
case "participant":// 我参与的
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.participant.js'></script>");
|
||||
break;
|
||||
case "responsible":// 我负责的
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.responsible.js'></script>");
|
||||
break;
|
||||
case "postresponsibility":// 岗位职责
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.postresponsibility.js'></script>");
|
||||
break;
|
||||
case "rcaimatrix":// rcai矩阵
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.rcaimatrix.js'></script>");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return content.toString();
|
||||
}
|
||||
/**
|
||||
* 发布门户的内容允许查看历史发布记录
|
||||
*
|
||||
* @return 允许返回true
|
||||
*/
|
||||
public static boolean isViewHistory() {
|
||||
String value = SDK.getAppAPI().getProperty(APPID, "isViewHistory");
|
||||
return (value != null && value.trim().equalsIgnoreCase("true")) ? true : false;
|
||||
}
|
||||
|
||||
public static void setViewHistory(String isViewHistory) {
|
||||
if (isViewHistory != null && isViewHistory.trim().equalsIgnoreCase("true")) {
|
||||
isViewHistory = "true";
|
||||
} else {
|
||||
isViewHistory = "false";
|
||||
}
|
||||
SDK.getAppAPI().setProperty(APPID, "isViewHistory", isViewHistory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 流程管理门户xpage
|
||||
* @param type common:常用流程;frequency:高频流程;systemMap:系统地图;processMap:流程地图;notification:发布动态
|
||||
* @return
|
||||
*/
|
||||
public static String getXpagesContent(String type) {
|
||||
StringBuffer content = new StringBuffer();
|
||||
switch (type) {
|
||||
case "common":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.common.js'></script>");
|
||||
break;
|
||||
case "frequency":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.frequency.js'></script>");
|
||||
break;
|
||||
case "systemMap":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.systemmap.js'></script>");
|
||||
break;
|
||||
case "dataMap":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.datamap.js'></script>");
|
||||
break;
|
||||
case "controlMap":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.controlmap.js'></script>");
|
||||
break;
|
||||
case "orgMap":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.orgmap.js'></script>");
|
||||
break;
|
||||
case "processMap":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.processmap.js'></script>");
|
||||
break;
|
||||
case "notification":
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.notification.js'></script>");
|
||||
break;
|
||||
case "banner":// 横幅轮播图
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.banner.js'></script>");
|
||||
break;
|
||||
case "participant":// 我参与的
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.participant.js'></script>");
|
||||
break;
|
||||
case "responsible":// 我负责的
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.responsible.js'></script>");
|
||||
break;
|
||||
case "postresponsibility":// 岗位职责
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.postresponsibility.js'></script>");
|
||||
break;
|
||||
case "rcaimatrix":// rcai矩阵
|
||||
content.append("<script src='../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.rcaimatrix.js'></script>");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return content.toString();
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,51 +17,51 @@ import com.actionsoft.sdk.local.api.AppAPI;
|
||||
|
||||
public class AppInstallListener implements AppListener {
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
@Override
|
||||
public void after(AppContext app) {
|
||||
// 流程管理门户xpages文件同步到xpages应用中
|
||||
try {
|
||||
String path = AppsConst.APPS_ROOT + AppsConst.FOLDER_INSTALL + File.separator + app.getId() + File.separator + "xpages" + File.separator;
|
||||
File fileDir = new File(path);
|
||||
if (fileDir.exists()) {
|
||||
File [] files = fileDir.listFiles();
|
||||
for (File file : files) {
|
||||
InputStream input = null;
|
||||
ByteArrayOutputStream arrayOutputStream = null;
|
||||
input = new FileInputStream(file);
|
||||
arrayOutputStream = new ByteArrayOutputStream();
|
||||
byte [] buf = new byte[1024];
|
||||
int len = 0;
|
||||
while ((len = input.read(buf)) != -1) {
|
||||
arrayOutputStream.write(buf, 0, len);
|
||||
}
|
||||
byte [] bytedata = arrayOutputStream.toByteArray();
|
||||
String content = new String(Base64.encode(bytedata));
|
||||
// 调用App
|
||||
String sourceAppId = app.getId();
|
||||
// aslp服务地址
|
||||
String aslp = "aslp://com.actionsoft.apps.addons.xpages/createTemplateByContent";
|
||||
// 参数定义列表
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
//内容,必填
|
||||
params.put("content", content);
|
||||
//0,覆盖 1不覆盖,非必填
|
||||
params.put("overWriteFlag", "0");
|
||||
AppAPI appAPI = SDK.getAppAPI();
|
||||
//根据一个xpages文件的内容创建一个xpages模板记录
|
||||
appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new AWSException("流程管理门户xpages文件解析错误");
|
||||
}
|
||||
}
|
||||
@SuppressWarnings("resource")
|
||||
@Override
|
||||
public void after(AppContext app) {
|
||||
// 流程管理门户xpages文件同步到xpages应用中
|
||||
try {
|
||||
String path = AppsConst.APPS_ROOT + AppsConst.FOLDER_INSTALL + File.separator + app.getId() + File.separator + "xpages" + File.separator;
|
||||
File fileDir = new File(path);
|
||||
if (fileDir.exists()) {
|
||||
File [] files = fileDir.listFiles();
|
||||
for (File file : files) {
|
||||
InputStream input = null;
|
||||
ByteArrayOutputStream arrayOutputStream = null;
|
||||
input = new FileInputStream(file);
|
||||
arrayOutputStream = new ByteArrayOutputStream();
|
||||
byte [] buf = new byte[1024];
|
||||
int len = 0;
|
||||
while ((len = input.read(buf)) != -1) {
|
||||
arrayOutputStream.write(buf, 0, len);
|
||||
}
|
||||
byte [] bytedata = arrayOutputStream.toByteArray();
|
||||
String content = new String(Base64.encode(bytedata));
|
||||
// 调用App
|
||||
String sourceAppId = app.getId();
|
||||
// aslp服务地址
|
||||
String aslp = "aslp://com.actionsoft.apps.addons.xpages/createTemplateByContent";
|
||||
// 参数定义列表
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
//内容,必填
|
||||
params.put("content", content);
|
||||
//0,覆盖 1不覆盖,非必填
|
||||
params.put("overWriteFlag", "0");
|
||||
AppAPI appAPI = SDK.getAppAPI();
|
||||
//根据一个xpages文件的内容创建一个xpages模板记录
|
||||
appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw new AWSException("流程管理门户xpages文件解析错误");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean before(AppContext arg0) {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean before(AppContext arg0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -10,35 +10,35 @@ import com.alibaba.fastjson.JSONArray;
|
||||
|
||||
public class AppStartListener implements AppListener{
|
||||
|
||||
@Override
|
||||
public void after(AppContext arg0) {
|
||||
// 初始化门户版本
|
||||
String value = SDK.getAppAPI().getProperty(PublisherConf.APPID, "portalVersion");
|
||||
PublisherConf.PUBLISH_PORTAL_VERSION = value;
|
||||
if (value.equals("v3")) {
|
||||
// 初始化门户配置
|
||||
String xpagesId = SDK.getAppAPI().getProperty(PublisherConf.APPID, "portalTemplateId_xpages");
|
||||
if ("".equals(xpagesId.trim())) {
|
||||
throw new AWSException("PAL门户默认xpages模版配置参数不允许为空");
|
||||
}
|
||||
PublisherConf.XPAGES_ID = xpagesId;
|
||||
String portalTabs = SDK.getAppAPI().getProperty(PublisherConf.APPID, "portalTabs");
|
||||
if (!"".equals(portalTabs.trim())) {
|
||||
try {
|
||||
JSONArray array = JSON.parseArray(portalTabs.trim());
|
||||
PublisherConf.PORTAL_TABS = array;
|
||||
} catch (Exception e) {
|
||||
throw new AWSException("PAL门户Tab标签配置参数解析出错,请检查参数格式是否正确");
|
||||
}
|
||||
} else {
|
||||
PublisherConf.PORTAL_TABS = new JSONArray();
|
||||
}
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void after(AppContext arg0) {
|
||||
// 初始化门户版本
|
||||
String value = SDK.getAppAPI().getProperty(PublisherConf.APPID, "portalVersion");
|
||||
PublisherConf.PUBLISH_PORTAL_VERSION = value;
|
||||
if (value.equals("v3")) {
|
||||
// 初始化门户配置
|
||||
String xpagesId = SDK.getAppAPI().getProperty(PublisherConf.APPID, "portalTemplateId_xpages");
|
||||
if ("".equals(xpagesId.trim())) {
|
||||
throw new AWSException("PAL门户默认xpages模版配置参数不允许为空");
|
||||
}
|
||||
PublisherConf.XPAGES_ID = xpagesId;
|
||||
String portalTabs = SDK.getAppAPI().getProperty(PublisherConf.APPID, "portalTabs");
|
||||
if (!"".equals(portalTabs.trim())) {
|
||||
try {
|
||||
JSONArray array = JSON.parseArray(portalTabs.trim());
|
||||
PublisherConf.PORTAL_TABS = array;
|
||||
} catch (Exception e) {
|
||||
throw new AWSException("PAL门户Tab标签配置参数解析出错,请检查参数格式是否正确");
|
||||
}
|
||||
} else {
|
||||
PublisherConf.PORTAL_TABS = new JSONArray();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean before(AppContext arg0) {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean before(AppContext arg0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -23,222 +23,222 @@ import com.actionsoft.bpms.util.DBSql;
|
||||
import com.actionsoft.sdk.local.SDK;
|
||||
|
||||
public class PublishInstanceAfterReactivateLIstener extends ExecuteListener{
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return "流程复活后进行相关数据还原处理";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return "流程复活后进行相关数据还原处理";
|
||||
}
|
||||
@Override
|
||||
public String getProvider() {
|
||||
return "aws-coe";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getProvider() {
|
||||
return "aws-coe";
|
||||
}
|
||||
@Override
|
||||
public String getVersion() {
|
||||
return "V6.3";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(ProcessExecutionContext ctx) throws Exception {
|
||||
String processInstId = ctx.getProcessInstance().getId();
|
||||
ProcessInstance processInstance = ctx.getProcessInstance();
|
||||
SDK.getLogAPI().consoleInfo("-----------执行流程复活后事件-------------");
|
||||
SDK.getLogAPI().consoleInfo("流程实例标题:" + processInstance.getTitle() + "[processInstId=" + processInstId + "]");
|
||||
// 获取相关的流程数据
|
||||
|
||||
List<BO> bolistN = SDK.getBOAPI().query(PublisherConstant.BOSUBTABLE_N).bindId(processInstId).list();
|
||||
List<BO> bolistC = SDK.getBOAPI().query(PublisherConstant.BOSUBTABLE_C).bindId(processInstId).list();
|
||||
List<BO> bolistS = SDK.getBOAPI().query(PublisherConstant.BOSUBTABLE_S).bindId(processInstId).list();
|
||||
List<PALRepositoryModel> pList = new ArrayList<>();
|
||||
if (bolistN != null) {
|
||||
for (BO boN : bolistN) {
|
||||
String publishFileId = boN.get("PUBLISHFILEID").toString();
|
||||
PALRepositoryModel palModel = PALRepositoryCache.getCache().get(publishFileId);
|
||||
if (palModel != null && palModel.isPublish()) {// 若当前为非已发布状态,则不进行处理
|
||||
// 若当前流程model.getPalRepositoryId()除此次发布以外存在发布过、变更过、废止过,则退回至停用状态,否则退回至设计状态
|
||||
// List<PublishListHistoryModel> allPublishData = listDao.query("PALREPOSITORYID = ?", publishFileId).list();
|
||||
List<RowMap> allPublishData = DBSql.getMaps("SELECT ID FROM SYS_COE_PAL_PUBLISH_LIST WHERE PALREPOSITORYID = ?", new Object[] {publishFileId});
|
||||
if (allPublishData != null) {
|
||||
boolean isPublish = false;
|
||||
boolean isStop = false;
|
||||
boolean isApproval = false;
|
||||
if (allPublishData.size() > 1) {
|
||||
// 退回至停用状态
|
||||
isStop = true;
|
||||
} else {
|
||||
// 退回至设计状态
|
||||
}
|
||||
createResultMap(palModel.getName(), palModel.getId(), isPublish, isStop, isApproval, pList);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getVersion() {
|
||||
return "V6.3";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (bolistC != null) {
|
||||
for (BO boC : bolistC) {
|
||||
String changefileId = boC.get("CHANGEFILEID").toString();// 变更文件id
|
||||
String changedFileIdNew = boC.get("CHANGEDFILEIDNEW").toString();// 变更后文件id
|
||||
PALRepositoryModel changeModel = PALRepositoryCache.getCache().get(changefileId);
|
||||
PALRepositoryModel changeNewModel = PALRepositoryCache.getCache().get(changedFileIdNew);
|
||||
// 符合该条件可进行复活,状态值不符合则暂时不处理
|
||||
if (changeModel != null && changeNewModel != null && changeModel.isStop() && changeNewModel.isPublish()) {
|
||||
// changeModel退回至已发布状态
|
||||
boolean isPublish = true;
|
||||
boolean isStop = false;
|
||||
boolean isApproval = false;
|
||||
createResultMap(changeModel.getName(), changefileId, isPublish, isStop, isApproval, pList);
|
||||
// List<PublishListHistoryModel> allchangeData = listDao.query("PALREPOSITORYID = ?", changedFileIdNew).list();
|
||||
List<RowMap> allchangeData = DBSql.getMaps("SELECT ID FROM SYS_COE_PAL_PUBLISH_LIST WHERE PALREPOSITORYID = ?", new Object[] {changedFileIdNew});
|
||||
if (allchangeData != null) {
|
||||
isPublish = false;
|
||||
isStop = false;
|
||||
isApproval = false;
|
||||
if (allchangeData.size() > 1) {
|
||||
// changeNewModel退回至停用状态
|
||||
isStop = true;
|
||||
} else {
|
||||
// changeNewModel退回至设计状态
|
||||
}
|
||||
createResultMap(changeNewModel.getName(), changedFileIdNew, isPublish, isStop, isApproval, pList);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (bolistS != null) {
|
||||
for (BO boS : bolistS) {
|
||||
String stopFileId = boS.get("STOPFILEID").toString();
|
||||
PALRepositoryModel stopModel = PALRepositoryCache.getCache().get(stopFileId);
|
||||
// 已停用且该流程版本下所有流程没有在发布状态的进行退回,保证退回之后该流程所有版本中只有一条为已发布状态
|
||||
if (stopModel != null && stopModel.isStop()) {
|
||||
List<PALRepositoryModel> stopList = PALRepositoryCache.getByVersionId(stopModel.getVersionId());
|
||||
boolean flag = false;
|
||||
for (PALRepositoryModel model : stopList) {
|
||||
if (model.isPublish()) {
|
||||
flag = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!flag) {
|
||||
// 退回至已发布状态
|
||||
boolean isPublish = true;
|
||||
boolean isStop = false;
|
||||
boolean isApproval = false;
|
||||
createResultMap(stopModel.getName(), stopFileId, isPublish, isStop, isApproval, pList);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (pList.size() > 0) {
|
||||
restoreData(pList, processInstId);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(ProcessExecutionContext ctx) throws Exception {
|
||||
String processInstId = ctx.getProcessInstance().getId();
|
||||
ProcessInstance processInstance = ctx.getProcessInstance();
|
||||
SDK.getLogAPI().consoleInfo("-----------执行流程复活后事件-------------");
|
||||
SDK.getLogAPI().consoleInfo("流程实例标题:" + processInstance.getTitle() + "[processInstId=" + processInstId + "]");
|
||||
// 获取相关的流程数据
|
||||
/**
|
||||
* 还原数据
|
||||
* @param pList
|
||||
* @param processInstId
|
||||
*/
|
||||
private void restoreData(List<PALRepositoryModel> pList, String processInstId) {
|
||||
// 批量处理回退数据
|
||||
boolean flag = batchHandleRepositoryData(pList);
|
||||
int r = 0;
|
||||
if (flag) {
|
||||
// 删除SYS_COE_PAL_PUBLISH和SYS_COE_PAL_PUBLISH_LIST表数据
|
||||
PublishHistory dao = new PublishHistory();// 发布结果主表
|
||||
PublishHistoryModel history = dao.queryBy("PROCESSINSTID = ?", processInstId);
|
||||
if (history != null) {
|
||||
r = dao.delete(history.getId());
|
||||
}
|
||||
SDK.getLogAPI().consoleInfo("流程状态还原,变更数据[" + pList.size() + "]条");
|
||||
for (PALRepositoryModel model : pList) {
|
||||
SDK.getLogAPI().consoleInfo("流程名称:" + model.getName() + "[id=" + model.getId() + ",isPublish=" + model.isPublish() + ",isStop=" + model.isStop() + "]");
|
||||
}
|
||||
if (r > 0) {
|
||||
SDK.getLogAPI().consoleInfo("删除发布结果数据成功[processInstId=" + processInstId + "]");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 流程数据库状态还原
|
||||
* @param pList
|
||||
* @return
|
||||
*/
|
||||
private boolean batchHandleRepositoryData(List<PALRepositoryModel> pList) {
|
||||
boolean completeSuccess = false;
|
||||
Connection conn = DBSql.open();
|
||||
PreparedStatement ps = null;
|
||||
java.sql.ResultSet rset = null;
|
||||
Timestamp nowTime = new Timestamp(System.currentTimeMillis());
|
||||
try {
|
||||
conn.setAutoCommit(false);
|
||||
String sql = "UPDATE " + PALRepositoryModelImpl.DATABASE_ENTITY + " SET "
|
||||
+ PALRepositoryModelImpl.FIELD_PL_ISPUBLISH + " =?, "
|
||||
+ PALRepositoryModelImpl.FIELD_PL_ISSTOP + "= ?,"
|
||||
+ PALRepositoryModelImpl.FIELD_PL_MODIFYDATE + " = ? WHERE "
|
||||
+ PALRepositoryModelImpl.FIELD_UUID + "=?";
|
||||
ps = conn.prepareStatement(sql);
|
||||
for (int i = 0; i < pList.size(); i++) {
|
||||
String id = pList.get(i).getId();
|
||||
int isPublish = pList.get(i).isPublish() ? 1 : 0;
|
||||
int isStop = pList.get(i).isStop() ? 1 : 0;
|
||||
ps.setInt(1, isPublish);
|
||||
ps.setInt(2, isStop);
|
||||
ps.setTimestamp(3, nowTime);
|
||||
ps.setString(4, id);
|
||||
ps.addBatch();
|
||||
}
|
||||
int[] results = ps.executeBatch();
|
||||
for (int i = 0; i < results.length; i++) {
|
||||
if ((results[i] >= 0) || (results[i] == PreparedStatement.SUCCESS_NO_INFO)) {
|
||||
completeSuccess = true;
|
||||
}
|
||||
}
|
||||
if (completeSuccess) {
|
||||
conn.commit();
|
||||
PALRepository dao = new PALRepository();
|
||||
for (PALRepositoryModel model : pList) {
|
||||
PALRepositoryModel model2 = dao.getInstance(model.getId());
|
||||
if (model2 != null) {
|
||||
PALRepositoryCache.getCache().put(model2.getId(), model2);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
conn.rollback();
|
||||
PALRepositoryCache.getCache().reload();
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
try {
|
||||
conn.rollback();
|
||||
} catch (SQLException e1) {
|
||||
e1.printStackTrace();
|
||||
}
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
DBSql.close(conn, ps, rset);
|
||||
}
|
||||
return completeSuccess;
|
||||
}
|
||||
|
||||
List<BO> bolistN = SDK.getBOAPI().query(PublisherConstant.BOSUBTABLE_N).bindId(processInstId).list();
|
||||
List<BO> bolistC = SDK.getBOAPI().query(PublisherConstant.BOSUBTABLE_C).bindId(processInstId).list();
|
||||
List<BO> bolistS = SDK.getBOAPI().query(PublisherConstant.BOSUBTABLE_S).bindId(processInstId).list();
|
||||
List<PALRepositoryModel> pList = new ArrayList<>();
|
||||
if (bolistN != null) {
|
||||
for (BO boN : bolistN) {
|
||||
String publishFileId = boN.get("PUBLISHFILEID").toString();
|
||||
PALRepositoryModel palModel = PALRepositoryCache.getCache().get(publishFileId);
|
||||
if (palModel != null && palModel.isPublish()) {// 若当前为非已发布状态,则不进行处理
|
||||
// 若当前流程model.getPalRepositoryId()除此次发布以外存在发布过、变更过、废止过,则退回至停用状态,否则退回至设计状态
|
||||
// List<PublishListHistoryModel> allPublishData = listDao.query("PALREPOSITORYID = ?", publishFileId).list();
|
||||
List<RowMap> allPublishData = DBSql.getMaps("SELECT ID FROM SYS_COE_PAL_PUBLISH_LIST WHERE PALREPOSITORYID = ?", new Object[] {publishFileId});
|
||||
if (allPublishData != null) {
|
||||
boolean isPublish = false;
|
||||
boolean isStop = false;
|
||||
boolean isApproval = false;
|
||||
if (allPublishData.size() > 1) {
|
||||
// 退回至停用状态
|
||||
isStop = true;
|
||||
} else {
|
||||
// 退回至设计状态
|
||||
}
|
||||
createResultMap(palModel.getName(), palModel.getId(), isPublish, isStop, isApproval, pList);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
if (bolistC != null) {
|
||||
for (BO boC : bolistC) {
|
||||
String changefileId = boC.get("CHANGEFILEID").toString();// 变更文件id
|
||||
String changedFileIdNew = boC.get("CHANGEDFILEIDNEW").toString();// 变更后文件id
|
||||
PALRepositoryModel changeModel = PALRepositoryCache.getCache().get(changefileId);
|
||||
PALRepositoryModel changeNewModel = PALRepositoryCache.getCache().get(changedFileIdNew);
|
||||
// 符合该条件可进行复活,状态值不符合则暂时不处理
|
||||
if (changeModel != null && changeNewModel != null && changeModel.isStop() && changeNewModel.isPublish()) {
|
||||
// changeModel退回至已发布状态
|
||||
boolean isPublish = true;
|
||||
boolean isStop = false;
|
||||
boolean isApproval = false;
|
||||
createResultMap(changeModel.getName(), changefileId, isPublish, isStop, isApproval, pList);
|
||||
// List<PublishListHistoryModel> allchangeData = listDao.query("PALREPOSITORYID = ?", changedFileIdNew).list();
|
||||
List<RowMap> allchangeData = DBSql.getMaps("SELECT ID FROM SYS_COE_PAL_PUBLISH_LIST WHERE PALREPOSITORYID = ?", new Object[] {changedFileIdNew});
|
||||
if (allchangeData != null) {
|
||||
isPublish = false;
|
||||
isStop = false;
|
||||
isApproval = false;
|
||||
if (allchangeData.size() > 1) {
|
||||
// changeNewModel退回至停用状态
|
||||
isStop = true;
|
||||
} else {
|
||||
// changeNewModel退回至设计状态
|
||||
}
|
||||
createResultMap(changeNewModel.getName(), changedFileIdNew, isPublish, isStop, isApproval, pList);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (bolistS != null) {
|
||||
for (BO boS : bolistS) {
|
||||
String stopFileId = boS.get("STOPFILEID").toString();
|
||||
PALRepositoryModel stopModel = PALRepositoryCache.getCache().get(stopFileId);
|
||||
// 已停用且该流程版本下所有流程没有在发布状态的进行退回,保证退回之后该流程所有版本中只有一条为已发布状态
|
||||
if (stopModel != null && stopModel.isStop()) {
|
||||
List<PALRepositoryModel> stopList = PALRepositoryCache.getByVersionId(stopModel.getVersionId());
|
||||
boolean flag = false;
|
||||
for (PALRepositoryModel model : stopList) {
|
||||
if (model.isPublish()) {
|
||||
flag = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!flag) {
|
||||
// 退回至已发布状态
|
||||
boolean isPublish = true;
|
||||
boolean isStop = false;
|
||||
boolean isApproval = false;
|
||||
createResultMap(stopModel.getName(), stopFileId, isPublish, isStop, isApproval, pList);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (pList.size() > 0) {
|
||||
restoreData(pList, processInstId);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 还原数据
|
||||
* @param pList
|
||||
* @param processInstId
|
||||
*/
|
||||
private void restoreData(List<PALRepositoryModel> pList, String processInstId) {
|
||||
// 批量处理回退数据
|
||||
boolean flag = batchHandleRepositoryData(pList);
|
||||
int r = 0;
|
||||
if (flag) {
|
||||
// 删除SYS_COE_PAL_PUBLISH和SYS_COE_PAL_PUBLISH_LIST表数据
|
||||
PublishHistory dao = new PublishHistory();// 发布结果主表
|
||||
PublishHistoryModel history = dao.queryBy("PROCESSINSTID = ?", processInstId);
|
||||
if (history != null) {
|
||||
r = dao.delete(history.getId());
|
||||
}
|
||||
SDK.getLogAPI().consoleInfo("流程状态还原,变更数据[" + pList.size() + "]条");
|
||||
for (PALRepositoryModel model : pList) {
|
||||
SDK.getLogAPI().consoleInfo("流程名称:" + model.getName() + "[id=" + model.getId() + ",isPublish=" + model.isPublish() + ",isStop=" + model.isStop() + "]");
|
||||
}
|
||||
if (r > 0) {
|
||||
SDK.getLogAPI().consoleInfo("删除发布结果数据成功[processInstId=" + processInstId + "]");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 流程数据库状态还原
|
||||
* @param pList
|
||||
* @return
|
||||
*/
|
||||
private boolean batchHandleRepositoryData(List<PALRepositoryModel> pList) {
|
||||
boolean completeSuccess = false;
|
||||
Connection conn = DBSql.open();
|
||||
PreparedStatement ps = null;
|
||||
java.sql.ResultSet rset = null;
|
||||
Timestamp nowTime = new Timestamp(System.currentTimeMillis());
|
||||
try {
|
||||
conn.setAutoCommit(false);
|
||||
String sql = "UPDATE " + PALRepositoryModelImpl.DATABASE_ENTITY + " SET "
|
||||
+ PALRepositoryModelImpl.FIELD_PL_ISPUBLISH + " =?, "
|
||||
+ PALRepositoryModelImpl.FIELD_PL_ISSTOP + "= ?,"
|
||||
+ PALRepositoryModelImpl.FIELD_PL_MODIFYDATE + " = ? WHERE "
|
||||
+ PALRepositoryModelImpl.FIELD_UUID + "=?";
|
||||
ps = conn.prepareStatement(sql);
|
||||
for (int i = 0; i < pList.size(); i++) {
|
||||
String id = pList.get(i).getId();
|
||||
int isPublish = pList.get(i).isPublish() ? 1 : 0;
|
||||
int isStop = pList.get(i).isStop() ? 1 : 0;
|
||||
ps.setInt(1, isPublish);
|
||||
ps.setInt(2, isStop);
|
||||
ps.setTimestamp(3, nowTime);
|
||||
ps.setString(4, id);
|
||||
ps.addBatch();
|
||||
}
|
||||
int[] results = ps.executeBatch();
|
||||
for (int i = 0; i < results.length; i++) {
|
||||
if ((results[i] >= 0) || (results[i] == PreparedStatement.SUCCESS_NO_INFO)) {
|
||||
completeSuccess = true;
|
||||
}
|
||||
}
|
||||
if (completeSuccess) {
|
||||
conn.commit();
|
||||
PALRepository dao = new PALRepository();
|
||||
for (PALRepositoryModel model : pList) {
|
||||
PALRepositoryModel model2 = dao.getInstance(model.getId());
|
||||
if (model2 != null) {
|
||||
PALRepositoryCache.getCache().put(model2.getId(), model2);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
conn.rollback();
|
||||
PALRepositoryCache.getCache().reload();
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
try {
|
||||
conn.rollback();
|
||||
} catch (SQLException e1) {
|
||||
e1.printStackTrace();
|
||||
}
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
DBSql.close(conn, ps, rset);
|
||||
}
|
||||
return completeSuccess;
|
||||
}
|
||||
|
||||
/**
|
||||
* 结果集,用于批量处理数据源
|
||||
* @param id
|
||||
* @param isPublish
|
||||
* @param isStop
|
||||
* @param isApproval
|
||||
*/
|
||||
private void createResultMap(String name, String id, boolean isPublish, boolean isStop, boolean isApproval, List<PALRepositoryModel> pList) {
|
||||
PALRepositoryModelImpl modelImpl = new PALRepositoryModelImpl();
|
||||
modelImpl.setId(id);
|
||||
modelImpl.setName(name);
|
||||
modelImpl.setPublish(isPublish);
|
||||
modelImpl.setStop(isStop);
|
||||
// modelImpl.setApproval(isApproval);// 不处理
|
||||
pList.add(modelImpl);
|
||||
}
|
||||
/**
|
||||
* 结果集,用于批量处理数据源
|
||||
* @param id
|
||||
* @param isPublish
|
||||
* @param isStop
|
||||
* @param isApproval
|
||||
*/
|
||||
private void createResultMap(String name, String id, boolean isPublish, boolean isStop, boolean isApproval, List<PALRepositoryModel> pList) {
|
||||
PALRepositoryModelImpl modelImpl = new PALRepositoryModelImpl();
|
||||
modelImpl.setId(id);
|
||||
modelImpl.setName(name);
|
||||
modelImpl.setPublish(isPublish);
|
||||
modelImpl.setStop(isStop);
|
||||
// modelImpl.setApproval(isApproval);// 不处理
|
||||
pList.add(modelImpl);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -12,60 +12,60 @@ import com.actionsoft.bpms.form.design.model.FormItemModel;
|
||||
|
||||
public class SubFormGridFilterListener extends FormGridFilterListener {
|
||||
|
||||
@Override
|
||||
public FormGridRowLookAndFeel acceptRowData(ProcessExecutionContext context, List<BOItemModel> boItemList, BO boData) {
|
||||
String tableName = context.getParameterOfString(ListenerConst.FORM_EVENT_PARAM_BONAME);
|
||||
if (tableName.equals("BO_ACT_COE_PUBLISH_N")) {
|
||||
//创建一个对象
|
||||
FormGridRowLookAndFeel diyLookAndFeel = new FormGridRowLookAndFeel();
|
||||
String fileName = boData.getString("PUBLISHFILENAME");
|
||||
if (fileName != null) {
|
||||
boData.set("PUBLISHFILENAME", "<a style=\"cursor: pointer; color: rgb(51, 131, 218);\" onclick=\"openModel(\'" + boData.getString("PUBLISHFILEID") + "\')\">" + fileName + "</a>");// 重新设定一个字段的值
|
||||
}
|
||||
@Override
|
||||
public FormGridRowLookAndFeel acceptRowData(ProcessExecutionContext context, List<BOItemModel> boItemList, BO boData) {
|
||||
String tableName = context.getParameterOfString(ListenerConst.FORM_EVENT_PARAM_BONAME);
|
||||
if (tableName.equals("BO_ACT_COE_PUBLISH_N")) {
|
||||
//创建一个对象
|
||||
FormGridRowLookAndFeel diyLookAndFeel = new FormGridRowLookAndFeel();
|
||||
String fileName = boData.getString("PUBLISHFILENAME");
|
||||
if (fileName != null) {
|
||||
boData.set("PUBLISHFILENAME", "<a style=\"cursor: pointer; color: rgb(51, 131, 218);\" onclick=\"openModel(\'" + boData.getString("PUBLISHFILEID") + "\')\">" + fileName + "</a>");// 重新设定一个字段的值
|
||||
}
|
||||
|
||||
boData.set("字段子表字段名", "|");
|
||||
|
||||
boData.set("字段子表字段名", "|");
|
||||
//处理好之后,将该对象返回
|
||||
return diyLookAndFeel;
|
||||
} else if (tableName.equals("BO_ACT_COE_PUBLISH_C")) {
|
||||
//创建一个对象
|
||||
FormGridRowLookAndFeel diyLookAndFeel = new FormGridRowLookAndFeel();
|
||||
String fileName1 = boData.getString("CHANGEFILENAME");
|
||||
if (fileName1 != null) {
|
||||
boData.set("CHANGEFILENAME", "<a style=\"cursor: pointer; color: rgb(51, 131, 218);\" onclick=\"openModel(\'" + boData.getString("CHANGEFILEID") + "\')\">" + fileName1 + "</a>");// 重新设定一个字段的值
|
||||
}
|
||||
String fileName2 = boData.getString("CHANGEDFILENAMENEW");
|
||||
if (fileName2 != null) {
|
||||
boData.set("CHANGEDFILENAMENEW", "<a style=\"cursor: pointer; color: rgb(51, 131, 218);\" onclick=\"openModel(\'" + boData.getString("CHANGEDFILEIDNEW") + "\')\">" + fileName2 + "</a>");// 重新设定一个字段的值
|
||||
}
|
||||
|
||||
boData.set("字段子表字段名", "|");
|
||||
|
||||
//处理好之后,将该对象返回
|
||||
return diyLookAndFeel;
|
||||
} else if (tableName.equals("BO_ACT_COE_PUBLISH_C")) {
|
||||
//创建一个对象
|
||||
FormGridRowLookAndFeel diyLookAndFeel = new FormGridRowLookAndFeel();
|
||||
String fileName1 = boData.getString("CHANGEFILENAME");
|
||||
if (fileName1 != null) {
|
||||
boData.set("CHANGEFILENAME", "<a style=\"cursor: pointer; color: rgb(51, 131, 218);\" onclick=\"openModel(\'" + boData.getString("CHANGEFILEID") + "\')\">" + fileName1 + "</a>");// 重新设定一个字段的值
|
||||
}
|
||||
String fileName2 = boData.getString("CHANGEDFILENAMENEW");
|
||||
if (fileName2 != null) {
|
||||
boData.set("CHANGEDFILENAMENEW", "<a style=\"cursor: pointer; color: rgb(51, 131, 218);\" onclick=\"openModel(\'" + boData.getString("CHANGEDFILEIDNEW") + "\')\">" + fileName2 + "</a>");// 重新设定一个字段的值
|
||||
}
|
||||
//处理好之后,将该对象返回
|
||||
return diyLookAndFeel;
|
||||
} else if (tableName.equals("BO_ACT_COE_PUBLISH_S")) {
|
||||
//创建一个对象
|
||||
FormGridRowLookAndFeel diyLookAndFeel = new FormGridRowLookAndFeel();
|
||||
String fileName = boData.getString("STOPFILENAME");
|
||||
if (fileName != null) {
|
||||
boData.set("STOPFILENAME", "<a style=\"cursor: pointer; color: rgb(51, 131, 218);\" onclick=\"openModel(\'" + boData.getString("STOPFILEID") + "\')\">" + fileName + "</a>");// 重新设定一个字段的值
|
||||
}
|
||||
boData.set("字段子表字段名", "|");
|
||||
|
||||
boData.set("字段子表字段名", "|");
|
||||
//处理好之后,将该对象返回
|
||||
return diyLookAndFeel;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
//处理好之后,将该对象返回
|
||||
return diyLookAndFeel;
|
||||
} else if (tableName.equals("BO_ACT_COE_PUBLISH_S")) {
|
||||
//创建一个对象
|
||||
FormGridRowLookAndFeel diyLookAndFeel = new FormGridRowLookAndFeel();
|
||||
String fileName = boData.getString("STOPFILENAME");
|
||||
if (fileName != null) {
|
||||
boData.set("STOPFILENAME", "<a style=\"cursor: pointer; color: rgb(51, 131, 218);\" onclick=\"openModel(\'" + boData.getString("STOPFILEID") + "\')\">" + fileName + "</a>");// 重新设定一个字段的值
|
||||
}
|
||||
boData.set("字段子表字段名", "|");
|
||||
@Override
|
||||
public String getCustomeTableHeaderHtml(ProcessExecutionContext arg0, FormItemModel arg1, List<String> arg2) {
|
||||
return null;
|
||||
}
|
||||
|
||||
//处理好之后,将该对象返回
|
||||
return diyLookAndFeel;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCustomeTableHeaderHtml(ProcessExecutionContext arg0, FormItemModel arg1, List<String> arg2) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String orderByStatement(ProcessExecutionContext arg0) {
|
||||
return null;
|
||||
}
|
||||
@Override
|
||||
public String orderByStatement(ProcessExecutionContext arg0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
<title>demo</title>
|
||||
<style></style>
|
||||
<script>var sid = '<#sid>';
|
||||
var url = window.location.href;
|
||||
var portalUrl = url.substring(0, url.indexOf('?'));</script>
|
||||
var url = window.location.href;
|
||||
var portalUrl = url.substring(0, url.indexOf('?'));</script>
|
||||
<link href=../apps/com.actionsoft.apps.coe.pal.publisher/dist/static/css/app.9457c8466bc9dd2592dfa47091fb8c98.css rel=stylesheet>
|
||||
</head>
|
||||
<body style="overflow-y: hidden">
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Publisher Home</title>
|
||||
<!-- js -->
|
||||
@ -9,222 +9,222 @@
|
||||
<script src="../commons/js/jquery/scripts/ui/awsui.pagination.js"></script>
|
||||
<!-- css -->
|
||||
<link rel="stylesheet" href="../commons/css/awsui.css">
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="../apps/com.actionsoft.apps.coe.pal.publisher/js/publish.home.js"></script>
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
.network_tabs{
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.network_tabs a{
|
||||
cursor: pointer;
|
||||
padding: 7px 12px;
|
||||
}
|
||||
|
||||
.network_tabs a.active{
|
||||
font-weight: 700;
|
||||
border-bottom: solid 4px #3383da;
|
||||
}
|
||||
.span_margin{
|
||||
margin-right: 20px;
|
||||
}
|
||||
.tbody tr td{
|
||||
padding: 8px;
|
||||
text-align: center;
|
||||
border-bottom: solid 1px #cecece;
|
||||
}
|
||||
.task_tr{
|
||||
cursor: pointer;
|
||||
}
|
||||
.task_no_read{
|
||||
font-weight: bold;
|
||||
}
|
||||
.text_center{
|
||||
text-align: center;
|
||||
}
|
||||
.page_buttom{
|
||||
position: absolute;
|
||||
}
|
||||
.text-overflow{
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
-o-text-overflow: ellipsis;/*Opera下实现ellipsis效果*/
|
||||
}
|
||||
|
||||
.network_tabs{
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.network_tabs a{
|
||||
cursor: pointer;
|
||||
padding: 7px 12px;
|
||||
}
|
||||
|
||||
.network_tabs a.active{
|
||||
font-weight: 700;
|
||||
border-bottom: solid 4px #3383da;
|
||||
}
|
||||
.span_margin{
|
||||
margin-right: 20px;
|
||||
}
|
||||
.tbody tr td{
|
||||
padding: 8px;
|
||||
text-align: center;
|
||||
border-bottom: solid 1px #cecece;
|
||||
}
|
||||
.task_tr{
|
||||
cursor: pointer;
|
||||
}
|
||||
.task_no_read{
|
||||
font-weight: bold;
|
||||
}
|
||||
.text_center{
|
||||
text-align: center;
|
||||
}
|
||||
.page_buttom{
|
||||
position: absolute;
|
||||
}
|
||||
.text-overflow{
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
-o-text-overflow: ellipsis;/*Opera下实现ellipsis效果*/
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body style="overflow-y: hidden;">
|
||||
<div style="width: 100%; display: inline-block; height: 100%;">
|
||||
<div class="network_tabs" id="nav" style="width: 96%; margin: 20px auto;">
|
||||
<a tit="todo" class="active">待办</a>
|
||||
<a tit="done">已办</a>
|
||||
<a tit="history">发布历史</a>
|
||||
<button id="addPulishInstance" type="button" class="button blue" onclick="toAddPublish()" style="<#create>">新建</button>
|
||||
<button id="removePulishInstance" type="button" class="button red" onclick="removePublishInstance()" style="display: none;">删除</button>
|
||||
</div>
|
||||
<div id="content" style="margin-left: 20px; height: 100%;">
|
||||
<div tit="todo">
|
||||
<table class="awsui-ux">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<table class="table table-thin table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="width_10 selectall">序号</th>
|
||||
<th class="width_10">
|
||||
<input class="awsui-checkbox" id="select_all" type="checkbox" />
|
||||
</th>
|
||||
<th class="width_45">标题</th>
|
||||
<th class="width_10">来自</th>
|
||||
<th class="width_25">日期</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody1">
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
<div id="Pagination1" class="page_buttom"></div>
|
||||
</div>
|
||||
<div tit="done" style="display: none;">
|
||||
<table class="awsui-ux">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<table class="table table-thin table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="width_10 selectall">序号</th>
|
||||
<th class="width_45">标题</th>
|
||||
<th class="width_15">来自</th>
|
||||
<th class="width_30">日期</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody2">
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
<div id="Pagination2" class="page_buttom"></div>
|
||||
</div>
|
||||
<div tit="history" style="display: none; height: 100%;">
|
||||
<iframe width="100%" id="pl_publish_iframe_page" name="pl_publish_iframe" frameBorder="0" style="height: 90%;"></iframe>
|
||||
<!--<table class="awsui-ux">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<table class="table table-thin table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="width_10 selectall">序号</th>
|
||||
<th class="width_45">标题</th>
|
||||
<th class="width_15">来自</th>
|
||||
<th class="width_30">日期</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody3">
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
<div id="Pagination3" class="page_buttom"></div>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</head>
|
||||
<body style="overflow-y: hidden;">
|
||||
<div style="width: 100%; display: inline-block; height: 100%;">
|
||||
<div class="network_tabs" id="nav" style="width: 96%; margin: 20px auto;">
|
||||
<a tit="todo" class="active">待办</a>
|
||||
<a tit="done">已办</a>
|
||||
<a tit="history">发布历史</a>
|
||||
<button id="addPulishInstance" type="button" class="button blue" onclick="toAddPublish()" style="<#create>">新建</button>
|
||||
<button id="removePulishInstance" type="button" class="button red" onclick="removePublishInstance()" style="display: none;">删除</button>
|
||||
</div>
|
||||
<div id="content" style="margin-left: 20px; height: 100%;">
|
||||
<div tit="todo">
|
||||
<table class="awsui-ux">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<table class="table table-thin table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="width_10 selectall">序号</th>
|
||||
<th class="width_10">
|
||||
<input class="awsui-checkbox" id="select_all" type="checkbox" />
|
||||
</th>
|
||||
<th class="width_45">标题</th>
|
||||
<th class="width_10">来自</th>
|
||||
<th class="width_25">日期</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody1">
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
<div id="Pagination1" class="page_buttom"></div>
|
||||
</div>
|
||||
<div tit="done" style="display: none;">
|
||||
<table class="awsui-ux">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<table class="table table-thin table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="width_10 selectall">序号</th>
|
||||
<th class="width_45">标题</th>
|
||||
<th class="width_15">来自</th>
|
||||
<th class="width_30">日期</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody2">
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
<div id="Pagination2" class="page_buttom"></div>
|
||||
</div>
|
||||
<div tit="history" style="display: none; height: 100%;">
|
||||
<iframe width="100%" id="pl_publish_iframe_page" name="pl_publish_iframe" frameBorder="0" style="height: 90%;"></iframe>
|
||||
<!--<table class="awsui-ux">
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<table class="table table-thin table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="width_10 selectall">序号</th>
|
||||
<th class="width_45">标题</th>
|
||||
<th class="width_15">来自</th>
|
||||
<th class="width_30">日期</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody3">
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
<div id="Pagination3" class="page_buttom"></div>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="add_div" style="width: 100%; display: none;">
|
||||
<div class="awsui-toolbar">
|
||||
<span class="toolbarText" style="font-size: 18px;"><#title></span>
|
||||
<span class="button blue align-right" onclick="addPublishInstance()">下一步</span>
|
||||
<span class="button align-right" onclick="giveUp()">放 弃</span>
|
||||
</div>
|
||||
<table class="awsui-ux">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="15%">标题(便于检索)</td>
|
||||
<td><span class="required"><input class="txt" type="text" id="title" value="<#title>" maxlength="120"></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>发起人</td>
|
||||
<td><#userName></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div style="display:none;">
|
||||
<form id="openNewPage" name="openNewPage" target="_blank" method="post" action="./w">
|
||||
<input id="cmd" name="cmd" value="com.actionsoft.apps.coe.pal.publisher_handle">
|
||||
<input name="sid" value="<#sid>">
|
||||
<input id="processInstId" name="processInstId" value="">
|
||||
<input id="taskInstId" name="taskInstId" value="">
|
||||
<input id="openState" name="openState" value="">
|
||||
</form>
|
||||
</div>
|
||||
<input type="hidden" name="sid" id="sid" value="<#sid>" />
|
||||
<input type="hidden" name="wsId" id="wsId" value="<#wsId>" />
|
||||
<input type="hidden" name="teamId" id="teamId" value="<#teamId>" />
|
||||
<input type="hidden" name="teamName" id="teamName" value="<#teamName>" />
|
||||
<input type="hidden" name="appId" id="appId" value="<#appId>" />
|
||||
|
||||
<div id="add_div" style="width: 100%; display: none;">
|
||||
<div class="awsui-toolbar">
|
||||
<span class="toolbarText" style="font-size: 18px;"><#title></span>
|
||||
<span class="button blue align-right" onclick="addPublishInstance()">下一步</span>
|
||||
<span class="button align-right" onclick="giveUp()">放 弃</span>
|
||||
</div>
|
||||
<table class="awsui-ux">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="15%">标题(便于检索)</td>
|
||||
<td><span class="required"><input class="txt" type="text" id="title" value="<#title>" maxlength="120"></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>发起人</td>
|
||||
<td><#userName></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div style="display:none;">
|
||||
<form id="openNewPage" name="openNewPage" target="_blank" method="post" action="./w">
|
||||
<input id="cmd" name="cmd" value="com.actionsoft.apps.coe.pal.publisher_handle">
|
||||
<input name="sid" value="<#sid>">
|
||||
<input id="processInstId" name="processInstId" value="">
|
||||
<input id="taskInstId" name="taskInstId" value="">
|
||||
<input id="openState" name="openState" value="">
|
||||
</form>
|
||||
</div>
|
||||
<input type="hidden" name="sid" id="sid" value="<#sid>" />
|
||||
<input type="hidden" name="wsId" id="wsId" value="<#wsId>" />
|
||||
<input type="hidden" name="teamId" id="teamId" value="<#teamId>" />
|
||||
<input type="hidden" name="teamName" id="teamName" value="<#teamName>" />
|
||||
<input type="hidden" name="appId" id="appId" value="<#appId>" />
|
||||
</body>
|
||||
|
||||
<script type="text/javascript">
|
||||
var totalData1 = <#totalData1>;
|
||||
var totalData2 = <#totalData2>;
|
||||
var totalData3 = <#totalData3>;
|
||||
var currentpage1 = 0;//当前页数
|
||||
var currentpage2 = 0;//当前页数
|
||||
var currentpage3 = 0;//当前页数
|
||||
|
||||
var pageLimit = 10;//每页显示条数
|
||||
var showItem = 10;//显示分页按钮数量
|
||||
var title = "<#title>";
|
||||
|
||||
</body>
|
||||
|
||||
<script type="text/javascript">
|
||||
var totalData1 = <#totalData1>;
|
||||
var totalData2 = <#totalData2>;
|
||||
var totalData3 = <#totalData3>;
|
||||
var currentpage1 = 0;//当前页数
|
||||
var currentpage2 = 0;//当前页数
|
||||
var currentpage3 = 0;//当前页数
|
||||
|
||||
var pageLimit = 10;//每页显示条数
|
||||
var showItem = 10;//显示分页按钮数量
|
||||
var title = "<#title>";
|
||||
|
||||
$(function(){
|
||||
title = "<#title>";
|
||||
|
||||
$(".network_tabs").find("a[tit]").on("click", function(){
|
||||
var appId = $(this).attr("tit");
|
||||
$(this).siblings().removeClass("active");
|
||||
$(this).addClass("active");
|
||||
$("#content").find("div[tit]").hide();
|
||||
$("#content").find("div[tit='"+$(this).attr("tit")+"']").show();
|
||||
|
||||
if (appId == "todo") {
|
||||
loadOutputData1(0, 10, initPage1);
|
||||
} else if (appId == "done") {
|
||||
loadOutputData2(0, 10, initPage2);
|
||||
} else if (appId == "history") {
|
||||
//loadOutputData3(0, 10, initPage3);
|
||||
loadHistoryRecord();
|
||||
}
|
||||
});
|
||||
|
||||
loadOutputData1(0, 10, initPage1);
|
||||
|
||||
$("#select_all").check().on("ifChanged", function(){
|
||||
var isChecked = $(this).prop("checked");
|
||||
if (isChecked) {
|
||||
$("#tbody1 .awsui-checkbox").check("option", "checked", true);
|
||||
} else {
|
||||
$("#tbody1 .awsui-checkbox").check("option", "checked", false);
|
||||
}
|
||||
})
|
||||
|
||||
$(window).trigger('resize');
|
||||
})
|
||||
|
||||
$(window).resize(function(){
|
||||
var totalWidth = $('#content').width() - 40;
|
||||
$("[class*=width_]").each(function(){
|
||||
var className = $(this).attr("class");
|
||||
var percent = parseInt(className.substr(6, 2));
|
||||
$(this).css({"width" : totalWidth*percent/100});
|
||||
});
|
||||
})
|
||||
</script>
|
||||
$(function(){
|
||||
title = "<#title>";
|
||||
|
||||
$(".network_tabs").find("a[tit]").on("click", function(){
|
||||
var appId = $(this).attr("tit");
|
||||
$(this).siblings().removeClass("active");
|
||||
$(this).addClass("active");
|
||||
$("#content").find("div[tit]").hide();
|
||||
$("#content").find("div[tit='"+$(this).attr("tit")+"']").show();
|
||||
|
||||
if (appId == "todo") {
|
||||
loadOutputData1(0, 10, initPage1);
|
||||
} else if (appId == "done") {
|
||||
loadOutputData2(0, 10, initPage2);
|
||||
} else if (appId == "history") {
|
||||
//loadOutputData3(0, 10, initPage3);
|
||||
loadHistoryRecord();
|
||||
}
|
||||
});
|
||||
|
||||
loadOutputData1(0, 10, initPage1);
|
||||
|
||||
$("#select_all").check().on("ifChanged", function(){
|
||||
var isChecked = $(this).prop("checked");
|
||||
if (isChecked) {
|
||||
$("#tbody1 .awsui-checkbox").check("option", "checked", true);
|
||||
} else {
|
||||
$("#tbody1 .awsui-checkbox").check("option", "checked", false);
|
||||
}
|
||||
})
|
||||
|
||||
$(window).trigger('resize');
|
||||
})
|
||||
|
||||
$(window).resize(function(){
|
||||
var totalWidth = $('#content').width() - 40;
|
||||
$("[class*=width_]").each(function(){
|
||||
var className = $(this).attr("class");
|
||||
var percent = parseInt(className.substr(6, 2));
|
||||
$(this).css({"width" : totalWidth*percent/100});
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</html>
|
||||
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=../apps/com.actionsoft.apps.coe.pal.publisher/main/favicon.ico><title>com.actionsoft.apps.coe.pal.publisher</title><script>const settingParam = <#settingParam>;
|
||||
const axiosBaseUrl = "./";
|
||||
const production = true;</script><script>var wsId = "<#wsId>";
|
||||
var teamId = '<#teamId>';
|
||||
var teamName = '<#teamName>';
|
||||
var title = '<#title>';</script><link href=../apps/com.actionsoft.apps.coe.pal.publisher/main/css/chunk-8ab0b442.8d291593.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal.publisher/main/js/chunk-2d224ef1.ab17ea19.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal.publisher/main/js/chunk-8ab0b442.8140534f.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal.publisher/main/css/app.f37b6b5a.css rel=preload as=style><link href=../apps/com.actionsoft.apps.coe.pal.publisher/main/js/app.1bf9b24e.js rel=preload as=script><link href=../apps/com.actionsoft.apps.coe.pal.publisher/main/js/chunk-vendors.060d0032.js rel=preload as=script><link href=../apps/com.actionsoft.apps.coe.pal.publisher/main/css/app.f37b6b5a.css rel=stylesheet></head><body style=margin:0;><div id=app></div><script src=../apps/com.actionsoft.apps.coe.pal.publisher/main/js/chunk-vendors.060d0032.js></script><script src=../apps/com.actionsoft.apps.coe.pal.publisher/main/js/app.1bf9b24e.js></script></body></html>
|
||||
const axiosBaseUrl = "./";
|
||||
const production = true;</script><script>var wsId = "<#wsId>";
|
||||
var teamId = '<#teamId>';
|
||||
var teamName = '<#teamName>';
|
||||
var title = '<#title>';</script><link href=../apps/com.actionsoft.apps.coe.pal.publisher/main/css/chunk-8ab0b442.8d291593.css rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal.publisher/main/js/chunk-2d224ef1.ab17ea19.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal.publisher/main/js/chunk-8ab0b442.8140534f.js rel=prefetch><link href=../apps/com.actionsoft.apps.coe.pal.publisher/main/css/app.f37b6b5a.css rel=preload as=style><link href=../apps/com.actionsoft.apps.coe.pal.publisher/main/js/app.1bf9b24e.js rel=preload as=script><link href=../apps/com.actionsoft.apps.coe.pal.publisher/main/js/chunk-vendors.060d0032.js rel=preload as=script><link href=../apps/com.actionsoft.apps.coe.pal.publisher/main/css/app.f37b6b5a.css rel=stylesheet></head><body style=margin:0;><div id=app></div><script src=../apps/com.actionsoft.apps.coe.pal.publisher/main/js/chunk-vendors.060d0032.js></script><script src=../apps/com.actionsoft.apps.coe.pal.publisher/main/js/app.1bf9b24e.js></script></body></html>
|
||||
File diff suppressed because it is too large
Load Diff
@ -9,208 +9,208 @@ var wing_event_keyCode;
|
||||
var autoIndex;
|
||||
var autoLenght;
|
||||
$.fn.myAutoInput = function(url) {
|
||||
autoURL=url;
|
||||
var obj = $(this);
|
||||
obj.keyup(function(event){
|
||||
//alert(event.keyCode);
|
||||
wing_event_keyCode=event.keyCode;
|
||||
autoVal=this.value;
|
||||
autoInputObj=obj;
|
||||
var auto = document.getElementById('autoDiv');
|
||||
if (wing_event_keyCode == 40 && auto.style.display == 'block') {
|
||||
$("#autoDiv"+autoIndex).css("backgroundImage","url('')");
|
||||
$("#autoDiv"+autoIndex).css("color","black");
|
||||
$("#autoDiv"+autoIndex).css("fontWeight","normal");
|
||||
if(autoIndex>=autoLenght-1)
|
||||
{
|
||||
$("#autoDiv0").get(0).style.backgroundImage="url('../apps/com.actionsoft.apps.coe.pal/img/pl/link.png')";
|
||||
$("#autoDiv0").css("color","white");
|
||||
//$("#autoDiv0").css("fontWeight","bold");
|
||||
autoIndex=0;
|
||||
}else
|
||||
{
|
||||
autoIndex++;
|
||||
$("#autoDiv"+(autoIndex)).get(0).style.backgroundImage="url('../apps/com.actionsoft.apps.coe.pal/img/pl/link.png')";
|
||||
$("#autoDiv"+autoIndex).css("color","white");
|
||||
//$("#autoDiv"+autoIndex).css("fontWeight","bold");
|
||||
|
||||
}
|
||||
//autoInputObj.get(0).value=$("#autoDiv"+autoIndex).data("value");
|
||||
return;
|
||||
}else if (wing_event_keyCode == 38 && auto.style.display == 'block') {
|
||||
$("#autoDiv"+autoIndex).css("backgroundImage","url('')");
|
||||
$("#autoDiv"+autoIndex).css("color","black");
|
||||
$("#autoDiv"+autoIndex).css("fontWeight","normal");
|
||||
if(autoIndex<=0)
|
||||
{
|
||||
$("#autoDiv"+(autoLenght-1)).get(0).style.backgroundImage="url('../apps/com.actionsoft.apps.coe.pal/img/pl/link.png')";
|
||||
$("#autoDiv"+(autoLenght-1)).css("color","white");
|
||||
//$("#autoDiv"+(autoLenght-1)).css("fontWeight","bold");
|
||||
autoIndex=autoLenght-1;
|
||||
}else
|
||||
{
|
||||
autoIndex--;
|
||||
$("#autoDiv"+(autoIndex)).get(0).style.backgroundImage="url('../apps/com.actionsoft.apps.coe.pal/img/pl/link.png')";
|
||||
$("#autoDiv"+autoIndex).css("color","white");
|
||||
//$("#autoDiv"+autoIndex).css("fontWeight","bold");
|
||||
}
|
||||
//autoInputObj.get(0).value=$("#autoDiv"+autoIndex).data("value");
|
||||
|
||||
return;
|
||||
}else if (event.keyCode == 27) {//ESC
|
||||
document.getElementById('autoDiv').style.display = 'none';
|
||||
return;
|
||||
}else if (event.keyCode == 13)//ENTER
|
||||
{
|
||||
//autoInputObj.get(0).value=$("#autoDiv"+autoIndex).data("value");
|
||||
setValue($("#autoDiv"+autoIndex).data("value"),$("#autoDiv"+autoIndex).data("name"));
|
||||
document.getElementById('autoDiv').style.display = 'none';
|
||||
return ;
|
||||
}else
|
||||
{
|
||||
autoIndex=-1;
|
||||
}
|
||||
//auto.style.display = 'none';
|
||||
if(wing_event_keyCode==8)
|
||||
{
|
||||
autoCountWait=autoCount;
|
||||
}
|
||||
if(autoVal!=''){
|
||||
setTimeout("autoAjaxWaitFn()",autoTime);
|
||||
autoCount++;
|
||||
}else{
|
||||
document.getElementById("autoDiv").style.display='none';
|
||||
}
|
||||
});
|
||||
return obj;
|
||||
autoURL=url;
|
||||
var obj = $(this);
|
||||
obj.keyup(function(event){
|
||||
//alert(event.keyCode);
|
||||
wing_event_keyCode=event.keyCode;
|
||||
autoVal=this.value;
|
||||
autoInputObj=obj;
|
||||
var auto = document.getElementById('autoDiv');
|
||||
if (wing_event_keyCode == 40 && auto.style.display == 'block') {
|
||||
$("#autoDiv"+autoIndex).css("backgroundImage","url('')");
|
||||
$("#autoDiv"+autoIndex).css("color","black");
|
||||
$("#autoDiv"+autoIndex).css("fontWeight","normal");
|
||||
if(autoIndex>=autoLenght-1)
|
||||
{
|
||||
$("#autoDiv0").get(0).style.backgroundImage="url('../apps/com.actionsoft.apps.coe.pal/img/pl/link.png')";
|
||||
$("#autoDiv0").css("color","white");
|
||||
//$("#autoDiv0").css("fontWeight","bold");
|
||||
autoIndex=0;
|
||||
}else
|
||||
{
|
||||
autoIndex++;
|
||||
$("#autoDiv"+(autoIndex)).get(0).style.backgroundImage="url('../apps/com.actionsoft.apps.coe.pal/img/pl/link.png')";
|
||||
$("#autoDiv"+autoIndex).css("color","white");
|
||||
//$("#autoDiv"+autoIndex).css("fontWeight","bold");
|
||||
|
||||
}
|
||||
//autoInputObj.get(0).value=$("#autoDiv"+autoIndex).data("value");
|
||||
return;
|
||||
}else if (wing_event_keyCode == 38 && auto.style.display == 'block') {
|
||||
$("#autoDiv"+autoIndex).css("backgroundImage","url('')");
|
||||
$("#autoDiv"+autoIndex).css("color","black");
|
||||
$("#autoDiv"+autoIndex).css("fontWeight","normal");
|
||||
if(autoIndex<=0)
|
||||
{
|
||||
$("#autoDiv"+(autoLenght-1)).get(0).style.backgroundImage="url('../apps/com.actionsoft.apps.coe.pal/img/pl/link.png')";
|
||||
$("#autoDiv"+(autoLenght-1)).css("color","white");
|
||||
//$("#autoDiv"+(autoLenght-1)).css("fontWeight","bold");
|
||||
autoIndex=autoLenght-1;
|
||||
}else
|
||||
{
|
||||
autoIndex--;
|
||||
$("#autoDiv"+(autoIndex)).get(0).style.backgroundImage="url('../apps/com.actionsoft.apps.coe.pal/img/pl/link.png')";
|
||||
$("#autoDiv"+autoIndex).css("color","white");
|
||||
//$("#autoDiv"+autoIndex).css("fontWeight","bold");
|
||||
}
|
||||
//autoInputObj.get(0).value=$("#autoDiv"+autoIndex).data("value");
|
||||
|
||||
return;
|
||||
}else if (event.keyCode == 27) {//ESC
|
||||
document.getElementById('autoDiv').style.display = 'none';
|
||||
return;
|
||||
}else if (event.keyCode == 13)//ENTER
|
||||
{
|
||||
//autoInputObj.get(0).value=$("#autoDiv"+autoIndex).data("value");
|
||||
setValue($("#autoDiv"+autoIndex).data("value"),$("#autoDiv"+autoIndex).data("name"));
|
||||
document.getElementById('autoDiv').style.display = 'none';
|
||||
return ;
|
||||
}else
|
||||
{
|
||||
autoIndex=-1;
|
||||
}
|
||||
//auto.style.display = 'none';
|
||||
if(wing_event_keyCode==8)
|
||||
{
|
||||
autoCountWait=autoCount;
|
||||
}
|
||||
if(autoVal!=''){
|
||||
setTimeout("autoAjaxWaitFn()",autoTime);
|
||||
autoCount++;
|
||||
}else{
|
||||
document.getElementById("autoDiv").style.display='none';
|
||||
}
|
||||
});
|
||||
return obj;
|
||||
}
|
||||
function autoAjaxWaitFn()
|
||||
{
|
||||
autoCountWait++;
|
||||
if(autoCountWait!=autoCount)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (autoURL == "") {
|
||||
return;
|
||||
}
|
||||
if (autoVal != " ") {
|
||||
autoVal = autoVal.trim();
|
||||
}
|
||||
if (autoVal == "") {
|
||||
return;
|
||||
}
|
||||
$.post(autoURL, {"autoContent":autoVal,"cmd":"com.actionsoft.apps.coe.pal_processlevel_query","sid":jQuery("#sid").val(),"wsid":jQuery("#wsId").val()},autoajax, "json");
|
||||
autoCountWait++;
|
||||
if(autoCountWait!=autoCount)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (autoURL == "") {
|
||||
return;
|
||||
}
|
||||
if (autoVal != " ") {
|
||||
autoVal = autoVal.trim();
|
||||
}
|
||||
if (autoVal == "") {
|
||||
return;
|
||||
}
|
||||
$.post(autoURL, {"autoContent":autoVal,"cmd":"com.actionsoft.apps.coe.pal_processlevel_query","sid":jQuery("#sid").val(),"wsid":jQuery("#wsId").val()},autoajax, "json");
|
||||
}
|
||||
|
||||
function autoajax(msg) {
|
||||
$("#autoDiv").html("");
|
||||
var auto = document.getElementById('autoDiv');
|
||||
var txt = autoInputObj.get(0);
|
||||
if (msg == ""){
|
||||
auto.style.display = 'none';
|
||||
return;
|
||||
}
|
||||
autoLenght=msg.length;
|
||||
for(var i=0;i<autoLenght;i++){
|
||||
var icon;
|
||||
var margin;
|
||||
if (msg[i].type == "default") {
|
||||
icon = "";
|
||||
margin = "margin-left:25px;"
|
||||
} else {
|
||||
margin = "margin-left:5px;";
|
||||
icon = "<div onclick='open_desginer(this)' style='display:inline-block; cursor:pointer;'><img style='height:20px;' src='../apps/com.actionsoft.apps.coe.pal/img/icon/open3.png'></div>";
|
||||
}
|
||||
$("#autoDiv").append("<div id='autoDiv"+i+"' class='aotuDivcontenr' onMouseOver='aotu_Move(this)' onMouseOut='aotu_Out(this)' style='min-weight:98%;text-align:left;background-color:white;padding-top: 5px;padding-left: 2px;padding-right: 5px;height:20px'>"
|
||||
+ icon
|
||||
+ "<span onclick='aotu_clike(this)' style='cursor:pointer; display:inline-block;" + margin + "'>" + msg[i].ui + "</span>"
|
||||
+ "</div>");
|
||||
$("#autoDiv"+i).data("value",msg[i].value);
|
||||
$("#autoDiv"+i).data("name",msg[i].name);
|
||||
}
|
||||
// 锟斤拷锟矫诧拷锟轿伙拷锟<E68BB7>
|
||||
var x = autoInputObj.offset().left;
|
||||
var y = autoInputObj.offset().top ;
|
||||
var wing_auto=$(auto);
|
||||
wing_auto.css("left",x);
|
||||
wing_auto.css("top",y + txt.offsetHeight);
|
||||
$("#autoDiv").css("minWidth",txt.offsetWidth);
|
||||
|
||||
// 锟斤拷锟斤拷锟斤拷锟斤拷锟绞撅拷锟<E68BB7>
|
||||
if (autoLenght == 1 && $("#autoDiv0").data("value") == txt.value) {
|
||||
auto.style.display = 'none';
|
||||
}
|
||||
else {
|
||||
auto.style.display = 'block';
|
||||
}
|
||||
$("#autoDiv").html("");
|
||||
var auto = document.getElementById('autoDiv');
|
||||
var txt = autoInputObj.get(0);
|
||||
if (msg == ""){
|
||||
auto.style.display = 'none';
|
||||
return;
|
||||
}
|
||||
autoLenght=msg.length;
|
||||
for(var i=0;i<autoLenght;i++){
|
||||
var icon;
|
||||
var margin;
|
||||
if (msg[i].type == "default") {
|
||||
icon = "";
|
||||
margin = "margin-left:25px;"
|
||||
} else {
|
||||
margin = "margin-left:5px;";
|
||||
icon = "<div onclick='open_desginer(this)' style='display:inline-block; cursor:pointer;'><img style='height:20px;' src='../apps/com.actionsoft.apps.coe.pal/img/icon/open3.png'></div>";
|
||||
}
|
||||
$("#autoDiv").append("<div id='autoDiv"+i+"' class='aotuDivcontenr' onMouseOver='aotu_Move(this)' onMouseOut='aotu_Out(this)' style='min-weight:98%;text-align:left;background-color:white;padding-top: 5px;padding-left: 2px;padding-right: 5px;height:20px'>"
|
||||
+ icon
|
||||
+ "<span onclick='aotu_clike(this)' style='cursor:pointer; display:inline-block;" + margin + "'>" + msg[i].ui + "</span>"
|
||||
+ "</div>");
|
||||
$("#autoDiv"+i).data("value",msg[i].value);
|
||||
$("#autoDiv"+i).data("name",msg[i].name);
|
||||
}
|
||||
// 锟斤拷锟矫诧拷锟轿伙拷锟<E68BB7>
|
||||
var x = autoInputObj.offset().left;
|
||||
var y = autoInputObj.offset().top ;
|
||||
var wing_auto=$(auto);
|
||||
wing_auto.css("left",x);
|
||||
wing_auto.css("top",y + txt.offsetHeight);
|
||||
$("#autoDiv").css("minWidth",txt.offsetWidth);
|
||||
|
||||
// 锟斤拷锟斤拷锟斤拷锟斤拷锟绞撅拷锟<E68BB7>
|
||||
if (autoLenght == 1 && $("#autoDiv0").data("value") == txt.value) {
|
||||
auto.style.display = 'none';
|
||||
}
|
||||
else {
|
||||
auto.style.display = 'block';
|
||||
}
|
||||
}
|
||||
$(function(){
|
||||
hwTime();
|
||||
$("body").prepend("<div id='autoDiv' style=\"display: none;position: absolute;z-index:999;border-style:solid;border-width:1px;border-top-width:1px; border-color:gray;background-color: white;box-shadow: 1px 1px 10px #909090;')\"></div>");
|
||||
$("#autoDiv").keydown(function(event){
|
||||
if(event.keyCode == 8)
|
||||
{
|
||||
event.keyCode=27;
|
||||
var obj=autoInputObj.get(0);
|
||||
obj.focus();
|
||||
obj.value=obj.value.slice(0,obj.value.length);
|
||||
}
|
||||
if (event.keyCode == 27) {
|
||||
document.getElementById('autoDiv').style.display = 'none';
|
||||
}
|
||||
});
|
||||
|
||||
hwTime();
|
||||
$("body").prepend("<div id='autoDiv' style=\"display: none;position: absolute;z-index:999;border-style:solid;border-width:1px;border-top-width:1px; border-color:gray;background-color: white;box-shadow: 1px 1px 10px #909090;')\"></div>");
|
||||
$("#autoDiv").keydown(function(event){
|
||||
if(event.keyCode == 8)
|
||||
{
|
||||
event.keyCode=27;
|
||||
var obj=autoInputObj.get(0);
|
||||
obj.focus();
|
||||
obj.value=obj.value.slice(0,obj.value.length);
|
||||
}
|
||||
if (event.keyCode == 27) {
|
||||
document.getElementById('autoDiv').style.display = 'none';
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
function hwTime()
|
||||
{
|
||||
//autoCountWait=autoCount;
|
||||
//setTimeout("hwTime()",2000);
|
||||
//autoCountWait=autoCount;
|
||||
//setTimeout("hwTime()",2000);
|
||||
}
|
||||
function divEvent2() {
|
||||
try{
|
||||
document.getElementById('autoDiv').style.display = 'none';
|
||||
}catch(e){
|
||||
}
|
||||
try{
|
||||
document.getElementById('autoDiv').style.display = 'none';
|
||||
}catch(e){
|
||||
}
|
||||
}
|
||||
document.onclick = divEvent2;
|
||||
function aotu_Move(obj)
|
||||
{
|
||||
$(".aotuDivcontenr").css({"backgroundImage":"none","color":"black","fontWeight":"normal"});
|
||||
obj.style.backgroundImage="url('../apps/com.actionsoft.apps.coe.pal/img/pl/link.png')";
|
||||
autoIndex=obj.id.substring(obj.id.length-1);
|
||||
obj.style.color="white";
|
||||
$(".aotuDivcontenr").css({"backgroundImage":"none","color":"black","fontWeight":"normal"});
|
||||
obj.style.backgroundImage="url('../apps/com.actionsoft.apps.coe.pal/img/pl/link.png')";
|
||||
autoIndex=obj.id.substring(obj.id.length-1);
|
||||
obj.style.color="white";
|
||||
}
|
||||
function aotu_Out(obj)
|
||||
{
|
||||
obj.style.backgroundImage="";
|
||||
obj.style.color="black";
|
||||
obj.style.fontWeight="normal";
|
||||
obj.style.backgroundImage="";
|
||||
obj.style.color="black";
|
||||
obj.style.fontWeight="normal";
|
||||
}
|
||||
function aotu_clike(obj)
|
||||
{
|
||||
obj = obj.parentElement;
|
||||
var id=obj.id.substring(6+1,obj.id.length);
|
||||
setValue($("#autoDiv"+id).data("value"),$("#autoDiv"+id).data("name"));
|
||||
obj = obj.parentElement;
|
||||
var id=obj.id.substring(6+1,obj.id.length);
|
||||
setValue($("#autoDiv"+id).data("value"),$("#autoDiv"+id).data("name"));
|
||||
}
|
||||
function setValue(uuid,name)
|
||||
{
|
||||
$.ajax({
|
||||
url:'./w?cmd=com.actionsoft.apps.coe.pal_processlevel_query_check&sid='+$('#sid').val()+'&uuid='+uuid,
|
||||
async:false,
|
||||
success:function(msg){
|
||||
if(msg!="")
|
||||
{
|
||||
autoInputObj.get(0).value="";
|
||||
openDesginer(msg, 0, "", "", "", false, "0");
|
||||
}
|
||||
}
|
||||
})
|
||||
$.ajax({
|
||||
url:'./w?cmd=com.actionsoft.apps.coe.pal_processlevel_query_check&sid='+$('#sid').val()+'&uuid='+uuid,
|
||||
async:false,
|
||||
success:function(msg){
|
||||
if(msg!="")
|
||||
{
|
||||
autoInputObj.get(0).value="";
|
||||
openDesginer(msg, 0, "", "", "", false, "0");
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function open_desginer(obj){
|
||||
obj = obj.parentElement;
|
||||
var id = obj.id.substring(6+1,obj.id.length);
|
||||
repositoryTree.selectNode($("#autoDiv"+id).data("value"),true);
|
||||
openDesginer($("#autoDiv"+id).data("value"), '0',$("#autoDiv"+id).data("name"),'', '','');
|
||||
obj = obj.parentElement;
|
||||
var id = obj.id.substring(6+1,obj.id.length);
|
||||
repositoryTree.selectNode($("#autoDiv"+id).data("value"),true);
|
||||
openDesginer($("#autoDiv"+id).data("value"), '0',$("#autoDiv"+id).data("name"),'', '','');
|
||||
}
|
||||
|
||||
@ -1,23 +1,23 @@
|
||||
$(document) .ready(
|
||||
function() {
|
||||
setTimeout(function() {
|
||||
setting.dataModel = {
|
||||
data : data
|
||||
};
|
||||
checkTree = awsui.tree.init($("#tree"), setting);
|
||||
}, 100);
|
||||
}
|
||||
function() {
|
||||
setTimeout(function() {
|
||||
setting.dataModel = {
|
||||
data : data
|
||||
};
|
||||
checkTree = awsui.tree.init($("#tree"), setting);
|
||||
}, 100);
|
||||
}
|
||||
);
|
||||
|
||||
var CoEProcessPublishAdd = {
|
||||
saveRowData : function() {
|
||||
//alert(parent.document.querySelector("#pageFrame").contentWindow.CoEProcessPublish.getTeamId());
|
||||
}
|
||||
saveRowData : function() {
|
||||
//alert(parent.document.querySelector("#pageFrame").contentWindow.CoEProcessPublish.getTeamId());
|
||||
}
|
||||
};
|
||||
|
||||
var setting = {
|
||||
checkbox : true,
|
||||
checkInherit : false/*,
|
||||
checkbox : true,
|
||||
checkInherit : false/*,
|
||||
event : {
|
||||
onClick : onClick,
|
||||
// beforeExpand : loadData,
|
||||
@ -28,42 +28,42 @@ var setting = {
|
||||
};
|
||||
var checkTree;
|
||||
function loadData(treeNode) {
|
||||
var url = "./w?sid="
|
||||
+ parent.sid
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_outputreport_pal_file_relation_json_data&methodType="
|
||||
+ parent.OutputReportWizard.treeNodeObj.relationMethodScope
|
||||
+ "&wsid=" + parent.wsid + "&pid=" + treeNode.id + "&teamId=";
|
||||
var dataModel = {
|
||||
url : url,
|
||||
method : "POST",
|
||||
dataType : "json"
|
||||
}
|
||||
checkTree.refreshNode({
|
||||
id : treeNode.id,
|
||||
dataModel : dataModel
|
||||
});
|
||||
var url = "./w?sid="
|
||||
+ parent.sid
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_outputreport_pal_file_relation_json_data&methodType="
|
||||
+ parent.OutputReportWizard.treeNodeObj.relationMethodScope
|
||||
+ "&wsid=" + parent.wsid + "&pid=" + treeNode.id + "&teamId=";
|
||||
var dataModel = {
|
||||
url : url,
|
||||
method : "POST",
|
||||
dataType : "json"
|
||||
}
|
||||
checkTree.refreshNode({
|
||||
id : treeNode.id,
|
||||
dataModel : dataModel
|
||||
});
|
||||
}
|
||||
|
||||
function getCheckedNode() {
|
||||
return checkTree.getCheckedNodes();
|
||||
return checkTree.getCheckedNodes();
|
||||
}
|
||||
// 设置被选中的checkbox
|
||||
|
||||
function checkedNodeById() {
|
||||
var checkedIds = parent.OutputReportWizard.treeRelationNodeIds;
|
||||
if (checkedIds != "") {
|
||||
checkedIds = checkedIds.split(",");
|
||||
for (var i = 0; i < checkedIds.length; i++) {
|
||||
if (checkedIds[i] == "") {
|
||||
continue;
|
||||
}
|
||||
var resourceId = checkedIds[i];
|
||||
var checkboxObj = $("input[type=checkbox][value=" + resourceId
|
||||
+ "]");
|
||||
if (checkboxObj != undefined) {
|
||||
checkboxObj.prop("checked", true);
|
||||
}
|
||||
var checkedIds = parent.OutputReportWizard.treeRelationNodeIds;
|
||||
if (checkedIds != "") {
|
||||
checkedIds = checkedIds.split(",");
|
||||
for (var i = 0; i < checkedIds.length; i++) {
|
||||
if (checkedIds[i] == "") {
|
||||
continue;
|
||||
}
|
||||
var resourceId = checkedIds[i];
|
||||
var checkboxObj = $("input[type=checkbox][value=" + resourceId
|
||||
+ "]");
|
||||
if (checkboxObj != undefined) {
|
||||
checkboxObj.prop("checked", true);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,360 +1,360 @@
|
||||
$(document) .ready(function() {
|
||||
setTimeout(function() {
|
||||
CoEProcessPublish.loadPublishAddData();//载入新发布的流程
|
||||
}, 100);
|
||||
setTimeout(function() {
|
||||
CoEProcessPublish.loadPublishChangeData();//载入变更的流程
|
||||
}, 300);
|
||||
setTimeout(function() {
|
||||
CoEProcessPublish.loadPublishStopData();//载入停用的流程
|
||||
}, 500);
|
||||
setTimeout(function() {
|
||||
CoEProcessPublish.loadPublishAddData();//载入新发布的流程
|
||||
}, 100);
|
||||
setTimeout(function() {
|
||||
CoEProcessPublish.loadPublishChangeData();//载入变更的流程
|
||||
}, 300);
|
||||
setTimeout(function() {
|
||||
CoEProcessPublish.loadPublishStopData();//载入停用的流程
|
||||
}, 500);
|
||||
});
|
||||
var CoEProcessPublish = {
|
||||
getTeamId : function() {
|
||||
return $("#teamId").val();
|
||||
},
|
||||
getWsid : function() {
|
||||
return $("#teamId").val();
|
||||
},
|
||||
getSid : function() {
|
||||
return $("#sid").val();
|
||||
},
|
||||
openRowDataAdd : function() {
|
||||
var obj = $("#grid1Content").find("input[type=checkbox][group]");
|
||||
var group = obj.attr("group");
|
||||
var url = "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_publisher_add_home&wsid=" + $("#wsId").val()
|
||||
+ "&teamId=" + $("#teamId").val();
|
||||
createDlg = FrmDialog.open({
|
||||
width : 500,
|
||||
height : 420,
|
||||
title : "新增发布流程",
|
||||
url : url,
|
||||
id : "createDialog",
|
||||
buttons : [ {
|
||||
text : "确定",
|
||||
cls : "blue",
|
||||
handler : function() {
|
||||
var dialogFrm = createDlg.win();
|
||||
var nodes = dialogFrm.getCheckedNode();
|
||||
CoEProcessPublish.publishAddContent(nodes);
|
||||
CoEProcessPublish.savePublishAddData(nodes);
|
||||
FrmDialog.close();
|
||||
}
|
||||
}, {
|
||||
text : "取消",
|
||||
handler : function() {
|
||||
FrmDialog.close();
|
||||
}
|
||||
} ]
|
||||
});
|
||||
},
|
||||
openRowDataChange : function() {
|
||||
var obj = $("#grid1Content").find("input[type=checkbox][group]");
|
||||
var group = obj.attr("group");
|
||||
var url = "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_publisher_change_home&wsid=" + $("#wsId").val()
|
||||
+ "&teamId=" + $("#teamId").val();
|
||||
createDlg = FrmDialog.open({
|
||||
width : 500,
|
||||
height : 420,
|
||||
title : "变更申请",
|
||||
url : url,
|
||||
id : "createDialog",
|
||||
buttons : [ {
|
||||
text : "确定",
|
||||
cls : "blue",
|
||||
handler : function() {
|
||||
var dialogFrm = createDlg.win();
|
||||
var nodes = dialogFrm.getCheckedNode();
|
||||
CoEProcessPublish.savePublishChangeData(nodes);
|
||||
FrmDialog.close();
|
||||
}
|
||||
}, {
|
||||
text : "取消",
|
||||
handler : function() {
|
||||
FrmDialog.close();
|
||||
}
|
||||
} ]
|
||||
});
|
||||
},
|
||||
openRowDataStop : function() {
|
||||
var obj = $("#grid1Content").find("input[type=checkbox][group]");
|
||||
var group = obj.attr("group");
|
||||
var url = "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_publisher_stop_home&wsid=" + $("#wsId").val()
|
||||
+ "&teamId=" + $("#teamId").val();
|
||||
createDlg = FrmDialog.open({
|
||||
width : 500,
|
||||
height : 420,
|
||||
title : "停用申请",
|
||||
url : url,
|
||||
id : "createDialog",
|
||||
buttons : [ {
|
||||
text : "确定",
|
||||
cls : "blue",
|
||||
handler : function() {
|
||||
var dialogFrm = createDlg.win();
|
||||
var nodes = dialogFrm.getCheckedNode();
|
||||
CoEProcessPublish.savePublishStopData(nodes);
|
||||
FrmDialog.close();
|
||||
}
|
||||
}, {
|
||||
text : "取消",
|
||||
handler : function() {
|
||||
FrmDialog.close();
|
||||
}
|
||||
} ]
|
||||
});
|
||||
},
|
||||
savePublishAddData : function(nodes) {
|
||||
if (nodes == undefined || nodes.length == 0)
|
||||
return;
|
||||
var url = "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_publish_add_save_data";
|
||||
var formItemDefId = $("#grid1Content").find("table[id^=GridContent]").attr("id");
|
||||
formItemDefId = formItemDefId.substring(12, formItemDefId.length);
|
||||
var params = {
|
||||
processInstId : $("#processInstId").val(),
|
||||
openState : $("#openState").val(),
|
||||
currentPage : $("#currentPage").val(),
|
||||
formData : JSON.stringify(nodes),
|
||||
formItemDefId : formItemDefId,
|
||||
isCreate : true,
|
||||
taskInstId: $("#taskInstId").val()
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
window.top.$.simpleAlert(msg.msg, "ok", 2000);
|
||||
} else {
|
||||
window.top.$.simpleAlert("保存失败", "info", 2000);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
savePublishChangeData : function(nodes) {
|
||||
if (nodes == undefined || nodes.length == 0)
|
||||
return;
|
||||
var url = "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_publish_change_save_data";
|
||||
var formItemDefId = $("#changePublishTab2").find("table[id^=GridContent]").attr("id");
|
||||
formItemDefId = formItemDefId.substring(12, formItemDefId.length);
|
||||
var params = {
|
||||
processInstId : $("#processInstId").val(),
|
||||
openState : $("#openState").val(),
|
||||
currentPage : $("#currentPage").val(),
|
||||
formData : JSON.stringify(nodes),
|
||||
formItemDefId : formItemDefId,
|
||||
isCreate : true,
|
||||
taskInstId: $("#taskInstId").val()
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
window.top.$.simpleAlert(msg.msg, "ok", 2000);
|
||||
} else {
|
||||
window.top.$.simpleAlert("保存失败", "info", 2000);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
savePublishStopData : function(nodes) {
|
||||
if (nodes == undefined || nodes.length == 0)
|
||||
return;
|
||||
var url = "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_publish_stop_save_data";
|
||||
var formItemDefId = $("#stopPublishTab3").find("table[id^=GridContent]").attr("id");
|
||||
formItemDefId = formItemDefId.substring(12, formItemDefId.length);
|
||||
var params = {
|
||||
processInstId : $("#processInstId").val(),
|
||||
openState : $("#openState").val(),
|
||||
currentPage : $("#currentPage").val(),
|
||||
formData : JSON.stringify(nodes),
|
||||
formItemDefId : formItemDefId,
|
||||
isCreate : true,
|
||||
taskInstId: $("#taskInstId").val()
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
window.top.$.simpleAlert(msg.msg, "ok", 2000);
|
||||
} else {
|
||||
window.top.$.simpleAlert("保存失败", "info", 2000);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
publishAddContent : function(nodes) {
|
||||
$("#coePublisAddBody").empty();
|
||||
var order = 0;
|
||||
for (var index = 0; index < nodes.length; index++) {
|
||||
var nodeObj = nodes[index];
|
||||
if (nodeObj.id.length > 16) {
|
||||
order++;
|
||||
var hrefUrl = "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&uuid="
|
||||
+ nodeObj.id + "&openType=0&openAppType=1";
|
||||
var content = '<tr><td align="center">'
|
||||
+ order
|
||||
+ '</td><td align="center"><input class="awsui-checkbox" for="ck2" type="checkbox"></td><td align="left" width="100">'
|
||||
+ nodeObj.fileType
|
||||
+ '</td><td align="left" width="100"><a href="'
|
||||
+ hrefUrl
|
||||
+ '" target="_blank">'
|
||||
+ nodeObj.name
|
||||
+ '</a></td><td align="center" width="100">'
|
||||
+ nodeObj.fileVersion
|
||||
+ '</td><td align="left" width="150"><input type="text" style=" width: 100%;border-left:0px;border-bottom:1px;border-style:solid; border-bottom:thick #00;border-right:0px;border-top:0px;" /></td></tr>';
|
||||
$("#coePublisAddBody").append(content);
|
||||
}
|
||||
}
|
||||
},
|
||||
loadPublishAddContent : function(jsonArr) {
|
||||
$("#coePublisAddBody").empty();
|
||||
var order = 0;
|
||||
var content="";
|
||||
for (var index = 0; index < jsonArr.length; index++) {
|
||||
var nodeObj = jsonArr[index];
|
||||
if (nodeObj.ID.length > 16) {
|
||||
order++;
|
||||
var hrefUrl = "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&uuid="
|
||||
+ nodeObj.PUBLISHFILEID + "&openType=0&openAppType=1";
|
||||
content += '<tr><td align="center">'
|
||||
+ order
|
||||
+ '</td><td align="center"><input value="'+nodeObj.ID+'" type="checkbox"></td><td align="left" width="100">'
|
||||
+ nodeObj.PUBLISTHTYPE
|
||||
+ '</td><td align="left" ><a href="'
|
||||
+ hrefUrl
|
||||
+ '" target="_blank">'
|
||||
+ nodeObj.PUBLISHFILENAME
|
||||
+ '</a></td><td align="center">'
|
||||
+ nodeObj.PUBLISHVERSION
|
||||
+ '</td><td align="left" ><input type="text" style=" width: 100%;border-left:0px;border-bottom:1px;border-style:solid; border-bottom:thick #00;border-right:0px;border-top:0px;" /></td></tr>';
|
||||
//alert(content)
|
||||
}
|
||||
}
|
||||
$("#coePublisAddBody").append(content);
|
||||
},
|
||||
loadPublishChangeContent : function(jsonArr) {
|
||||
$("#coePublisChangeBody").empty();
|
||||
var order = 0;
|
||||
var content="";
|
||||
for (var index = 0; index < jsonArr.length; index++) {
|
||||
var nodeObj = jsonArr[index];
|
||||
if (nodeObj.ID.length > 16) {
|
||||
order++;
|
||||
var hrefUrl = "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&uuid="
|
||||
+ nodeObj.CHANGEFILEID + "&openType=0&openAppType=1";
|
||||
content += '<tr><td align="center">'
|
||||
+ order
|
||||
+ '</td><td align="center"><input value="'+nodeObj.ID+'" type="checkbox"></td><td align="left" width="100">'
|
||||
+ nodeObj.CHANGETYPE
|
||||
+ '</td><td align="left" ><a href="'
|
||||
+ hrefUrl
|
||||
+ '" target="_blank">'
|
||||
+ nodeObj.CHANGEFILENAME
|
||||
+ '</a></td><td align="center">'
|
||||
+ nodeObj.CHANGEDVERSION
|
||||
+ '</td><td align="left" ><input type="text" style=" width: 100%;border-left:0px;border-bottom:1px;border-style:solid; border-bottom:thick #00;border-right:0px;border-top:0px;" /></td></tr>';
|
||||
//alert(content)
|
||||
}
|
||||
}
|
||||
$("#coePublisChangeBody").append(content);
|
||||
},
|
||||
loadPublishStopContent : function(jsonArr) {
|
||||
$("#coePublisStopBody").empty();
|
||||
var order = 0;
|
||||
var content="";
|
||||
for (var index = 0; index < jsonArr.length; index++) {
|
||||
var nodeObj = jsonArr[index];
|
||||
if (nodeObj.ID.length > 16) {
|
||||
order++;
|
||||
var hrefUrl = "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&uuid="
|
||||
+ nodeObj.STOPFILEID + "&openType=0&openAppType=1";
|
||||
content += '<tr><td align="center">'
|
||||
+ order
|
||||
+ '</td><td align="center"><input value="'+nodeObj.ID+'" type="checkbox"></td><td align="left" width="100">'
|
||||
+ nodeObj.STOPTYPE
|
||||
+ '</td><td align="left" ><a href="'
|
||||
+ hrefUrl
|
||||
+ '" target="_blank">'
|
||||
+ nodeObj.STOPFILENAME
|
||||
+ '</a></td><td align="center">'
|
||||
+ nodeObj.STOPVERSION
|
||||
+ '</td><td align="left" ><input type="text" style=" width: 100%;border-left:0px;border-bottom:1px;border-style:solid; border-bottom:thick #00;border-right:0px;border-top:0px;" /></td></tr>';
|
||||
//alert(content)
|
||||
}
|
||||
}
|
||||
$("#coePublisStopBody").append(content);
|
||||
},
|
||||
loadPublishAddData:function (){
|
||||
var url = "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_publish_add_show_data";
|
||||
var params = {
|
||||
processInstId : $("#processInstId").val(),
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
CoEProcessPublish.loadPublishAddContent(msg.data);
|
||||
} else {
|
||||
window.top.$.simpleAlert("保存失败", "info", 2000);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
loadPublishChangeData:function (){
|
||||
var url = "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_publish_change_show_data";
|
||||
var params = {
|
||||
processInstId : $("#processInstId").val(),
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
// CoEProcessPublish.loadPublishAddContent(msg.data);
|
||||
} else {
|
||||
window.top.$.simpleAlert("保存失败", "info", 2000);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
loadPublishStopData:function (){
|
||||
var url = "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_publish_stop_show_data";
|
||||
var params = {
|
||||
processInstId : $("#processInstId").val(),
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
//CoEProcessPublish.loadPublishAddContent(msg.data);
|
||||
} else {
|
||||
window.top.$.simpleAlert("保存失败", "info", 2000);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
getTeamId : function() {
|
||||
return $("#teamId").val();
|
||||
},
|
||||
getWsid : function() {
|
||||
return $("#teamId").val();
|
||||
},
|
||||
getSid : function() {
|
||||
return $("#sid").val();
|
||||
},
|
||||
openRowDataAdd : function() {
|
||||
var obj = $("#grid1Content").find("input[type=checkbox][group]");
|
||||
var group = obj.attr("group");
|
||||
var url = "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_publisher_add_home&wsid=" + $("#wsId").val()
|
||||
+ "&teamId=" + $("#teamId").val();
|
||||
createDlg = FrmDialog.open({
|
||||
width : 500,
|
||||
height : 420,
|
||||
title : "新增发布流程",
|
||||
url : url,
|
||||
id : "createDialog",
|
||||
buttons : [ {
|
||||
text : "确定",
|
||||
cls : "blue",
|
||||
handler : function() {
|
||||
var dialogFrm = createDlg.win();
|
||||
var nodes = dialogFrm.getCheckedNode();
|
||||
CoEProcessPublish.publishAddContent(nodes);
|
||||
CoEProcessPublish.savePublishAddData(nodes);
|
||||
FrmDialog.close();
|
||||
}
|
||||
}, {
|
||||
text : "取消",
|
||||
handler : function() {
|
||||
FrmDialog.close();
|
||||
}
|
||||
} ]
|
||||
});
|
||||
},
|
||||
openRowDataChange : function() {
|
||||
var obj = $("#grid1Content").find("input[type=checkbox][group]");
|
||||
var group = obj.attr("group");
|
||||
var url = "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_publisher_change_home&wsid=" + $("#wsId").val()
|
||||
+ "&teamId=" + $("#teamId").val();
|
||||
createDlg = FrmDialog.open({
|
||||
width : 500,
|
||||
height : 420,
|
||||
title : "变更申请",
|
||||
url : url,
|
||||
id : "createDialog",
|
||||
buttons : [ {
|
||||
text : "确定",
|
||||
cls : "blue",
|
||||
handler : function() {
|
||||
var dialogFrm = createDlg.win();
|
||||
var nodes = dialogFrm.getCheckedNode();
|
||||
CoEProcessPublish.savePublishChangeData(nodes);
|
||||
FrmDialog.close();
|
||||
}
|
||||
}, {
|
||||
text : "取消",
|
||||
handler : function() {
|
||||
FrmDialog.close();
|
||||
}
|
||||
} ]
|
||||
});
|
||||
},
|
||||
openRowDataStop : function() {
|
||||
var obj = $("#grid1Content").find("input[type=checkbox][group]");
|
||||
var group = obj.attr("group");
|
||||
var url = "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_publisher_stop_home&wsid=" + $("#wsId").val()
|
||||
+ "&teamId=" + $("#teamId").val();
|
||||
createDlg = FrmDialog.open({
|
||||
width : 500,
|
||||
height : 420,
|
||||
title : "停用申请",
|
||||
url : url,
|
||||
id : "createDialog",
|
||||
buttons : [ {
|
||||
text : "确定",
|
||||
cls : "blue",
|
||||
handler : function() {
|
||||
var dialogFrm = createDlg.win();
|
||||
var nodes = dialogFrm.getCheckedNode();
|
||||
CoEProcessPublish.savePublishStopData(nodes);
|
||||
FrmDialog.close();
|
||||
}
|
||||
}, {
|
||||
text : "取消",
|
||||
handler : function() {
|
||||
FrmDialog.close();
|
||||
}
|
||||
} ]
|
||||
});
|
||||
},
|
||||
savePublishAddData : function(nodes) {
|
||||
if (nodes == undefined || nodes.length == 0)
|
||||
return;
|
||||
var url = "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_publish_add_save_data";
|
||||
var formItemDefId = $("#grid1Content").find("table[id^=GridContent]").attr("id");
|
||||
formItemDefId = formItemDefId.substring(12, formItemDefId.length);
|
||||
var params = {
|
||||
processInstId : $("#processInstId").val(),
|
||||
openState : $("#openState").val(),
|
||||
currentPage : $("#currentPage").val(),
|
||||
formData : JSON.stringify(nodes),
|
||||
formItemDefId : formItemDefId,
|
||||
isCreate : true,
|
||||
taskInstId: $("#taskInstId").val()
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
window.top.$.simpleAlert(msg.msg, "ok", 2000);
|
||||
} else {
|
||||
window.top.$.simpleAlert("保存失败", "info", 2000);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
savePublishChangeData : function(nodes) {
|
||||
if (nodes == undefined || nodes.length == 0)
|
||||
return;
|
||||
var url = "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_publish_change_save_data";
|
||||
var formItemDefId = $("#changePublishTab2").find("table[id^=GridContent]").attr("id");
|
||||
formItemDefId = formItemDefId.substring(12, formItemDefId.length);
|
||||
var params = {
|
||||
processInstId : $("#processInstId").val(),
|
||||
openState : $("#openState").val(),
|
||||
currentPage : $("#currentPage").val(),
|
||||
formData : JSON.stringify(nodes),
|
||||
formItemDefId : formItemDefId,
|
||||
isCreate : true,
|
||||
taskInstId: $("#taskInstId").val()
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
window.top.$.simpleAlert(msg.msg, "ok", 2000);
|
||||
} else {
|
||||
window.top.$.simpleAlert("保存失败", "info", 2000);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
savePublishStopData : function(nodes) {
|
||||
if (nodes == undefined || nodes.length == 0)
|
||||
return;
|
||||
var url = "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_publish_stop_save_data";
|
||||
var formItemDefId = $("#stopPublishTab3").find("table[id^=GridContent]").attr("id");
|
||||
formItemDefId = formItemDefId.substring(12, formItemDefId.length);
|
||||
var params = {
|
||||
processInstId : $("#processInstId").val(),
|
||||
openState : $("#openState").val(),
|
||||
currentPage : $("#currentPage").val(),
|
||||
formData : JSON.stringify(nodes),
|
||||
formItemDefId : formItemDefId,
|
||||
isCreate : true,
|
||||
taskInstId: $("#taskInstId").val()
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
window.top.$.simpleAlert(msg.msg, "ok", 2000);
|
||||
} else {
|
||||
window.top.$.simpleAlert("保存失败", "info", 2000);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
publishAddContent : function(nodes) {
|
||||
$("#coePublisAddBody").empty();
|
||||
var order = 0;
|
||||
for (var index = 0; index < nodes.length; index++) {
|
||||
var nodeObj = nodes[index];
|
||||
if (nodeObj.id.length > 16) {
|
||||
order++;
|
||||
var hrefUrl = "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&uuid="
|
||||
+ nodeObj.id + "&openType=0&openAppType=1";
|
||||
var content = '<tr><td align="center">'
|
||||
+ order
|
||||
+ '</td><td align="center"><input class="awsui-checkbox" for="ck2" type="checkbox"></td><td align="left" width="100">'
|
||||
+ nodeObj.fileType
|
||||
+ '</td><td align="left" width="100"><a href="'
|
||||
+ hrefUrl
|
||||
+ '" target="_blank">'
|
||||
+ nodeObj.name
|
||||
+ '</a></td><td align="center" width="100">'
|
||||
+ nodeObj.fileVersion
|
||||
+ '</td><td align="left" width="150"><input type="text" style=" width: 100%;border-left:0px;border-bottom:1px;border-style:solid; border-bottom:thick #00;border-right:0px;border-top:0px;" /></td></tr>';
|
||||
$("#coePublisAddBody").append(content);
|
||||
}
|
||||
}
|
||||
},
|
||||
loadPublishAddContent : function(jsonArr) {
|
||||
$("#coePublisAddBody").empty();
|
||||
var order = 0;
|
||||
var content="";
|
||||
for (var index = 0; index < jsonArr.length; index++) {
|
||||
var nodeObj = jsonArr[index];
|
||||
if (nodeObj.ID.length > 16) {
|
||||
order++;
|
||||
var hrefUrl = "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&uuid="
|
||||
+ nodeObj.PUBLISHFILEID + "&openType=0&openAppType=1";
|
||||
content += '<tr><td align="center">'
|
||||
+ order
|
||||
+ '</td><td align="center"><input value="'+nodeObj.ID+'" type="checkbox"></td><td align="left" width="100">'
|
||||
+ nodeObj.PUBLISTHTYPE
|
||||
+ '</td><td align="left" ><a href="'
|
||||
+ hrefUrl
|
||||
+ '" target="_blank">'
|
||||
+ nodeObj.PUBLISHFILENAME
|
||||
+ '</a></td><td align="center">'
|
||||
+ nodeObj.PUBLISHVERSION
|
||||
+ '</td><td align="left" ><input type="text" style=" width: 100%;border-left:0px;border-bottom:1px;border-style:solid; border-bottom:thick #00;border-right:0px;border-top:0px;" /></td></tr>';
|
||||
//alert(content)
|
||||
}
|
||||
}
|
||||
$("#coePublisAddBody").append(content);
|
||||
},
|
||||
loadPublishChangeContent : function(jsonArr) {
|
||||
$("#coePublisChangeBody").empty();
|
||||
var order = 0;
|
||||
var content="";
|
||||
for (var index = 0; index < jsonArr.length; index++) {
|
||||
var nodeObj = jsonArr[index];
|
||||
if (nodeObj.ID.length > 16) {
|
||||
order++;
|
||||
var hrefUrl = "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&uuid="
|
||||
+ nodeObj.CHANGEFILEID + "&openType=0&openAppType=1";
|
||||
content += '<tr><td align="center">'
|
||||
+ order
|
||||
+ '</td><td align="center"><input value="'+nodeObj.ID+'" type="checkbox"></td><td align="left" width="100">'
|
||||
+ nodeObj.CHANGETYPE
|
||||
+ '</td><td align="left" ><a href="'
|
||||
+ hrefUrl
|
||||
+ '" target="_blank">'
|
||||
+ nodeObj.CHANGEFILENAME
|
||||
+ '</a></td><td align="center">'
|
||||
+ nodeObj.CHANGEDVERSION
|
||||
+ '</td><td align="left" ><input type="text" style=" width: 100%;border-left:0px;border-bottom:1px;border-style:solid; border-bottom:thick #00;border-right:0px;border-top:0px;" /></td></tr>';
|
||||
//alert(content)
|
||||
}
|
||||
}
|
||||
$("#coePublisChangeBody").append(content);
|
||||
},
|
||||
loadPublishStopContent : function(jsonArr) {
|
||||
$("#coePublisStopBody").empty();
|
||||
var order = 0;
|
||||
var content="";
|
||||
for (var index = 0; index < jsonArr.length; index++) {
|
||||
var nodeObj = jsonArr[index];
|
||||
if (nodeObj.ID.length > 16) {
|
||||
order++;
|
||||
var hrefUrl = "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&uuid="
|
||||
+ nodeObj.STOPFILEID + "&openType=0&openAppType=1";
|
||||
content += '<tr><td align="center">'
|
||||
+ order
|
||||
+ '</td><td align="center"><input value="'+nodeObj.ID+'" type="checkbox"></td><td align="left" width="100">'
|
||||
+ nodeObj.STOPTYPE
|
||||
+ '</td><td align="left" ><a href="'
|
||||
+ hrefUrl
|
||||
+ '" target="_blank">'
|
||||
+ nodeObj.STOPFILENAME
|
||||
+ '</a></td><td align="center">'
|
||||
+ nodeObj.STOPVERSION
|
||||
+ '</td><td align="left" ><input type="text" style=" width: 100%;border-left:0px;border-bottom:1px;border-style:solid; border-bottom:thick #00;border-right:0px;border-top:0px;" /></td></tr>';
|
||||
//alert(content)
|
||||
}
|
||||
}
|
||||
$("#coePublisStopBody").append(content);
|
||||
},
|
||||
loadPublishAddData:function (){
|
||||
var url = "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_publish_add_show_data";
|
||||
var params = {
|
||||
processInstId : $("#processInstId").val(),
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
CoEProcessPublish.loadPublishAddContent(msg.data);
|
||||
} else {
|
||||
window.top.$.simpleAlert("保存失败", "info", 2000);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
loadPublishChangeData:function (){
|
||||
var url = "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_publish_change_show_data";
|
||||
var params = {
|
||||
processInstId : $("#processInstId").val(),
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
// CoEProcessPublish.loadPublishAddContent(msg.data);
|
||||
} else {
|
||||
window.top.$.simpleAlert("保存失败", "info", 2000);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
loadPublishStopData:function (){
|
||||
var url = "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal_publish_stop_show_data";
|
||||
var params = {
|
||||
processInstId : $("#processInstId").val(),
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
//CoEProcessPublish.loadPublishAddContent(msg.data);
|
||||
} else {
|
||||
window.top.$.simpleAlert("保存失败", "info", 2000);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
@ -2,135 +2,135 @@ var repositoryTree;
|
||||
var navtab;
|
||||
|
||||
$(document).ready(function(){
|
||||
initTree();
|
||||
|
||||
navtab = awsui.tabs.init($("#awsui-tabs"),{
|
||||
contentPanel:$("#awsui-tabs-content"),
|
||||
height:30,
|
||||
noborder:true
|
||||
});
|
||||
var setting = {
|
||||
item : {
|
||||
index : "main-index",
|
||||
title : "发布历史"
|
||||
},
|
||||
contextMenu : false,
|
||||
close : false
|
||||
};
|
||||
navtab.addTab(setting);
|
||||
initTree();
|
||||
|
||||
navtab = awsui.tabs.init($("#awsui-tabs"),{
|
||||
contentPanel:$("#awsui-tabs-content"),
|
||||
height:30,
|
||||
noborder:true
|
||||
});
|
||||
var setting = {
|
||||
item : {
|
||||
index : "main-index",
|
||||
title : "发布历史"
|
||||
},
|
||||
contextMenu : false,
|
||||
close : false
|
||||
};
|
||||
navtab.addTab(setting);
|
||||
});
|
||||
|
||||
function initTree() {
|
||||
$("#tree").empty();
|
||||
|
||||
var setting = getSetting();
|
||||
setting.dataModel = {
|
||||
data:wsTreeData
|
||||
};
|
||||
repositoryTree = awsui.tree.init($("#tree"), setting);
|
||||
$("#tree").empty();
|
||||
|
||||
var setting = getSetting();
|
||||
setting.dataModel = {
|
||||
data:wsTreeData
|
||||
};
|
||||
repositoryTree = awsui.tree.init($("#tree"), setting);
|
||||
}
|
||||
|
||||
function getSetting() {
|
||||
var setting = {
|
||||
dblClickToExpand:true,
|
||||
autoHeight:true,
|
||||
event : {
|
||||
onClick : clickNode,
|
||||
beforeExpand : loadData
|
||||
}
|
||||
};
|
||||
|
||||
return setting;
|
||||
var setting = {
|
||||
dblClickToExpand:true,
|
||||
autoHeight:true,
|
||||
event : {
|
||||
onClick : clickNode,
|
||||
beforeExpand : loadData
|
||||
}
|
||||
};
|
||||
|
||||
return setting;
|
||||
}
|
||||
|
||||
function loadData(treeNode) {
|
||||
if (treeNode.ws && !repositoryTree.existsChildren(treeNode.id)) {
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal.publisher_client_treedata&wsId=" + treeNode.id
|
||||
+ "&roleId=" + $("#roleId").val() + "&wsName=" + treeNode.wsName,
|
||||
success : function(msg) {
|
||||
var data = eval('(' + msg + ')').msg;
|
||||
if (data != null && data.length != 0) {
|
||||
repositoryTree.buildTree(data);
|
||||
|
||||
var obj = $("a[tbindex=" + treeNode.id + "]");
|
||||
repositoryTree.expandNode(obj);
|
||||
repositoryTree.changeRootIcon(obj);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
if (treeNode.ws && !repositoryTree.existsChildren(treeNode.id)) {
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal.publisher_client_treedata&wsId=" + treeNode.id
|
||||
+ "&roleId=" + $("#roleId").val() + "&wsName=" + treeNode.wsName,
|
||||
success : function(msg) {
|
||||
var data = eval('(' + msg + ')').msg;
|
||||
if (data != null && data.length != 0) {
|
||||
repositoryTree.buildTree(data);
|
||||
|
||||
var obj = $("a[tbindex=" + treeNode.id + "]");
|
||||
repositoryTree.expandNode(obj);
|
||||
repositoryTree.changeRootIcon(obj);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function clickNode(treeNode){
|
||||
if (treeNode.method && treeNode.method != "default") {
|
||||
var obj = {
|
||||
id : treeNode.id,
|
||||
title : treeNode.name,
|
||||
processDefId : treeNode.processDefId
|
||||
}
|
||||
openTab(obj);
|
||||
}
|
||||
if (treeNode.method && treeNode.method != "default") {
|
||||
var obj = {
|
||||
id : treeNode.id,
|
||||
title : treeNode.name,
|
||||
processDefId : treeNode.processDefId
|
||||
}
|
||||
openTab(obj);
|
||||
}
|
||||
}
|
||||
|
||||
function openTab(obj) {
|
||||
var id = obj.id;
|
||||
var title = obj.title;
|
||||
var processDefId = obj.processDefId;
|
||||
var url = "./w?sid=" + encodeURIComponent($("#sid").val()) + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer_viewer"
|
||||
+ "&uuid=" + id + "&openType=0&processDefId=" + processDefId + "&openAppType=1&dockDisplay=" + dockDisplay;
|
||||
var setting = {
|
||||
item : {
|
||||
index : id,
|
||||
title : title
|
||||
},
|
||||
contextMenu : true,
|
||||
contextMenuTarget : "contextMenu1",
|
||||
close : true
|
||||
};
|
||||
if (navtab.existsTab(id)) {
|
||||
navtab.focusTab(id);
|
||||
} else {
|
||||
var html = $("<iframe frameborder='0' id='" + id + "' index='" + id + "' openApp='publisher'"
|
||||
+ " height='100%' width='100%' class='awsui-layout-iframe' src='"
|
||||
+ url + "'></iframe>").appendTo(navtab.tabContentPanel);
|
||||
navtab.addTab(setting);
|
||||
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal.publisher_client_update_viewcount&repositoryId=" + id,
|
||||
success : function(msg) {
|
||||
}
|
||||
});
|
||||
}
|
||||
var id = obj.id;
|
||||
var title = obj.title;
|
||||
var processDefId = obj.processDefId;
|
||||
var url = "./w?sid=" + encodeURIComponent($("#sid").val()) + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer_viewer"
|
||||
+ "&uuid=" + id + "&openType=0&processDefId=" + processDefId + "&openAppType=1&dockDisplay=" + dockDisplay;
|
||||
var setting = {
|
||||
item : {
|
||||
index : id,
|
||||
title : title
|
||||
},
|
||||
contextMenu : true,
|
||||
contextMenuTarget : "contextMenu1",
|
||||
close : true
|
||||
};
|
||||
if (navtab.existsTab(id)) {
|
||||
navtab.focusTab(id);
|
||||
} else {
|
||||
var html = $("<iframe frameborder='0' id='" + id + "' index='" + id + "' openApp='publisher'"
|
||||
+ " height='100%' width='100%' class='awsui-layout-iframe' src='"
|
||||
+ url + "'></iframe>").appendTo(navtab.tabContentPanel);
|
||||
navtab.addTab(setting);
|
||||
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal.publisher_client_update_viewcount&repositoryId=" + id,
|
||||
success : function(msg) {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**********************************************查询***********************************************/
|
||||
function auto_Move(obj) {
|
||||
obj = obj[0];
|
||||
$(".aotuDivcontenr").css({"backgroundImage":"none","color":"black","fontWeight":"normal"});
|
||||
obj.style.backgroundImage="url('../apps/com.actionsoft.apps.coe.pal/img/pl/link.png')";
|
||||
autoIndex=obj.id.substring(obj.id.length-1);
|
||||
obj.style.color="white";
|
||||
obj = obj[0];
|
||||
$(".aotuDivcontenr").css({"backgroundImage":"none","color":"black","fontWeight":"normal"});
|
||||
obj.style.backgroundImage="url('../apps/com.actionsoft.apps.coe.pal/img/pl/link.png')";
|
||||
autoIndex=obj.id.substring(obj.id.length-1);
|
||||
obj.style.color="white";
|
||||
}
|
||||
|
||||
function auto_Out(obj) {
|
||||
obj = obj[0];
|
||||
obj.style.backgroundImage="";
|
||||
obj.style.color="black";
|
||||
obj.style.fontWeight="normal";
|
||||
obj = obj[0];
|
||||
obj.style.backgroundImage="";
|
||||
obj.style.color="black";
|
||||
obj.style.fontWeight="normal";
|
||||
}
|
||||
|
||||
function auto_Clike(obj) {
|
||||
var obj = {
|
||||
id : obj.attr("plId"),
|
||||
title : obj.attr("plName"),
|
||||
url : "./w?sid=" + encodeURIComponent($("#sid").val()) + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer_viewer"
|
||||
+ "&uuid=" + obj.attr("plId") + "&openType=0&openAppType=1"
|
||||
}
|
||||
openTab(obj);
|
||||
var obj = {
|
||||
id : obj.attr("plId"),
|
||||
title : obj.attr("plName"),
|
||||
url : "./w?sid=" + encodeURIComponent($("#sid").val()) + "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer_viewer"
|
||||
+ "&uuid=" + obj.attr("plId") + "&openType=0&openAppType=1"
|
||||
}
|
||||
openTab(obj);
|
||||
}
|
||||
|
||||
|
||||
@ -3,68 +3,68 @@ var count=20;
|
||||
var times=1;
|
||||
var loaded = true;
|
||||
function addData(){
|
||||
var top = $("#main_add").offset().top;
|
||||
if(loaded && ($(window).scrollTop() + $(window).height() >= top)){
|
||||
$("#more_info").show().html("数据加载中...");
|
||||
setTimeout(function(){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal.publisher_client_main_more&time=" + times,
|
||||
success: function(msg){
|
||||
var data = eval('(' + msg + ')').msg;
|
||||
if(data.length == 0){
|
||||
$("#more_info").show().text("没有更多数据");
|
||||
loaded=false;
|
||||
setTimeout(function(){$("#more_info").hide()}, 2000);
|
||||
}else if(data.length > 0){
|
||||
addEffect(data);
|
||||
times++;
|
||||
$("#more_info").show().html("下拉加载更多...");
|
||||
}
|
||||
var top = $("#main_add").offset().top;
|
||||
if(loaded && ($(window).scrollTop() + $(window).height() >= top)){
|
||||
$("#more_info").show().html("数据加载中...");
|
||||
setTimeout(function(){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal.publisher_client_main_more&time=" + times,
|
||||
success: function(msg){
|
||||
var data = eval('(' + msg + ')').msg;
|
||||
if(data.length == 0){
|
||||
$("#more_info").show().text("没有更多数据");
|
||||
loaded=false;
|
||||
setTimeout(function(){$("#more_info").hide()}, 2000);
|
||||
}else if(data.length > 0){
|
||||
addEffect(data);
|
||||
times++;
|
||||
$("#more_info").show().html("下拉加载更多...");
|
||||
}
|
||||
});
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function addEffect(data) {
|
||||
var html = "";
|
||||
for (var i in data) {
|
||||
var obj = data[i];
|
||||
if (obj.year != year) {
|
||||
$("#main_div").append("<div class=\"year\"><h2><a href=\"#\">" + obj.year + "年<i></i></a></h2><div class=\"list\"><ul></ul></div></div>");
|
||||
year = obj.year;
|
||||
}
|
||||
html += " <li class=\"cls highlight\">";
|
||||
if (obj.pid != pid) {
|
||||
html += " <p class=\"date\">" + obj.date + "</p>";
|
||||
pid = obj.pid;
|
||||
} else {
|
||||
html += " <p class=\"date\"> </p>";
|
||||
}
|
||||
html += " <p class=\"intro\">" + obj.intro + "</p>"
|
||||
+ " <p class=\"version\"> </p>"
|
||||
+ " <div class=\"more\">"
|
||||
+ " <div class=\"margin_10 thumbnail\">"
|
||||
+ " <img src=\"" + obj.image + "\" style=\"height: 150px; width:150px;\">"
|
||||
+ " </div>"
|
||||
+ " <div style=\"width: 200px; display: inline-block; vertical-align: top; margin-left: 20px;\">" + obj.desc + "</div>"
|
||||
+ " </div>"
|
||||
+ " </li>";
|
||||
}
|
||||
$("#main_div ul:last").append(html);
|
||||
var html = "";
|
||||
for (var i in data) {
|
||||
var obj = data[i];
|
||||
if (obj.year != year) {
|
||||
$("#main_div").append("<div class=\"year\"><h2><a href=\"#\">" + obj.year + "年<i></i></a></h2><div class=\"list\"><ul></ul></div></div>");
|
||||
year = obj.year;
|
||||
}
|
||||
html += " <li class=\"cls highlight\">";
|
||||
if (obj.pid != pid) {
|
||||
html += " <p class=\"date\">" + obj.date + "</p>";
|
||||
pid = obj.pid;
|
||||
} else {
|
||||
html += " <p class=\"date\"> </p>";
|
||||
}
|
||||
html += " <p class=\"intro\">" + obj.intro + "</p>"
|
||||
+ " <p class=\"version\"> </p>"
|
||||
+ " <div class=\"more\">"
|
||||
+ " <div class=\"margin_10 thumbnail\">"
|
||||
+ " <img src=\"" + obj.image + "\" style=\"height: 150px; width:150px;\">"
|
||||
+ " </div>"
|
||||
+ " <div style=\"width: 200px; display: inline-block; vertical-align: top; margin-left: 20px;\">" + obj.desc + "</div>"
|
||||
+ " </div>"
|
||||
+ " </li>";
|
||||
}
|
||||
$("#main_div ul:last").append(html);
|
||||
}
|
||||
|
||||
//点击流程缩略图,打开tab
|
||||
function clickImage(id) {
|
||||
var treeNode = parent.repositoryTree.getNodeById(id);
|
||||
if(treeNode != undefined) {
|
||||
var obj = {
|
||||
id : treeNode.id,
|
||||
title : treeNode.name,
|
||||
processDefId : treeNode.processDefId
|
||||
}
|
||||
parent.openTab(obj);
|
||||
}
|
||||
var treeNode = parent.repositoryTree.getNodeById(id);
|
||||
if(treeNode != undefined) {
|
||||
var obj = {
|
||||
id : treeNode.id,
|
||||
title : treeNode.name,
|
||||
processDefId : treeNode.processDefId
|
||||
}
|
||||
parent.openTab(obj);
|
||||
}
|
||||
}
|
||||
@ -1,250 +1,250 @@
|
||||
$(function () {
|
||||
String.prototype.replaceAll = function(oldStr, newStr) {
|
||||
return this.replace(new RegExp(oldStr,"gm"),newStr);
|
||||
}
|
||||
initWs();
|
||||
tabAttr.initTab();
|
||||
$(window).trigger('resize');
|
||||
tabAttr.clickTab();
|
||||
String.prototype.replaceAll = function(oldStr, newStr) {
|
||||
return this.replace(new RegExp(oldStr,"gm"),newStr);
|
||||
}
|
||||
initWs();
|
||||
tabAttr.initTab();
|
||||
$(window).trigger('resize');
|
||||
tabAttr.clickTab();
|
||||
// 检索关键词
|
||||
$('#searchText').off('keypress').on('keypress', function (e) {
|
||||
if (e.which === 13) {
|
||||
$('#search').click();
|
||||
$('#search').click();
|
||||
}
|
||||
});
|
||||
|
||||
$('body').click(function(e) {
|
||||
var target = $(e.target);
|
||||
if(!target.is('#changeWsDialog *')) {
|
||||
if ( $('#changeWsDialog').is(':visible') ) {
|
||||
$('#changeWsDialog').hide();
|
||||
}
|
||||
if ( $('#changeWsDialog').is(':visible') ) {
|
||||
$('#changeWsDialog').hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(window).resize(function(){
|
||||
initMain();
|
||||
var totalWidth = $(window).width();
|
||||
$("#main-body [class*=width_]").each(function(){
|
||||
var className = $(this).attr("class");
|
||||
var percent = parseInt(className.substr(6, 2));
|
||||
$(this).css({"width" : (totalWidth*percent/100) - 34});
|
||||
});
|
||||
initMain();
|
||||
var totalWidth = $(window).width();
|
||||
$("#main-body [class*=width_]").each(function(){
|
||||
var className = $(this).attr("class");
|
||||
var percent = parseInt(className.substr(6, 2));
|
||||
$(this).css({"width" : (totalWidth*percent/100) - 34});
|
||||
});
|
||||
})
|
||||
|
||||
function initMain() {
|
||||
$('#main').width($(window).width());
|
||||
$('#main').height($(window).height() - $('.head-wrap').outerHeight(true) - $('.dimension-meta-bar').outerHeight(true));
|
||||
$('#main-body').height($('#main').height() - $('#main-head').height());
|
||||
$('#main-body-body').height($('#main-body').height() - $('#main-body-head').height());
|
||||
$('#main').width($(window).width());
|
||||
$('#main').height($(window).height() - $('.head-wrap').outerHeight(true) - $('.dimension-meta-bar').outerHeight(true));
|
||||
$('#main-body').height($('#main').height() - $('#main-head').height());
|
||||
$('#main-body-body').height($('#main-body').height() - $('#main-body-head').height());
|
||||
}
|
||||
|
||||
//分页设置
|
||||
var page = {
|
||||
pageSetting : {
|
||||
pageLimit : 20, // 每页条数
|
||||
start:0//起始条数
|
||||
},
|
||||
initPageSetting : function () {
|
||||
page.pageSetting.start = 0;
|
||||
}
|
||||
pageSetting : {
|
||||
pageLimit : 20, // 每页条数
|
||||
start:0//起始条数
|
||||
},
|
||||
initPageSetting : function () {
|
||||
page.pageSetting.start = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function initWs() {
|
||||
$("#wsChangeArea").off("mouseenter").on("mouseenter", function () {
|
||||
$('#changeWsDialog').show();
|
||||
$('#changeWsDialog').show();
|
||||
}).off("mouseleave").on("mouseleave", function () {
|
||||
$('#changeWsDialog').hide();
|
||||
$('#changeWsDialog').hide();
|
||||
});
|
||||
var html = "<li>";
|
||||
var html = "<li>";
|
||||
if (ws.length > 0) {
|
||||
$('#wsId').val(ws[0].id);
|
||||
$('#wsNameDiv').text(ws[0].text);
|
||||
for (var i = 0; i < ws.length; i++) {
|
||||
html += '<ul style="text-overflow: ellipsis;overflow:hidden;width:200px;white-space: nowrap;" data-id="' + ws[i].id + '" name="' + ws[i].text + '" onclick="changeWs(this);" onMouseOver="this.style.color=\'#C2C2C2\'" onMouseOut="this.style.color=\'#000\'">' + ws[i].text + '</ul>';
|
||||
if(ws[i].initDisplay == "1") { //initDisplay:是否是初始化的流程资产库"0"-不是;"1"-是
|
||||
$('#wsId').val(ws[i].id);
|
||||
$('#wsNameDiv').text(ws[i].text);
|
||||
}
|
||||
}
|
||||
$('#wsId').val(ws[0].id);
|
||||
$('#wsNameDiv').text(ws[0].text);
|
||||
for (var i = 0; i < ws.length; i++) {
|
||||
html += '<ul style="text-overflow: ellipsis;overflow:hidden;width:200px;white-space: nowrap;" data-id="' + ws[i].id + '" name="' + ws[i].text + '" onclick="changeWs(this);" onMouseOver="this.style.color=\'#C2C2C2\'" onMouseOut="this.style.color=\'#000\'">' + ws[i].text + '</ul>';
|
||||
if(ws[i].initDisplay == "1") { //initDisplay:是否是初始化的流程资产库"0"-不是;"1"-是
|
||||
$('#wsId').val(ws[i].id);
|
||||
$('#wsNameDiv').text(ws[i].text);
|
||||
}
|
||||
}
|
||||
}
|
||||
html += "</li>";
|
||||
$('#changeWsDialog').html(html);
|
||||
html += "</li>";
|
||||
$('#changeWsDialog').html(html);
|
||||
}
|
||||
|
||||
function changeWs(obj) {
|
||||
$('#wsNameDiv').text($(obj).attr('name'));
|
||||
$('#changeWsDialog').hide();
|
||||
if($('#wsId').val() == $(obj).attr('data-id')) return;
|
||||
$('#wsId').val($(obj).attr('data-id'));
|
||||
search();
|
||||
$('#wsNameDiv').text($(obj).attr('name'));
|
||||
$('#changeWsDialog').hide();
|
||||
if($('#wsId').val() == $(obj).attr('data-id')) return;
|
||||
$('#wsId').val($(obj).attr('data-id'));
|
||||
search();
|
||||
}
|
||||
|
||||
|
||||
function initHtml() {
|
||||
$('#innerTable').empty();
|
||||
// $('#noAnyOne').hide();
|
||||
$('#noContent').hide();
|
||||
$('#noSearch').hide();
|
||||
$('#data-more').show();
|
||||
$('#moreDataButton').show();
|
||||
$('#noDataAlert').hide();
|
||||
$('#innerTable').empty();
|
||||
// $('#noAnyOne').hide();
|
||||
$('#noContent').hide();
|
||||
$('#noSearch').hide();
|
||||
$('#data-more').show();
|
||||
$('#moreDataButton').show();
|
||||
$('#noDataAlert').hide();
|
||||
}
|
||||
|
||||
// 搜索
|
||||
function search() {
|
||||
initHtml();
|
||||
tabAttr.searchText = $('#searchText').val();
|
||||
page.initPageSetting();
|
||||
var searchWsId = $('#wsId').val();
|
||||
if (searchWsId == '') {
|
||||
$('#data-more').children().hide();
|
||||
// $('#noAnyOne').show();
|
||||
$('#noContent').show();
|
||||
$('#noSearch').hide();
|
||||
$.simpleAlert('没有相应的资产库权限,无法搜索相关数据', 'info');
|
||||
return;
|
||||
}
|
||||
var param = {
|
||||
searchText : tabAttr.searchText,
|
||||
searchType : tabAttr.current,
|
||||
searchWsId : searchWsId,
|
||||
start : page.pageSetting.start,
|
||||
pageLimit : page.pageSetting.pageLimit
|
||||
}
|
||||
getMoreData(param);
|
||||
initHtml();
|
||||
tabAttr.searchText = $('#searchText').val();
|
||||
page.initPageSetting();
|
||||
var searchWsId = $('#wsId').val();
|
||||
if (searchWsId == '') {
|
||||
$('#data-more').children().hide();
|
||||
// $('#noAnyOne').show();
|
||||
$('#noContent').show();
|
||||
$('#noSearch').hide();
|
||||
$.simpleAlert('没有相应的资产库权限,无法搜索相关数据', 'info');
|
||||
return;
|
||||
}
|
||||
var param = {
|
||||
searchText : tabAttr.searchText,
|
||||
searchType : tabAttr.current,
|
||||
searchWsId : searchWsId,
|
||||
start : page.pageSetting.start,
|
||||
pageLimit : page.pageSetting.pageLimit
|
||||
}
|
||||
getMoreData(param);
|
||||
}
|
||||
|
||||
// 获取数据
|
||||
function getMoreData(param) {
|
||||
if (param == undefined) {
|
||||
var searchWsId = $('#wsId').val();
|
||||
param = {
|
||||
searchText : tabAttr.searchText,
|
||||
searchType : tabAttr.current,
|
||||
searchWsId : searchWsId,
|
||||
start : page.pageSetting.start,
|
||||
pageLimit : page.pageSetting.pageLimit
|
||||
}
|
||||
}
|
||||
$.simpleAlert('正在加载数据', 'loading');
|
||||
// 获取更多数据
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_data&sid=" + encodeURIComponent(sid),
|
||||
dataType : "JSON",
|
||||
data : param,
|
||||
success : function(r) {
|
||||
$.simpleAlert('close');
|
||||
if (r.result == 'ok') {
|
||||
var count = r.data.count;
|
||||
var data = r.data.data;
|
||||
var start = page.pageSetting.start + 1;
|
||||
var html = "";
|
||||
for(var i = 0; i < data.length; i++) {
|
||||
data[i].name = '<font>' + data[i].name + '</font>';
|
||||
data[i].name = tabAttr.searchText.trim() == "" ? data[i].name : data[i].name.replaceAll(tabAttr.searchText.trim(), '<div style="background-color:yellow;display:inline-block;">' + tabAttr.searchText.trim() + '</div>');
|
||||
html += '<tr>';
|
||||
html += '<td class="width_4 number">' + (start++) + '</td>';
|
||||
html += '<td class="width_30">';
|
||||
html += '<span style="display:inline-block;padding-bottom:4px;">';
|
||||
if (data[i].isPublish == 0) {// 未发布
|
||||
html += '<a href ="javascript:return false;" onclick="return false;" style="cursor: default;font-size:14px;color:#666;">' + data[i].name + '</a>';
|
||||
} else {
|
||||
html += '<a id="' + data[i].id + '" href="javascript:void(0);" style="font-size:14px;color:#0000ee;" onclick="openPortal(\'' + sid + '\', \'' + data[i].id + '\', \''+ data[i].taskId +'\');">' + data[i].name + '</a>';
|
||||
}
|
||||
html += '</span><br>';
|
||||
html += '<span style="font-size:12px;color:#808080">' + data[i].path + '</span>';
|
||||
html += '</td>';
|
||||
if (param == undefined) {
|
||||
var searchWsId = $('#wsId').val();
|
||||
param = {
|
||||
searchText : tabAttr.searchText,
|
||||
searchType : tabAttr.current,
|
||||
searchWsId : searchWsId,
|
||||
start : page.pageSetting.start,
|
||||
pageLimit : page.pageSetting.pageLimit
|
||||
}
|
||||
}
|
||||
$.simpleAlert('正在加载数据', 'loading');
|
||||
// 获取更多数据
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_data&sid=" + encodeURIComponent(sid),
|
||||
dataType : "JSON",
|
||||
data : param,
|
||||
success : function(r) {
|
||||
$.simpleAlert('close');
|
||||
if (r.result == 'ok') {
|
||||
var count = r.data.count;
|
||||
var data = r.data.data;
|
||||
var start = page.pageSetting.start + 1;
|
||||
var html = "";
|
||||
for(var i = 0; i < data.length; i++) {
|
||||
data[i].name = '<font>' + data[i].name + '</font>';
|
||||
data[i].name = tabAttr.searchText.trim() == "" ? data[i].name : data[i].name.replaceAll(tabAttr.searchText.trim(), '<div style="background-color:yellow;display:inline-block;">' + tabAttr.searchText.trim() + '</div>');
|
||||
html += '<tr>';
|
||||
html += '<td class="width_4 number">' + (start++) + '</td>';
|
||||
html += '<td class="width_30">';
|
||||
html += '<span style="display:inline-block;padding-bottom:4px;">';
|
||||
if (data[i].isPublish == 0) {// 未发布
|
||||
html += '<a href ="javascript:return false;" onclick="return false;" style="cursor: default;font-size:14px;color:#666;">' + data[i].name + '</a>';
|
||||
} else {
|
||||
html += '<a id="' + data[i].id + '" href="javascript:void(0);" style="font-size:14px;color:#0000ee;" onclick="openPortal(\'' + sid + '\', \'' + data[i].id + '\', \''+ data[i].taskId +'\');">' + data[i].name + '</a>';
|
||||
}
|
||||
html += '</span><br>';
|
||||
html += '<span style="font-size:12px;color:#808080">' + data[i].path + '</span>';
|
||||
html += '</td>';
|
||||
// html += '<td class="width_19 userName">';
|
||||
// html += '<span style="font-size:14px;"><b>' + data[i].user + '</b></span><br><span style="font-size:12px;">' + data[i].dept + '</span>';
|
||||
html += '<td class="width_30 userName"><span style="display:inline-block;padding-bottom:4px;font-size:14px;">' + data[i].user + '</span><br>';
|
||||
html += '<span style="font-size:12px;color:#808080">' + data[i].dept + '</span>';
|
||||
html += '</td>';
|
||||
html += '<td class="width_10 date">' + transferDateFormat(data[i].date) + '</td>';
|
||||
html += '<td class="width_7 version">V' + data[i].version + '.0</td>';
|
||||
var desc = data[i].desc;
|
||||
if(desc == '') {
|
||||
desc = "无";
|
||||
}
|
||||
html += '<td class="width_30">' + desc + '</td>';
|
||||
html += '</tr>';
|
||||
}
|
||||
if (data.length != 0) {
|
||||
$('#innerTable').append(html);
|
||||
$(window).trigger('resize');
|
||||
}
|
||||
page.pageSetting.start = page.pageSetting.start + data.length;
|
||||
if (count == 0) {// 最后一页
|
||||
$('#data-more').children().hide();
|
||||
if(page.pageSetting.start == 0) {// 没有数据
|
||||
if(tabAttr.searchText.trim() == '') {
|
||||
$('#noSearch').hide();
|
||||
$('#noContent').show();
|
||||
} else {
|
||||
$('#noContent').hide();
|
||||
$('#noSearch').show();
|
||||
}
|
||||
// $('#noAnyOne').show();
|
||||
} else {
|
||||
$('#noDataAlert').show();
|
||||
}
|
||||
} else {
|
||||
if (count < page.pageSetting.pageLimit) {
|
||||
$('#data-more').children().hide();
|
||||
$('#noDataAlert').show();
|
||||
}
|
||||
// $.simpleAlert('加载成功', 'ok');
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert('加载失败', 'error');
|
||||
}
|
||||
}
|
||||
})
|
||||
html += '<td class="width_30 userName"><span style="display:inline-block;padding-bottom:4px;font-size:14px;">' + data[i].user + '</span><br>';
|
||||
html += '<span style="font-size:12px;color:#808080">' + data[i].dept + '</span>';
|
||||
html += '</td>';
|
||||
html += '<td class="width_10 date">' + transferDateFormat(data[i].date) + '</td>';
|
||||
html += '<td class="width_7 version">V' + data[i].version + '.0</td>';
|
||||
var desc = data[i].desc;
|
||||
if(desc == '') {
|
||||
desc = "无";
|
||||
}
|
||||
html += '<td class="width_30">' + desc + '</td>';
|
||||
html += '</tr>';
|
||||
}
|
||||
if (data.length != 0) {
|
||||
$('#innerTable').append(html);
|
||||
$(window).trigger('resize');
|
||||
}
|
||||
page.pageSetting.start = page.pageSetting.start + data.length;
|
||||
if (count == 0) {// 最后一页
|
||||
$('#data-more').children().hide();
|
||||
if(page.pageSetting.start == 0) {// 没有数据
|
||||
if(tabAttr.searchText.trim() == '') {
|
||||
$('#noSearch').hide();
|
||||
$('#noContent').show();
|
||||
} else {
|
||||
$('#noContent').hide();
|
||||
$('#noSearch').show();
|
||||
}
|
||||
// $('#noAnyOne').show();
|
||||
} else {
|
||||
$('#noDataAlert').show();
|
||||
}
|
||||
} else {
|
||||
if (count < page.pageSetting.pageLimit) {
|
||||
$('#data-more').children().hide();
|
||||
$('#noDataAlert').show();
|
||||
}
|
||||
// $.simpleAlert('加载成功', 'ok');
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert('加载失败', 'error');
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 页签栏
|
||||
var tabAttr = {
|
||||
current : 'all',
|
||||
searchText : '',
|
||||
initTab : function() {
|
||||
tabAttr.current = type;
|
||||
tabAttr.searchText = text;
|
||||
$('#searchText').val(tabAttr.searchText);
|
||||
var html = '';
|
||||
for(var i = 0; i < scope.length; i++) {
|
||||
var curr = scope[i];
|
||||
if (curr.type == 'all') {
|
||||
html += '<div id="'+ curr.type +'" name="first" class="dimension unselect-first" onclick="tabAttr.clickTab(this);" style="display:inline-block;">';
|
||||
html += '<span>'+ curr.name +'</span>';
|
||||
html += '</div>';
|
||||
} else {
|
||||
html += '<div class="meta unselect-other" name="other" id="' + curr.type + '" onclick="tabAttr.clickTab(this);">';
|
||||
html += curr.name;
|
||||
html += '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
$('#tab').html(html);
|
||||
},
|
||||
clickTab : function(obj) {
|
||||
// 背景色重置
|
||||
$('#tab').find('div[name=first]').removeClass('select-first');
|
||||
$('#tab').find('div[name=other]').removeClass('select-other');
|
||||
$('#tab').find('div[name=first]').addClass('unselect-first');
|
||||
$('#tab').find('div[name=other]').addClass('unselect-other');
|
||||
if (obj) {
|
||||
// 设置当前tab
|
||||
tabAttr.current = $(obj).attr('id');
|
||||
}
|
||||
if (tabAttr.current == 'all') {
|
||||
$('#' + tabAttr.current).removeClass('unselect-first');
|
||||
$('#' + tabAttr.current).addClass('select-first');
|
||||
} else {
|
||||
$('#' + tabAttr.current).removeClass('unselect-other');
|
||||
$('#' + tabAttr.current).addClass('select-other');
|
||||
}
|
||||
search();
|
||||
}
|
||||
current : 'all',
|
||||
searchText : '',
|
||||
initTab : function() {
|
||||
tabAttr.current = type;
|
||||
tabAttr.searchText = text;
|
||||
$('#searchText').val(tabAttr.searchText);
|
||||
var html = '';
|
||||
for(var i = 0; i < scope.length; i++) {
|
||||
var curr = scope[i];
|
||||
if (curr.type == 'all') {
|
||||
html += '<div id="'+ curr.type +'" name="first" class="dimension unselect-first" onclick="tabAttr.clickTab(this);" style="display:inline-block;">';
|
||||
html += '<span>'+ curr.name +'</span>';
|
||||
html += '</div>';
|
||||
} else {
|
||||
html += '<div class="meta unselect-other" name="other" id="' + curr.type + '" onclick="tabAttr.clickTab(this);">';
|
||||
html += curr.name;
|
||||
html += '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
$('#tab').html(html);
|
||||
},
|
||||
clickTab : function(obj) {
|
||||
// 背景色重置
|
||||
$('#tab').find('div[name=first]').removeClass('select-first');
|
||||
$('#tab').find('div[name=other]').removeClass('select-other');
|
||||
$('#tab').find('div[name=first]').addClass('unselect-first');
|
||||
$('#tab').find('div[name=other]').addClass('unselect-other');
|
||||
if (obj) {
|
||||
// 设置当前tab
|
||||
tabAttr.current = $(obj).attr('id');
|
||||
}
|
||||
if (tabAttr.current == 'all') {
|
||||
$('#' + tabAttr.current).removeClass('unselect-first');
|
||||
$('#' + tabAttr.current).addClass('select-first');
|
||||
} else {
|
||||
$('#' + tabAttr.current).removeClass('unselect-other');
|
||||
$('#' + tabAttr.current).addClass('select-other');
|
||||
}
|
||||
search();
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -2,153 +2,153 @@ var orgTree; //标准化体系资产库树
|
||||
var tab2Inited = false; //tab2是否已经初始化
|
||||
|
||||
function loadMainPublishListData(obj) {
|
||||
$("#main_type_select span").removeClass("current");
|
||||
obj.addClass("current");
|
||||
var publishType = obj.attr("publishType");
|
||||
if (publishType == undefined) {
|
||||
publishType = "";
|
||||
}
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_publish_list",
|
||||
data: {
|
||||
start: 0,
|
||||
type: publishType
|
||||
},
|
||||
success : function(msg) {
|
||||
var datas = msg.data.results;
|
||||
var html = "";
|
||||
var pid = "";
|
||||
for (var i in datas) {
|
||||
if (pid != datas[i].pid) {
|
||||
pid = datas[i].pid;
|
||||
if (html != "") {
|
||||
html += ' </div>'
|
||||
+ '</div>';
|
||||
}
|
||||
var color = "green";
|
||||
var publishType = "新发布";
|
||||
if (datas[i].type == "N") {
|
||||
color = "green";
|
||||
publishType = "新发布";
|
||||
} else if (datas[i].type == "C") {
|
||||
color = "blue";
|
||||
publishType = "变更";
|
||||
} else if (datas[i].type == "S") {
|
||||
color = "red";
|
||||
publishType = "停用";
|
||||
}
|
||||
html += '<div style="padding: 10px 0 15px 0; border-bottom: solid 1px rgb(230, 230, 230);">'
|
||||
+ ' <div style="display: inline-block;background-color: rgb(59, 171, 216);color: rgb(255, 255, 255);padding: 5px;vertical-align: middle;">' + datas[i].date + '</div>'
|
||||
+ ' <div style="margin-top: 5px; color: rgb(128, 128, 128);">' + datas[i].pDesc + '</div>'
|
||||
+ ' <div style="margin-top: 15px; font-size: 15px;">';
|
||||
}
|
||||
|
||||
var color = "green";
|
||||
var publishType = "新发布";
|
||||
if (datas[i].type == "N") {
|
||||
color = "green";
|
||||
publishType = "新发布";
|
||||
} else if (datas[i].type == "C") {
|
||||
color = "blue";
|
||||
publishType = "变更";
|
||||
} else if (datas[i].type == "S") {
|
||||
color = "red";
|
||||
publishType = "停用";
|
||||
}
|
||||
var onclick = "";
|
||||
var cursorStyle = "";
|
||||
if (modelIds.indexOf(datas[i].repositoryId) > -1) {
|
||||
if (datas[i].method == "default") {
|
||||
onclick = 'javascript:$.simpleAlert(\'不支持文件目录打开\',\'info\');';
|
||||
} else {
|
||||
onclick = 'openTab({id:\'' + datas[i].repositoryId + '\', title:\'' + datas[i].repositoryName + '\'})';
|
||||
}
|
||||
cursorStyle = "cursor: pointer;";
|
||||
}
|
||||
html += ' <ul class="main_ul">'
|
||||
+ ' <li>'
|
||||
+ ' <span class="text-' + color + '" onclick="' + onclick + '" style="' + cursorStyle + '">' + datas[i].repositoryName + datas[i].repositoryVersion + '</span><span style="color: #808080; float: right; font-size: 14px;">' + publishType + '</span>'
|
||||
+ ' </li>'
|
||||
+ ' </ul>';
|
||||
|
||||
}
|
||||
if (html != "") {
|
||||
html += ' </div>'
|
||||
+ '</div>';
|
||||
}
|
||||
$("#main_publish_content").html(html);
|
||||
}
|
||||
});
|
||||
$("#main_type_select span").removeClass("current");
|
||||
obj.addClass("current");
|
||||
var publishType = obj.attr("publishType");
|
||||
if (publishType == undefined) {
|
||||
publishType = "";
|
||||
}
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_publish_list",
|
||||
data: {
|
||||
start: 0,
|
||||
type: publishType
|
||||
},
|
||||
success : function(msg) {
|
||||
var datas = msg.data.results;
|
||||
var html = "";
|
||||
var pid = "";
|
||||
for (var i in datas) {
|
||||
if (pid != datas[i].pid) {
|
||||
pid = datas[i].pid;
|
||||
if (html != "") {
|
||||
html += ' </div>'
|
||||
+ '</div>';
|
||||
}
|
||||
var color = "green";
|
||||
var publishType = "新发布";
|
||||
if (datas[i].type == "N") {
|
||||
color = "green";
|
||||
publishType = "新发布";
|
||||
} else if (datas[i].type == "C") {
|
||||
color = "blue";
|
||||
publishType = "变更";
|
||||
} else if (datas[i].type == "S") {
|
||||
color = "red";
|
||||
publishType = "停用";
|
||||
}
|
||||
html += '<div style="padding: 10px 0 15px 0; border-bottom: solid 1px rgb(230, 230, 230);">'
|
||||
+ ' <div style="display: inline-block;background-color: rgb(59, 171, 216);color: rgb(255, 255, 255);padding: 5px;vertical-align: middle;">' + datas[i].date + '</div>'
|
||||
+ ' <div style="margin-top: 5px; color: rgb(128, 128, 128);">' + datas[i].pDesc + '</div>'
|
||||
+ ' <div style="margin-top: 15px; font-size: 15px;">';
|
||||
}
|
||||
|
||||
var color = "green";
|
||||
var publishType = "新发布";
|
||||
if (datas[i].type == "N") {
|
||||
color = "green";
|
||||
publishType = "新发布";
|
||||
} else if (datas[i].type == "C") {
|
||||
color = "blue";
|
||||
publishType = "变更";
|
||||
} else if (datas[i].type == "S") {
|
||||
color = "red";
|
||||
publishType = "停用";
|
||||
}
|
||||
var onclick = "";
|
||||
var cursorStyle = "";
|
||||
if (modelIds.indexOf(datas[i].repositoryId) > -1) {
|
||||
if (datas[i].method == "default") {
|
||||
onclick = 'javascript:$.simpleAlert(\'不支持文件目录打开\',\'info\');';
|
||||
} else {
|
||||
onclick = 'openTab({id:\'' + datas[i].repositoryId + '\', title:\'' + datas[i].repositoryName + '\'})';
|
||||
}
|
||||
cursorStyle = "cursor: pointer;";
|
||||
}
|
||||
html += ' <ul class="main_ul">'
|
||||
+ ' <li>'
|
||||
+ ' <span class="text-' + color + '" onclick="' + onclick + '" style="' + cursorStyle + '">' + datas[i].repositoryName + datas[i].repositoryVersion + '</span><span style="color: #808080; float: right; font-size: 14px;">' + publishType + '</span>'
|
||||
+ ' </li>'
|
||||
+ ' </ul>';
|
||||
|
||||
}
|
||||
if (html != "") {
|
||||
html += ' </div>'
|
||||
+ '</div>';
|
||||
}
|
||||
$("#main_publish_content").html(html);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function openTab(obj) {
|
||||
$("#content").hide();
|
||||
$("#extend_content").show();
|
||||
var dockOption = dockDisplay.replace(/"/g, '"');
|
||||
var id = obj.id;
|
||||
var title = obj.title;
|
||||
var processDefId = obj.processDefId;
|
||||
var url = './w?sid=' + encodeURIComponent($('#sid').val()) + '&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer_viewer'
|
||||
+ '&uuid=' + id + '&openType=0&processDefId=' + processDefId + '&openAppType=1&dockDisplay=' + dockOption;
|
||||
var setting = {
|
||||
item : {
|
||||
index : id,
|
||||
title : title
|
||||
},
|
||||
contextMenu : true,
|
||||
contextMenuTarget : "contextMenu1",
|
||||
close : true
|
||||
};
|
||||
if (navtab.existsTab(id)) {
|
||||
navtab.focusTab(id);
|
||||
} else {
|
||||
var html = $("<iframe allowfullscreen='true' webkitallowfullscreen='true' frameborder='0' id='" + id + "' index='" + id + "' openApp='publisher'"
|
||||
+ " height='100%' width='100%' class='awsui-layout-iframe' src='about:blank'></iframe>").appendTo(navtab.tabContentPanel);
|
||||
|
||||
var formHtml = '<form action="'+url+'" method="post" target="_self" id="postData_form">'
|
||||
+ ' <input id="filePerms" name="filePerms" type="hidden" value="'+modelIds+'">'
|
||||
+ '</form>';
|
||||
|
||||
document.getElementById(id).contentWindow.document.write(formHtml);
|
||||
|
||||
document.getElementById(id).contentWindow.document.getElementById('postData_form').submit();
|
||||
|
||||
navtab.addTab(setting);
|
||||
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal.publisher_client_update_viewcount&repositoryId=" + id,
|
||||
success : function(msg) {
|
||||
}
|
||||
});
|
||||
}
|
||||
$("#content").hide();
|
||||
$("#extend_content").show();
|
||||
var dockOption = dockDisplay.replace(/"/g, '"');
|
||||
var id = obj.id;
|
||||
var title = obj.title;
|
||||
var processDefId = obj.processDefId;
|
||||
var url = './w?sid=' + encodeURIComponent($('#sid').val()) + '&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer_viewer'
|
||||
+ '&uuid=' + id + '&openType=0&processDefId=' + processDefId + '&openAppType=1&dockDisplay=' + dockOption;
|
||||
var setting = {
|
||||
item : {
|
||||
index : id,
|
||||
title : title
|
||||
},
|
||||
contextMenu : true,
|
||||
contextMenuTarget : "contextMenu1",
|
||||
close : true
|
||||
};
|
||||
if (navtab.existsTab(id)) {
|
||||
navtab.focusTab(id);
|
||||
} else {
|
||||
var html = $("<iframe allowfullscreen='true' webkitallowfullscreen='true' frameborder='0' id='" + id + "' index='" + id + "' openApp='publisher'"
|
||||
+ " height='100%' width='100%' class='awsui-layout-iframe' src='about:blank'></iframe>").appendTo(navtab.tabContentPanel);
|
||||
|
||||
var formHtml = '<form action="'+url+'" method="post" target="_self" id="postData_form">'
|
||||
+ ' <input id="filePerms" name="filePerms" type="hidden" value="'+modelIds+'">'
|
||||
+ '</form>';
|
||||
|
||||
document.getElementById(id).contentWindow.document.write(formHtml);
|
||||
|
||||
document.getElementById(id).contentWindow.document.getElementById('postData_form').submit();
|
||||
|
||||
navtab.addTab(setting);
|
||||
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./w?sid=" + $("#sid").val()
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal.publisher_client_update_viewcount&repositoryId=" + id,
|
||||
success : function(msg) {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function openDesginerFromAttr(uuid, openType, plName, appId, processVersionId,
|
||||
isOpenDialog, shapeId) {
|
||||
var obj = {
|
||||
id: uuid,
|
||||
title: plName,
|
||||
processDefId: processVersionId
|
||||
}
|
||||
openTab(obj);
|
||||
isOpenDialog, shapeId) {
|
||||
var obj = {
|
||||
id: uuid,
|
||||
title: plName,
|
||||
processDefId: processVersionId
|
||||
}
|
||||
openTab(obj);
|
||||
}
|
||||
|
||||
//点击主标题
|
||||
function clickMainTab() {
|
||||
$("#extend_tabs .awsui-tabs-items.current").removeClass("current");
|
||||
$('#extend_content').hide();
|
||||
$('#content').show();
|
||||
$("#extend_tabs .awsui-tabs-items.current").removeClass("current");
|
||||
$('#extend_content').hide();
|
||||
$('#content').show();
|
||||
}
|
||||
|
||||
//初始化标准化体系tab中的内容
|
||||
function initTab2(tab, newTabId) {
|
||||
if (newTabId == "tab2" && !tab2Inited) {
|
||||
$("#tab2_iframe").attr("src", "./w?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_org_relation_page");
|
||||
|
||||
tab2Inited = true;
|
||||
}
|
||||
if (newTabId == "tab2" && !tab2Inited) {
|
||||
$("#tab2_iframe").attr("src", "./w?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_org_relation_page");
|
||||
|
||||
tab2Inited = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,335 +4,335 @@ var navtab;
|
||||
$(document).ready(function(){
|
||||
|
||||
$("#user").off("mouseenter").on("mouseenter", function () {
|
||||
$("#appviewport2-top-right-dialog").slideToggle("fast");
|
||||
$(".content-icons").toggleClass("up_black");
|
||||
$("#appviewport2-top-right-dialog").slideToggle("fast");
|
||||
$(".content-icons").toggleClass("up_black");
|
||||
}).off("mouseleave").on("mouseleave", function () {
|
||||
$('#appviewport2-top-right-dialog').hide();
|
||||
$("#userName_icon.content-icons").removeClass("up_black");
|
||||
$('#appviewport2-top-right-dialog').hide();
|
||||
$("#userName_icon.content-icons").removeClass("up_black");
|
||||
});
|
||||
|
||||
|
||||
$('#appviewport2-top-right-dialog, #userName, #userName_icon').click(function(e1){
|
||||
e1.stopPropagation(); // 阻止事件冒泡
|
||||
});
|
||||
|
||||
|
||||
$("#select_type span").on("click", function(){
|
||||
searchPublishList($(this));
|
||||
searchPublishList($(this));
|
||||
})
|
||||
|
||||
// 检索关键词
|
||||
|
||||
// 检索关键词
|
||||
$('#searchText').off('keypress').on('keypress', function (e) {
|
||||
if (e.which === 13) {
|
||||
$('#search').click();
|
||||
$('#search').click();
|
||||
}
|
||||
});
|
||||
|
||||
// 强制修改密码
|
||||
if (forceChangePwd) {
|
||||
modifyPwd();
|
||||
}
|
||||
// 如果不允许修改密码
|
||||
if (!isSecurityPwdChange) {
|
||||
$('#updatePwd').remove();
|
||||
}
|
||||
initWs();
|
||||
|
||||
// 强制修改密码
|
||||
if (forceChangePwd) {
|
||||
modifyPwd();
|
||||
}
|
||||
// 如果不允许修改密码
|
||||
if (!isSecurityPwdChange) {
|
||||
$('#updatePwd').remove();
|
||||
}
|
||||
initWs();
|
||||
});
|
||||
|
||||
// 初始化资产库
|
||||
function initWs() {
|
||||
$("#wsChangeArea").off("mouseenter").on("mouseenter", function () {
|
||||
$('#changeWsDialog').show();
|
||||
}).off("mouseleave").on("mouseleave", function () {
|
||||
$('#changeWsDialog').hide();
|
||||
});
|
||||
var html = "<li>";
|
||||
if (ws.length > 0) {
|
||||
$('#wsId').val(ws[0].id);
|
||||
$('#wsNameDiv').text(ws[0].text);
|
||||
for (var i = 0; i < ws.length; i++) {
|
||||
html += '<ul style="text-overflow: ellipsis;overflow:hidden;width:200px;white-space: nowrap;" data-id="' + ws[i].id + '" name="' + ws[i].text + '" onclick="changeWs(this);" onMouseOver="this.style.color=\'#C2C2C2\'" onMouseOut="this.style.color=\'#000\'">' + ws[i].text + '</ul>';
|
||||
if(ws[i].initDisplay == "1") { //initDisplay:是否是初始化的流程资产库"0"-不是;"1"-是
|
||||
$('#wsId').val(ws[i].id);
|
||||
$('#wsNameDiv').text(ws[i].text);
|
||||
}
|
||||
}
|
||||
}
|
||||
html += "</li>";
|
||||
$('#changeWsDialog').html(html);
|
||||
$("#wsChangeArea").off("mouseenter").on("mouseenter", function () {
|
||||
$('#changeWsDialog').show();
|
||||
}).off("mouseleave").on("mouseleave", function () {
|
||||
$('#changeWsDialog').hide();
|
||||
});
|
||||
var html = "<li>";
|
||||
if (ws.length > 0) {
|
||||
$('#wsId').val(ws[0].id);
|
||||
$('#wsNameDiv').text(ws[0].text);
|
||||
for (var i = 0; i < ws.length; i++) {
|
||||
html += '<ul style="text-overflow: ellipsis;overflow:hidden;width:200px;white-space: nowrap;" data-id="' + ws[i].id + '" name="' + ws[i].text + '" onclick="changeWs(this);" onMouseOver="this.style.color=\'#C2C2C2\'" onMouseOut="this.style.color=\'#000\'">' + ws[i].text + '</ul>';
|
||||
if(ws[i].initDisplay == "1") { //initDisplay:是否是初始化的流程资产库"0"-不是;"1"-是
|
||||
$('#wsId').val(ws[i].id);
|
||||
$('#wsNameDiv').text(ws[i].text);
|
||||
}
|
||||
}
|
||||
}
|
||||
html += "</li>";
|
||||
$('#changeWsDialog').html(html);
|
||||
}
|
||||
|
||||
function changeWs(obj) {
|
||||
$('#wsNameDiv').text($(obj).attr('name'));
|
||||
$('#changeWsDialog').hide();
|
||||
if($('#wsId').val() == $(obj).attr('data-id')) return;
|
||||
$('#wsId').val($(obj).attr('data-id'));
|
||||
var activeTab = $('#tabs').children('a.active').attr('tit');
|
||||
onchange('', activeTab);
|
||||
$('#wsNameDiv').text($(obj).attr('name'));
|
||||
$('#changeWsDialog').hide();
|
||||
if($('#wsId').val() == $(obj).attr('data-id')) return;
|
||||
$('#wsId').val($(obj).attr('data-id'));
|
||||
var activeTab = $('#tabs').children('a.active').attr('tit');
|
||||
onchange('', activeTab);
|
||||
}
|
||||
|
||||
|
||||
/********************************************门户其他操作*****************************************************/
|
||||
//修改密码
|
||||
function modifyPwd() {
|
||||
$('#modify_dialog').find('input').val('');
|
||||
$("#userName").click();
|
||||
$("#modify_dialog").dialog({
|
||||
width: 610,
|
||||
title: "修改登录口令",
|
||||
closable: false,
|
||||
buttons: [
|
||||
{text:'确定',cls:"blue",handler:function(){
|
||||
var oldPassword = $('#oldPassword').val();
|
||||
var password = $('#password').val();
|
||||
var confirmPassword = $('#confirmPassword').val();
|
||||
|
||||
if (oldPassword.trim() == "") {
|
||||
$.simpleAlert("[旧口令]不允许为空", "info");
|
||||
return;
|
||||
}
|
||||
if (password.trim() == "") {
|
||||
$.simpleAlert("[新口令]不允许为空", "info");
|
||||
return;
|
||||
}
|
||||
if (confirmPassword.trim() == "") {
|
||||
$.simpleAlert("[确认口令]不允许为空", "info");
|
||||
return;
|
||||
}
|
||||
if (oldPassword == password) {
|
||||
$.simpleAlert("新口令不能和旧口令相同", "info");
|
||||
return false;
|
||||
}
|
||||
if (password != confirmPassword) {
|
||||
$.simpleAlert("新口令和确认口令不一致", "info");
|
||||
return;
|
||||
}
|
||||
if (password.indexOf(" ") > -1) {
|
||||
$.simpleAlert("[新口令]不能包含空格", "info", 2000);
|
||||
return false;
|
||||
}
|
||||
if (confirmPassword.indexOf(" ") > -1) {
|
||||
$.simpleAlert("[确认口令]不能包含空格", "info", 2000);
|
||||
return false;
|
||||
}
|
||||
if (Loginpassword.validateUpdateLoginpassword(password, "[新口令]")) {
|
||||
return false;
|
||||
}
|
||||
var params={};
|
||||
params.sid=$("input[name='sid']").val();
|
||||
params.cmd="CLIENT_P_PERSON_CONFIG_PW_ISRIGHT";
|
||||
params.oldpwd=oldPassword;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "./w",
|
||||
data: params,
|
||||
success: function(msg){
|
||||
if(msg== '-1'){
|
||||
$.simpleAlert("旧口令输入错误,请重新输入", "error", 2000);
|
||||
return false;
|
||||
}
|
||||
|
||||
var maxLength = securityMaxPwdLength;
|
||||
if (length2(oldPassword) > maxLength||length2(password) > maxLength || length2(confirmPassword) > maxLength) {
|
||||
$.simpleAlert("口令长度不能超过" + maxLength + "位", "info", 2000);
|
||||
return false;
|
||||
}
|
||||
//增加口令长度判断,默认情况下关闭
|
||||
if (!checkPasswordLength(password, confirmPassword)) {
|
||||
return false;
|
||||
}
|
||||
//增加口令复杂度校验,默认情况下关闭
|
||||
if (!checkPasswordSecurity('password')) {
|
||||
return false;
|
||||
}
|
||||
var params={};
|
||||
params.sid=$("input[name='sid']").val();
|
||||
params.cmd="CLIENT_P_PERSON_CONFIG_PW_SAVE";
|
||||
params.oldpwd=oldPassword;
|
||||
params.newpwd=password;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "./w",
|
||||
data: params,
|
||||
success: function(msg){
|
||||
if(awsui.decode(msg)){
|
||||
var r=awsui.decode(msg);
|
||||
$.simpleAlert(r.msg, r.result, 2000, {callback:function(){
|
||||
if(r.result == 'ok'){
|
||||
$("#modify_dialog").dialog("close");
|
||||
}
|
||||
}});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
{text:'关闭',handler:function(){
|
||||
$("#modify_dialog").dialog('close');
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
$('#modify_dialog').find('input').val('');
|
||||
$("#userName").click();
|
||||
$("#modify_dialog").dialog({
|
||||
width: 610,
|
||||
title: "修改登录口令",
|
||||
closable: false,
|
||||
buttons: [
|
||||
{text:'确定',cls:"blue",handler:function(){
|
||||
var oldPassword = $('#oldPassword').val();
|
||||
var password = $('#password').val();
|
||||
var confirmPassword = $('#confirmPassword').val();
|
||||
|
||||
if (oldPassword.trim() == "") {
|
||||
$.simpleAlert("[旧口令]不允许为空", "info");
|
||||
return;
|
||||
}
|
||||
if (password.trim() == "") {
|
||||
$.simpleAlert("[新口令]不允许为空", "info");
|
||||
return;
|
||||
}
|
||||
if (confirmPassword.trim() == "") {
|
||||
$.simpleAlert("[确认口令]不允许为空", "info");
|
||||
return;
|
||||
}
|
||||
if (oldPassword == password) {
|
||||
$.simpleAlert("新口令不能和旧口令相同", "info");
|
||||
return false;
|
||||
}
|
||||
if (password != confirmPassword) {
|
||||
$.simpleAlert("新口令和确认口令不一致", "info");
|
||||
return;
|
||||
}
|
||||
if (password.indexOf(" ") > -1) {
|
||||
$.simpleAlert("[新口令]不能包含空格", "info", 2000);
|
||||
return false;
|
||||
}
|
||||
if (confirmPassword.indexOf(" ") > -1) {
|
||||
$.simpleAlert("[确认口令]不能包含空格", "info", 2000);
|
||||
return false;
|
||||
}
|
||||
if (Loginpassword.validateUpdateLoginpassword(password, "[新口令]")) {
|
||||
return false;
|
||||
}
|
||||
var params={};
|
||||
params.sid=$("input[name='sid']").val();
|
||||
params.cmd="CLIENT_P_PERSON_CONFIG_PW_ISRIGHT";
|
||||
params.oldpwd=oldPassword;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "./w",
|
||||
data: params,
|
||||
success: function(msg){
|
||||
if(msg== '-1'){
|
||||
$.simpleAlert("旧口令输入错误,请重新输入", "error", 2000);
|
||||
return false;
|
||||
}
|
||||
|
||||
var maxLength = securityMaxPwdLength;
|
||||
if (length2(oldPassword) > maxLength||length2(password) > maxLength || length2(confirmPassword) > maxLength) {
|
||||
$.simpleAlert("口令长度不能超过" + maxLength + "位", "info", 2000);
|
||||
return false;
|
||||
}
|
||||
//增加口令长度判断,默认情况下关闭
|
||||
if (!checkPasswordLength(password, confirmPassword)) {
|
||||
return false;
|
||||
}
|
||||
//增加口令复杂度校验,默认情况下关闭
|
||||
if (!checkPasswordSecurity('password')) {
|
||||
return false;
|
||||
}
|
||||
var params={};
|
||||
params.sid=$("input[name='sid']").val();
|
||||
params.cmd="CLIENT_P_PERSON_CONFIG_PW_SAVE";
|
||||
params.oldpwd=oldPassword;
|
||||
params.newpwd=password;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "./w",
|
||||
data: params,
|
||||
success: function(msg){
|
||||
if(awsui.decode(msg)){
|
||||
var r=awsui.decode(msg);
|
||||
$.simpleAlert(r.msg, r.result, 2000, {callback:function(){
|
||||
if(r.result == 'ok'){
|
||||
$("#modify_dialog").dialog("close");
|
||||
}
|
||||
}});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
{text:'关闭',handler:function(){
|
||||
$("#modify_dialog").dialog('close');
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
//切换到CoE
|
||||
function entryCoE() {
|
||||
var params = {};
|
||||
params.cmd = 'CLIENT_USER_BPMCLIENT_SID';
|
||||
params.type = 'COE';
|
||||
params.sid = $("#sid").val();
|
||||
document.frm.cmd.value = "com.actionsoft.apps.coe.pal_user_home_page";
|
||||
var newSid;
|
||||
awsui.ajax.request({
|
||||
type : "POST",
|
||||
url : "./jd",
|
||||
async : false,
|
||||
dataType : "json",
|
||||
data : params,
|
||||
success : function(data) {
|
||||
newSid = data.data.sid;
|
||||
if (newSid == undefined) {
|
||||
$.simpleAlert("获取SID不正确", "info");
|
||||
return;
|
||||
}
|
||||
document.frm.sid.value = newSid;
|
||||
document.frm.target = "_self";
|
||||
document.frm.submit();
|
||||
}
|
||||
});
|
||||
var params = {};
|
||||
params.cmd = 'CLIENT_USER_BPMCLIENT_SID';
|
||||
params.type = 'COE';
|
||||
params.sid = $("#sid").val();
|
||||
document.frm.cmd.value = "com.actionsoft.apps.coe.pal_user_home_page";
|
||||
var newSid;
|
||||
awsui.ajax.request({
|
||||
type : "POST",
|
||||
url : "./jd",
|
||||
async : false,
|
||||
dataType : "json",
|
||||
data : params,
|
||||
success : function(data) {
|
||||
newSid = data.data.sid;
|
||||
if (newSid == undefined) {
|
||||
$.simpleAlert("获取SID不正确", "info");
|
||||
return;
|
||||
}
|
||||
document.frm.sid.value = newSid;
|
||||
document.frm.target = "_self";
|
||||
document.frm.submit();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//参数设置
|
||||
function setting() {
|
||||
$("#userName").click();
|
||||
awsui.ajax.request({
|
||||
url : "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_setting_data",
|
||||
method : "POST",
|
||||
ok : function(r) {
|
||||
var data = r.data;
|
||||
$("#isComment").customSelect(data.isComment);
|
||||
$("#isPrint").customSelect(data.isPrint);
|
||||
$("#isViewAttribute").customSelect(data.isViewAttribute);
|
||||
$("#isViewHistory").customSelect(data.isViewHistory);
|
||||
$("#title").val(data.title);
|
||||
$("#fotter").val(data.fotter);
|
||||
|
||||
$("#setting_dialog").dialog({
|
||||
width: 500,
|
||||
title: "设置参数",
|
||||
buttons: [
|
||||
{text:'确定',cls:"blue",handler:function(){
|
||||
//门户标题
|
||||
var title = $("#title").val();
|
||||
if (title == "") {
|
||||
$.simpleAlert("[门户标题]不允许为空");
|
||||
return;
|
||||
}
|
||||
if (strlen(title) > 20) {
|
||||
$.simpleAlert("[门户标题]长度不允许超过20个字符");
|
||||
return;
|
||||
}
|
||||
//页底信息
|
||||
var fotter = $("#fotter").val();
|
||||
if (fotter == "") {
|
||||
$.simpleAlert("[页底信息]不允许为空");
|
||||
return;
|
||||
}
|
||||
if (strlen(fotter) > 40) {
|
||||
$.simpleAlert("[页底信息]长度不允许超过40个字符");
|
||||
return;
|
||||
}
|
||||
//允许留言
|
||||
var isComment = $("#isComment").val().trim();
|
||||
if (isComment == "") {
|
||||
$.simpleAlert("[允许留言]不允许为空");
|
||||
return;
|
||||
}
|
||||
if (isComment != "true" && isComment != "false") {
|
||||
$.simpleAlert("[允许留言]应该为'true'或'false'");
|
||||
return;
|
||||
}
|
||||
//允许打印
|
||||
var isPrint = $("#isPrint").val().trim();
|
||||
if (isPrint == "") {
|
||||
$.simpleAlert("[允许打印]不允许为空");
|
||||
return;
|
||||
}
|
||||
if (isPrint != "true" && isPrint != "false") {
|
||||
$.simpleAlert("[允许打印]应该为'true'或'false'");
|
||||
return;
|
||||
}
|
||||
//允许查看属性
|
||||
var isViewAttribute = $("#isViewAttribute").val().trim();
|
||||
if (isViewAttribute == "") {
|
||||
$.simpleAlert("[允许查看属性]不允许为空");
|
||||
return;
|
||||
}
|
||||
if (isViewAttribute != "true" && isViewAttribute != "false") {
|
||||
$.simpleAlert("[允许查看属性]应该为'true'或'false'");
|
||||
return;
|
||||
}
|
||||
//允许查看发布历史
|
||||
var isViewHistory = $("#isViewHistory").val().trim();
|
||||
if (isViewHistory == "") {
|
||||
$.simpleAlert("[允许查看发布历史]不允许为空");
|
||||
return;
|
||||
}
|
||||
if (isViewHistory != "true" && isViewHistory != "false") {
|
||||
$.simpleAlert("[允许查看发布历史]应该为'true'或'false'");
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "./jd?sid=" + encodeURIComponent($("#sid").val()) + "&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_setting",
|
||||
data: {
|
||||
title: title,
|
||||
fotter: fotter,
|
||||
isComment: isComment,
|
||||
isPrint: isPrint,
|
||||
isViewAttribute: isViewAttribute,
|
||||
isViewHistory: isViewHistory
|
||||
},
|
||||
success: function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
$.simpleAlert("修改成功", "ok", {callback:function(){
|
||||
$("#setting_dialog").dialog('close');
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$.simpleAlert(msg.msg, msg.result);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
{text:'关闭',handler:function(){
|
||||
$("#setting_dialog").dialog('close');
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
},
|
||||
err:function(r){
|
||||
}
|
||||
});
|
||||
|
||||
$("#userName").click();
|
||||
awsui.ajax.request({
|
||||
url : "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_setting_data",
|
||||
method : "POST",
|
||||
ok : function(r) {
|
||||
var data = r.data;
|
||||
$("#isComment").customSelect(data.isComment);
|
||||
$("#isPrint").customSelect(data.isPrint);
|
||||
$("#isViewAttribute").customSelect(data.isViewAttribute);
|
||||
$("#isViewHistory").customSelect(data.isViewHistory);
|
||||
$("#title").val(data.title);
|
||||
$("#fotter").val(data.fotter);
|
||||
|
||||
$("#setting_dialog").dialog({
|
||||
width: 500,
|
||||
title: "设置参数",
|
||||
buttons: [
|
||||
{text:'确定',cls:"blue",handler:function(){
|
||||
//门户标题
|
||||
var title = $("#title").val();
|
||||
if (title == "") {
|
||||
$.simpleAlert("[门户标题]不允许为空");
|
||||
return;
|
||||
}
|
||||
if (strlen(title) > 20) {
|
||||
$.simpleAlert("[门户标题]长度不允许超过20个字符");
|
||||
return;
|
||||
}
|
||||
//页底信息
|
||||
var fotter = $("#fotter").val();
|
||||
if (fotter == "") {
|
||||
$.simpleAlert("[页底信息]不允许为空");
|
||||
return;
|
||||
}
|
||||
if (strlen(fotter) > 40) {
|
||||
$.simpleAlert("[页底信息]长度不允许超过40个字符");
|
||||
return;
|
||||
}
|
||||
//允许留言
|
||||
var isComment = $("#isComment").val().trim();
|
||||
if (isComment == "") {
|
||||
$.simpleAlert("[允许留言]不允许为空");
|
||||
return;
|
||||
}
|
||||
if (isComment != "true" && isComment != "false") {
|
||||
$.simpleAlert("[允许留言]应该为'true'或'false'");
|
||||
return;
|
||||
}
|
||||
//允许打印
|
||||
var isPrint = $("#isPrint").val().trim();
|
||||
if (isPrint == "") {
|
||||
$.simpleAlert("[允许打印]不允许为空");
|
||||
return;
|
||||
}
|
||||
if (isPrint != "true" && isPrint != "false") {
|
||||
$.simpleAlert("[允许打印]应该为'true'或'false'");
|
||||
return;
|
||||
}
|
||||
//允许查看属性
|
||||
var isViewAttribute = $("#isViewAttribute").val().trim();
|
||||
if (isViewAttribute == "") {
|
||||
$.simpleAlert("[允许查看属性]不允许为空");
|
||||
return;
|
||||
}
|
||||
if (isViewAttribute != "true" && isViewAttribute != "false") {
|
||||
$.simpleAlert("[允许查看属性]应该为'true'或'false'");
|
||||
return;
|
||||
}
|
||||
//允许查看发布历史
|
||||
var isViewHistory = $("#isViewHistory").val().trim();
|
||||
if (isViewHistory == "") {
|
||||
$.simpleAlert("[允许查看发布历史]不允许为空");
|
||||
return;
|
||||
}
|
||||
if (isViewHistory != "true" && isViewHistory != "false") {
|
||||
$.simpleAlert("[允许查看发布历史]应该为'true'或'false'");
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "./jd?sid=" + encodeURIComponent($("#sid").val()) + "&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_setting",
|
||||
data: {
|
||||
title: title,
|
||||
fotter: fotter,
|
||||
isComment: isComment,
|
||||
isPrint: isPrint,
|
||||
isViewAttribute: isViewAttribute,
|
||||
isViewHistory: isViewHistory
|
||||
},
|
||||
success: function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
$.simpleAlert("修改成功", "ok", {callback:function(){
|
||||
$("#setting_dialog").dialog('close');
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$.simpleAlert(msg.msg, msg.result);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
{text:'关闭',handler:function(){
|
||||
$("#setting_dialog").dialog('close');
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
},
|
||||
err:function(r){
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//退出
|
||||
function logout() {
|
||||
$("#userName").click();
|
||||
var sid = $("#sid").val();
|
||||
$.confirm({'title': "提示",
|
||||
content: '确认离开系统吗?',
|
||||
onConfirm: function() {
|
||||
window.location.href = "./w?sid="+sid+'&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_logout';
|
||||
window.history = -1;
|
||||
}
|
||||
});
|
||||
$("#userName").click();
|
||||
var sid = $("#sid").val();
|
||||
$.confirm({'title': "提示",
|
||||
content: '确认离开系统吗?',
|
||||
onConfirm: function() {
|
||||
window.location.href = "./w?sid="+sid+'&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_logout';
|
||||
window.history = -1;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//判断字符长度
|
||||
@ -340,7 +340,7 @@ function strlen(str) {
|
||||
var len = 0;
|
||||
for (var i = 0; i < str.length; i++) {
|
||||
var c = str.charCodeAt(i);
|
||||
//单字节加1
|
||||
//单字节加1
|
||||
if ((c >= 0x0001 && c <= 0x007e) || (0xff60 <= c && c <= 0xff9f)) {
|
||||
len++;
|
||||
}
|
||||
@ -353,63 +353,63 @@ function strlen(str) {
|
||||
|
||||
//安全验证
|
||||
function checkPasswordSecurity(id) {
|
||||
if (jQuery("#complexity").val() == "false"||jQuery("#complexity").val()==undefined) {
|
||||
return true;
|
||||
}//不进行验证
|
||||
var val = jQuery("input[name=" + id + "]").val();
|
||||
//必须是数字和大小写字母
|
||||
if (val.match("^[A-Za-z0-9]+$")) {//val.match("^[A-Za-z0-9]+$").length > 0
|
||||
//必须包含数字和大小写字母
|
||||
if (val.match("[A-Z]+") && val.match("[a-z]+") && val.match("[0-9]+")) {
|
||||
return true;
|
||||
} else {
|
||||
$.simpleAlert("安全级别过低请使用大小写字母和数字", "error", 2000);
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert("请使用大小写字母和数字不能包含其他特殊字符", "error", 2000);
|
||||
|
||||
return false;
|
||||
}
|
||||
if (jQuery("#complexity").val() == "false"||jQuery("#complexity").val()==undefined) {
|
||||
return true;
|
||||
}//不进行验证
|
||||
var val = jQuery("input[name=" + id + "]").val();
|
||||
//必须是数字和大小写字母
|
||||
if (val.match("^[A-Za-z0-9]+$")) {//val.match("^[A-Za-z0-9]+$").length > 0
|
||||
//必须包含数字和大小写字母
|
||||
if (val.match("[A-Z]+") && val.match("[a-z]+") && val.match("[0-9]+")) {
|
||||
return true;
|
||||
} else {
|
||||
$.simpleAlert("安全级别过低请使用大小写字母和数字", "error", 2000);
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert("请使用大小写字母和数字不能包含其他特殊字符", "error", 2000);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//判断口令长度
|
||||
function checkPasswordLength(pwd1, pwd2) {
|
||||
var minLength = jQuery("#minLength").val();
|
||||
if (length2(pwd1) < minLength || length2(pwd2) < minLength) {
|
||||
$.simpleAlert("口令长度不能少于" + minLength + "位", "error", 2000);
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
var minLength = jQuery("#minLength").val();
|
||||
if (length2(pwd1) < minLength || length2(pwd2) < minLength) {
|
||||
$.simpleAlert("口令长度不能少于" + minLength + "位", "error", 2000);
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
//判断口令的复杂程度
|
||||
function checkPasswordStrength(pwd1) {
|
||||
var len = pwd1.match(/[a-z](?![^a-z]*[a-z])|[A-Z](?![^A-Z]*[A-Z])|\d(?![^\d]*\d)|[^a-zA-Z\d](?![a-zA-Z\d]*[^a-zA-Z\d])/g).length;
|
||||
/*len值:
|
||||
1: 密码有一种组合
|
||||
2: 密码有两种组合
|
||||
3: 密码有三种组合
|
||||
4: 密码有四种组合
|
||||
四种组合指 数字,小写字母,大写字母,其它字符
|
||||
*/
|
||||
if (len < 3) {//此处3可修改为上面列表中的值,判断强度等级
|
||||
$.simpleAlert("密码的强度较弱请使用大小写英文字母数字和特殊字符的组合", "error", 2000);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
var len = pwd1.match(/[a-z](?![^a-z]*[a-z])|[A-Z](?![^A-Z]*[A-Z])|\d(?![^\d]*\d)|[^a-zA-Z\d](?![a-zA-Z\d]*[^a-zA-Z\d])/g).length;
|
||||
/*len值:
|
||||
1: 密码有一种组合
|
||||
2: 密码有两种组合
|
||||
3: 密码有三种组合
|
||||
4: 密码有四种组合
|
||||
四种组合指 数字,小写字母,大写字母,其它字符
|
||||
*/
|
||||
if (len < 3) {//此处3可修改为上面列表中的值,判断强度等级
|
||||
$.simpleAlert("密码的强度较弱请使用大小写英文字母数字和特殊字符的组合", "error", 2000);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//判断一个串实际长度(1个中文2个单位)
|
||||
//判断一个串实际长度(1个中文2个单位)
|
||||
function length2(txtValue){
|
||||
if (txtValue!=null) {
|
||||
if (txtValue.indexOf('.')!=-1) {
|
||||
txtValue = txtValue.substring(1,txtValue.indexOf('.'));
|
||||
txtValue = txtValue.split(",").join("");
|
||||
}
|
||||
}
|
||||
var cArr = txtValue.match(/[^\x00-\xff]/ig);
|
||||
return txtValue.length + (cArr == null ? 0 : cArr.length);
|
||||
if (txtValue!=null) {
|
||||
if (txtValue.indexOf('.')!=-1) {
|
||||
txtValue = txtValue.substring(1,txtValue.indexOf('.'));
|
||||
txtValue = txtValue.split(",").join("");
|
||||
}
|
||||
}
|
||||
var cArr = txtValue.match(/[^\x00-\xff]/ig);
|
||||
return txtValue.length + (cArr == null ? 0 : cArr.length);
|
||||
}
|
||||
@ -1,218 +1,218 @@
|
||||
//修改展示方式
|
||||
function changeShowStyle(obj){
|
||||
$("#show_style_icon span").removeClass("current");
|
||||
obj.addClass("current");
|
||||
if (obj.attr("iconType") == "tile") {
|
||||
$("#content_tile").show();
|
||||
$("#content_list").hide();
|
||||
} else {
|
||||
$("#content_tile").hide();
|
||||
$("#content_list").show();
|
||||
}
|
||||
$("#show_style_icon span").removeClass("current");
|
||||
obj.addClass("current");
|
||||
if (obj.attr("iconType") == "tile") {
|
||||
$("#content_tile").show();
|
||||
$("#content_list").hide();
|
||||
} else {
|
||||
$("#content_tile").hide();
|
||||
$("#content_list").show();
|
||||
}
|
||||
}
|
||||
//查询数据
|
||||
function search(palIds) {
|
||||
var filter = {};
|
||||
var plrdValue = "";
|
||||
var plrpValue = "";
|
||||
var publishdateValue = "";
|
||||
$("#filter-content #plrd li.selected").each(function(){
|
||||
plrdValue += $(this).attr("filterValue") + ",";
|
||||
})
|
||||
$("#filter-content #plrp li.selected").each(function(){
|
||||
plrpValue += $(this).attr("filterValue") + ",";
|
||||
})
|
||||
$("#filter-content #publishdate li.selected").each(function(){
|
||||
publishdateValue += $(this).attr("filterValue") + ",";
|
||||
})
|
||||
if (plrdValue.length > 0) {
|
||||
filter.plrd = plrdValue.substring(0, plrdValue.length - 1);
|
||||
}
|
||||
if (plrpValue.length > 0) {
|
||||
filter.plrp = plrpValue.substring(0, plrpValue.length - 1);
|
||||
}
|
||||
if (publishdateValue.length > 0) {
|
||||
filter.publishdate = publishdateValue.substring(0, publishdateValue.length - 1);
|
||||
}
|
||||
|
||||
var params = {
|
||||
palIds: palIds,
|
||||
filter: json2String(filter),
|
||||
order: $('#order_select').val(),
|
||||
name: $('#palName').val()
|
||||
}
|
||||
awsui.ajax.request({
|
||||
url : "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search",
|
||||
method : "POST",
|
||||
data : params,
|
||||
ok : function(msg) {
|
||||
write(msg.data.result);
|
||||
},
|
||||
err:function(r){
|
||||
}
|
||||
});
|
||||
var filter = {};
|
||||
var plrdValue = "";
|
||||
var plrpValue = "";
|
||||
var publishdateValue = "";
|
||||
$("#filter-content #plrd li.selected").each(function(){
|
||||
plrdValue += $(this).attr("filterValue") + ",";
|
||||
})
|
||||
$("#filter-content #plrp li.selected").each(function(){
|
||||
plrpValue += $(this).attr("filterValue") + ",";
|
||||
})
|
||||
$("#filter-content #publishdate li.selected").each(function(){
|
||||
publishdateValue += $(this).attr("filterValue") + ",";
|
||||
})
|
||||
if (plrdValue.length > 0) {
|
||||
filter.plrd = plrdValue.substring(0, plrdValue.length - 1);
|
||||
}
|
||||
if (plrpValue.length > 0) {
|
||||
filter.plrp = plrpValue.substring(0, plrpValue.length - 1);
|
||||
}
|
||||
if (publishdateValue.length > 0) {
|
||||
filter.publishdate = publishdateValue.substring(0, publishdateValue.length - 1);
|
||||
}
|
||||
|
||||
var params = {
|
||||
palIds: palIds,
|
||||
filter: json2String(filter),
|
||||
order: $('#order_select').val(),
|
||||
name: $('#palName').val()
|
||||
}
|
||||
awsui.ajax.request({
|
||||
url : "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search",
|
||||
method : "POST",
|
||||
data : params,
|
||||
ok : function(msg) {
|
||||
write(msg.data.result);
|
||||
},
|
||||
err:function(r){
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//生成搜索结果html
|
||||
function write(data) {
|
||||
var html = "";
|
||||
var html_list = "";
|
||||
for (var i in data) {
|
||||
var style = "";
|
||||
var click = "";
|
||||
var dbclick="";
|
||||
if (data[i].methodId == "default") {
|
||||
style = "cursor: default;";
|
||||
dbclick="dbClickModelLi($(this))";
|
||||
} else {
|
||||
click = "clickModelLi($(this))";
|
||||
style = "cursor: pointer;";
|
||||
if (data[i].isActive == false) {
|
||||
click = "clickDisActiveLi(); return false;";
|
||||
}
|
||||
}
|
||||
html += "<li id='" + data[i].id + "' processDefId='" + data[i].processDefId + "' methodId='" + data[i].methodId + "' processName='" + data[i].name + "' onclick='" + click + "' ondblclick='" + dbclick + "'>"
|
||||
+ " <div style='" + style + "'><img src=\"" + data[i].imgPath + "\" /></div>"
|
||||
+ " <label>" + data[i].name + "</label>"
|
||||
+ "</li>";
|
||||
|
||||
var image = "";
|
||||
if (data[i].methodId == "default") {
|
||||
image = "../apps/com.actionsoft.apps.coe.pal.publisher/img/folder.png";
|
||||
} else {
|
||||
image = "../apps/com.actionsoft.apps.coe.pal.publisher/img/file.png";
|
||||
}
|
||||
html_list += "<tr id='" + data[i].id + "' processDefId='" + data[i].processDefId + "' methodId='" + data[i].methodId + "' processName='" + data[i].name + "' onclick='" + click + "' ondblclick='" + dbclick + "'>"
|
||||
+ " <td style='padding-left: 20px; " + style + "'><img src='" + image + "' style='margin-right: 10px;'>" + data[i].name + "</td>"
|
||||
+ " <td style='text-align: center;'>" + data[i].publishDate + "</td>"
|
||||
+ " <td style='text-align: center;'>" + data[i].version + "</td>"
|
||||
+ " <td>" + data[i].plrd + "</td>"
|
||||
+ " <td>" + data[i].plrp + "</td>"
|
||||
+ "</tr>";
|
||||
}
|
||||
$("#content_tile ul").html(html);
|
||||
$("#content_table tbody").html(html_list);
|
||||
|
||||
var html = "";
|
||||
var html_list = "";
|
||||
for (var i in data) {
|
||||
var style = "";
|
||||
var click = "";
|
||||
var dbclick="";
|
||||
if (data[i].methodId == "default") {
|
||||
style = "cursor: default;";
|
||||
dbclick="dbClickModelLi($(this))";
|
||||
} else {
|
||||
click = "clickModelLi($(this))";
|
||||
style = "cursor: pointer;";
|
||||
if (data[i].isActive == false) {
|
||||
click = "clickDisActiveLi(); return false;";
|
||||
}
|
||||
}
|
||||
html += "<li id='" + data[i].id + "' processDefId='" + data[i].processDefId + "' methodId='" + data[i].methodId + "' processName='" + data[i].name + "' onclick='" + click + "' ondblclick='" + dbclick + "'>"
|
||||
+ " <div style='" + style + "'><img src=\"" + data[i].imgPath + "\" /></div>"
|
||||
+ " <label>" + data[i].name + "</label>"
|
||||
+ "</li>";
|
||||
|
||||
var image = "";
|
||||
if (data[i].methodId == "default") {
|
||||
image = "../apps/com.actionsoft.apps.coe.pal.publisher/img/folder.png";
|
||||
} else {
|
||||
image = "../apps/com.actionsoft.apps.coe.pal.publisher/img/file.png";
|
||||
}
|
||||
html_list += "<tr id='" + data[i].id + "' processDefId='" + data[i].processDefId + "' methodId='" + data[i].methodId + "' processName='" + data[i].name + "' onclick='" + click + "' ondblclick='" + dbclick + "'>"
|
||||
+ " <td style='padding-left: 20px; " + style + "'><img src='" + image + "' style='margin-right: 10px;'>" + data[i].name + "</td>"
|
||||
+ " <td style='text-align: center;'>" + data[i].publishDate + "</td>"
|
||||
+ " <td style='text-align: center;'>" + data[i].version + "</td>"
|
||||
+ " <td>" + data[i].plrd + "</td>"
|
||||
+ " <td>" + data[i].plrp + "</td>"
|
||||
+ "</tr>";
|
||||
}
|
||||
$("#content_tile ul").html(html);
|
||||
$("#content_table tbody").html(html_list);
|
||||
|
||||
}
|
||||
|
||||
function clickNodeToSearch(ids) {
|
||||
var navigation = parent.getNavigation();
|
||||
$("#navigation").html(navigation);
|
||||
$("#navigation a").on("click", function(){
|
||||
var nodeId = $(this).attr("nodeId");
|
||||
parent.clickNavigation(nodeId);
|
||||
});
|
||||
|
||||
var palIds = parent.palIds;
|
||||
if (ids != undefined) {
|
||||
palIds = ids;
|
||||
}
|
||||
search(palIds);
|
||||
var navigation = parent.getNavigation();
|
||||
$("#navigation").html(navigation);
|
||||
$("#navigation a").on("click", function(){
|
||||
var nodeId = $(this).attr("nodeId");
|
||||
parent.clickNavigation(nodeId);
|
||||
});
|
||||
|
||||
var palIds = parent.palIds;
|
||||
if (ids != undefined) {
|
||||
palIds = ids;
|
||||
}
|
||||
search(palIds);
|
||||
}
|
||||
|
||||
function clickSearchButton() {
|
||||
var selectedTreeNode = parent.repositoryTree.getSelectedNode();
|
||||
var navigation = "搜索:<span class='search_span current' nodeId='-1'>所有文件</span><span class='search_span' nodeId='" + selectedTreeNode.id + "'>" + selectedTreeNode.name + "</span>";
|
||||
$("#navigation").html(navigation);
|
||||
$("#navigation span").on("click", function(){
|
||||
$("#navigation span").removeClass("current");
|
||||
$(this).addClass("current");
|
||||
clickSearchType4search();
|
||||
});
|
||||
clickSearchType4search();
|
||||
var selectedTreeNode = parent.repositoryTree.getSelectedNode();
|
||||
var navigation = "搜索:<span class='search_span current' nodeId='-1'>所有文件</span><span class='search_span' nodeId='" + selectedTreeNode.id + "'>" + selectedTreeNode.name + "</span>";
|
||||
$("#navigation").html(navigation);
|
||||
$("#navigation span").on("click", function(){
|
||||
$("#navigation span").removeClass("current");
|
||||
$(this).addClass("current");
|
||||
clickSearchType4search();
|
||||
});
|
||||
clickSearchType4search();
|
||||
}
|
||||
|
||||
function clickSearchType4search(){
|
||||
var nodeId = $("#navigation span.current").attr("nodeId");
|
||||
var palIds = '';
|
||||
if (nodeId != "-1") {
|
||||
palIds = parent.palIds;
|
||||
} else {
|
||||
var datas = parent.wsTreeData;
|
||||
for (var i in datas) {
|
||||
palIds += datas[i].id + ",";
|
||||
}
|
||||
if (palIds.length > 0) {
|
||||
palIds = palIds.substring(0, palIds.length-1);
|
||||
}
|
||||
}
|
||||
search(palIds);
|
||||
var nodeId = $("#navigation span.current").attr("nodeId");
|
||||
var palIds = '';
|
||||
if (nodeId != "-1") {
|
||||
palIds = parent.palIds;
|
||||
} else {
|
||||
var datas = parent.wsTreeData;
|
||||
for (var i in datas) {
|
||||
palIds += datas[i].id + ",";
|
||||
}
|
||||
if (palIds.length > 0) {
|
||||
palIds = palIds.substring(0, palIds.length-1);
|
||||
}
|
||||
}
|
||||
search(palIds);
|
||||
}
|
||||
|
||||
function initPlrdAndPlrp(obj, datas) {
|
||||
var html = "";
|
||||
for (var i in datas) {
|
||||
html += "<li filterValue='" + datas[i].id + "'>" + datas[i].name + "</li>";
|
||||
}
|
||||
obj.html(html);
|
||||
var html = "";
|
||||
for (var i in datas) {
|
||||
html += "<li filterValue='" + datas[i].id + "'>" + datas[i].name + "</li>";
|
||||
}
|
||||
obj.html(html);
|
||||
}
|
||||
|
||||
|
||||
function selectFilter(obj) {
|
||||
if (obj.parent().parent().attr("id") == "publishdate") {
|
||||
if (obj.hasClass("selected")) {
|
||||
$("#publishdate li").removeClass("selected");
|
||||
} else {
|
||||
$("#publishdate li").removeClass("selected");
|
||||
obj.addClass("selected");
|
||||
}
|
||||
} else {
|
||||
obj.toggleClass("selected");
|
||||
}
|
||||
if (obj.parent().parent().attr("id") == "publishdate") {
|
||||
if (obj.hasClass("selected")) {
|
||||
$("#publishdate li").removeClass("selected");
|
||||
} else {
|
||||
$("#publishdate li").removeClass("selected");
|
||||
obj.addClass("selected");
|
||||
}
|
||||
} else {
|
||||
obj.toggleClass("selected");
|
||||
}
|
||||
}
|
||||
|
||||
//点击模型文件图标
|
||||
function clickModelLi(obj) {
|
||||
if (obj.attr("methodId") == "default") {
|
||||
return;
|
||||
}
|
||||
var data = {
|
||||
id: obj.attr("id"),
|
||||
processDefId: obj.attr("processDefId"),
|
||||
methodId: obj.attr("methodId"),
|
||||
title: obj.attr("processName")
|
||||
}
|
||||
parent.openTab(data);
|
||||
if (obj.attr("methodId") == "default") {
|
||||
return;
|
||||
}
|
||||
var data = {
|
||||
id: obj.attr("id"),
|
||||
processDefId: obj.attr("processDefId"),
|
||||
methodId: obj.attr("methodId"),
|
||||
title: obj.attr("processName")
|
||||
}
|
||||
parent.openTab(data);
|
||||
}
|
||||
|
||||
function clickDisActiveLi() {
|
||||
$.simpleAlert('该应用未安装或已暂停');
|
||||
$.simpleAlert('该应用未安装或已暂停');
|
||||
}
|
||||
|
||||
function dbClickModelLi(obj) {
|
||||
parent.clickNavigation(obj.attr("id"));
|
||||
parent.clickNavigation(obj.attr("id"));
|
||||
}
|
||||
|
||||
function json2String(obj) {
|
||||
var THIS = this;
|
||||
switch (typeof(obj)) {
|
||||
case 'string':
|
||||
return '"' + obj.replace(/(["\\])/g, '\\$1') + '"';
|
||||
case 'array':
|
||||
return '[' + obj.map(THIS.json2String).join(',') + ']';
|
||||
case 'object':
|
||||
if (obj instanceof Array || Object.prototype.toString.call(obj) === '[object Array]') {
|
||||
var strArr = [];
|
||||
var len = obj.length;
|
||||
for (var i = 0; i < len; i++) {
|
||||
strArr.push(THIS.json2String(obj[i]));
|
||||
}
|
||||
return '[' + strArr.join(',') + ']';
|
||||
} else if (obj == null) {
|
||||
return 'null';
|
||||
var THIS = this;
|
||||
switch (typeof(obj)) {
|
||||
case 'string':
|
||||
return '"' + obj.replace(/(["\\])/g, '\\$1') + '"';
|
||||
case 'array':
|
||||
return '[' + obj.map(THIS.json2String).join(',') + ']';
|
||||
case 'object':
|
||||
if (obj instanceof Array || Object.prototype.toString.call(obj) === '[object Array]') {
|
||||
var strArr = [];
|
||||
var len = obj.length;
|
||||
for (var i = 0; i < len; i++) {
|
||||
strArr.push(THIS.json2String(obj[i]));
|
||||
}
|
||||
return '[' + strArr.join(',') + ']';
|
||||
} else if (obj == null) {
|
||||
return 'null';
|
||||
|
||||
} else {
|
||||
var string = [];
|
||||
for (var property in obj) string.push(THIS.json2String(property) + ':' + THIS.json2String(obj[property]));
|
||||
return '{' + string.join(',') + '}';
|
||||
}
|
||||
case 'number':
|
||||
return obj;
|
||||
case 'boolean':
|
||||
return obj;
|
||||
case false:
|
||||
return obj;
|
||||
case 'function':
|
||||
return obj.toString();
|
||||
}
|
||||
} else {
|
||||
var string = [];
|
||||
for (var property in obj) string.push(THIS.json2String(property) + ':' + THIS.json2String(obj[property]));
|
||||
return '{' + string.join(',') + '}';
|
||||
}
|
||||
case 'number':
|
||||
return obj;
|
||||
case 'boolean':
|
||||
return obj;
|
||||
case false:
|
||||
return obj;
|
||||
case 'function':
|
||||
return obj.toString();
|
||||
}
|
||||
}
|
||||
@ -1,87 +1,87 @@
|
||||
$(function(){
|
||||
initWs();
|
||||
initOrg();
|
||||
if (type == 'ws') {
|
||||
$('#tabs').find('a[tit=tab1]').click();
|
||||
$('#ws').show();
|
||||
}
|
||||
if (type == 'org') {
|
||||
$('#tabs').find('a[tit=tab2]').click();
|
||||
$('#org').show();
|
||||
}
|
||||
loadData(type);
|
||||
initWs();
|
||||
initOrg();
|
||||
if (type == 'ws') {
|
||||
$('#tabs').find('a[tit=tab1]').click();
|
||||
$('#ws').show();
|
||||
}
|
||||
if (type == 'org') {
|
||||
$('#tabs').find('a[tit=tab2]').click();
|
||||
$('#org').show();
|
||||
}
|
||||
loadData(type);
|
||||
})
|
||||
|
||||
/**************资产库切换*******************/
|
||||
function initWs() {
|
||||
$("#wsChangeArea").off("mouseenter").on("mouseenter", function () {
|
||||
$('#changeWsDialog').show();
|
||||
$('#changeWsDialog').show();
|
||||
}).off("mouseleave").on("mouseleave", function () {
|
||||
$('#changeWsDialog').hide();
|
||||
$('#changeWsDialog').hide();
|
||||
});
|
||||
var html = "<li>";
|
||||
var wsName = '';
|
||||
for (var i = 0; i < ws.length; i++) {
|
||||
html += '<ul style="text-overflow: ellipsis;overflow:hidden;width:200px;white-space: nowrap;" data-id="' + ws[i].id + '" name="' + ws[i].text + '" onclick="changeWs(this);" onMouseOver="this.style.color=\'#C2C2C2\'" onMouseOut="this.style.color=\'#000\'">' + ws[i].text + '</ul>';
|
||||
if (ws[i].id == wsId) {
|
||||
wsName = ws[i].text;
|
||||
}
|
||||
}
|
||||
html += "</li>";
|
||||
if (ws.length > 0) {
|
||||
$('#wsId').val(wsId);
|
||||
$('#wsNameDiv').text(wsName);
|
||||
}
|
||||
$('#changeWsDialog').html(html);
|
||||
var html = "<li>";
|
||||
var wsName = '';
|
||||
for (var i = 0; i < ws.length; i++) {
|
||||
html += '<ul style="text-overflow: ellipsis;overflow:hidden;width:200px;white-space: nowrap;" data-id="' + ws[i].id + '" name="' + ws[i].text + '" onclick="changeWs(this);" onMouseOver="this.style.color=\'#C2C2C2\'" onMouseOut="this.style.color=\'#000\'">' + ws[i].text + '</ul>';
|
||||
if (ws[i].id == wsId) {
|
||||
wsName = ws[i].text;
|
||||
}
|
||||
}
|
||||
html += "</li>";
|
||||
if (ws.length > 0) {
|
||||
$('#wsId').val(wsId);
|
||||
$('#wsNameDiv').text(wsName);
|
||||
}
|
||||
$('#changeWsDialog').html(html);
|
||||
}
|
||||
|
||||
function changeWs(obj) {
|
||||
$('#wsNameDiv').text($(obj).attr('name'));
|
||||
$('#changeWsDialog').hide();
|
||||
if(wsId == $(obj).attr('data-id')) return;
|
||||
wsId = $(obj).attr('data-id');
|
||||
loadData(type);
|
||||
$('#wsNameDiv').text($(obj).attr('name'));
|
||||
$('#changeWsDialog').hide();
|
||||
if(wsId == $(obj).attr('data-id')) return;
|
||||
wsId = $(obj).attr('data-id');
|
||||
loadData(type);
|
||||
}
|
||||
|
||||
/**************组织单位切换*******************/
|
||||
function initOrg() {
|
||||
$("#orgChangeArea").off("mouseenter").on("mouseenter", function () {
|
||||
$('#changeOrgDialog').show();
|
||||
$('#changeOrgDialog').show();
|
||||
}).off("mouseleave").on("mouseleave", function () {
|
||||
$('#changeOrgDialog').hide();
|
||||
$('#changeOrgDialog').hide();
|
||||
});
|
||||
var html = "<li>";
|
||||
var orgName = '';
|
||||
for (var i = 0; i < org.length; i++) {
|
||||
html += '<ul style="text-overflow: ellipsis;overflow:hidden;width:200px;white-space: nowrap;" data-id="' + org[i].id + '" name="' + org[i].text + '" onclick="changeOrg(this);" onMouseOver="this.style.color=\'#C2C2C2\'" onMouseOut="this.style.color=\'#000\'">' + org[i].text + '</ul>';
|
||||
if (org[i].id == orgId) {
|
||||
orgName = org[i].text;
|
||||
}
|
||||
}
|
||||
html += "</li>";
|
||||
if (org.length > 0) {
|
||||
$('#orgId').val(orgId);
|
||||
$('#orgNameDiv').text(orgName);
|
||||
}
|
||||
$('#changeOrgDialog').html(html);
|
||||
var html = "<li>";
|
||||
var orgName = '';
|
||||
for (var i = 0; i < org.length; i++) {
|
||||
html += '<ul style="text-overflow: ellipsis;overflow:hidden;width:200px;white-space: nowrap;" data-id="' + org[i].id + '" name="' + org[i].text + '" onclick="changeOrg(this);" onMouseOver="this.style.color=\'#C2C2C2\'" onMouseOut="this.style.color=\'#000\'">' + org[i].text + '</ul>';
|
||||
if (org[i].id == orgId) {
|
||||
orgName = org[i].text;
|
||||
}
|
||||
}
|
||||
html += "</li>";
|
||||
if (org.length > 0) {
|
||||
$('#orgId').val(orgId);
|
||||
$('#orgNameDiv').text(orgName);
|
||||
}
|
||||
$('#changeOrgDialog').html(html);
|
||||
}
|
||||
|
||||
function changeOrg(obj) {
|
||||
$('#orgNameDiv').text($(obj).attr('name'));
|
||||
$('#changeOrgDialog').hide();
|
||||
if(orgId == $(obj).attr('data-id')) return;
|
||||
orgId = $(obj).attr('data-id');
|
||||
loadData(type);
|
||||
$('#orgNameDiv').text($(obj).attr('name'));
|
||||
$('#changeOrgDialog').hide();
|
||||
if(orgId == $(obj).attr('data-id')) return;
|
||||
orgId = $(obj).attr('data-id');
|
||||
loadData(type);
|
||||
}
|
||||
|
||||
// 加载页面数据
|
||||
function loadData(type) {
|
||||
if (type == 'ws') {
|
||||
$('#main-frm').attr('src', './w?sid='+sid+'&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_ws_page&wsId=' + wsId);
|
||||
}
|
||||
if (type == 'org') {
|
||||
$('#main-frm2').attr('src', './w?sid='+sid+'&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_org_page&orgId=' + orgId);
|
||||
}
|
||||
if (type == 'ws') {
|
||||
$('#main-frm').attr('src', './w?sid='+sid+'&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_ws_page&wsId=' + wsId);
|
||||
}
|
||||
if (type == 'org') {
|
||||
$('#main-frm2').attr('src', './w?sid='+sid+'&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_org_page&orgId=' + orgId);
|
||||
}
|
||||
}
|
||||
|
||||
// tab切换
|
||||
@ -90,32 +90,32 @@ function onbeforechange(tab, contentTabId, newTabId) {
|
||||
|
||||
// tab切换
|
||||
function onchange(tab, newTabId) {
|
||||
$('#ws').hide();
|
||||
$('#org').hide();
|
||||
if (newTabId == 'tab1') {
|
||||
type = 'ws';
|
||||
$('#org').hide();
|
||||
$('#ws').show();
|
||||
}
|
||||
if (newTabId == 'tab2') {
|
||||
type = 'org';
|
||||
$('#ws').hide();
|
||||
$('#org').show();
|
||||
}
|
||||
loadData(type);
|
||||
$('#ws').hide();
|
||||
$('#org').hide();
|
||||
if (newTabId == 'tab1') {
|
||||
type = 'ws';
|
||||
$('#org').hide();
|
||||
$('#ws').show();
|
||||
}
|
||||
if (newTabId == 'tab2') {
|
||||
type = 'org';
|
||||
$('#ws').hide();
|
||||
$('#org').show();
|
||||
}
|
||||
loadData(type);
|
||||
}
|
||||
|
||||
// 查询
|
||||
function search() {
|
||||
// 所有类型,搜索框内容,当前类型,
|
||||
var text = $('#searchText').val().trim();
|
||||
var type = 'processmap';
|
||||
var templateId = '30267ab3-aeb6-4371-88e0-ecc13cef94a6';
|
||||
// 所有类型,搜索框内容,当前类型,
|
||||
var text = $('#searchText').val().trim();
|
||||
var type = 'processmap';
|
||||
var templateId = '30267ab3-aeb6-4371-88e0-ecc13cef94a6';
|
||||
text = encodeURI(text);
|
||||
window.open("./w?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&sid=" + sid + "&type=" + type + "&templateId=" + templateId + "&text=" + text, "_blank");
|
||||
window.open("./w?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&sid=" + sid + "&type=" + type + "&templateId=" + templateId + "&text=" + text, "_blank");
|
||||
}
|
||||
|
||||
function hideWsAndOrgList(){
|
||||
$('#changeWsDialog').hide();
|
||||
$('#changeWsDialog').hide();
|
||||
$('#changeOrgDialog').hide();
|
||||
}
|
||||
@ -4,28 +4,28 @@ var rowCountArr = [0];
|
||||
var buttonWidth = 170;
|
||||
// 初始化数据
|
||||
function initData() {
|
||||
first = firstLevelData;
|
||||
secend = secendLevelData;
|
||||
// $('body').empty();
|
||||
var html = '';
|
||||
for(var i = 0; i < first.length; i++) {
|
||||
// 一级流程
|
||||
html += '<div id="row-' + first[i].id + '" class="row row-box">';
|
||||
html += '<div class="row-left">';
|
||||
html += '<button id="row-button-' + first[i].id + '" class="row-left-button" data-id="' + first[i].id + '" awsui-qtip="text:\'' + first[i].name + '\',position:\'bottom\'" ondblclick=openDetail("' + first[i].id + '")>' + first[i].name + '</button>';
|
||||
var childData = secend[first[i].id];
|
||||
if (!(childData == undefined || childData.length == 0)) {
|
||||
html += '<div class="row-left-line-link"></div>';
|
||||
}
|
||||
html += '</div>';
|
||||
html += '<div id="row-right-' + first[i].id + '" class="row-right">';
|
||||
html +='</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
if (html.length > 0) {
|
||||
$('body').append(html);
|
||||
initSecendLevelData();
|
||||
}
|
||||
first = firstLevelData;
|
||||
secend = secendLevelData;
|
||||
// $('body').empty();
|
||||
var html = '';
|
||||
for(var i = 0; i < first.length; i++) {
|
||||
// 一级流程
|
||||
html += '<div id="row-' + first[i].id + '" class="row row-box">';
|
||||
html += '<div class="row-left">';
|
||||
html += '<button id="row-button-' + first[i].id + '" class="row-left-button" data-id="' + first[i].id + '" awsui-qtip="text:\'' + first[i].name + '\',position:\'bottom\'" ondblclick=openDetail("' + first[i].id + '")>' + first[i].name + '</button>';
|
||||
var childData = secend[first[i].id];
|
||||
if (!(childData == undefined || childData.length == 0)) {
|
||||
html += '<div class="row-left-line-link"></div>';
|
||||
}
|
||||
html += '</div>';
|
||||
html += '<div id="row-right-' + first[i].id + '" class="row-right">';
|
||||
html +='</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
if (html.length > 0) {
|
||||
$('body').append(html);
|
||||
initSecendLevelData();
|
||||
}
|
||||
if ($.browser.isIE && $.browser.isIE10) {
|
||||
$(".row-left").css("display","inline-block").css("float","left");
|
||||
$(".row-right").css("display","inline-block").css("float","left");
|
||||
@ -44,55 +44,55 @@ function initData() {
|
||||
|
||||
// 初始化二级数据
|
||||
function initSecendLevelData() {
|
||||
var width = $('.row-right').first().width();
|
||||
var count = parseInt(width / buttonWidth);// 每行元素个数
|
||||
for(var i = 0; i < first.length; i++) {
|
||||
var id = 'row-right-' + first[i].id;
|
||||
var childData = secend[first[i].id];
|
||||
if (childData == undefined || childData.length == 0) continue;
|
||||
var rowCount = Math.ceil(childData.length / count);// 元素行数
|
||||
// if (rowCount > 1) {
|
||||
if (true) {
|
||||
rowCountArr.push(count);
|
||||
} else {
|
||||
rowCountArr.push(childData.length);
|
||||
}
|
||||
var content = '';
|
||||
for(var j = 0; j < rowCount; j++) {
|
||||
content += '<div class="row-right-row">';
|
||||
for (var k = j * count,m = 0; k < childData.length; k++) {
|
||||
m++;
|
||||
if(m > count) break;
|
||||
content += '<div style="display:inline;">';
|
||||
if(childData[k].child) {
|
||||
content += '<span class="row-right-row-span">';
|
||||
} else {
|
||||
content += '<span class="row-right-row-span-last">';
|
||||
}
|
||||
if(childData[k].child) {// 有子流程
|
||||
content += '<button class="row-right-button" data-id="' + childData[k].id + '" awsui-qtip="text:\'' + childData[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + childData[k].id + '") onclick=clickSet(this,\'2\')>' + childData[k].name + '</button>';
|
||||
} else {// 无子流程
|
||||
content += '<button class="row-right-button" data-id="' + childData[k].id + '" awsui-qtip="text:\'' + childData[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + childData[k].id + '")>' + childData[k].name + '</button>';
|
||||
}
|
||||
content += '<div class="verticalbar"></div>';
|
||||
if(childData[k].child) {// 有子流程
|
||||
content += '<span class="awsui-iconfont has-child-icon" data-id="' + childData[k].id + '" ondblclick=openDetail("' + childData[k].id + '") onclick=clickSpanSet(this,\'2\')></span>';
|
||||
}
|
||||
content += '</span>';
|
||||
content += '</div>';
|
||||
}
|
||||
content += '</div>';
|
||||
}
|
||||
if (content.length > 0) {
|
||||
$('#' + id).html(content);
|
||||
}
|
||||
}
|
||||
var width = $('.row-right').first().width();
|
||||
var count = parseInt(width / buttonWidth);// 每行元素个数
|
||||
for(var i = 0; i < first.length; i++) {
|
||||
var id = 'row-right-' + first[i].id;
|
||||
var childData = secend[first[i].id];
|
||||
if (childData == undefined || childData.length == 0) continue;
|
||||
var rowCount = Math.ceil(childData.length / count);// 元素行数
|
||||
// if (rowCount > 1) {
|
||||
if (true) {
|
||||
rowCountArr.push(count);
|
||||
} else {
|
||||
rowCountArr.push(childData.length);
|
||||
}
|
||||
var content = '';
|
||||
for(var j = 0; j < rowCount; j++) {
|
||||
content += '<div class="row-right-row">';
|
||||
for (var k = j * count,m = 0; k < childData.length; k++) {
|
||||
m++;
|
||||
if(m > count) break;
|
||||
content += '<div style="display:inline;">';
|
||||
if(childData[k].child) {
|
||||
content += '<span class="row-right-row-span">';
|
||||
} else {
|
||||
content += '<span class="row-right-row-span-last">';
|
||||
}
|
||||
if(childData[k].child) {// 有子流程
|
||||
content += '<button class="row-right-button" data-id="' + childData[k].id + '" awsui-qtip="text:\'' + childData[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + childData[k].id + '") onclick=clickSet(this,\'2\')>' + childData[k].name + '</button>';
|
||||
} else {// 无子流程
|
||||
content += '<button class="row-right-button" data-id="' + childData[k].id + '" awsui-qtip="text:\'' + childData[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + childData[k].id + '")>' + childData[k].name + '</button>';
|
||||
}
|
||||
content += '<div class="verticalbar"></div>';
|
||||
if(childData[k].child) {// 有子流程
|
||||
content += '<span class="awsui-iconfont has-child-icon" data-id="' + childData[k].id + '" ondblclick=openDetail("' + childData[k].id + '") onclick=clickSpanSet(this,\'2\')></span>';
|
||||
}
|
||||
content += '</span>';
|
||||
content += '</div>';
|
||||
}
|
||||
content += '</div>';
|
||||
}
|
||||
if (content.length > 0) {
|
||||
$('#' + id).html(content);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 双击打开右侧权限流程(责任部门)
|
||||
function openDetail(id) {
|
||||
isdb = true;
|
||||
$.openSidebar({
|
||||
isdb = true;
|
||||
$.openSidebar({
|
||||
url : "./w?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_org_dept_dialog_page&deptId=" + id + "&sid=" + encodeURIComponent(sid),// 根据责任人查找流程对应
|
||||
title : "流程列表",
|
||||
closeText : "收起",
|
||||
@ -107,28 +107,28 @@ function openDetail(id) {
|
||||
}
|
||||
|
||||
function checked(obj, level, click) {
|
||||
// 清除已选中
|
||||
var c = '';
|
||||
if (level == 2) {
|
||||
c = 'row-right';
|
||||
} else if (level == 3) {
|
||||
c = 'button-wrap-child';
|
||||
} else {
|
||||
c = 'button-wrap-child-child';
|
||||
}
|
||||
$(obj).closest('div[class=' + c + ']').find('span').removeClass('is-active-span');
|
||||
$(obj).closest('div[class=' + c + ']').find('div').removeClass('is-active-verticalbar');
|
||||
$(obj).closest('div[class=' + c + ']').find('button').removeClass('is-active');
|
||||
$(obj).closest('div[class=' + c + ']').find('span').removeClass('icon-is-active');
|
||||
$(obj).closest('div[class=' + c + ']').css('background','#fff');
|
||||
if (click) {
|
||||
// 设置点击状态
|
||||
var $parent = $(obj).closest('span');
|
||||
$parent.addClass('is-active-span');
|
||||
$(obj).addClass('is-active');
|
||||
$parent.find('div.verticalbar').addClass('is-active-verticalbar');
|
||||
$parent.find('span:last').addClass('icon-is-active');
|
||||
}
|
||||
// 清除已选中
|
||||
var c = '';
|
||||
if (level == 2) {
|
||||
c = 'row-right';
|
||||
} else if (level == 3) {
|
||||
c = 'button-wrap-child';
|
||||
} else {
|
||||
c = 'button-wrap-child-child';
|
||||
}
|
||||
$(obj).closest('div[class=' + c + ']').find('span').removeClass('is-active-span');
|
||||
$(obj).closest('div[class=' + c + ']').find('div').removeClass('is-active-verticalbar');
|
||||
$(obj).closest('div[class=' + c + ']').find('button').removeClass('is-active');
|
||||
$(obj).closest('div[class=' + c + ']').find('span').removeClass('icon-is-active');
|
||||
$(obj).closest('div[class=' + c + ']').css('background','#fff');
|
||||
if (click) {
|
||||
// 设置点击状态
|
||||
var $parent = $(obj).closest('span');
|
||||
$parent.addClass('is-active-span');
|
||||
$(obj).addClass('is-active');
|
||||
$parent.find('div.verticalbar').addClass('is-active-verticalbar');
|
||||
$parent.find('span:last').addClass('icon-is-active');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@ -136,187 +136,187 @@ function checked(obj, level, click) {
|
||||
* return true:当前已点击 false:当前未点击
|
||||
* */
|
||||
function isClick(obj) {
|
||||
if($(obj).hasClass('is-active')) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
if($(obj).hasClass('is-active')) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// 展开第三级流程
|
||||
function expandSecendLevel(obj, level) {
|
||||
// 判断当前是否为已展开状态,展开则关闭
|
||||
if(isClick(obj)) {
|
||||
var $root = $(obj).closest('div[class=row-right-row]');
|
||||
$root.closest('div[class=row-right]').find('div[class=button-wrap-child]').remove();
|
||||
checked(obj, level, false);
|
||||
return;
|
||||
}
|
||||
checked(obj, level, true);
|
||||
var id = $(obj).attr('data-id');
|
||||
var param = {
|
||||
id : id,
|
||||
orgId : orgId
|
||||
}
|
||||
// 获取更多数据
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_org_expand&sid=" + encodeURIComponent(sid),
|
||||
dataType : "JSON",
|
||||
data : param,
|
||||
success : function(r) {
|
||||
$.simpleAlert('close');
|
||||
if (r.result == 'ok') {
|
||||
var third = r.data.data;
|
||||
if (third.length == 0) {
|
||||
$.simpleAlert('没有子部门数据');
|
||||
}
|
||||
var $root = $(obj).closest('div[class=row-right-row]');
|
||||
// 计算width
|
||||
var max = 0;
|
||||
for(var i = 0; i < rowCountArr.length; i++) {
|
||||
if (max < parseInt(rowCountArr[i])) max = parseInt(rowCountArr[i]);
|
||||
}
|
||||
var divWidth = (max * buttonWidth) - 11;
|
||||
var width = divWidth - 22;
|
||||
// var width = $root.width() - 20;
|
||||
var count = parseInt(width / buttonWidth);// 每行元素个数
|
||||
// 计算每行数据量
|
||||
// 计算行数
|
||||
var rowCount = Math.ceil(third.length / count);// 元素行数
|
||||
var content = '';
|
||||
var tempHeader = '<div class="button-wrap-child" style="width:' + divWidth + 'px">';
|
||||
for(var j = 0; j < rowCount; j++) {
|
||||
content += '<div class="temp">';
|
||||
for (var k = j * count,m = 0; k < third.length; k++) {
|
||||
m++;
|
||||
if(m > count) break;
|
||||
content += '<div style="display:inline;">';
|
||||
if(third[k].child) {
|
||||
content += '<span class="row-right-row-span">';
|
||||
} else {
|
||||
content += '<span class="row-right-row-span-last">';
|
||||
}
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '") onclick=clickSet(this,\'3\')>' + third[k].name + '</button>';
|
||||
} else {// 无子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '")>' + third[k].name + '</button>';
|
||||
}
|
||||
content += '<div class="verticalbar"></div>';
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<span class="awsui-iconfont has-child-icon" data-id="' + third[k].id + '" ondblclick=openDetail("' + third[k].id + '") onclick=clickSpanSet(this,\'3\') ></span>';
|
||||
}
|
||||
content += '</span>';
|
||||
content += '</div>';
|
||||
}
|
||||
content += '</div>';
|
||||
}
|
||||
var tempEnd = '</div>';
|
||||
$root.closest('div[class=row-right]').find('div[class=button-wrap-child]').remove();
|
||||
if (content.length > 0) {
|
||||
$root.append(tempHeader + content + tempEnd);
|
||||
$root.children('div:last').css('background', '#fbfbfb');
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert('加载失败', 'error');
|
||||
}
|
||||
}
|
||||
})
|
||||
// 判断当前是否为已展开状态,展开则关闭
|
||||
if(isClick(obj)) {
|
||||
var $root = $(obj).closest('div[class=row-right-row]');
|
||||
$root.closest('div[class=row-right]').find('div[class=button-wrap-child]').remove();
|
||||
checked(obj, level, false);
|
||||
return;
|
||||
}
|
||||
checked(obj, level, true);
|
||||
var id = $(obj).attr('data-id');
|
||||
var param = {
|
||||
id : id,
|
||||
orgId : orgId
|
||||
}
|
||||
// 获取更多数据
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_org_expand&sid=" + encodeURIComponent(sid),
|
||||
dataType : "JSON",
|
||||
data : param,
|
||||
success : function(r) {
|
||||
$.simpleAlert('close');
|
||||
if (r.result == 'ok') {
|
||||
var third = r.data.data;
|
||||
if (third.length == 0) {
|
||||
$.simpleAlert('没有子部门数据');
|
||||
}
|
||||
var $root = $(obj).closest('div[class=row-right-row]');
|
||||
// 计算width
|
||||
var max = 0;
|
||||
for(var i = 0; i < rowCountArr.length; i++) {
|
||||
if (max < parseInt(rowCountArr[i])) max = parseInt(rowCountArr[i]);
|
||||
}
|
||||
var divWidth = (max * buttonWidth) - 11;
|
||||
var width = divWidth - 22;
|
||||
// var width = $root.width() - 20;
|
||||
var count = parseInt(width / buttonWidth);// 每行元素个数
|
||||
// 计算每行数据量
|
||||
// 计算行数
|
||||
var rowCount = Math.ceil(third.length / count);// 元素行数
|
||||
var content = '';
|
||||
var tempHeader = '<div class="button-wrap-child" style="width:' + divWidth + 'px">';
|
||||
for(var j = 0; j < rowCount; j++) {
|
||||
content += '<div class="temp">';
|
||||
for (var k = j * count,m = 0; k < third.length; k++) {
|
||||
m++;
|
||||
if(m > count) break;
|
||||
content += '<div style="display:inline;">';
|
||||
if(third[k].child) {
|
||||
content += '<span class="row-right-row-span">';
|
||||
} else {
|
||||
content += '<span class="row-right-row-span-last">';
|
||||
}
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '") onclick=clickSet(this,\'3\')>' + third[k].name + '</button>';
|
||||
} else {// 无子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '")>' + third[k].name + '</button>';
|
||||
}
|
||||
content += '<div class="verticalbar"></div>';
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<span class="awsui-iconfont has-child-icon" data-id="' + third[k].id + '" ondblclick=openDetail("' + third[k].id + '") onclick=clickSpanSet(this,\'3\') ></span>';
|
||||
}
|
||||
content += '</span>';
|
||||
content += '</div>';
|
||||
}
|
||||
content += '</div>';
|
||||
}
|
||||
var tempEnd = '</div>';
|
||||
$root.closest('div[class=row-right]').find('div[class=button-wrap-child]').remove();
|
||||
if (content.length > 0) {
|
||||
$root.append(tempHeader + content + tempEnd);
|
||||
$root.children('div:last').css('background', '#fbfbfb');
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert('加载失败', 'error');
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function expandMoreLevel(obj, level) {
|
||||
var c = 'button-wrap-child';
|
||||
if (level > 3) {
|
||||
c = 'button-wrap-child-child';
|
||||
}
|
||||
// 判断当前是否为已展开状态,展开则关闭
|
||||
if(isClick(obj)) {
|
||||
var $root = $(obj).closest('div[class=' + c + ']');
|
||||
$root.find('div[class=button-wrap-child-child]').remove();
|
||||
checked(obj, level, false);
|
||||
return;
|
||||
}
|
||||
checked(obj, level, true);
|
||||
var id = $(obj).attr('data-id');
|
||||
var param = {
|
||||
id : id,
|
||||
orgId : orgId
|
||||
}
|
||||
// 获取更多数据
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_org_expand&sid=" + encodeURIComponent(sid),
|
||||
dataType : "JSON",
|
||||
data : param,
|
||||
success : function(r) {
|
||||
$.simpleAlert('close');
|
||||
if (r.result == 'ok') {
|
||||
var third = r.data.data;
|
||||
if (third.length == 0) {
|
||||
$.simpleAlert('没有子部门数据');
|
||||
}
|
||||
|
||||
var $root = $(obj).closest('div[class=' + c + ']');
|
||||
// 计算width
|
||||
var width = $root.width();
|
||||
var count = parseInt(width / buttonWidth);// 每行元素个数
|
||||
// 计算每行数据量
|
||||
// 计算行数
|
||||
var rowCount = Math.ceil(third.length / count);// 元素行数
|
||||
var content = '';
|
||||
var tempHeader = '<div class="button-wrap-child-child">';
|
||||
for(var j = 0; j < rowCount; j++) {
|
||||
content += '<div class="temp">';
|
||||
for (var k = j * count,m = 0; k < third.length; k++) {
|
||||
m++;
|
||||
if(m > count) break;
|
||||
content += '<div style="display:inline;">';
|
||||
if(third[k].child) {
|
||||
content += '<span class="row-right-row-span">';
|
||||
} else {
|
||||
content += '<span class="row-right-row-span-last">';
|
||||
}
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '") onclick=clickSet(this,\'4\')>' + third[k].name + '</button>';
|
||||
} else {// 无子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '")>' + third[k].name + '</button>';
|
||||
}
|
||||
content += '<div class="verticalbar"></div>';
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<span class="awsui-iconfont has-child-icon" data-id="' + third[k].id + '" ondblclick=openDetail("' + third[k].id + '") onclick=clickSpanSet(this,\'4\')></span>';
|
||||
}
|
||||
content += '</span>';
|
||||
content += '</div>';
|
||||
}
|
||||
content += '</div>';
|
||||
}
|
||||
var tempEnd = '</div>';
|
||||
// $(obj).closest('div[class=temp]').children('div[class=button-wrap-child-child]').remove();
|
||||
$root.find('div[class=button-wrap-child-child]').remove();
|
||||
if (content.length > 0) {
|
||||
$(obj).closest('div[class=temp]').append(tempHeader + content + tempEnd);
|
||||
$(obj).closest('div[class=temp]').children('div:last').css('background', '#fbfbfb');
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert('加载失败', 'error');
|
||||
}
|
||||
}
|
||||
})
|
||||
var c = 'button-wrap-child';
|
||||
if (level > 3) {
|
||||
c = 'button-wrap-child-child';
|
||||
}
|
||||
// 判断当前是否为已展开状态,展开则关闭
|
||||
if(isClick(obj)) {
|
||||
var $root = $(obj).closest('div[class=' + c + ']');
|
||||
$root.find('div[class=button-wrap-child-child]').remove();
|
||||
checked(obj, level, false);
|
||||
return;
|
||||
}
|
||||
checked(obj, level, true);
|
||||
var id = $(obj).attr('data-id');
|
||||
var param = {
|
||||
id : id,
|
||||
orgId : orgId
|
||||
}
|
||||
// 获取更多数据
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_org_expand&sid=" + encodeURIComponent(sid),
|
||||
dataType : "JSON",
|
||||
data : param,
|
||||
success : function(r) {
|
||||
$.simpleAlert('close');
|
||||
if (r.result == 'ok') {
|
||||
var third = r.data.data;
|
||||
if (third.length == 0) {
|
||||
$.simpleAlert('没有子部门数据');
|
||||
}
|
||||
|
||||
var $root = $(obj).closest('div[class=' + c + ']');
|
||||
// 计算width
|
||||
var width = $root.width();
|
||||
var count = parseInt(width / buttonWidth);// 每行元素个数
|
||||
// 计算每行数据量
|
||||
// 计算行数
|
||||
var rowCount = Math.ceil(third.length / count);// 元素行数
|
||||
var content = '';
|
||||
var tempHeader = '<div class="button-wrap-child-child">';
|
||||
for(var j = 0; j < rowCount; j++) {
|
||||
content += '<div class="temp">';
|
||||
for (var k = j * count,m = 0; k < third.length; k++) {
|
||||
m++;
|
||||
if(m > count) break;
|
||||
content += '<div style="display:inline;">';
|
||||
if(third[k].child) {
|
||||
content += '<span class="row-right-row-span">';
|
||||
} else {
|
||||
content += '<span class="row-right-row-span-last">';
|
||||
}
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '") onclick=clickSet(this,\'4\')>' + third[k].name + '</button>';
|
||||
} else {// 无子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '")>' + third[k].name + '</button>';
|
||||
}
|
||||
content += '<div class="verticalbar"></div>';
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<span class="awsui-iconfont has-child-icon" data-id="' + third[k].id + '" ondblclick=openDetail("' + third[k].id + '") onclick=clickSpanSet(this,\'4\')></span>';
|
||||
}
|
||||
content += '</span>';
|
||||
content += '</div>';
|
||||
}
|
||||
content += '</div>';
|
||||
}
|
||||
var tempEnd = '</div>';
|
||||
// $(obj).closest('div[class=temp]').children('div[class=button-wrap-child-child]').remove();
|
||||
$root.find('div[class=button-wrap-child-child]').remove();
|
||||
if (content.length > 0) {
|
||||
$(obj).closest('div[class=temp]').append(tempHeader + content + tempEnd);
|
||||
$(obj).closest('div[class=temp]').children('div:last').css('background', '#fbfbfb');
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert('加载失败', 'error');
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//双击/单击处理
|
||||
var isdb;// 是否双击
|
||||
function clickSet(obj, level) {
|
||||
isdb = false;
|
||||
window.setTimeout(function() {
|
||||
if (isdb) return;
|
||||
if (level >= 3) {
|
||||
expandMoreLevel(obj, level);// 单击
|
||||
} else {
|
||||
expandSecendLevel(obj, level);// 单击
|
||||
}
|
||||
}, 300);
|
||||
isdb = false;
|
||||
window.setTimeout(function() {
|
||||
if (isdb) return;
|
||||
if (level >= 3) {
|
||||
expandMoreLevel(obj, level);// 单击
|
||||
} else {
|
||||
expandSecendLevel(obj, level);// 单击
|
||||
}
|
||||
}, 300);
|
||||
}
|
||||
|
||||
function clickSpanSet(obj, level) {
|
||||
clickSet($(obj).closest('span.row-right-row-span').find('button.row-right-button')[0],level);
|
||||
clickSet($(obj).closest('span.row-right-row-span').find('button.row-right-button')[0],level);
|
||||
}
|
||||
|
||||
@ -4,28 +4,28 @@ var rowCountArr = [0];
|
||||
var buttonWidth = 170;
|
||||
// 初始化数据
|
||||
function initData() {
|
||||
first = firstLevelData;
|
||||
secend = secendLevelData;
|
||||
// $('body').empty();
|
||||
var html = '';
|
||||
for(var i = 0; i < first.length; i++) {
|
||||
// 一级流程
|
||||
html += '<div id="row-' + first[i].id + '" class="row row-box">';
|
||||
html += '<div class="row-left">';
|
||||
html += '<button id="row-button-' + first[i].id + '" class="row-left-button" data-id="' + first[i].id + '" awsui-qtip="text:\'' + first[i].name + '\',position:\'bottom\'" ondblclick=openDetail("' + first[i].id + '")>' + first[i].name + '</button>';
|
||||
var childData = secend[first[i].versionId];
|
||||
if (!(childData == undefined || childData.length == 0)) {
|
||||
html += '<div class="row-left-line-link"></div>';
|
||||
}
|
||||
html += '</div>';
|
||||
html += '<div id="row-right-' + first[i].id + '" class="row-right">';
|
||||
html +='</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
if (html.length > 0) {
|
||||
$('body').append(html);
|
||||
initSecendLevelData();
|
||||
}
|
||||
first = firstLevelData;
|
||||
secend = secendLevelData;
|
||||
// $('body').empty();
|
||||
var html = '';
|
||||
for(var i = 0; i < first.length; i++) {
|
||||
// 一级流程
|
||||
html += '<div id="row-' + first[i].id + '" class="row row-box">';
|
||||
html += '<div class="row-left">';
|
||||
html += '<button id="row-button-' + first[i].id + '" class="row-left-button" data-id="' + first[i].id + '" awsui-qtip="text:\'' + first[i].name + '\',position:\'bottom\'" ondblclick=openDetail("' + first[i].id + '")>' + first[i].name + '</button>';
|
||||
var childData = secend[first[i].versionId];
|
||||
if (!(childData == undefined || childData.length == 0)) {
|
||||
html += '<div class="row-left-line-link"></div>';
|
||||
}
|
||||
html += '</div>';
|
||||
html += '<div id="row-right-' + first[i].id + '" class="row-right">';
|
||||
html +='</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
if (html.length > 0) {
|
||||
$('body').append(html);
|
||||
initSecendLevelData();
|
||||
}
|
||||
if ($.browser.isIE && $.browser.isIE10) {
|
||||
$(".row-left").css("float","left");
|
||||
$(".row-right").css("float","left");
|
||||
@ -41,108 +41,108 @@ function initData() {
|
||||
|
||||
// 初始化二级数据
|
||||
function initSecendLevelData() {
|
||||
var width = $('.row-right').first().width();
|
||||
var count = parseInt(width / buttonWidth);// 每行元素个数
|
||||
for(var i = 0; i < first.length; i++) {
|
||||
var id = 'row-right-' + first[i].id;
|
||||
var childData = secend[first[i].versionId];
|
||||
if (childData == undefined || childData.length == 0) continue;
|
||||
var rowCount = Math.ceil(childData.length / count);// 元素行数
|
||||
// if (rowCount > 1) {
|
||||
if (true) {
|
||||
rowCountArr.push(count);
|
||||
} else {
|
||||
rowCountArr.push(childData.length);
|
||||
}
|
||||
var content = '';
|
||||
for(var j = 0; j < rowCount; j++) {
|
||||
content += '<div class="row-right-row">';
|
||||
for (var k = j * count,m = 0; k < childData.length; k++) {
|
||||
m++;
|
||||
if(m > count) break;
|
||||
content += '<div style="display:inline;">';
|
||||
if(childData[k].child) {
|
||||
content += '<span class="row-right-row-span">';
|
||||
} else {
|
||||
content += '<span class="row-right-row-span-last">';
|
||||
}
|
||||
if(childData[k].child) {// 有子流程
|
||||
content += '<button class="row-right-button" data-id="' + childData[k].id + '" awsui-qtip="text:\'' + childData[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + childData[k].id + '") onclick=clickSet(this,\'2\')>' + childData[k].name + '</button>';
|
||||
} else {// 无子流程
|
||||
content += '<button class="row-right-button" data-id="' + childData[k].id + '" awsui-qtip="text:\'' + childData[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + childData[k].id + '")>' + childData[k].name + '</button>';
|
||||
}
|
||||
content += '<div class="verticalbar"></div>';
|
||||
if(childData[k].child) {// 有子流程
|
||||
content += '<span class="awsui-iconfont has-child-icon" data-id="' + childData[k].id + '" ondblclick=openDetail("' + childData[k].id + '") onclick=clickSpanSet(this,\'2\')></span>';
|
||||
}
|
||||
content += '</span>';
|
||||
content += '</div>';
|
||||
}
|
||||
content += '</div>';
|
||||
}
|
||||
if (content.length > 0) {
|
||||
$('#' + id).html(content);
|
||||
}
|
||||
}
|
||||
var width = $('.row-right').first().width();
|
||||
var count = parseInt(width / buttonWidth);// 每行元素个数
|
||||
for(var i = 0; i < first.length; i++) {
|
||||
var id = 'row-right-' + first[i].id;
|
||||
var childData = secend[first[i].versionId];
|
||||
if (childData == undefined || childData.length == 0) continue;
|
||||
var rowCount = Math.ceil(childData.length / count);// 元素行数
|
||||
// if (rowCount > 1) {
|
||||
if (true) {
|
||||
rowCountArr.push(count);
|
||||
} else {
|
||||
rowCountArr.push(childData.length);
|
||||
}
|
||||
var content = '';
|
||||
for(var j = 0; j < rowCount; j++) {
|
||||
content += '<div class="row-right-row">';
|
||||
for (var k = j * count,m = 0; k < childData.length; k++) {
|
||||
m++;
|
||||
if(m > count) break;
|
||||
content += '<div style="display:inline;">';
|
||||
if(childData[k].child) {
|
||||
content += '<span class="row-right-row-span">';
|
||||
} else {
|
||||
content += '<span class="row-right-row-span-last">';
|
||||
}
|
||||
if(childData[k].child) {// 有子流程
|
||||
content += '<button class="row-right-button" data-id="' + childData[k].id + '" awsui-qtip="text:\'' + childData[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + childData[k].id + '") onclick=clickSet(this,\'2\')>' + childData[k].name + '</button>';
|
||||
} else {// 无子流程
|
||||
content += '<button class="row-right-button" data-id="' + childData[k].id + '" awsui-qtip="text:\'' + childData[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + childData[k].id + '")>' + childData[k].name + '</button>';
|
||||
}
|
||||
content += '<div class="verticalbar"></div>';
|
||||
if(childData[k].child) {// 有子流程
|
||||
content += '<span class="awsui-iconfont has-child-icon" data-id="' + childData[k].id + '" ondblclick=openDetail("' + childData[k].id + '") onclick=clickSpanSet(this,\'2\')></span>';
|
||||
}
|
||||
content += '</span>';
|
||||
content += '</div>';
|
||||
}
|
||||
content += '</div>';
|
||||
}
|
||||
if (content.length > 0) {
|
||||
$('#' + id).html(content);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 打开流程
|
||||
function openDetail(id) {
|
||||
isdb = true;
|
||||
var param = {
|
||||
id : id,
|
||||
wsId : wsId
|
||||
}
|
||||
// 获取更多数据
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_ws_check_open&sid=" + encodeURIComponent(sid),
|
||||
dataType : "JSON",
|
||||
data : param,
|
||||
success : function(r) {
|
||||
$.simpleAlert('close');
|
||||
if (r.result == 'ok') {
|
||||
if (r.data.status == 'noPerm') {
|
||||
$.simpleAlert('没有文件的访问权限', 'info');
|
||||
} else if (r.data.status == 'typeError') {
|
||||
$.simpleAlert('流程未发布,无法访问', 'info');
|
||||
} else if (r.data.status == 'notPublish') {
|
||||
$.simpleAlert('流程未发布,无法访问', 'info');
|
||||
} else {
|
||||
window.open("./w?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_page&uuid=" + id + "&sid=" + encodeURIComponent(sid));// open Windows
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert('加载失败', 'error');
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
isdb = true;
|
||||
var param = {
|
||||
id : id,
|
||||
wsId : wsId
|
||||
}
|
||||
// 获取更多数据
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_ws_check_open&sid=" + encodeURIComponent(sid),
|
||||
dataType : "JSON",
|
||||
data : param,
|
||||
success : function(r) {
|
||||
$.simpleAlert('close');
|
||||
if (r.result == 'ok') {
|
||||
if (r.data.status == 'noPerm') {
|
||||
$.simpleAlert('没有文件的访问权限', 'info');
|
||||
} else if (r.data.status == 'typeError') {
|
||||
$.simpleAlert('流程未发布,无法访问', 'info');
|
||||
} else if (r.data.status == 'notPublish') {
|
||||
$.simpleAlert('流程未发布,无法访问', 'info');
|
||||
} else {
|
||||
window.open("./w?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_page&uuid=" + id + "&sid=" + encodeURIComponent(sid));// open Windows
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert('加载失败', 'error');
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
function checked(obj, level, click) {
|
||||
// 清除已选中
|
||||
var c = '';
|
||||
if (level == 2) {
|
||||
c = 'row-right';
|
||||
} else if (level == 3) {
|
||||
c = 'button-wrap-child';
|
||||
} else {
|
||||
c = 'button-wrap-child-child';
|
||||
}
|
||||
$(obj).closest('div[class=' + c + ']').find('span').removeClass('is-active-span');
|
||||
$(obj).closest('div[class=' + c + ']').find('div').removeClass('is-active-verticalbar');
|
||||
$(obj).closest('div[class=' + c + ']').find('button').removeClass('is-active');
|
||||
$(obj).closest('div[class=' + c + ']').find('span').removeClass('icon-is-active');
|
||||
$(obj).closest('div[class=' + c + ']').css('background','#fff');
|
||||
if (click) {
|
||||
// 设置点击状态
|
||||
var $parent = $(obj).closest('span');
|
||||
$parent.addClass('is-active-span');
|
||||
$(obj).addClass('is-active');
|
||||
$parent.find('div.verticalbar').addClass('is-active-verticalbar');
|
||||
$parent.find('span:last').addClass('icon-is-active');
|
||||
}
|
||||
// 清除已选中
|
||||
var c = '';
|
||||
if (level == 2) {
|
||||
c = 'row-right';
|
||||
} else if (level == 3) {
|
||||
c = 'button-wrap-child';
|
||||
} else {
|
||||
c = 'button-wrap-child-child';
|
||||
}
|
||||
$(obj).closest('div[class=' + c + ']').find('span').removeClass('is-active-span');
|
||||
$(obj).closest('div[class=' + c + ']').find('div').removeClass('is-active-verticalbar');
|
||||
$(obj).closest('div[class=' + c + ']').find('button').removeClass('is-active');
|
||||
$(obj).closest('div[class=' + c + ']').find('span').removeClass('icon-is-active');
|
||||
$(obj).closest('div[class=' + c + ']').css('background','#fff');
|
||||
if (click) {
|
||||
// 设置点击状态
|
||||
var $parent = $(obj).closest('span');
|
||||
$parent.addClass('is-active-span');
|
||||
$(obj).addClass('is-active');
|
||||
$parent.find('div.verticalbar').addClass('is-active-verticalbar');
|
||||
$parent.find('span:last').addClass('icon-is-active');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@ -150,186 +150,186 @@ function checked(obj, level, click) {
|
||||
* return true:当前已点击 false:当前未点击
|
||||
* */
|
||||
function isClick(obj) {
|
||||
if($(obj).hasClass('is-active')) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
if($(obj).hasClass('is-active')) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// 点开第二级展开第三级流程
|
||||
function expandSecendLevel(obj, level) {
|
||||
// 判断当前是否为已展开状态,展开则关闭
|
||||
if(isClick(obj)) {
|
||||
var $root = $(obj).closest('div[class=row-right-row]');
|
||||
$root.closest('div[class=row-right]').find('div[class=button-wrap-child]').remove();
|
||||
checked(obj, level, false);
|
||||
return;
|
||||
}
|
||||
checked(obj, level, true);
|
||||
var id = $(obj).attr('data-id');
|
||||
var param = {
|
||||
id : id,
|
||||
wsId : wsId
|
||||
}
|
||||
// 获取更多数据
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_ws_expand&sid=" + encodeURIComponent(sid),
|
||||
dataType : "JSON",
|
||||
data : param,
|
||||
success : function(r) {
|
||||
$.simpleAlert('close');
|
||||
if (r.result == 'ok') {
|
||||
var third = r.data.data;
|
||||
if (third.length == 0) {
|
||||
$.simpleAlert('没有子流程数据');
|
||||
}
|
||||
var $root = $(obj).closest('div[class=row-right-row]');
|
||||
// 计算width
|
||||
var max = 0;
|
||||
for(var i = 0; i < rowCountArr.length; i++) {
|
||||
if (max < parseInt(rowCountArr[i])) max = parseInt(rowCountArr[i]);
|
||||
}
|
||||
var divWidth = (max * buttonWidth) - 11;
|
||||
var width = divWidth - 22;
|
||||
// var width = $root.width() - 20;
|
||||
var count = parseInt(width / buttonWidth);// 每行元素个数
|
||||
// 计算每行数据量
|
||||
// 计算行数
|
||||
var rowCount = Math.ceil(third.length / count);// 元素行数
|
||||
var content = '';
|
||||
var tempHeader = '<div class="button-wrap-child" style="width:' + divWidth + 'px">';
|
||||
for(var j = 0; j < rowCount; j++) {
|
||||
content += '<div class="temp">';
|
||||
for (var k = j * count,m = 0; k < third.length; k++) {
|
||||
m++;
|
||||
if(m > count) break;
|
||||
content += '<div style="display:inline;">';
|
||||
if(third[k].child) {
|
||||
content += '<span class="row-right-row-span">';
|
||||
} else {
|
||||
content += '<span class="row-right-row-span-last">';
|
||||
}
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '") onclick=clickSet(this,\'3\')>' + third[k].name + '</button>';
|
||||
} else {// 无子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '")>' + third[k].name + '</button>';
|
||||
}
|
||||
content += '<div class="verticalbar"></div>';
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<span class="awsui-iconfont has-child-icon" data-id="' + third[k].id + '" ondblclick=openDetail("' + third[k].id + '") onclick=clickSpanSet(this,\'3\') ></span>';
|
||||
}
|
||||
content += '</span>';
|
||||
content += '</div>';
|
||||
}
|
||||
content += '</div>';
|
||||
}
|
||||
var tempEnd = '</div>';
|
||||
$root.closest('div[class=row-right]').find('div[class=button-wrap-child]').remove();
|
||||
if (content.length > 0) {
|
||||
$root.append(tempHeader + content + tempEnd);
|
||||
$root.children('div:last').css('background', '#fbfbfb');
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert('加载失败', 'error');
|
||||
}
|
||||
}
|
||||
})
|
||||
// 判断当前是否为已展开状态,展开则关闭
|
||||
if(isClick(obj)) {
|
||||
var $root = $(obj).closest('div[class=row-right-row]');
|
||||
$root.closest('div[class=row-right]').find('div[class=button-wrap-child]').remove();
|
||||
checked(obj, level, false);
|
||||
return;
|
||||
}
|
||||
checked(obj, level, true);
|
||||
var id = $(obj).attr('data-id');
|
||||
var param = {
|
||||
id : id,
|
||||
wsId : wsId
|
||||
}
|
||||
// 获取更多数据
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_ws_expand&sid=" + encodeURIComponent(sid),
|
||||
dataType : "JSON",
|
||||
data : param,
|
||||
success : function(r) {
|
||||
$.simpleAlert('close');
|
||||
if (r.result == 'ok') {
|
||||
var third = r.data.data;
|
||||
if (third.length == 0) {
|
||||
$.simpleAlert('没有子流程数据');
|
||||
}
|
||||
var $root = $(obj).closest('div[class=row-right-row]');
|
||||
// 计算width
|
||||
var max = 0;
|
||||
for(var i = 0; i < rowCountArr.length; i++) {
|
||||
if (max < parseInt(rowCountArr[i])) max = parseInt(rowCountArr[i]);
|
||||
}
|
||||
var divWidth = (max * buttonWidth) - 11;
|
||||
var width = divWidth - 22;
|
||||
// var width = $root.width() - 20;
|
||||
var count = parseInt(width / buttonWidth);// 每行元素个数
|
||||
// 计算每行数据量
|
||||
// 计算行数
|
||||
var rowCount = Math.ceil(third.length / count);// 元素行数
|
||||
var content = '';
|
||||
var tempHeader = '<div class="button-wrap-child" style="width:' + divWidth + 'px">';
|
||||
for(var j = 0; j < rowCount; j++) {
|
||||
content += '<div class="temp">';
|
||||
for (var k = j * count,m = 0; k < third.length; k++) {
|
||||
m++;
|
||||
if(m > count) break;
|
||||
content += '<div style="display:inline;">';
|
||||
if(third[k].child) {
|
||||
content += '<span class="row-right-row-span">';
|
||||
} else {
|
||||
content += '<span class="row-right-row-span-last">';
|
||||
}
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '") onclick=clickSet(this,\'3\')>' + third[k].name + '</button>';
|
||||
} else {// 无子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '")>' + third[k].name + '</button>';
|
||||
}
|
||||
content += '<div class="verticalbar"></div>';
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<span class="awsui-iconfont has-child-icon" data-id="' + third[k].id + '" ondblclick=openDetail("' + third[k].id + '") onclick=clickSpanSet(this,\'3\') ></span>';
|
||||
}
|
||||
content += '</span>';
|
||||
content += '</div>';
|
||||
}
|
||||
content += '</div>';
|
||||
}
|
||||
var tempEnd = '</div>';
|
||||
$root.closest('div[class=row-right]').find('div[class=button-wrap-child]').remove();
|
||||
if (content.length > 0) {
|
||||
$root.append(tempHeader + content + tempEnd);
|
||||
$root.children('div:last').css('background', '#fbfbfb');
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert('加载失败', 'error');
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function expandMoreLevel(obj, level) {
|
||||
var c = 'button-wrap-child';
|
||||
if (level > 3) {
|
||||
c = 'button-wrap-child-child';
|
||||
}
|
||||
// 判断当前是否为已展开状态,展开则关闭
|
||||
if(isClick(obj)) {
|
||||
var $root = $(obj).closest('div[class=' + c + ']');
|
||||
$root.find('div[class=button-wrap-child-child]').remove();
|
||||
checked(obj, level, false);
|
||||
return;
|
||||
}
|
||||
checked(obj, level, true);
|
||||
var id = $(obj).attr('data-id');
|
||||
var param = {
|
||||
id : id,
|
||||
wsId : wsId
|
||||
}
|
||||
// 获取更多数据
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_ws_expand&sid=" + encodeURIComponent(sid),
|
||||
dataType : "JSON",
|
||||
data : param,
|
||||
success : function(r) {
|
||||
$.simpleAlert('close');
|
||||
if (r.result == 'ok') {
|
||||
var third = r.data.data;
|
||||
if (third.length == 0) {
|
||||
$.simpleAlert('没有子流程数据');
|
||||
}
|
||||
var $root = $(obj).closest('div[class=' + c + ']');
|
||||
// 计算width
|
||||
var width = $root.width();
|
||||
var count = parseInt(width / buttonWidth);// 每行元素个数
|
||||
// 计算每行数据量
|
||||
// 计算行数
|
||||
var rowCount = Math.ceil(third.length / count);// 元素行数
|
||||
var content = '';
|
||||
var tempHeader = '<div class="button-wrap-child-child">';
|
||||
for(var j = 0; j < rowCount; j++) {
|
||||
content += '<div class="temp">';
|
||||
for (var k = j * count,m = 0; k < third.length; k++) {
|
||||
m++;
|
||||
if(m > count) break;
|
||||
content += '<div style="display:inline;">';
|
||||
if(third[k].child) {
|
||||
content += '<span class="row-right-row-span">';
|
||||
} else {
|
||||
content += '<span class="row-right-row-span-last">';
|
||||
}
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '") onclick=clickSet(this,\'4\')>' + third[k].name + '</button>';
|
||||
} else {// 无子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '")>' + third[k].name + '</button>';
|
||||
}
|
||||
content += '<div class="verticalbar"></div>';
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<span class="awsui-iconfont has-child-icon" data-id="' + third[k].id + '" ondblclick=openDetail("' + third[k].id + '") onclick=clickSpanSet(this,\'4\')></span>';
|
||||
}
|
||||
content += '</span>';
|
||||
content += '</div>';
|
||||
}
|
||||
content += '</div>';
|
||||
}
|
||||
var tempEnd = '</div>';
|
||||
// $(obj).closest('div[class=temp]').children('div[class=button-wrap-child-child]').remove();
|
||||
$root.find('div[class=button-wrap-child-child]').remove();
|
||||
if (content.length > 0) {
|
||||
$(obj).closest('div[class=temp]').append(tempHeader + content + tempEnd);
|
||||
$(obj).closest('div[class=temp]').children('div:last').css('background', '#fbfbfb');
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert('加载失败', 'error');
|
||||
}
|
||||
}
|
||||
})
|
||||
var c = 'button-wrap-child';
|
||||
if (level > 3) {
|
||||
c = 'button-wrap-child-child';
|
||||
}
|
||||
// 判断当前是否为已展开状态,展开则关闭
|
||||
if(isClick(obj)) {
|
||||
var $root = $(obj).closest('div[class=' + c + ']');
|
||||
$root.find('div[class=button-wrap-child-child]').remove();
|
||||
checked(obj, level, false);
|
||||
return;
|
||||
}
|
||||
checked(obj, level, true);
|
||||
var id = $(obj).attr('data-id');
|
||||
var param = {
|
||||
id : id,
|
||||
wsId : wsId
|
||||
}
|
||||
// 获取更多数据
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_processmap_ws_expand&sid=" + encodeURIComponent(sid),
|
||||
dataType : "JSON",
|
||||
data : param,
|
||||
success : function(r) {
|
||||
$.simpleAlert('close');
|
||||
if (r.result == 'ok') {
|
||||
var third = r.data.data;
|
||||
if (third.length == 0) {
|
||||
$.simpleAlert('没有子流程数据');
|
||||
}
|
||||
var $root = $(obj).closest('div[class=' + c + ']');
|
||||
// 计算width
|
||||
var width = $root.width();
|
||||
var count = parseInt(width / buttonWidth);// 每行元素个数
|
||||
// 计算每行数据量
|
||||
// 计算行数
|
||||
var rowCount = Math.ceil(third.length / count);// 元素行数
|
||||
var content = '';
|
||||
var tempHeader = '<div class="button-wrap-child-child">';
|
||||
for(var j = 0; j < rowCount; j++) {
|
||||
content += '<div class="temp">';
|
||||
for (var k = j * count,m = 0; k < third.length; k++) {
|
||||
m++;
|
||||
if(m > count) break;
|
||||
content += '<div style="display:inline;">';
|
||||
if(third[k].child) {
|
||||
content += '<span class="row-right-row-span">';
|
||||
} else {
|
||||
content += '<span class="row-right-row-span-last">';
|
||||
}
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '") onclick=clickSet(this,\'4\')>' + third[k].name + '</button>';
|
||||
} else {// 无子流程
|
||||
content += '<button class="row-right-button" data-id="' + third[k].id + '" awsui-qtip="text:\'' + third[k].name + '\',position:\'bottom\'" ondblclick=openDetail("' + third[k].id + '")>' + third[k].name + '</button>';
|
||||
}
|
||||
content += '<div class="verticalbar"></div>';
|
||||
if(third[k].child) {// 有子流程
|
||||
content += '<span class="awsui-iconfont has-child-icon" data-id="' + third[k].id + '" ondblclick=openDetail("' + third[k].id + '") onclick=clickSpanSet(this,\'4\')></span>';
|
||||
}
|
||||
content += '</span>';
|
||||
content += '</div>';
|
||||
}
|
||||
content += '</div>';
|
||||
}
|
||||
var tempEnd = '</div>';
|
||||
// $(obj).closest('div[class=temp]').children('div[class=button-wrap-child-child]').remove();
|
||||
$root.find('div[class=button-wrap-child-child]').remove();
|
||||
if (content.length > 0) {
|
||||
$(obj).closest('div[class=temp]').append(tempHeader + content + tempEnd);
|
||||
$(obj).closest('div[class=temp]').children('div:last').css('background', '#fbfbfb');
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert('加载失败', 'error');
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//双击/单击处理
|
||||
var isdb;// 是否双击
|
||||
function clickSet(obj, level) {
|
||||
isdb = false;
|
||||
window.setTimeout(function() {
|
||||
if (isdb) return;
|
||||
if (level >= 3) {
|
||||
expandMoreLevel(obj, level);// 单击
|
||||
} else {
|
||||
expandSecendLevel(obj, level);// 单击
|
||||
}
|
||||
}, 300);
|
||||
isdb = false;
|
||||
window.setTimeout(function() {
|
||||
if (isdb) return;
|
||||
if (level >= 3) {
|
||||
expandMoreLevel(obj, level);// 单击
|
||||
} else {
|
||||
expandSecendLevel(obj, level);// 单击
|
||||
}
|
||||
}, 300);
|
||||
}
|
||||
|
||||
function clickSpanSet(obj, level) {
|
||||
clickSet($(obj).closest('span.row-right-row-span').find('button.row-right-button')[0],level);
|
||||
clickSet($(obj).closest('span.row-right-row-span').find('button.row-right-button')[0],level);
|
||||
}
|
||||
|
||||
@ -1,71 +1,71 @@
|
||||
function toAddPublish2() {
|
||||
$("#title").val(title);
|
||||
$("#nav, #content").hide();
|
||||
$("#add_div").show();
|
||||
$("#title").val(title);
|
||||
$("#nav, #content").hide();
|
||||
$("#add_div").show();
|
||||
}
|
||||
|
||||
// 新增
|
||||
function toAddPublish() {
|
||||
$("#title").val(title);
|
||||
addPublishInstance();
|
||||
$("#title").val(title);
|
||||
addPublishInstance();
|
||||
}
|
||||
|
||||
function giveUp() {
|
||||
$("#add_div").hide();
|
||||
$("#nav, #content").show();
|
||||
$("#title").val(title);
|
||||
$("#add_div").hide();
|
||||
$("#nav, #content").show();
|
||||
$("#title").val(title);
|
||||
}
|
||||
|
||||
function addPublishInstance() {
|
||||
var title = $("#title").val();
|
||||
if (title == "") {
|
||||
window.top.$.simpleAlert("[标题]不允许为空");
|
||||
return;
|
||||
}
|
||||
if (title.length > 120) {
|
||||
window.top.$.simpleAlert("[标题]长度不允许超过120");
|
||||
return;
|
||||
}
|
||||
|
||||
var params = {
|
||||
title : $("#title").val(),
|
||||
wsId: $("#wsId").val(),
|
||||
teamId: $("#teamId").val(),
|
||||
teamName: $("#teamName").val()
|
||||
};
|
||||
awsui.ajax.request({
|
||||
url : "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal.publisher_save",
|
||||
data : params,
|
||||
type : "post",
|
||||
ok : function(msg) {
|
||||
$("#nav, #content").show();
|
||||
$("#add_div").hide();
|
||||
if (msg.result == "ok") {
|
||||
var data = msg.data.data;
|
||||
openPublishInstance(data.processInstId, data.taskInstId);
|
||||
$("#add_div").hide();
|
||||
$("#nav, #content").show();
|
||||
$("#title").val("流程发布");
|
||||
refreshProcessList();
|
||||
} else {
|
||||
window.top.$.simpleAlert("保存失败", "error", 2000);
|
||||
}
|
||||
},
|
||||
err : function(r) {
|
||||
}
|
||||
});
|
||||
var title = $("#title").val();
|
||||
if (title == "") {
|
||||
window.top.$.simpleAlert("[标题]不允许为空");
|
||||
return;
|
||||
}
|
||||
if (title.length > 120) {
|
||||
window.top.$.simpleAlert("[标题]长度不允许超过120");
|
||||
return;
|
||||
}
|
||||
|
||||
var params = {
|
||||
title : $("#title").val(),
|
||||
wsId: $("#wsId").val(),
|
||||
teamId: $("#teamId").val(),
|
||||
teamName: $("#teamName").val()
|
||||
};
|
||||
awsui.ajax.request({
|
||||
url : "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal.publisher_save",
|
||||
data : params,
|
||||
type : "post",
|
||||
ok : function(msg) {
|
||||
$("#nav, #content").show();
|
||||
$("#add_div").hide();
|
||||
if (msg.result == "ok") {
|
||||
var data = msg.data.data;
|
||||
openPublishInstance(data.processInstId, data.taskInstId);
|
||||
$("#add_div").hide();
|
||||
$("#nav, #content").show();
|
||||
$("#title").val("流程发布");
|
||||
refreshProcessList();
|
||||
} else {
|
||||
window.top.$.simpleAlert("保存失败", "error", 2000);
|
||||
}
|
||||
},
|
||||
err : function(r) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function openPublishInstance(processInstId, taskInstId, openState) {
|
||||
if (openState == undefined) {
|
||||
openState = "";
|
||||
}
|
||||
$('#processInstId').val(processInstId);
|
||||
$('#taskInstId').val(taskInstId);
|
||||
$('#openState').val(openState);
|
||||
$("#openNewPage").submit();// 摒弃window.open方式
|
||||
|
||||
// var url = "./w?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal.publisher_handle"
|
||||
if (openState == undefined) {
|
||||
openState = "";
|
||||
}
|
||||
$('#processInstId').val(processInstId);
|
||||
$('#taskInstId').val(taskInstId);
|
||||
$('#openState').val(openState);
|
||||
$("#openNewPage").submit();// 摒弃window.open方式
|
||||
|
||||
// var url = "./w?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal.publisher_handle"
|
||||
// + "&processInstId=" + processInstId + "&taskInstId=" + taskInstId + "&openState=" + openState;
|
||||
// window.open(url, "newwindow","top=0,left=0,toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no,status=no,width="+ (screen.availWidth - 10) +",height="+ (screen.availHeight-50));
|
||||
}
|
||||
@ -73,238 +73,238 @@ function openPublishInstance(processInstId, taskInstId, openState) {
|
||||
|
||||
//选中checkbox
|
||||
function selectTrCheckBox(obj) {
|
||||
var checked = false;
|
||||
$("#tbody1 .awsui-checkbox").each(function(){
|
||||
if ($(this).prop("checked")) {
|
||||
checked = true;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
if (checked) {
|
||||
$("#removePulishInstance").show();
|
||||
} else {
|
||||
$("#removePulishInstance").hide();
|
||||
}
|
||||
var checked = false;
|
||||
$("#tbody1 .awsui-checkbox").each(function(){
|
||||
if ($(this).prop("checked")) {
|
||||
checked = true;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
if (checked) {
|
||||
$("#removePulishInstance").show();
|
||||
} else {
|
||||
$("#removePulishInstance").hide();
|
||||
}
|
||||
}
|
||||
|
||||
//删除task
|
||||
function removePublishInstance() {
|
||||
var processInstIds = "";
|
||||
$("#tbody1 .awsui-checkbox").each(function(){
|
||||
if ($(this).prop("checked")) {
|
||||
processInstIds += $(this).val() + ",";
|
||||
}
|
||||
})
|
||||
|
||||
if (processInstIds == "") {
|
||||
$.simpleAlert("请选择要删除的任务");
|
||||
return;
|
||||
}
|
||||
|
||||
var options = {
|
||||
title : "提示",
|
||||
content : "确定删除吗?",
|
||||
model : false,
|
||||
onConfirm : function() {
|
||||
var params = {
|
||||
processInstIds: processInstIds
|
||||
}
|
||||
$.ajax({
|
||||
url : "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal.publisher_remove",
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
window.top.$.simpleAlert("删除成功", "ok", 2000);
|
||||
} else {
|
||||
var errNum = msg.data.errNum;
|
||||
var errProcessInstTitles = msg.msg;
|
||||
window.top.$.simpleAlert("任务[" + errProcessInstTitles + "]删除失败", "error");
|
||||
}
|
||||
var successNum = msg.data.successNum;
|
||||
totalData1 = totalData1 - successNum;
|
||||
if (totalData1 <= currentpage1 * pageLimit) {
|
||||
if (currentpage1 > 0) {
|
||||
currentpage1 = currentpage1 - 1;
|
||||
}
|
||||
}
|
||||
refreshProcessList();
|
||||
$("#removePulishInstance").hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
window.top.$.confirm(options);;
|
||||
var processInstIds = "";
|
||||
$("#tbody1 .awsui-checkbox").each(function(){
|
||||
if ($(this).prop("checked")) {
|
||||
processInstIds += $(this).val() + ",";
|
||||
}
|
||||
})
|
||||
|
||||
if (processInstIds == "") {
|
||||
$.simpleAlert("请选择要删除的任务");
|
||||
return;
|
||||
}
|
||||
|
||||
var options = {
|
||||
title : "提示",
|
||||
content : "确定删除吗?",
|
||||
model : false,
|
||||
onConfirm : function() {
|
||||
var params = {
|
||||
processInstIds: processInstIds
|
||||
}
|
||||
$.ajax({
|
||||
url : "./jd?sid=" + $("#sid").val() + "&cmd=com.actionsoft.apps.coe.pal.publisher_remove",
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
window.top.$.simpleAlert("删除成功", "ok", 2000);
|
||||
} else {
|
||||
var errNum = msg.data.errNum;
|
||||
var errProcessInstTitles = msg.msg;
|
||||
window.top.$.simpleAlert("任务[" + errProcessInstTitles + "]删除失败", "error");
|
||||
}
|
||||
var successNum = msg.data.successNum;
|
||||
totalData1 = totalData1 - successNum;
|
||||
if (totalData1 <= currentpage1 * pageLimit) {
|
||||
if (currentpage1 > 0) {
|
||||
currentpage1 = currentpage1 - 1;
|
||||
}
|
||||
}
|
||||
refreshProcessList();
|
||||
$("#removePulishInstance").hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
window.top.$.confirm(options);;
|
||||
}
|
||||
|
||||
//刷新页面,用于流程办理关闭时调用
|
||||
function refreshProcessList() {
|
||||
var tit = $(".network_tabs").find("a[tit][class=active]").attr("tit");
|
||||
if (tit == "todo") {
|
||||
loadOutputData1(currentpage1, pageLimit, initPage1);
|
||||
var tit = $(".network_tabs").find("a[tit][class=active]").attr("tit");
|
||||
if (tit == "todo") {
|
||||
loadOutputData1(currentpage1, pageLimit, initPage1);
|
||||
} else if (tit == "done") {
|
||||
loadOutputData2(currentpage2, pageLimit, initPage2);
|
||||
loadOutputData2(currentpage2, pageLimit, initPage2);
|
||||
} else if (tit == "history") {
|
||||
loadOutputData3(currentpage3, pageLimit, initPage3);
|
||||
loadOutputData3(currentpage3, pageLimit, initPage3);
|
||||
}
|
||||
|
||||
$("#select_all").check().on("ifChanged", function(){
|
||||
var isChecked = $(this).prop("checked");
|
||||
if (isChecked) {
|
||||
$("#tbody1 .awsui-checkbox").check("option", "checked", true);
|
||||
} else {
|
||||
$("#tbody1 .awsui-checkbox").check("option", "checked", false);
|
||||
}
|
||||
})
|
||||
|
||||
$("#select_all").check().on("ifChanged", function(){
|
||||
var isChecked = $(this).prop("checked");
|
||||
if (isChecked) {
|
||||
$("#tbody1 .awsui-checkbox").check("option", "checked", true);
|
||||
} else {
|
||||
$("#tbody1 .awsui-checkbox").check("option", "checked", false);
|
||||
}
|
||||
})
|
||||
}
|
||||
/*************************************************分页 begin******************************************************/
|
||||
function initPage1() {
|
||||
$("#Pagination1").pagination(totalData1, {
|
||||
$("#Pagination1").pagination(totalData1, {
|
||||
pageLimit:pageLimit,
|
||||
showItem:showItem,
|
||||
currentPage:currentpage1,
|
||||
ellipseCount:0,
|
||||
prevText:"上一页",
|
||||
nextText:"下一页",
|
||||
ellipseText:"...",
|
||||
showIfSinglePage:false,
|
||||
loadFirstPage:false,
|
||||
showDisplay:true,
|
||||
callback:function(pageNum, start){
|
||||
currentpage1 = pageNum - 1;
|
||||
loadOutputData1(pageNum - 1, showItem);
|
||||
}
|
||||
});
|
||||
showItem:showItem,
|
||||
currentPage:currentpage1,
|
||||
ellipseCount:0,
|
||||
prevText:"上一页",
|
||||
nextText:"下一页",
|
||||
ellipseText:"...",
|
||||
showIfSinglePage:false,
|
||||
loadFirstPage:false,
|
||||
showDisplay:true,
|
||||
callback:function(pageNum, start){
|
||||
currentpage1 = pageNum - 1;
|
||||
loadOutputData1(pageNum - 1, showItem);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function loadOutputData1(pageNum, size, callback) {
|
||||
var url = "./jd?sid=" + encodeURIComponent($("#sid").val()) + "&cmd=com.actionsoft.apps.coe.pal.publisher_tasklist";
|
||||
var params = {
|
||||
start : pageNum,
|
||||
size : size
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
$("#tbody1").empty().html(msg.data.html);
|
||||
$(window).trigger('resize');
|
||||
totalData1 = msg.data.totalSize;
|
||||
$(".awsui-checkbox").check();
|
||||
$(".awsui-checkbox").on("ifChanged", function(){
|
||||
selectTrCheckBox($(this));
|
||||
});
|
||||
if (parent.window.setHeight) {
|
||||
parent.window.setHeight();
|
||||
}
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
|
||||
$("#select_all").check().on("ifChanged", function(){
|
||||
var isChecked = $(this).prop("checked");
|
||||
if (isChecked) {
|
||||
$("#tbody1 .awsui-checkbox").check("option", "checked", true);
|
||||
} else {
|
||||
$("#tbody1 .awsui-checkbox").check("option", "checked", false);
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
var url = "./jd?sid=" + encodeURIComponent($("#sid").val()) + "&cmd=com.actionsoft.apps.coe.pal.publisher_tasklist";
|
||||
var params = {
|
||||
start : pageNum,
|
||||
size : size
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
$("#tbody1").empty().html(msg.data.html);
|
||||
$(window).trigger('resize');
|
||||
totalData1 = msg.data.totalSize;
|
||||
$(".awsui-checkbox").check();
|
||||
$(".awsui-checkbox").on("ifChanged", function(){
|
||||
selectTrCheckBox($(this));
|
||||
});
|
||||
if (parent.window.setHeight) {
|
||||
parent.window.setHeight();
|
||||
}
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
|
||||
$("#select_all").check().on("ifChanged", function(){
|
||||
var isChecked = $(this).prop("checked");
|
||||
if (isChecked) {
|
||||
$("#tbody1 .awsui-checkbox").check("option", "checked", true);
|
||||
} else {
|
||||
$("#tbody1 .awsui-checkbox").check("option", "checked", false);
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function initPage2() {
|
||||
$("#Pagination2").pagination(totalData2, {
|
||||
pageLimit:pageLimit,
|
||||
showItem:showItem,
|
||||
currentPage:currentpage2,
|
||||
ellipseCount:0,
|
||||
prevText:"上一页",
|
||||
nextText:"下一页",
|
||||
ellipseText:"...",
|
||||
showIfSinglePage:false,
|
||||
loadFirstPage:false,
|
||||
showDisplay:true,
|
||||
display:"显示 {0} 到 {1} 条, 共 {2} 条",
|
||||
callback:function(pageNum, start){
|
||||
currentpage2 = pageNum - 1;
|
||||
loadOutputData2(pageNum - 1, showItem);
|
||||
}
|
||||
$("#Pagination2").pagination(totalData2, {
|
||||
pageLimit:pageLimit,
|
||||
showItem:showItem,
|
||||
currentPage:currentpage2,
|
||||
ellipseCount:0,
|
||||
prevText:"上一页",
|
||||
nextText:"下一页",
|
||||
ellipseText:"...",
|
||||
showIfSinglePage:false,
|
||||
loadFirstPage:false,
|
||||
showDisplay:true,
|
||||
display:"显示 {0} 到 {1} 条, 共 {2} 条",
|
||||
callback:function(pageNum, start){
|
||||
currentpage2 = pageNum - 1;
|
||||
loadOutputData2(pageNum - 1, showItem);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function loadOutputData2(start, size, callback) {
|
||||
var url = "./jd?sid=" + encodeURIComponent($("#sid").val()) + "&cmd=com.actionsoft.apps.coe.pal.publisher_historytasklist";
|
||||
pageNumber = start;
|
||||
var params = {
|
||||
start : start,
|
||||
size : size
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
$("#tbody2").empty().html(msg.data.html);
|
||||
$(window).trigger('resize');
|
||||
totalData2 = msg.data.totalSize;
|
||||
if (parent.window.setHeight) {
|
||||
parent.window.setHeight();
|
||||
}
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
}
|
||||
});
|
||||
var url = "./jd?sid=" + encodeURIComponent($("#sid").val()) + "&cmd=com.actionsoft.apps.coe.pal.publisher_historytasklist";
|
||||
pageNumber = start;
|
||||
var params = {
|
||||
start : start,
|
||||
size : size
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
$("#tbody2").empty().html(msg.data.html);
|
||||
$(window).trigger('resize');
|
||||
totalData2 = msg.data.totalSize;
|
||||
if (parent.window.setHeight) {
|
||||
parent.window.setHeight();
|
||||
}
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function initPage3() {
|
||||
$("#Pagination3").pagination(totalData3, {
|
||||
pageLimit:pageLimit,
|
||||
showItem:showItem,
|
||||
currentPage:currentpage3,
|
||||
ellipseCount:0,
|
||||
prevText:"上一页",
|
||||
nextText:"下一页",
|
||||
ellipseText:"...",
|
||||
showIfSinglePage:false,
|
||||
loadFirstPage:false,
|
||||
showDisplay:true,
|
||||
display:"显示 {0} 到 {1} 条, 共 {2} 条",
|
||||
callback:function(pageNum, start){
|
||||
currentpage3 = pageNum - 1;
|
||||
loadOutputData3(pageNum - 1, showItem);
|
||||
}
|
||||
});
|
||||
$("#Pagination3").pagination(totalData3, {
|
||||
pageLimit:pageLimit,
|
||||
showItem:showItem,
|
||||
currentPage:currentpage3,
|
||||
ellipseCount:0,
|
||||
prevText:"上一页",
|
||||
nextText:"下一页",
|
||||
ellipseText:"...",
|
||||
showIfSinglePage:false,
|
||||
loadFirstPage:false,
|
||||
showDisplay:true,
|
||||
display:"显示 {0} 到 {1} 条, 共 {2} 条",
|
||||
callback:function(pageNum, start){
|
||||
currentpage3 = pageNum - 1;
|
||||
loadOutputData3(pageNum - 1, showItem);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function loadOutputData3(start, size, callback) {
|
||||
var url = "./jd?sid=" + encodeURIComponent($("#sid").val()) + "&cmd=com.actionsoft.apps.coe.pal.publisher_processlist";
|
||||
pageNumber = start;
|
||||
var params = {
|
||||
start : start,
|
||||
size : size
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
$("#tbody3").empty().html(msg.data.html);
|
||||
$(window).trigger('resize');
|
||||
totalData3 = msg.data.totalSize;
|
||||
if (parent.window.setHeight) {
|
||||
parent.window.setHeight();
|
||||
}
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
}
|
||||
});
|
||||
var url = "./jd?sid=" + encodeURIComponent($("#sid").val()) + "&cmd=com.actionsoft.apps.coe.pal.publisher_processlist";
|
||||
pageNumber = start;
|
||||
var params = {
|
||||
start : start,
|
||||
size : size
|
||||
};
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false,
|
||||
data : params,
|
||||
type : "post",
|
||||
success : function(msg) {
|
||||
$("#tbody3").empty().html(msg.data.html);
|
||||
$(window).trigger('resize');
|
||||
totalData3 = msg.data.totalSize;
|
||||
if (parent.window.setHeight) {
|
||||
parent.window.setHeight();
|
||||
}
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function loadHistoryRecord() {
|
||||
@ -314,11 +314,11 @@ function loadHistoryRecord() {
|
||||
/*************************************************分页 end******************************************************/
|
||||
|
||||
function refreshTab() {
|
||||
$('#nav').children('a').each(function() {
|
||||
if ($(this).hasClass('active')) {
|
||||
$(this).click();
|
||||
return false;
|
||||
}
|
||||
})
|
||||
$('#nav').children('a').each(function() {
|
||||
if ($(this).hasClass('active')) {
|
||||
$(this).click();
|
||||
return false;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -10,140 +10,140 @@ var drpSourceParentId;
|
||||
var isOpenMainIfranme = false;
|
||||
var repositoryTree;
|
||||
$(document).ready(function() {
|
||||
initTree();
|
||||
repositoryTree.expandNode($("a[tbindex=process]"), true);
|
||||
$("a[tbindex=process]").click();
|
||||
initTree();
|
||||
repositoryTree.expandNode($("a[tbindex=process]"), true);
|
||||
$("a[tbindex=process]").click();
|
||||
});
|
||||
|
||||
function initTree() {
|
||||
$("#repositoryTree").empty();
|
||||
var wsId = $("#wsId").val();
|
||||
if (wsId) {
|
||||
var setting = getSetings();
|
||||
repositoryTree = awsui.tree.init($("#repositoryTree"), setting);
|
||||
$("#repositoryTree").css("height", "auto");
|
||||
} else {
|
||||
window.top.$.simpleAlert("请选择流程资产", "info", 2000);
|
||||
}
|
||||
if (repositoryTree.getSelectedNode() == undefined) {
|
||||
repositoryTree.selectNode(repositoryTree.config.data[0].id, true);
|
||||
}
|
||||
$("#repositoryTree").empty();
|
||||
var wsId = $("#wsId").val();
|
||||
if (wsId) {
|
||||
var setting = getSetings();
|
||||
repositoryTree = awsui.tree.init($("#repositoryTree"), setting);
|
||||
$("#repositoryTree").css("height", "auto");
|
||||
} else {
|
||||
window.top.$.simpleAlert("请选择流程资产", "info", 2000);
|
||||
}
|
||||
if (repositoryTree.getSelectedNode() == undefined) {
|
||||
repositoryTree.selectNode(repositoryTree.config.data[0].id, true);
|
||||
}
|
||||
}
|
||||
|
||||
function getSetings() {
|
||||
var setting = {
|
||||
sort : true,
|
||||
dblClickToExpand : true,
|
||||
event : {
|
||||
onClick : clickNode
|
||||
},
|
||||
data : {
|
||||
keep : {
|
||||
parent : true
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
setting.dataModel = {
|
||||
data : data
|
||||
};
|
||||
return setting;
|
||||
var setting = {
|
||||
sort : true,
|
||||
dblClickToExpand : true,
|
||||
event : {
|
||||
onClick : clickNode
|
||||
},
|
||||
data : {
|
||||
keep : {
|
||||
parent : true
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
setting.dataModel = {
|
||||
data : data
|
||||
};
|
||||
return setting;
|
||||
}
|
||||
|
||||
function clickNode(treeNode) {
|
||||
if (treeNode.id.length == 36) {
|
||||
openDesginer(treeNode.id, 0, treeNode.name, "", treeNode.versionId, false, "1");
|
||||
} else {
|
||||
if (processRootId != "") {
|
||||
openDesginer(processRootId, 0, treeNode.name, "", "", false, "1");
|
||||
}
|
||||
}
|
||||
if (treeNode.id.length == 36) {
|
||||
openDesginer(treeNode.id, 0, treeNode.name, "", treeNode.versionId, false, "1");
|
||||
} else {
|
||||
if (processRootId != "") {
|
||||
openDesginer(processRootId, 0, treeNode.name, "", "", false, "1");
|
||||
}
|
||||
}
|
||||
}
|
||||
function openDesginer(uuid, openType, plName, appId, processVersionId,
|
||||
isOpenDialog, collaboration) {
|
||||
if(collaboration == undefined || collaboration == null) {
|
||||
collaboration = "0";
|
||||
}
|
||||
var params = {
|
||||
sid : encodeURIComponent(jQuery('#sid').val()),
|
||||
cmd : "com.actionsoft.apps.coe.pal_pl_repository_designer_viewer",
|
||||
uuid : uuid,
|
||||
openType : openType,
|
||||
processDefId : processVersionId,
|
||||
collaboration : collaboration,
|
||||
teamId : "",
|
||||
perms: "v",
|
||||
filePerms: filePerms
|
||||
}, url, options;
|
||||
if (typeof (isOpenDialog) == "boolean" && isOpenDialog) {// 打开与bpmn关联的多个版本
|
||||
params = {
|
||||
sid : encodeURIComponent(jQuery('#sid').val()),
|
||||
cmd : "com.actionsoft.apps.coe.pal_pl_repository_version",
|
||||
uuid : uuid,
|
||||
appId : appId,
|
||||
processVersionId : processVersionId
|
||||
};
|
||||
url = "./w?" + connectParams(params);
|
||||
options = {
|
||||
buttons : [ // 按钮组
|
||||
{
|
||||
text : '关闭',
|
||||
handler : function() {
|
||||
window.top.closeAwsDialog();
|
||||
}
|
||||
} ]
|
||||
}
|
||||
window.top.openAwsDialog(url, plName, 770, 415, options);
|
||||
return;
|
||||
}
|
||||
url = "./w?" + connectParams(params);
|
||||
$("#disignerIframe").attr("src", url).attr("uuid", uuid);
|
||||
isOpenDialog, collaboration) {
|
||||
if(collaboration == undefined || collaboration == null) {
|
||||
collaboration = "0";
|
||||
}
|
||||
var params = {
|
||||
sid : encodeURIComponent(jQuery('#sid').val()),
|
||||
cmd : "com.actionsoft.apps.coe.pal_pl_repository_designer_viewer",
|
||||
uuid : uuid,
|
||||
openType : openType,
|
||||
processDefId : processVersionId,
|
||||
collaboration : collaboration,
|
||||
teamId : "",
|
||||
perms: "v",
|
||||
filePerms: filePerms
|
||||
}, url, options;
|
||||
if (typeof (isOpenDialog) == "boolean" && isOpenDialog) {// 打开与bpmn关联的多个版本
|
||||
params = {
|
||||
sid : encodeURIComponent(jQuery('#sid').val()),
|
||||
cmd : "com.actionsoft.apps.coe.pal_pl_repository_version",
|
||||
uuid : uuid,
|
||||
appId : appId,
|
||||
processVersionId : processVersionId
|
||||
};
|
||||
url = "./w?" + connectParams(params);
|
||||
options = {
|
||||
buttons : [ // 按钮组
|
||||
{
|
||||
text : '关闭',
|
||||
handler : function() {
|
||||
window.top.closeAwsDialog();
|
||||
}
|
||||
} ]
|
||||
}
|
||||
window.top.openAwsDialog(url, plName, 770, 415, options);
|
||||
return;
|
||||
}
|
||||
url = "./w?" + connectParams(params);
|
||||
$("#disignerIframe").attr("src", url).attr("uuid", uuid);
|
||||
}
|
||||
|
||||
function connectParams(params) {
|
||||
var connParms = "";
|
||||
if (typeof (params) == "object") {
|
||||
for ( var i in params) {
|
||||
connParms += i + "=" + params[i] + "&";
|
||||
}
|
||||
}
|
||||
var connParms = "";
|
||||
if (typeof (params) == "object") {
|
||||
for ( var i in params) {
|
||||
connParms += i + "=" + params[i] + "&";
|
||||
}
|
||||
}
|
||||
|
||||
return connParms.substring(0, connParms.length - 1);
|
||||
return connParms.substring(0, connParms.length - 1);
|
||||
}
|
||||
|
||||
// 展开所有节点
|
||||
function expandNodes(zTree, nodes) {
|
||||
if (!nodes)
|
||||
return;
|
||||
for (var i = 0, l = nodes.length; i < l; i++) {
|
||||
zTree.expandNode(nodes[i], true, false, false);
|
||||
if (nodes[i].isParent) {
|
||||
expandNodes(nodes[i].children);
|
||||
}
|
||||
}
|
||||
if (!nodes)
|
||||
return;
|
||||
for (var i = 0, l = nodes.length; i < l; i++) {
|
||||
zTree.expandNode(nodes[i], true, false, false);
|
||||
if (nodes[i].isParent) {
|
||||
expandNodes(nodes[i].children);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 自动展开两级节点
|
||||
function expandNodesFirst(zTree, nodes) {
|
||||
if (!nodes)
|
||||
return;
|
||||
for (var i = 0, l = 1; i < l; i++) {
|
||||
zTree.expandNode(nodes[i], true, false, false);
|
||||
if (nodes[i].isParent && nodes[i].zAsync) {
|
||||
expandNodesFirst(nodes[i].children);
|
||||
}
|
||||
}
|
||||
if (!nodes)
|
||||
return;
|
||||
for (var i = 0, l = 1; i < l; i++) {
|
||||
zTree.expandNode(nodes[i], true, false, false);
|
||||
if (nodes[i].isParent && nodes[i].zAsync) {
|
||||
expandNodesFirst(nodes[i].children);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 自动展开n级节点
|
||||
function expandNodesN(zTree, nodes, n) {
|
||||
if (!nodes)
|
||||
return;
|
||||
for (var i = 0, l = n; i < l; i++) {
|
||||
zTree.expandNode(nodes[i], true, false, false);
|
||||
if (nodes[i].isParent) {
|
||||
expandNodesN(zTree, nodes[i].children, n);
|
||||
}
|
||||
}
|
||||
if (!nodes)
|
||||
return;
|
||||
for (var i = 0, l = n; i < l; i++) {
|
||||
zTree.expandNode(nodes[i], true, false, false);
|
||||
if (nodes[i].isParent) {
|
||||
expandNodesN(zTree, nodes[i].children, n);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,17 +1,17 @@
|
||||
$(document).ready(function(){
|
||||
renderBannerXPagesConfigPage();
|
||||
renderBannerXPagesConfigPage();
|
||||
});
|
||||
function renderBannerXPagesConfigPage(){
|
||||
var contentStr="<div class='xpagePublishBanner-wrap'>";
|
||||
//contentStr+="<h3>流程发布门户-轮播图</h3>";
|
||||
var contentStr="<div class='xpagePublishBanner-wrap'>";
|
||||
//contentStr+="<h3>流程发布门户-轮播图</h3>";
|
||||
contentStr+="<div class='xpages-label-text'>轮播图</div>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="</div>";
|
||||
$(".cwapp-right").append(contentStr);
|
||||
$(".cwapp-right").append(contentStr);
|
||||
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_banner_msg";
|
||||
//$(".xpagesContent").empty();
|
||||
$(".xpagePublishBanner-wrap").find(".xpagesContent").val(url);
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_banner_msg";
|
||||
//$(".xpagesContent").empty();
|
||||
$(".xpagePublishBanner-wrap").find(".xpagesContent").val(url);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
$(document).ready(function(){
|
||||
renderCommonXPagesConfigPage();
|
||||
renderCommonXPagesConfigPage();
|
||||
});
|
||||
function renderCommonXPagesConfigPage(){
|
||||
var contentStr="<div class='xpagePublishCommon-wrap'>";
|
||||
var contentStr="<div class='xpagePublishCommon-wrap'>";
|
||||
//contentStr+="<h3>流程发布门户-常用流程</h3>";
|
||||
contentStr+="<div class='xpages-label-text'>设置显示个数</div>";
|
||||
contentStr+="<input id='commonxpage_tcount' type='text' placeholder='请输入显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="</div>";
|
||||
$(".cwapp-right").append(contentStr);
|
||||
$(".cwapp-right").append(contentStr);
|
||||
|
||||
var cwUrl = getCwUrl();//获取之前的存储的url链接
|
||||
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
|
||||
@ -17,18 +17,18 @@ function renderCommonXPagesConfigPage(){
|
||||
|
||||
}
|
||||
|
||||
$("#commonxpage_tcount").blur(function(){
|
||||
var count = $('#commonxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_common_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
$("#commonxpage_tcount").blur(function(){
|
||||
var count = $('#commonxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_common_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
$(".xpagePublishCommon-wrap").find(".xpagesContent").val(url);
|
||||
|
||||
}else{
|
||||
}else{
|
||||
$(".xpagePublishCommon-wrap").find(".xpagesContent").val("");
|
||||
//$(".xpagesContent").empty();
|
||||
}
|
||||
});
|
||||
//$(".xpagesContent").empty();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getParamString(url,name) {
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
$(document).ready(function(){
|
||||
renderCommonXPagesConfigPage();
|
||||
renderCommonXPagesConfigPage();
|
||||
});
|
||||
function renderCommonXPagesConfigPage(){
|
||||
var contentStr="<div class='xpagePublishControlMap-wrap'>";
|
||||
var contentStr="<div class='xpagePublishControlMap-wrap'>";
|
||||
//contentStr+="<h3>流程发布门户-控制地图</h3>";
|
||||
contentStr+="<div class='xpages-label-text'>设置显示个数</div>";
|
||||
contentStr+="<input id='commonxpage_tcount' type='text' placeholder='请输入显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="</div>";
|
||||
$(".cwapp-right").append(contentStr);
|
||||
$(".cwapp-right").append(contentStr);
|
||||
|
||||
|
||||
var cwUrl = getCwUrl();//获取之前的存储的url链接
|
||||
@ -19,17 +19,17 @@ function renderCommonXPagesConfigPage(){
|
||||
}
|
||||
|
||||
|
||||
$("#commonxpage_tcount").blur(function(){
|
||||
var count = $('#commonxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_control_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
$("#commonxpage_tcount").blur(function(){
|
||||
var count = $('#commonxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_control_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
$(".xpagePublishControlMap-wrap").find(".xpagesContent").val(url);
|
||||
|
||||
}else{
|
||||
}else{
|
||||
$(".xpagePublishControlMap-wrap").find(".xpagesContent").val("");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
$(document).ready(function(){
|
||||
renderCommonXPagesConfigPage();
|
||||
renderCommonXPagesConfigPage();
|
||||
});
|
||||
function renderCommonXPagesConfigPage(){
|
||||
var contentStr="<div class='xpagePublishDataMap-wrap'>";
|
||||
var contentStr="<div class='xpagePublishDataMap-wrap'>";
|
||||
contentStr+="<div class='xpages-label-text'>设置显示个数</div>";
|
||||
//contentStr+="<h3>流程发布门户-数据地图</h3><input id='commonxpage_tcount' type='text' placeholder='设置显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<input id='commonxpage_tcount' type='text' placeholder='请输入显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="</div>";
|
||||
$(".cwapp-right").append(contentStr);
|
||||
$(".cwapp-right").append(contentStr);
|
||||
|
||||
var cwUrl = getCwUrl();//获取之前的存储的url链接
|
||||
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
|
||||
@ -17,18 +17,18 @@ function renderCommonXPagesConfigPage(){
|
||||
|
||||
}
|
||||
|
||||
$("#commonxpage_tcount").blur(function(){
|
||||
var count = $('#commonxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_data_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$("#commonxpage_tcount").blur(function(){
|
||||
var count = $('#commonxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_data_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$(".xpagePublishDataMap-wrap").find(".xpagesContent").val(url);
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
$(".xpagePublishDataMap-wrap").find(".xpagesContent").val("");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
$(document).ready(function(){
|
||||
renderCommonXPagesConfigPage();
|
||||
renderCommonXPagesConfigPage();
|
||||
});
|
||||
function renderCommonXPagesConfigPage(){
|
||||
var contentStr="<div class='xpagePublishFrequency-wrap'>";
|
||||
var contentStr="<div class='xpagePublishFrequency-wrap'>";
|
||||
contentStr+="<div class='xpages-label-text'>设置显示个数</div>";
|
||||
//contentStr+="<h3>流程发布门户-高频流程</h3><input id='commonxpage_tcount' type='text' placeholder='设置显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<input id='commonxpage_tcount' type='text' placeholder='请输入显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="</div>";
|
||||
$(".cwapp-right").append(contentStr);
|
||||
$(".cwapp-right").append(contentStr);
|
||||
|
||||
var cwUrl = getCwUrl();//获取之前的存储的url链接
|
||||
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
|
||||
@ -17,18 +17,18 @@ function renderCommonXPagesConfigPage(){
|
||||
|
||||
}
|
||||
|
||||
$("#commonxpage_tcount").blur(function(){
|
||||
var count = $('#commonxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_frequency_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$("#commonxpage_tcount").blur(function(){
|
||||
var count = $('#commonxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_frequency_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$(".xpagePublishFrequency-wrap").find(".xpagesContent").val(url);
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
$(".xpagePublishFrequency-wrap").find(".xpagesContent").val("");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getParamString(url,name) {
|
||||
|
||||
@ -1,53 +1,53 @@
|
||||
var liHeight = 21;
|
||||
|
||||
function openPortal(sid, uuid, taskId) {
|
||||
// if (taskId == "") {
|
||||
if (true) {
|
||||
window
|
||||
.open("./w?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_page&uuid="
|
||||
+ uuid + "&sid=" + sid + "&taskId=" + taskId);// open Windows
|
||||
} else {
|
||||
// 打开流程手册
|
||||
$.simpleAlert('正在打开', 'loading');
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?sid=" + sid
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_outputreport_output_process_preview",
|
||||
data : {
|
||||
taskId : taskId
|
||||
},
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
$.simpleAlert("close");
|
||||
if (msg['data']) {
|
||||
var url = msg['data']['url'];
|
||||
console.log(url);
|
||||
window.open(url);
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert("close");
|
||||
$.simpleAlert(msg['msg'], 'info');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
// if (taskId == "") {
|
||||
if (true) {
|
||||
window
|
||||
.open("./w?cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_page&uuid="
|
||||
+ uuid + "&sid=" + sid + "&taskId=" + taskId);// open Windows
|
||||
} else {
|
||||
// 打开流程手册
|
||||
$.simpleAlert('正在打开', 'loading');
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd?sid=" + sid
|
||||
+ "&cmd=com.actionsoft.apps.coe.pal_outputreport_output_process_preview",
|
||||
data : {
|
||||
taskId : taskId
|
||||
},
|
||||
success : function(msg) {
|
||||
if (msg.result == "ok") {
|
||||
$.simpleAlert("close");
|
||||
if (msg['data']) {
|
||||
var url = msg['data']['url'];
|
||||
console.log(url);
|
||||
window.open(url);
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert("close");
|
||||
$.simpleAlert(msg['msg'], 'info');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
//对json进行降序排序函数
|
||||
//对json进行降序排序函数
|
||||
var colId="date"
|
||||
var desc = function(x,y)
|
||||
{
|
||||
return (x[colId] < y[colId]) ? 1 : -1
|
||||
}
|
||||
//对json进行升序排序函数
|
||||
var asc = function(x,y)
|
||||
{
|
||||
return (x[colId] > y[colId]) ? 1 : -1
|
||||
}
|
||||
var desc = function(x,y)
|
||||
{
|
||||
return (x[colId] < y[colId]) ? 1 : -1
|
||||
}
|
||||
//对json进行升序排序函数
|
||||
var asc = function(x,y)
|
||||
{
|
||||
return (x[colId] > y[colId]) ? 1 : -1
|
||||
}
|
||||
// JSON按照时间排序
|
||||
function sortByDate(arr) {
|
||||
arr.sort(desc);
|
||||
return arr;
|
||||
arr.sort(desc);
|
||||
return arr;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -60,25 +60,25 @@ var day = hour * 24;
|
||||
var halfamonth = day * 15;
|
||||
var month = day * 30;
|
||||
function transferDateFormat(dateTimeStamp) {
|
||||
if (dateTimeStamp == '') {
|
||||
return "";
|
||||
}
|
||||
var publishDate = new Date()
|
||||
publishDate.setTime(dateTimeStamp);
|
||||
var now = new Date();
|
||||
if (now.getFullYear() - publishDate.getFullYear() >= 1) {// 非今年发布
|
||||
return publishDate.Format("yyyy年M月");
|
||||
} else if (now.getTime() - dateTimeStamp <= minute) {// 一分钟内,刚刚
|
||||
return "刚刚";
|
||||
} else if (now.getTime() - dateTimeStamp <= hour) {
|
||||
return parseInt((now.getTime() - dateTimeStamp)/minute) + '分钟前';
|
||||
} else if (now.getTime() - dateTimeStamp <= (now.getHours())*hour +1) {
|
||||
return parseInt((now.getTime() - dateTimeStamp)/hour) + '小时前';
|
||||
} else if (now.getTime() - dateTimeStamp <= day + (now.getHours())*hour) {// 昨天
|
||||
return "昨天" + publishDate.Format("HH") + "点";
|
||||
} else {
|
||||
return publishDate.Format("M月d日");
|
||||
}
|
||||
if (dateTimeStamp == '') {
|
||||
return "";
|
||||
}
|
||||
var publishDate = new Date()
|
||||
publishDate.setTime(dateTimeStamp);
|
||||
var now = new Date();
|
||||
if (now.getFullYear() - publishDate.getFullYear() >= 1) {// 非今年发布
|
||||
return publishDate.Format("yyyy年M月");
|
||||
} else if (now.getTime() - dateTimeStamp <= minute) {// 一分钟内,刚刚
|
||||
return "刚刚";
|
||||
} else if (now.getTime() - dateTimeStamp <= hour) {
|
||||
return parseInt((now.getTime() - dateTimeStamp)/minute) + '分钟前';
|
||||
} else if (now.getTime() - dateTimeStamp <= (now.getHours())*hour +1) {
|
||||
return parseInt((now.getTime() - dateTimeStamp)/hour) + '小时前';
|
||||
} else if (now.getTime() - dateTimeStamp <= day + (now.getHours())*hour) {// 昨天
|
||||
return "昨天" + publishDate.Format("HH") + "点";
|
||||
} else {
|
||||
return publishDate.Format("M月d日");
|
||||
}
|
||||
}
|
||||
|
||||
// 对Date的扩展,将 Date 转化为指定格式的String
|
||||
@ -89,23 +89,23 @@ function transferDateFormat(dateTimeStamp) {
|
||||
// (new Date()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18
|
||||
|
||||
Date.prototype.Format = function(fmt) {
|
||||
var o = {
|
||||
"M+" : this.getMonth() + 1,
|
||||
"d+" : this.getDate(),
|
||||
"H+" : this.getHours(),
|
||||
"m+" : this.getMinutes(),
|
||||
"s+" : this.getSeconds(),
|
||||
"S+" : this.getMilliseconds()
|
||||
};
|
||||
if (/(y+)/.test(fmt)) {
|
||||
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "")
|
||||
.substr(4 - RegExp.$1.length));
|
||||
}
|
||||
for ( var k in o) {
|
||||
if (new RegExp("(" + k + ")").test(fmt)) {
|
||||
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k])
|
||||
: (("00" + o[k]).substr(String(o[k]).length)));
|
||||
}
|
||||
}
|
||||
return fmt;
|
||||
var o = {
|
||||
"M+" : this.getMonth() + 1,
|
||||
"d+" : this.getDate(),
|
||||
"H+" : this.getHours(),
|
||||
"m+" : this.getMinutes(),
|
||||
"s+" : this.getSeconds(),
|
||||
"S+" : this.getMilliseconds()
|
||||
};
|
||||
if (/(y+)/.test(fmt)) {
|
||||
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "")
|
||||
.substr(4 - RegExp.$1.length));
|
||||
}
|
||||
for ( var k in o) {
|
||||
if (new RegExp("(" + k + ")").test(fmt)) {
|
||||
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k])
|
||||
: (("00" + o[k]).substr(String(o[k]).length)));
|
||||
}
|
||||
}
|
||||
return fmt;
|
||||
}
|
||||
@ -1,14 +1,14 @@
|
||||
$(document).ready(function(){
|
||||
renderCommonXPagesConfigPage();
|
||||
renderCommonXPagesConfigPage();
|
||||
});
|
||||
function renderCommonXPagesConfigPage(){
|
||||
var contentStr="<div class='xpagePublishNotification-wrap'>";
|
||||
var contentStr="<div class='xpagePublishNotification-wrap'>";
|
||||
contentStr+="<div class='xpages-label-text'>设置显示个数</div>";
|
||||
//contentStr+="<h3>流程发布门户-发布动态</h3><input id='commonxpage_tcount' type='text' placeholder='设置显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<input id='commonxpage_tcount' type='text' placeholder='请输入显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="</div>";
|
||||
$(".cwapp-right").append(contentStr);
|
||||
$(".cwapp-right").append(contentStr);
|
||||
|
||||
var cwUrl = getCwUrl();//获取之前的存储的url链接
|
||||
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
|
||||
@ -17,18 +17,18 @@ function renderCommonXPagesConfigPage(){
|
||||
|
||||
}
|
||||
|
||||
$("#commonxpage_tcount").blur(function(){
|
||||
var count = $('#commonxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_notification_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$("#commonxpage_tcount").blur(function(){
|
||||
var count = $('#commonxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_notification_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$(".xpagePublishNotification-wrap").find(".xpagesContent").val(url);
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
$(".xpagePublishNotification-wrap").find(".xpagesContent").val("");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getParamString(url,name) {
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
$(document).ready(function(){
|
||||
renderCommonXPagesConfigPage();
|
||||
renderCommonXPagesConfigPage();
|
||||
});
|
||||
function renderCommonXPagesConfigPage(){
|
||||
var contentStr="<div class='xpagePublishOrgMap-wrap'>";
|
||||
var contentStr="<div class='xpagePublishOrgMap-wrap'>";
|
||||
contentStr+="<div class='xpages-label-text'>设置显示个数</div>";
|
||||
//contentStr+="<h3>流程发布门户-组织地图</h3><input id='commonxpage_tcount' type='text' placeholder='设置显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<input id='commonxpage_tcount' type='text' placeholder='请输入显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="</div>";
|
||||
$(".cwapp-right").append(contentStr);
|
||||
$(".cwapp-right").append(contentStr);
|
||||
|
||||
var cwUrl = getCwUrl();//获取之前的存储的url链接
|
||||
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
|
||||
@ -17,17 +17,17 @@ function renderCommonXPagesConfigPage(){
|
||||
|
||||
}
|
||||
|
||||
$("#commonxpage_tcount").blur(function(){
|
||||
var count = $('#commonxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_org_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$("#commonxpage_tcount").blur(function(){
|
||||
var count = $('#commonxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_org_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$(".xpagePublishOrgMap-wrap").find(".xpagesContent").val(url);
|
||||
}else{
|
||||
}else{
|
||||
$(".xpagePublishOrgMap-wrap").find(".xpagesContent").val("");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getParamString(url,name) {
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
$(document).ready(function(){
|
||||
renderCommonXPagesConfigPage();
|
||||
renderCommonXPagesConfigPage();
|
||||
});
|
||||
function renderCommonXPagesConfigPage(){
|
||||
var contentStr="<div class='xpagePublishParticipant-wrap'>";
|
||||
var contentStr="<div class='xpagePublishParticipant-wrap'>";
|
||||
contentStr+="<div class='xpages-label-text'>设置显示个数</div>";
|
||||
//contentStr+="<h3>流程发布门户-我参与的</h3><input id='systemxpage_tcount' type='text' placeholder='设置显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<input id='systemxpage_tcount' type='text' placeholder='请输入显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="</div>";
|
||||
$(".cwapp-right").append(contentStr);
|
||||
$(".cwapp-right").append(contentStr);
|
||||
|
||||
var cwUrl = getCwUrl();//获取之前的存储的url链接
|
||||
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
|
||||
@ -17,18 +17,18 @@ function renderCommonXPagesConfigPage(){
|
||||
|
||||
}
|
||||
|
||||
$("#systemxpage_tcount").blur(function(){
|
||||
var count = $('#systemxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_participant_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$("#systemxpage_tcount").blur(function(){
|
||||
var count = $('#systemxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_participant_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$(".xpagePublishParticipant-wrap").find(".xpagesContent").val(url);
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
$(".xpagePublishParticipant-wrap").find(".xpagesContent").val("");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getParamString(url,name) {
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
$(document).ready(function(){
|
||||
renderCommonXPagesConfigPage();
|
||||
renderCommonXPagesConfigPage();
|
||||
});
|
||||
function renderCommonXPagesConfigPage(){
|
||||
var contentStr="<div class='xpagePublishPostresponsibility-wrap'>";
|
||||
contentStr+="<div class='xpages-label-text'>设置显示个数</div>";
|
||||
//contentStr+="<h3>流程发布门户-岗位职责</h3><input id='systemxpage_tcount' type='text' placeholder='设置显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<input id='systemxpage_tcount' type='text' placeholder='请输入显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="</div>";
|
||||
$(".cwapp-right").append(contentStr);
|
||||
$(".cwapp-right").append(contentStr);
|
||||
|
||||
var cwUrl = getCwUrl();//获取之前的存储的url链接
|
||||
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
|
||||
@ -17,18 +17,18 @@ function renderCommonXPagesConfigPage(){
|
||||
|
||||
}
|
||||
|
||||
$("#systemxpage_tcount").blur(function(){
|
||||
var count = $('#systemxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_postresponsibility_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$("#systemxpage_tcount").blur(function(){
|
||||
var count = $('#systemxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_postresponsibility_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$(".xpagePublishPostresponsibility-wrap").find(".xpagesContent").val(url);
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
$(".xpagePublishPostresponsibility-wrap").find(".xpagesContent").val("");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getParamString(url,name) {
|
||||
|
||||
@ -1,19 +1,19 @@
|
||||
$(document).ready(function(){
|
||||
renderCommonXPagesConfigPage();
|
||||
renderCommonXPagesConfigPage();
|
||||
});
|
||||
function renderCommonXPagesConfigPage(){
|
||||
getProcessMapData();
|
||||
/*
|
||||
getProcessMapData();
|
||||
/*
|
||||
var contentStr="<div class='xpagePublishProcessMap-wrap'>";
|
||||
contentStr+="<div class='xpages-label-text'>请输入默认显示的资产库Id</div>";
|
||||
//contentStr+="<h3>流程发布门户-流程地图</h3>";
|
||||
contentStr+="<input id='commonxpage_wsId' type='text' placeholder='默认显示的资产库Id' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<div style='height:10px;width:10px;'></div>";
|
||||
//contentStr+="<h3>流程发布门户-流程地图</h3>";
|
||||
contentStr+="<input id='commonxpage_wsId' type='text' placeholder='默认显示的资产库Id' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<div style='height:10px;width:10px;'></div>";
|
||||
contentStr+="<div class='xpages-label-text'>请输入默认组织的单元Id</div>";
|
||||
contentStr+="<input id='commonxpage_orgId' type='text' placeholder='默认组织的单元Id' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="<input id='commonxpage_orgId' type='text' placeholder='默认组织的单元Id' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="</div>";
|
||||
$(".cwapp-right").append(contentStr);
|
||||
$(".cwapp-right").append(contentStr);
|
||||
|
||||
var cwUrl = getCwUrl();//获取之前的存储的url链接
|
||||
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
|
||||
@ -25,68 +25,68 @@ function renderCommonXPagesConfigPage(){
|
||||
}
|
||||
|
||||
|
||||
$("#commonxpage_wsId, #commonxpage_orgId").blur(function(){
|
||||
var wsId = $('#commonxpage_wsId').val();
|
||||
var orgId = $('#commonxpage_orgId').val();
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_processmap_msg&wsId="+wsId + "&orgId=" + orgId;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$("#commonxpage_wsId, #commonxpage_orgId").blur(function(){
|
||||
var wsId = $('#commonxpage_wsId').val();
|
||||
var orgId = $('#commonxpage_orgId').val();
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_processmap_msg&wsId="+wsId + "&orgId=" + orgId;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$(".xpagePublishProcessMap-wrap").find(".xpagesContent").val(url);
|
||||
});
|
||||
*/
|
||||
});
|
||||
*/
|
||||
}
|
||||
|
||||
function getProcessMapData() {
|
||||
var params = {};
|
||||
var url = './jd?sid=' + sid + '&cmd=com.actionsoft.apps.publisher_workspace_and_org_msg';
|
||||
awsui.ajax.post(url, params, function (responseObject) {
|
||||
if (responseObject['result'] == 'ok') {
|
||||
var wsList = responseObject["data"]["data"]['workspaces'];
|
||||
var orgList = responseObject["data"]["data"]['companys'];
|
||||
var contentStr = "<div class='xpagePublishProcessMap-wrap'>";
|
||||
contentStr += "<div class='xpages-label-text'>请选择默认显示的资产库</div>";
|
||||
contentStr += "<select class='publisher-wh-select txt xpages-select-text' style='width:95%'>";
|
||||
contentStr += "<option value=''>--请选择--</option>";
|
||||
for (var i = 0; i < wsList.length; i++) {
|
||||
var info = wsList[i];
|
||||
contentStr += '<option value="' + info.id + '" >' + info.name + '</option>';
|
||||
}
|
||||
contentStr += "</select>";
|
||||
contentStr += "<div class='xpages-label-text '>请选择默认组织</div>";
|
||||
contentStr += "<select class='publisher-org-select txt xpages-select-text' style='width:95%'>";
|
||||
contentStr += "<option value=''>--请选择--</option>";
|
||||
for (var i = 0; i < orgList.length; i++) {
|
||||
var info = orgList[i];
|
||||
contentStr += '<option value="' + info.id + '" >' + info.name + '</option>';
|
||||
}
|
||||
contentStr += "</select>";
|
||||
contentStr += "<textarea class='url xpagesContent'></textarea>";
|
||||
contentStr += "</div>";
|
||||
$(".cwapp-right").append(contentStr);
|
||||
var cwUrl = getCwUrl();//获取之前的存储的url链接
|
||||
if (cwUrl != null && cwUrl != undefined && cwUrl != "") {
|
||||
//$(".xpagePublishProcessMap-wrap").find(".xpagesContent").val(cwUrl);
|
||||
var wsId = getParamString(cwUrl, "wsId");
|
||||
var orgId = getParamString(cwUrl, "orgId");
|
||||
if (wsId != "" && orgId != null) {
|
||||
$('.publisher-wh-select').val(wsId);
|
||||
$('.publisher-org-select').val(orgId);
|
||||
}
|
||||
}
|
||||
$(".publisher-org-select").change(function () {
|
||||
var orgId = $('.publisher-org-select option:selected').val();
|
||||
var wsId = $('.publisher-wh-select option:selected').val();
|
||||
if (orgId != "" && wsId != "") {
|
||||
var url = "./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_processmap_msg&wsId=" + wsId + "&orgId=" + orgId;
|
||||
$(".xpagePublishProcessMap-wrap").find(".xpagesContent").val(url);
|
||||
} else {
|
||||
$(".xpagePublishProcessMap-wrap").find(".xpagesContent").val("");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$.simpleAlert(responseObject['msg'], responseObject['result']);
|
||||
}
|
||||
}, 'json');
|
||||
var params = {};
|
||||
var url = './jd?sid=' + sid + '&cmd=com.actionsoft.apps.publisher_workspace_and_org_msg';
|
||||
awsui.ajax.post(url, params, function (responseObject) {
|
||||
if (responseObject['result'] == 'ok') {
|
||||
var wsList = responseObject["data"]["data"]['workspaces'];
|
||||
var orgList = responseObject["data"]["data"]['companys'];
|
||||
var contentStr = "<div class='xpagePublishProcessMap-wrap'>";
|
||||
contentStr += "<div class='xpages-label-text'>请选择默认显示的资产库</div>";
|
||||
contentStr += "<select class='publisher-wh-select txt xpages-select-text' style='width:95%'>";
|
||||
contentStr += "<option value=''>--请选择--</option>";
|
||||
for (var i = 0; i < wsList.length; i++) {
|
||||
var info = wsList[i];
|
||||
contentStr += '<option value="' + info.id + '" >' + info.name + '</option>';
|
||||
}
|
||||
contentStr += "</select>";
|
||||
contentStr += "<div class='xpages-label-text '>请选择默认组织</div>";
|
||||
contentStr += "<select class='publisher-org-select txt xpages-select-text' style='width:95%'>";
|
||||
contentStr += "<option value=''>--请选择--</option>";
|
||||
for (var i = 0; i < orgList.length; i++) {
|
||||
var info = orgList[i];
|
||||
contentStr += '<option value="' + info.id + '" >' + info.name + '</option>';
|
||||
}
|
||||
contentStr += "</select>";
|
||||
contentStr += "<textarea class='url xpagesContent'></textarea>";
|
||||
contentStr += "</div>";
|
||||
$(".cwapp-right").append(contentStr);
|
||||
var cwUrl = getCwUrl();//获取之前的存储的url链接
|
||||
if (cwUrl != null && cwUrl != undefined && cwUrl != "") {
|
||||
//$(".xpagePublishProcessMap-wrap").find(".xpagesContent").val(cwUrl);
|
||||
var wsId = getParamString(cwUrl, "wsId");
|
||||
var orgId = getParamString(cwUrl, "orgId");
|
||||
if (wsId != "" && orgId != null) {
|
||||
$('.publisher-wh-select').val(wsId);
|
||||
$('.publisher-org-select').val(orgId);
|
||||
}
|
||||
}
|
||||
$(".publisher-org-select").change(function () {
|
||||
var orgId = $('.publisher-org-select option:selected').val();
|
||||
var wsId = $('.publisher-wh-select option:selected').val();
|
||||
if (orgId != "" && wsId != "") {
|
||||
var url = "./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_processmap_msg&wsId=" + wsId + "&orgId=" + orgId;
|
||||
$(".xpagePublishProcessMap-wrap").find(".xpagesContent").val(url);
|
||||
} else {
|
||||
$(".xpagePublishProcessMap-wrap").find(".xpagesContent").val("");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$.simpleAlert(responseObject['msg'], responseObject['result']);
|
||||
}
|
||||
}, 'json');
|
||||
}
|
||||
|
||||
function getParamString(url,name) {
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
$(document).ready(function(){
|
||||
renderCommonXPagesConfigPage();
|
||||
renderCommonXPagesConfigPage();
|
||||
});
|
||||
function renderCommonXPagesConfigPage(){
|
||||
var contentStr="<div class='xpagePublishRcaimatrix-wrap'>";
|
||||
contentStr+="<div class='xpages-label-text'>设置显示个数</div>";
|
||||
//contentStr+="<h3>流程发布门户-RCAI矩阵</h3><input id='systemxpage_tcount' type='text' placeholder='设置显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<input id='systemxpage_tcount' type='text' placeholder='请输入显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="</div>";
|
||||
$(".cwapp-right").append(contentStr);
|
||||
$(".cwapp-right").append(contentStr);
|
||||
|
||||
var cwUrl = getCwUrl();//获取之前的存储的url链接
|
||||
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
|
||||
@ -17,18 +17,18 @@ function renderCommonXPagesConfigPage(){
|
||||
|
||||
}
|
||||
|
||||
$("#systemxpage_tcount").blur(function(){
|
||||
var count = $('#systemxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_rcaimatrix_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$("#systemxpage_tcount").blur(function(){
|
||||
var count = $('#systemxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_rcaimatrix_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$(".xpagePublishRcaimatrix-wrap").find(".xpagesContent").val(url);
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
$(".xpagePublishRcaimatrix-wrap").find(".xpagesContent").val("");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getParamString(url,name) {
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
$(document).ready(function(){
|
||||
renderCommonXPagesConfigPage();
|
||||
renderCommonXPagesConfigPage();
|
||||
});
|
||||
function renderCommonXPagesConfigPage(){
|
||||
var contentStr="<div class='xpagePublishResponsible-wrap'>";
|
||||
contentStr+="<div class='xpages-label-text'>设置显示个数</div>";
|
||||
//contentStr+="<h3>流程发布门户-我负责的</h3><input id='systemxpage_tcount' type='text' placeholder='设置显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<input id='systemxpage_tcount' type='text' placeholder='请输入显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="</div>";
|
||||
$(".cwapp-right").append(contentStr);
|
||||
$(".cwapp-right").append(contentStr);
|
||||
|
||||
var cwUrl = getCwUrl();//获取之前的存储的url链接
|
||||
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
|
||||
@ -17,18 +17,18 @@ function renderCommonXPagesConfigPage(){
|
||||
|
||||
}
|
||||
|
||||
$("#systemxpage_tcount").blur(function(){
|
||||
var count = $('#systemxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_responsible_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$("#systemxpage_tcount").blur(function(){
|
||||
var count = $('#systemxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_responsible_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$(".xpagePublishResponsible-wrap").find(".xpagesContent").val(url);
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
$(".xpagePublishResponsible-wrap").find(".xpagesContent").val("");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getParamString(url,name) {
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
$(document).ready(function(){
|
||||
renderCommonXPagesConfigPage();
|
||||
renderCommonXPagesConfigPage();
|
||||
});
|
||||
function renderCommonXPagesConfigPage(){
|
||||
var contentStr="<div class='xpagePublishSystemMap-wrap'>";
|
||||
contentStr+="<div class='xpages-label-text'>设置显示个数</div>";
|
||||
//contentStr+="<h3>流程发布门户-系统地图</h3><input id='systemxpage_tcount' type='text' placeholder='设置显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<input id='systemxpage_tcount' type='text' placeholder='请输入显示个数,点击空白处自动生成URL' value='' class='txt' style='width:90%;'>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
|
||||
contentStr+="</div>";
|
||||
$(".cwapp-right").append(contentStr);
|
||||
$(".cwapp-right").append(contentStr);
|
||||
|
||||
var cwUrl = getCwUrl();//获取之前的存储的url链接
|
||||
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
|
||||
@ -17,18 +17,18 @@ function renderCommonXPagesConfigPage(){
|
||||
|
||||
}
|
||||
|
||||
$("#systemxpage_tcount").blur(function(){
|
||||
var count = $('#systemxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_system_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$("#systemxpage_tcount").blur(function(){
|
||||
var count = $('#systemxpage_tcount').val();
|
||||
if(count!=""){
|
||||
var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_system_msg&count="+count;
|
||||
//$(".xpagesContent").empty();
|
||||
//$(".xpagesContent").append(url);
|
||||
$(".xpagePublishSystemMap-wrap").find(".xpagesContent").val(url);
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
}else{
|
||||
//$(".xpagesContent").empty();
|
||||
$(".xpagePublishSystemMap-wrap").find(".xpagesContent").val("");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getParamString(url,name) {
|
||||
|
||||
@ -13,131 +13,131 @@
|
||||
* FONT-FACE
|
||||
* ====================================================================================================================*/
|
||||
@font-face {
|
||||
font-family: 'flexslider-icon';
|
||||
src: url('fonts/flexslider-icon.eot');
|
||||
src: url('fonts/flexslider-icon.eot?#iefix') format('embedded-opentype'), url('fonts/flexslider-icon.woff') format('woff'), url('fonts/flexslider-icon.ttf') format('truetype'), url('fonts/flexslider-icon.svg#flexslider-icon') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-family: 'flexslider-icon';
|
||||
src: url('fonts/flexslider-icon.eot');
|
||||
src: url('fonts/flexslider-icon.eot?#iefix') format('embedded-opentype'), url('fonts/flexslider-icon.woff') format('woff'), url('fonts/flexslider-icon.ttf') format('truetype'), url('fonts/flexslider-icon.svg#flexslider-icon') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
/* ====================================================================================================================
|
||||
* RESETS
|
||||
* ====================================================================================================================*/
|
||||
.flex-container a:hover,
|
||||
.flex-slider a:hover {
|
||||
outline: none;
|
||||
outline: none;
|
||||
}
|
||||
.slides,
|
||||
.slides > li,
|
||||
.flex-control-nav,
|
||||
.flex-direction-nav {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.flex-pauseplay span {
|
||||
text-transform: capitalize;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
/* ====================================================================================================================
|
||||
* BASE STYLES
|
||||
* ====================================================================================================================*/
|
||||
.flexslider {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.flexslider .slides > li {
|
||||
display: none;
|
||||
-webkit-backface-visibility: hidden;
|
||||
display: none;
|
||||
-webkit-backface-visibility: hidden;
|
||||
}
|
||||
.flexslider .slides img {
|
||||
width: 100%;
|
||||
display: block;
|
||||
width: 100%;
|
||||
display: block;
|
||||
}
|
||||
.flexslider .slides:after {
|
||||
content: "\0020";
|
||||
display: block;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
line-height: 0;
|
||||
height: 0;
|
||||
content: "\0020";
|
||||
display: block;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
line-height: 0;
|
||||
height: 0;
|
||||
}
|
||||
html[xmlns] .flexslider .slides {
|
||||
display: block;
|
||||
display: block;
|
||||
}
|
||||
* html .flexslider .slides {
|
||||
height: 1%;
|
||||
height: 1%;
|
||||
}
|
||||
.no-js .flexslider .slides > li:first-child {
|
||||
display: block;
|
||||
display: block;
|
||||
}
|
||||
/* ====================================================================================================================
|
||||
* DEFAULT THEME
|
||||
* ====================================================================================================================*/
|
||||
.flexslider {
|
||||
/* margin: 0 0 60px; */
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
border: 0px solid #fff;
|
||||
position: relative;
|
||||
zoom: 1;
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
|
||||
-moz-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
|
||||
-o-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
|
||||
/* margin: 0 0 60px; */
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
border: 0px solid #fff;
|
||||
position: relative;
|
||||
zoom: 1;
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
|
||||
-moz-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
|
||||
-o-box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: '' 0 1px 4px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
.flexslider .slides {
|
||||
zoom: 1;
|
||||
zoom: 1;
|
||||
}
|
||||
.flexslider .slides img {
|
||||
height:auto;
|
||||
-moz-user-select: none;
|
||||
height:auto;
|
||||
-moz-user-select: none;
|
||||
}
|
||||
.flex-viewport {
|
||||
max-height: 2000px;
|
||||
-webkit-transition: all 1s ease;
|
||||
-moz-transition: all 1s ease;
|
||||
-ms-transition: all 1s ease;
|
||||
-o-transition: all 1s ease;
|
||||
transition: all 1s ease;
|
||||
max-height: 2000px;
|
||||
-webkit-transition: all 1s ease;
|
||||
-moz-transition: all 1s ease;
|
||||
-ms-transition: all 1s ease;
|
||||
-o-transition: all 1s ease;
|
||||
transition: all 1s ease;
|
||||
}
|
||||
.loading .flex-viewport {
|
||||
max-height: 300px;
|
||||
max-height: 300px;
|
||||
}
|
||||
@-moz-document url-prefix() {
|
||||
.loading .flex-viewport {
|
||||
max-height: none;
|
||||
}
|
||||
.loading .flex-viewport {
|
||||
max-height: none;
|
||||
}
|
||||
}
|
||||
.carousel li {
|
||||
margin-right: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.flex-direction-nav {
|
||||
*height: 0;
|
||||
*height: 0;
|
||||
}
|
||||
.flex-direction-nav a {
|
||||
width: 32px;
|
||||
height: 35px;
|
||||
margin: -50px 0 0;
|
||||
display: block;
|
||||
background: url('../images/ad_ctr1.png') no-repeat 0 0;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
z-index: 10;
|
||||
cursor: pointer;
|
||||
text-indent: -9999px;
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
-webkit-transition: all .3s ease;
|
||||
width: 32px;
|
||||
height: 35px;
|
||||
margin: -50px 0 0;
|
||||
display: block;
|
||||
background: url('../images/ad_ctr1.png') no-repeat 0 0;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
z-index: 10;
|
||||
cursor: pointer;
|
||||
text-indent: -9999px;
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=0);
|
||||
-webkit-transition: all .3s ease;
|
||||
}
|
||||
.flex-direction-nav .flex-next {
|
||||
background-position: -32px 0px;
|
||||
right: 0;
|
||||
background-position: -32px 0px;
|
||||
right: 0;
|
||||
}
|
||||
.flex-direction-nav .flex-prev {
|
||||
background-position: 2px 0px;
|
||||
left: 0;
|
||||
background-position: 2px 0px;
|
||||
left: 0;
|
||||
}
|
||||
/* .flex-direction-nav a {
|
||||
text-decoration: none;
|
||||
@ -178,128 +178,128 @@ html[xmlns] .flexslider .slides {
|
||||
text-align: right;
|
||||
} */
|
||||
.flexslider:hover .flex-direction-nav .flex-prev {
|
||||
opacity: 0.7;
|
||||
left: 10px;
|
||||
opacity: 0.7;
|
||||
left: 10px;
|
||||
}
|
||||
.flexslider:hover .flex-direction-nav .flex-prev:hover {
|
||||
opacity: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
.flexslider:hover .flex-direction-nav .flex-next {
|
||||
opacity: 0.7;
|
||||
right: 10px;
|
||||
opacity: 0.7;
|
||||
right: 10px;
|
||||
}
|
||||
.flexslider:hover .flex-direction-nav .flex-next:hover {
|
||||
opacity: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
.flex-direction-nav .flex-disabled {
|
||||
opacity: 0!important;
|
||||
filter: alpha(opacity=0);
|
||||
cursor: default;
|
||||
z-index: -1;
|
||||
opacity: 0!important;
|
||||
filter: alpha(opacity=0);
|
||||
cursor: default;
|
||||
z-index: -1;
|
||||
}
|
||||
.flex-pauseplay a {
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
position: absolute;
|
||||
bottom: 5px;
|
||||
left: 10px;
|
||||
opacity: 0.8;
|
||||
z-index: 10;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
color: #000;
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
position: absolute;
|
||||
bottom: 5px;
|
||||
left: 10px;
|
||||
opacity: 0.8;
|
||||
z-index: 10;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
color: #000;
|
||||
}
|
||||
.flex-pauseplay a:before {
|
||||
font-family: "flexslider-icon";
|
||||
font-size: 20px;
|
||||
display: inline-block;
|
||||
content: '\f004';
|
||||
font-family: "flexslider-icon";
|
||||
font-size: 20px;
|
||||
display: inline-block;
|
||||
content: '\f004';
|
||||
}
|
||||
.flex-pauseplay a:hover {
|
||||
opacity: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
.flex-pauseplay a.flex-play:before {
|
||||
content: '\f003';
|
||||
content: '\f003';
|
||||
}
|
||||
.flex-control-nav {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: -40px;
|
||||
text-align: center;
|
||||
z-index: 999;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: -40px;
|
||||
text-align: center;
|
||||
z-index: 999;
|
||||
}
|
||||
.flex-control-nav li {
|
||||
margin: 0 6px;
|
||||
display: inline-block;
|
||||
zoom: 1;
|
||||
*display: inline;
|
||||
margin: 0 6px;
|
||||
display: inline-block;
|
||||
zoom: 1;
|
||||
*display: inline;
|
||||
}
|
||||
.flex-control-paging li a {
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
display: block;
|
||||
background: #666;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
cursor: pointer;
|
||||
text-indent: -9999px;
|
||||
-webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
|
||||
-moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
|
||||
-o-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
|
||||
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
|
||||
-webkit-border-radius: 20px;
|
||||
-moz-border-radius: 20px;
|
||||
border-radius: 20px;
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
display: block;
|
||||
background: #666;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
cursor: pointer;
|
||||
text-indent: -9999px;
|
||||
-webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
|
||||
-moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
|
||||
-o-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
|
||||
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
|
||||
-webkit-border-radius: 20px;
|
||||
-moz-border-radius: 20px;
|
||||
border-radius: 20px;
|
||||
}
|
||||
.flex-control-paging li a:hover {
|
||||
background: #333;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
background: #333;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
.flex-control-paging li a.flex-active {
|
||||
background: #000;
|
||||
background: rgba(0, 0, 0, 0.9);
|
||||
cursor: default;
|
||||
background: #000;
|
||||
background: rgba(0, 0, 0, 0.9);
|
||||
cursor: default;
|
||||
}
|
||||
.flex-control-thumbs {
|
||||
margin: 5px 0 0;
|
||||
position: static;
|
||||
overflow: hidden;
|
||||
margin: 5px 0 0;
|
||||
position: static;
|
||||
overflow: hidden;
|
||||
}
|
||||
.flex-control-thumbs li {
|
||||
width: 25%;
|
||||
float: left;
|
||||
margin: 0;
|
||||
width: 25%;
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
.flex-control-thumbs img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
opacity: .7;
|
||||
cursor: pointer;
|
||||
-moz-user-select: none;
|
||||
-webkit-transition: all 1s ease;
|
||||
-moz-transition: all 1s ease;
|
||||
-ms-transition: all 1s ease;
|
||||
-o-transition: all 1s ease;
|
||||
transition: all 1s ease;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
opacity: .7;
|
||||
cursor: pointer;
|
||||
-moz-user-select: none;
|
||||
-webkit-transition: all 1s ease;
|
||||
-moz-transition: all 1s ease;
|
||||
-ms-transition: all 1s ease;
|
||||
-o-transition: all 1s ease;
|
||||
transition: all 1s ease;
|
||||
}
|
||||
.flex-control-thumbs img:hover {
|
||||
opacity: 1;
|
||||
opacity: 1;
|
||||
}
|
||||
.flex-control-thumbs .flex-active {
|
||||
opacity: 1;
|
||||
cursor: default;
|
||||
opacity: 1;
|
||||
cursor: default;
|
||||
}
|
||||
/* ====================================================================================================================
|
||||
* RESPONSIVE
|
||||
* ====================================================================================================================*/
|
||||
@media screen and (max-width: 860px) {
|
||||
.flex-direction-nav .flex-prev {
|
||||
opacity: 1;
|
||||
left: 10px;
|
||||
}
|
||||
.flex-direction-nav .flex-next {
|
||||
opacity: 1;
|
||||
right: 10px;
|
||||
}
|
||||
.flex-direction-nav .flex-prev {
|
||||
opacity: 1;
|
||||
left: 10px;
|
||||
}
|
||||
.flex-direction-nav .flex-next {
|
||||
opacity: 1;
|
||||
right: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -4,38 +4,38 @@
|
||||
2013-9-30: Created.
|
||||
-->
|
||||
<svg>
|
||||
<metadata>
|
||||
Created by iconfont
|
||||
</metadata>
|
||||
<defs>
|
||||
<metadata>
|
||||
Created by iconfont
|
||||
</metadata>
|
||||
<defs>
|
||||
|
||||
<font id="iconfont" horiz-adv-x="1024" >
|
||||
<font-face
|
||||
font-family="iconfont"
|
||||
font-weight="500"
|
||||
font-stretch="normal"
|
||||
units-per-em="1024"
|
||||
ascent="896"
|
||||
descent="-128"
|
||||
/>
|
||||
<missing-glyph />
|
||||
<font id="iconfont" horiz-adv-x="1024" >
|
||||
<font-face
|
||||
font-family="iconfont"
|
||||
font-weight="500"
|
||||
font-stretch="normal"
|
||||
units-per-em="1024"
|
||||
ascent="896"
|
||||
descent="-128"
|
||||
/>
|
||||
<missing-glyph />
|
||||
|
||||
<glyph glyph-name="tongzhi" unicode="" d="M856.798419 102.887554l-73.742515 129.741923L783.055904 494.156866c0 100.20112-75.31636 208.644971-185.111998 248.378927-5.348821 53.104475-40.835034 91.831498-87.334068 91.831498-46.434565 0-82.048691-38.728046-87.332021-91.831498-109.73424-39.733956-185.049576-148.176784-185.049576-248.378927l0-261.527388-77.329203-136.096654c-5.158487-8.997931-5.03262-20.008706 0.125867-28.944216 5.15951-8.933463 14.724353-14.346753 25.042349-14.346753l184.04162 0c13.528108-65.310472 71.353095-114.51308 140.501988-114.51308 69.213361 0 127.036301 49.202609 140.500964 114.51308l184.04162 0c0.505513 0 0.881067 0 1.322112 0 16.045441 0 29.007661 12.898775 29.007661 28.944216C865.482195 90.302935 862.209662 97.664599 856.798419 102.887554M510.609839 776.291594c10.444886 0 18.875906-7.927553 24.287149-19.756973-8.05342 0.818645-15.85613 2.705622-24.287149 2.705622s-16.232706-1.886977-24.287149-2.705622C491.734956 768.365064 500.165975 776.291594 510.609839 776.291594M510.609839-3.258974c-36.808324 0-67.576071 23.657816-79.532381 56.500828l159.062715 0C578.186933 20.399865 547.482631-3.258974 510.609839-3.258974M235.90022 111.192707l56.502875 99.476619c2.515287 4.28049 3.89982 9.314133 3.89982 14.34573L296.302915 494.156866c0 97.747231 91.611487 207.070102 214.306924 207.070102 122.694413 0 214.431767-109.322871 214.431767-207.070102L725.041606 225.015056c0-5.031597 1.322112-10.06524 3.774977-14.34573l56.565297-99.476619L235.90022 111.192707z" horiz-adv-x="1024" />
|
||||
|
||||
<glyph glyph-name="tongzhi" unicode="" d="M856.798419 102.887554l-73.742515 129.741923L783.055904 494.156866c0 100.20112-75.31636 208.644971-185.111998 248.378927-5.348821 53.104475-40.835034 91.831498-87.334068 91.831498-46.434565 0-82.048691-38.728046-87.332021-91.831498-109.73424-39.733956-185.049576-148.176784-185.049576-248.378927l0-261.527388-77.329203-136.096654c-5.158487-8.997931-5.03262-20.008706 0.125867-28.944216 5.15951-8.933463 14.724353-14.346753 25.042349-14.346753l184.04162 0c13.528108-65.310472 71.353095-114.51308 140.501988-114.51308 69.213361 0 127.036301 49.202609 140.500964 114.51308l184.04162 0c0.505513 0 0.881067 0 1.322112 0 16.045441 0 29.007661 12.898775 29.007661 28.944216C865.482195 90.302935 862.209662 97.664599 856.798419 102.887554M510.609839 776.291594c10.444886 0 18.875906-7.927553 24.287149-19.756973-8.05342 0.818645-15.85613 2.705622-24.287149 2.705622s-16.232706-1.886977-24.287149-2.705622C491.734956 768.365064 500.165975 776.291594 510.609839 776.291594M510.609839-3.258974c-36.808324 0-67.576071 23.657816-79.532381 56.500828l159.062715 0C578.186933 20.399865 547.482631-3.258974 510.609839-3.258974M235.90022 111.192707l56.502875 99.476619c2.515287 4.28049 3.89982 9.314133 3.89982 14.34573L296.302915 494.156866c0 97.747231 91.611487 207.070102 214.306924 207.070102 122.694413 0 214.431767-109.322871 214.431767-207.070102L725.041606 225.015056c0-5.031597 1.322112-10.06524 3.774977-14.34573l56.565297-99.476619L235.90022 111.192707z" horiz-adv-x="1024" />
|
||||
|
||||
<glyph glyph-name="wancheng" unicode="" d="M486.4 265.6c-19.2-19.2-48-19.2-67.2-3.2l-137.6 131.2-32-35.2 137.6-131.2c38.4-35.2 96-35.2 134.4 3.2l281.6 297.6-35.2 32L486.4 265.6zM512 844.8c-252.8 0-460.8-204.8-460.8-460.8s204.8-460.8 460.8-460.8 460.8 204.8 460.8 460.8S764.8 844.8 512 844.8zM512-28.8c-227.2 0-412.8 185.6-412.8 412.8s185.6 412.8 412.8 412.8 412.8-185.6 412.8-412.8S739.2-28.8 512-28.8z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="yiban" unicode="" d="M374.720915 276.112828 210.629673 276.112828l0-55.112202 158.683069 0C370.012683 239.772154 371.848495 258.164037 374.720915 276.112828L374.720915 276.112828zM210.629673 490.089224l353.807095 0c29.618575 13.797237 61.45363 22.044062 94.675266 23.715121l0 31.399127L210.629673 545.203472 210.629673 490.089224 210.629673 490.089224zM160.554184 124.462942c-20.847817 0-29.540803 8.698103-29.540803 29.526477l0 593.077573c0 20.828374 8.694009 29.52443 29.540803 29.52443l548.628222 0c20.826328 0 29.54592-8.696056 29.54592-29.52443L738.728326 509.842103c23.485901-4.300956 33.708729-11.326976 54.92596-20.72502L793.654286 786.737504c0 24.76708-20.083407 44.847417-44.847417 44.847417L120.934838 831.584921c-24.769127 0-44.852534-20.081361-44.852534-44.847417l0-672.728658c0-24.758893 20.083407-44.847417 44.852534-44.847417l283.845697 0c-11.346419 21.156856-20.263509 31.520901-26.356274 55.301514L181.020308 124.462942 160.554184 124.462942zM210.629673 679.748794l448.481338 0 0-55.113225-448.481338 0 0 55.113225ZM681.446715 473.719394c-148.146085 0-268.25358-120.090099-268.25358-268.257673 0-148.145062 120.112612-268.257673 268.25358-268.257673 148.164504 0 268.25665 120.113635 268.25665 268.257673C949.703365 353.628272 829.61122 473.719394 681.446715 473.719394zM681.925622-11.299091C562.932508-11.299091 466.477712 85.151611 466.477712 204.143703c0 118.998231 96.455819 215.45712 215.44791 215.45712 119.001301 0 215.452004-96.458889 215.452004-215.45712C897.376603 85.151611 800.921807-11.299091 681.925622-11.299091zM210.629673 410.660196l0-55.113225 197.292412 0c8.973372 19.527752 19.332301 37.97387 30.9325 55.113225L210.629673 410.660196zM824.259328 309.639408 639.752104 125.132184 545.963021 218.655208 506.232135 178.815851 639.752104 45.670411 863.990215 269.908522 824.259328 309.639408Z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="daiban" unicode="" d="M120.759083 3.4679V768.352217c0 4.252196 3.447422 7.713952 7.699618 7.713952h643.527285c4.252196 0 7.713952-3.461756 7.713952-7.713952V459.760347h55.82018V768.352217c0 35.024045-28.495752 63.534132-63.534132 63.534132H128.458701c-35.024045 0-63.519798-28.510087-63.519798-63.534132v-764.884317c0-35.024045 28.495752-63.534132 63.519798-63.534133h360.269409v55.820181H128.458701c-4.252196 0-7.699618 3.461756-7.699618 7.713952zM287.660582 343.213528c-15.41357 0-27.91009-12.48321-27.91009-27.91009s12.49652-27.91009 27.91009-27.91009h111.449918c15.41357 0 27.91009 12.48321 27.91009 27.91009s-12.49652 27.91009-27.91009 27.91009h-111.449918zM636.53722 466.300926c0 15.42688-12.49652 27.91009-27.91009 27.91009H287.660582c-15.41357 0-27.91009-12.48321-27.91009-27.91009s12.49652-27.91009 27.91009-27.91009h320.966548c15.41357 0 27.91009 12.48321 27.91009 27.91009zM608.62713 639.704097H287.660582c-15.41357 0-27.91009-12.48321-27.91009-27.91009s12.49652-27.91009 27.91009-27.91009h320.966548c15.41357 0 27.91009 12.48321 27.91009 27.91009s-12.49652 27.91009-27.91009 27.91009zM820.392212 177.251956h-55.643048v90.271873c0 15.42688-12.49652 27.91009-27.91009 27.91009s-27.91009-12.48321-27.91009-27.91009v-118.181963c0-15.42688 12.49652-27.91009 27.91009-27.91009H820.393236c15.41357 0 27.91009 12.48321 27.91009 27.91009-0.001024 15.42688-12.497544 27.91009-27.911114 27.91009zM738.670805 380.874078c-121.258739 0-219.559921-98.300158-219.559921-219.559921 0-121.259763 98.300158-219.560945 219.559921-219.560945 121.259763 0 219.560945 98.300158 219.560945 219.560945 0 121.259763-98.301182 219.559921-219.560945 219.559921z m0-383.299662c-90.286208 0-163.739741 73.453533-163.739741 163.740765 0 90.286208 73.453533 163.739741 163.739741 163.739741 90.286208 0 163.739741-73.453533 163.739741-163.739741 0.001024-90.287232-73.452509-163.740765-163.739741-163.740765z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="shijian" unicode="" d="M512-128C230.4-128 0 102.39999999999998 0 384S230.4 896 512 896s512-230.4 512-512-230.4-512-512-512z m0 960C262.4 832 64 633.6 64 384s198.4-448 448-448 448 198.4 448 448S761.6 832 512 832zM729.6 352H512c-19.2 0-32 19.2-32 32V716.8c0 19.2 12.8 32 32 32s32-12.8 32-32v-294.4h185.6c19.2 0 32-12.8 32-32s-12.8-38.4-32-38.4z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
|
||||
|
||||
<glyph glyph-name="wancheng" unicode="" d="M486.4 265.6c-19.2-19.2-48-19.2-67.2-3.2l-137.6 131.2-32-35.2 137.6-131.2c38.4-35.2 96-35.2 134.4 3.2l281.6 297.6-35.2 32L486.4 265.6zM512 844.8c-252.8 0-460.8-204.8-460.8-460.8s204.8-460.8 460.8-460.8 460.8 204.8 460.8 460.8S764.8 844.8 512 844.8zM512-28.8c-227.2 0-412.8 185.6-412.8 412.8s185.6 412.8 412.8 412.8 412.8-185.6 412.8-412.8S739.2-28.8 512-28.8z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="yiban" unicode="" d="M374.720915 276.112828 210.629673 276.112828l0-55.112202 158.683069 0C370.012683 239.772154 371.848495 258.164037 374.720915 276.112828L374.720915 276.112828zM210.629673 490.089224l353.807095 0c29.618575 13.797237 61.45363 22.044062 94.675266 23.715121l0 31.399127L210.629673 545.203472 210.629673 490.089224 210.629673 490.089224zM160.554184 124.462942c-20.847817 0-29.540803 8.698103-29.540803 29.526477l0 593.077573c0 20.828374 8.694009 29.52443 29.540803 29.52443l548.628222 0c20.826328 0 29.54592-8.696056 29.54592-29.52443L738.728326 509.842103c23.485901-4.300956 33.708729-11.326976 54.92596-20.72502L793.654286 786.737504c0 24.76708-20.083407 44.847417-44.847417 44.847417L120.934838 831.584921c-24.769127 0-44.852534-20.081361-44.852534-44.847417l0-672.728658c0-24.758893 20.083407-44.847417 44.852534-44.847417l283.845697 0c-11.346419 21.156856-20.263509 31.520901-26.356274 55.301514L181.020308 124.462942 160.554184 124.462942zM210.629673 679.748794l448.481338 0 0-55.113225-448.481338 0 0 55.113225ZM681.446715 473.719394c-148.146085 0-268.25358-120.090099-268.25358-268.257673 0-148.145062 120.112612-268.257673 268.25358-268.257673 148.164504 0 268.25665 120.113635 268.25665 268.257673C949.703365 353.628272 829.61122 473.719394 681.446715 473.719394zM681.925622-11.299091C562.932508-11.299091 466.477712 85.151611 466.477712 204.143703c0 118.998231 96.455819 215.45712 215.44791 215.45712 119.001301 0 215.452004-96.458889 215.452004-215.45712C897.376603 85.151611 800.921807-11.299091 681.925622-11.299091zM210.629673 410.660196l0-55.113225 197.292412 0c8.973372 19.527752 19.332301 37.97387 30.9325 55.113225L210.629673 410.660196zM824.259328 309.639408 639.752104 125.132184 545.963021 218.655208 506.232135 178.815851 639.752104 45.670411 863.990215 269.908522 824.259328 309.639408Z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="daiban" unicode="" d="M120.759083 3.4679V768.352217c0 4.252196 3.447422 7.713952 7.699618 7.713952h643.527285c4.252196 0 7.713952-3.461756 7.713952-7.713952V459.760347h55.82018V768.352217c0 35.024045-28.495752 63.534132-63.534132 63.534132H128.458701c-35.024045 0-63.519798-28.510087-63.519798-63.534132v-764.884317c0-35.024045 28.495752-63.534132 63.519798-63.534133h360.269409v55.820181H128.458701c-4.252196 0-7.699618 3.461756-7.699618 7.713952zM287.660582 343.213528c-15.41357 0-27.91009-12.48321-27.91009-27.91009s12.49652-27.91009 27.91009-27.91009h111.449918c15.41357 0 27.91009 12.48321 27.91009 27.91009s-12.49652 27.91009-27.91009 27.91009h-111.449918zM636.53722 466.300926c0 15.42688-12.49652 27.91009-27.91009 27.91009H287.660582c-15.41357 0-27.91009-12.48321-27.91009-27.91009s12.49652-27.91009 27.91009-27.91009h320.966548c15.41357 0 27.91009 12.48321 27.91009 27.91009zM608.62713 639.704097H287.660582c-15.41357 0-27.91009-12.48321-27.91009-27.91009s12.49652-27.91009 27.91009-27.91009h320.966548c15.41357 0 27.91009 12.48321 27.91009 27.91009s-12.49652 27.91009-27.91009 27.91009zM820.392212 177.251956h-55.643048v90.271873c0 15.42688-12.49652 27.91009-27.91009 27.91009s-27.91009-12.48321-27.91009-27.91009v-118.181963c0-15.42688 12.49652-27.91009 27.91009-27.91009H820.393236c15.41357 0 27.91009 12.48321 27.91009 27.91009-0.001024 15.42688-12.497544 27.91009-27.911114 27.91009zM738.670805 380.874078c-121.258739 0-219.559921-98.300158-219.559921-219.559921 0-121.259763 98.300158-219.560945 219.559921-219.560945 121.259763 0 219.560945 98.300158 219.560945 219.560945 0 121.259763-98.301182 219.559921-219.560945 219.559921z m0-383.299662c-90.286208 0-163.739741 73.453533-163.739741 163.740765 0 90.286208 73.453533 163.739741 163.739741 163.739741 90.286208 0 163.739741-73.453533 163.739741-163.739741 0.001024-90.287232-73.452509-163.740765-163.739741-163.740765z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="shijian" unicode="" d="M512-128C230.4-128 0 102.39999999999998 0 384S230.4 896 512 896s512-230.4 512-512-230.4-512-512-512z m0 960C262.4 832 64 633.6 64 384s198.4-448 448-448 448 198.4 448 448S761.6 832 512 832zM729.6 352H512c-19.2 0-32 19.2-32 32V716.8c0 19.2 12.8 32 32 32s32-12.8 32-32v-294.4h185.6c19.2 0 32-12.8 32-32s-12.8-38.4-32-38.4z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
|
||||
|
||||
</font>
|
||||
</defs></svg>
|
||||
</font>
|
||||
</defs></svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.5 KiB |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user