发布代码补全

This commit is contained in:
zhal 2022-07-19 16:11:03 +08:00
parent fe06430d4b
commit 8d3be44e0f
51 changed files with 12526 additions and 0 deletions

View File

@ -0,0 +1,151 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<boModel>
<id>220f0d69-79d2-4a75-8801-72f6fc3629ef</id>
<createUser>管理员</createUser>
<createTime>2014-08-12 14:18:55</createTime>
<updateUser></updateUser>
<updateTime>2018-08-06 15:58:48</updateTime>
<signature>DgQSSyFmOqrf7WQa6WFesZuTOnzFe+zevZg0BYW55MuhMOtUylRD92QW2MZY8fzuI1jyiAPR1gKDGQFne7To9Kh2KF5kVAXJJd1KfM8+OqJJiW14do0U3zATEmBTzTJD</signature>
<managed>true</managed>
<title>流程停用清单</title>
<name>BO_ACT_COE_PUBLISH_S</name>
<collection>true</collection>
<system>false</system>
<deleted>false</deleted>
<categoryName>资产库周期管理</categoryName>
<administrator>admin</administrator>
<entityType>TABLE</entityType>
<viewType>COMMON</viewType>
<viewSql></viewSql>
<securityLevel>0</securityLevel>
<target></target>
<boItems>
<boItem>
<id>2ec4b14f-84d9-4083-b241-e4b51125de15</id>
<name>STOPTYPE</name>
<title>类型</title>
<columnType>TEXT</columnType>
<length>36</length>
<nullable>false</nullable>
<defaultValue>S</defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>false</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
</boItem>
<boItem>
<id>ae7b767b-6d5a-4e5a-a296-0d705122f089</id>
<name>STOPFILENAME</name>
<title>文件名</title>
<columnType>TEXT</columnType>
<length>2000</length>
<nullable>false</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
</boItem>
<boItem>
<id>1bf2c30e-588b-42f6-8e48-f02d88374465</id>
<name>STOPDESC</name>
<title>停用说明</title>
<columnType>TEXT</columnType>
<length>255</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>150</columnWidth>
<componentId>AWSUI.Textarea</componentId>
<componentSetting>{"fnKey1":"false","fnKey2":"false","fnKey3":"false","key":""}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
</boItem>
<boItem>
<id>0dc7ffb3-5f35-4cf5-ae2d-d51922b27451</id>
<name>STOPFILEID</name>
<title>流程id</title>
<columnType>TEXT</columnType>
<length>2000</length>
<nullable>false</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>false</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
</boItem>
<boItem>
<id>7ff0aeb7-8884-4543-9c23-ef1967bdbee0</id>
<name>TASKID</name>
<title>taskid</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>false</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
</boItem>
</boItems>
<boIndexs/>
<boRelations/>
</boModel>

View File

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<boModel>
<id>2f326953-089a-49f6-bb55-d46d287b5792</id>
<createUser>admin</createUser>
<createTime>2022-07-08 15:54:34</createTime>
<updateUser>admin</updateUser>
<updateTime>2022-07-08 15:54:56</updateTime>
<signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGroPgaKWyS8gZtjLiYx8NwH4nz83hk0cEDfX8X3+jXcueA65tVd4g2xemCyqZ+BTec</signature>
<managed>false</managed>
<title>区域信息</title>
<name>BO_ACT_REGION_INFO</name>
<collection>false</collection>
<system>false</system>
<deleted>false</deleted>
<categoryName>资产库周期管理</categoryName>
<administrator>admin</administrator>
<entityType>TABLE</entityType>
<viewType></viewType>
<viewSql></viewSql>
<securityLevel>0</securityLevel>
<target>_local</target>
<itemProps></itemProps>
<boItems>
<boItem>
<id>6ca2d55f-af07-4ea3-8304-ca4d289540c7</id>
<name>REGIONNAME</name>
<title>区域名称</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>0ac494a9-f54f-4d83-b722-85309de35275</id>
<name>REGIONCODE</name>
<title>区域编码</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
</boItems>
<boIndexs>
<boIndex>
<id>8048b6cb-6c30-43ab-91c4-e3c59fe2d6a6</id>
<name>AWS_IN_7AC529D7A196</name>
<type>INDEX</type>
<boItems>BINDID</boItems>
</boIndex>
</boIndexs>
<boRelations/>
<hashFields></hashFields>
</boModel>

View File

@ -0,0 +1,841 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<boModel>
<id>5e321e6b-4b05-4b55-8aec-2bdbf7f9a499</id>
<createUser>admin</createUser>
<createTime>2022-06-28 20:04:46</createTime>
<updateUser>admin</updateUser>
<updateTime>2022-06-29 01:49:55</updateTime>
<signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrQUrBalciPSuLiKMvki89BglYPuKpWBwu+PWUm0IO64sRlhhmA2TsgYzCj8DTKXy5</signature>
<managed>false</managed>
<title>个人信息表</title>
<name>BO_ACT_SYSTEM_TO_RELEASE</name>
<collection>false</collection>
<system>false</system>
<deleted>false</deleted>
<categoryName>资产库周期管理</categoryName>
<administrator>admin</administrator>
<entityType>TABLE</entityType>
<viewType></viewType>
<viewSql></viewSql>
<securityLevel>0</securityLevel>
<target>_local</target>
<itemProps></itemProps>
<boItems>
<boItem>
<id>d8468490-989a-455f-917d-c5f953783696</id>
<name>PUBLISH_TYPE</name>
<title>发布类型</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>false</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.ComboBox</componentId>
<componentSetting>{"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"流程文件|制度规范|操作指导|表单/模板","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>172bad84-77dc-45bb-a2db-dc7134f27d3a</id>
<name>CHANGE_THE_TYPE</name>
<title>变更类型</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>false</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.ComboBox</componentId>
<componentSetting>{"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"发布|废止","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>a9878d01-f454-4c47-a75c-efe40079770e</id>
<name>LEVEL_1_PROCESS_NAME</name>
<title>一级流程名称</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.ComboBox</componentId>
<componentSetting>{"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"名称一|名称二|名称三","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>64b04916-787a-466a-b4c4-2eb69556b9a3</id>
<name>LEVEL_2_PROCESS_NAME</name>
<title>二级流程名称</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.ComboBox</componentId>
<componentSetting>{"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"名称一|名称二|名称三","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>5ebb7157-6278-47cc-ad71-d8f374f98bd4</id>
<name>LEVEL_3_PROCESS_NAME</name>
<title>三级流程名称</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.ComboBox</componentId>
<componentSetting>{"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"名称一|名称二|名称三","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>800a3874-bb33-4e13-b1d1-5af0bbdfc801</id>
<name>ADAPT_NAME_THE_COMPANY</name>
<title>适应单位名称</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue>集团</defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.ComboBox</componentId>
<componentSetting>{"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"集团|单位一|单位二","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>5ff3f219-67e4-44fc-a869-ceb2cfb38847</id>
<name>ADAPT_REGION_NAME</name>
<title>适应区域名称</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue>全部</defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.ComboBox</componentId>
<componentSetting>{"placeholder":"区域一|区域二|区域三","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"全部|区域二|区域三","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>41c6d108-7873-4d95-9583-0c5ad4296e3e</id>
<name>APPLICABLE_PRODUCT</name>
<title>适用产品/场景名称</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue>全部</defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.ComboBox</componentId>
<componentSetting>{"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"全部|产品二|产品三","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>4ea6476f-809f-468d-b129-fb36cb1eadf4</id>
<name>RELEASE_THE_TITLE</name>
<title>发布标题</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>0250e9ee-1504-4582-aac6-25700ff3f3c8</id>
<name>INITIATOR</name>
<title>发起人</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>false</nullable>
<defaultValue>@userName()</defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0","placeholder":"","dataType":"localJDBC","data":{"sql":""},"isClearAllText":true,"barCode":false,"boUrlFormData":{"hrefSelVal":"nothing"},"extendType":"text","scanCodeAutoSubmit":false}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>false</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>d9409667-325c-47c2-80d6-7e89b919496a</id>
<name>CONTACT_WAY</name>
<title>联系方式</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue>13562425632</defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Number</componentId>
<componentSetting>{"isShowZero":"1","placeholder":"","isClearAll":true,"autoZero":false,"scientificCounting":false}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>false</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>ad054977-fbc2-42f5-b16b-2ee4442a51de</id>
<name>TIME_OF_APPLICATION</name>
<title>申请时间</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>false</nullable>
<defaultValue>@date()</defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Date</componentId>
<componentSetting>{"placeholder":"","minDate":"","maxDate":"","showtype":"singleCalendar","advSetting":"","showDayOfWeek":"false","dwfmt":"(EE)"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>922ff652-5da2-4f93-919b-c54fd4dae085</id>
<name>IS_THE_UNIT</name>
<title>拟稿单位</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue>@departmentName()</defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Address</componentId>
<componentSetting>{"placeholder":"","addressType":"dept","isLiveSearch":true,"addressSetting":{"delimiter":",","choiceType":"single","leafType":"dept"},"range":"all","isFullDeptPath":false,"deptSourceField":"DEPTNAME","deptTargetField":"IS_THE_UNIT"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode>readonly</componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>29942e71-e472-4cc2-aa0e-74f6c02e806e</id>
<name>RELEASE_INSTRUCTIONS</name>
<title>制度/流程发布说明</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0","placeholder":"","dataType":"localJDBC","data":{"sql":""},"isClearAllText":true,"barCode":false,"boUrlFormData":{"hrefSelVal":"nothing"},"extendType":"text","scanCodeAutoSubmit":false}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>ea05290b-d25c-4dad-a941-29ac4152bf98</id>
<name>ACCESSORY</name>
<title>附件</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.File</componentId>
<componentSetting>{"isEncrypt":true,"manualSort":false,"fileCount":"0","fileClassificationList":"","fileWatermark":"","fileWatermarkFont":"","fileWatermarkFontColor":"","sortField":"CREATEDATE","sortType":"asc","compressFlag":"","waterMarkFlag":"","waterMarkPosition":"","waterMarkFontColor":"","waterMarkFontSize":30,"fileMaxSize":"","uploadField":"上传人|CREATEUSER||false,上传时间|CREATEDATE||false,大小|FILESIZE||false,授权|AUTHORIZATION||false,预览|PREVIEW||false","anyFile":true,"uiSetting":{"anyFileExtList":""},"canPreviewOfficeFlag":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>88f43b66-de94-4ebc-bcaf-6299a0b9bd74</id>
<name>DEPARTMENT_PROOFREADER</name>
<title>部门内部校对人</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Address</componentId>
<componentSetting>{"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":" ","choiceType":"single"},"deptSourceField":"","deptTargetField":""}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode>readonly</componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>64c1af0a-5bde-4d73-a558-efa7cf71c846</id>
<name>INTERNAL_AUDITOR</name>
<title>内部审核人</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>false</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Address</componentId>
<componentSetting>{"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":" ","choiceType":"single"},"deptSourceField":"","deptTargetField":""}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode>readonly</componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>9c42ce6e-3f61-409d-bef3-c17a4d7f8ce9</id>
<name>PROFESSIONAL_REVIEW_REQUIRED</name>
<title>是否需要专业评审</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>false</nullable>
<defaultValue>1</defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.ComboBox</componentId>
<componentSetting>{"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"0:是|1:否","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>3e9aed86-a31b-445d-9553-b83fe7d814fe</id>
<name>JOINT_TRIAL_REQUIRED</name>
<title>是否需要会审</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>false</nullable>
<defaultValue>1</defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.ComboBox</componentId>
<componentSetting>{"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"0:是|1:否","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>aab8ef1e-3e76-461b-a353-b0e39a9eead7</id>
<name>PERSON_THREE_LEVEL_PROCESS</name>
<title>三级流程责任人</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Address</componentId>
<componentSetting>{"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":" ","choiceType":"single"},"deptSourceField":"","deptTargetField":""}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode>readonly</componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>a2bb76c0-19c1-4503-9e57-49cbb510273e</id>
<name>LEVEL_AUDIT_REQUIRED</name>
<title>是否需要三级审核</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>false</nullable>
<defaultValue>1</defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.ComboBox</componentId>
<componentSetting>{"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"0:是|1:否","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>e2b6a5f9-5311-476c-a3c4-383d121165d0</id>
<name>PROCESS_RESPONSIBLE_PERSON</name>
<title>二级流程责任人</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Address</componentId>
<componentSetting>{"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":" ","choiceType":"single"},"deptSourceField":"","deptTargetField":""}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode>readonly</componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>22a778dd-f8cc-4ca3-a43e-6fe2fae0fb02</id>
<name>SECONDARY_AUDIT_REQUIRED</name>
<title>是否需要二级审核</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>false</nullable>
<defaultValue>1</defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.ComboBox</componentId>
<componentSetting>{"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"0:是|1:否","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>e47ce54e-9db1-4fa8-b414-033f23e85f31</id>
<name>RESPONSIBLE_PERSON1</name>
<title>一级流程责任人</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Address</componentId>
<componentSetting>{"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":" ","choiceType":"single"},"deptSourceField":"","deptTargetField":""}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode>readonly</componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>c652271e-f9c4-4f59-893b-8e5b5d2cc4cf</id>
<name>LEVEL_1_AUDIT_REQUIRED</name>
<title>是否需要一级审核</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>false</nullable>
<defaultValue>1</defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.ComboBox</componentId>
<componentSetting>{"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"0:是|1:否","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode>onclick='checktype()' </componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>351776d3-70c4-4085-8d89-a230070064d4</id>
<name>SEND_SCOPE</name>
<title>发送范围</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0","placeholder":"","dataType":"localJDBC","data":{"sql":""},"isClearAllText":true,"barCode":false,"boUrlFormData":{"hrefSelVal":"nothing"},"extendType":"text","scanCodeAutoSubmit":false}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>72ca36ab-71d4-434a-a0de-b133750d9dfa</id>
<name>SYSTEM</name>
<title>流程/制度名称</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>false</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>3d823af8-0941-4be7-9841-88b801a4e4a3</id>
<name>NUMBER</name>
<title>流程/制度编号</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>false</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>e1b3c37d-5e35-4f31-aa85-a8a11a34048f</id>
<name>TEXT</name>
<title>正文</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.HTMLEditor</componentId>
<componentSetting>{"htmlHeight":"","htmlWidth":"","isAdvance":false,"isPasteplain":true,"waterMarkFlag":"","compressFlag":"","isSupportUpFile":true,"isSupportUpImg":true,"isWaterMark":true,"isCompress":true}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>8f9f40ad-7790-45c8-b45b-f9f2b02ed0e2</id>
<name>PROOFREADER</name>
<title>校对人</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>false</nullable>
<defaultValue>@userName()</defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Address</componentId>
<componentSetting>{"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":" ","choiceType":"single"},"deptSourceField":"","deptTargetField":""}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode>readonly</componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>839140c2-296f-4d61-b06f-b67e5dfb742f</id>
<name>DEPARTMENT_CAME</name>
<title>会审部门</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Address</componentId>
<componentSetting>{"placeholder":"","addressType":"dept","isLiveSearch":true,"addressSetting":{"delimiter":",","choiceType":"multiple","leafType":"dept"},"range":"all","isFullDeptPath":false,"deptSourceField":"DEPTNAME","deptTargetField":"DEPARTMENT_CAME"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
</boItems>
<boIndexs>
<boIndex>
<id>4c7b43eb-be74-426c-a3ea-833b82ef3181</id>
<name>AWS_IN_7A7B032CF648</name>
<type>INDEX</type>
<boItems>BINDID</boItems>
</boIndex>
</boIndexs>
<boRelations/>
<hashFields></hashFields>
</boModel>

View File

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<boModel>
<id>852307f0-3faf-4951-b882-dc6e5170b5ec</id>
<createUser>admin</createUser>
<createTime>2022-07-08 15:39:01</createTime>
<updateUser>admin</updateUser>
<updateTime>2022-07-08 16:26:02</updateTime>
<signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrtzDfN71Qb3YI6yys7W/8+e7fsxnaXz8PzcjNqMEzgQ0skx4GuTibQu/K9Sj+6WDr</signature>
<managed>false</managed>
<title>单位信息</title>
<name>BO_ACT_ORGINFO</name>
<collection>false</collection>
<system>false</system>
<deleted>false</deleted>
<categoryName>资产库周期管理</categoryName>
<administrator>admin</administrator>
<entityType>TABLE</entityType>
<viewType></viewType>
<viewSql></viewSql>
<securityLevel>0</securityLevel>
<target>_local</target>
<itemProps></itemProps>
<boItems>
<boItem>
<id>6cbc062e-193b-4f1b-841d-5227221ac33c</id>
<name>ORGNAME</name>
<title>单位名称</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>7877f97f-13f3-4b7a-94dc-8f05faed142a</id>
<name>ORGCODE</name>
<title>单位编码</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
</boItems>
<boIndexs>
<boIndex>
<id>a4569ca0-c25a-4b30-89be-65d6ccc54cce</id>
<name>AWS_IN_C5C00184E48E</name>
<type>INDEX</type>
<boItems>BINDID</boItems>
</boIndex>
</boIndexs>
<boRelations/>
<hashFields></hashFields>
</boModel>

View File

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<boModel>
<id>bf435da5-9f43-4070-9c21-4665f5ea6f5b</id>
<createUser>admin</createUser>
<createTime>2022-07-08 15:55:23</createTime>
<updateUser>admin</updateUser>
<updateTime>2022-07-08 16:03:55</updateTime>
<signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrEaymJhQtrBczdap0JtHEjGleiB+9lE7RTrZDum4Iq308DQ1CTbnWR5nhHslePx/y</signature>
<managed>false</managed>
<title>产品信息</title>
<name>BO_ACT_PRODUCT_INFO</name>
<collection>false</collection>
<system>false</system>
<deleted>false</deleted>
<categoryName>资产库周期管理</categoryName>
<administrator>admin</administrator>
<entityType>TABLE</entityType>
<viewType></viewType>
<viewSql></viewSql>
<securityLevel>0</securityLevel>
<target>_local</target>
<itemProps></itemProps>
<boItems>
<boItem>
<id>d56423ae-baf3-454c-b140-1c64403be8ba</id>
<name>PRODUCTNAME</name>
<title>产品名称</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>471bbcf0-74e3-4ca7-8d4d-35632444ce9e</id>
<name>PRODUCTCODE</name>
<title>产品编码</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
</boItems>
<boIndexs>
<boIndex>
<id>d44e0d17-519c-4d82-a37e-3a9df3a1fbbb</id>
<name>AWS_IN_B503DB36B17B</name>
<type>INDEX</type>
<boItems>BINDID</boItems>
</boIndex>
</boIndexs>
<boRelations/>
<hashFields></hashFields>
</boModel>

View File

@ -0,0 +1,201 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<boModel>
<id>d3290b20-15b4-4d9e-b7b3-2e78fab8ee53</id>
<createUser>管理员</createUser>
<createTime>2014-08-12 14:18:35</createTime>
<updateUser></updateUser>
<updateTime>2018-08-06 15:58:54</updateTime>
<signature>DgQSSyFmOqrf7WQa6WFesZuTOnzFe+zevZg0BYW55MuhMOtUylRD92QW2MZY8fzuncc44hdg4z8VWK6/birzUG0M6aK7MRt6RGPbigDjRVpUICrKCvQxSXxS/eu4Whg8</signature>
<managed>true</managed>
<title>流程变更清单</title>
<name>BO_ACT_COE_PUBLISH_C</name>
<collection>true</collection>
<system>false</system>
<deleted>false</deleted>
<categoryName>资产库周期管理</categoryName>
<administrator>admin</administrator>
<entityType>TABLE</entityType>
<viewType>COMMON</viewType>
<viewSql></viewSql>
<securityLevel>0</securityLevel>
<target></target>
<boItems>
<boItem>
<id>cbc32419-9dfb-4ee1-a416-8ff5b221ce29</id>
<name>CHANGETYPE</name>
<title>类型</title>
<columnType>TEXT</columnType>
<length>36</length>
<nullable>false</nullable>
<defaultValue>C</defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>false</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
</boItem>
<boItem>
<id>681dc4f4-b9f7-499c-acab-3327cb428af0</id>
<name>CHANGEFILENAME</name>
<title>文件名</title>
<columnType>TEXT</columnType>
<length>64</length>
<nullable>false</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
</boItem>
<boItem>
<id>ba12cc19-727b-460b-8fe3-d2a76c676e90</id>
<name>CHANGEDFILENAMENEW</name>
<title>变更后文件名</title>
<columnType>TEXT</columnType>
<length>64</length>
<nullable>false</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.ComboBox</componentId>
<componentSetting>{"boItemId":"d3290b20-15b4-4d9e-b7b3-2e78fab8ee53","isAdvance":false,"dataType":"sampleText","data":" ","mode":"common"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
</boItem>
<boItem>
<id>5958eb08-4517-4983-bb25-73bd06a5a066</id>
<name>CHANGEDDESC</name>
<title>变更说明</title>
<columnType>TEXT</columnType>
<length>255</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>150</columnWidth>
<componentId>AWSUI.Textarea</componentId>
<componentSetting>{"fnKey1":"false","fnKey2":"false","fnKey3":"false","key":""}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
</boItem>
<boItem>
<id>9a6b4d02-87ce-42cb-b0cf-08bd7e89a362</id>
<name>CHANGEFILEID</name>
<title>变更文件Id</title>
<columnType>TEXT</columnType>
<length>36</length>
<nullable>false</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>false</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
</boItem>
<boItem>
<id>d2c9bfc7-0a65-471f-a8ca-7c55ed1c83ce</id>
<name>CHANGEDFILEIDNEW</name>
<title>变更后文件Id</title>
<columnType>TEXT</columnType>
<length>36</length>
<nullable>false</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>false</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
</boItem>
<boItem>
<id>7a979714-e26d-4126-bfc8-d480f7e3f3cf</id>
<name>TASKID</name>
<title>TASKID</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>false</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
</boItem>
</boItems>
<boIndexs/>
<boRelations/>
</boModel>

View File

@ -0,0 +1,113 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<boModel>
<id>eae10775-931d-408d-9779-1636ad412878</id>
<createUser>admin</createUser>
<createTime>2022-07-08 15:43:06</createTime>
<updateUser>admin</updateUser>
<updateTime>2022-07-08 15:44:47</updateTime>
<signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrlHu0ObreBSgVqch2KEDzh1ol7EhBkcD8RA1AsaNH7HQqmpDR+im9b1zkjl2y1NU1</signature>
<managed>false</managed>
<title>流程信息</title>
<name>BO_ACT_PROCESSINFO</name>
<collection>false</collection>
<system>false</system>
<deleted>false</deleted>
<categoryName>资产库周期管理</categoryName>
<administrator>admin</administrator>
<entityType>TABLE</entityType>
<viewType></viewType>
<viewSql></viewSql>
<securityLevel>0</securityLevel>
<target>_local</target>
<itemProps></itemProps>
<boItems>
<boItem>
<id>6d47ddb9-d155-490a-bb09-a7a94abf9818</id>
<name>LEVEL</name>
<title>流程等级</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.ComboBox</componentId>
<componentSetting>{"placeholder":"","boItemId":"eae10775-931d-408d-9779-1636ad412878","isAdvance":false,"dataType":"sampleText","data":"L1:L1|L2:L2|L3:L3","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>a59ad577-fd37-4f17-8539-d0f097ce1e21</id>
<name>PROCESSNAME</name>
<title>流程名称</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
<boItem>
<id>8a9cd669-0986-42c2-9cd1-210282b6da7b</id>
<name>PROCESSCODE</name>
<title>流程编码</title>
<columnType>TEXT</columnType>
<length>128</length>
<nullable>true</nullable>
<defaultValue></defaultValue>
<columnWidth>100</columnWidth>
<componentId>AWSUI.Text</componentId>
<componentSetting>{"search":"0"}</componentSetting>
<display>true</display>
<deleted>false</deleted>
<modify>true</modify>
<componentExtendCode></componentExtendCode>
<persistenceType>ENTITY</persistenceType>
<validateType></validateType>
<validateRule></validateRule>
<validateTip></validateTip>
<validateErr>0</validateErr>
<tooltip></tooltip>
<copy>false</copy>
<displayRule></displayRule>
<calcFormula></calcFormula>
<propsVal>{}</propsVal>
</boItem>
</boItems>
<boIndexs>
<boIndex>
<id>3d02cde9-057c-4bb5-9247-12d5532f6cee</id>
<name>AWS_IN_CD04D9C191DE</name>
<type>INDEX</type>
<boItems>BINDID</boItems>
</boIndex>
</boIndexs>
<boRelations/>
<hashFields></hashFields>
</boModel>

View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--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"/>
</dictionary>
<!--AWS 字典描述UUID-->

View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--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"/>
</dictionary>
<!--AWS 字典描述UUID-->

View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--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"/>
</dictionary>
<!--AWS 字典描述UUID-->

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--AWS 字典描述文件,适用于3.0以上版本-->
<dictionary>
<id>0dbcd2ef-52f6-4879-a04b-13c93e1e0913</id>
<!--app分类-->
<!--字典显示的标题-->
<!--要显示的SQL记录
1.where条件支持所有@命令,@命令与其他SQL字符串连接使用+,参见+语法
2.这个SQL应该是一个完整的,经过调试的SQL,除@命令外
-->
<!--每页显示行数-->
<page>10</page>
<!--连接数据源-->
</dictionary>
<!--AWS 字典描述UUID-->

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,216 @@
var autoTime=600;//锟斤拷锟斤拷锟斤拷锟<E68BB7>
/*===================================================================================*/
var autoInputObj;//input锟斤拷锟斤拷
var autoCount=0;
var autoCountWait=0;
var autoURL;
var autoVal;
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;
}
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");
}
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';
}
}
$(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';
}
});
});
function hwTime()
{
//autoCountWait=autoCount;
//setTimeout("hwTime()",2000);
}
function divEvent2() {
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";
}
function aotu_Out(obj)
{
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"));
}
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");
}
}
})
}
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"),'', '','');
}

View File

@ -0,0 +1,69 @@
$(document) .ready(
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());
}
};
var setting = {
checkbox : true,
checkInherit : false/*,
event : {
onClick : onClick,
// beforeExpand : loadData,
afterExpand : function(tree) {
// checkedNodeById(tree);
}
}*/
};
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
});
}
function getCheckedNode() {
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);
}
}
}
}

View File

@ -0,0 +1,360 @@
$(document) .ready(function() {
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);
}
}
});
}
};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,136 @@
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);
});
function initTree() {
$("#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;
}
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);
}
}
});
}
}
function clickNode(treeNode){
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) {
}
});
}
}
/**********************************************查询***********************************************/
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";
}
function auto_Out(obj) {
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);
}

View File

@ -0,0 +1,70 @@
/** ***************************************加载更多*********************************************** */
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("下拉加载更多...");
}
}
});
}, 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\">&nbsp;</p>";
}
html += " <p class=\"intro\">" + obj.intro + "</p>"
+ " <p class=\"version\">&nbsp;</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);
}
}

View File

@ -0,0 +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();
// 检索关键词
$('#searchText').off('keypress').on('keypress', function (e) {
if (e.which === 13) {
$('#search').click();
}
});
$('body').click(function(e) {
var target = $(e.target);
if(!target.is('#changeWsDialog *')) {
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});
});
})
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());
}
//分页设置
var page = {
pageSetting : {
pageLimit : 20, // 每页条数
start:0//起始条数
},
initPageSetting : function () {
page.pageSetting.start = 0;
}
}
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);
}
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();
}
function initHtml() {
$('#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);
}
// 获取数据
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>';
// 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');
}
}
})
}
// 页签栏
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();
}
}

View File

@ -0,0 +1,688 @@
var repositoryTree;
var navtab;
$(document).ready(function(){
if (wsTreeData.length > 0) {
initTree();
} else {
$("#tree").html("没有可查看的流程");
}
$("#userName, #userName_icon").unbind("click").bind("click", function(){
$("#appviewport2-top-right-dialog").slideToggle("fast");
$(".content-icons").toggleClass("up_black");
});
$(document).off("click.close").on("click.close", function(e){
$('#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));
})
//设置默认参数
$("#isComment").customSelect("<#isComment>");
$("#isPrint").customSelect("<#isPrint>");
$("#isViewAttribute").customSelect("<#isViewAttribute>");
$("#isViewHistory").customSelect("<#isViewHistory>");
// 强制修改密码
if (forceChangePwd) {
modifyPwd();
}
// 如果不允许修改密码
if (!isSecurityPwdChange) {
$('#updatePwd').remove();
}
//app设置
$("#relationSearch").off("click").on("click", function(){
var $this = $(this);
$("#tree .current").removeClass("current");
$("div.active").removeClass("active");
$this.addClass("active");
var id = $this.attr("appId");
var title = $this.attr("name");
var cmd = id.replace(/\_/g, ".") + $this.attr("cmd");
var src = "./w?sid=" + $("#sid").val() + "&cmd=" + cmd + "&wsIds=" + wsIds + "&modelIds=" + modelIds;
openAppTab(id, title, src);
})
});
function initTree() {
$("#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
}
};
return setting;
}
function clickNode(treeNode){
if (!$("#home_iframe").is(":visible")) {
$("#main_publish_content").css({"position": "relative"});
$("#mainPublishList").css({"position": "absolute", "width": "90%"});
$("#mainPublishList").animate({
width: "0px",
height: "0px",
top: "-50px",
right: "0px"
}, 1000, function(){
$("#mainPublishList").hide();
$("#home_iframe").show();
})
}
var ids = "";
var childrenNodeIds;
if (treeNode.pid == null) {
childrenNodeIds = repositoryTree.getChildrenByPid(treeNode.id);
if (childrenNodeIds != undefined && childrenNodeIds.length > 0) {
for (var i in childrenNodeIds) {
ids += childrenNodeIds[i].id + ",";
}
}
} else {
childrenNodeIds = repositoryTree.getNodeIdsByPid(treeNode.id);
if (childrenNodeIds != undefined && childrenNodeIds.length > 0) {
for (var i in childrenNodeIds) {
ids += childrenNodeIds[i] + ",";
}
}
}
if (ids.length > 0) {
ids = ids.substring(0, ids.length-1);
}
palIds = ids;
if (window.frames["home_iframe"].contentWindow) {
window.frames["home_iframe"].contentWindow.clickNodeToSearch(ids);
} else if (window.frames["home_iframe"].window) {
window.frames["home_iframe"].window.clickNodeToSearch(ids);
}
}
//获取路径
function getNavigation() {
var navigation = "";
var selectNode = repositoryTree.getSelectedNode();
if (selectNode != undefined && selectNode != null) {
navigation = "<a href='#' nodeId='" + selectNode.id + "'>" + selectNode.name + "</a>" + " > " + navigation;
var parentNode = repositoryTree.getParentNodeById(selectNode.id);
while (parentNode != undefined && parentNode != null) {
navigation = "<a href='#' nodeId='" + parentNode.id + "'>" + parentNode.name + "</a>" + " > " + navigation;
parentNode = repositoryTree.getParentNodeById(parentNode.id);
}
}
if (navigation != "") {
navigation = navigation.substring(0, navigation.length - 3);
}
return navigation;
}
//点击导航
function clickNavigation(nodeId) {
repositoryTree.selectNode(nodeId, true);
var node = repositoryTree.getNodeById(nodeId);
clickNode(node);
}
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 + "&filePerms=" + modelIds;
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='"
+ 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) {
}
});
}
}
//打开app的tab
function openAppTab(id, title, src) {
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='"
+ src + "'></iframe>").appendTo(navtab.tabContentPanel);
navtab.addTab(setting);
}
}
/********************************************显示发布历史*****************************************************/
function searchPublishList(obj) {
$("#select_type 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 class="publish_content">'
+ ' <div class="title-time">' + datas[i].date + '</div>'
+ ' <div class="description">' + datas[i].pDesc + '</div>'
+ ' <div style="margin-top: 10px;">';
}
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) {
onclick = 'openTab({id:\'' + datas[i].repositoryId + '\', title:\'' + datas[i].repositoryName + '\'})';
cursorStyle = "cursor: pointer;";
}
html += ' <section class="block_div">'
+ ' <span class="point-time point-' + color + '"></span>'
+ ' <aside>'
+ ' <span class="text-' + color + '" onclick="' + onclick + '" style="' + cursorStyle + '">' + datas[i].repositoryName + datas[i].repositoryVersion + '<span style="color: #808080; font-size: 10px;">(' + publishType + ')</span>' + '</span>'
+ ' </aside>'
+ ' </section>';
}
if (html != "") {
html += ' </div>'
+ '</div>';
}
$("#publish_history_list").html(html);
}
});
}
function showPublishList() {
if ($("#publish_history").is(":hidden")) {
var height = $("#publish_history").height();
$("#publish_history_list").css({"height": (height - 78) + "px"});
$("#publish_history").show();
if ($("#publish_history_list").text().length == 0) {
searchPublishList($("#publish_list_all"));
}
} else {
$("#publish_history").hide();
}
}
/********************************************门户其他操作*****************************************************/
//修改密码
function modifyPwd() {
$("#userName").click();
$("#modify_dialog").dialog({
width: 500,
title: "修改登录口令",
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();
}
});
}
//参数设置
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){
}
});
}
//退出
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;
}
});
}
//判断字符长度
function strlen(str) {
var len = 0;
for (var i = 0; i < str.length; i++) {
var c = str.charCodeAt(i);
//单字节加1
if ((c >= 0x0001 && c <= 0x007e) || (0xff60 <= c && c <= 0xff9f)) {
len++;
}
else {
len += 2;
}
}
return len;
}
function changeTabTitle(id, TabTitle, uuid) {
navtab.changeIndex(id, uuid);
navtab.setTitle(uuid, TabTitle);
}
function openTabCustom(id, url, title) {
var setting = {
item : {
index : id,
title : title
},
close : true
};
if (navtab.existsTab(id)) {
navtab.focusTab(id);
} else {
var html = $("<iframe allowfullscreen='true' webkitallowfullscreen='true' frameborder='0' index='"
+ id
+ "' height='100%' width='100%' class='awsui-layout-iframe' src='"
+ url + "'></iframe>").appendTo(navtab.tabContentPanel);
navtab.addTab(setting);
}
}
//安全验证
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;
}
}
//判断口令长度
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;
}
}
//判断口令的复杂程度
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;
}
}
//判断一个串实际长度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);
}
$(window).resize(function(){
//设置tree外层div高度以设置滚动条
var width = $("#appviewport2-top-right").width();
if (version == "v1") {
$("#tree").parent().height($(window).height() - 50);
} else if (version == "v2") {
$("#tree").parent().height($(window).height() - 115);
$("#orgTree").parent().height($(window).height() - 115);
}
//设置tab宽度
if ($("#show_left").is(":hidden")) {
$("#awsui-tabs").css({"width": $(window).width() - 65 - width, "display": "inline-block", "float": "left"});
} else {
$("#awsui-tabs").css({"width": $(window).width() - 273 - width, "display": "inline-block", "float": "left"});
}
//设置tab宽度
if ($("#extend_tabs")) {
var tab_width = $("#title").width() - $("#awsui-tabs1").width() - $("#setting_div").width() - 50;
$("#extend_tabs").width(tab_width);
}
//右侧消息栏高度
var height = $("#publish_history").height();
$("#publish_history_list").css({"height": (height - 78) + "px"});
})

View File

@ -0,0 +1,154 @@
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);
}
});
}
function openTab(obj) {
$("#content").hide();
$("#extend_content").show();
var dockOption = dockDisplay.replace(/"/g, '&quot;');
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);
}
//点击主标题
function clickMainTab() {
$("#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;
}
}

View File

@ -0,0 +1,415 @@
var repositoryTree;
var navtab;
$(document).ready(function(){
$("#user").off("mouseenter").on("mouseenter", function () {
$("#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, #userName, #userName_icon').click(function(e1){
e1.stopPropagation(); // 阻止事件冒泡
});
$("#select_type span").on("click", function(){
searchPublishList($(this));
})
// 检索关键词
$('#searchText').off('keypress').on('keypress', function (e) {
if (e.which === 13) {
$('#search').click();
}
});
// 强制修改密码
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);
}
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);
}
/********************************************门户其他操作*****************************************************/
//修改密码
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');
}
}
]
});
}
//切换到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();
}
});
}
//参数设置
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){
}
});
}
//退出
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;
}
});
}
//判断字符长度
function strlen(str) {
var len = 0;
for (var i = 0; i < str.length; i++) {
var c = str.charCodeAt(i);
//单字节加1
if ((c >= 0x0001 && c <= 0x007e) || (0xff60 <= c && c <= 0xff9f)) {
len++;
}
else {
len += 2;
}
}
return len;
}
//安全验证
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;
}
}
//判断口令长度
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;
}
}
//判断口令的复杂程度
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;
}
}
//判断一个串实际长度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);
}

View File

@ -0,0 +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();
}
}
//查询数据
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){
}
});
}
//生成搜索结果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);
}
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);
}
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();
}
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);
}
function initPlrdAndPlrp(obj, datas) {
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");
}
}
//点击模型文件图标
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);
}
function clickDisActiveLi() {
$.simpleAlert('该应用未安装或已暂停');
}
function dbClickModelLi(obj) {
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';
} 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();
}
}

View File

@ -0,0 +1,121 @@
$(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);
})
/**************资产库切换*******************/
function initWs() {
$("#wsChangeArea").off("mouseenter").on("mouseenter", function () {
$('#changeWsDialog').show();
}).off("mouseleave").on("mouseleave", function () {
$('#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);
}
function changeWs(obj) {
$('#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();
}).off("mouseleave").on("mouseleave", function () {
$('#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);
}
function changeOrg(obj) {
$('#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);
}
}
// tab切换
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);
}
// 查询
function search() {
// 所有类型,搜索框内容,当前类型,
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");
}
function hideWsAndOrgList(){
$('#changeWsDialog').hide();
$('#changeOrgDialog').hide();
}

View File

@ -0,0 +1,322 @@
var first;
var secend;
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();
}
if ($.browser.isIE && $.browser.isIE10) {
$(".row-left").css("display","inline-block").css("float","left");
$(".row-right").css("display","inline-block").css("float","left");
$(".row-left").css("width","180px");
var rightW = $(window).width()- $(".row-left").width()-15;
$(".row-right").css("width",rightW+"px");
$(".row-left-line-link").css("width","45px");
$(".row-left-line-link").css("background","#efefef");
$(".row-box").css("float","left");
$(".row-box").css("width",$(window).width()+"px");
}
}
// 初始化二级数据
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\')>&#xe716;</span>';
}
content += '</span>';
content += '</div>';
}
content += '</div>';
}
if (content.length > 0) {
$('#' + id).html(content);
}
}
}
// 双击打开右侧权限流程(责任部门)
function openDetail(id) {
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 : "收起",
width : "330px",
isMode : false,
duration : "slow",
color:"#fff",
iframeId : "iframeId",
onClose : function(){
}
});
}
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');
}
}
/*
* 判断当前按钮是否为已点击状态
* return true:当前已点击 false:当前未点击
* */
function isClick(obj) {
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\') >&#xe716;</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\')>&#xe716;</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);
}
function clickSpanSet(obj, level) {
clickSet($(obj).closest('span.row-right-row-span').find('button.row-right-button')[0],level);
}

View File

@ -0,0 +1,335 @@
var first;
var secend;
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();
}
if ($.browser.isIE && $.browser.isIE10) {
$(".row-left").css("float","left");
$(".row-right").css("float","left");
$(".row-left").css("width","180px");
var rightW = $(window).width()- $(".row-left").width()-15;
$(".row-right").css("width",rightW+"px");
$(".row-left-line-link").css("width","45px");
$(".row-left-line-link").css("background","#efefef");
}
}
// 初始化二级数据
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\')>&#xe716;</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');
}
}
})
}
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');
}
}
/*
* 判断当前按钮是否为已点击状态
* return true:当前已点击 false:当前未点击
* */
function isClick(obj) {
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\') >&#xe716;</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\')>&#xe716;</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);
}
function clickSpanSet(obj, level) {
clickSet($(obj).closest('span.row-right-row-span').find('button.row-right-button')[0],level);
}

View File

@ -0,0 +1,324 @@
function toAddPublish2() {
$("#title").val(title);
$("#nav, #content").hide();
$("#add_div").show();
}
// 新增
function toAddPublish() {
$("#title").val(title);
addPublishInstance();
}
function giveUp() {
$("#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) {
}
});
}
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"
// + "&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));
}
//选中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();
}
}
//删除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);;
}
//刷新页面,用于流程办理关闭时调用
function refreshProcessList() {
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);
} else if (tit == "history") {
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);
}
})
}
/*************************************************分页 begin******************************************************/
function initPage1() {
$("#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);
}
});
}
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);
}
})
}
});
}
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);
}
});
}
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();
}
}
});
}
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);
}
});
}
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();
}
}
});
}
function loadHistoryRecord() {
var url = "./w?sid=" + encodeURIComponent($("#sid").val()) + "&cmd=com.actionsoft.apps.coe.pal.publisher_processlist_page";
$("#pl_publish_iframe_page").attr("src", url);
}
/*************************************************分页 end******************************************************/
function refreshTab() {
$('#nav').children('a').each(function() {
if ($(this).hasClass('active')) {
$(this).click();
return false;
}
})
}

View File

@ -0,0 +1,862 @@
var plParentid = 0;
var processLevel = 0;
var isLeaf = true;
var parentNodeId;
var orderIndexs = new Array();
var repositoryTree;
var copeFileNode = "";
var drpParentId;
var drpSourceParentId;
var isOpenMainIfranme = false;
var repositoryTree;
$(document).ready(function() {
initTree();
repositoryTree.expandNode($("a[tbindex=process]"), true);
});
// 新建层次 打开对话框v2
function createProcessLevelv2(wd, wsid, parentid, plLevel, div_class) {
var title = "新建文件";
var url = "./w?sid=" + encodeURIComponent($('#sid').val())
+ "&cmd=com.actionsoft.apps.coe.pal_processlevel_create_v2&wsid=" + wsid + "&id="
+ parentid;
if (parentid == 0) {
window.top.$.simpleAlert(请先选择根下相应节点, "info", 2000);
} else {
if (parentid.length == 36) {
var buttons = [
{
text : '确定',
cls : "blue",
handler : function() {
var processType = FrmDialog.win().processType;
if (processType == "default") {
saveProcessLevel(window);
var node = repositoryTree.getSelectedNode();
setPlParentIDAndProcessLevel(node);
refresh();
} else {
$.ajax({
url : './jd?cmd=com.actionsoft.apps.coe.pal_processlevel_create_save&sid=' + encodeURIComponent($('#sid').val())
+ '&wsid=' + wsid
+ '&plLevel=' + (parseInt(plLevel) + 1)
+ '&plParentId=' + parentid
+ '&category=' + FrmDialog.win().selectCategoryValue
+ '&container=' + FrmDialog.win().selectContainer
+ '&t=' + Math.random(),
success : function(msg) {
if (typeof(msg) == "string") {
msg = eval('(' + msg + ')').msg;
} else {
msg = msg.msg;
}
var url = "./w?sid="
+ encodeURIComponent($('#sid').val())
+ "&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&uuid="
+ msg
+ "&openType=0&perms=w,d,v&filePerms=-";
$("#disignerIframe").attr("src", url).attr("uuid", msg);
FrmDialog.close();
setTimeout(
function() {
var node = repositoryTree.getSelectedNode();
setPlParentIDAndProcessLevel(node);
refresh();
}, 500);
}
})
}
}
}, {
text : '关闭',
handler : function() {
FrmDialog.close();
}
} ]
var dlg=FrmDialog.open({
title:title,
height:465,
url:url,
buttons: buttons
});
} else {
window.top.$.simpleAlert("该节点上不可以新建流程");
}
}
}
/**
* 功能去除字符串中所有空格 传参需要处理的字符串 返回值去除空格后的字符串
*/
function trimSpaces(Str) {
var ResultStr = "";
Temp = Str.split(/\s/);
for (i = 0; i < Temp.length; i++) {
ResultStr += Temp[i];
}
return ResultStr;
}
// 流程规划
function saveProcessLevel(wd) {
var returnProcessJson = eval("("
+ window.top.getAwsDialogWindow().returnProcessJson() + ")");
// alert(returnProcessJson);
var defaultMessageJson = window.top.getAwsDialogWindow().defaultMessageJson;
// alert(defaultMessageJson.plParentId);
var id = returnProcessJson.id;
var wsId = returnProcessJson.wsId;
var plNo = trimSpaces(returnProcessJson.plNo);
var plName = returnProcessJson.plName;
var plLevel = returnProcessJson.plLevel;
plLevel = parseInt(plLevel) + 1;
var plParentId = returnProcessJson.plParentId;
var plDesc = returnProcessJson.plDesc;
var plOrderIndex = returnProcessJson.plOrderIndex;
var plIsBottomLevel = returnProcessJson.plIsBottomLevel;
var plRDId = returnProcessJson.plRDId;
var plRP = returnProcessJson.plRP;
/*
* if (plRP == "") { window.top.$.simpleAlert("[责任人]不允许为空"); return; }
*/
var plM = returnProcessJson.plM;
var plExecType = returnProcessJson.plExecType;
var systemName = returnProcessJson.systemName;
var plAwsPid = returnProcessJson.plAwsPid;
var oldPlAwsPid = returnProcessJson.oldPlAwsPid;
var plDiagramUrl = returnProcessJson.plDiagramUrl;
var plColor = returnProcessJson.plColor;
var plSecurityR = returnProcessJson.plSecurityR;
var plSecurityW = returnProcessJson.plSecurityW;
var oldplSecurityW = returnProcessJson.oldplSecurityW;
var oldplSecurityR = returnProcessJson.oldplSecurityR;
var methodId = returnProcessJson.methodId;
var plDutyDept = returnProcessJson.plDutyDept;
var plDutyPerson = returnProcessJson.plDutyPerson;
if (plName == "") {
window.top.$.simpleAlert("[" + 名称 + "]" + 不允许为空);
return false;
}
if (plName.length > 120) {
window.top.$.simpleAlert("[" + 名称 + "]" + "不允许超过120个字符");
return false;
}
if (plDesc.length > 1900) {
window.top.$.simpleAlert("[描述]不允许超过2000个字符");
return false;
}
if (plNo.length >= 36) {
window.top.$.simpleAlert(编号长度不允许超过36个字符);
return false;
}
if (!/^[0-9]*$/.test(plNo)) {
$.simpleAlert("编号只允许为数字类型", "info", 2000);
}
if (methodId == "") {
window.top.$.simpleAlert("对不起,没有找到相应的建模方法");
return false;
}
if (plIsBottomLevel == -1) {
window.top.$.simpleAlert("[" + 层次 + "]" + 不允许为空);
return false;
}
if (plM == -1) {
window.top.$.simpleAlert("[" + 里程碑 + "]" + 不允许为空);
return false;
}
if (plExecType == -1) {
window.top.$.simpleAlert("[" + 执行方式 + "]" + 不允许为空);
return false;
}
var params = {
id : id,
wsid : wsId,
plLevel : plLevel,
plParentId : plParentId,
plOrderIndex : plOrderIndex,
plIsBottomLevel : plIsBottomLevel,
plExecType : plExecType,
plNo : plNo,
plName : plName.trim(),
plDesc : plDesc,
plRd : plRDId,
plRp : plRP,
plM : plM,
plSystemName : systemName,
plAwsPid : plAwsPid,
oldPlAwsPid : oldPlAwsPid,
plDiagramUrl : plDiagramUrl,
plColor : plColor,
plSecurityW : plSecurityW,
oldplSecurityW : oldplSecurityW,
plSecurityR : plSecurityR,
oldplSecurityR : oldplSecurityR,
methodId : methodId,
plDutyDept : plDutyDept,
plDutyPerson : plDutyPerson
};
jQuery.ajax({
type : "POST",
url : "./jd?sid=" + encodeURIComponent(jQuery('#sid').val())
+ "&cmd=com.actionsoft.apps.coe.pal_processlevel_save",
data : params,
success : function(msg) {
if (typeof(msg) == "string") {
msg = eval('(' + msg + ')');
}
msg = msg.msg;
if (msg.indexOf("-1") == -1) {
parent.$("#iflowlist").get(0).contentWindow.refresh();
window.top.$.simpleAlert("新建成功", "ok", 2000);
window.top.closeAwsDialog();
} else {
window.top.$.simpleAlert("保存流程层级失败请稍后重试");
}
}
});
return true;
}
// ------------------------
function zTreeBeforeAsync(treeId, treeNode) {
}
function getParam() {
var wsId = jQuery("#wsId").val();
var sessionId = jQuery("#sid").val();
var param = {
sid : sessionId,
cmd : "com.actionsoft.apps.coe.pal_processlevel_treejson",
wsid : wsId
};
return param;
}
function setOrderIndexByOutGoing(outgoing, uuid, orderIndex) {
}
function setOrderIndexByArray(array, uuid, orderIndex) {
}
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);
}
}
function getSetings() {
var setting = {
sort : true,
dblClickToExpand : true,
event : {
beforeDrag : beforeDrag,
beforeDrop : beforeDrop,
onDrop : onDrop,
onClick : clickNode,
beforeExpand : loadData,
afterLoad : afterLoad
},
edit : {
enable : true,
showRemoveBtn : false,
showRenameBtn : false,
drag : {
prev : true,
next : true,
inner : true
}
},
async : {
enable : true,
type : "post",
url : "./w",
autoParam : [ "id=pid" ],
otherParam : getParam()
},
data : {
keep : {
parent : true
}
}
};
setting.contextMenu = {
items : [
{
text : "复制",
tit : "copy",
method : function(obj) {
var node = repositoryTree.getSelectedNode();
setPlParentIDAndProcessLevel(node);
copeFileNode = node;
$(setting.contextMenu.target).menu("close");
}
},
{
text : "粘贴",
tit : "paste",
method : function(obj) {
if (copeFileNode == null) {
window.top.$.simpleAlert("请先复制文件", "info", 2000);
$(setting.contextMenu.target).menu("close");
return;
}
var node = repositoryTree.getSelectedNode();
if (node.plCategory != copeFileNode.plCategory) {
window.top.$.simpleAlert("对不起,不能跨文件类型粘贴", "info",
2000);
$(setting.contextMenu.target).menu("close");
return;
}
setPlParentIDAndProcessLevel(node);
$.ajax({
url : './w?cmd=com.actionsoft.apps.coe.pal_processlevel_copy&sid='
+ encodeURIComponent($('#sid').val())
+ '&sourceUUID=' + copeFileNode.id
+ '&targetUUID=' + node.id,
async : false,
success : function(msg) {
if (typeof(msg) == "string") {
msg = eval('(' + msg + ')').data;
}
refresh();
if (msg.success == "true") {
window.top.$.simpleAlert(msg.message, "ok", 2000);
} else {
window.top.$.simpleAlert(msg.message, "error");
}
}
})
$(setting.contextMenu.target).menu("close");
}
},{
text : "新增",
tit : "create",
method : function(obj) {
var node = repositoryTree.getSelectedNode();
createProcessLevelv2(window,$("#wsId").val(),node.id,node.plLevel, '');
$(setting.contextMenu.target).menu("close");
}
},{
text : "删除",
tit : "remove",
method : function(obj) {
$(setting.contextMenu.target).menu("close");
var node = repositoryTree.getSelectedNode();
deleteProcessLevel(window, node.name, node.id, node.pid);
}
}
],
target : "#contextMenu"
};
setting.dataModel = {
data : data
};
return setting;
}
function loadData(treeNode) {
// 如果是父节点并且存在子节点执行加载
if (treeNode && treeNode.id.length == 36) {
var dataModel = {
url : "./w?sid=" + jQuery("#sid").val()
+ "&cmd=com.actionsoft.apps.coe.pal_processlevel_treejson&pid=" + treeNode.id
+ "&wsid=" + jQuery("#wsId").val(),
method : "POST",
dataType : "json"
}
repositoryTree.refreshNode({
id : treeNode.id,
dataModel : dataModel
});
}
}
function afterLoad() {
$("a[tabindex=process]").trigger("click.nodeClick");
}
// 拖拽前事件
function beforeDrag(treeNode) {
return true;
}
// 移动节点前现将所有的 orderindex计入一个集合
function putOrdexIndexs(treeNode) {
var nodes = repositoryTree.getChildrenByPid(treeNode.pid);
for (var i = 0; i < nodes.length; i++) {
orderIndexs[i] = nodes[i].plOrdexIndex;
}
}
var dragType = "";
function beforeDrop(target, source) {
if (target.plCategory != source.plCategory) {
window.top.$.simpleAlert("不允许跨文件类型移动", "info", 2000);
return false;
}
if (repositoryTree.moveObj.find("span:first").hasClass("inner")) {
dragType = "inner"; //插入target内部
} else {
dragType = "insert"; //插入target后面
}
return true;
}
function onDrop(target, source, position) {
if(dragType == 'inner' && target.id == source.pid) {
$.simpleAlert('不允许移动到<b>'+ source.name +'</b>自身的父节点内部', 'error');
return;
}
// 添加特殊情况处理sunlh
var flag = true;
if(dragType == 'insert') {
// 若目标文件为展开状态,增加是放入目标文件的后面或者放入目标文件的内部第一个的判断
var targetId = target.id;
if($('#tree_ul_' + targetId).length > 0) { //存在加载好的子节点
if(!$('#tree_ul_' + targetId).is(':hidden')) { // 子节点已展开
flag = false;
$('#moveDialog').dialog({
title : '移动选项',
buttons: [
{text:'确定',cls:"blue",handler:function(){
if($('#moveInnerFirst').prop('checked')) {
var firstChildId = $('#tree_ul_' + targetId).find('li:first').attr('li_index');
var targetNode = repositoryTree.getNodeById(firstChildId);
moveTreeNode(targetNode, source, 'above');
}
if($('#moveInsertBelow').prop('checked')) {
moveTreeNode(target, source, position);
}
$('#moveDialog').dialog('close');
}},
{text:'取消',handler:function(){$('#moveDialog').dialog('close');return;}}
],
onClose: function() {
$('#moveInnerFirst').check('option','checked', true);
}
});
}
}
}
if(flag) {
moveTreeNode(target, source, position);
}
}
// 拖动树节点
function moveTreeNode(target, source, position) {
var sourceParentNode = repositoryTree.getNodeById(source.pid);
var targetParentNode = repositoryTree.getNodeById(target.pid);
if (targetParentNode == undefined) {
targetParentNode = repositoryTree.getNodeById(target.id);
}
var msg = "";
if(dragType == 'inner') {// 放入里面,默认最后的位置
msg = "确认将<b>" + source.name + "</b>放入<b>" + target.name + "</b>里面?";
}
if(dragType == 'insert') {// 放入文件之间
if(position == 'below') {// 放入target下面
msg = "确认将<b>" + source.name + "</b>放入<b>" + target.name + "</b>的后面(同级)?";
}
if(position == 'above') {// 放入target上面
msg = "确认将<b>" + source.name + "</b>放入<b>" + target.name + "</b>的前面(同级)?";
}
}
var options = {
title : "提示",
content:msg,
onConfirm: function(){
// 拖拽成功后
awsui.ajax.request({
url : "./jd",
method : "POST",
data : {
sid: $("#sid").val(),
cmd: "com.actionsoft.apps.coe.pal_update_index_or_pid",
sourceId: source.id,
targetId: target.id,
type: dragType,
position: position
},
ok : function(r) {
//initTree();
doLoad(sourceParentNode);
doLoad(targetParentNode);
dragType = "";
},
err:function(r){
}
});
},
onCancel : function(){
return true;
}
};
$.confirm(options);
}
/*var dragType = "";
function beforeDrop(target, source) {
if (target.plCategory != source.plCategory) {
window.top.$.simpleAlert("不允许跨文件类型移动", "info", 2000);
return false;
}
if (repositoryTree.moveObj.find("span:first").hasClass("inner")) {
dragType = "inner"; //插入target内部
} else {
dragType = "insert"; //插入target后面
}
return true;
}
function onDrop(target, source, position) {
var sourceParentNode = repositoryTree.getNodeById(source.pid);
var targetParentNode = repositoryTree.getNodeById(target.pid);
if (targetParentNode == undefined) {
targetParentNode = repositoryTree.getNodeById(target.id);
}
var options = {
title : "提示",
content:"确定移动此文件吗?",
onConfirm: function(){
// 拖拽成功后
awsui.ajax.request({
url : "./jd",
method : "POST",
data : {
sid: $("#sid").val(),
cmd: "com.actionsoft.apps.coe.pal_update_index_or_pid",
sourceId: source.id,
targetId: target.id,
type: dragType,
position: position
},
ok : function(r) {
//initTree();
doLoad(sourceParentNode);
doLoad(targetParentNode);
},
err:function(r){
}
});
},
onCancel : function(){
return true;
}
};
$.confirm(options);
}*/
// 同级移动返回更新后的orderIndex
function getNewOrderIndexStr(parentNode) {
var str = "";
var nodes = repositoryTree.getChildrenByPid(parentNode.id);
;
for (var i = 0; i < nodes.length; i++) {
nodes[i].plOrdexIndex = orderIndexs[i];
}
for (var i = 0; i < nodes.length; i++) {
if (i == 0) {
str += nodes[i].id + "|" + nodes[i].plOrdexIndex;
} else {
str += "," + nodes[i].id + "|" + nodes[i].plOrdexIndex;
}
}
// console.log(str);
return str;
}
// 跨级移动更新pid
function getNewPid(treeNodes, afterId) {
var pids = "";
for (var i = 0; i < treeNodes.length; i++) {
if (i == 0) {
pids += treeNodes[i].id;
} else {
pids += "|" + treeNodes[i].id;
}
}
pids += "," + afterId;
return pids;
}
// 异步设置orderindex
function updateOrderIndex(str, target, source) {
var param = {
orderIndexs : str
}
jQuery.ajax({
type : "POST",
url : "./w?sid=" + encodeURIComponent(jQuery('#sid').val())
+ "&cmd=com.actionsoft.apps.coe.pal_processlevel_setploaderindex",
data : param,
success : function(msg) {
if (msg == "-1") {
window.top.$.simpleAlert("拖动失败请稍候重试", "info", 2000);
} else {
window.setTimeout(function() {
refreshNode(source.pid);
}, 300);
window.setTimeout(function() {
refreshNode(target.id);
}, 300);
}
}
});
}
function updatePid(str, target, source) {
var param = {
pids : str
}
jQuery.ajax({
type : "POST",
url : "./w?sid=" + encodeURIComponent(jQuery('#sid').val())
+ "&cmd=com.actionsoft.apps.coe.pal_processlevel_setplid",
data : param,
success : function(msg) {
if (msg == "-1") {
window.top.$.simpleAlert("拖动失败请稍候重试", "info", 2000);
} else {
window.setTimeout(function() {
refreshNode(source.pid);
}, 300);
window.setTimeout(function() {
refreshNode(target.id);
}, 300);
}
}
});
}
function clickNode(treeNode) {
if (treeNode.id.length == 36) {
openDesginer(treeNode.id, 0, treeNode.name, "", treeNode.versionId, false, "0");
}
}
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",
uuid : uuid,
openType : openType,
processDefId : processVersionId,
collaboration : collaboration,
teamId : "",
perms: "w,d,v",
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 openDesginerFromAttr(uuid, openType, plName, appId, processVersionId,
isOpenDialog, shapeId) {
var params = {
sid : encodeURIComponent(jQuery('#sid').val()),
cmd : "com.actionsoft.apps.coe.pal_pl_repository_designer_open_shape_page",
uuid : uuid,
openType : openType,
processDefId : processVersionId,
shapeId : shapeId,
teamId : ""
};
var 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] + "&";
}
}
return connParms.substring(0, connParms.length - 1);
}
function closeTabById(index) {
awsTabs.closeTab(index, null);
}
// 异步节点加载成功后回调
function onAsyncSuccess(event, treeId, treeNode, msg) {
var zTree = jQuery.fn.zTree.getZTreeObj("processLevelTree");
setTimeout(function() {
if (treeNode) {
if (treeNode.level < 1) { // 展开到指定层级
if (treeNode.children && treeNode.children.length > 0) {
expandNodes(zTree, treeNode.children);
}
}
}
}, 500); // 加载下级节点
}
function getNodeIndex(nodes, treeNode) {
var index = 0;
if (nodes && treeNode) {
for (var i = 0; nodes.length; i++) {
if (treeNode.id == nodes[i].id) {
index = i + 1;
break;
}
}
}
return index;
}
function setPlParentIDAndProcessLevel(treeNode) {
if (!treeNode.isParent) {
treeNode.isParent = true;
}
plParentid = treeNode.id;
processLevel = treeNode.plLevel;
isLeaf = treeNode.isParent;
}
// 展开所有节点
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);
}
}
}
// 自动展开两级节点
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);
}
}
}
// 自动展开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);
}
}
}
// 刷新指定节点
function refreshNode(id) {
if (!id) {
id = plParentid;
}
var node = repositoryTree.getNodeById(id);
if (node == null) {
} else {
loadData(node);
if (repositoryTree.existsChildren(id)) {
node.open = true;
} else {
delete node.open;
}
doLoad(node, "reload");
}
}
// 刷新树
function refresh(id) {
refreshNode(id);
}
function doLoad(treeNode, type) {
var dataModel = {
url : "./jd?sid=" + $("#sid").val()
+ "&cmd=com.actionsoft.apps.coe.pal_processlevel_treejson&pid=" + treeNode.id
+ "&wsid=" + $("#wsId").val(),
method : "POST",
dataType : "json"
}
repositoryTree.refreshNode({
id : treeNode.id,
dataModel : dataModel
});
}
function deleteProcessLevel(wd, name, id, pid) {
var options = {
title : "提示",
content : "确定删除流程" + "[" + name + "]" + "吗?",
model : false,
onConfirm : function() {
$.simpleAlert("正在处理", "loading");
var wsId = jQuery("#wsId").val();
var params = {
wsid : wsId,
pid : id
};
jQuery.ajax({
type : "POST",
url : "./w?sid=" + encodeURIComponent(jQuery('#sid').val())
+ "&cmd=com.actionsoft.apps.coe.pal_processlevel_tree_remove",
data : params,
success : function(msg) {
$.simpleAlert("close");
msg = eval('(' + msg + ')').msg;
if (msg == "1") {
$.simpleAlert("删除成功", "ok", 2000);
refreshNode(pid);
if ($("#disignerIframe").attr("uuid") == id) {
$("#disignerIframe").attr("uuid", "").attr("src", "");
}
} else {
$.simpleAlert("删除失败请稍后重试", "info", 2000);
}
}
});
}
};
window.top.$.confirm(options);
}

View File

@ -0,0 +1,149 @@
var plParentid = 0;
var processLevel = 0;
var isLeaf = true;
var parentNodeId;
var orderIndexs = new Array();
var repositoryTree;
var copeFileNode = "";
var drpParentId;
var drpSourceParentId;
var isOpenMainIfranme = false;
var repositoryTree;
$(document).ready(function() {
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);
}
}
function getSetings() {
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");
}
}
}
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);
}
function connectParams(params) {
var connParms = "";
if (typeof (params) == "object") {
for ( var i in params) {
connParms += i + "=" + params[i] + "&";
}
}
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);
}
}
}
// 自动展开两级节点
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);
}
}
}
// 自动展开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);
}
}
}

View File

@ -0,0 +1,32 @@
$(document).ready(function(){
renderBannerXPagesConfigPage();
});
function renderBannerXPagesConfigPage(){
var contentStr="<div class='xpagePublishBanner-wrap'>";
//contentStr+="<h3>流程发布门户-轮播图</h3>";
contentStr+="<div class='xpages-label-text'>轮播图</div>";
contentStr+="<textarea class='url xpagesContent' readonly></textarea>";
contentStr+="</div>";
$(".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);
}
function getParamString(url,name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = url.match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}
function getCwUrl(){
//修改时默认参数定位
var subcwid = $("#cw-manage-dlg-content").find("li.current").attr("subcwid");
var cwUrl = $(".nav-config-panel[subcwid="+subcwid+"]").find("#cwUrl").val();
return cwUrl;
}

View File

@ -0,0 +1,48 @@
$(document).ready(function(){
renderCommonXPagesConfigPage();
});
function renderCommonXPagesConfigPage(){
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+="</div>";
$(".cwapp-right").append(contentStr);
var cwUrl = getCwUrl();//获取之前的存储的url链接
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
var count = getParamString(cwUrl,"count");
$("#commonxpage_tcount").val(count);
}
$("#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{
$(".xpagePublishCommon-wrap").find(".xpagesContent").val("");
//$(".xpagesContent").empty();
}
});
}
function getParamString(url,name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = url.match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}
function getCwUrl(){
//修改时默认参数定位
var subcwid = $("#cw-manage-dlg-content").find("li.current").attr("subcwid");
var cwUrl = $(".nav-config-panel[subcwid="+subcwid+"]").find("#cwUrl").val();
return cwUrl;
}

View File

@ -0,0 +1,50 @@
$(document).ready(function(){
renderCommonXPagesConfigPage();
});
function renderCommonXPagesConfigPage(){
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+="</div>";
$(".cwapp-right").append(contentStr);
var cwUrl = getCwUrl();//获取之前的存储的url链接
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
var count = getParamString(cwUrl,"count");
$("#commonxpage_tcount").val(count);
}
$("#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{
$(".xpagePublishControlMap-wrap").find(".xpagesContent").val("");
}
});
}
function getParamString(url,name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = url.match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}
function getCwUrl(){
//修改时默认参数定位
var subcwid = $("#cw-manage-dlg-content").find("li.current").attr("subcwid");
var cwUrl = $(".nav-config-panel[subcwid="+subcwid+"]").find("#cwUrl").val();
return cwUrl;
}

View File

@ -0,0 +1,49 @@
$(document).ready(function(){
renderCommonXPagesConfigPage();
});
function renderCommonXPagesConfigPage(){
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+="</div>";
$(".cwapp-right").append(contentStr);
var cwUrl = getCwUrl();//获取之前的存储的url链接
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
var count = getParamString(cwUrl,"count");
$("#commonxpage_tcount").val(count);
}
$("#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();
$(".xpagePublishDataMap-wrap").find(".xpagesContent").val("");
}
});
}
function getParamString(url,name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = url.match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}
function getCwUrl(){
//修改时默认参数定位
var subcwid = $("#cw-manage-dlg-content").find("li.current").attr("subcwid");
var cwUrl = $(".nav-config-panel[subcwid="+subcwid+"]").find("#cwUrl").val();
return cwUrl;
}

View File

@ -0,0 +1,48 @@
$(document).ready(function(){
renderCommonXPagesConfigPage();
});
function renderCommonXPagesConfigPage(){
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+="</div>";
$(".cwapp-right").append(contentStr);
var cwUrl = getCwUrl();//获取之前的存储的url链接
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
var count = getParamString(cwUrl,"count");
$("#commonxpage_tcount").val(count);
}
$("#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();
$(".xpagePublishFrequency-wrap").find(".xpagesContent").val("");
}
});
}
function getParamString(url,name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = url.match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}
function getCwUrl(){
//修改时默认参数定位
var subcwid = $("#cw-manage-dlg-content").find("li.current").attr("subcwid");
var cwUrl = $(".nav-config-panel[subcwid="+subcwid+"]").find("#cwUrl").val();
return cwUrl;
}

View File

@ -0,0 +1,111 @@
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');
}
}
});
}
}
//对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
}
// JSON按照时间排序
function sortByDate(arr) {
arr.sort(desc);
return arr;
}
/**
* 1在一分钟之内刚发表的"刚刚" 2一个小时之内发表的"XX分钟前" 3今天发表的"XX小时前" 4昨天发表的"昨天"
* 5今年发表的"月-日" 6非今年发表的"年-月-日"
*/
var minute = 1000 * 60;
var hour = minute * 60;
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日");
}
}
//  对Date的扩展 Date 转化为指定格式的String
//  月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符 
//  年(y)可以用 1-4 个占位符毫秒(S)只能用 1 个占位符(是 1-3 位的数字) 
//  例子: 
//  (new Date()).Format("yyyy-MM-dd HH:mm:ss.S") ==> 2006-07-02 08:09:04.423 
//  (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;
}

View File

@ -0,0 +1,48 @@
$(document).ready(function(){
renderCommonXPagesConfigPage();
});
function renderCommonXPagesConfigPage(){
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+="</div>";
$(".cwapp-right").append(contentStr);
var cwUrl = getCwUrl();//获取之前的存储的url链接
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
var count = getParamString(cwUrl,"count");
$("#commonxpage_tcount").val(count);
}
$("#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();
$(".xpagePublishNotification-wrap").find(".xpagesContent").val("");
}
});
}
function getParamString(url,name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = url.match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}
function getCwUrl(){
//修改时默认参数定位
var subcwid = $("#cw-manage-dlg-content").find("li.current").attr("subcwid");
var cwUrl = $(".nav-config-panel[subcwid="+subcwid+"]").find("#cwUrl").val();
return cwUrl;
}

View File

@ -0,0 +1,47 @@
$(document).ready(function(){
renderCommonXPagesConfigPage();
});
function renderCommonXPagesConfigPage(){
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+="</div>";
$(".cwapp-right").append(contentStr);
var cwUrl = getCwUrl();//获取之前的存储的url链接
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
var count = getParamString(cwUrl,"count");
$("#commonxpage_tcount").val(count);
}
$("#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{
$(".xpagePublishOrgMap-wrap").find(".xpagesContent").val("");
}
});
}
function getParamString(url,name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = url.match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}
function getCwUrl(){
//修改时默认参数定位
var subcwid = $("#cw-manage-dlg-content").find("li.current").attr("subcwid");
var cwUrl = $(".nav-config-panel[subcwid="+subcwid+"]").find("#cwUrl").val();
return cwUrl;
}

View File

@ -0,0 +1,48 @@
$(document).ready(function(){
renderCommonXPagesConfigPage();
});
function renderCommonXPagesConfigPage(){
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+="</div>";
$(".cwapp-right").append(contentStr);
var cwUrl = getCwUrl();//获取之前的存储的url链接
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
var count = getParamString(cwUrl,"count");
$("#systemxpage_tcount").val(count);
}
$("#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();
$(".xpagePublishParticipant-wrap").find(".xpagesContent").val("");
}
});
}
function getParamString(url,name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = url.match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}
function getCwUrl(){
//修改时默认参数定位
var subcwid = $("#cw-manage-dlg-content").find("li.current").attr("subcwid");
var cwUrl = $(".nav-config-panel[subcwid="+subcwid+"]").find("#cwUrl").val();
return cwUrl;
}

View File

@ -0,0 +1,48 @@
$(document).ready(function(){
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+="</div>";
$(".cwapp-right").append(contentStr);
var cwUrl = getCwUrl();//获取之前的存储的url链接
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
var count = getParamString(cwUrl,"count");
$("#systemxpage_tcount").val(count);
}
$("#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();
$(".xpagePublishPostresponsibility-wrap").find(".xpagesContent").val("");
}
});
}
function getParamString(url,name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = url.match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}
function getCwUrl(){
//修改时默认参数定位
var subcwid = $("#cw-manage-dlg-content").find("li.current").attr("subcwid");
var cwUrl = $(".nav-config-panel[subcwid="+subcwid+"]").find("#cwUrl").val();
return cwUrl;
}

View File

@ -0,0 +1,108 @@
$(document).ready(function(){
renderCommonXPagesConfigPage();
});
function renderCommonXPagesConfigPage(){
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+="<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+="</div>";
$(".cwapp-right").append(contentStr);
var cwUrl = getCwUrl();//获取之前的存储的url链接
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
var wsId = getParamString(cwUrl,"wsId");
var orgId = getParamString(cwUrl,"orgId");
$("#commonxpage_wsId").val(wsId);
$("#commonxpage_orgId").val(orgId);
}
$("#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');
}
function getParamString(url,name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = url.match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}
function getCwUrl(){
//修改时默认参数定位
var subcwid = $("#cw-manage-dlg-content").find("li.current").attr("subcwid");
var cwUrl = $(".nav-config-panel[subcwid="+subcwid+"]").find("#cwUrl").val();
return cwUrl;
}

View File

@ -0,0 +1,48 @@
$(document).ready(function(){
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+="</div>";
$(".cwapp-right").append(contentStr);
var cwUrl = getCwUrl();//获取之前的存储的url链接
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
var count = getParamString(cwUrl,"count");
$("#systemxpage_tcount").val(count);
}
$("#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();
$(".xpagePublishRcaimatrix-wrap").find(".xpagesContent").val("");
}
});
}
function getParamString(url,name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = url.match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}
function getCwUrl(){
//修改时默认参数定位
var subcwid = $("#cw-manage-dlg-content").find("li.current").attr("subcwid");
var cwUrl = $(".nav-config-panel[subcwid="+subcwid+"]").find("#cwUrl").val();
return cwUrl;
}

View File

@ -0,0 +1,48 @@
$(document).ready(function(){
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+="</div>";
$(".cwapp-right").append(contentStr);
var cwUrl = getCwUrl();//获取之前的存储的url链接
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
var count = getParamString(cwUrl,"count");
$("#systemxpage_tcount").val(count);
}
$("#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();
$(".xpagePublishResponsible-wrap").find(".xpagesContent").val("");
}
});
}
function getParamString(url,name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = url.match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}
function getCwUrl(){
//修改时默认参数定位
var subcwid = $("#cw-manage-dlg-content").find("li.current").attr("subcwid");
var cwUrl = $(".nav-config-panel[subcwid="+subcwid+"]").find("#cwUrl").val();
return cwUrl;
}

View File

@ -0,0 +1,48 @@
$(document).ready(function(){
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+="</div>";
$(".cwapp-right").append(contentStr);
var cwUrl = getCwUrl();//获取之前的存储的url链接
if(cwUrl!=null && cwUrl!=undefined && cwUrl!=""){
var count = getParamString(cwUrl,"count");
$("#systemxpage_tcount").val(count);
}
$("#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();
$(".xpagePublishSystemMap-wrap").find(".xpagesContent").val("");
}
});
}
function getParamString(url,name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = url.match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}
function getCwUrl(){
//修改时默认参数定位
var subcwid = $("#cw-manage-dlg-content").find("li.current").attr("subcwid");
var cwUrl = $(".nav-config-panel[subcwid="+subcwid+"]").find("#cwUrl").val();
return cwUrl;
}

View File

@ -0,0 +1 @@
(function(e,t){if(!e)return t;var n=function(){this.el=t;this.items=t;this.sizes=[];this.max=[0,0];this.current=0;this.interval=t;this.opts={speed:500,delay:3e3,complete:t,keys:!t,dots:t,fluid:t};var n=this;this.init=function(t,n){this.el=t;this.ul=t.children("ul");this.max=[t.outerWidth(),t.outerHeight()];this.items=this.ul.children("li").each(this.calculate);this.opts=e.extend(this.opts,n);this.setup();return this};this.calculate=function(t){var r=e(this),i=r.outerWidth(),s=r.outerHeight();n.sizes[t]=[i,s];if(i>n.max[0])n.max[0]=i;if(s>n.max[1])n.max[1]=s};this.setup=function(){this.el.css({overflow:"hidden",width:n.max[0],height:this.items.first().outerHeight()});this.ul.css({width:this.items.length*100+"%",position:"relative"});this.items.css("width",100/this.items.length+"%");if(this.opts.delay!==t){this.start();this.el.hover(this.stop,this.start)}this.opts.keys&&e(document).keydown(this.keys);this.opts.dots&&this.dots();if(this.opts.fluid){var r=function(){n.el.css("width",Math.min(Math.round(n.el.outerWidth()/n.el.parent().outerWidth()*100),100)+"%")};r();e(window).resize(r)}if(this.opts.arrows){this.el.parent().append('<p class="arrows"><span class="prev">←</span><span class="next">→</span></p>').find(".arrows span").click(function(){e.isFunction(n[this.className])&&n[this.className]()})}if(e.event.swipe){this.el.on("swipeleft",n.prev).on("swiperight",n.next)}};this.move=function(t,r){if(!this.items.eq(t).length)t=0;if(t<0)t=this.items.length-1;var i=this.items.eq(t);var s={height:i.outerHeight()};var o=r?5:this.opts.speed;if(!this.ul.is(":animated")){n.el.find(".dot:eq("+t+")").addClass("active").siblings().removeClass("active");this.el.animate(s,o)&&this.ul.animate(e.extend({left:"-"+t+"00%"},s),o,function(i){n.current=t;e.isFunction(n.opts.complete)&&!r&&n.opts.complete(n.el)})}};this.start=function(){n.interval=setInterval(function(){n.move(n.current+1)},n.opts.delay)};this.stop=function(){n.interval=clearInterval(n.interval);return n};this.keys=function(t){var r=t.which;var i={37:n.prev,39:n.next,27:n.stop};if(e.isFunction(i[r])){i[r]()}};this.next=function(){return n.stop().move(n.current+1)};this.prev=function(){return n.stop().move(n.current-1)};this.dots=function(){var t='<ol class="dots">';e.each(this.items,function(e){t+='<li class="dot'+(e<1?" active":"")+'">'+(e+1)+"</li>"});t+="</ol>";this.el.addClass("has-dots").append(t).find(".dot").click(function(){n.move(e(this).index())})}};e.fn.unslider=function(t){var r=this.length;return this.each(function(i){var s=e(this);var u=(new n).init(s,t);s.data("unslider"+(r>1?"-"+(i+1):""),u)})}})(window.jQuery,false)

View File

@ -0,0 +1,305 @@
/*
* jQuery FlexSlider v2.7.1
* http://www.woothemes.com/flexslider/
*
* Copyright 2012 WooThemes
* Free to use under the GPLv2 and later license.
* http://www.gnu.org/licenses/gpl-2.0.html
*
* Contributing author: Tyler Smith (@mbmufffin)
*
*/
/* ====================================================================================================================
* 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;
}
/* ====================================================================================================================
* RESETS
* ====================================================================================================================*/
.flex-container a:hover,
.flex-slider a:hover {
outline: none;
}
.slides,
.slides > li,
.flex-control-nav,
.flex-direction-nav {
margin: 0;
padding: 0;
list-style: none;
}
.flex-pauseplay span {
text-transform: capitalize;
}
/* ====================================================================================================================
* BASE STYLES
* ====================================================================================================================*/
.flexslider {
margin: 0;
padding: 0;
}
.flexslider .slides > li {
display: none;
-webkit-backface-visibility: hidden;
}
.flexslider .slides img {
width: 100%;
display: block;
}
.flexslider .slides:after {
content: "\0020";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
html[xmlns] .flexslider .slides {
display: block;
}
* html .flexslider .slides {
height: 1%;
}
.no-js .flexslider .slides > li:first-child {
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);
}
.flexslider .slides {
zoom: 1;
}
.flexslider .slides img {
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;
}
.loading .flex-viewport {
max-height: 300px;
}
@-moz-document url-prefix() {
.loading .flex-viewport {
max-height: none;
}
}
.carousel li {
margin-right: 5px;
}
.flex-direction-nav {
*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;
}
.flex-direction-nav .flex-next {
background-position: -32px 0px;
right: 0;
}
.flex-direction-nav .flex-prev {
background-position: 2px 0px;
left: 0;
}
/* .flex-direction-nav a {
text-decoration: none;
display: block;
width: 40px;
height: 40px;
margin: -20px 0 0;
position: absolute;
top: 50%;
z-index: 10;
overflow: hidden;
opacity: 0;
cursor: pointer;
color: rgba(0, 0, 0, 0.8);
text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.flex-direction-nav a:before {
font-family: "flexslider-icon";
font-size: 40px;
display: inline-block;
content: '\f001';
color: rgba(0, 0, 0, 0.8);
text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}
.flex-direction-nav a.flex-next:before {
content: '\f002';
} */
/* .flex-direction-nav .flex-prev {
left: -50px;
}
.flex-direction-nav .flex-next {
right: -50px;
text-align: right;
} */
.flexslider:hover .flex-direction-nav .flex-prev {
opacity: 0.7;
left: 10px;
}
.flexslider:hover .flex-direction-nav .flex-prev:hover {
opacity: 1;
}
.flexslider:hover .flex-direction-nav .flex-next {
opacity: 0.7;
right: 10px;
}
.flexslider:hover .flex-direction-nav .flex-next:hover {
opacity: 1;
}
.flex-direction-nav .flex-disabled {
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;
}
.flex-pauseplay a:before {
font-family: "flexslider-icon";
font-size: 20px;
display: inline-block;
content: '\f004';
}
.flex-pauseplay a:hover {
opacity: 1;
}
.flex-pauseplay a.flex-play:before {
content: '\f003';
}
.flex-control-nav {
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;
}
.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;
}
.flex-control-paging li a:hover {
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;
}
.flex-control-thumbs {
margin: 5px 0 0;
position: static;
overflow: hidden;
}
.flex-control-thumbs li {
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;
}
.flex-control-thumbs img:hover {
opacity: 1;
}
.flex-control-thumbs .flex-active {
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;
}
}

View File

@ -0,0 +1,41 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<!--
2013-9-30: Created.
-->
<svg>
<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 />
<glyph glyph-name="tongzhi" unicode="&#58925;" 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="&#58916;" 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="&#58955;" 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="&#59397;" 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="&#58935;" 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>

After

Width:  |  Height:  |  Size: 6.7 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.2 MiB

File diff suppressed because one or more lines are too long