diff --git a/com.actionsoft.apps.coe.pal.publisher/repository/bo/_220f0d69-79d2-4a75-8801-72f6fc3629ef/220f0d69-79d2-4a75-8801-72f6fc3629ef.xml b/com.actionsoft.apps.coe.pal.publisher/repository/bo/_220f0d69-79d2-4a75-8801-72f6fc3629ef/220f0d69-79d2-4a75-8801-72f6fc3629ef.xml new file mode 100644 index 00000000..ef8a178a --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/repository/bo/_220f0d69-79d2-4a75-8801-72f6fc3629ef/220f0d69-79d2-4a75-8801-72f6fc3629ef.xml @@ -0,0 +1,151 @@ + + + 220f0d69-79d2-4a75-8801-72f6fc3629ef + 管理员 + 2014-08-12 14:18:55 + + 2018-08-06 15:58:48 + DgQSSyFmOqrf7WQa6WFesZuTOnzFe+zevZg0BYW55MuhMOtUylRD92QW2MZY8fzuI1jyiAPR1gKDGQFne7To9Kh2KF5kVAXJJd1KfM8+OqJJiW14do0U3zATEmBTzTJD + true + 流程停用清单 + BO_ACT_COE_PUBLISH_S + true + false + false + 资产库周期管理 + admin + TABLE + COMMON + + 0 + + + + 2ec4b14f-84d9-4083-b241-e4b51125de15 + STOPTYPE + 类型 + TEXT + 36 + false + S + 100 + AWSUI.Text + {"search":"0"} + true + false + false + + ENTITY + + + + 0 + + false + + + + + ae7b767b-6d5a-4e5a-a296-0d705122f089 + STOPFILENAME + 文件名 + TEXT + 2000 + false + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + + + 1bf2c30e-588b-42f6-8e48-f02d88374465 + STOPDESC + 停用说明 + TEXT + 255 + true + + 150 + AWSUI.Textarea + {"fnKey1":"false","fnKey2":"false","fnKey3":"false","key":""} + true + false + true + + ENTITY + + + + 0 + + false + + + + + 0dc7ffb3-5f35-4cf5-ae2d-d51922b27451 + STOPFILEID + 流程id + TEXT + 2000 + false + + 100 + AWSUI.Text + {"search":"0"} + true + false + false + + ENTITY + + + + 0 + + false + + + + + 7ff0aeb7-8884-4543-9c23-ef1967bdbee0 + TASKID + taskid + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + false + false + true + + ENTITY + + + + 0 + + false + + + + + + + diff --git a/com.actionsoft.apps.coe.pal.publisher/repository/bo/_2f326953-089a-49f6-bb55-d46d287b5792/2f326953-089a-49f6-bb55-d46d287b5792.xml b/com.actionsoft.apps.coe.pal.publisher/repository/bo/_2f326953-089a-49f6-bb55-d46d287b5792/2f326953-089a-49f6-bb55-d46d287b5792.xml new file mode 100644 index 00000000..5b702f22 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/repository/bo/_2f326953-089a-49f6-bb55-d46d287b5792/2f326953-089a-49f6-bb55-d46d287b5792.xml @@ -0,0 +1,87 @@ + + + 2f326953-089a-49f6-bb55-d46d287b5792 + admin + 2022-07-08 15:54:34 + admin + 2022-07-08 15:54:56 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGroPgaKWyS8gZtjLiYx8NwH4nz83hk0cEDfX8X3+jXcueA65tVd4g2xemCyqZ+BTec + false + 区域信息 + BO_ACT_REGION_INFO + false + false + false + 资产库周期管理 + admin + TABLE + + + 0 + _local + + + + 6ca2d55f-af07-4ea3-8304-ca4d289540c7 + REGIONNAME + 区域名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 0ac494a9-f54f-4d83-b722-85309de35275 + REGIONCODE + 区域编码 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 8048b6cb-6c30-43ab-91c4-e3c59fe2d6a6 + AWS_IN_7AC529D7A196 + INDEX + BINDID + + + + + diff --git a/com.actionsoft.apps.coe.pal.publisher/repository/bo/_5e321e6b-4b05-4b55-8aec-2bdbf7f9a499/5e321e6b-4b05-4b55-8aec-2bdbf7f9a499.xml b/com.actionsoft.apps.coe.pal.publisher/repository/bo/_5e321e6b-4b05-4b55-8aec-2bdbf7f9a499/5e321e6b-4b05-4b55-8aec-2bdbf7f9a499.xml new file mode 100644 index 00000000..bd2abfb6 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/repository/bo/_5e321e6b-4b05-4b55-8aec-2bdbf7f9a499/5e321e6b-4b05-4b55-8aec-2bdbf7f9a499.xml @@ -0,0 +1,841 @@ + + + 5e321e6b-4b05-4b55-8aec-2bdbf7f9a499 + admin + 2022-06-28 20:04:46 + admin + 2022-06-29 01:49:55 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrQUrBalciPSuLiKMvki89BglYPuKpWBwu+PWUm0IO64sRlhhmA2TsgYzCj8DTKXy5 + false + 个人信息表 + BO_ACT_SYSTEM_TO_RELEASE + false + false + false + 资产库周期管理 + admin + TABLE + + + 0 + _local + + + + d8468490-989a-455f-917d-c5f953783696 + PUBLISH_TYPE + 发布类型 + TEXT + 128 + false + + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"流程文件|制度规范|操作指导|表单/模板","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 172bad84-77dc-45bb-a2db-dc7134f27d3a + CHANGE_THE_TYPE + 变更类型 + TEXT + 128 + false + + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"发布|废止","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + a9878d01-f454-4c47-a75c-efe40079770e + LEVEL_1_PROCESS_NAME + 一级流程名称 + TEXT + 128 + true + + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"名称一|名称二|名称三","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 64b04916-787a-466a-b4c4-2eb69556b9a3 + LEVEL_2_PROCESS_NAME + 二级流程名称 + TEXT + 128 + true + + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"名称一|名称二|名称三","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 5ebb7157-6278-47cc-ad71-d8f374f98bd4 + LEVEL_3_PROCESS_NAME + 三级流程名称 + TEXT + 128 + true + + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"名称一|名称二|名称三","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 800a3874-bb33-4e13-b1d1-5af0bbdfc801 + ADAPT_NAME_THE_COMPANY + 适应单位名称 + TEXT + 128 + true + 集团 + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"集团|单位一|单位二","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 5ff3f219-67e4-44fc-a869-ceb2cfb38847 + ADAPT_REGION_NAME + 适应区域名称 + TEXT + 128 + true + 全部 + 100 + AWSUI.ComboBox + {"placeholder":"区域一|区域二|区域三","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"全部|区域二|区域三","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 41c6d108-7873-4d95-9583-0c5ad4296e3e + APPLICABLE_PRODUCT + 适用产品/场景名称 + TEXT + 128 + true + 全部 + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"全部|产品二|产品三","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 4ea6476f-809f-468d-b129-fb36cb1eadf4 + RELEASE_THE_TITLE + 发布标题 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 0250e9ee-1504-4582-aac6-25700ff3f3c8 + INITIATOR + 发起人 + TEXT + 128 + false + @userName() + 100 + AWSUI.Text + {"search":"0","placeholder":"","dataType":"localJDBC","data":{"sql":""},"isClearAllText":true,"barCode":false,"boUrlFormData":{"hrefSelVal":"nothing"},"extendType":"text","scanCodeAutoSubmit":false} + true + false + false + + ENTITY + + + + 0 + + false + + + {} + + + d9409667-325c-47c2-80d6-7e89b919496a + CONTACT_WAY + 联系方式 + TEXT + 128 + true + 13562425632 + 100 + AWSUI.Number + {"isShowZero":"1","placeholder":"","isClearAll":true,"autoZero":false,"scientificCounting":false} + true + false + false + + ENTITY + + + + 0 + + false + + + {} + + + ad054977-fbc2-42f5-b16b-2ee4442a51de + TIME_OF_APPLICATION + 申请时间 + TEXT + 128 + false + @date() + 100 + AWSUI.Date + {"placeholder":"","minDate":"","maxDate":"","showtype":"singleCalendar","advSetting":"","showDayOfWeek":"false","dwfmt":"(EE)"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 922ff652-5da2-4f93-919b-c54fd4dae085 + IS_THE_UNIT + 拟稿单位 + TEXT + 128 + true + @departmentName() + 100 + AWSUI.Address + {"placeholder":"","addressType":"dept","isLiveSearch":true,"addressSetting":{"delimiter":",","choiceType":"single","leafType":"dept"},"range":"all","isFullDeptPath":false,"deptSourceField":"DEPTNAME","deptTargetField":"IS_THE_UNIT"} + true + false + true + readonly + ENTITY + + + + 0 + + false + + + {} + + + 29942e71-e472-4cc2-aa0e-74f6c02e806e + RELEASE_INSTRUCTIONS + 制度/流程发布说明 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0","placeholder":"","dataType":"localJDBC","data":{"sql":""},"isClearAllText":true,"barCode":false,"boUrlFormData":{"hrefSelVal":"nothing"},"extendType":"text","scanCodeAutoSubmit":false} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + ea05290b-d25c-4dad-a941-29ac4152bf98 + ACCESSORY + 附件 + TEXT + 128 + true + + 100 + AWSUI.File + {"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"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 88f43b66-de94-4ebc-bcaf-6299a0b9bd74 + DEPARTMENT_PROOFREADER + 部门内部校对人 + TEXT + 128 + true + + 100 + AWSUI.Address + {"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":" ","choiceType":"single"},"deptSourceField":"","deptTargetField":""} + true + false + true + readonly + ENTITY + + + + 0 + + false + + + {} + + + 64c1af0a-5bde-4d73-a558-efa7cf71c846 + INTERNAL_AUDITOR + 内部审核人 + TEXT + 128 + false + + 100 + AWSUI.Address + {"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":" ","choiceType":"single"},"deptSourceField":"","deptTargetField":""} + true + false + true + readonly + ENTITY + + + + 0 + + false + + + {} + + + 9c42ce6e-3f61-409d-bef3-c17a4d7f8ce9 + PROFESSIONAL_REVIEW_REQUIRED + 是否需要专业评审 + TEXT + 128 + false + 1 + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"0:是|1:否","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 3e9aed86-a31b-445d-9553-b83fe7d814fe + JOINT_TRIAL_REQUIRED + 是否需要会审 + TEXT + 128 + false + 1 + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"0:是|1:否","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + aab8ef1e-3e76-461b-a353-b0e39a9eead7 + PERSON_THREE_LEVEL_PROCESS + 三级流程责任人 + TEXT + 128 + true + + 100 + AWSUI.Address + {"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":" ","choiceType":"single"},"deptSourceField":"","deptTargetField":""} + true + false + true + readonly + ENTITY + + + + 0 + + false + + + {} + + + a2bb76c0-19c1-4503-9e57-49cbb510273e + LEVEL_AUDIT_REQUIRED + 是否需要三级审核 + TEXT + 128 + false + 1 + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"0:是|1:否","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + e2b6a5f9-5311-476c-a3c4-383d121165d0 + PROCESS_RESPONSIBLE_PERSON + 二级流程责任人 + TEXT + 128 + true + + 100 + AWSUI.Address + {"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":" ","choiceType":"single"},"deptSourceField":"","deptTargetField":""} + true + false + true + readonly + ENTITY + + + + 0 + + false + + + {} + + + 22a778dd-f8cc-4ca3-a43e-6fe2fae0fb02 + SECONDARY_AUDIT_REQUIRED + 是否需要二级审核 + TEXT + 128 + false + 1 + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"0:是|1:否","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + e47ce54e-9db1-4fa8-b414-033f23e85f31 + RESPONSIBLE_PERSON1 + 一级流程责任人 + TEXT + 128 + true + + 100 + AWSUI.Address + {"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":" ","choiceType":"single"},"deptSourceField":"","deptTargetField":""} + true + false + true + readonly + ENTITY + + + + 0 + + false + + + {} + + + c652271e-f9c4-4f59-893b-8e5b5d2cc4cf + LEVEL_1_AUDIT_REQUIRED + 是否需要一级审核 + TEXT + 128 + false + 1 + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"5e321e6b-4b05-4b55-8aec-2bdbf7f9a499","isAdvance":false,"dataType":"sampleText","data":"0:是|1:否","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + onclick='checktype()' + ENTITY + + + + 0 + + false + + + {} + + + 351776d3-70c4-4085-8d89-a230070064d4 + SEND_SCOPE + 发送范围 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0","placeholder":"","dataType":"localJDBC","data":{"sql":""},"isClearAllText":true,"barCode":false,"boUrlFormData":{"hrefSelVal":"nothing"},"extendType":"text","scanCodeAutoSubmit":false} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 72ca36ab-71d4-434a-a0de-b133750d9dfa + SYSTEM + 流程/制度名称 + TEXT + 128 + false + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 3d823af8-0941-4be7-9841-88b801a4e4a3 + NUMBER + 流程/制度编号 + TEXT + 128 + false + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + e1b3c37d-5e35-4f31-aa85-a8a11a34048f + TEXT + 正文 + TEXT + 128 + true + + 100 + AWSUI.HTMLEditor + {"htmlHeight":"","htmlWidth":"","isAdvance":false,"isPasteplain":true,"waterMarkFlag":"","compressFlag":"","isSupportUpFile":true,"isSupportUpImg":true,"isWaterMark":true,"isCompress":true} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 8f9f40ad-7790-45c8-b45b-f9f2b02ed0e2 + PROOFREADER + 校对人 + TEXT + 128 + false + @userName() + 100 + AWSUI.Address + {"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":" ","choiceType":"single"},"deptSourceField":"","deptTargetField":""} + true + false + true + readonly + ENTITY + + + + 0 + + false + + + {} + + + 839140c2-296f-4d61-b06f-b67e5dfb742f + DEPARTMENT_CAME + 会审部门 + TEXT + 128 + true + + 100 + AWSUI.Address + {"placeholder":"","addressType":"dept","isLiveSearch":true,"addressSetting":{"delimiter":",","choiceType":"multiple","leafType":"dept"},"range":"all","isFullDeptPath":false,"deptSourceField":"DEPTNAME","deptTargetField":"DEPARTMENT_CAME"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 4c7b43eb-be74-426c-a3ea-833b82ef3181 + AWS_IN_7A7B032CF648 + INDEX + BINDID + + + + + diff --git a/com.actionsoft.apps.coe.pal.publisher/repository/bo/_852307f0-3faf-4951-b882-dc6e5170b5ec/852307f0-3faf-4951-b882-dc6e5170b5ec.xml b/com.actionsoft.apps.coe.pal.publisher/repository/bo/_852307f0-3faf-4951-b882-dc6e5170b5ec/852307f0-3faf-4951-b882-dc6e5170b5ec.xml new file mode 100644 index 00000000..d94eecf4 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/repository/bo/_852307f0-3faf-4951-b882-dc6e5170b5ec/852307f0-3faf-4951-b882-dc6e5170b5ec.xml @@ -0,0 +1,87 @@ + + + 852307f0-3faf-4951-b882-dc6e5170b5ec + admin + 2022-07-08 15:39:01 + admin + 2022-07-08 16:26:02 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrtzDfN71Qb3YI6yys7W/8+e7fsxnaXz8PzcjNqMEzgQ0skx4GuTibQu/K9Sj+6WDr + false + 单位信息 + BO_ACT_ORGINFO + false + false + false + 资产库周期管理 + admin + TABLE + + + 0 + _local + + + + 6cbc062e-193b-4f1b-841d-5227221ac33c + ORGNAME + 单位名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 7877f97f-13f3-4b7a-94dc-8f05faed142a + ORGCODE + 单位编码 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + a4569ca0-c25a-4b30-89be-65d6ccc54cce + AWS_IN_C5C00184E48E + INDEX + BINDID + + + + + diff --git a/com.actionsoft.apps.coe.pal.publisher/repository/bo/_bf435da5-9f43-4070-9c21-4665f5ea6f5b/bf435da5-9f43-4070-9c21-4665f5ea6f5b.xml b/com.actionsoft.apps.coe.pal.publisher/repository/bo/_bf435da5-9f43-4070-9c21-4665f5ea6f5b/bf435da5-9f43-4070-9c21-4665f5ea6f5b.xml new file mode 100644 index 00000000..d7f0bff0 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/repository/bo/_bf435da5-9f43-4070-9c21-4665f5ea6f5b/bf435da5-9f43-4070-9c21-4665f5ea6f5b.xml @@ -0,0 +1,87 @@ + + + bf435da5-9f43-4070-9c21-4665f5ea6f5b + admin + 2022-07-08 15:55:23 + admin + 2022-07-08 16:03:55 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrEaymJhQtrBczdap0JtHEjGleiB+9lE7RTrZDum4Iq308DQ1CTbnWR5nhHslePx/y + false + 产品信息 + BO_ACT_PRODUCT_INFO + false + false + false + 资产库周期管理 + admin + TABLE + + + 0 + _local + + + + d56423ae-baf3-454c-b140-1c64403be8ba + PRODUCTNAME + 产品名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 471bbcf0-74e3-4ca7-8d4d-35632444ce9e + PRODUCTCODE + 产品编码 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + d44e0d17-519c-4d82-a37e-3a9df3a1fbbb + AWS_IN_B503DB36B17B + INDEX + BINDID + + + + + diff --git a/com.actionsoft.apps.coe.pal.publisher/repository/bo/_d3290b20-15b4-4d9e-b7b3-2e78fab8ee53/d3290b20-15b4-4d9e-b7b3-2e78fab8ee53.xml b/com.actionsoft.apps.coe.pal.publisher/repository/bo/_d3290b20-15b4-4d9e-b7b3-2e78fab8ee53/d3290b20-15b4-4d9e-b7b3-2e78fab8ee53.xml new file mode 100644 index 00000000..5465f93b --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/repository/bo/_d3290b20-15b4-4d9e-b7b3-2e78fab8ee53/d3290b20-15b4-4d9e-b7b3-2e78fab8ee53.xml @@ -0,0 +1,201 @@ + + + d3290b20-15b4-4d9e-b7b3-2e78fab8ee53 + 管理员 + 2014-08-12 14:18:35 + + 2018-08-06 15:58:54 + DgQSSyFmOqrf7WQa6WFesZuTOnzFe+zevZg0BYW55MuhMOtUylRD92QW2MZY8fzuncc44hdg4z8VWK6/birzUG0M6aK7MRt6RGPbigDjRVpUICrKCvQxSXxS/eu4Whg8 + true + 流程变更清单 + BO_ACT_COE_PUBLISH_C + true + false + false + 资产库周期管理 + admin + TABLE + COMMON + + 0 + + + + cbc32419-9dfb-4ee1-a416-8ff5b221ce29 + CHANGETYPE + 类型 + TEXT + 36 + false + C + 100 + AWSUI.Text + {"search":"0"} + true + false + false + + ENTITY + + + + 0 + + false + + + + + 681dc4f4-b9f7-499c-acab-3327cb428af0 + CHANGEFILENAME + 文件名 + TEXT + 64 + false + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + + + ba12cc19-727b-460b-8fe3-d2a76c676e90 + CHANGEDFILENAMENEW + 变更后文件名 + TEXT + 64 + false + + 100 + AWSUI.ComboBox + {"boItemId":"d3290b20-15b4-4d9e-b7b3-2e78fab8ee53","isAdvance":false,"dataType":"sampleText","data":" ","mode":"common"} + true + false + true + + ENTITY + + + + 0 + + false + + + + + 5958eb08-4517-4983-bb25-73bd06a5a066 + CHANGEDDESC + 变更说明 + TEXT + 255 + true + + 150 + AWSUI.Textarea + {"fnKey1":"false","fnKey2":"false","fnKey3":"false","key":""} + true + false + true + + ENTITY + + + + 0 + + false + + + + + 9a6b4d02-87ce-42cb-b0cf-08bd7e89a362 + CHANGEFILEID + 变更文件Id + TEXT + 36 + false + + 100 + AWSUI.Text + {"search":"0"} + true + false + false + + ENTITY + + + + 0 + + false + + + + + d2c9bfc7-0a65-471f-a8ca-7c55ed1c83ce + CHANGEDFILEIDNEW + 变更后文件Id + TEXT + 36 + false + + 100 + AWSUI.Text + {"search":"0"} + true + false + false + + ENTITY + + + + 0 + + false + + + + + 7a979714-e26d-4126-bfc8-d480f7e3f3cf + TASKID + TASKID + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + false + false + true + + ENTITY + + + + 0 + + false + + + + + + + diff --git a/com.actionsoft.apps.coe.pal.publisher/repository/bo/_eae10775-931d-408d-9779-1636ad412878/eae10775-931d-408d-9779-1636ad412878.xml b/com.actionsoft.apps.coe.pal.publisher/repository/bo/_eae10775-931d-408d-9779-1636ad412878/eae10775-931d-408d-9779-1636ad412878.xml new file mode 100644 index 00000000..27098723 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/repository/bo/_eae10775-931d-408d-9779-1636ad412878/eae10775-931d-408d-9779-1636ad412878.xml @@ -0,0 +1,113 @@ + + + eae10775-931d-408d-9779-1636ad412878 + admin + 2022-07-08 15:43:06 + admin + 2022-07-08 15:44:47 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrlHu0ObreBSgVqch2KEDzh1ol7EhBkcD8RA1AsaNH7HQqmpDR+im9b1zkjl2y1NU1 + false + 流程信息 + BO_ACT_PROCESSINFO + false + false + false + 资产库周期管理 + admin + TABLE + + + 0 + _local + + + + 6d47ddb9-d155-490a-bb09-a7a94abf9818 + LEVEL + 流程等级 + TEXT + 128 + true + + 100 + AWSUI.ComboBox + {"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"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + a59ad577-fd37-4f17-8539-d0f097ce1e21 + PROCESSNAME + 流程名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 8a9cd669-0986-42c2-9cd1-210282b6da7b + PROCESSCODE + 流程编码 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 3d02cde9-057c-4bb5-9247-12d5532f6cee + AWS_IN_CD04D9C191DE + INDEX + BINDID + + + + + diff --git a/com.actionsoft.apps.coe.pal.publisher/repository/dictionary/dic/dic_32aed7b6782b4b79bd0431b4d1163a44.xml b/com.actionsoft.apps.coe.pal.publisher/repository/dictionary/dic/dic_32aed7b6782b4b79bd0431b4d1163a44.xml new file mode 100644 index 00000000..43856c15 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/repository/dictionary/dic/dic_32aed7b6782b4b79bd0431b4d1163a44.xml @@ -0,0 +1,69 @@ + + + + + 8ce080c6-a411-4cae-81a1-8a04c076b901 + + 资产库周期管理 + + L2流程列表 + + + + 10 + + false + + false + + true + + false + + false + + false + + + admin + + admin + + + + PROCESSCODE + + LEVEL_2_PROCESS_ID + 文本 + 文本 + + 流程编码 + + 100 + + false + false + false + + + + + PROCESSNAME + + LEVEL_2_PROCESS_NAME + 文本 + 文本 + + 流程名称 + + 100 + + false + false + false + + + + + + diff --git a/com.actionsoft.apps.coe.pal.publisher/repository/dictionary/dic/dic_9d1c92cb08374c8c93cd689f6791259e.xml b/com.actionsoft.apps.coe.pal.publisher/repository/dictionary/dic/dic_9d1c92cb08374c8c93cd689f6791259e.xml new file mode 100644 index 00000000..05f05e77 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/repository/dictionary/dic/dic_9d1c92cb08374c8c93cd689f6791259e.xml @@ -0,0 +1,69 @@ + + + + + 8baf0fb9-d239-488e-b1ce-c284e892c6fb + + 资产库周期管理 + + L1流程列表 + + + + 10 + + false + + false + + true + + false + + false + + false + + + admin + + admin + + + + PROCESSCODE + + LEVEL_1_PROCESS_ID + 文本 + 文本 + + 流程编码 + + 100 + + false + false + false + + + + + PROCESSNAME + + LEVEL_1_PROCESS_NAME + 文本 + 文本 + + 流程名称 + + 100 + + false + false + false + + + + + + diff --git a/com.actionsoft.apps.coe.pal.publisher/repository/dictionary/dic/dic_e4ce70ec5a974081b61d85e20728fc1a.xml b/com.actionsoft.apps.coe.pal.publisher/repository/dictionary/dic/dic_e4ce70ec5a974081b61d85e20728fc1a.xml new file mode 100644 index 00000000..e424864e --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/repository/dictionary/dic/dic_e4ce70ec5a974081b61d85e20728fc1a.xml @@ -0,0 +1,69 @@ + + + + + 765921e7-2abb-4780-a68e-4cfbf940a41f + + 资产库周期管理 + + L3流程列表 + + + + 10 + + false + + false + + true + + false + + false + + false + + + admin + + admin + + + + PROCESSCODE + + LEVEL_3_PROCESS_ID + 文本 + 文本 + + 流程编码 + + 100 + + false + false + false + + + + + PROCESSNAME + + LEVEL_3_PROCESS_NAME + 文本 + 文本 + + 流程名称 + + 100 + + false + false + false + + + + + + diff --git a/com.actionsoft.apps.coe.pal.publisher/repository/dictionary/refer/.xml b/com.actionsoft.apps.coe.pal.publisher/repository/dictionary/refer/.xml new file mode 100644 index 00000000..3422308f --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/repository/dictionary/refer/.xml @@ -0,0 +1,16 @@ + + + + + 0dbcd2ef-52f6-4879-a04b-13c93e1e0913 + + + + + 10 + + + diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/Mtils.min.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/Mtils.min.js new file mode 100644 index 00000000..85214415 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/Mtils.min.js @@ -0,0 +1 @@ +"use strict";window.Mtils={constant:{CONTROL_KEY:{BACK_SPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,INSERT:45,PAGE_UP:33,PAGE_DOWN:34,DELETE:46,CONTEXT_MENU:93,8:"BACK_SPACE",9:"TAB",13:"ENTER",16:"SHIFT",17:"CTRL",18:"ALT",20:"CAPS_LOCK",27:"ESC",32:"SPACE",35:"END",36:"HOME",45:"INSERT",33:"PAGE_UP",34:"PAGE_DOWN",46:"DELETE",93:"CONTEXT_MENU"},WOMAN:0,MAN:1,BASE_DECIMAL:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_@",PY_MAPS:{a:"\u554a\u963f\u9515",ai:"\u57c3\u6328\u54ce\u5509\u54c0\u7691\u764c\u853c\u77ee\u827e\u788d\u7231\u9698\u8bf6\u6371\u55f3\u55cc\u5ad2\u7477\u66a7\u7839\u953f\u972d",an:"\u978d\u6c28\u5b89\u4ffa\u6309\u6697\u5cb8\u80fa\u6848\u8c19\u57ef\u63de\u72b4\u5eb5\u6849\u94f5\u9e4c\u9878\u9eef",ang:"\u80ae\u6602\u76ce",ao:"\u51f9\u6556\u71ac\u7ff1\u8884\u50b2\u5965\u61ca\u6fb3\u5773\u62d7\u55f7\u5662\u5c99\u5ed2\u9068\u5aaa\u9a9c\u8071\u87af\u93ca\u9ccc\u93d6",ba:"\u82ad\u634c\u6252\u53ed\u5427\u7b06\u516b\u75a4\u5df4\u62d4\u8dcb\u9776\u628a\u8019\u575d\u9738\u7f62\u7238\u8307\u83dd\u8406\u636d\u5c9c\u705e\u6777\u94af\u7c91\u9c85\u9b43",bai:"\u767d\u67cf\u767e\u6446\u4f70\u8d25\u62dc\u7a17\u859c\u63b0\u97b4",ban:"\u6591\u73ed\u642c\u6273\u822c\u9881\u677f\u7248\u626e\u62cc\u4f34\u74e3\u534a\u529e\u7eca\u962a\u5742\u8c73\u94a3\u7622\u764d\u8228",bang:"\u90a6\u5e2e\u6886\u699c\u8180\u7ed1\u68d2\u78c5\u868c\u9551\u508d\u8c24\u84a1\u8783",bao:"\u82de\u80de\u5305\u8912\u96f9\u4fdd\u5821\u9971\u5b9d\u62b1\u62a5\u66b4\u8c79\u9c8d\u7206\u52f9\u8446\u5b80\u5b62\u7172\u9e28\u8913\u8db5\u9f85",bo:"\u5265\u8584\u73bb\u83e0\u64ad\u62e8\u94b5\u6ce2\u535a\u52c3\u640f\u94c2\u7b94\u4f2f\u5e1b\u8236\u8116\u818a\u6e24\u6cca\u9a73\u4eb3\u8543\u5575\u997d\u6a97\u64d8\u7934\u94b9\u9e41\u7c38\u8ddb",bei:"\u676f\u7891\u60b2\u5351\u5317\u8f88\u80cc\u8d1d\u94a1\u500d\u72c8\u5907\u60eb\u7119\u88ab\u5b5b\u9642\u90b6\u57e4\u84d3\u5457\u602b\u6096\u789a\u9e4e\u8919\u943e",ben:"\u5954\u82ef\u672c\u7b28\u755a\u574c\u951b",beng:"\u5d29\u7ef7\u752d\u6cf5\u8e66\u8ff8\u552a\u5623\u750f",bi:"\u903c\u9f3b\u6bd4\u9119\u7b14\u5f7c\u78a7\u84d6\u853d\u6bd5\u6bd9\u6bd6\u5e01\u5e87\u75f9\u95ed\u655d\u5f0a\u5fc5\u8f9f\u58c1\u81c2\u907f\u965b\u5315\u4ef3\u4ffe\u8298\u835c\u8378\u5421\u54d4\u72f4\u5eb3\u610e\u6ed7\u6fde\u5f3c\u59a3\u5a62\u5b16\u74a7\u8d32\u7540\u94cb\u79d5\u88e8\u7b5a\u7b85\u7be6\u822d\u895e\u8df8\u9ac0",bian:"\u97ad\u8fb9\u7f16\u8d2c\u6241\u4fbf\u53d8\u535e\u8fa8\u8fa9\u8fab\u904d\u533e\u5f01\u82c4\u5fed\u6c74\u7f0f\u7178\u782d\u78a5\u7a39\u7a86\u8759\u7b3e\u9cca",biao:"\u6807\u5f6a\u8198\u8868\u5a4a\u9aa0\u98d1\u98d9\u98da\u706c\u9556\u9573\u762d\u88f1\u9cd4",bie:"\u9cd6\u618b\u522b\u762a\u8e69\u9cd8",bin:"\u5f6c\u658c\u6fd2\u6ee8\u5bbe\u6448\u50a7\u6d5c\u7f24\u73a2\u6ba1\u8191\u9554\u9acc\u9b13",bing:"\u5175\u51b0\u67c4\u4e19\u79c9\u997c\u70b3\u75c5\u5e76\u7980\u90b4\u6452\u7ee0\u678b\u69df\u71f9",bu:"\u6355\u535c\u54fa\u8865\u57e0\u4e0d\u5e03\u6b65\u7c3f\u90e8\u6016\u62ca\u535f\u900b\u74ff\u6661\u949a\u91ad",ca:"\u64e6\u5693\u7924",cai:"\u731c\u88c1\u6750\u624d\u8d22\u776c\u8e29\u91c7\u5f69\u83dc\u8521",can:"\u9910\u53c2\u8695\u6b8b\u60ed\u60e8\u707f\u9a96\u74a8\u7cb2\u9eea",cang:"\u82cd\u8231\u4ed3\u6ca7\u85cf\u4f27",cao:"\u64cd\u7cd9\u69fd\u66f9\u8349\u8279\u5608\u6f15\u87ac\u825a",ce:"\u5395\u7b56\u4fa7\u518c\u6d4b\u5202\u5e3b\u607b",ceng:"\u5c42\u8e6d\u564c",cha:"\u63d2\u53c9\u832c\u8336\u67e5\u78b4\u643d\u5bdf\u5c94\u5dee\u8be7\u7339\u9987\u6c4a\u59f9\u6748\u6942\u69ce\u6aab\u9497\u9538\u9572\u8869",chai:"\u62c6\u67f4\u8c7a\u4faa\u8308\u7625\u867f\u9f87",chan:"\u6400\u63ba\u8749\u998b\u8c17\u7f20\u94f2\u4ea7\u9610\u98a4\u5181\u8c04\u8c36\u8487\u5edb\u5fcf\u6f7a\u6fb6\u5b71\u7fbc\u5a75\u5b17\u9aa3\u89c7\u7985\u9561\u88e3\u87fe\u8e94",chang:"\u660c\u7316\u573a\u5c1d\u5e38\u957f\u507f\u80a0\u5382\u655e\u7545\u5531\u5021\u4f25\u9b2f\u82cc\u83d6\u5f9c\u6005\u60dd\u960a\u5a3c\u5ae6\u6636\u6c05\u9cb3",chao:"\u8d85\u6284\u949e\u671d\u5632\u6f6e\u5de2\u5435\u7092\u600a\u7ec9\u6641\u8016",che:"\u8f66\u626f\u64a4\u63a3\u5f7b\u6f88\u577c\u5c6e\u7817",chen:"\u90f4\u81e3\u8fb0\u5c18\u6668\u5ff1\u6c89\u9648\u8d81\u886c\u79f0\u8c0c\u62bb\u55d4\u5bb8\u741b\u6987\u809c\u80c2\u789c\u9f80",cheng:"\u6491\u57ce\u6a59\u6210\u5448\u4e58\u7a0b\u60e9\u6f84\u8bda\u627f\u901e\u9a8b\u79e4\u57d5\u5d4a\u5fb5\u6d48\u67a8\u67fd\u6a18\u665f\u584d\u77a0\u94d6\u88ce\u86cf\u9172",chi:"\u5403\u75f4\u6301\u5319\u6c60\u8fdf\u5f1b\u9a70\u803b\u9f7f\u4f88\u5c3a\u8d64\u7fc5\u65a5\u70bd\u50ba\u5880\u82aa\u830c\u640b\u53f1\u54e7\u557b\u55e4\u5f73\u996c\u6cb2\u5ab8\u6555\u80dd\u7719\u7735\u9e31\u761b\u892b\u86a9\u87ad\u7b1e\u7bea\u8c49\u8e05\u8e1f\u9b51",chong:"\u5145\u51b2\u866b\u5d07\u5ba0\u833a\u5fe1\u61a7\u94f3\u825f",chou:"\u62bd\u916c\u7574\u8e0c\u7a20\u6101\u7b79\u4ec7\u7ef8\u7785\u4e11\u4fe6\u5733\u5e31\u60c6\u6eb4\u59af\u7633\u96e0\u9c8b",chu:"\u81ed\u521d\u51fa\u6a71\u53a8\u8e87\u9504\u96cf\u6ec1\u9664\u695a\u7840\u50a8\u77d7\u6410\u89e6\u5904\u4e8d\u520d\u61b7\u7ecc\u6775\u696e\u6a17\u870d\u8e70\u9edc",chuan:"\u63e3\u5ddd\u7a7f\u693d\u4f20\u8239\u5598\u4e32\u63be\u821b\u60f4\u9044\u5ddb\u6c1a\u948f\u9569\u8221",chuang:"\u75ae\u7a97\u5e62\u5e8a\u95ef\u521b\u6006",chui:"\u5439\u708a\u6376\u9524\u5782\u9672\u68f0\u69cc",chun:"\u6625\u693f\u9187\u5507\u6df3\u7eaf\u8822\u4fc3\u83bc\u6c8c\u80ab\u6710\u9e51\u877d",chuo:"\u6233\u7ef0\u851f\u8fb6\u8f8d\u955e\u8e14\u9f8a",ci:"\u75b5\u8328\u78c1\u96cc\u8f9e\u6148\u74f7\u8bcd\u6b64\u523a\u8d50\u6b21\u8360\u5472\u5d6f\u9e5a\u8785\u7ccd\u8d91",cong:"\u806a\u8471\u56f1\u5306\u4ece\u4e1b\u506c\u82c1\u6dd9\u9aa2\u742e\u7481\u679e",cu:"\u51d1\u7c97\u918b\u7c07\u731d\u6b82\u8e59",cuan:"\u8e7f\u7be1\u7a9c\u6c46\u64ba\u6615\u7228",cui:"\u6467\u5d14\u50ac\u8106\u7601\u7cb9\u6dec\u7fe0\u8403\u60b4\u7480\u69b1\u96b9",cun:"\u6751\u5b58\u5bf8\u78cb\u5fd6\u76b4",cuo:"\u64ae\u6413\u63aa\u632b\u9519\u539d\u811e\u9509\u77ec\u75e4\u9e7e\u8e49\u8e9c",da:"\u642d\u8fbe\u7b54\u7629\u6253\u5927\u8037\u54d2\u55d2\u601b\u59b2\u75b8\u8921\u7b2a\u977c\u9791",dai:"\u5446\u6b79\u50a3\u6234\u5e26\u6b86\u4ee3\u8d37\u888b\u5f85\u902e\u6020\u57ed\u7519\u5454\u5cb1\u8fe8\u902f\u9a80\u7ed0\u73b3\u9edb",dan:"\u803d\u62c5\u4e39\u5355\u90f8\u63b8\u80c6\u65e6\u6c2e\u4f46\u60ee\u6de1\u8bde\u5f39\u86cb\u4ebb\u510b\u5369\u840f\u5556\u6fb9\u6a90\u6b9a\u8d55\u7708\u7605\u8043\u7baa",dang:"\u5f53\u6321\u515a\u8361\u6863\u8c20\u51fc\u83ea\u5b95\u7800\u94db\u88c6",dao:"\u5200\u6363\u8e48\u5012\u5c9b\u7977\u5bfc\u5230\u7a3b\u60bc\u9053\u76d7\u53e8\u5541\u5fc9\u6d2e\u6c18\u7118\u5fd1\u7e9b",de:"\u5fb7\u5f97\u7684\u951d",deng:"\u8e6c\u706f\u767b\u7b49\u77aa\u51f3\u9093\u5654\u5d9d\u6225\u78f4\u956b\u7c26",di:"\u5824\u4f4e\u6ef4\u8fea\u654c\u7b1b\u72c4\u6da4\u7fdf\u5ae1\u62b5\u5e95\u5730\u8482\u7b2c\u5e1d\u5f1f\u9012\u7f14\u6c10\u7c74\u8bcb\u8c1b\u90b8\u577b\u839c\u837b\u5600\u5a23\u67e2\u68e3\u89cc\u7825\u78b2\u7747\u955d\u7f9d\u9ab6",dian:"\u98a0\u6382\u6ec7\u7898\u70b9\u5178\u975b\u57ab\u7535\u4f43\u7538\u5e97\u60e6\u5960\u6dc0\u6bbf\u4e36\u963d\u576b\u57dd\u5dc5\u73b7\u765c\u766b\u7c1f\u8e2e",diao:"\u7889\u53fc\u96d5\u51cb\u5201\u6389\u540a\u9493\u8c03\u8f7a\u94de\u8729\u7c9c\u8c82",die:"\u8dcc\u7239\u789f\u8776\u8fed\u8c0d\u53e0\u4f5a\u57a4\u581e\u63f2\u558b\u6e2b\u8f76\u7252\u74de\u8936\u800b\u8e40\u9cbd\u9cce",ding:"\u4e01\u76ef\u53ee\u9489\u9876\u9f0e\u952d\u5b9a\u8ba2\u4e22\u4ec3\u5576\u738e\u815a\u7887\u753a\u94e4\u7594\u8035\u914a",dong:"\u4e1c\u51ac\u8463\u61c2\u52a8\u680b\u4f97\u606b\u51bb\u6d1e\u578c\u549a\u5cbd\u5cd2\u5902\u6c21\u80e8\u80f4\u7850\u9e2b",dou:"\u515c\u6296\u6597\u9661\u8c46\u9017\u75d8\u8538\u94ad\u7aa6\u7aac\u86aa\u7bfc\u9161",du:"\u90fd\u7763\u6bd2\u728a\u72ec\u8bfb\u5835\u7779\u8d4c\u675c\u9540\u809a\u5ea6\u6e21\u5992\u828f\u561f\u6e0e\u691f\u6a50\u724d\u8839\u7b03\u9ad1\u9ee9",duan:"\u7aef\u77ed\u953b\u6bb5\u65ad\u7f0e\u5f56\u6934\u7145\u7c16",dui:"\u5806\u5151\u961f\u5bf9\u603c\u619d\u7893",dun:"\u58a9\u5428\u8e72\u6566\u987f\u56e4\u949d\u76fe\u9041\u7096\u7818\u7905\u76f9\u9566\u8db8",duo:"\u6387\u54c6\u591a\u593a\u579b\u8eb2\u6735\u8dfa\u8235\u5241\u60f0\u5815\u5484\u54da\u7f0d\u67c1\u94ce\u88f0\u8e31",e:"\u86fe\u5ce8\u9e45\u4fc4\u989d\u8bb9\u5a25\u6076\u5384\u627c\u904f\u9102\u997f\u5669\u8c14\u57a9\u57ad\u82ca\u83aa\u843c\u5443\u6115\u5c59\u5a40\u8f6d\u66f7\u816d\u786a\u9507\u9537\u9e57\u989a\u9cc4",en:"\u6069\u84bd\u6441\u5514\u55ef",er:"\u800c\u513f\u8033\u5c14\u9975\u6d31\u4e8c\u8d30\u8fe9\u73e5\u94d2\u9e38\u9c95",fa:"\u53d1\u7f5a\u7b4f\u4f10\u4e4f\u9600\u6cd5\u73d0\u57a1\u781d",fan:"\u85e9\u5e06\u756a\u7ffb\u6a0a\u77fe\u9492\u7e41\u51e1\u70e6\u53cd\u8fd4\u8303\u8d29\u72af\u996d\u6cdb\u8629\u5e61\u72ad\u68b5\u6535\u71d4\u7548\u8e6f",fang:"\u574a\u82b3\u65b9\u80aa\u623f\u9632\u59a8\u4eff\u8bbf\u7eba\u653e\u531a\u90a1\u5f77\u94ab\u822b\u9c82",fei:"\u83f2\u975e\u5561\u98de\u80a5\u532a\u8bfd\u5420\u80ba\u5e9f\u6cb8\u8d39\u82be\u72d2\u60b1\u6ddd\u5983\u7ecb\u7eef\u69a7\u8153\u6590\u6249\u7953\u7829\u9544\u75f1\u871a\u7bda\u7fe1\u970f\u9cb1",fen:"\u82ac\u915a\u5429\u6c1b\u5206\u7eb7\u575f\u711a\u6c7e\u7c89\u594b\u4efd\u5fff\u6124\u7caa\u507e\u7035\u68fc\u610d\u9cbc\u9f22",feng:"\u4e30\u5c01\u67ab\u8702\u5cf0\u950b\u98ce\u75af\u70fd\u9022\u51af\u7f1d\u8bbd\u5949\u51e4\u4ff8\u9146\u8451\u6ca3\u781c",fu:"\u4f5b\u5426\u592b\u6577\u80a4\u5b75\u6276\u62c2\u8f90\u5e45\u6c1f\u7b26\u4f0f\u4fd8\u670d\u6d6e\u6daa\u798f\u88b1\u5f17\u752b\u629a\u8f85\u4fef\u91dc\u65a7\u812f\u8151\u5e9c\u8150\u8d74\u526f\u8986\u8d4b\u590d\u5085\u4ed8\u961c\u7236\u8179\u8d1f\u5bcc\u8ba3\u9644\u5987\u7f1a\u5490\u5310\u51eb\u90db\u8299\u82fb\u832f\u83a9\u83d4\u544b\u5e5e\u6ecf\u8274\u5b5a\u9a78\u7ec2\u6874\u8d59\u9efb\u9efc\u7f58\u7a03\u99a5\u864d\u86a8\u8709\u8760\u876e\u9eb8\u8dba\u8dd7\u9cc6",ga:"\u5676\u560e\u86e4\u5c2c\u5477\u5c15\u5c1c\u65ee\u9486",gai:"\u8be5\u6539\u6982\u9499\u76d6\u6e89\u4e10\u9654\u5793\u6224\u8d45\u80f2",gan:"\u5e72\u7518\u6746\u67d1\u7aff\u809d\u8d76\u611f\u79c6\u6562\u8d63\u5769\u82f7\u5c34\u64c0\u6cd4\u6de6\u6f89\u7ec0\u6a44\u65f0\u77f8\u75b3\u9150",gang:"\u5188\u521a\u94a2\u7f38\u809b\u7eb2\u5c97\u6e2f\u6206\u7f61\u9883\u7b7b",gong:"\u6760\u5de5\u653b\u529f\u606d\u9f9a\u4f9b\u8eac\u516c\u5bab\u5f13\u5de9\u6c5e\u62f1\u8d21\u5171\u857b\u5efe\u54a3\u73d9\u80b1\u86a3\u86e9\u89e5",gao:"\u7bd9\u768b\u9ad8\u818f\u7f94\u7cd5\u641e\u9550\u7a3f\u544a\u777e\u8bf0\u90dc\u84bf\u85c1\u7f1f\u69d4\u69c1\u6772\u9506",ge:"\u54e5\u6b4c\u6401\u6208\u9e3d\u80f3\u7599\u5272\u9769\u845b\u683c\u9601\u9694\u94ec\u4e2a\u5404\u9b32\u4ee1\u54ff\u5865\u55dd\u7ea5\u643f\u8188\u784c\u94ea\u9549\u88bc\u988c\u867c\u8238\u9abc\u9ac2",gei:"\u7ed9",gen:"\u6839\u8ddf\u4e98\u831b\u54cf\u826e",geng:"\u8015\u66f4\u5e9a\u7fb9\u57c2\u803f\u6897\u54fd\u8d53\u9ca0",gou:"\u94a9\u52fe\u6c9f\u82df\u72d7\u57a2\u6784\u8d2d\u591f\u4f5d\u8bdf\u5ca3\u9058\u5abe\u7f11\u89cf\u5f40\u9e32\u7b31\u7bdd\u97b2",gu:"\u8f9c\u83c7\u5495\u7b8d\u4f30\u6cbd\u5b64\u59d1\u9f13\u53e4\u86ca\u9aa8\u8c37\u80a1\u6545\u987e\u56fa\u96c7\u560f\u8bc2\u83f0\u54cc\u5d2e\u6c69\u688f\u8f71\u726f\u727f\u80cd\u81cc\u6bc2\u77bd\u7f5f\u94b4\u9522\u74e0\u9e2a\u9e44\u75fc\u86c4\u9164\u89da\u9cb4\u9ab0\u9e58",gua:"\u522e\u74dc\u5250\u5be1\u6302\u8902\u5366\u8bd6\u5471\u681d\u9e39",guai:"\u4e56\u62d0\u602a\u54d9",guan:"\u68fa\u5173\u5b98\u51a0\u89c2\u7ba1\u9986\u7f50\u60ef\u704c\u8d2f\u500c\u839e\u63bc\u6dab\u76e5\u9e73\u9ccf",guang:"\u5149\u5e7f\u901b\u72b7\u6844\u80f1\u7592",gui:"\u7470\u89c4\u572d\u7845\u5f52\u9f9f\u95fa\u8f68\u9b3c\u8be1\u7678\u6842\u67dc\u8dea\u8d35\u523d\u5326\u523f\u5e8b\u5b84\u59ab\u6867\u7085\u6677\u7688\u7c0b\u9c91\u9cdc",gun:"\u8f8a\u6eda\u68cd\u4e28\u886e\u7ef2\u78d9\u9ca7",guo:"\u9505\u90ed\u56fd\u679c\u88f9\u8fc7\u9998\u8803\u57da\u63b4\u5459\u56d7\u5e3c\u5d1e\u7313\u6901\u8662\u951e\u8052\u872e\u873e\u8748",ha:"\u54c8",hai:"\u9ab8\u5b69\u6d77\u6c26\u4ea5\u5bb3\u9a87\u54b4\u55e8\u988f\u91a2",han:"\u9163\u61a8\u90af\u97e9\u542b\u6db5\u5bd2\u51fd\u558a\u7f55\u7ff0\u64bc\u634d\u65f1\u61be\u608d\u710a\u6c57\u6c49\u9097\u83e1\u6496\u961a\u701a\u6657\u7113\u9894\u86b6\u9f3e",hen:"\u592f\u75d5\u5f88\u72e0\u6068",hang:"\u676d\u822a\u6c86\u7ed7\u73e9\u6841",hao:"\u58d5\u568e\u8c6a\u6beb\u90dd\u597d\u8017\u53f7\u6d69\u8585\u55e5\u5686\u6fe0\u704f\u660a\u7693\u98a2\u869d",he:"\u5475\u559d\u8377\u83cf\u6838\u79be\u548c\u4f55\u5408\u76d2\u8c89\u9602\u6cb3\u6db8\u8d6b\u8910\u9e64\u8d3a\u8bc3\u52be\u58d1\u85ff\u55d1\u55ec\u9616\u76cd\u86b5\u7fee",hei:"\u563f\u9ed1",heng:"\u54fc\u4ea8\u6a2a\u8861\u6052\u8a07\u8605",hong:"\u8f70\u54c4\u70d8\u8679\u9e3f\u6d2a\u5b8f\u5f18\u7ea2\u9ec9\u8ba7\u836d\u85a8\u95f3\u6cd3",hou:"\u5589\u4faf\u7334\u543c\u539a\u5019\u540e\u5820\u5f8c\u9005\u760a\u7bcc\u7cc7\u9c8e\u9aba",hu:"\u547c\u4e4e\u5ffd\u745a\u58f6\u846b\u80e1\u8774\u72d0\u7cca\u6e56\u5f27\u864e\u552c\u62a4\u4e92\u6caa\u6237\u51b1\u553f\u56eb\u5cb5\u7322\u6019\u60da\u6d52\u6ef9\u7425\u69f2\u8f77\u89f3\u70c0\u7173\u623d\u6248\u795c\u9e55\u9e71\u7b0f\u9190\u659b",hua:"\u82b1\u54d7\u534e\u733e\u6ed1\u753b\u5212\u5316\u8bdd\u5290\u6d4d\u9a85\u6866\u94e7\u7a1e",huai:"\u69d0\u5f8a\u6000\u6dee\u574f\u8fd8\u8e1d",huan:"\u6b22\u73af\u6853\u7f13\u6362\u60a3\u5524\u75ea\u8c62\u7115\u6da3\u5ba6\u5e7b\u90c7\u5942\u57b8\u64d0\u571c\u6d39\u6d63\u6f36\u5bf0\u902d\u7f33\u953e\u9ca9\u9b1f",huang:"\u8352\u614c\u9ec4\u78fa\u8757\u7c27\u7687\u51f0\u60f6\u714c\u6643\u5e4c\u604d\u8c0e\u968d\u5fa8\u6e5f\u6f62\u9051\u749c\u8093\u7640\u87e5\u7bc1\u9cc7",hui:"\u7070\u6325\u8f89\u5fbd\u6062\u86d4\u56de\u6bc1\u6094\u6167\u5349\u60e0\u6666\u8d3f\u79fd\u4f1a\u70e9\u6c47\u8bb3\u8bf2\u7ed8\u8bd9\u8334\u835f\u8559\u54d5\u5599\u96b3\u6d04\u5f57\u7f0b\u73f2\u6656\u605a\u867a\u87ea\u9ebe",hun:"\u8364\u660f\u5a5a\u9b42\u6d51\u6df7\u8be8\u9984\u960d\u6eb7\u7f17",huo:"\u8c41\u6d3b\u4f19\u706b\u83b7\u6216\u60d1\u970d\u8d27\u7978\u6509\u56af\u5925\u94ac\u952a\u956c\u8020\u8816",ji:"\u51fb\u573e\u57fa\u673a\u7578\u7a3d\u79ef\u7b95\u808c\u9965\u8ff9\u6fc0\u8ba5\u9e21\u59ec\u7ee9\u7f09\u5409\u6781\u68d8\u8f91\u7c4d\u96c6\u53ca\u6025\u75be\u6c72\u5373\u5ac9\u7ea7\u6324\u51e0\u810a\u5df1\u84df\u6280\u5180\u5b63\u4f0e\u796d\u5242\u60b8\u6d4e\u5bc4\u5bc2\u8ba1\u8bb0\u65e2\u5fcc\u9645\u5993\u7ee7\u7eaa\u5c45\u4e0c\u4e69\u525e\u4f76\u4f74\u8114\u58bc\u82a8\u82b0\u8401\u84ba\u857a\u638e\u53fd\u54ad\u54dc\u5527\u5c8c\u5d74\u6d0e\u5f50\u5c50\u9aa5\u757f\u7391\u696b\u6b9b\u621f\u6222\u8d4d\u89ca\u7284\u9f51\u77f6\u7f81\u5d47\u7a37\u7620\u7635\u866e\u7b08\u7b04\u66a8\u8dfb\u8dfd\u9701\u9c9a\u9cab\u9afb\u9e82",jia:"\u5609\u67b7\u5939\u4f73\u5bb6\u52a0\u835a\u988a\u8d3e\u7532\u94be\u5047\u7a3c\u4ef7\u67b6\u9a7e\u5ac1\u4f3d\u90cf\u62ee\u5cac\u6d43\u8fe6\u73c8\u621b\u80db\u605d\u94d7\u9553\u75c2\u86f1\u7b33\u8888\u8dcf",jian:"\u6b7c\u76d1\u575a\u5c16\u7b3a\u95f4\u714e\u517c\u80a9\u8270\u5978\u7f04\u8327\u68c0\u67ec\u78b1\u7877\u62e3\u6361\u7b80\u4fed\u526a\u51cf\u8350\u69db\u9274\u8df5\u8d31\u89c1\u952e\u7bad\u4ef6\u5065\u8230\u5251\u996f\u6e10\u6e85\u6da7\u5efa\u50ed\u8c0f\u8c2b\u83c5\u84b9\u641b\u56dd\u6e54\u8e47\u8b07\u7f23\u67a7\u67d9\u6957\u620b\u622c\u726e\u728d\u6bfd\u8171\u7751\u950f\u9e63\u88e5\u7b15\u7bb4\u7fe6\u8dbc\u8e3a\u9ca3\u97af",jiang:"\u50f5\u59dc\u5c06\u6d46\u6c5f\u7586\u848b\u6868\u5956\u8bb2\u5320\u9171\u964d\u8333\u6d1a\u7edb\u7f30\u729f\u7913\u8029\u7ce8\u8c47",jiao:"\u8549\u6912\u7901\u7126\u80f6\u4ea4\u90ca\u6d47\u9a84\u5a07\u56bc\u6405\u94f0\u77eb\u4fa5\u811a\u72e1\u89d2\u997a\u7f34\u7ede\u527f\u6559\u9175\u8f7f\u8f83\u53eb\u4f7c\u50ec\u832d\u6322\u564d\u5ce4\u5fbc\u59e3\u7e9f\u656b\u768e\u9e6a\u86df\u91ae\u8de4\u9c9b",jie:"\u7a96\u63ed\u63a5\u7686\u79f8\u8857\u9636\u622a\u52ab\u8282\u6854\u6770\u6377\u776b\u7aed\u6d01\u7ed3\u89e3\u59d0\u6212\u85c9\u82a5\u754c\u501f\u4ecb\u75a5\u8beb\u5c4a\u5048\u8ba6\u8bd8\u5588\u55df\u736c\u5a55\u5b51\u6840\u7352\u78a3\u9534\u7596\u88b7\u9889\u86a7\u7faf\u9c92\u9ab1\u9aeb",jin:"\u5dfe\u7b4b\u65a4\u91d1\u4eca\u6d25\u895f\u7d27\u9526\u4ec5\u8c28\u8fdb\u9773\u664b\u7981\u8fd1\u70ec\u6d78\u5c3d\u537a\u8369\u5807\u5664\u9991\u5ed1\u5997\u7f19\u747e\u69ff\u8d46\u89d0\u9485\u9513\u887f\u77dc",jing:"\u52b2\u8346\u5162\u830e\u775b\u6676\u9cb8\u4eac\u60ca\u7cbe\u7cb3\u7ecf\u4e95\u8b66\u666f\u9888\u9759\u5883\u656c\u955c\u5f84\u75c9\u9756\u7adf\u7ade\u51c0\u522d\u5106\u9631\u83c1\u734d\u61ac\u6cfe\u8ff3\u5f2a\u5a67\u80bc\u80eb\u8148\u65cc",jiong:"\u70af\u7a98\u5182\u8fe5\u6243",jiu:"\u63ea\u7a76\u7ea0\u7396\u97ed\u4e45\u7078\u4e5d\u9152\u53a9\u6551\u65e7\u81fc\u8205\u548e\u5c31\u759a\u50e6\u557e\u9604\u67e9\u6855\u9e6b\u8d73\u9b0f",ju:"\u97a0\u62d8\u72d9\u75bd\u9a79\u83ca\u5c40\u5480\u77e9\u4e3e\u6cae\u805a\u62d2\u636e\u5de8\u5177\u8ddd\u8e1e\u952f\u4ff1\u53e5\u60e7\u70ac\u5267\u5028\u8bb5\u82e3\u82f4\u8392\u63ac\u907d\u5c66\u741a\u67b8\u6910\u6998\u6989\u6a58\u728b\u98d3\u949c\u9514\u7aad\u88fe\u8d84\u91b5\u8e3d\u9f83\u96ce\u97ab",juan:"\u6350\u9e43\u5a1f\u5026\u7737\u5377\u7ee2\u9104\u72f7\u6d93\u684a\u8832\u9529\u954c\u96bd",jue:"\u6485\u652b\u6289\u6398\u5014\u7235\u89c9\u51b3\u8bc0\u7edd\u53a5\u5282\u8c32\u77cd\u8568\u5658\u5d1b\u7357\u5b53\u73cf\u6877\u6a5b\u721d\u9562\u8e76\u89d6",jun:"\u5747\u83cc\u94a7\u519b\u541b\u5cfb\u4fca\u7ae3\u6d5a\u90e1\u9a8f\u6343\u72fb\u76b2\u7b60\u9e87",ka:"\u5580\u5496\u5361\u4f67\u5494\u80e9",ke:"\u54af\u5777\u82db\u67ef\u68f5\u78d5\u9897\u79d1\u58f3\u54b3\u53ef\u6e34\u514b\u523b\u5ba2\u8bfe\u5ca2\u606a\u6e98\u9a92\u7f02\u73c2\u8f72\u6c2a\u778c\u94b6\u75b4\u7aa0\u874c\u9ac1",kai:"\u5f00\u63e9\u6977\u51ef\u6168\u5240\u57b2\u8488\u5ffe\u607a\u94e0\u950e",kan:"\u520a\u582a\u52d8\u574e\u780d\u770b\u4f83\u51f5\u83b0\u83b6\u6221\u9f9b\u77b0",kang:"\u5eb7\u6177\u7ce0\u625b\u6297\u4ea2\u7095\u5751\u4f09\u95f6\u94aa",kao:"\u8003\u62f7\u70e4\u9760\u5c3b\u6832\u7292\u94d0",ken:"\u80af\u5543\u57a6\u6073\u57a0\u88c9\u9880",keng:"\u542d\u5fd0\u94ff",kong:"\u7a7a\u6050\u5b54\u63a7\u5025\u5d06\u7b9c",kou:"\u62a0\u53e3\u6263\u5bc7\u82a4\u853b\u53e9\u770d\u7b58",ku:"\u67af\u54ed\u7a9f\u82e6\u9177\u5e93\u88e4\u5233\u5800\u55be\u7ed4\u9ab7",kua:"\u5938\u57ae\u630e\u8de8\u80ef\u4f89",kuai:"\u5757\u7b77\u4fa9\u5feb\u84af\u90d0\u8489\u72ef\u810d",kuan:"\u5bbd\u6b3e\u9acb",kuang:"\u5321\u7b50\u72c2\u6846\u77ff\u7736\u65f7\u51b5\u8bd3\u8bf3\u909d\u5739\u593c\u54d0\u7ea9\u8d36",kui:"\u4e8f\u76d4\u5cbf\u7aa5\u8475\u594e\u9b41\u5080\u9988\u6127\u6e83\u9997\u532e\u5914\u9697\u63c6\u55b9\u559f\u609d\u6126\u9615\u9035\u668c\u777d\u8069\u8770\u7bd1\u81fe\u8dec",kun:"\u5764\u6606\u6346\u56f0\u6083\u9603\u7428\u951f\u918c\u9cb2\u9ae1",kuo:"\u62ec\u6269\u5ed3\u9614\u86de",la:"\u5783\u62c9\u5587\u8721\u814a\u8fa3\u5566\u524c\u647a\u908b\u65ef\u782c\u760c",lai:"\u83b1\u6765\u8d56\u5d03\u5f95\u6d9e\u6fd1\u8d49\u7750\u94fc\u765e\u7c41",lan:"\u84dd\u5a6a\u680f\u62e6\u7bee\u9611\u5170\u6f9c\u8c30\u63fd\u89c8\u61d2\u7f06\u70c2\u6ee5\u5549\u5c9a\u61d4\u6f24\u6984\u6593\u7f71\u9567\u8934",lang:"\u7405\u6994\u72fc\u5eca\u90ce\u6717\u6d6a\u83a8\u8497\u5577\u9606\u9512\u7a02\u8782",lao:"\u635e\u52b3\u7262\u8001\u4f6c\u59e5\u916a\u70d9\u6d9d\u5520\u5d02\u6833\u94d1\u94f9\u75e8\u91aa",le:"\u52d2\u4e50\u808b\u4ec2\u53fb\u561e\u6cd0\u9cd3",lei:"\u96f7\u956d\u857e\u78ca\u7d2f\u5121\u5792\u64c2\u7c7b\u6cea\u7fb8\u8bd4\u837d\u54a7\u6f2f\u5ad8\u7f27\u6a91\u8012\u9179",ling:"\u68f1\u51b7\u62ce\u73b2\u83f1\u96f6\u9f84\u94c3\u4f36\u7f9a\u51cc\u7075\u9675\u5cad\u9886\u53e6\u4ee4\u9143\u5844\u82d3\u5464\u56f9\u6ce0\u7eeb\u67c3\u68c2\u74f4\u8046\u86c9\u7fce\u9cae",leng:"\u695e\u6123",li:"\u5398\u68a8\u7281\u9ece\u7bf1\u72f8\u79bb\u6f13\u7406\u674e\u91cc\u9ca4\u793c\u8389\u8354\u540f\u6817\u4e3d\u5389\u52b1\u783e\u5386\u5229\u5088\u4f8b\u4fd0\u75e2\u7acb\u7c92\u6ca5\u96b6\u529b\u7483\u54e9\u4fea\u4fda\u90e6\u575c\u82c8\u8385\u84e0\u85dc\u6369\u5456\u5533\u55b1\u7301\u6ea7\u6fa7\u9026\u5a0c\u5ae0\u9a8a\u7f21\u73de\u67a5\u680e\u8f79\u623e\u783a\u8a48\u7f79\u9502\u9e42\u75a0\u75ac\u86ce\u870a\u8821\u7b20\u7be5\u7c9d\u91b4\u8dde\u96f3\u9ca1\u9ce2\u9ee7",lian:"\u4fe9\u8054\u83b2\u8fde\u9570\u5ec9\u601c\u6d9f\u5e18\u655b\u8138\u94fe\u604b\u70bc\u7ec3\u631b\u8539\u5941\u6f4b\u6fc2\u5a08\u740f\u695d\u6b93\u81c1\u81a6\u88e2\u880a\u9ca2",liang:"\u7cae\u51c9\u6881\u7cb1\u826f\u4e24\u8f86\u91cf\u667e\u4eae\u8c05\u589a\u690b\u8e09\u9753\u9b49",liao:"\u64a9\u804a\u50da\u7597\u71ce\u5be5\u8fbd\u6f66\u4e86\u6482\u9563\u5ed6\u6599\u84fc\u5c25\u5639\u7360\u5bee\u7f2d\u948c\u9e69\u8022",lie:"\u5217\u88c2\u70c8\u52a3\u730e\u51bd\u57d2\u6d0c\u8d94\u8e90\u9b23",lin:"\u7433\u6797\u78f7\u9716\u4e34\u90bb\u9cde\u6dcb\u51db\u8d41\u541d\u853a\u5d99\u5eea\u9074\u6aa9\u8f9a\u77b5\u7cbc\u8e8f\u9e9f",liu:"\u6e9c\u7409\u69b4\u786b\u998f\u7559\u5218\u7624\u6d41\u67f3\u516d\u62a1\u507b\u848c\u6cd6\u6d4f\u905b\u9a9d\u7efa\u65d2\u7198\u950d\u954f\u9e68\u938f","long":"\u9f99\u804b\u5499\u7b3c\u7abf\u9686\u5784\u62e2\u9647\u5f04\u5785\u830f\u6cf7\u73d1\u680a\u80e7\u783b\u7643",lou:"\u697c\u5a04\u6402\u7bd3\u6f0f\u964b\u55bd\u5d5d\u9542\u7618\u8027\u877c\u9ac5",lu:"\u82a6\u5362\u9885\u5e90\u7089\u63b3\u5364\u864f\u9c81\u9e93\u788c\u9732\u8def\u8d42\u9e7f\u6f5e\u7984\u5f55\u9646\u622e\u5786\u6445\u64b8\u565c\u6cf8\u6e0c\u6f09\u7490\u680c\u6a79\u8f73\u8f82\u8f98\u6c07\u80ea\u9565\u9e2c\u9e6d\u7c0f\u823b\u9c88",lv:"\u9a74\u5415\u94dd\u4fa3\u65c5\u5c65\u5c61\u7f15\u8651\u6c2f\u5f8b\u7387\u6ee4\u7eff\u634b\u95fe\u6988\u8182\u7a06\u891b",luan:"\u5ce6\u5b6a\u6ee6\u5375\u4e71\u683e\u9e3e\u92ae",lue:"\u63a0\u7565\u950a",lun:"\u8f6e\u4f26\u4ed1\u6ca6\u7eb6\u8bba\u56f5",luo:"\u841d\u87ba\u7f57\u903b\u9523\u7ba9\u9aa1\u88f8\u843d\u6d1b\u9a86\u7edc\u502e\u8366\u645e\u7321\u6cfa\u6924\u8136\u9559\u7630\u96d2",ma:"\u5988\u9ebb\u739b\u7801\u8682\u9a6c\u9a82\u561b\u5417\u551b\u72b8\u5b37\u6769\u9ebd",mai:"\u57cb\u4e70\u9ea6\u5356\u8fc8\u8109\u52a2\u836c\u54aa\u973e",man:"\u7792\u9992\u86ee\u6ee1\u8513\u66fc\u6162\u6f2b\u8c29\u5881\u5e54\u7f26\u71b3\u9558\u989f\u87a8\u9cd7\u9794",mang:"\u8292\u832b\u76f2\u5fd9\u83bd\u9099\u6f2d\u6726\u786d\u87d2",meng:"\u6c13\u840c\u8499\u6aac\u76df\u9530\u731b\u68a6\u5b5f\u52d0\u750d\u77a2\u61f5\u791e\u867b\u8722\u8813\u824b\u8268\u9efe",miao:"\u732b\u82d7\u63cf\u7784\u85d0\u79d2\u6e3a\u5e99\u5999\u55b5\u9088\u7f08\u7f2a\u676a\u6dfc\u7707\u9e4b\u8731",mao:"\u8305\u951a\u6bdb\u77db\u94c6\u536f\u8302\u5192\u5e3d\u8c8c\u8d38\u4f94\u88a4\u52d6\u8306\u5cc1\u7441\u6634\u7266\u8004\u65c4\u61cb\u7780\u86d1\u8765\u87ca\u9ae6",me:"\u4e48",mei:"\u73ab\u679a\u6885\u9176\u9709\u7164\u6ca1\u7709\u5a92\u9541\u6bcf\u7f8e\u6627\u5bd0\u59b9\u5a9a\u5776\u8393\u5d4b\u7338\u6d7c\u6e44\u6963\u9545\u9e5b\u8882\u9b45",men:"\u95e8\u95f7\u4eec\u626a\u739f\u7116\u61d1\u9494",mi:"\u772f\u919a\u9761\u7cdc\u8ff7\u8c1c\u5f25\u7c73\u79d8\u89c5\u6ccc\u871c\u5bc6\u5e42\u8288\u5196\u8c27\u863c\u5627\u7315\u736f\u6c68\u5b93\u5f2d\u8112\u6549\u7cf8\u7e3b\u9e8b",mian:"\u68c9\u7720\u7ef5\u5195\u514d\u52c9\u5a29\u7f05\u9762\u6c94\u6e4e\u817c\u7704",mie:"\u8511\u706d\u54a9\u881b\u7bfe",min:"\u6c11\u62bf\u76bf\u654f\u60af\u95fd\u82e0\u5cb7\u95f5\u6cef\u73c9",ming:"\u660e\u879f\u9e23\u94ed\u540d\u547d\u51a5\u8317\u6e9f\u669d\u7791\u9169",miu:"\u8c2c",mo:"\u6478\u6479\u8611\u6a21\u819c\u78e8\u6469\u9b54\u62b9\u672b\u83ab\u58a8\u9ed8\u6cab\u6f20\u5bde\u964c\u8c1f\u8309\u84e6\u998d\u5aeb\u9546\u79e3\u763c\u8031\u87c6\u8c8a\u8c98",mou:"\u8c0b\u725f\u67d0\u53b6\u54de\u5a7a\u7738\u936a",mu:"\u62c7\u7261\u4ea9\u59c6\u6bcd\u5893\u66ae\u5e55\u52df\u6155\u6728\u76ee\u7766\u7267\u7a46\u4eeb\u82dc\u5452\u6c90\u6bea\u94bc",na:"\u62ff\u54ea\u5450\u94a0\u90a3\u5a1c\u7eb3\u5185\u637a\u80ad\u954e\u8872\u7bac",nai:"\u6c16\u4e43\u5976\u8010\u5948\u9f10\u827f\u8418\u67f0",nan:"\u5357\u7537\u96be\u56ca\u5583\u56e1\u6960\u8169\u877b\u8d67",nao:"\u6320\u8111\u607c\u95f9\u5b6c\u57b4\u7331\u7459\u7847\u94d9\u86f2",ne:"\u6dd6\u5462\u8bb7",nei:"\u9981",nen:"\u5ae9\u80fd\u6798\u6041",ni:"\u59ae\u9713\u502a\u6ce5\u5c3c\u62df\u4f60\u533f\u817b\u9006\u6eba\u4f32\u576d\u730a\u6029\u6ee0\u6635\u65ce\u7962\u615d\u7768\u94cc\u9cb5",nian:"\u852b\u62c8\u5e74\u78be\u64b5\u637b\u5ff5\u5eff\u8f87\u9ecf\u9c87\u9cb6",niang:"\u5a18\u917f",niao:"\u9e1f\u5c3f\u8311\u5b32\u8132\u8885",nie:"\u634f\u8042\u5b7d\u556e\u954a\u954d\u6d85\u4e5c\u9667\u8616\u55eb\u8080\u989e\u81ec\u8e51",nin:"\u60a8\u67e0",ning:"\u72de\u51dd\u5b81\u62e7\u6cde\u4f5e\u84e5\u549b\u752f\u804d",niu:"\u725b\u626d\u94ae\u7ebd\u72c3\u5ff8\u599e\u86b4",nong:"\u8113\u6d53\u519c\u4fac",nu:"\u5974\u52aa\u6012\u5476\u5e11\u5f29\u80ec\u5b65\u9a7d",nv:"\u5973\u6067\u9495\u8844",nuan:"\u6696",nuenue:"\u8650",nue:"\u759f\u8c11",nuo:"\u632a\u61e6\u7cef\u8bfa\u50a9\u6426\u558f\u9518",ou:"\u54e6\u6b27\u9e25\u6bb4\u85d5\u5455\u5076\u6ca4\u6004\u74ef\u8026",pa:"\u556a\u8db4\u722c\u5e15\u6015\u7436\u8469\u7b62",pai:"\u62cd\u6392\u724c\u5f98\u6e43\u6d3e\u4ff3\u848e",pan:"\u6500\u6f58\u76d8\u78d0\u76fc\u7554\u5224\u53db\u723f\u6cee\u88a2\u897b\u87e0\u8e52",pang:"\u4e53\u5e9e\u65c1\u802a\u80d6\u6ec2\u9004",pao:"\u629b\u5486\u5228\u70ae\u888d\u8dd1\u6ce1\u530f\u72cd\u5e96\u812c\u75b1",pei:"\u5478\u80da\u57f9\u88f4\u8d54\u966a\u914d\u4f69\u6c9b\u638a\u8f94\u5e14\u6de0\u65c6\u952b\u9185\u9708",pen:"\u55b7\u76c6\u6e53",peng:"\u7830\u62a8\u70f9\u6f8e\u5f6d\u84ec\u68da\u787c\u7bf7\u81a8\u670b\u9e4f\u6367\u78b0\u576f\u580b\u562d\u6026\u87db",pi:"\u7812\u9739\u6279\u62ab\u5288\u7435\u6bd7\u5564\u813e\u75b2\u76ae\u5339\u75de\u50fb\u5c41\u8b6c\u4e15\u9674\u90b3\u90eb\u572e\u9f19\u64d7\u567c\u5e80\u5ab2\u7eb0\u6787\u7513\u7765\u7f74\u94cd\u75e6\u7656\u758b\u868d\u8c94",pian:"\u7bc7\u504f\u7247\u9a97\u8c1d\u9a88\u728f\u80fc\u890a\u7fe9\u8e41",piao:"\u98d8\u6f02\u74e2\u7968\u527d\u560c\u5ad6\u7f25\u6b8d\u779f\u87b5",pie:"\u6487\u77a5\u4e3f\u82e4\u6c15",pin:"\u62fc\u9891\u8d2b\u54c1\u8058\u62da\u59d8\u5ad4\u6980\u725d\u98a6",ping:"\u4e52\u576a\u82f9\u840d\u5e73\u51ed\u74f6\u8bc4\u5c4f\u4fdc\u5a09\u67b0\u9c86",po:"\u5761\u6cfc\u9887\u5a46\u7834\u9b44\u8feb\u7c95\u53f5\u9131\u6ea5\u73c0\u948b\u94b7\u76a4\u7b38",pou:"\u5256\u88d2\u8e23",pu:"\u6251\u94fa\u4ec6\u8386\u8461\u83e9\u84b2\u57d4\u6734\u5703\u666e\u6d66\u8c31\u66dd\u7011\u530d\u5657\u6fee\u749e\u6c06\u9564\u9568\u8e7c",qi:"\u671f\u6b3a\u6816\u621a\u59bb\u4e03\u51c4\u6f06\u67d2\u6c8f\u5176\u68cb\u5947\u6b67\u7566\u5d0e\u8110\u9f50\u65d7\u7948\u7941\u9a91\u8d77\u5c82\u4e5e\u4f01\u542f\u5951\u780c\u5668\u6c14\u8fc4\u5f03\u6c7d\u6ce3\u8bab\u4e9f\u4e93\u573b\u8291\u840b\u847a\u5601\u5c7a\u5c90\u6c54\u6dc7\u9a90\u7eee\u742a\u7426\u675e\u6864\u69ed\u6b39\u797a\u61a9\u789b\u86f4\u871e\u7da6\u7dae\u8dbf\u8e4a\u9ccd\u9e92",qia:"\u6390\u6070\u6d3d\u845c",qian:"\u7275\u6266\u948e\u94c5\u5343\u8fc1\u7b7e\u4edf\u8c26\u4e7e\u9ed4\u94b1\u94b3\u524d\u6f5c\u9063\u6d45\u8c34\u5811\u5d4c\u6b20\u6b49\u4f65\u9621\u828a\u82a1\u8368\u63ae\u5c8d\u60ad\u614a\u9a9e\u6434\u8930\u7f31\u6920\u80b7\u6106\u94a4\u8654\u7b9d",qiang:"\u67aa\u545b\u8154\u7f8c\u5899\u8537\u5f3a\u62a2\u5af1\u6a2f\u6217\u709d\u9516\u9535\u956a\u8941\u8723\u7f9f\u8deb\u8dc4",qiao:"\u6a47\u9539\u6572\u6084\u6865\u77a7\u4e54\u4fa8\u5de7\u9798\u64ac\u7fd8\u5ced\u4fcf\u7a8d\u5281\u8bee\u8c2f\u835e\u6100\u6194\u7f32\u6a35\u6bf3\u7857\u8df7\u9792",qie:"\u5207\u8304\u4e14\u602f\u7a83\u90c4\u553c\u60ec\u59be\u6308\u9532\u7ba7",qin:"\u94a6\u4fb5\u4eb2\u79e6\u7434\u52e4\u82b9\u64d2\u79bd\u5bdd\u6c81\u82a9\u84c1\u8572\u63ff\u5423\u55ea\u5659\u6eb1\u6a8e\u8793\u887e",qing:"\u9752\u8f7b\u6c22\u503e\u537f\u6e05\u64ce\u6674\u6c30\u60c5\u9877\u8bf7\u5e86\u5029\u82d8\u570a\u6aa0\u78ec\u873b\u7f44\u7b90\u8b26\u9cad\u9ee5",qiong:"\u743c\u7a77\u909b\u8315\u7a79\u7b47\u928e",qiu:"\u79cb\u4e18\u90b1\u7403\u6c42\u56da\u914b\u6cc5\u4fc5\u6c3d\u5def\u827d\u72b0\u6e6b\u9011\u9052\u6978\u8d47\u9e20\u866c\u86af\u8764\u88d8\u7cd7\u9cc5\u9f3d",qu:"\u8d8b\u533a\u86c6\u66f2\u8eaf\u5c48\u9a71\u6e20\u53d6\u5a36\u9f8b\u8da3\u53bb\u8bce\u52ac\u8556\u8627\u5c96\u8862\u9612\u74a9\u89d1\u6c0d\u795b\u78f2\u766f\u86d0\u883c\u9eb4\u77bf\u9ee2",quan:"\u5708\u98a7\u6743\u919b\u6cc9\u5168\u75ca\u62f3\u72ac\u5238\u529d\u8be0\u8343\u737e\u609b\u7efb\u8f81\u754e\u94e8\u8737\u7b4c\u9b08",que:"\u7f3a\u7094\u7638\u5374\u9e4a\u69b7\u786e\u96c0\u9619\u60ab",qun:"\u88d9\u7fa4\u9021",ran:"\u7136\u71c3\u5189\u67d3\u82d2\u9aef",rang:"\u74e4\u58e4\u6518\u56b7\u8ba9\u79b3\u7a70",rao:"\u9976\u6270\u7ed5\u835b\u5a06\u6861",ruo:"\u60f9\u82e5\u5f31",re:"\u70ed\u504c",ren:"\u58ec\u4ec1\u4eba\u5fcd\u97e7\u4efb\u8ba4\u5203\u598a\u7eab\u4ede\u834f\u845a\u996a\u8f6b\u7a14\u887d",reng:"\u6254\u4ecd",ri:"\u65e5",rong:"\u620e\u8338\u84c9\u8363\u878d\u7194\u6eb6\u5bb9\u7ed2\u5197\u5d58\u72e8\u7f1b\u6995\u877e",rou:"\u63c9\u67d4\u8089\u7cc5\u8e42\u97a3",ru:"\u8339\u8815\u5112\u5b7a\u5982\u8fb1\u4e73\u6c5d\u5165\u8925\u84d0\u85b7\u5685\u6d33\u6ebd\u6fe1\u94f7\u8966\u98a5",ruan:"\u8f6f\u962e\u670a",rui:"\u854a\u745e\u9510\u82ae\u8564\u777f\u868b",run:"\u95f0\u6da6",sa:"\u6492\u6d12\u8428\u5345\u4ee8\u6332\u98d2",sai:"\u816e\u9cc3\u585e\u8d5b\u567b",san:"\u4e09\u53c1\u4f1e\u6563\u5f61\u9993\u6c35\u6bf5\u7cc1\u9730",sang:"\u6851\u55d3\u4e27\u6421\u78c9\u98a1",sao:"\u6414\u9a9a\u626b\u5ac2\u57fd\u81ca\u7619\u9ccb",se:"\u745f\u8272\u6da9\u556c\u94e9\u94ef\u7a51",sen:"\u68ee",seng:"\u50e7",sha:"\u838e\u7802\u6740\u5239\u6c99\u7eb1\u50bb\u5565\u715e\u810e\u6b43\u75e7\u88df\u970e\u9ca8",shai:"\u7b5b\u6652\u917e",shan:"\u73ca\u82eb\u6749\u5c71\u5220\u717d\u886b\u95ea\u9655\u64c5\u8d61\u81b3\u5584\u6c55\u6247\u7f2e\u5261\u8baa\u912f\u57cf\u829f\u6f78\u59d7\u9a9f\u81bb\u9490\u759d\u87ee\u8222\u8dda\u9cdd",shang:"\u5892\u4f24\u5546\u8d4f\u664c\u4e0a\u5c1a\u88f3\u57a7\u7ef1\u6b87\u71b5\u89de",shao:"\u68a2\u634e\u7a0d\u70e7\u828d\u52fa\u97f6\u5c11\u54e8\u90b5\u7ecd\u52ad\u82d5\u6f72\u86f8\u7b24\u7b72\u8244",she:"\u5962\u8d4a\u86c7\u820c\u820d\u8d66\u6444\u5c04\u6151\u6d89\u793e\u8bbe\u538d\u4f58\u731e\u7572\u9e9d",shen:"\u7837\u7533\u547b\u4f38\u8eab\u6df1\u5a20\u7ec5\u795e\u6c88\u5ba1\u5a76\u751a\u80be\u614e\u6e17\u8bdc\u8c02\u5432\u54c2\u6e16\u6939\u77e7\u8703",sheng:"\u58f0\u751f\u7525\u7272\u5347\u7ef3\u7701\u76db\u5269\u80dc\u5723\u4e1e\u6e11\u5ab5\u771a\u7b19",shi:"\u5e08\u5931\u72ee\u65bd\u6e7f\u8bd7\u5c38\u8671\u5341\u77f3\u62fe\u65f6\u4ec0\u98df\u8680\u5b9e\u8bc6\u53f2\u77e2\u4f7f\u5c4e\u9a76\u59cb\u5f0f\u793a\u58eb\u4e16\u67ff\u4e8b\u62ed\u8a93\u901d\u52bf\u662f\u55dc\u566c\u9002\u4ed5\u4f8d\u91ca\u9970\u6c0f\u5e02\u6043\u5ba4\u89c6\u8bd5\u8c25\u57d8\u83b3\u84cd\u5f11\u5511\u9963\u8f7c\u8006\u8d33\u70bb\u793b\u94c8\u94ca\u87ab\u8210\u7b6e\u8c55\u9ca5\u9cba",shou:"\u6536\u624b\u9996\u5b88\u5bff\u6388\u552e\u53d7\u7626\u517d\u624c\u72e9\u7ef6\u824f",shu:"\u852c\u67a2\u68b3\u6b8a\u6292\u8f93\u53d4\u8212\u6dd1\u758f\u4e66\u8d4e\u5b70\u719f\u85af\u6691\u66d9\u7f72\u8700\u9ecd\u9f20\u5c5e\u672f\u8ff0\u6811\u675f\u620d\u7ad6\u5885\u5eb6\u6570\u6f31\u6055\u500f\u587e\u83fd\u5fc4\u6cad\u6d91\u6f8d\u59dd\u7ebe\u6bf9\u8167\u6bb3\u956f\u79eb\u9e6c",shua:"\u5237\u800d\u5530\u6dae",shuai:"\u6454\u8870\u7529\u5e05\u87c0",shuan:"\u6813\u62f4\u95e9",shuang:"\u971c\u53cc\u723d\u5b40",shui:"\u8c01\u6c34\u7761\u7a0e",shun:"\u542e\u77ac\u987a\u821c\u6042",shuo:"\u8bf4\u7855\u6714\u70c1\u84b4\u6420\u55cd\u6fef\u5981\u69ca\u94c4",si:"\u65af\u6495\u5636\u601d\u79c1\u53f8\u4e1d\u6b7b\u8086\u5bfa\u55e3\u56db\u4f3a\u4f3c\u9972\u5df3\u53ae\u4fdf\u5155\u83e5\u549d\u6c5c\u6cd7\u6f8c\u59d2\u9a77\u7f0c\u7940\u7960\u9536\u9e36\u801c\u86f3\u7b25",song:"\u677e\u8038\u6002\u9882\u9001\u5b8b\u8bbc\u8bf5\u51c7\u83d8\u5d27\u5d69\u5fea\u609a\u6dde\u7ae6",sou:"\u641c\u8258\u64de\u55fd\u53df\u55d6\u55fe\u998a\u6eb2\u98d5\u778d\u953c\u878b",su:"\u82cf\u9165\u4fd7\u7d20\u901f\u7c9f\u50f3\u5851\u6eaf\u5bbf\u8bc9\u8083\u5919\u8c21\u850c\u55c9\u612b\u7c0c\u89eb\u7a23",suan:"\u9178\u849c\u7b97",sui:"\u867d\u968b\u968f\u7ee5\u9ad3\u788e\u5c81\u7a57\u9042\u96a7\u795f\u84d1\u51ab\u8c07\u6fc9\u9083\u71e7\u772d\u7762",sun:"\u5b59\u635f\u7b0b\u836a\u72f2\u98e7\u69ab\u8de3\u96bc",suo:"\u68ad\u5506\u7f29\u7410\u7d22\u9501\u6240\u5522\u55e6\u5a11\u686b\u7743\u7fa7",ta:"\u584c\u4ed6\u5b83\u5979\u5854\u736d\u631e\u8e4b\u8e0f\u95fc\u6ebb\u9062\u69bb\u6c93",tai:"\u80ce\u82d4\u62ac\u53f0\u6cf0\u915e\u592a\u6001\u6c70\u90b0\u85b9\u80bd\u70b1\u949b\u8dc6\u9c90",tan:"\u574d\u644a\u8d2a\u762b\u6ee9\u575b\u6a80\u75f0\u6f6d\u8c2d\u8c08\u5766\u6bef\u8892\u78b3\u63a2\u53f9\u70ad\u90ef\u8548\u6619\u94bd\u952c\u8983",tang:"\u6c64\u5858\u642a\u5802\u68e0\u819b\u5510\u7cd6\u50a5\u9967\u6e8f\u746d\u94f4\u9557\u8025\u8797\u87b3\u7fb0\u91a3",thang:"\u5018\u8eba\u6dcc",theng:"\u8d9f\u70eb",tao:"\u638f\u6d9b\u6ed4\u7ee6\u8404\u6843\u9003\u6dd8\u9676\u8ba8\u5957\u6311\u9f17\u5555\u97ec\u9955",te:"\u7279",teng:"\u85e4\u817e\u75bc\u8a8a\u6ed5",ti:"\u68af\u5254\u8e22\u9511\u63d0\u9898\u8e44\u557c\u4f53\u66ff\u568f\u60d5\u6d95\u5243\u5c49\u8351\u608c\u9016\u7ee8\u7f07\u9e48\u88fc\u918d",tian:"\u5929\u6dfb\u586b\u7530\u751c\u606c\u8214\u8146\u63ad\u5fdd\u9617\u6b84\u754b\u94bf\u86ba",tiao:"\u6761\u8fe2\u773a\u8df3\u4f7b\u7967\u94eb\u7a95\u9f86\u9ca6",tie:"\u8d34\u94c1\u5e16\u841c\u992e",ting:"\u5385\u542c\u70c3\u6c40\u5ef7\u505c\u4ead\u5ead\u633a\u8247\u839b\u8476\u5a77\u6883\u8713\u9706",tong:"\u901a\u6850\u916e\u77b3\u540c\u94dc\u5f64\u7ae5\u6876\u6345\u7b52\u7edf\u75db\u4f5f\u50ee\u4edd\u833c\u55f5\u6078\u6f7c\u783c",tou:"\u5077\u6295\u5934\u900f\u4ea0",tu:"\u51f8\u79c3\u7a81\u56fe\u5f92\u9014\u6d82\u5c60\u571f\u5410\u5154\u580d\u837c\u83df\u948d\u9174",tuan:"\u6e4d\u56e2\u7583",tui:"\u63a8\u9893\u817f\u8715\u892a\u9000\u5fd2\u717a",tun:"\u541e\u5c6f\u81c0\u9968\u66be\u8c5a\u7a80",tuo:"\u62d6\u6258\u8131\u9e35\u9640\u9a6e\u9a7c\u692d\u59a5\u62d3\u553e\u4e47\u4f57\u5768\u5eb9\u6cb1\u67dd\u7823\u7ba8\u8204\u8dce\u9f0d",wa:"\u6316\u54c7\u86d9\u6d3c\u5a03\u74e6\u889c\u4f64\u5a32\u817d",wai:"\u6b6a\u5916",wan:"\u8c4c\u5f2f\u6e7e\u73a9\u987d\u4e38\u70f7\u5b8c\u7897\u633d\u665a\u7696\u60cb\u5b9b\u5a49\u4e07\u8155\u525c\u8284\u82cb\u83c0\u7ea8\u7efe\u742c\u8118\u7579\u873f\u7ba2",wang:"\u6c6a\u738b\u4ea1\u6789\u7f51\u5f80\u65fa\u671b\u5fd8\u5984\u7f54\u5c22\u60d8\u8f8b\u9b4d",wei:"\u5a01\u5dcd\u5fae\u5371\u97e6\u8fdd\u6845\u56f4\u552f\u60df\u4e3a\u6f4d\u7ef4\u82c7\u840e\u59d4\u4f1f\u4f2a\u5c3e\u7eac\u672a\u851a\u5473\u754f\u80c3\u5582\u9b4f\u4f4d\u6e2d\u8c13\u5c09\u6170\u536b\u502d\u504e\u8bff\u9688\u8473\u8587\u5e0f\u5e37\u5d34\u5d6c\u7325\u732c\u95f1\u6ca9\u6d27\u6da0\u9036\u5a13\u73ae\u97ea\u8ece\u709c\u7168\u71a8\u75ff\u8249\u9c94",wen:"\u761f\u6e29\u868a\u6587\u95fb\u7eb9\u543b\u7a33\u7d0a\u95ee\u520e\u6120\u960c\u6c76\u74ba\u97eb\u6b81\u96ef",weng:"\u55e1\u7fc1\u74ee\u84ca\u8579",wo:"\u631d\u8717\u6da1\u7a9d\u6211\u65a1\u5367\u63e1\u6c83\u83b4\u5e44\u6e25\u674c\u809f\u9f8c",wu:"\u5deb\u545c\u94a8\u4e4c\u6c61\u8bec\u5c4b\u65e0\u829c\u68a7\u543e\u5434\u6bcb\u6b66\u4e94\u6342\u5348\u821e\u4f0d\u4fae\u575e\u620a\u96fe\u6664\u7269\u52ff\u52a1\u609f\u8bef\u5140\u4ef5\u9622\u90ac\u572c\u82b4\u5e91\u6003\u5fe4\u6d6f\u5be4\u8fd5\u59a9\u9a9b\u727e\u7110\u9e49\u9e5c\u8708\u92c8\u9f2f",xi:"\u6614\u7199\u6790\u897f\u7852\u77fd\u6670\u563b\u5438\u9521\u727a\u7a00\u606f\u5e0c\u6089\u819d\u5915\u60dc\u7184\u70ef\u6eaa\u6c50\u7280\u6a84\u88ad\u5e2d\u4e60\u5ab3\u559c\u94e3\u6d17\u7cfb\u9699\u620f\u7ec6\u50d6\u516e\u96b0\u90d7\u831c\u8478\u84f0\u595a\u550f\u5f99\u9969\u960b\u6d60\u6dc5\u5c63\u5b09\u73ba\u6a28\u66e6\u89cb\u6b37\u71b9\u798a\u79a7\u94b8\u7699\u7a78\u8725\u87cb\u823e\u7fb2\u7c9e\u7fd5\u91af\u9f37",xia:"\u778e\u867e\u5323\u971e\u8f96\u6687\u5ce1\u4fa0\u72ed\u4e0b\u53a6\u590f\u5413\u6380\u846d\u55c4\u72ce\u9050\u7455\u7856\u7615\u7f45\u9ee0",xian:"\u9528\u5148\u4ed9\u9c9c\u7ea4\u54b8\u8d24\u8854\u8237\u95f2\u6d8e\u5f26\u5acc\u663e\u9669\u73b0\u732e\u53bf\u817a\u9985\u7fa1\u5baa\u9677\u9650\u7ebf\u51bc\u85d3\u5c98\u7303\u66b9\u5a34\u6c19\u7946\u9e47\u75eb\u86ac\u7b45\u7c7c\u9170\u8df9",xiang:"\u76f8\u53a2\u9576\u9999\u7bb1\u8944\u6e58\u4e61\u7fd4\u7965\u8be6\u60f3\u54cd\u4eab\u9879\u5df7\u6a61\u50cf\u5411\u8c61\u8297\u8459\u9977\u5ea0\u9aa7\u7f03\u87d3\u9c9e\u98e8",xiao:"\u8427\u785d\u9704\u524a\u54ee\u56a3\u9500\u6d88\u5bb5\u6dc6\u6653\u5c0f\u5b5d\u6821\u8096\u5578\u7b11\u6548\u54d3\u54bb\u5d24\u6f47\u900d\u9a81\u7ee1\u67ad\u67b5\u7b71\u7bab\u9b48",xie:"\u6954\u4e9b\u6b47\u874e\u978b\u534f\u631f\u643a\u90aa\u659c\u80c1\u8c10\u5199\u68b0\u5378\u87f9\u61c8\u6cc4\u6cfb\u8c22\u5c51\u5055\u4eb5\u52f0\u71ee\u85a4\u64b7\u5ee8\u7023\u9082\u7ec1\u7f2c\u69ad\u698d\u6b59\u8e9e",xin:"\u85aa\u82af\u950c\u6b23\u8f9b\u65b0\u5ffb\u5fc3\u4fe1\u8845\u56df\u99a8\u8398\u6b46\u94fd\u946b",xing:"\u661f\u8165\u7329\u60fa\u5174\u5211\u578b\u5f62\u90a2\u884c\u9192\u5e78\u674f\u6027\u59d3\u9649\u8347\u8365\u64e4\u60bb\u784e",xiong:"\u5144\u51f6\u80f8\u5308\u6c79\u96c4\u718a\u828e",xiu:"\u4f11\u4fee\u7f9e\u673d\u55c5\u9508\u79c0\u8896\u7ee3\u83a0\u5cab\u9990\u5ea5\u9e3a\u8c85\u9af9",xu:"\u589f\u620c\u9700\u865a\u5618\u987b\u5f90\u8bb8\u84c4\u9157\u53d9\u65ed\u5e8f\u755c\u6064\u7d6e\u5a7f\u7eea\u7eed\u8bb4\u8be9\u5729\u84ff\u6035\u6d2b\u6e86\u987c\u6829\u7166\u7809\u76f1\u80e5\u7cc8\u9191",xuan:"\u8f69\u55a7\u5ba3\u60ac\u65cb\u7384\u9009\u7663\u7729\u7eda\u5107\u8c16\u8431\u63ce\u9994\u6ceb\u6d35\u6e32\u6f29\u7487\u6966\u6684\u70ab\u714a\u78b9\u94c9\u955f\u75c3",xue:"\u9774\u859b\u5b66\u7a74\u96ea\u8840\u5671\u6cf6\u9cd5",xun:"\u52cb\u718f\u5faa\u65ec\u8be2\u5bfb\u9a6f\u5de1\u6b89\u6c5b\u8bad\u8baf\u900a\u8fc5\u5dfd\u57d9\u8340\u85b0\u5ccb\u5f87\u6d54\u66db\u7aa8\u91ba\u9c9f",ya:"\u538b\u62bc\u9e26\u9e2d\u5440\u4e2b\u82bd\u7259\u869c\u5d16\u8859\u6daf\u96c5\u54d1\u4e9a\u8bb6\u4f22\u63e0\u5416\u5c88\u8fd3\u5a05\u740a\u6860\u6c29\u7811\u775a\u75d6",yan:"\u7109\u54bd\u9609\u70df\u6df9\u76d0\u4e25\u7814\u8712\u5ca9\u5ef6\u8a00\u989c\u960e\u708e\u6cbf\u5944\u63a9\u773c\u884d\u6f14\u8273\u5830\u71d5\u538c\u781a\u96c1\u5501\u5f66\u7130\u5bb4\u8c1a\u9a8c\u53a3\u9765\u8d5d\u4fe8\u5043\u5156\u8ba0\u8c33\u90fe\u9122\u82ab\u83f8\u5d26\u6079\u95eb\u960f\u6d07\u6e6e\u6edf\u598d\u5ae3\u7430\u664f\u80ed\u814c\u7131\u7f68\u7b75\u917d\u9b47\u990d\u9f39",yang:"\u6b83\u592e\u9e2f\u79e7\u6768\u626c\u4f6f\u75a1\u7f8a\u6d0b\u9633\u6c27\u4ef0\u75d2\u517b\u6837\u6f3e\u5f89\u600f\u6cf1\u7080\u70ca\u6059\u86d8\u9785",yao:"\u9080\u8170\u5996\u7476\u6447\u5c27\u9065\u7a91\u8c23\u59da\u54ac\u8200\u836f\u8981\u8000\u592d\u723b\u5406\u5d3e\u5fad\u7039\u5e7a\u73e7\u6773\u66dc\u80b4\u9e5e\u7a88\u7e47\u9cd0",ye:"\u6930\u564e\u8036\u7237\u91ce\u51b6\u4e5f\u9875\u6396\u4e1a\u53f6\u66f3\u814b\u591c\u6db2\u8c12\u90ba\u63f6\u9980\u6654\u70e8\u94d8",yi:"\u4e00\u58f9\u533b\u63d6\u94f1\u4f9d\u4f0a\u8863\u9890\u5937\u9057\u79fb\u4eea\u80f0\u7591\u6c82\u5b9c\u59e8\u5f5d\u6905\u8681\u501a\u5df2\u4e59\u77e3\u4ee5\u827a\u6291\u6613\u9091\u5c79\u4ebf\u5f79\u81c6\u9038\u8084\u75ab\u4ea6\u88d4\u610f\u6bc5\u5fc6\u4e49\u76ca\u6ea2\u8be3\u8bae\u8c0a\u8bd1\u5f02\u7ffc\u7fcc\u7ece\u5208\u5293\u4f7e\u8bd2\u572a\u572f\u57f8\u61ff\u82e1\u858f\u5f08\u5955\u6339\u5f0b\u5453\u54a6\u54bf\u566b\u5cc4\u5db7\u7317\u9974\u603f\u6021\u6092\u6f2a\u8fe4\u9a7f\u7f22\u6baa\u8d3b\u65d6\u71a0\u9487\u9552\u9571\u75cd\u7617\u7654\u7fca\u8864\u8734\u8223\u7fbf\u7ff3\u914f\u9edf",yin:"\u8335\u836b\u56e0\u6bb7\u97f3\u9634\u59fb\u541f\u94f6\u6deb\u5bc5\u996e\u5c39\u5f15\u9690\u5370\u80e4\u911e\u5819\u831a\u5591\u72fa\u5924\u6c24\u94df\u763e\u8693\u972a\u9f88",ying:"\u82f1\u6a31\u5a74\u9e70\u5e94\u7f28\u83b9\u8424\u8425\u8367\u8747\u8fce\u8d62\u76c8\u5f71\u9896\u786c\u6620\u5b34\u90e2\u8314\u83ba\u8426\u6484\u5624\u81ba\u6ee2\u6f46\u701b\u745b\u748e\u6979\u9e66\u763f\u988d\u7f42",yo:"\u54df\u5537",yong:"\u62e5\u4f63\u81c3\u75c8\u5eb8\u96cd\u8e0a\u86f9\u548f\u6cf3\u6d8c\u6c38\u607f\u52c7\u7528\u4fd1\u58c5\u5889\u6175\u9095\u955b\u752c\u9cd9\u9954",you:"\u5e7d\u4f18\u60a0\u5fe7\u5c24\u7531\u90ae\u94c0\u72b9\u6cb9\u6e38\u9149\u6709\u53cb\u53f3\u4f51\u91c9\u8bf1\u53c8\u5e7c\u5363\u6538\u4f91\u83b8\u5466\u56ff\u5ba5\u67da\u7337\u7256\u94d5\u75a3\u8763\u9c7f\u9edd\u9f2c",yu:"\u8fc2\u6de4\u4e8e\u76c2\u6986\u865e\u611a\u8206\u4f59\u4fde\u903e\u9c7c\u6109\u6e1d\u6e14\u9685\u4e88\u5a31\u96e8\u4e0e\u5c7f\u79b9\u5b87\u8bed\u7fbd\u7389\u57df\u828b\u90c1\u5401\u9047\u55bb\u5cea\u5fa1\u6108\u6b32\u72f1\u80b2\u8a89\u6d74\u5bd3\u88d5\u9884\u8c6b\u9a6d\u79ba\u6bd3\u4f1b\u4fe3\u8c00\u8c15\u8438\u84e3\u63c4\u5581\u5704\u5709\u5d5b\u72f3\u996b\u5ebe\u9608\u59aa\u59a4\u7ea1\u745c\u6631\u89ce\u8174\u6b24\u65bc\u715c\u71e0\u807f\u94b0\u9e46\u7610\u7600\u7ab3\u8753\u7afd\u8201\u96e9\u9f89",yuan:"\u9e33\u6e0a\u51a4\u5143\u57a3\u8881\u539f\u63f4\u8f95\u56ed\u5458\u5706\u733f\u6e90\u7f18\u8fdc\u82d1\u613f\u6028\u9662\u586c\u6c85\u5a9b\u7457\u6a7c\u7230\u7722\u9e22\u8788\u9f0b",yue:"\u66f0\u7ea6\u8d8a\u8dc3\u94a5\u5cb3\u7ca4\u6708\u60a6\u9605\u9fa0\u6a3e\u5216\u94ba",yun:"\u8018\u4e91\u90e7\u5300\u9668\u5141\u8fd0\u8574\u915d\u6655\u97f5\u5b55\u90d3\u82b8\u72c1\u607d\u7ead\u6b92\u6600\u6c32",za:"\u531d\u7838\u6742\u62f6\u5482",zai:"\u683d\u54c9\u707e\u5bb0\u8f7d\u518d\u5728\u54b1\u5d3d\u753e",zan:"\u6512\u6682\u8d5e\u74d2\u661d\u7c2a\u7ccc\u8db1\u933e",zang:"\u8d43\u810f\u846c\u5958\u6215\u81e7",zao:"\u906d\u7cdf\u51ff\u85fb\u67a3\u65e9\u6fa1\u86a4\u8e81\u566a\u9020\u7682\u7076\u71e5\u5523\u7f2b",ze:"\u8d23\u62e9\u5219\u6cfd\u4ec4\u8d5c\u5567\u8fee\u6603\u7b2e\u7ba6\u8234",zei:"\u8d3c",zen:"\u600e\u8c2e",zeng:"\u589e\u618e\u66fe\u8d60\u7f2f\u7511\u7f7e\u9503",zha:"\u624e\u55b3\u6e23\u672d\u8f67\u94e1\u95f8\u7728\u6805\u69a8\u548b\u4e4d\u70b8\u8bc8\u63f8\u5412\u54a4\u54f3\u600d\u781f\u75c4\u86b1\u9f44",zhai:"\u6458\u658b\u5b85\u7a84\u503a\u5be8\u7826",zhan:"\u77bb\u6be1\u8a79\u7c98\u6cbe\u76cf\u65a9\u8f97\u5d2d\u5c55\u8638\u6808\u5360\u6218\u7ad9\u6e5b\u7efd\u8c35\u640c\u65c3",zhang:"\u6a1f\u7ae0\u5f70\u6f33\u5f20\u638c\u6da8\u6756\u4e08\u5e10\u8d26\u4ed7\u80c0\u7634\u969c\u4ec9\u9123\u5e5b\u5d82\u7350\u5adc\u748b\u87d1",zhao:"\u62db\u662d\u627e\u6cbc\u8d75\u7167\u7f69\u5146\u8087\u53ec\u722a\u8bcf\u68f9\u948a\u7b0a",zhe:"\u906e\u6298\u54f2\u86f0\u8f99\u8005\u9517\u8517\u8fd9\u6d59\u8c2a\u966c\u67d8\u8f84\u78d4\u9e67\u891a\u8707\u8d6d",zhen:"\u73cd\u659f\u771f\u7504\u7827\u81fb\u8d1e\u9488\u4fa6\u6795\u75b9\u8bca\u9707\u632f\u9547\u9635\u7f1c\u6862\u699b\u8f78\u8d48\u80d7\u6715\u796f\u755b\u9e29",zheng:"\u84b8\u6323\u7741\u5f81\u72f0\u4e89\u6014\u6574\u62ef\u6b63\u653f\u5e27\u75c7\u90d1\u8bc1\u8be4\u5ce5\u94b2\u94ee\u7b5d",zhi:"\u829d\u679d\u652f\u5431\u8718\u77e5\u80a2\u8102\u6c41\u4e4b\u7ec7\u804c\u76f4\u690d\u6b96\u6267\u503c\u4f84\u5740\u6307\u6b62\u8dbe\u53ea\u65e8\u7eb8\u5fd7\u631a\u63b7\u81f3\u81f4\u7f6e\u5e1c\u5cd9\u5236\u667a\u79e9\u7a1a\u8d28\u7099\u75d4\u6ede\u6cbb\u7a92\u536e\u965f\u90c5\u57f4\u82b7\u646d\u5e19\u5fee\u5f58\u54ab\u9a98\u6809\u67b3\u6800\u684e\u8f75\u8f7e\u6534\u8d3d\u81a3\u7949\u7957\u9ef9\u96c9\u9e37\u75e3\u86ed\u7d77\u916f\u8dd6\u8e2c\u8e2f\u8c78\u89ef",zhong:"\u4e2d\u76c5\u5fe0\u949f\u8877\u7ec8\u79cd\u80bf\u91cd\u4ef2\u4f17\u51a2\u953a\u87bd\u8202\u822f\u8e35",zhou:"\u821f\u5468\u5dde\u6d32\u8bcc\u7ca5\u8f74\u8098\u5e1a\u5492\u76b1\u5b99\u663c\u9aa4\u5544\u7740\u501c\u8bf9\u836e\u9b3b\u7ea3\u80c4\u78a1\u7c40\u8233\u914e\u9cb7",zhu:"\u73e0\u682a\u86db\u6731\u732a\u8bf8\u8bdb\u9010\u7af9\u70db\u716e\u62c4\u77a9\u5631\u4e3b\u8457\u67f1\u52a9\u86c0\u8d2e\u94f8\u7b51\u4f4f\u6ce8\u795d\u9a7b\u4f2b\u4f8f\u90be\u82ce\u8331\u6d19\u6e1a\u6f74\u9a7a\u677c\u69e0\u6a65\u70b7\u94e2\u75b0\u7603\u86b0\u7afa\u7bb8\u7fe5\u8e85\u9e88",zhua:"\u6293",zhuai:"\u62fd",zhuan:"\u4e13\u7816\u8f6c\u64b0\u8d5a\u7bc6\u629f\u556d\u989b",zhuang:"\u6869\u5e84\u88c5\u5986\u649e\u58ee\u72b6\u4e2c",zhui:"\u690e\u9525\u8ffd\u8d58\u5760\u7f00\u8411\u9a93\u7f12",zhun:"\u8c06\u51c6",zhuo:"\u6349\u62d9\u5353\u684c\u7422\u8301\u914c\u707c\u6d4a\u502c\u8bfc\u5ef4\u855e\u64e2\u555c\u6d5e\u6dbf\u6753\u712f\u799a\u65ab",zi:"\u5179\u54a8\u8d44\u59ff\u6ecb\u6dc4\u5b5c\u7d2b\u4ed4\u7c7d\u6ed3\u5b50\u81ea\u6e0d\u5b57\u8c18\u5d6b\u59ca\u5b73\u7f01\u6893\u8f8e\u8d40\u6063\u7726\u9531\u79ed\u8014\u7b2b\u7ca2\u89dc\u8a3e\u9cbb\u9aed",zong:"\u9b03\u68d5\u8e2a\u5b97\u7efc\u603b\u7eb5\u8159\u7cbd",zou:"\u90b9\u8d70\u594f\u63cd\u9139\u9cb0",zu:"\u79df\u8db3\u5352\u65cf\u7956\u8bc5\u963b\u7ec4\u4fce\u83f9\u5550\u5f82\u9a75\u8e74",zuan:"\u94bb\u7e82\u6525\u7f35",zui:"\u5634\u9189\u6700\u7f6a",zun:"\u5c0a\u9075\u6499\u6a3d\u9cdf",zuo:"\u6628\u5de6\u4f50\u67de\u505a\u4f5c\u5750\u5ea7\u961d\u963c\u80d9\u795a\u9162",cou:"\u85ae\u6971\u8f8f\u8160",nang:"\u652e\u54dd\u56d4\u9995\u66e9",o:"\u5594",dia:"\u55f2",chuai:"\u562c\u81aa\u8e39",cen:"\u5c91\u6d94",diu:"\u94e5",nou:"\u8028",fou:"\u7f36",bia:"\u9adf"}},validation:{isDecimal:function(a){a=a||String(this);var b=/^[0-9]+\.[0-9]+$/;return b.test(a)},isInteger:function(a){a=a||String(this);var b=/^[0-9]+$/;return b.test(a)},isNumber:function(a){a=a||String(this);var b=/^[0-9]+(\.[0-9]+)?$/;return b.test(a)},isQQ:function(a){a=a||String(this);var b=/^[1-9][0-9]{4,10}$/;return b.test(a)},isEnglish:function(a){a=a||String(this);var b=/^[a-zA-Z]+$/;return b.test(a)},isIpV4:function(a){a=a||String(this);var b=/^([0-9]|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.([0-9]|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.([0-9]|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.([0-9]|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])$/;return b.test(a)},isUrl:function(c,b){c=c||String(this);b=b||false;var d=/^\b(((https?|ftp):\/\/)?[-a-z0-9]+(\.[-a-z0-9]+)*\.(?:com|edu|gov|int|mil|net|org|biz|info|name|museum|asia|coop|aero|[a-z][a-z]|((25[0-5])|(2[0-4]\d)|(1\d\d)|([1-9]\d)|\d))\b(\/[-a-z0-9_:\@&?=+,.!\/~%\$]*)?)$/i;var a=/^((https?|ftp):\/\/)(www\.)?\S{0,30}\.\S+$/i;if(a.test(c)&&!b){return true}else{if(d.test(c)&&b){return true}else{return false}}},isEmail:function(a){a=a||String(this);return/^([a-zA-Z0-9_-]{1,16})@([a-zA-Z0-9]{1,9})(\.[a-zA-Z0-9]{1,9}){0,3}(\.(?:com|net|org|edu|gov|mil|cn|us)){1,4}$/.test(a)},isContainsSpecialChar:function(b){if(b){var c=RegExp(/[(\s)(\`)(\~)(\!)(\@)(\#)(\$)(\%)(\^)(\&)(\*)(\()(\))(\-)(\_)(\+)(\=)(\[)(\])(\{)(\})(\|)(\\)(\;)(\:)(\')(\")(\,)(\.)(\/)(\<)(\>)(\?)(\)]+/);var a=RegExp(/[(\·)(\~)(\!)(\¥)(\%)(\……)(\&)(\*)(\()(\))(\——)(\【)(\】)(\;)(\:)(\”)(\“)(\’)(\,)(\《)(\。)(\》)(\?)(\、)(\‘)(\’)]+/);b=b||String(this);return(c.test(b)||a.test(b))}return null},isMobile:function(a){a=a||String(this);var b=a.length;return b==11&&/^1\d{10}$/.test(a)},isTelephone:function(a){a=a||String(this);if(a.match(/^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/)==null){return false}else{return true}},isChinese:function(a){a=a||String(this);return/^[\u4E00-\u9FA5]*$/.test(a)},isCreditCode:function(d){var l=/^[0-9A-Z]+$/;if((d.length!=18)||(l.test(d)==false)){return false}else{var c;var b;var k=0;var m=[1,3,9,27,19,26,16,17,20,29,25,13,8,24,10,30,28];var g="0123456789ABCDEFGHJKLMNPQRTUWXY";for(var f=0;f-1;x--){B.push(b.substr(x,1))}var s=new Array();var a=new Array();var f=new Array();for(var w=0;w"9")&&(i!=17)){return false}else{if(i<17){q[i]=q[i]*f[i]}}}if(m==18){var k=r.substring(6,14);if(!/^[0-9]{8}$/.test(k)){return false}var l,j,o;l=k.substring(0,4);j=k.substring(4,6);o=k.substring(6,8);var g=[31,28,31,30,31,30,31,31,30,31,30,31];if(l<1700||l>2500){return false}if(((l%4==0)&&(l%100!=0))||(l%400==0)){g[1]=29}if(j<1||j>12){return false}if(o<1||o>g[j-1]){return false}for(i=0;i<17;i++){s=s+q[i]}p=h[s%11];if(q[17]!=p){return false}}else{var n=r.substring(6,12);if(!/^[0-9]{6}$/.test(n)){return false}var j,o,l;l=n.substring(0,2);j=n.substring(2,4);o=n.substring(4,6);if(!/^\d{2}$/.test(l)){return false}if(j<1||j>12){return false}if(o<1||o>31){return false}}return true};if(b&&a(b)){if(undefined!=e){var d=undefined,c=0;if(15==b.length){c=b.substring(b.length-1,b.length)}else{if(18==b.length){c=b.substr(b.length-2,1)}}if(0==c%2){d=0}else{d=1}if(e!=d){return false}}return true}return false}},security:{uuid:function(a,d){var c;var f,b,e,c;f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");c=[];b=void 0;d=d||f.length;if(a){b=0;while(bm.length){return{level:"2",desc:"检测提示:您的密码强度较差!"}}if(12>m.length){return{level:"3",desc:"检测提示:您的密码强度良好!"}}if(15>m.length){return{level:"4",desc:"检测提示:您的密码强度很高!"}}if(15<=m.length){return{level:"5",desc:"检测提示:您的密码强度极高!"}}}if(h.test(m)&&g.test(m)||h.test(m)&&n.test(m)||g.test(m)&&n.test(m)){if(8>m.length){return{level:"2",desc:"检测提示:您的密码强度较差!"}}if(12>m.length){return{level:"3",desc:"检测提示:您的密码强度良好!"}}if(15>m.length){return{level:"4",desc:"检测提示:您的密码强度很高!"}}if(15<=m.length){return{level:"4",desc:"检测提示:您的密码强度很高!"}}}if(l.test(m)||k.test(m)||j.test(m)){if(8<=m.length){return{level:"2",desc:"检测提示:您的密码强度较差!"}}}return{level:"1",desc:"检测提示:您的密码过于简单!"}}return{level:"-1",desc:"检测提示:通常您的密码应该在6位以上!"}},random:function(d){var a,c,b=true;if(d){while(b){c=Math.random();if(c>0.1){a=Math.floor(c*Math.pow(10,d));b=false;return a}}}else{while(b){c=Math.random();if(c>0.1){a=Math.floor(c*Math.pow(10,5));b=false;return a}}}},randomBetween:function(d,b){var e;var a;var c;if(d&&b){a=d+Math.floor(Math.random()*(b-d+1));return a}if(!d&&!b){a=Math.floor(Math.random()*100000);return a}if(d){e=100000;a=d+Math.floor(Math.random()*e);return a}},hex_sha256:function(n){var l=function(y,w){return((w>>>y)|(w<<(32-y)))};var k=function(w,B,A){return((w&B)^(~w&A))};var o=function(w,B,A){return((w&B)^(w&A)^(B&A))};var e=function(w){return(l(2,w)^l(13,w)^l(22,w))};var d=function(w){return(l(6,w)^l(11,w)^l(25,w))};var h=function(w){return(l(7,w)^l(18,w)^(w>>>3))};var g=function(w){return(l(17,w)^l(19,w)^(w>>>10))};var s=function(w,x){return(w[x&15]+=g(w[(x+14)&15])+w[(x+9)&15]+h(w[(x+1)&15]))};var q=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298);var u,f,r;var c="0123456789abcdef";var p=function(w,B){var A=(w&65535)+(B&65535);var z=(w>>16)+(B>>16)+(A>>16);return(z<<16)|(A&65535)};var m=function(){u=new Array(8);f=new Array(2);r=new Array(64);f[0]=f[1]=0;u[0]=1779033703;u[1]=3144134277;u[2]=1013904242;u[3]=2773480762;u[4]=1359893119;u[5]=2600822924;u[6]=528734635;u[7]=1541459225};var v=function(){var I,H,G,F,D,B,A,z,E,C;var w=new Array(16);I=u[0];H=u[1];G=u[2];F=u[3];D=u[4];B=u[5];A=u[6];z=u[7];for(var y=0;y<16;y++){w[y]=((r[(y<<2)+3])|(r[(y<<2)+2]<<8)|(r[(y<<2)+1]<<16)|(r[y<<2]<<24))}for(var x=0;x<64;x++){E=z+d(D)+k(D,B,A)+q[x];if(x<16){E+=w[x]}else{E+=s(w,x)}C=e(I)+o(I,H,G);z=A;A=B;B=D;D=p(F,E);F=G;G=H;H=I;I=p(E,C)}u[0]+=I;u[1]+=H;u[2]+=G;u[3]+=F;u[4]+=D;u[5]+=B;u[6]+=A;u[7]+=z};var b=function(B,z){var y,x,C=0;x=((f[0]>>3)&63);var A=(z&63);if((f[0]+=(z<<3))<(z<<3)){f[1]++}f[1]+=(z>>29);for(y=0;y+63>3)&63);r[w++]=128;if(w<=56){for(var x=w;x<56;x++){r[x]=0}}else{for(var x=w;x<64;x++){r[x]=0}v();for(var x=0;x<56;x++){r[x]=0}}r[56]=(f[1]>>>24)&255;r[57]=(f[1]>>>16)&255;r[58]=(f[1]>>>8)&255;r[59]=f[1]&255;r[60]=(f[0]>>>24)&255;r[61]=(f[0]>>>16)&255;r[62]=(f[0]>>>8)&255;r[63]=f[0]&255;v()};var j=function(){var w=new String();for(var y=0;y<8;y++){for(var x=28;x>=0;x-=4){w+=c.charAt((u[y]>>>x)&15)}}return w};m();b(n,n.length);a();return j()},base64_decode:function(b){var a="";var m,k,h;var l,j,g,f;var c=0;var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var e=function(n){var o="";var p=0;var q=c1=c2=0;while(p191)&&(q<224)){c2=n.charCodeAt(p+1);o+=String.fromCharCode(((q&31)<<6)|(c2&63));p+=2}else{c2=n.charCodeAt(p+1);c3=n.charCodeAt(p+2);o+=String.fromCharCode(((q&15)<<12)|((c2&63)<<6)|(c3&63));p+=3}}}return o};b=b.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(c>4);k=((j&15)<<4)|(g>>2);h=((g&3)<<6)|f;a=a+String.fromCharCode(m);if(g!=64){a=a+String.fromCharCode(k)}if(f!=64){a=a+String.fromCharCode(h)}}a=e(a);return a},base64_encode:function(c){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var b=function(p){p=p.replace(/\r\n/g,"\n");var o="";for(var r=0;r127)&&(q<2048)){o+=String.fromCharCode((q>>6)|192);o+=String.fromCharCode((q&63)|128)}else{o+=String.fromCharCode((q>>12)|224);o+=String.fromCharCode(((q>>6)&63)|128);o+=String.fromCharCode((q&63)|128)}}}return o};var a="";var m,k,h,l,j,g,f;var d=0;c=b(c);while(d>2;j=((m&3)<<4)|(k>>4);g=((k&15)<<2)|(h>>6);f=h&63;if(isNaN(k)){g=f=64}else{if(isNaN(h)){f=64}}a=a+e.charAt(l)+e.charAt(j)+e.charAt(g)+e.charAt(f)}return a},hex_sha1:function(d){var k=0;var h=8;var j=function(n){var m=k?"0123456789ABCDEF":"0123456789abcdef";var o="";for(var l=0;l>2]>>((3-l%4)*8+4))&15)+m.charAt((n[l>>2]>>((3-l%4)*8))&15)}return o};var e=function(l,m){return(l<>>(32-m))};var b=function(B,s){B[s>>5]|=128<<(24-s%32);B[((s+64>>9)<<4)+15]=s;var C=Array(80);var A=1732584193;var z=-271733879;var y=-1732584194;var v=271733878;var u=-1009589776;for(var p=0;p>5]|=(o.charCodeAt(m/h)&l)<<(24-m%32)}return n};var f=function(l,o){var n=(l&65535)+(o&65535);var m=(l>>16)+(o>>16)+(n>>16);return(m<<16)|(n&65535)};var a=function(m,l,o,n){if(m<20){return(l&o)|((~l)&n)}if(m<40){return l^o^n}if(m<60){return(l&o)|(l&n)|(o&n)}return l^o^n};var c=function(l){return(l<20)?1518500249:(l<40)?1859775393:(l<60)?-1894007588:-899497514};return j(b(g(d),d.length*h))},hex_md5:function(d){var j=8;var l=0;var o=function(s){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var v="";for(var q=0;q>2]>>8*(q%4))&255)<<16)|(((s[q+1>>2]>>8*((q+1)%4))&255)<<8)|((s[q+2>>2]>>8*((q+2)%4))&255);for(var p=0;p<4;p++){if(q*8+p*6>s.length*32){v+=b64pad}else{v+=r.charAt((u>>6*(3-p))&63)}}}return v};var b=function(y,u,r,p,w,v){return g(k(g(g(u,y),g(p,v)),w),r)};var h=function(r,q,y,w,p,v,u){return b((q&y)|((~q)&w),r,q,p,v,u)};var c=function(r,q,y,w,p,v,u){return b((q&w)|(y&(~w)),r,q,p,v,u)};var m=function(r,q,y,w,p,v,u){return b(q^y^w,r,q,p,v,u)};var f=function(r,q,y,w,p,v,u){return b(y^(q|(~w)),r,q,p,v,u)};var o=function(s){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var v="";for(var q=0;q>2]>>8*(q%4))&255)<<16)|(((s[q+1>>2]>>8*((q+1)%4))&255)<<8)|((s[q+2>>2]>>8*((q+2)%4))&255);for(var p=0;p<4;p++){if(q*8+p*6>s.length*32){v+=b64pad}else{v+=r.charAt((u>>6*(3-p))&63)}}}return v};var e=function(B,v){B[v>>5]|=128<<((v)%32);B[(((v+64)>>>9)<<4)+14]=v;var A=1732584193;var z=-271733879;var y=-1732584194;var w=271733878;for(var r=0;r>2]>>((p%4)*8+4))&15)+q.charAt((r[p>>2]>>((p%4)*8))&15)}return s};var a=function(s){var r=Array();var p=(1<>5]|=(s.charCodeAt(q/j)&p)<<(q%32)}return r};var g=function(p,s){var r=(p&65535)+(s&65535);var q=(p>>16)+(s>>16)+(r>>16);return(q<<16)|(r&65535)};var k=function(p,q){return(p<>>(32-q))};return n(e(a(d),d.length*j))}},extention:{sortBy:function(a,b){if(!Mtils.isString(a)){b=a}if(b==undefined){b=1}else{b=(b)?1:-1}return function(d,c){if(Mtils.isString(a)){if(Mtils.isObject(d)){d=d[a]}if(Mtils.isObject(c)){c=c[a]}}if(dc){return b*1}return 0}},extend:function(){var a,g,b,c,k,h,f=arguments[0]||{},e=1,d=arguments.length,j=false;if(typeof f==="boolean"){j=f;f=arguments[1]||{};e=2}if(!Mtils.isObject(f)){f={}}for(;e0){var a=Math.pow(10,k);if(f>d){h=Number(h.toString().replace(".",""));g=Number(g.toString().replace(".",""))*a}else{h=Number(h.toString().replace(".",""))*a;g=Number(g.toString().replace(".",""))}}else{h=Number(h.toString().replace(".",""));g=Number(g.toString().replace(".",""))}return(h+g)/b},accSub:function(f,d){var c,b,a,h;try{c=f.toString().split(".")[1].length}catch(g){c=0}try{b=d.toString().split(".")[1].length}catch(g){b=0}a=Math.pow(10,Math.max(c,b));h=(c>=b)?c:b;return((f*a-d*a)/a).toFixed(h)},accMul:function(d,b){var a=0,f=d.toString(),c=b.toString();try{a+=f.split(".")[1].length}catch(g){}try{a+=c.split(".")[1].length}catch(g){}return Number(f.replace(".",""))*Number(c.replace(".",""))/Math.pow(10,a)},accDiv:function(d,c){var g=0,f=0,b,a;try{g=d.toString().split(".")[1].length}catch(h){}try{f=c.toString().split(".")[1].length}catch(h){}b=Number(d.toString().replace(".",""));a=Number(c.toString().replace(".",""));return(b/a)*Math.pow(10,f-g)},formatDate:function(d,c){if(this!==Mtils.extention){c=d||"yyyy-MM-dd";d=this}else{c=c||"yyyy-MM-dd"}var b=new Date(d);var e={"M+":b.getMonth()+1,"d+":b.getDate(),"h+":b.getHours(),"m+":b.getMinutes(),"s+":b.getSeconds(),"q+":Math.floor((b.getMonth()+3)/3),S:b.getMilliseconds()};if(/(y+)/.test(c)){c=c.replace(RegExp.$1,(b.getFullYear()+"").substr(4-RegExp.$1.length))}for(var a in e){if(new RegExp("("+a+")").test(c)){c=c.replace(RegExp.$1,RegExp.$1.length==1?e[a]:("00"+e[a]).substr((""+e[a]).length))}}return c},uniqueArray:function(a){var d=a||this;if(undefined===d||null===d||0===d.length){return[]}d.sort();var c=[d[0]];for(var b=1;b-1,presto:a.indexOf("Presto")>-1,webKit:a.indexOf("AppleWebKit")>-1,gecko:a.indexOf("Firefox")>-1,mobile:!!a.match(/AppleWebKit.*Mobile.*/),ios:!!a.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:a.indexOf("Android")>-1||a.indexOf("Linux")>-1,iPhone:a.indexOf("iPhone")>-1,iPad:a.indexOf("iPad")>-1,webApp:a.indexOf("Safari")>-1,weChat:a.indexOf("MicroMessenger")>-1}},getUrlParam:function(d){var a=new Object();if(d){var c=d.split("?")[1];if(c){c=c.split("&");for(var b=0;b1){var d=localStorage.mtilsData||"{}";d=JSON.parse(d);if(!a&&Mtils.utils.isObject(c)&&c[b]&&!d[c[b]]){d[c[b]]=c}else{if(a){d[c[a]]=c}}d[b]=c;localStorage.mtilsData=JSON.stringify(d)}else{var d=localStorage.mtilsData||"{}";d=JSON.parse(d);return d[b]}},copy:function(a){return JSON.parse(JSON.stringify(a))},ChainCallManager:function(){var a=function(){this.methodsRunIndex=0;this.methods=[];this.autoCall=false;this.next=this.callNext=function(b){if(!this.autoCall){this.methodsRunIndex++;if(this.methods[this.methodsRunIndex]){this.methods[this.methodsRunIndex].call(this,b)}}return this};this.then=function(b){if(b&&"function"===typeof(b)){this.methods.push(b)}return this};this.start=function(b){this.autoCall=false;this.methods[this.methodsRunIndex].call(this,b)};this.run=function(d){var b=d||undefined;this.autoCall=true;for(var c=0;c=a){a=0}else{if(0b.getDate()){a--}}else{if(d.getMonth()>=b.getMonth()){a--}}}}return a+""}catch(c){console.log("Invalid Date, please input like '1992-08-12' or '1992/12/12'");return""}}return""},setObjectPropertyVal:function(obj,propName,propVal,isCreate){if(obj&&propName){if(propName.length>0&&"object"==typeof obj){var props=propName.split("."),varStr="obj";for(var i=0,attr;i0&&"object"==typeof obj){var props=propName.split("."),varStr="obj";for(var i=0;i0&&d<=20?d:2;b=parseFloat((b+"").replace(/[^\d\.-]/g,"")).toFixed(d)+"";var a=b.split(".")[0].split("").reverse(),c=b.split(".")[1];t="";for(i=0;ib){return a.substr(0,b)+"..."}else{return a}}}};window.ChainCallManager=Mtils.ChainCallManager=Mtils.utils.ChainCallManager;window.isDefined=Mtils.isDefined=Mtils.utils.isDefined;window.isEmpty=Mtils.isEmpty=Mtils.utils.isEmpty;window.strToJson=Mtils.strToJson=Mtils.extention.strToJson;Mtils.copy=Mtils.utils.copy;Mtils.cache=Mtils.utils.cache;Mtils.makeMap=Mtils.utils.makeMap;Mtils.extend=Mtils.extention.extend;Mtils.findInArray=Mtils.utils.findInArray;Mtils.getById=Mtils.utils.getById;Mtils.isObject=Mtils.extention.isObject;Mtils.isArray=Mtils.extention.isArray;Mtils.isNaN=Mtils.extention.isNaN;Mtils.isString=Mtils.extention.isString;Mtils.isDate=Mtils.extention.isDate;Mtils.isFunction=Mtils.extention.isFunction;Mtils.isNumber=Mtils.extention.isNumber;Mtils.isWindow=Mtils.extention.isWindow;Mtils.isFile=Mtils.extention.isFile;Mtils.isFormData=Mtils.extention.isFormData;Mtils.isRegExp=Mtils.extention.isRegExp;Mtils.unique=Mtils.extention.uniqueArray;Mtils.includes=Mtils.extention.includes;Mtils.clearEmpty=Mtils.utils.clearEmpty;Mtils.uuid=Mtils.security.uuid;if(!Mtils.isEmpty(Math)){Math.accAdd=Mtils.extention.accAdd}if(!Mtils.isEmpty(Math)){Math.accSub=Mtils.extention.accSub}if(!Mtils.isEmpty(Math)){Math.accMul=Mtils.extention.accMul}if(!Mtils.isEmpty(Math)){Math.accDiv=Mtils.extention.accDiv}if(Mtils.isEmpty(Date.prototype.formatDate)){Date.prototype.formatDate=Date.prototype.format=Mtils.extention.formatDate}if(Mtils.isEmpty(Date.prototype.now)){Date.prototype.now=Mtils.now=Mtils.extention.now}if(Mtils.isEmpty(String.prototype.rtrim)){String.prototype.rtrim=Mtils.extention.rtrim}if(Mtils.isEmpty(String.prototype.ltrim)){String.prototype.ltrim=Mtils.extention.ltrim}if(Mtils.isEmpty(String.prototype.atrim)){String.prototype.atrim=Mtils.extention.atrim}if(Mtils.isEmpty(String.prototype.replaceAll)){String.prototype.replaceAll=Mtils.extention.replaceAll}if(Mtils.isEmpty(String.prototype.includes)){String.prototype.includes=Mtils.extention.includes}; \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.pal.process.publish.radio.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.pal.process.publish.radio.js new file mode 100644 index 00000000..f2649dc4 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.pal.process.publish.radio.js @@ -0,0 +1,1223 @@ +var sid; +var teamId; +var wsId; +var processInstId; +var initTree; +var editPerm = false; +var closeFormPage = false; +var searchType; +//统一中文变量 +var varDutyDept = "责任部门"; +var varDutyUser = "责任人"; +$(document).ready(function(){ + // $('#alertMsg').css('background', '#fff'); + $('#OPTIONTYPE_0').closest('td').width('10%'); + $('#OPTIONTYPE_1').closest('td').width('10%'); + initParam(); + initHtml(); + initContentData(); + // listenCloseEvent();// 关闭窗口执行,关闭窗口/刷新都会造成流程实例被删除,注释掉 +}) + +var resizeWaiter = false; +$(window).resize(function() { + if(!resizeWaiter){ + setTimeout(function(){ + resizeWaiter = true; + if (!$("#publisher_new_tr").is(':hidden')) { + initWidth(true, 'new'); + } + if (!$("#publisher_change_tr").is(':hidden')) { + initWidth(true, 'change'); + } + if (!$("#publisher_stop_tr").is(':hidden')) { + initWidth(true, 'stop'); + } + resizeWaiter = false; + }, 500); + } +}); + +// 初始化自定义内容,不能写到html 文件中,表单会被平台自动调整的不成样子 +function initHtml() { + var dialogHtml = ''; + dialogHtml += ''; + $('body').append(dialogHtml); + + $('#publisher_new_div').html('
'); + $('#publisher_change_div').html('
'); + $('#publisher_stop_div').html('
'); + + var newHtml = ''; + newHtml += ''; + newHtml += '
'; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += ''; + newHtml += '
'; + newHtml += '
'; + newHtml += ''; + newHtml += '
'; + newHtml += '
'; + newHtml += '
流程手册
'; + newHtml += '
'; + + var changeHtml = ''; + changeHtml += ''; + changeHtml += '
'; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += ''; + changeHtml += '
'; + changeHtml += '
'; + changeHtml += ''; + changeHtml += '
'; + changeHtml += '
'; + changeHtml += '' + changeHtml += '' + changeHtml += '
流程手册
'; + changeHtml += '
'; + + var stopHtml = ''; + stopHtml += ''; + stopHtml += '
'; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += ''; + stopHtml += '
'; + stopHtml += '
'; + stopHtml += ''; + stopHtml += '
'; + stopHtml += '
'; + stopHtml += '
流程手册
'; + stopHtml += '
'; + + $('#contentDiv1').append(newHtml); + $('#contentDiv2').append(changeHtml); + $('#contentDiv3').append(stopHtml); +} + +// 初始化 +function initParam() { + teamId = $("#TEAMID").val(); + sid = $("#sid").val(); + wsId = $("#WSID").val(); + processInstId = $("#processInstId").val(); +} + +// 初始化内容数据 +function initContentData() { + var param = { + cmd: 'com.actionsoft.apps.coe.pal.publisher_data_query', + processInstId: processInstId, + wsId : wsId, + sid: sid + }; + $.ajax({ + url : "./jd", + type : "POST", + dataType : "JSON", + data : param, + success : function(r) { + var isEnd = r.data.isEnd; + var proNumber = r.data.proNumber; + if (proNumber) { + editPerm = proNumber; + } + closeFormPage = r.data.closeFormPage; + var newData = r.data.newData; + var changeData = r.data.changeData; + var stopData = r.data.stopData; + var checkImg = '../apps/_bpm.portal/img/icheck_checkbox_check.png'; + var uncheckImg = '../apps/_bpm.portal/img/icheck_checkbox_uncheck.png'; + if (!$.isEmptyObject(newData)) { + $('#OPTIONTYPE_0').prev('img').attr('src', checkImg); + $("#OPTIONTYPE_0").check("option","checked", true); + dealPublishCheck(true, 'new');// 显示 + // 更新数据 + initPublishData(newData, 'new', isEnd, proNumber); + } else { + $("#OPTIONTYPE_0").check("option","checked", false); + $('#OPTIONTYPE_0').prev('img').attr('src', uncheckImg); + } + if (!$.isEmptyObject(changeData)) { + $('#OPTIONTYPE_1').prev('img').attr('src', checkImg); + $("#OPTIONTYPE_1").check("option","checked", true); + dealPublishCheck(true, 'change'); + initPublishData(changeData, 'change', isEnd, proNumber); + } else { + $("#OPTIONTYPE_1").check("option","checked", false); + $('#OPTIONTYPE_1').prev('img').attr('src', uncheckImg); + } + if (!$.isEmptyObject(stopData)) { + $('#OPTIONTYPE_2').prev('img').attr('src', checkImg); + $("#OPTIONTYPE_2").check("option","checked", true); + dealPublishCheck(true, 'stop'); + initPublishData(stopData, 'stop', isEnd, proNumber); + } else { + $("#OPTIONTYPE_2").check("option","checked", false); + $('#OPTIONTYPE_2').prev('img').attr('src', uncheckImg); + } + } + + }); +} + +var changeData; +var changeOption; +/** + * 初始化数据 + * @param data 源数据 + * @param type 类型 + * @param isEnd 流程是否结束 + * @param proNumber 是不是在第一个发起节点 + * @returns + */ +function initPublishData(data, type, isEnd, proNumber) { + if (type == 'new') { + var fileName = data.publishFileName + ' V' + data.fileVersion + '.0'; + var aHtml = '' + fileName + ''; + $('#publisher_new_file_name').children('span.file_name').html(aHtml); + $('#publisher_new_file_id').val(data.publishFileId); + if (data.taskId != undefined && data.taskId != '') { + var reportName = fileName + "-流程手册"; + var reportHtml = '' + reportName + ''; + $('#publisher_new_report_name').html(reportHtml); + } else { + $('#publisher_new_report_name').html('无流程手册'); + } + $('#publisher_new_report_id').text(data.taskId); + $('#publisher_new_desc').val(data.publishDesc); + if (!proNumber) { + $('#publisher_new').find('input').attr("disabled", true); + $('#publisher_new').find('textarea').attr("disabled", true); + $('#publish_new_file_query').prop('onclick', ""); + } + } + if (type == 'change') { + changeData = data; + // 变更文件处理 + var sourceFileName = data.changeFileName + ' V' + data.fileVersion + '.0'; + $('#publisher_change_source_file_name').children('span.file_name').html(sourceFileName); + $('#publisher_change_source_file_id').val(data.changeFileId); + + // 变更目标文件处理 + var targetFileName = ""; + if (data.changedFileNameNew != undefined && data.changedFileNameNew != '') { + targetFileName = data.changedFileNameNew + ' V' + data.targetFileVersion + '.0'; + } + var targetId = ""; + if (data.changedFileIdNew != undefined && data.changedFileIdNew != '') { + targetId = data.changedFileIdNew; + } + $('#publisher_change_target_file_id').val(targetId); + var taskId = ""; + if (data.taskId != undefined && data.taskId != '') { + taskId = data.taskId; + var reportName = targetFileName + "-流程手册"; + var reportHtml = '' + reportName + ''; + $('#publisher_change_report_name').html(reportHtml); + } else { + $('#publisher_change_report_name').html('无流程手册'); + } + $('#publisher_change_report_id').text(data.taskId); + + // 下选框处理 + if (!proNumber) { + var tempHtml = '' + targetFileName + ''; + $('#select').html(tempHtml); + } else { + $('#select').html(''); + if (data.targetFiles.length > 0) { + var opt1 = { + data : [] + }; + var flag = false; + for (var i = 0; i < data.targetFiles.length; i++) { + var temp = data.targetFiles[i]; + var name = temp.text + ' V' + temp.version + '.0'; + var obj = {id:temp.id, text:name}; + opt1.data.push(obj); + if (targetId == temp.id) { + flag = true; + } + } + changeOption = opt1; + $("#publisher_change_target_file").select2(opt1); + if (flag) { + $("#publisher_change_target_file").val(targetId).trigger("change"); + } else { + // 没有选择的版本时默认第一个为选中,取当前选择的生成流程手册 + initChangedData(changeData, changeOption); + } + // select改变事件 + $('#publisher_change_target_file').on("change", function (e) { + initChangedData(changeData, changeOption);// 初始化变更文件 + }); + } else { + // 无数据,定义为空的select2 + var opt1 = {data : []}; + $("#publisher_change_target_file").select2(opt1); + $('#publisher_change_source_file_id').val(''); + } + $('.select2').width('100%'); + } + // 描述处理 + $('#publisher_change_desc').val(data.changedDesc); + if (!proNumber) { + $('#publisher_change').find('input').attr("disabled", true); + $('#publisher_change').find('textarea').attr("disabled", true); + $('#publish_change_file_query').prop('onclick', ""); + } + } + if (type == 'stop') { + var fileName = data.stopFileName + ' V' + data.fileVersion + '.0'; + var aHtml = '' + fileName + ''; + $('#publisher_stop_file_name').children('span.file_name').html(aHtml); + $('#publisher_stop_file_id').val(data.stopFileId); + if (data.taskId != undefined && data.taskId != '') { + var reportName = fileName + "-流程手册"; + var reportHtml = '' + reportName + ''; + $('#publisher_stop_report_name').html(reportHtml); + } else { + $('#publisher_stop_report_name').html('无流程手册'); + } + $('#publisher_stop_report_id').text(data.taskId); + $('#publisher_stop_desc').val(data.stopDesc); + if (!proNumber) { + $('#publisher_stop').find('input').attr("disabled", true); + $('#publisher_stop').find('textarea').attr("disabled", true); + $('#publish_stop_file_query').prop('onclick', ""); + } + } +} + +// select2改变事件 +function initChangedData(data, opt1) { + var selectedId = $("#publisher_change_target_file").val(); + $('#publisher_change_target_file_id').val(selectedId); + var selectedTaskId = ""; + selectedTaskId = createReport(data.category, data.methodId, selectedId, selectedTaskId); + if (selectedTaskId != '') { + var targetFileName2 = ""; + for(var i = 0; i < opt1.data.length; i++) { + if (opt1.data[i].id == selectedId) { + targetFileName2 = opt1.data[i].text; + break; + } + } + var reportName2 = targetFileName2 + "-流程手册"; + var reportHtml2 = '' + reportName2 + ''; + $('#publisher_change_report_name').html(reportHtml2); + } else { + $('#publisher_change_report_name').html('无流程手册'); + } + $('#publisher_change_report_id').text(selectedTaskId); + +} + +// 打开流程文件查看页面 +function openPortalPage(uuid, taskId) { + var param = { + sid : sid, + cmd : "com.actionsoft.apps.coe.pal.publisher_publish_repository_method_check", + uuid : uuid + } + $.ajax({ + url : "./jd", + type : "POST", + dataType : "JSON", + data : param, + success : function(r) { + if (r.result == 'ok') { + window.open("./w?cmd=com.actionsoft.apps.coe.pal.publisher_publish_file_open&uuid=" + uuid + "&sid=" + sid + "&taskId=" + taskId);// open Windows + } else { + $.simpleAlert(r.msg); + } + } + }); +} + +// 打开流程选择dialog +function openQueryDataDialog(type) { + searchType = type; + $('#treeDataDiv').html('
'); + $('#searchData').html(''); + $("#loadImg").loading({ + description:"加载中", + size:'large', + color:'#000' + }); + $('.awsui-loading').css('position', 'relative'); + $('.awsui-loading').css('top', '60px'); + $("#loading-demo-basic").loading(); + $("#treeDialog").dialog({ + buttons:[ + {text:'确定',cls:"blue",handler:function(){ + if (type == 'new') { + getNewPublishResult(type); + } else if( type == 'change'){ + getChangeResult(type); + } else {// stop + getStopResult(type); + } + }}, + {text:'关闭',handler:function(){ + closeDialog();// 关闭窗口 + }} + ], + onClose:function(){ + $('#autoSearchProcessDiv').empty(); + $('#autoSearchProcessDiv').hide(); + $('#treeDataDiv').empty(); + $('#searchData').empty(); + } + }); + if (type == 'new') { + initPublishSearch(type);// 绑定搜索事件 + getNotPublishTreeData(type); + } else {// stop + initPublishSearch(type);// 绑定搜索事件 + getPublishedTreeData(type); + } +} + +// 获取未发布文件数据结构 +function getNotPublishTreeData(type) { + var param = { + sid : sid, + cmd : "com.actionsoft.apps.coe.pal.publisher_publish_tree_data_query", + teamId: teamId, + wsId: wsId, + type: type, + flag : true + } + $.ajax({ + url : "./jd", + type : "POST", + dataType : "JSON", + data : param, + success : function(r) { + var data = r.data.data; + var setting = { + checkbox: false, + checkInherit: false, + event : { + beforeExpand : loadNewData + }, + dataModel : { + data: data + } + }; + $("#treeDataDiv").empty(); + $('#treeDataDiv').html('
    '); + initTree = awsui.tree.init($("#tree"), setting); + } + }); +} +//加载type为new的树节点 +function loadNewData(treeNode) { + // 如果是父节点并且存在子节点执行加载 + if (treeNode) { + var pid; + if (typeof(treeNode) == "string") { + pid = treeNode; + } else { + pid = treeNode.id; + } + var dataModel = { + url : "./w?sid=" + jQuery("#sid").val() + + "&cmd=com.actionsoft.apps.coe.pal.publisher_publish_tree_data_query&flag=" + false + "&pid=" + pid + + "&wsId=" + wsId + "&type=" + "new" + "&teamId=" + teamId, + method : "POST", + dataType : "json" + } + initTree.refreshNode({ + id : pid, + dataModel : dataModel + }); + var data = initTree.getChildrenByPid(pid); + var newData = []; + for (var i=0;i'; + } else if (hasDutyDept) { + var tempText = '[' + varDutyDept + ':' + data[i].dutyDeptName + ']'; + data[i].name += '   ' + tempText + ''; + } else if (hasDutyUser) { + var tempText = '[' + varDutyUser + ':' + data[i].dutyUserName + ']'; + data[i].name += '   ' + tempText + ''; + } + newData.push(data[i]); + //initTree.refreshNodeById(data[i]); + } + initTree.refreshNode({ + id : pid, + data : newData + }); + } +} + +// 发布类型结果数据回填 +function getNewPublishResult(type) { + var node = initTree.getSelectedNode(); + // 校验 + if (node == undefined) { + $.simpleAlert("请选择资产库文件节点"); + return; + } + if (node.nocheck) { + $.simpleAlert("请选择未发布文件"); + return; + } + // 锁定按钮 + disabledAll(); + $.simpleAlert('正在加载', 'loading'); + var taskId = ""; + // 创建流程手册 + taskId = createReport(node.category, node.method, node.id, taskId); + var data = { + category : node.category, + fileVersion : node.version, + methodId : node.method, + publishDesc : "", + publishFileId : node.id, + // publishFileName : node.name, + publishFileName : node.tempName, + taskId : taskId + } + clearData(type);// 清空 + closeDialog();// 关闭窗口 + initPublishData(data, type, false, true);// 回填值 +} + +//获取已发布文件数据结构 +function getPublishedTreeData(type) { + var param = { + sid : sid, + cmd : "com.actionsoft.apps.coe.pal.publisher_publish_tree_data_query", + teamId: teamId, + wsId: wsId, + type: type, + flag : true + } + $.ajax({ + url : "./jd", + type : "POST", + dataType : "JSON", + data : param, + success : function(r) { + var data = r.data.data; + var setting = { + checkbox: false, + checkInherit: false, + dataModel : { + data: data + } + }; + for (var i=0;i'; + } else if (hasDutyDept) { + var tempText = '[' + varDutyDept + ':' + data[i].dutyDeptName + ']'; + data[i].name += '   ' + tempText + ''; + } else if (hasDutyUser) { + var tempText = '[' + varDutyUser + ':' + data[i].dutyUserName + ']'; + data[i].name += '   ' + tempText + ''; + } + } + $("#treeDataDiv").empty(); + $('#treeDataDiv').html('
      '); + initTree = awsui.tree.init($("#tree"), setting); + } + }); +} + +//变更类型结果数据回填 +function getChangeResult(type) { + var node = initTree.getSelectedNode(); + // 校验 + if (node == undefined) { + $.simpleAlert("请选择资产库文件节点"); + return; + } + if (node.nocheck) { + $.simpleAlert("请选择已发布文件"); + return; + } + if (node.method == "default") { + $.simpleAlert("不允许选择该类型节点"); + return; + } + // 锁定按钮 + disabledAll(); + $.simpleAlert('正在加载', 'loading'); + var notPublishData = []; + // 查询其他未版本 + var param = { + sid : sid, + cmd : "com.actionsoft.apps.coe.pal.publisher_not_publish_version_query", + teamId: teamId, + wsId: wsId, + uuid: node.id + } + $.ajax({ + url : "./jd", + type : "POST", + dataType : "JSON", + async : false, + data : param, + success : function(r) { + notPublishData = r.data.data; + } + }); + var changeFileNewId = ""; + var changeFileNewName = ""; + var changeFileNewVersion = 1; + var data = { + category : node.category, + changeFileId : node.id, + // changeFileName : node.name, + changeFileName : node.tempName, + changedDesc : "", + changedFileIdNew : changeFileNewId, + changedFileNameNew : changeFileNewName, + fileVersion : node.version, + methodId : node.method, + targetCategory: node.category, + targetFileVersion: changeFileNewVersion, + targetFiles: notPublishData, + targetMethodId: node.method + } + clearData(type);// 清空 + closeDialog();// 关闭窗口 + initPublishData(data, type, false, true);// 回填值 +} + +//停用类型结果数据回填 +function getStopResult(type) { + var node = initTree.getSelectedNode(); + // 校验 + if (node == undefined) { + $.simpleAlert("请选择资产库文件节点"); + return; + } + if (node.nocheck) { + $.simpleAlert("请选择已发布文件"); + return; + } + // 锁定按钮 + disabledAll(); + $.simpleAlert('正在加载', 'loading'); + var taskId = ""; + if (node.category == 'process' && node.method != "process.evc" && node.method != 'default') { + // 获取流程手册id + var param = { + sid : sid, + cmd : "com.actionsoft.apps.coe.pal.publisher_output_pr_report_query", + teamId: teamId, + wsId: wsId, + uuid: node.id + } + $.ajax({ + url : "./jd", + type : "POST", + dataType : "JSON", + async : false, + data : param, + success : function(r) { + taskId = r.data.taskId; + } + }); + } + var data = { + category : node.category, + fileVersion : node.version, + methodId : node.method, + stopDesc : "", + stopFileId : node.id, + // stopFileName : node.name, + stopFileName : node.tempName, + taskId : taskId + } + clearData(type);// 清空 + closeDialog();// 关闭窗口 + initPublishData(data, type, false, true);// 回填值 +} + +// 创建流程手册 +function createReport(category, method, uuid, taskId) { + if (category == 'process' && method != "process.evc" && method != 'default') { + var param = { + sid : sid, + cmd : "com.actionsoft.apps.coe.pal.publisher_output_pr_report_create", + teamId: teamId, + wsId: wsId, + uuid: uuid + } + $.ajax({ + url : "./jd", + type : "POST", + dataType : "JSON", + async : false, + data : param, + success : function(r) { + if (r.result == 'ok') { + taskId = r.data.taskId; + } + } + }); + } + return taskId; +} + +// 清空树结构 +function clearTreeData() { + initTree = {}; +} + +// 禁用按钮 +function disabledAll() { + $('#treeDialog').find("div.dialog-button-wrap").find('button:first').attr({"disabled":"disabled"}); +} + +// 关闭模态窗 +function closeDialog() { + $("#treeDialog").dialog("close"); +} + +// 打开流程手册 +function openReportFile(taskId) { + $.simpleAlert("文件正在处理", "loading"); + awsui.ajax.request({ + type: "POST", + url: "./jd?sid=" + sid + "&cmd=com.actionsoft.apps.coe.pal.publisher_publish_output_file_open", + data: {taskId: taskId}, + ok: function(msg) { + $.simpleAlert("close"); + var url = msg.data.url; + if (msg.data.noSupport) { + window.location.href = url; + } else { + window.open(url); + } + }, + err: function(msg) { + $.simpleAlert("close"); + } + }); +} + +// 点击checkbox +function onCheckboxClickEvent(boItemName, $checkbox, val) { + var isCheck = !$checkbox.closest('div').hasClass('checked'); + if (val == '流程文件发布') { + dealPublishCheck(isCheck, 'new'); + } else if (val == '流程文件版本更新') { + dealPublishCheck(isCheck, 'change'); + } else if (val == '流程文件废止') { + dealPublishCheck(isCheck, 'stop'); + } +} + +// 主体内容显示与隐藏 +function dealPublishCheck(isCheck, type) { + if (type == 'new') { + clearData(type); //清空 + isCheck ? $('#publisher_new_tr').show() : $('#publisher_new_tr').hide(); + } else if (type == 'change') { + clearData(type); + isCheck ? $('#publisher_change_tr').show() : $('#publisher_change_tr').hide(); + } else if (type == 'stop') { + clearData(type); + isCheck ? $('#publisher_stop_tr').show() : $('#publisher_stop_tr').hide(); + } + // input宽度设定 + initWidth(isCheck, type); +} + +// 初始化宽度 +function initWidth(isCheck, type) { + if (type == 'new' && isCheck) { + $('#publisher_new_file_name').width($('#publisher_new_file_name').closest('td').width()); + $('#publisher_new_file_name').children('span.file_name').width($('#publisher_new_file_name').width() - 20); + $('#publisher_new_desc').width('86%'); + } + if (type == 'change' && isCheck) { + $('#publisher_change_source_file_name').width($('#publisher_change_source_file_name').closest('td').width()); + $('#publisher_change_source_file_name').children('span.file_name').width($('#publisher_change_source_file_name').width() - 20); + $('.select2').width('100%'); + $('#publisher_change_desc').width('86%'); + } + if (type == 'stop' && isCheck) { + $('#publisher_stop_file_name').width($('#publisher_stop_file_name').closest('td').width()); + $('#publisher_stop_file_name').children('span.file_name').width($('#publisher_stop_file_name').width() - 20); + $('#publisher_stop_desc').width('86%'); + } +} + +// 清空对应模块数据 +function clearData(type) { + if (type == 'new') { + $('#publisher_new_file_name').children('span.file_name').text('点击右侧按钮选择文件'); + $('#publisher_new_file_id').val(''); + $('#publisher_new_report_name').text('无流程手册'); + $('#publisher_new_report_id').text(''); + $('#publisher_new_desc').val(''); + } else if (type == 'change') { + $('#publisher_change_source_file_name').children('span.file_name').text('点击右侧按钮选择文件'); + $('#publisher_change_source_file_id').val(''); + $('#publisher_change_target_file').empty(); + $('#publisher_change_target_file_id').val(''); + $('#publisher_change_report_name').text('无流程手册'); + $('#publisher_change_report_id').text(''); + $('#publisher_change_desc').val(''); + $('#select').html(''); + var opt1 = {data : []}; + $("#publisher_change_target_file").select2(opt1); + } else if (type == 'stop') { + $('#publisher_stop_file_name').children('span.file_name').text('点击右侧按钮选择文件'); + $('#publisher_stop_file_id').val(''); + $('#publisher_stop_report_name').text('无流程手册'); + $('#publisher_stop_report_id').text(''); + $('#publisher_stop_desc').val(''); + } +} + +// 点击办理时的校验+保存字表 +function formSave(isTransact){ + if (!editPerm) {// 只读状态不处理 + return true; + } + if(isTransact) {// 点击办理进行校验 + if ($("#publisher_new_tr").css('display') == 'none' && $("#publisher_change_tr").css('display') == 'none' && $("#publisher_stop_tr").css('display') == 'none'){ + $.simpleAlert('发布内容不能为空', 'info'); + return false; + } + if (!($("#publisher_new_tr").css('display') == 'none')) { + if ($('#publisher_new_file_id').val() == '') { + $.simpleAlert('发布文件不能为空', 'info'); + return false; + } + } + if (!($("#publisher_change_tr").css('display') == 'none')) { + if ($('#publisher_change_target_file_id').val() == '') { + $.simpleAlert('变更后的文件不能为空', 'info'); + return false; + } + } + if (!($("#publisher_stop_tr").css('display') == 'none')) { + if ($('#publisher_stop_file_id').val() == '') { + $.simpleAlert('停用文件不能为空', 'info'); + return false; + } + } + if (!($("#publisher_change_tr").css('display') == 'none') && !($("#publisher_stop_tr").css('display') == 'none')) { + if ($('#publisher_change_source_file_id').val() == $('#publisher_stop_file_id').val()) { + $.simpleAlert('变更文件与停用的发布文件不能相同', 'info'); + return false; + } + } + } + // 保存到子表中 + //发布 + var publishNewFileId = $('#publisher_new_file_id').val(); + var publishNewTaskId = $('#publisher_new_report_id').text(); + var publishNewDesc = $('#publisher_new_desc').val(); + // 变更 + var publishChangeFileId = $('#publisher_change_source_file_id').val(); + var publishChangeTargetFileId = $('#publisher_change_target_file_id').val(); + var publishChangeTaskId = $('#publisher_change_report_id').text(); + var publishChangeDesc = $('#publisher_change_desc').val(); + // 停用 + var publishStopFileId = $('#publisher_stop_file_id').val(); + var publishStopTaskId = $('#publisher_stop_report_id').text(); + var publishStopDesc = $('#publisher_stop_desc').val(); + + var saveData = {}; + var newObj = { + uuid : publishNewFileId, + taskId : publishNewTaskId, + desc : publishNewDesc + }; + var changeObj = { + uuid : publishChangeFileId, + targetId : publishChangeTargetFileId, + taskId : publishChangeTaskId, + desc : publishChangeDesc + }; + var stopObj = { + uuid : publishStopFileId, + taskId : publishStopTaskId, + desc : publishStopDesc + }; + saveData.newObj = newObj; + saveData.changeObj = changeObj; + saveData.stopObj = stopObj; + var param = { + sid : sid, + cmd : "com.actionsoft.apps.coe.pal.publisher_save_before", + teamId: teamId, + wsId: wsId, + processInstId : processInstId, + data: JSON.stringify(saveData) + } + + var flag = false; + var tempName; + $.ajax({ + url : "./jd", + type : "POST", + dataType : "JSON", + async : false, + data : param, + success : function(r) { + if (r.result == 'error') { + flag = true; + var data = r.data.data; + var name = data.name + ' V' + data.version + '.0'; + console.log(data); + tempName = name; + } + }, + error : function(XMLHttpRequest, textStatus, errorThrown) { + $.simpleAlert("表单信息错误,请联系管理员!", 'error'); + } + }); + if (flag) { + $.simpleAlert(tempName + "
      已经存在其他未办理完成表单中,不允许保存/办理", 'error'); + return false; + } +} + +//办理完成后关闭页面 +AWSFormMainAPI.customCloseFormPage(function(){ + if (closeFormPage) { + window.close(); + } else { + AWSFormUtil.refreshPage(); + } + // 父页面刷新 + opener.refreshTab(); + return true;//最后返回true +}); + +/********************************快速搜索start***************************************/ + +// 绑定事件 +function initPublishSearch(type) { + $("#processName").buttonedit({ + onClick: function(e){ + searchProcess(type); + } + }); + $("#processName").bind("keypress",function(event){ + if(event.keyCode == "13"){ + searchProcess(type); + } + }); + $("#autoSearchProcessDiv").off("mouseenter").on("mouseenter", function () { + $('#autoSearchProcessDiv').show(); + }).off("autoSearchProcessDiv").on("mouseleave", function () { + $('#autoSearchProcessDiv').hide(); + }); +} + +// 搜索 +function searchProcess(type) { + $("#autoSearchProcessDiv").empty().hide(); + if ($("#processName").val() == "" || $("#processName").val().trim() == "") { + return; + } + var name = $("#processName").val().trim().toLowerCase(); + var html = ''; + //先向后台请求完整tree数据 + if (type == 'new') { + var data = getAllTreeData(); + for (var i = 0; i < data.length; i++) { + var text = data[i].name; + if (text.indexOf(name) > -1) { + var id = data[i].id; + var path = getSearchTreeNodePath(data[i], text, data, 1); + var pids = getSearchTreeNodePath(data[i], text, data, 2); + html += '
      '; + html += ''; + html += '
      ' + path + '
      '; + html += '
      '; + html += '
      '; + html += '
      '; + } + } + } else { + $('span.tree-items-title').each(function() { + var text = $(this).text().toLowerCase(); + if (text.indexOf(name) > -1) {// found + var id = $(this).attr('id').substring(10); + if (id.length <= 36) { + var node = initTree.getNodeById(id); + var path = getFilePath(node, text); + html += '
      '; + html += ''; + html += '
      ' + path + '
      '; + html += '
      '; + html += '
      '; + html += '
      '; + } + } + }); + } + if (html.length > 0) { + $("#autoSearchProcessDiv").html(html).show(); + // $("#processName").val(''); + } +} + +function getAllTreeData() { + var param = { + sid : sid, + cmd : "com.actionsoft.apps.coe.pal.publisher_publish_tree_data_query_search", + teamId: teamId, + wsId: wsId + } + var data; + $.ajax({ + url : "./jd", + type : "POST", + dataType : "JSON", + data : param, + async : false, + success : function(d) { + data = d; + } + }); + return data; +} + +function getSearchTreeNodePath(node, text, data, isPid) { + var name = text; + var pids = node.pid; + do { + var p = undefined; + for (var i = 0; i < data.length; i++) { + if (data[i].id == node.pid) { + p = data[i]; + break; + } + } + if (p == undefined) { + if (node.pid == "process") { + name = "流程>" + name; + } + if (node.pid == "org") { + name = "组织>" + name; + } + if (node.pid == "data") { + name = "数据>" + name; + } + if (node.pid == "itsystem") { + name = "IT系统>" + name; + } + if (node.pid == "control") { + name = "控制>" + name; + } + break; + } + name = p.name + ">" + name; + pids = p.pid + "." + pids; + node = p; + } while(true); + if (isPid == 2) { + return pids; + } else { + return name; + } +} + +function getFilePath(node, text) { + var name = text; + do { + var p = initTree.getParentNodeById(node.id); + if (p == undefined) { + break; + } + name = p.name + ">" + name; + node = p; + } while(true); + return name; +} + +function auto_move(obj) { + obj.css({"color": "white", "background-image" : "url(../apps/com.actionsoft.apps.coe.pal.publisher/img/link.png)"}); +} + +function auto_out(obj) { + obj.css({"color": "black", "background-image" : "none"}); +} + +function auto_click(obj, type) { + var plId = obj.find("span").attr("plId"); + var type = obj.find("span").data("type"); + var dom = initTree.getNodeDomById(plId) + if (type == 'new') { + //预先去加载initTree + var pids = obj.find("span").data("pids"); + var pidList = pids.split('.'); + for (var i = 0; i < pidList.length; i++) { + loadNewData(pidList[i]); + dom = initTree.getNodeDomById(pidList[i]); + initTree.expandNodes(dom, true, true, true); + } + } else { + initTree.expandNodes(dom, true, true, true); + } + // 偏移至可见区域 + var ele = document.getElementById('tree_span_' + plId); + $('#tree').scrollTop(ele.offsetTop); + initTree.cancelSelectNode() + initTree.selectNode(plId); + $("#autoSearchProcessDiv").empty().hide(); +} +/********************************快速搜索end***************************************/ + +function listenCloseEvent() { + window.onbeforeunload = function(){ + // 查询bo表数据,是否保存过,未保存过离开页面则删除该实例 + awsui.ajax.request({ + type: "POST", + url: "./jd", + async: false, + data: { + sid: sid, + cmd: "com.actionsoft.apps.coe.pal.publisher_save_status_query", + processInstId: processInstId + }, + success : function(r) { + if (r.result == "ok") { + if (r.data.saveStatus == '1') { + return "未保存,关闭之后不会保存该表单!"; + } + } + } + }); + } + + //在弹出“是否离开”的提示框后,选择离开,则触发onunload事件 + window.onunload = function(){ + // 查询bo表数据,是否保存过,未保存过离开页面则删除该实例 + awsui.ajax.request({ + type: "POST", + url: "./jd", + async: false, + data: { + sid: sid, + cmd: "com.actionsoft.apps.coe.pal.publisher_save_status_query", + processInstId: processInstId + }, + success : function(r) { + if (r.result == "ok") { + if (r.data.saveStatus == '1') { + // 删除该流程实例,并刷新主页面 + awsui.ajax.request({ + type: "POST", + url: "./jd", + async: false, + data: { + sid: sid, + cmd: "com.actionsoft.apps.coe.pal.publisher_remove", + processInstIds: processInstId + }, + success : function(r) { + if (r.result == "ok") { + // 父页面刷新 + opener.refreshTab(); + } + } + }); + } + } + } + }); + } +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.pal.processlevel.main.autoajax.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.pal.processlevel.main.autoajax.js new file mode 100644 index 00000000..1289e298 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.pal.processlevel.main.autoajax.js @@ -0,0 +1,216 @@ +var autoTime=600;//锟斤拷锟斤拷锟斤拷锟� +/*===================================================================================*/ +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" + + icon + + "" + msg[i].ui + "" + + ""); + $("#autoDiv"+i).data("value",msg[i].value); + $("#autoDiv"+i).data("name",msg[i].name); + } + // 锟斤拷锟矫诧拷锟轿伙拷锟� + 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); + + // 锟斤拷锟斤拷锟斤拷锟斤拷锟绞撅拷锟� + if (autoLenght == 1 && $("#autoDiv0").data("value") == txt.value) { + auto.style.display = 'none'; + } + else { + auto.style.display = 'block'; + } +} +$(function(){ + hwTime(); + $("body").prepend("
      "); + $("#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"),'', '',''); +} diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.process.publish.add.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.process.publish.add.js new file mode 100644 index 00000000..ade3af50 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.process.publish.add.js @@ -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); + } + + } + } +} diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.process.publish.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.process.publish.js new file mode 100644 index 00000000..df0ac0ba --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/coe.process.publish.js @@ -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 = '' + + order + + '' + + nodeObj.fileType + + '' + + nodeObj.name + + '' + + nodeObj.fileVersion + + ''; + $("#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 += '' + + order + + '' + + nodeObj.PUBLISTHTYPE + + '' + + nodeObj.PUBLISHFILENAME + + '' + + nodeObj.PUBLISHVERSION + + ''; + //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 += '' + + order + + '' + + nodeObj.CHANGETYPE + + '' + + nodeObj.CHANGEFILENAME + + '' + + nodeObj.CHANGEDVERSION + + ''; + //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 += '' + + order + + '' + + nodeObj.STOPTYPE + + '' + + nodeObj.STOPFILENAME + + '' + + nodeObj.STOPVERSION + + ''; + //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); + } + } + }); + } +}; \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/jquery.bxslider.min.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/jquery.bxslider.min.js new file mode 100644 index 00000000..dc338f7a --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/jquery.bxslider.min.js @@ -0,0 +1,10 @@ +/** + * BxSlider v4.1.2 - Fully loaded, responsive content slider + * http://bxslider.com + * + * Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com + * Written while drinking Belgian ales and listening to jazz + * + * Released under the MIT license - http://opensource.org/licenses/MIT + */ +!function(t){var e={},s={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};t.fn.bxSlider=function(n){if(0==this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(n)}),this;var o={},r=this;e.el=this;var a=t(window).width(),l=t(window).height(),d=function(){o.settings=t.extend({},s,n),o.settings.slideWidth=parseInt(o.settings.slideWidth),o.children=r.children(o.settings.slideSelector),o.children.length1||o.settings.maxSlides>1,o.carousel&&(o.settings.preloadImages="all"),o.minThreshold=o.settings.minSlides*o.settings.slideWidth+(o.settings.minSlides-1)*o.settings.slideMargin,o.maxThreshold=o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin,o.working=!1,o.controls={},o.interval=null,o.animProp="vertical"==o.settings.mode?"top":"left",o.usingCSS=o.settings.useCSS&&"fade"!=o.settings.mode&&function(){var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in e)if(void 0!==t.style[e[i]])return o.cssPrefix=e[i].replace("Perspective","").toLowerCase(),o.animProp="-"+o.cssPrefix+"-transform",!0;return!1}(),"vertical"==o.settings.mode&&(o.settings.maxSlides=o.settings.minSlides),r.data("origStyle",r.attr("style")),r.children(o.settings.slideSelector).each(function(){t(this).data("origStyle",t(this).attr("style"))}),c()},c=function(){r.wrap('
      '),o.viewport=r.parent(),o.loader=t('
      '),o.viewport.prepend(o.loader),r.css({width:"horizontal"==o.settings.mode?100*o.children.length+215+"%":"auto",position:"relative"}),o.usingCSS&&o.settings.easing?r.css("-"+o.cssPrefix+"-transition-timing-function",o.settings.easing):o.settings.easing||(o.settings.easing="swing"),f(),o.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),o.viewport.parent().css({maxWidth:p()}),o.settings.pager||o.viewport.parent().css({margin:"0 auto 0px"}),o.children.css({"float":"horizontal"==o.settings.mode?"left":"none",listStyle:"none",position:"relative"}),o.children.css("width",u()),"horizontal"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginRight",o.settings.slideMargin),"vertical"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginBottom",o.settings.slideMargin),"fade"==o.settings.mode&&(o.children.css({position:"absolute",zIndex:0,display:"none"}),o.children.eq(o.settings.startSlide).css({zIndex:o.settings.slideZIndex,display:"block"})),o.controls.el=t('
      '),o.settings.captions&&P(),o.active.last=o.settings.startSlide==x()-1,o.settings.video&&r.fitVids();var e=o.children.eq(o.settings.startSlide);"all"==o.settings.preloadImages&&(e=o.children),o.settings.ticker?o.settings.pager=!1:(o.settings.pager&&T(),o.settings.controls&&C(),o.settings.auto&&o.settings.autoControls&&E(),(o.settings.controls||o.settings.autoControls||o.settings.pager)&&o.viewport.after(o.controls.el)),g(e,h)},g=function(e,i){var s=e.find("img, iframe").length;if(0==s)return i(),void 0;var n=0;e.find("img, iframe").each(function(){t(this).one("load",function(){++n==s&&i()}).each(function(){this.complete&&t(this).load()})})},h=function(){if(o.settings.infiniteLoop&&"fade"!=o.settings.mode&&!o.settings.ticker){var e="vertical"==o.settings.mode?o.settings.minSlides:o.settings.maxSlides,i=o.children.slice(0,e).clone().addClass("bx-clone"),s=o.children.slice(-e).clone().addClass("bx-clone");r.append(i).prepend(s)}o.loader.remove(),S(),"vertical"==o.settings.mode&&(o.settings.adaptiveHeight=!0),o.viewport.height(v()),r.redrawSlider(),o.settings.onSliderLoad(o.active.index),o.initialized=!0,o.settings.responsive&&t(window).bind("resize",Z),o.settings.auto&&o.settings.autoStart&&H(),o.settings.ticker&&L(),o.settings.pager&&q(o.settings.startSlide),o.settings.controls&&W(),o.settings.touchEnabled&&!o.settings.ticker&&O()},v=function(){var e=0,s=t();if("vertical"==o.settings.mode||o.settings.adaptiveHeight)if(o.carousel){var n=1==o.settings.moveSlides?o.active.index:o.active.index*m();for(s=o.children.eq(n),i=1;i<=o.settings.maxSlides-1;i++)s=n+i>=o.children.length?s.add(o.children.eq(i-1)):s.add(o.children.eq(n+i))}else s=o.children.eq(o.active.index);else s=o.children;return"vertical"==o.settings.mode?(s.each(function(){e+=t(this).outerHeight()}),o.settings.slideMargin>0&&(e+=o.settings.slideMargin*(o.settings.minSlides-1))):e=Math.max.apply(Math,s.map(function(){return t(this).outerHeight(!1)}).get()),e},p=function(){var t="100%";return o.settings.slideWidth>0&&(t="horizontal"==o.settings.mode?o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin:o.settings.slideWidth),t},u=function(){var t=o.settings.slideWidth,e=o.viewport.width();return 0==o.settings.slideWidth||o.settings.slideWidth>e&&!o.carousel||"vertical"==o.settings.mode?t=e:o.settings.maxSlides>1&&"horizontal"==o.settings.mode&&(e>o.maxThreshold||e0)if(o.viewport.width()o.maxThreshold)t=o.settings.maxSlides;else{var e=o.children.first().width();t=Math.floor(o.viewport.width()/e)}else"vertical"==o.settings.mode&&(t=o.settings.minSlides);return t},x=function(){var t=0;if(o.settings.moveSlides>0)if(o.settings.infiniteLoop)t=o.children.length/m();else for(var e=0,i=0;e0&&o.settings.moveSlides<=f()?o.settings.moveSlides:f()},S=function(){if(o.children.length>o.settings.maxSlides&&o.active.last&&!o.settings.infiniteLoop){if("horizontal"==o.settings.mode){var t=o.children.last(),e=t.position();b(-(e.left-(o.viewport.width()-t.width())),"reset",0)}else if("vertical"==o.settings.mode){var i=o.children.length-o.settings.minSlides,e=o.children.eq(i).position();b(-e.top,"reset",0)}}else{var e=o.children.eq(o.active.index*m()).position();o.active.index==x()-1&&(o.active.last=!0),void 0!=e&&("horizontal"==o.settings.mode?b(-e.left,"reset",0):"vertical"==o.settings.mode&&b(-e.top,"reset",0))}},b=function(t,e,i,s){if(o.usingCSS){var n="vertical"==o.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)";r.css("-"+o.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"==e?(r.css(o.animProp,n),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),D()})):"reset"==e?r.css(o.animProp,n):"ticker"==e&&(r.css("-"+o.cssPrefix+"-transition-timing-function","linear"),r.css(o.animProp,n),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),b(s.resetValue,"reset",0),N()}))}else{var a={};a[o.animProp]=t,"slide"==e?r.animate(a,i,o.settings.easing,function(){D()}):"reset"==e?r.css(o.animProp,t):"ticker"==e&&r.animate(a,speed,"linear",function(){b(s.resetValue,"reset",0),N()})}},w=function(){for(var e="",i=x(),s=0;i>s;s++){var n="";o.settings.buildPager&&t.isFunction(o.settings.buildPager)?(n=o.settings.buildPager(s),o.pagerEl.addClass("bx-custom-pager")):(n=s+1,o.pagerEl.addClass("bx-default-pager")),e+='"}o.pagerEl.html(e)},T=function(){o.settings.pagerCustom?o.pagerEl=t(o.settings.pagerCustom):(o.pagerEl=t('
      '),o.settings.pagerSelector?t(o.settings.pagerSelector).html(o.pagerEl):o.controls.el.addClass("bx-has-pager").append(o.pagerEl),w()),o.pagerEl.on("click","a",I)},C=function(){o.controls.next=t(''+o.settings.nextText+""),o.controls.prev=t(''+o.settings.prevText+""),o.controls.next.bind("click",y),o.controls.prev.bind("click",z),o.settings.nextSelector&&t(o.settings.nextSelector).append(o.controls.next),o.settings.prevSelector&&t(o.settings.prevSelector).append(o.controls.prev),o.settings.nextSelector||o.settings.prevSelector||(o.controls.directionEl=t('
      '),o.controls.directionEl.append(o.controls.prev).append(o.controls.next),o.controls.el.addClass("bx-has-controls-direction").append(o.controls.directionEl))},E=function(){o.controls.start=t('"),o.controls.stop=t('"),o.controls.autoEl=t('
      '),o.controls.autoEl.on("click",".bx-start",k),o.controls.autoEl.on("click",".bx-stop",M),o.settings.autoControlsCombine?o.controls.autoEl.append(o.controls.start):o.controls.autoEl.append(o.controls.start).append(o.controls.stop),o.settings.autoControlsSelector?t(o.settings.autoControlsSelector).html(o.controls.autoEl):o.controls.el.addClass("bx-has-controls-auto").append(o.controls.autoEl),A(o.settings.autoStart?"stop":"start")},P=function(){o.children.each(function(){var e=t(this).find("img:first").attr("title");void 0!=e&&(""+e).length&&t(this).append('
      '+e+"
      ")})},y=function(t){o.settings.auto&&r.stopAuto(),r.goToNextSlide(),t.preventDefault()},z=function(t){o.settings.auto&&r.stopAuto(),r.goToPrevSlide(),t.preventDefault()},k=function(t){r.startAuto(),t.preventDefault()},M=function(t){r.stopAuto(),t.preventDefault()},I=function(e){o.settings.auto&&r.stopAuto();var i=t(e.currentTarget),s=parseInt(i.attr("data-slide-index"));s!=o.active.index&&r.goToSlide(s),e.preventDefault()},q=function(e){var i=o.children.length;return"short"==o.settings.pagerType?(o.settings.maxSlides>1&&(i=Math.ceil(o.children.length/o.settings.maxSlides)),o.pagerEl.html(e+1+o.settings.pagerShortSeparator+i),void 0):(o.pagerEl.find("a").removeClass("active"),o.pagerEl.each(function(i,s){t(s).find("a").eq(e).addClass("active")}),void 0)},D=function(){if(o.settings.infiniteLoop){var t="";0==o.active.index?t=o.children.eq(0).position():o.active.index==x()-1&&o.carousel?t=o.children.eq((x()-1)*m()).position():o.active.index==o.children.length-1&&(t=o.children.eq(o.children.length-1).position()),t&&("horizontal"==o.settings.mode?b(-t.left,"reset",0):"vertical"==o.settings.mode&&b(-t.top,"reset",0))}o.working=!1,o.settings.onSlideAfter(o.children.eq(o.active.index),o.oldIndex,o.active.index)},A=function(t){o.settings.autoControlsCombine?o.controls.autoEl.html(o.controls[t]):(o.controls.autoEl.find("a").removeClass("active"),o.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},W=function(){1==x()?(o.controls.prev.addClass("disabled"),o.controls.next.addClass("disabled")):!o.settings.infiniteLoop&&o.settings.hideControlOnEnd&&(0==o.active.index?(o.controls.prev.addClass("disabled"),o.controls.next.removeClass("disabled")):o.active.index==x()-1?(o.controls.next.addClass("disabled"),o.controls.prev.removeClass("disabled")):(o.controls.prev.removeClass("disabled"),o.controls.next.removeClass("disabled")))},H=function(){o.settings.autoDelay>0?setTimeout(r.startAuto,o.settings.autoDelay):r.startAuto(),o.settings.autoHover&&r.hover(function(){o.interval&&(r.stopAuto(!0),o.autoPaused=!0)},function(){o.autoPaused&&(r.startAuto(!0),o.autoPaused=null)})},L=function(){var e=0;if("next"==o.settings.autoDirection)r.append(o.children.clone().addClass("bx-clone"));else{r.prepend(o.children.clone().addClass("bx-clone"));var i=o.children.first().position();e="horizontal"==o.settings.mode?-i.left:-i.top}b(e,"reset",0),o.settings.pager=!1,o.settings.controls=!1,o.settings.autoControls=!1,o.settings.tickerHover&&!o.usingCSS&&o.viewport.hover(function(){r.stop()},function(){var e=0;o.children.each(function(){e+="horizontal"==o.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)});var i=o.settings.speed/e,s="horizontal"==o.settings.mode?"left":"top",n=i*(e-Math.abs(parseInt(r.css(s))));N(n)}),N()},N=function(t){speed=t?t:o.settings.speed;var e={left:0,top:0},i={left:0,top:0};"next"==o.settings.autoDirection?e=r.find(".bx-clone").first().position():i=o.children.first().position();var s="horizontal"==o.settings.mode?-e.left:-e.top,n="horizontal"==o.settings.mode?-i.left:-i.top,a={resetValue:n};b(s,"ticker",speed,a)},O=function(){o.touch={start:{x:0,y:0},end:{x:0,y:0}},o.viewport.bind("touchstart",X)},X=function(t){if(o.working)t.preventDefault();else{o.touch.originalPos=r.position();var e=t.originalEvent;o.touch.start.x=e.changedTouches[0].pageX,o.touch.start.y=e.changedTouches[0].pageY,o.viewport.bind("touchmove",Y),o.viewport.bind("touchend",V)}},Y=function(t){var e=t.originalEvent,i=Math.abs(e.changedTouches[0].pageX-o.touch.start.x),s=Math.abs(e.changedTouches[0].pageY-o.touch.start.y);if(3*i>s&&o.settings.preventDefaultSwipeX?t.preventDefault():3*s>i&&o.settings.preventDefaultSwipeY&&t.preventDefault(),"fade"!=o.settings.mode&&o.settings.oneToOneTouch){var n=0;if("horizontal"==o.settings.mode){var r=e.changedTouches[0].pageX-o.touch.start.x;n=o.touch.originalPos.left+r}else{var r=e.changedTouches[0].pageY-o.touch.start.y;n=o.touch.originalPos.top+r}b(n,"reset",0)}},V=function(t){o.viewport.unbind("touchmove",Y);var e=t.originalEvent,i=0;if(o.touch.end.x=e.changedTouches[0].pageX,o.touch.end.y=e.changedTouches[0].pageY,"fade"==o.settings.mode){var s=Math.abs(o.touch.start.x-o.touch.end.x);s>=o.settings.swipeThreshold&&(o.touch.start.x>o.touch.end.x?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto())}else{var s=0;"horizontal"==o.settings.mode?(s=o.touch.end.x-o.touch.start.x,i=o.touch.originalPos.left):(s=o.touch.end.y-o.touch.start.y,i=o.touch.originalPos.top),!o.settings.infiniteLoop&&(0==o.active.index&&s>0||o.active.last&&0>s)?b(i,"reset",200):Math.abs(s)>=o.settings.swipeThreshold?(0>s?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto()):b(i,"reset",200)}o.viewport.unbind("touchend",V)},Z=function(){var e=t(window).width(),i=t(window).height();(a!=e||l!=i)&&(a=e,l=i,r.redrawSlider(),o.settings.onSliderResize.call(r,o.active.index))};return r.goToSlide=function(e,i){if(!o.working&&o.active.index!=e)if(o.working=!0,o.oldIndex=o.active.index,o.active.index=0>e?x()-1:e>=x()?0:e,o.settings.onSlideBefore(o.children.eq(o.active.index),o.oldIndex,o.active.index),"next"==i?o.settings.onSlideNext(o.children.eq(o.active.index),o.oldIndex,o.active.index):"prev"==i&&o.settings.onSlidePrev(o.children.eq(o.active.index),o.oldIndex,o.active.index),o.active.last=o.active.index>=x()-1,o.settings.pager&&q(o.active.index),o.settings.controls&&W(),"fade"==o.settings.mode)o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed),o.children.filter(":visible").fadeOut(o.settings.speed).css({zIndex:0}),o.children.eq(o.active.index).css("zIndex",o.settings.slideZIndex+1).fadeIn(o.settings.speed,function(){t(this).css("zIndex",o.settings.slideZIndex),D()});else{o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed);var s=0,n={left:0,top:0};if(!o.settings.infiniteLoop&&o.carousel&&o.active.last)if("horizontal"==o.settings.mode){var a=o.children.eq(o.children.length-1);n=a.position(),s=o.viewport.width()-a.outerWidth()}else{var l=o.children.length-o.settings.minSlides;n=o.children.eq(l).position()}else if(o.carousel&&o.active.last&&"prev"==i){var d=1==o.settings.moveSlides?o.settings.maxSlides-m():(x()-1)*m()-(o.children.length-o.settings.maxSlides),a=r.children(".bx-clone").eq(d);n=a.position()}else if("next"==i&&0==o.active.index)n=r.find("> .bx-clone").eq(o.settings.maxSlides).position(),o.active.last=!1;else if(e>=0){var c=e*m();n=o.children.eq(c).position()}if("undefined"!=typeof n){var g="horizontal"==o.settings.mode?-(n.left-s):-n.top;b(g,"slide",o.settings.speed)}}},r.goToNextSlide=function(){if(o.settings.infiniteLoop||!o.active.last){var t=parseInt(o.active.index)+1;r.goToSlide(t,"next")}},r.goToPrevSlide=function(){if(o.settings.infiniteLoop||0!=o.active.index){var t=parseInt(o.active.index)-1;r.goToSlide(t,"prev")}},r.startAuto=function(t){o.interval||(o.interval=setInterval(function(){"next"==o.settings.autoDirection?r.goToNextSlide():r.goToPrevSlide()},o.settings.pause),o.settings.autoControls&&1!=t&&A("stop"))},r.stopAuto=function(t){o.interval&&(clearInterval(o.interval),o.interval=null,o.settings.autoControls&&1!=t&&A("start"))},r.getCurrentSlide=function(){return o.active.index},r.getCurrentSlideElement=function(){return o.children.eq(o.active.index)},r.getSlideCount=function(){return o.children.length},r.redrawSlider=function(){o.children.add(r.find(".bx-clone")).outerWidth(u()),o.viewport.css("height",v()),o.settings.ticker||S(),o.active.last&&(o.active.index=x()-1),o.active.index>=x()&&(o.active.last=!0),o.settings.pager&&!o.settings.pagerCustom&&(w(),q(o.active.index))},r.destroySlider=function(){o.initialized&&(o.initialized=!1,t(".bx-clone",this).remove(),o.children.each(function(){void 0!=t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),void 0!=t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),o.controls.el&&o.controls.el.remove(),o.controls.next&&o.controls.next.remove(),o.controls.prev&&o.controls.prev.remove(),o.pagerEl&&o.settings.controls&&o.pagerEl.remove(),t(".bx-caption",this).remove(),o.controls.autoEl&&o.controls.autoEl.remove(),clearInterval(o.interval),o.settings.responsive&&t(window).unbind("resize",Z))},r.reloadSlider=function(t){void 0!=t&&(n=t),r.destroySlider(),d()},d(),this}}(jQuery); \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.js new file mode 100644 index 00000000..89e49d18 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.js @@ -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 = $("").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); +} + diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.main.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.main.js new file mode 100644 index 00000000..b5fe4940 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.main.js @@ -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(""); + year = obj.year; + } + html += "
    • "; + if (obj.pid != pid) { + html += "

      " + obj.date + "

      "; + pid = obj.pid; + } else { + html += "

       

      "; + } + html += "

      " + obj.intro + "

      " + + "

       

      " + + "
      " + + "
      " + + " " + + "
      " + + "
      " + obj.desc + "
      " + + "
      " + + "
    • "; + } + $("#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); + } +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.search.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.search.js new file mode 100644 index 00000000..f8642769 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.search.js @@ -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 = "
    • "; + if (ws.length > 0) { + $('#wsId').val(ws[0].id); + $('#wsNameDiv').text(ws[0].text); + for (var i = 0; i < ws.length; i++) { + html += '
        ' + ws[i].text + '
      '; + if(ws[i].initDisplay == "1") { //initDisplay:是否是初始化的流程资产库"0"-不是;"1"-是 + $('#wsId').val(ws[i].id); + $('#wsNameDiv').text(ws[i].text); + } + } + } + html += "
    • "; + $('#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 = '' + data[i].name + ''; + data[i].name = tabAttr.searchText.trim() == "" ? data[i].name : data[i].name.replaceAll(tabAttr.searchText.trim(), '
      ' + tabAttr.searchText.trim() + '
      '); + html += ''; + html += '' + (start++) + ''; + html += ''; + html += ''; + if (data[i].isPublish == 0) {// 未发布 + html += '' + data[i].name + ''; + } else { + html += '' + data[i].name + ''; + } + html += '
      '; + html += '' + data[i].path + ''; + html += ''; +// html += ''; +// html += '' + data[i].user + '
      ' + data[i].dept + ''; + html += '' + data[i].user + '
      '; + html += '' + data[i].dept + ''; + html += ''; + html += '' + transferDateFormat(data[i].date) + ''; + html += 'V' + data[i].version + '.0'; + var desc = data[i].desc; + if(desc == '') { + desc = "无"; + } + html += '' + desc + ''; + html += ''; + } + 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 += '
      '; + html += ''+ curr.name +''; + html += '
      '; + } else { + html += '
      '; + html += curr.name; + html += '
      '; + } + } + + $('#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(); + } +} diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.index.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.index.js new file mode 100644 index 00000000..86533fb0 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.index.js @@ -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 = "" + selectNode.name + "" + " > " + navigation; + var parentNode = repositoryTree.getParentNodeById(selectNode.id); + while (parentNode != undefined && parentNode != null) { + navigation = "" + parentNode.name + "" + " > " + 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 = $("").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 = $("").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 += '
      ' + + '
      '; + } + 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 += '
      ' + + '
      ' + datas[i].date + '
      ' + + '
      ' + datas[i].pDesc + '
      ' + + '
      '; + } + + 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 += '
      ' + + ' ' + + ' ' + + '
      '; + + } + if (html != "") { + html += '
      ' + + '
      '; + } + $("#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 = $("").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"}); +}) \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.index1.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.index1.js new file mode 100644 index 00000000..d58747a4 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.index1.js @@ -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 += '
      ' + + '
      '; + } + 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 += '
      ' + + '
      ' + datas[i].date + '
      ' + + '
      ' + datas[i].pDesc + '
      ' + + '
      '; + } + + 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 += '
        ' + + '
      • ' + + ' ' + datas[i].repositoryName + datas[i].repositoryVersion + '' + publishType + '' + + '
      • ' + + '
      '; + + } + if (html != "") { + html += '
      ' + + '
      '; + } + $("#main_publish_content").html(html); + } + }); +} + +function openTab(obj) { + $("#content").hide(); + $("#extend_content").show(); + var dockOption = dockDisplay.replace(/"/g, '"'); + var id = obj.id; + var title = obj.title; + var processDefId = obj.processDefId; + var url = './w?sid=' + encodeURIComponent($('#sid').val()) + '&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer_viewer' + + '&uuid=' + id + '&openType=0&processDefId=' + processDefId + '&openAppType=1&dockDisplay=' + dockOption; + var setting = { + item : { + index : id, + title : title + }, + contextMenu : true, + contextMenuTarget : "contextMenu1", + close : true + }; + if (navtab.existsTab(id)) { + navtab.focusTab(id); + } else { + var html = $("").appendTo(navtab.tabContentPanel); + + var formHtml = '
      ' + + ' ' + + '
      '; + + 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; + } +} diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.index2.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.index2.js new file mode 100644 index 00000000..5ea8f27e --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.index2.js @@ -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 = "
    • "; + if (ws.length > 0) { + $('#wsId').val(ws[0].id); + $('#wsNameDiv').text(ws[0].text); + for (var i = 0; i < ws.length; i++) { + html += '
        ' + ws[i].text + '
      '; + if(ws[i].initDisplay == "1") { //initDisplay:是否是初始化的流程资产库"0"-不是;"1"-是 + $('#wsId').val(ws[i].id); + $('#wsNameDiv').text(ws[i].text); + } + } + } + html += "
    • "; + $('#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); +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.main.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.main.js new file mode 100644 index 00000000..fa7175ee --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.main.js @@ -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 += "
    • " + + "
      " + + " " + + "
    • "; + + 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 += "" + + " " + data[i].name + "" + + " " + data[i].publishDate + "" + + " " + data[i].version + "" + + " " + data[i].plrd + "" + + " " + data[i].plrp + "" + + ""; + } + $("#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 = "搜索:所有文件" + selectedTreeNode.name + ""; + $("#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 += "
    • " + datas[i].name + "
    • "; + } + 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(); + } +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.processmap.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.processmap.js new file mode 100644 index 00000000..b3dcc585 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.processmap.js @@ -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 = "
    • "; + var wsName = ''; + for (var i = 0; i < ws.length; i++) { + html += '
        ' + ws[i].text + '
      '; + if (ws[i].id == wsId) { + wsName = ws[i].text; + } + } + html += "
    • "; + 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 = "
    • "; + var orgName = ''; + for (var i = 0; i < org.length; i++) { + html += '
        ' + org[i].text + '
      '; + if (org[i].id == orgId) { + orgName = org[i].text; + } + } + html += "
    • "; + 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(); +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.processmap.org.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.processmap.org.js new file mode 100644 index 00000000..f4705177 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.processmap.org.js @@ -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 += '
      '; + html += '
      '; + html += ''; + var childData = secend[first[i].id]; + if (!(childData == undefined || childData.length == 0)) { + html += ''; + } + html += '
      '; + html += '
      '; + html +='
      '; + html += '
      '; + } + 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 += '
      '; + for (var k = j * count,m = 0; k < childData.length; k++) { + m++; + if(m > count) break; + content += '
      '; + if(childData[k].child) { + content += ''; + } else { + content += ''; + } + if(childData[k].child) {// 有子流程 + content += ''; + } else {// 无子流程 + content += ''; + } + content += '
      '; + if(childData[k].child) {// 有子流程 + content += ''; + } + content += '
      '; + content += '
      '; + } + content += '
      '; + } + 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 = '
      '; + for(var j = 0; j < rowCount; j++) { + content += '
      '; + for (var k = j * count,m = 0; k < third.length; k++) { + m++; + if(m > count) break; + content += '
      '; + if(third[k].child) { + content += ''; + } else { + content += ''; + } + if(third[k].child) {// 有子流程 + content += ''; + } else {// 无子流程 + content += ''; + } + content += '
      '; + if(third[k].child) {// 有子流程 + content += ''; + } + content += '
      '; + content += '
      '; + } + content += '
      '; + } + var tempEnd = '
      '; + $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 = '
      '; + for(var j = 0; j < rowCount; j++) { + content += '
      '; + for (var k = j * count,m = 0; k < third.length; k++) { + m++; + if(m > count) break; + content += '
      '; + if(third[k].child) { + content += ''; + } else { + content += ''; + } + if(third[k].child) {// 有子流程 + content += ''; + } else {// 无子流程 + content += ''; + } + content += '
      '; + if(third[k].child) {// 有子流程 + content += ''; + } + content += '
      '; + content += '
      '; + } + content += '
      '; + } + var tempEnd = '
      '; + // $(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); +} diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.processmap.ws.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.processmap.ws.js new file mode 100644 index 00000000..651f8b28 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.client.sso.processmap.ws.js @@ -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 += '
      '; + html += '
      '; + html += ''; + var childData = secend[first[i].versionId]; + if (!(childData == undefined || childData.length == 0)) { + html += ''; + } + html += '
      '; + html += '
      '; + html +='
      '; + html += '
      '; + } + 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 += '
      '; + for (var k = j * count,m = 0; k < childData.length; k++) { + m++; + if(m > count) break; + content += '
      '; + if(childData[k].child) { + content += ''; + } else { + content += ''; + } + if(childData[k].child) {// 有子流程 + content += ''; + } else {// 无子流程 + content += ''; + } + content += '
      '; + if(childData[k].child) {// 有子流程 + content += ''; + } + content += '
      '; + content += '
      '; + } + content += '
      '; + } + 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 = '
      '; + for(var j = 0; j < rowCount; j++) { + content += '
      '; + for (var k = j * count,m = 0; k < third.length; k++) { + m++; + if(m > count) break; + content += '
      '; + if(third[k].child) { + content += ''; + } else { + content += ''; + } + if(third[k].child) {// 有子流程 + content += ''; + } else {// 无子流程 + content += ''; + } + content += '
      '; + if(third[k].child) {// 有子流程 + content += ''; + } + content += '
      '; + content += '
      '; + } + content += '
      '; + } + var tempEnd = '
      '; + $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 = '
      '; + for(var j = 0; j < rowCount; j++) { + content += '
      '; + for (var k = j * count,m = 0; k < third.length; k++) { + m++; + if(m > count) break; + content += '
      '; + if(third[k].child) { + content += ''; + } else { + content += ''; + } + if(third[k].child) {// 有子流程 + content += ''; + } else {// 无子流程 + content += ''; + } + content += '
      '; + if(third[k].child) {// 有子流程 + content += ''; + } + content += '
      '; + content += '
      '; + } + content += '
      '; + } + var tempEnd = '
      '; + // $(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); +} diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.home.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.home.js new file mode 100644 index 00000000..b6b6d28b --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.home.js @@ -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; + } + }) +} + diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.manage.home.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.manage.home.js new file mode 100644 index 00000000..9d5f3f7b --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.manage.home.js @@ -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('不允许移动到'+ source.name +'自身的父节点内部', '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 = "确认将" + source.name + "放入" + target.name + "里面?"; + } + if(dragType == 'insert') {// 放入文件之间 + if(position == 'below') {// 放入target下面 + msg = "确认将" + source.name + "放入" + target.name + "的后面(同级)?"; + } + if(position == 'above') {// 放入target上面 + msg = "确认将" + source.name + "放入" + target.name + "的前面(同级)?"; + } + } + 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); +} diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.search.home.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.search.home.js new file mode 100644 index 00000000..e27a826f --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.search.home.js @@ -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); + } + } +} diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.banner.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.banner.js new file mode 100644 index 00000000..f910a9b8 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.banner.js @@ -0,0 +1,32 @@ +$(document).ready(function(){ + renderBannerXPagesConfigPage(); +}); +function renderBannerXPagesConfigPage(){ + var contentStr="
      "; + //contentStr+="

      流程发布门户-轮播图

      "; + contentStr+="
      轮播图
      "; + contentStr+=""; + contentStr+="
      "; + $(".cwapp-right").append(contentStr); + + var url="./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_banner_msg"; + //$(".xpagesContent").empty(); + $(".xpagePublishBanner-wrap").find(".xpagesContent").val(url); +} + + +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; +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.common.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.common.js new file mode 100644 index 00000000..49551c3a --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.common.js @@ -0,0 +1,48 @@ +$(document).ready(function(){ + renderCommonXPagesConfigPage(); +}); +function renderCommonXPagesConfigPage(){ + var contentStr="
      "; + //contentStr+="

      流程发布门户-常用流程

      "; + contentStr+="
      设置显示个数
      "; + contentStr+=""; + contentStr+=""; + contentStr+="
      "; + $(".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; +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.controlmap.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.controlmap.js new file mode 100644 index 00000000..a3c9eb77 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.controlmap.js @@ -0,0 +1,50 @@ +$(document).ready(function(){ + renderCommonXPagesConfigPage(); +}); +function renderCommonXPagesConfigPage(){ + var contentStr="
      "; + //contentStr+="

      流程发布门户-控制地图

      "; + contentStr+="
      设置显示个数
      "; + contentStr+=""; + contentStr+=""; + contentStr+="
      "; + $(".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; +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.datamap.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.datamap.js new file mode 100644 index 00000000..6caac7c9 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.datamap.js @@ -0,0 +1,49 @@ +$(document).ready(function(){ + renderCommonXPagesConfigPage(); +}); +function renderCommonXPagesConfigPage(){ + var contentStr="
      "; + contentStr+="
      设置显示个数
      "; + //contentStr+="

      流程发布门户-数据地图

      "; + contentStr+=""; + contentStr+=""; + contentStr+="
      "; + $(".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; +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.frequency.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.frequency.js new file mode 100644 index 00000000..3570bde9 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.frequency.js @@ -0,0 +1,48 @@ +$(document).ready(function(){ + renderCommonXPagesConfigPage(); +}); +function renderCommonXPagesConfigPage(){ + var contentStr="
      "; + contentStr+="
      设置显示个数
      "; + //contentStr+="

      流程发布门户-高频流程

      "; + contentStr+=""; + contentStr+=""; + contentStr+="
      "; + $(".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; +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.general.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.general.js new file mode 100644 index 00000000..923a0a98 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.general.js @@ -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; +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.notification.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.notification.js new file mode 100644 index 00000000..f58384cd --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.notification.js @@ -0,0 +1,48 @@ +$(document).ready(function(){ + renderCommonXPagesConfigPage(); +}); +function renderCommonXPagesConfigPage(){ + var contentStr="
      "; + contentStr+="
      设置显示个数
      "; + //contentStr+="

      流程发布门户-发布动态

      "; + contentStr+=""; + contentStr+=""; + contentStr+="
      "; + $(".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; +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.orgmap.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.orgmap.js new file mode 100644 index 00000000..b6b11649 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.orgmap.js @@ -0,0 +1,47 @@ +$(document).ready(function(){ + renderCommonXPagesConfigPage(); +}); +function renderCommonXPagesConfigPage(){ + var contentStr="
      "; + contentStr+="
      设置显示个数
      "; + //contentStr+="

      流程发布门户-组织地图

      "; + contentStr+=""; + contentStr+=""; + contentStr+="
      "; + $(".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; +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.participant.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.participant.js new file mode 100644 index 00000000..e630e610 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.participant.js @@ -0,0 +1,48 @@ +$(document).ready(function(){ + renderCommonXPagesConfigPage(); +}); +function renderCommonXPagesConfigPage(){ + var contentStr="
      "; + contentStr+="
      设置显示个数
      "; + //contentStr+="

      流程发布门户-我参与的

      "; + contentStr+=""; + contentStr+=""; + contentStr+="
      "; + $(".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; +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.postresponsibility.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.postresponsibility.js new file mode 100644 index 00000000..42eb7699 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.postresponsibility.js @@ -0,0 +1,48 @@ +$(document).ready(function(){ + renderCommonXPagesConfigPage(); +}); +function renderCommonXPagesConfigPage(){ + var contentStr="
      "; + contentStr+="
      设置显示个数
      "; + //contentStr+="

      流程发布门户-岗位职责

      "; + contentStr+=""; + contentStr+=""; + contentStr+="
      "; + $(".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; +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.processmap.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.processmap.js new file mode 100644 index 00000000..c0316c90 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.processmap.js @@ -0,0 +1,108 @@ +$(document).ready(function(){ + renderCommonXPagesConfigPage(); +}); +function renderCommonXPagesConfigPage(){ + getProcessMapData(); + /* + var contentStr="
      "; + contentStr+="
      请输入默认显示的资产库Id
      "; + //contentStr+="

      流程发布门户-流程地图

      "; + contentStr+=""; + contentStr+="
      "; + contentStr+="
      请输入默认组织的单元Id
      "; + contentStr+=""; + contentStr+=""; + contentStr+="
      "; + $(".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 = "
      "; + contentStr += "
      请选择默认显示的资产库
      "; + contentStr += ""; + contentStr += "
      请选择默认组织
      "; + contentStr += ""; + contentStr += ""; + contentStr += "
      "; + $(".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; +} + + diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.rcaimatrix.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.rcaimatrix.js new file mode 100644 index 00000000..e178acf0 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.rcaimatrix.js @@ -0,0 +1,48 @@ +$(document).ready(function(){ + renderCommonXPagesConfigPage(); +}); +function renderCommonXPagesConfigPage(){ + var contentStr="
      "; + contentStr+="
      设置显示个数
      "; + //contentStr+="

      流程发布门户-RCAI矩阵

      "; + contentStr+=""; + contentStr+=""; + contentStr+="
      "; + $(".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; +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.responsible.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.responsible.js new file mode 100644 index 00000000..3a7a9c81 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.responsible.js @@ -0,0 +1,48 @@ +$(document).ready(function(){ + renderCommonXPagesConfigPage(); +}); +function renderCommonXPagesConfigPage(){ + var contentStr="
      "; + contentStr+="
      设置显示个数
      "; + //contentStr+="

      流程发布门户-我负责的

      "; + contentStr+=""; + contentStr+=""; + contentStr+="
      "; + $(".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; +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.systemmap.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.systemmap.js new file mode 100644 index 00000000..84e9b766 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/publish.xpages.systemmap.js @@ -0,0 +1,48 @@ +$(document).ready(function(){ + renderCommonXPagesConfigPage(); +}); +function renderCommonXPagesConfigPage(){ + var contentStr="
      "; + contentStr+="
      设置显示个数
      "; + //contentStr+="

      流程发布门户-系统地图

      "; + contentStr+=""; + contentStr+=""; + contentStr+="
      "; + $(".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; +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/unslider.min.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/unslider.min.js new file mode 100644 index 00000000..42987011 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/js/unslider.min.js @@ -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('

      ').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='
        ';e.each(this.items,function(e){t+='
      1. '+(e+1)+"
      2. "});t+="
      ";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) \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/lib/flexslider/css/flexslider.css b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/lib/flexslider/css/flexslider.css new file mode 100644 index 00000000..7ce304d9 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/lib/flexslider/css/flexslider.css @@ -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; + } +} diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/lib/flexslider/js/jquery.flexslider-min.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/lib/flexslider/js/jquery.flexslider-min.js new file mode 100644 index 00000000..0eebbf4b --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/lib/flexslider/js/jquery.flexslider-min.js @@ -0,0 +1,5 @@ +/* + * jQuery FlexSlider v2.7.1 + * Copyright 2012 WooThemes + * Contributing Author: Tyler Smith + */!function($){var e=!0;$.flexslider=function(t,a){var n=$(t);void 0===a.rtl&&"rtl"==$("html").attr("dir")&&(a.rtl=!0),n.vars=$.extend({},$.flexslider.defaults,a);var i=n.vars.namespace,r=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,s=("ontouchstart"in window||r||window.DocumentTouch&&document instanceof DocumentTouch)&&n.vars.touch,o="click touchend MSPointerUp keyup",l="",c,d="vertical"===n.vars.direction,u=n.vars.reverse,v=n.vars.itemWidth>0,p="fade"===n.vars.animation,m=""!==n.vars.asNavFor,f={};$.data(t,"flexslider",n),f={init:function(){n.animating=!1,n.currentSlide=parseInt(n.vars.startAt?n.vars.startAt:0,10),isNaN(n.currentSlide)&&(n.currentSlide=0),n.animatingTo=n.currentSlide,n.atEnd=0===n.currentSlide||n.currentSlide===n.last,n.containerSelector=n.vars.selector.substr(0,n.vars.selector.search(" ")),n.slides=$(n.vars.selector,n),n.container=$(n.containerSelector,n),n.count=n.slides.length,n.syncExists=$(n.vars.sync).length>0,"slide"===n.vars.animation&&(n.vars.animation="swing"),n.prop=d?"top":n.vars.rtl?"marginRight":"marginLeft",n.args={},n.manualPause=!1,n.stopped=!1,n.started=!1,n.startTimeout=null,n.transitions=!n.vars.video&&!p&&n.vars.useCSS&&function(){var e=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var a in t)if(void 0!==e.style[t[a]])return n.pfx=t[a].replace("Perspective","").toLowerCase(),n.prop="-"+n.pfx+"-transform",!0;return!1}(),n.isFirefox=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,n.ensureAnimationEnd="",""!==n.vars.controlsContainer&&(n.controlsContainer=$(n.vars.controlsContainer).length>0&&$(n.vars.controlsContainer)),""!==n.vars.manualControls&&(n.manualControls=$(n.vars.manualControls).length>0&&$(n.vars.manualControls)),""!==n.vars.customDirectionNav&&(n.customDirectionNav=2===$(n.vars.customDirectionNav).length&&$(n.vars.customDirectionNav)),n.vars.randomize&&(n.slides.sort(function(){return Math.round(Math.random())-.5}),n.container.empty().append(n.slides)),n.doMath(),n.setup("init"),n.vars.controlNav&&f.controlNav.setup(),n.vars.directionNav&&f.directionNav.setup(),n.vars.keyboard&&(1===$(n.containerSelector).length||n.vars.multipleKeyboard)&&$(document).bind("keyup",function(e){var t=e.keyCode;if(!n.animating&&(39===t||37===t)){var a=n.vars.rtl?37===t?n.getTarget("next"):39===t&&n.getTarget("prev"):39===t?n.getTarget("next"):37===t&&n.getTarget("prev");n.flexAnimate(a,n.vars.pauseOnAction)}}),n.vars.mousewheel&&n.bind("mousewheel",function(e,t,a,i){e.preventDefault();var r=t<0?n.getTarget("next"):n.getTarget("prev");n.flexAnimate(r,n.vars.pauseOnAction)}),n.vars.pausePlay&&f.pausePlay.setup(),n.vars.slideshow&&n.vars.pauseInvisible&&f.pauseInvisible.init(),n.vars.slideshow&&(n.vars.pauseOnHover&&n.hover(function(){n.manualPlay||n.manualPause||n.pause()},function(){n.manualPause||n.manualPlay||n.stopped||n.play()}),n.vars.pauseInvisible&&f.pauseInvisible.isHidden()||(n.vars.initDelay>0?n.startTimeout=setTimeout(n.play,n.vars.initDelay):n.play())),m&&f.asNav.setup(),s&&n.vars.touch&&f.touch(),(!p||p&&n.vars.smoothHeight)&&$(window).bind("resize orientationchange focus",f.resize),n.find("img").attr("draggable","false"),setTimeout(function(){n.vars.start(n)},200)},asNav:{setup:function(){n.asNav=!0,n.animatingTo=Math.floor(n.currentSlide/n.move),n.currentItem=n.currentSlide,n.slides.removeClass(i+"active-slide").eq(n.currentItem).addClass(i+"active-slide"),r?(t._slider=n,n.slides.each(function(){var e=this;e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),e.addEventListener("MSGestureTap",function(e){e.preventDefault();var t=$(this),a=t.index();$(n.vars.asNavFor).data("flexslider").animating||t.hasClass("active")||(n.direction=n.currentItem'),n.pagingCount>1)for(var s=0;s":''+t+"","thumbnails"===n.vars.controlNav&&!0===n.vars.thumbCaptions){var d=r.attr("data-thumbcaption");""!==d&&void 0!==d&&(a+=''+d+"")}n.controlNavScaffold.append("
    • "+a+"
    • "),t++}n.controlsContainer?$(n.controlsContainer).append(n.controlNavScaffold):n.append(n.controlNavScaffold),f.controlNav.set(),f.controlNav.active(),n.controlNavScaffold.delegate("a, img",o,function(e){if(e.preventDefault(),""===l||l===e.type){var t=$(this),a=n.controlNav.index(t);t.hasClass(i+"active")||(n.direction=a>n.currentSlide?"next":"prev",n.flexAnimate(a,n.vars.pauseOnAction))}""===l&&(l=e.type),f.setToClearWatchedEvent()})},setupManual:function(){n.controlNav=n.manualControls,f.controlNav.active(),n.controlNav.bind(o,function(e){if(e.preventDefault(),""===l||l===e.type){var t=$(this),a=n.controlNav.index(t);t.hasClass(i+"active")||(a>n.currentSlide?n.direction="next":n.direction="prev",n.flexAnimate(a,n.vars.pauseOnAction))}""===l&&(l=e.type),f.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===n.vars.controlNav?"img":"a";n.controlNav=$("."+i+"control-nav li "+e,n.controlsContainer?n.controlsContainer:n)},active:function(){n.controlNav.removeClass(i+"active").eq(n.animatingTo).addClass(i+"active")},update:function(e,t){n.pagingCount>1&&"add"===e?n.controlNavScaffold.append($('
    • '+n.count+"
    • ")):1===n.pagingCount?n.controlNavScaffold.find("li").remove():n.controlNav.eq(t).closest("li").remove(),f.controlNav.set(),n.pagingCount>1&&n.pagingCount!==n.controlNav.length?n.update(t,e):f.controlNav.active()}},directionNav:{setup:function(){var e=$('");n.customDirectionNav?n.directionNav=n.customDirectionNav:n.controlsContainer?($(n.controlsContainer).append(e),n.directionNav=$("."+i+"direction-nav li a",n.controlsContainer)):(n.append(e),n.directionNav=$("."+i+"direction-nav li a",n)),f.directionNav.update(),n.directionNav.bind(o,function(e){e.preventDefault();var t;""!==l&&l!==e.type||(t=$(this).hasClass(i+"next")?n.getTarget("next"):n.getTarget("prev"),n.flexAnimate(t,n.vars.pauseOnAction)),""===l&&(l=e.type),f.setToClearWatchedEvent()})},update:function(){var e=i+"disabled";1===n.pagingCount?n.directionNav.addClass(e).attr("tabindex","-1"):n.vars.animationLoop?n.directionNav.removeClass(e).removeAttr("tabindex"):0===n.animatingTo?n.directionNav.removeClass(e).filter("."+i+"prev").addClass(e).attr("tabindex","-1"):n.animatingTo===n.last?n.directionNav.removeClass(e).filter("."+i+"next").addClass(e).attr("tabindex","-1"):n.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=$('
      ');n.controlsContainer?(n.controlsContainer.append(e),n.pausePlay=$("."+i+"pauseplay a",n.controlsContainer)):(n.append(e),n.pausePlay=$("."+i+"pauseplay a",n)),f.pausePlay.update(n.vars.slideshow?i+"pause":i+"play"),n.pausePlay.bind(o,function(e){e.preventDefault(),""!==l&&l!==e.type||($(this).hasClass(i+"pause")?(n.manualPause=!0,n.manualPlay=!1,n.pause()):(n.manualPause=!1,n.manualPlay=!0,n.play())),""===l&&(l=e.type),f.setToClearWatchedEvent()})},update:function(e){"play"===e?n.pausePlay.removeClass(i+"pause").addClass(i+"play").html(n.vars.playText):n.pausePlay.removeClass(i+"play").addClass(i+"pause").html(n.vars.pauseText)}},touch:function(){function e(e){e.stopPropagation(),n.animating?e.preventDefault():(n.pause(),t._gesture.addPointer(e.pointerId),w=0,c=d?n.h:n.w,f=Number(new Date),l=v&&u&&n.animatingTo===n.last?0:v&&u?n.limit-(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo:v&&n.currentSlide===n.last?n.limit:v?(n.itemW+n.vars.itemMargin)*n.move*n.currentSlide:u?(n.last-n.currentSlide+n.cloneOffset)*c:(n.currentSlide+n.cloneOffset)*c)}function a(e){e.stopPropagation();var a=e.target._slider;if(a){var n=-e.translationX,i=-e.translationY;if(w+=d?i:n,m=(a.vars.rtl?-1:1)*w,x=d?Math.abs(w)500)&&(e.preventDefault(),!p&&a.transitions&&(a.vars.animationLoop||(m=w/(0===a.currentSlide&&w<0||a.currentSlide===a.last&&w>0?Math.abs(w)/c+2:1)),a.setProps(l+m,"setTouch")))}}function i(e){e.stopPropagation();var t=e.target._slider;if(t){if(t.animatingTo===t.currentSlide&&!x&&null!==m){var a=u?-m:m,n=a>0?t.getTarget("next"):t.getTarget("prev");t.canAdvance(n)&&(Number(new Date)-f<550&&Math.abs(a)>50||Math.abs(a)>c/2)?t.flexAnimate(n,t.vars.pauseOnAction):p||t.flexAnimate(t.currentSlide,t.vars.pauseOnAction,!0)}s=null,o=null,m=null,l=null,w=0}}var s,o,l,c,m,f,g,h,S,x=!1,y=0,b=0,w=0;r?(t.style.msTouchAction="none",t._gesture=new MSGesture,t._gesture.target=t,t.addEventListener("MSPointerDown",e,!1),t._slider=n,t.addEventListener("MSGestureChange",a,!1),t.addEventListener("MSGestureEnd",i,!1)):(g=function(e){n.animating?e.preventDefault():(window.navigator.msPointerEnabled||1===e.touches.length)&&(n.pause(),c=d?n.h:n.w,f=Number(new Date),y=e.touches[0].pageX,b=e.touches[0].pageY,l=v&&u&&n.animatingTo===n.last?0:v&&u?n.limit-(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo:v&&n.currentSlide===n.last?n.limit:v?(n.itemW+n.vars.itemMargin)*n.move*n.currentSlide:u?(n.last-n.currentSlide+n.cloneOffset)*c:(n.currentSlide+n.cloneOffset)*c,s=d?b:y,o=d?y:b,t.addEventListener("touchmove",h,!1),t.addEventListener("touchend",S,!1))},h=function(e){y=e.touches[0].pageX,b=e.touches[0].pageY,m=d?s-b:(n.vars.rtl?-1:1)*(s-y),x=d?Math.abs(m)500)&&(e.preventDefault(),!p&&n.transitions&&(n.vars.animationLoop||(m/=0===n.currentSlide&&m<0||n.currentSlide===n.last&&m>0?Math.abs(m)/c+2:1),n.setProps(l+m,"setTouch")))},S=function(e){if(t.removeEventListener("touchmove",h,!1),n.animatingTo===n.currentSlide&&!x&&null!==m){var a=u?-m:m,i=a>0?n.getTarget("next"):n.getTarget("prev");n.canAdvance(i)&&(Number(new Date)-f<550&&Math.abs(a)>50||Math.abs(a)>c/2)?n.flexAnimate(i,n.vars.pauseOnAction):p||n.flexAnimate(n.currentSlide,n.vars.pauseOnAction,!0)}t.removeEventListener("touchend",S,!1),s=null,o=null,m=null,l=null},t.addEventListener("touchstart",g,!1))},resize:function(){!n.animating&&n.is(":visible")&&(v||n.doMath(),p?f.smoothHeight():v?(n.slides.width(n.computedW),n.update(n.pagingCount),n.setProps()):d?(n.viewport.height(n.h),n.setProps(n.h,"setTotal")):(n.vars.smoothHeight&&f.smoothHeight(),n.newSlides.width(n.computedW),n.setProps(n.computedW,"setTotal")))},smoothHeight:function(e){if(!d||p){var t=p?n:n.viewport;e?t.animate({height:n.slides.eq(n.animatingTo).innerHeight()},e):t.innerHeight(n.slides.eq(n.animatingTo).innerHeight())}},sync:function(e){var t=$(n.vars.sync).data("flexslider"),a=n.animatingTo;switch(e){case"animate":t.flexAnimate(a,n.vars.pauseOnAction,!1,!0);break;case"play":t.playing||t.asNav||t.play();break;case"pause":t.pause();break}},uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=$(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:{visProp:null,init:function(){var e=f.pauseInvisible.getHiddenProp();if(e){var t=e.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(t,function(){f.pauseInvisible.isHidden()?n.startTimeout?clearTimeout(n.startTimeout):n.pause():n.started?n.play():n.vars.initDelay>0?setTimeout(n.play,n.vars.initDelay):n.play()})}},isHidden:function(){var e=f.pauseInvisible.getHiddenProp();return!!e&&document[e]},getHiddenProp:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;tn.currentSlide?"next":"prev"),m&&1===n.pagingCount&&(n.direction=n.currentItemn.limit&&1!==n.visible?n.limit:S):h=0===n.currentSlide&&e===n.count-1&&n.vars.animationLoop&&"next"!==n.direction?u?(n.count+n.cloneOffset)*c:0:n.currentSlide===n.last&&0===e&&n.vars.animationLoop&&"prev"!==n.direction?u?0:(n.count+1)*c:u?(n.count-1-e+n.cloneOffset)*c:(e+n.cloneOffset)*c,n.setProps(h,"",n.vars.animationSpeed),n.transitions?(n.vars.animationLoop&&n.atEnd||(n.animating=!1,n.currentSlide=n.animatingTo),n.container.unbind("webkitTransitionEnd transitionend"),n.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(n.ensureAnimationEnd),n.wrapup(c)}),clearTimeout(n.ensureAnimationEnd),n.ensureAnimationEnd=setTimeout(function(){n.wrapup(c)},n.vars.animationSpeed+100)):n.container.animate(n.args,n.vars.animationSpeed,n.vars.easing,function(){n.wrapup(c)})}n.vars.smoothHeight&&f.smoothHeight(n.vars.animationSpeed)}},n.wrapup=function(e){p||v||(0===n.currentSlide&&n.animatingTo===n.last&&n.vars.animationLoop?n.setProps(e,"jumpEnd"):n.currentSlide===n.last&&0===n.animatingTo&&n.vars.animationLoop&&n.setProps(e,"jumpStart")),n.animating=!1,n.currentSlide=n.animatingTo,n.vars.after(n)},n.animateSlides=function(){!n.animating&&e&&n.flexAnimate(n.getTarget("next"))},n.pause=function(){clearInterval(n.animatedSlides),n.animatedSlides=null,n.playing=!1,n.vars.pausePlay&&f.pausePlay.update("play"),n.syncExists&&f.sync("pause")},n.play=function(){n.playing&&clearInterval(n.animatedSlides),n.animatedSlides=n.animatedSlides||setInterval(n.animateSlides,n.vars.slideshowSpeed),n.started=n.playing=!0,n.vars.pausePlay&&f.pausePlay.update("pause"),n.syncExists&&f.sync("play")},n.stop=function(){n.pause(),n.stopped=!0},n.canAdvance=function(e,t){var a=m?n.pagingCount-1:n.last;return!!t||(!(!m||n.currentItem!==n.count-1||0!==e||"prev"!==n.direction)||(!m||0!==n.currentItem||e!==n.pagingCount-1||"next"===n.direction)&&(!(e===n.currentSlide&&!m)&&(!!n.vars.animationLoop||(!n.atEnd||0!==n.currentSlide||e!==a||"next"===n.direction)&&(!n.atEnd||n.currentSlide!==a||0!==e||"next"!==n.direction))))},n.getTarget=function(e){return n.direction=e,"next"===e?n.currentSlide===n.last?0:n.currentSlide+1:0===n.currentSlide?n.last:n.currentSlide-1},n.setProps=function(e,t,a){var i=function(){var a=e||(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo;return function(){if(v)return"setTouch"===t?e:u&&n.animatingTo===n.last?0:u?n.limit-(n.itemW+n.vars.itemMargin)*n.move*n.animatingTo:n.animatingTo===n.last?n.limit:a;switch(t){case"setTotal":return u?(n.count-1-n.currentSlide+n.cloneOffset)*e:(n.currentSlide+n.cloneOffset)*e;case"setTouch":return e;case"jumpEnd":return u?e:n.count*e;case"jumpStart":return u?n.count*e:e;default:return e}}()*(n.vars.rtl?1:-1)+"px"}();n.transitions&&(i=n.isFirefox?d?"translate3d(0,"+i+",0)":"translate3d("+parseInt(i)+"px,0,0)":d?"translate3d(0,"+i+",0)":"translate3d("+(n.vars.rtl?-1:1)*parseInt(i)+"px,0,0)",a=void 0!==a?a/1e3+"s":"0s",n.container.css("-"+n.pfx+"-transition-duration",a),n.container.css("transition-duration",a)),n.args[n.prop]=i,(n.transitions||void 0===a)&&n.container.css(n.args),n.container.css("transform",i)},n.setup=function(e){if(p)n.vars.rtl?n.slides.css({width:"100%",float:"right",marginLeft:"-100%",position:"relative"}):n.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===e&&(s?n.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+n.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(n.currentSlide).css({opacity:1,zIndex:2}):0==n.vars.fadeFirstSlide?n.slides.css({opacity:0,display:"block",zIndex:1}).eq(n.currentSlide).css({zIndex:2}).css({opacity:1}):n.slides.css({opacity:0,display:"block",zIndex:1}).eq(n.currentSlide).css({zIndex:2}).animate({opacity:1},n.vars.animationSpeed,n.vars.easing)),n.vars.smoothHeight&&f.smoothHeight();else{var t,a;"init"===e&&(n.viewport=$('
      ').css({overflow:"hidden",position:"relative"}).appendTo(n).append(n.container),n.cloneCount=0,n.cloneOffset=0,u&&(a=$.makeArray(n.slides).reverse(),n.slides=$(a),n.container.empty().append(n.slides))),n.vars.animationLoop&&!v&&(n.cloneCount=2,n.cloneOffset=1,"init"!==e&&n.container.find(".clone").remove(),n.container.append(f.uniqueID(n.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(f.uniqueID(n.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),n.newSlides=$(n.vars.selector,n),t=u?n.count-1-n.currentSlide+n.cloneOffset:n.currentSlide+n.cloneOffset,d&&!v?(n.container.height(200*(n.count+n.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){n.newSlides.css({display:"block"}),n.doMath(),n.viewport.height(n.h),n.setProps(t*n.h,"init")},"init"===e?100:0)):(n.container.width(200*(n.count+n.cloneCount)+"%"),n.setProps(t*n.computedW,"init"),setTimeout(function(){n.doMath(),n.vars.rtl&&n.isFirefox?n.newSlides.css({width:n.computedW,marginRight:n.computedM,float:"right",display:"block"}):n.newSlides.css({width:n.computedW,marginRight:n.computedM,float:"left",display:"block"}),n.vars.smoothHeight&&f.smoothHeight()},"init"===e?100:0))}v||n.slides.removeClass(i+"active-slide").eq(n.currentSlide).addClass(i+"active-slide"),n.vars.init(n)},n.doMath=function(){var e=n.slides.first(),t=n.vars.itemMargin,a=n.vars.minItems,i=n.vars.maxItems;n.w=void 0===n.viewport?n.width():n.viewport.width(),n.isFirefox&&(n.w=n.width()),n.h=e.height(),n.boxPadding=e.outerWidth()-e.width(),v?(n.itemT=n.vars.itemWidth+t,n.itemM=t,n.minW=a?a*n.itemT:n.w,n.maxW=i?i*n.itemT-t:n.w,n.itemW=n.minW>n.w?(n.w-t*(a-1))/a:n.maxWn.w?n.w:n.vars.itemWidth,n.visible=Math.floor(n.w/n.itemW),n.move=n.vars.move>0&&n.vars.moven.w?n.itemW*(n.count-1)+t*(n.count-1):(n.itemW+t)*n.count-n.w-t):(n.itemW=n.w,n.itemM=t,n.pagingCount=n.count,n.last=n.count-1),n.computedW=n.itemW-n.boxPadding,n.computedM=n.itemM},n.update=function(e,t){n.doMath(),v||(en.controlNav.length?f.controlNav.update("add"):("remove"===t&&!v||n.pagingCountn.last&&(n.currentSlide-=1,n.animatingTo-=1),f.controlNav.update("remove",n.last))),n.vars.directionNav&&f.directionNav.update()},n.addSlide=function(e,t){var a=$(e);n.count+=1,n.last=n.count-1,d&&u?void 0!==t?n.slides.eq(n.count-t).after(a):n.container.prepend(a):void 0!==t?n.slides.eq(t).before(a):n.container.append(a),n.update(t,"add"),n.slides=$(n.vars.selector+":not(.clone)",n),n.setup(),n.vars.added(n)},n.removeSlide=function(e){var t=isNaN(e)?n.slides.index($(e)):e;n.count-=1,n.last=n.count-1,isNaN(e)?$(e,n.slides).remove():d&&u?n.slides.eq(n.last).remove():n.slides.eq(e).remove(),n.doMath(),n.update(t,"remove"),n.slides=$(n.vars.selector+":not(.clone)",n),n.setup(),n.vars.removed(n)},f.init()},$(window).blur(function(t){e=!1}).focus(function(t){e=!0}),$.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,isFirefox:!1,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){},rtl:!1},$.fn.flexslider=function(e){if(void 0===e&&(e={}),"object"==typeof e)return this.each(function(){var t=$(this),a=e.selector?e.selector:".slides > li",n=t.find(a);1===n.length&&!1===e.allowOneSlide||0===n.length?(n.fadeIn(400),e.start&&e.start(t)):void 0===t.data("flexslider")&&new $.flexslider(this,e)});var t=$(this).data("flexslider");switch(e){case"play":t.play();break;case"pause":t.pause();break;case"stop":t.stop();break;case"next":t.flexAnimate(t.getTarget("next"),!0);break;case"prev":case"previous":t.flexAnimate(t.getTarget("prev"),!0);break;default:"number"==typeof e&&t.flexAnimate(e,!0)}}}(jQuery); \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/lib/flexslider/js/jquery.flexslider.js b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/lib/flexslider/js/jquery.flexslider.js new file mode 100644 index 00000000..0b3c649e --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/lib/flexslider/js/jquery.flexslider.js @@ -0,0 +1,1232 @@ +/* + * jQuery FlexSlider v2.7.1 + * Copyright 2012 WooThemes + * Contributing Author: Tyler Smith + */ +; +(function ($) { + + var focused = true; + + //FlexSlider: Object Instance + $.flexslider = function(el, options) { + var slider = $(el); + + // making variables public + + //if rtl value was not passed and html is in rtl..enable it by default. + if(typeof options.rtl=='undefined' && $('html').attr('dir')=='rtl'){ + options.rtl=true; + } + slider.vars = $.extend({}, $.flexslider.defaults, options); + + var namespace = slider.vars.namespace, + msGesture = window.navigator && window.navigator.msPointerEnabled && window.MSGesture, + touch = (( "ontouchstart" in window ) || msGesture || window.DocumentTouch && document instanceof DocumentTouch) && slider.vars.touch, + // deprecating this idea, as devices are being released with both of these events + eventType = "click touchend MSPointerUp keyup", + watchedEvent = "", + watchedEventClearTimer, + vertical = slider.vars.direction === "vertical", + reverse = slider.vars.reverse, + carousel = (slider.vars.itemWidth > 0), + fade = slider.vars.animation === "fade", + asNav = slider.vars.asNavFor !== "", + methods = {}; + + // Store a reference to the slider object + $.data(el, "flexslider", slider); + + // Private slider methods + methods = { + init: function() { + slider.animating = false; + // Get current slide and make sure it is a number + slider.currentSlide = parseInt( ( slider.vars.startAt ? slider.vars.startAt : 0), 10 ); + if ( isNaN( slider.currentSlide ) ) { slider.currentSlide = 0; } + slider.animatingTo = slider.currentSlide; + slider.atEnd = (slider.currentSlide === 0 || slider.currentSlide === slider.last); + slider.containerSelector = slider.vars.selector.substr(0,slider.vars.selector.search(' ')); + slider.slides = $(slider.vars.selector, slider); + slider.container = $(slider.containerSelector, slider); + slider.count = slider.slides.length; + // SYNC: + slider.syncExists = $(slider.vars.sync).length > 0; + // SLIDE: + if (slider.vars.animation === "slide") { slider.vars.animation = "swing"; } + slider.prop = (vertical) ? "top" : ( slider.vars.rtl ? "marginRight" : "marginLeft" ); + slider.args = {}; + // SLIDESHOW: + slider.manualPause = false; + slider.stopped = false; + //PAUSE WHEN INVISIBLE + slider.started = false; + slider.startTimeout = null; + // TOUCH/USECSS: + slider.transitions = !slider.vars.video && !fade && slider.vars.useCSS && (function() { + var obj = document.createElement('div'), + props = ['perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective']; + for (var i in props) { + if ( obj.style[ props[i] ] !== undefined ) { + slider.pfx = props[i].replace('Perspective','').toLowerCase(); + slider.prop = "-" + slider.pfx + "-transform"; + return true; + } + } + return false; + }()); + slider.isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; + slider.ensureAnimationEnd = ''; + // CONTROLSCONTAINER: + if (slider.vars.controlsContainer !== "") slider.controlsContainer = $(slider.vars.controlsContainer).length > 0 && $(slider.vars.controlsContainer); + // MANUAL: + if (slider.vars.manualControls !== "") slider.manualControls = $(slider.vars.manualControls).length > 0 && $(slider.vars.manualControls); + + // CUSTOM DIRECTION NAV: + if (slider.vars.customDirectionNav !== "") slider.customDirectionNav = $(slider.vars.customDirectionNav).length === 2 && $(slider.vars.customDirectionNav); + + // RANDOMIZE: + if (slider.vars.randomize) { + slider.slides.sort(function() { return (Math.round(Math.random())-0.5); }); + slider.container.empty().append(slider.slides); + } + + slider.doMath(); + + // INIT + slider.setup("init"); + + // CONTROLNAV: + if (slider.vars.controlNav) { methods.controlNav.setup(); } + + // DIRECTIONNAV: + if (slider.vars.directionNav) { methods.directionNav.setup(); } + + // KEYBOARD: + if (slider.vars.keyboard && ($(slider.containerSelector).length === 1 || slider.vars.multipleKeyboard)) { + $(document).bind('keyup', function(event) { + var keycode = event.keyCode; + if (!slider.animating && (keycode === 39 || keycode === 37)) { + var target = (slider.vars.rtl? + ((keycode === 37) ? slider.getTarget('next') : + (keycode === 39) ? slider.getTarget('prev') : false) + : + ((keycode === 39) ? slider.getTarget('next') : + (keycode === 37) ? slider.getTarget('prev') : false) + ) + ; + slider.flexAnimate(target, slider.vars.pauseOnAction); + } + }); + } + // MOUSEWHEEL: + if (slider.vars.mousewheel) { + slider.bind('mousewheel', function(event, delta, deltaX, deltaY) { + event.preventDefault(); + var target = (delta < 0) ? slider.getTarget('next') : slider.getTarget('prev'); + slider.flexAnimate(target, slider.vars.pauseOnAction); + }); + } + + // PAUSEPLAY + if (slider.vars.pausePlay) { methods.pausePlay.setup(); } + + //PAUSE WHEN INVISIBLE + if (slider.vars.slideshow && slider.vars.pauseInvisible) { methods.pauseInvisible.init(); } + + // SLIDSESHOW + if (slider.vars.slideshow) { + if (slider.vars.pauseOnHover) { + slider.hover(function() { + if (!slider.manualPlay && !slider.manualPause) { slider.pause(); } + }, function() { + if (!slider.manualPause && !slider.manualPlay && !slider.stopped) { slider.play(); } + }); + } + // initialize animation + //If we're visible, or we don't use PageVisibility API + if(!slider.vars.pauseInvisible || !methods.pauseInvisible.isHidden()) { + (slider.vars.initDelay > 0) ? slider.startTimeout = setTimeout(slider.play, slider.vars.initDelay) : slider.play(); + } + } + + // ASNAV: + if (asNav) { methods.asNav.setup(); } + + // TOUCH + if (touch && slider.vars.touch) { methods.touch(); } + + // FADE&&SMOOTHHEIGHT || SLIDE: + if (!fade || (fade && slider.vars.smoothHeight)) { $(window).bind("resize orientationchange focus", methods.resize); } + + slider.find("img").attr("draggable", "false"); + + // API: start() Callback + setTimeout(function(){ + slider.vars.start(slider); + }, 200); + }, + asNav: { + setup: function() { + slider.asNav = true; + slider.animatingTo = Math.floor(slider.currentSlide/slider.move); + slider.currentItem = slider.currentSlide; + slider.slides.removeClass(namespace + "active-slide").eq(slider.currentItem).addClass(namespace + "active-slide"); + if(!msGesture){ + slider.slides.on(eventType, function(e){ + e.preventDefault(); + var $slide = $(this), + target = $slide.index(); + var posFromX; + if(slider.vars.rtl){ + posFromX = -1*($slide.offset().right - $(slider).scrollLeft()); // Find position of slide relative to right of slider container + } + else + { + posFromX = $slide.offset().left - $(slider).scrollLeft(); // Find position of slide relative to left of slider container + } + if( posFromX <= 0 && $slide.hasClass( namespace + 'active-slide' ) ) { + slider.flexAnimate(slider.getTarget("prev"), true); + } else if (!$(slider.vars.asNavFor).data('flexslider').animating && !$slide.hasClass(namespace + "active-slide")) { + slider.direction = (slider.currentItem < target) ? "next" : "prev"; + slider.flexAnimate(target, slider.vars.pauseOnAction, false, true, true); + } + }); + }else{ + el._slider = slider; + slider.slides.each(function (){ + var that = this; + that._gesture = new MSGesture(); + that._gesture.target = that; + that.addEventListener("MSPointerDown", function (e){ + e.preventDefault(); + if(e.currentTarget._gesture) { + e.currentTarget._gesture.addPointer(e.pointerId); + } + }, false); + that.addEventListener("MSGestureTap", function (e){ + e.preventDefault(); + var $slide = $(this), + target = $slide.index(); + if (!$(slider.vars.asNavFor).data('flexslider').animating && !$slide.hasClass('active')) { + slider.direction = (slider.currentItem < target) ? "next" : "prev"; + slider.flexAnimate(target, slider.vars.pauseOnAction, false, true, true); + } + }); + }); + } + } + }, + controlNav: { + setup: function() { + if (!slider.manualControls) { + methods.controlNav.setupPaging(); + } else { // MANUALCONTROLS: + methods.controlNav.setupManual(); + } + }, + setupPaging: function() { + var type = (slider.vars.controlNav === "thumbnails") ? 'control-thumbs' : 'control-paging', + j = 1, + item, + slide; + + slider.controlNavScaffold = $('
        '); + + if (slider.pagingCount > 1) { + for (var i = 0; i < slider.pagingCount; i++) { + slide = slider.slides.eq(i); + if ( undefined === slide.attr( 'data-thumb-alt' ) ) { slide.attr( 'data-thumb-alt', '' ); } + var altText = ( '' !== slide.attr( 'data-thumb-alt' ) ) ? altText = ' alt="' + slide.attr( 'data-thumb-alt' ) + '"' : ''; + item = (slider.vars.controlNav === "thumbnails") ? '' : '' + j + ''; + if ( 'thumbnails' === slider.vars.controlNav && true === slider.vars.thumbCaptions ) { + var captn = slide.attr( 'data-thumbcaption' ); + if ( '' !== captn && undefined !== captn ) { item += '' + captn + ''; } + } + slider.controlNavScaffold.append('
      1. ' + item + '
      2. '); + j++; + } + } + + // CONTROLSCONTAINER: + (slider.controlsContainer) ? $(slider.controlsContainer).append(slider.controlNavScaffold) : slider.append(slider.controlNavScaffold); + methods.controlNav.set(); + + methods.controlNav.active(); + + slider.controlNavScaffold.delegate('a, img', eventType, function(event) { + event.preventDefault(); + + if (watchedEvent === "" || watchedEvent === event.type) { + var $this = $(this), + target = slider.controlNav.index($this); + + if (!$this.hasClass(namespace + 'active')) { + slider.direction = (target > slider.currentSlide) ? "next" : "prev"; + slider.flexAnimate(target, slider.vars.pauseOnAction); + } + } + + // setup flags to prevent event duplication + if (watchedEvent === "") { + watchedEvent = event.type; + } + methods.setToClearWatchedEvent(); + + }); + }, + setupManual: function() { + slider.controlNav = slider.manualControls; + methods.controlNav.active(); + + slider.controlNav.bind(eventType, function(event) { + event.preventDefault(); + + if (watchedEvent === "" || watchedEvent === event.type) { + var $this = $(this), + target = slider.controlNav.index($this); + + if (!$this.hasClass(namespace + 'active')) { + (target > slider.currentSlide) ? slider.direction = "next" : slider.direction = "prev"; + slider.flexAnimate(target, slider.vars.pauseOnAction); + } + } + + // setup flags to prevent event duplication + if (watchedEvent === "") { + watchedEvent = event.type; + } + methods.setToClearWatchedEvent(); + }); + }, + set: function() { + var selector = (slider.vars.controlNav === "thumbnails") ? 'img' : 'a'; + slider.controlNav = $('.' + namespace + 'control-nav li ' + selector, (slider.controlsContainer) ? slider.controlsContainer : slider); + }, + active: function() { + slider.controlNav.removeClass(namespace + "active").eq(slider.animatingTo).addClass(namespace + "active"); + }, + update: function(action, pos) { + if (slider.pagingCount > 1 && action === "add") { + slider.controlNavScaffold.append($('
      3. ' + slider.count + '
      4. ')); + } else if (slider.pagingCount === 1) { + slider.controlNavScaffold.find('li').remove(); + } else { + slider.controlNav.eq(pos).closest('li').remove(); + } + methods.controlNav.set(); + (slider.pagingCount > 1 && slider.pagingCount !== slider.controlNav.length) ? slider.update(pos, action) : methods.controlNav.active(); + } + }, + directionNav: { + setup: function() { + var directionNavScaffold = $(''); + + // CUSTOM DIRECTION NAV: + if (slider.customDirectionNav) { + slider.directionNav = slider.customDirectionNav; + // CONTROLSCONTAINER: + } else if (slider.controlsContainer) { + $(slider.controlsContainer).append(directionNavScaffold); + slider.directionNav = $('.' + namespace + 'direction-nav li a', slider.controlsContainer); + } else { + slider.append(directionNavScaffold); + slider.directionNav = $('.' + namespace + 'direction-nav li a', slider); + } + + methods.directionNav.update(); + + slider.directionNav.bind(eventType, function(event) { + event.preventDefault(); + var target; + + if (watchedEvent === "" || watchedEvent === event.type) { + target = ($(this).hasClass(namespace + 'next')) ? slider.getTarget('next') : slider.getTarget('prev'); + slider.flexAnimate(target, slider.vars.pauseOnAction); + } + + // setup flags to prevent event duplication + if (watchedEvent === "") { + watchedEvent = event.type; + } + methods.setToClearWatchedEvent(); + }); + }, + update: function() { + var disabledClass = namespace + 'disabled'; + if (slider.pagingCount === 1) { + slider.directionNav.addClass(disabledClass).attr('tabindex', '-1'); + } else if (!slider.vars.animationLoop) { + if (slider.animatingTo === 0) { + slider.directionNav.removeClass(disabledClass).filter('.' + namespace + "prev").addClass(disabledClass).attr('tabindex', '-1'); + } else if (slider.animatingTo === slider.last) { + slider.directionNav.removeClass(disabledClass).filter('.' + namespace + "next").addClass(disabledClass).attr('tabindex', '-1'); + } else { + slider.directionNav.removeClass(disabledClass).removeAttr('tabindex'); + } + } else { + slider.directionNav.removeClass(disabledClass).removeAttr('tabindex'); + } + } + }, + pausePlay: { + setup: function() { + var pausePlayScaffold = $('
        '); + + // CONTROLSCONTAINER: + if (slider.controlsContainer) { + slider.controlsContainer.append(pausePlayScaffold); + slider.pausePlay = $('.' + namespace + 'pauseplay a', slider.controlsContainer); + } else { + slider.append(pausePlayScaffold); + slider.pausePlay = $('.' + namespace + 'pauseplay a', slider); + } + + methods.pausePlay.update((slider.vars.slideshow) ? namespace + 'pause' : namespace + 'play'); + + slider.pausePlay.bind(eventType, function(event) { + event.preventDefault(); + + if (watchedEvent === "" || watchedEvent === event.type) { + if ($(this).hasClass(namespace + 'pause')) { + slider.manualPause = true; + slider.manualPlay = false; + slider.pause(); + } else { + slider.manualPause = false; + slider.manualPlay = true; + slider.play(); + } + } + + // setup flags to prevent event duplication + if (watchedEvent === "") { + watchedEvent = event.type; + } + methods.setToClearWatchedEvent(); + }); + }, + update: function(state) { + (state === "play") ? slider.pausePlay.removeClass(namespace + 'pause').addClass(namespace + 'play').html(slider.vars.playText) : slider.pausePlay.removeClass(namespace + 'play').addClass(namespace + 'pause').html(slider.vars.pauseText); + } + }, + touch: function() { + var startX, + startY, + offset, + cwidth, + dx, + startT, + onTouchStart, + onTouchMove, + onTouchEnd, + scrolling = false, + localX = 0, + localY = 0, + accDx = 0; + + if(!msGesture){ + onTouchStart = function(e) { + if (slider.animating) { + e.preventDefault(); + } else if ( ( window.navigator.msPointerEnabled ) || e.touches.length === 1 ) { + slider.pause(); + // CAROUSEL: + cwidth = (vertical) ? slider.h : slider. w; + startT = Number(new Date()); + // CAROUSEL: + + // Local vars for X and Y points. + localX = e.touches[0].pageX; + localY = e.touches[0].pageY; + + offset = (carousel && reverse && slider.animatingTo === slider.last) ? 0 : + (carousel && reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) : + (carousel && slider.currentSlide === slider.last) ? slider.limit : + (carousel) ? ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.currentSlide : + (reverse) ? (slider.last - slider.currentSlide + slider.cloneOffset) * cwidth : (slider.currentSlide + slider.cloneOffset) * cwidth; + startX = (vertical) ? localY : localX; + startY = (vertical) ? localX : localY; + el.addEventListener('touchmove', onTouchMove, false); + el.addEventListener('touchend', onTouchEnd, false); + } + }; + + onTouchMove = function(e) { + // Local vars for X and Y points. + + localX = e.touches[0].pageX; + localY = e.touches[0].pageY; + + dx = (vertical) ? startX - localY : (slider.vars.rtl?-1:1)*(startX - localX); + scrolling = (vertical) ? (Math.abs(dx) < Math.abs(localX - startY)) : (Math.abs(dx) < Math.abs(localY - startY)); + var fxms = 500; + + if ( ! scrolling || Number( new Date() ) - startT > fxms ) { + e.preventDefault(); + if (!fade && slider.transitions) { + if (!slider.vars.animationLoop) { + dx = dx/((slider.currentSlide === 0 && dx < 0 || slider.currentSlide === slider.last && dx > 0) ? (Math.abs(dx)/cwidth+2) : 1); + } + slider.setProps(offset + dx, "setTouch"); + } + } + }; + + onTouchEnd = function(e) { + // finish the touch by undoing the touch session + el.removeEventListener('touchmove', onTouchMove, false); + + if (slider.animatingTo === slider.currentSlide && !scrolling && !(dx === null)) { + var updateDx = (reverse) ? -dx : dx, + target = (updateDx > 0) ? slider.getTarget('next') : slider.getTarget('prev'); + + if (slider.canAdvance(target) && (Number(new Date()) - startT < 550 && Math.abs(updateDx) > 50 || Math.abs(updateDx) > cwidth/2)) { + slider.flexAnimate(target, slider.vars.pauseOnAction); + } else { + if (!fade) { slider.flexAnimate(slider.currentSlide, slider.vars.pauseOnAction, true); } + } + } + el.removeEventListener('touchend', onTouchEnd, false); + + startX = null; + startY = null; + dx = null; + offset = null; + }; + + el.addEventListener('touchstart', onTouchStart, false); + }else{ + el.style.msTouchAction = "none"; + el._gesture = new MSGesture(); + el._gesture.target = el; + el.addEventListener("MSPointerDown", onMSPointerDown, false); + el._slider = slider; + el.addEventListener("MSGestureChange", onMSGestureChange, false); + el.addEventListener("MSGestureEnd", onMSGestureEnd, false); + + function onMSPointerDown(e){ + e.stopPropagation(); + if (slider.animating) { + e.preventDefault(); + }else{ + slider.pause(); + el._gesture.addPointer(e.pointerId); + accDx = 0; + cwidth = (vertical) ? slider.h : slider. w; + startT = Number(new Date()); + // CAROUSEL: + + offset = (carousel && reverse && slider.animatingTo === slider.last) ? 0 : + (carousel && reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) : + (carousel && slider.currentSlide === slider.last) ? slider.limit : + (carousel) ? ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.currentSlide : + (reverse) ? (slider.last - slider.currentSlide + slider.cloneOffset) * cwidth : (slider.currentSlide + slider.cloneOffset) * cwidth; + } + } + + function onMSGestureChange(e) { + e.stopPropagation(); + var slider = e.target._slider; + if(!slider){ + return; + } + var transX = -e.translationX, + transY = -e.translationY; + + //Accumulate translations. + accDx = accDx + ((vertical) ? transY : transX); + dx = (slider.vars.rtl?-1:1)*accDx; + scrolling = (vertical) ? (Math.abs(accDx) < Math.abs(-transX)) : (Math.abs(accDx) < Math.abs(-transY)); + + if(e.detail === e.MSGESTURE_FLAG_INERTIA){ + setImmediate(function (){ + el._gesture.stop(); + }); + + return; + } + + if (!scrolling || Number(new Date()) - startT > 500) { + e.preventDefault(); + if (!fade && slider.transitions) { + if (!slider.vars.animationLoop) { + dx = accDx / ((slider.currentSlide === 0 && accDx < 0 || slider.currentSlide === slider.last && accDx > 0) ? (Math.abs(accDx) / cwidth + 2) : 1); + } + slider.setProps(offset + dx, "setTouch"); + } + } + } + + function onMSGestureEnd(e) { + e.stopPropagation(); + var slider = e.target._slider; + if(!slider){ + return; + } + if (slider.animatingTo === slider.currentSlide && !scrolling && !(dx === null)) { + var updateDx = (reverse) ? -dx : dx, + target = (updateDx > 0) ? slider.getTarget('next') : slider.getTarget('prev'); + + if (slider.canAdvance(target) && (Number(new Date()) - startT < 550 && Math.abs(updateDx) > 50 || Math.abs(updateDx) > cwidth/2)) { + slider.flexAnimate(target, slider.vars.pauseOnAction); + } else { + if (!fade) { slider.flexAnimate(slider.currentSlide, slider.vars.pauseOnAction, true); } + } + } + + startX = null; + startY = null; + dx = null; + offset = null; + accDx = 0; + } + } + }, + resize: function() { + if (!slider.animating && slider.is(':visible')) { + if (!carousel) { slider.doMath(); } + + if (fade) { + // SMOOTH HEIGHT: + methods.smoothHeight(); + } else if (carousel) { //CAROUSEL: + slider.slides.width(slider.computedW); + slider.update(slider.pagingCount); + slider.setProps(); + } + else if (vertical) { //VERTICAL: + slider.viewport.height(slider.h); + slider.setProps(slider.h, "setTotal"); + } else { + // SMOOTH HEIGHT: + if (slider.vars.smoothHeight) { methods.smoothHeight(); } + slider.newSlides.width(slider.computedW); + slider.setProps(slider.computedW, "setTotal"); + } + } + }, + smoothHeight: function(dur) { + if (!vertical || fade) { + var $obj = (fade) ? slider : slider.viewport; + (dur) ? $obj.animate({"height": slider.slides.eq(slider.animatingTo).innerHeight()}, dur) : $obj.innerHeight(slider.slides.eq(slider.animatingTo).innerHeight()); + } + }, + sync: function(action) { + var $obj = $(slider.vars.sync).data("flexslider"), + target = slider.animatingTo; + + switch (action) { + case "animate": $obj.flexAnimate(target, slider.vars.pauseOnAction, false, true); break; + case "play": if (!$obj.playing && !$obj.asNav) { $obj.play(); } break; + case "pause": $obj.pause(); break; + } + }, + uniqueID: function($clone) { + // Append _clone to current level and children elements with id attributes + $clone.filter( '[id]' ).add($clone.find( '[id]' )).each(function() { + var $this = $(this); + $this.attr( 'id', $this.attr( 'id' ) + '_clone' ); + }); + return $clone; + }, + pauseInvisible: { + visProp: null, + init: function() { + var visProp = methods.pauseInvisible.getHiddenProp(); + if (visProp) { + var evtname = visProp.replace(/[H|h]idden/,'') + 'visibilitychange'; + document.addEventListener(evtname, function() { + if (methods.pauseInvisible.isHidden()) { + if(slider.startTimeout) { + clearTimeout(slider.startTimeout); //If clock is ticking, stop timer and prevent from starting while invisible + } else { + slider.pause(); //Or just pause + } + } + else { + if(slider.started) { + slider.play(); //Initiated before, just play + } else { + if (slider.vars.initDelay > 0) { + setTimeout(slider.play, slider.vars.initDelay); + } else { + slider.play(); //Didn't init before: simply init or wait for it + } + } + } + }); + } + }, + isHidden: function() { + var prop = methods.pauseInvisible.getHiddenProp(); + if (!prop) { + return false; + } + return document[prop]; + }, + getHiddenProp: function() { + var prefixes = ['webkit','moz','ms','o']; + // if 'hidden' is natively supported just return it + if ('hidden' in document) { + return 'hidden'; + } + // otherwise loop over all the known prefixes until we find one + for ( var i = 0; i < prefixes.length; i++ ) { + if ((prefixes[i] + 'Hidden') in document) { + return prefixes[i] + 'Hidden'; + } + } + // otherwise it's not supported + return null; + } + }, + setToClearWatchedEvent: function() { + clearTimeout(watchedEventClearTimer); + watchedEventClearTimer = setTimeout(function() { + watchedEvent = ""; + }, 3000); + } + }; + + // public methods + slider.flexAnimate = function(target, pause, override, withSync, fromNav) { + if (!slider.vars.animationLoop && target !== slider.currentSlide) { + slider.direction = (target > slider.currentSlide) ? "next" : "prev"; + } + + if (asNav && slider.pagingCount === 1) slider.direction = (slider.currentItem < target) ? "next" : "prev"; + + if (!slider.animating && (slider.canAdvance(target, fromNav) || override) && slider.is(":visible")) { + if (asNav && withSync) { + var master = $(slider.vars.asNavFor).data('flexslider'); + slider.atEnd = target === 0 || target === slider.count - 1; + master.flexAnimate(target, true, false, true, fromNav); + slider.direction = (slider.currentItem < target) ? "next" : "prev"; + master.direction = slider.direction; + + if (Math.ceil((target + 1)/slider.visible) - 1 !== slider.currentSlide && target !== 0) { + slider.currentItem = target; + slider.slides.removeClass(namespace + "active-slide").eq(target).addClass(namespace + "active-slide"); + target = Math.floor(target/slider.visible); + } else { + slider.currentItem = target; + slider.slides.removeClass(namespace + "active-slide").eq(target).addClass(namespace + "active-slide"); + return false; + } + } + + slider.animating = true; + slider.animatingTo = target; + + // SLIDESHOW: + if (pause) { slider.pause(); } + + // API: before() animation Callback + slider.vars.before(slider); + + // SYNC: + if (slider.syncExists && !fromNav) { methods.sync("animate"); } + + // CONTROLNAV + if (slider.vars.controlNav) { methods.controlNav.active(); } + + // !CAROUSEL: + // CANDIDATE: slide active class (for add/remove slide) + if (!carousel) { slider.slides.removeClass(namespace + 'active-slide').eq(target).addClass(namespace + 'active-slide'); } + + // INFINITE LOOP: + // CANDIDATE: atEnd + slider.atEnd = target === 0 || target === slider.last; + + // DIRECTIONNAV: + if (slider.vars.directionNav) { methods.directionNav.update(); } + + if (target === slider.last) { + // API: end() of cycle Callback + slider.vars.end(slider); + // SLIDESHOW && !INFINITE LOOP: + if (!slider.vars.animationLoop) { slider.pause(); } + } + + // SLIDE: + if (!fade) { + var dimension = (vertical) ? slider.slides.filter(':first').height() : slider.computedW, + margin, slideString, calcNext; + + // INFINITE LOOP / REVERSE: + if (carousel) { + margin = slider.vars.itemMargin; + calcNext = ((slider.itemW + margin) * slider.move) * slider.animatingTo; + slideString = (calcNext > slider.limit && slider.visible !== 1) ? slider.limit : calcNext; + } else if (slider.currentSlide === 0 && target === slider.count - 1 && slider.vars.animationLoop && slider.direction !== "next") { + slideString = (reverse) ? (slider.count + slider.cloneOffset) * dimension : 0; + } else if (slider.currentSlide === slider.last && target === 0 && slider.vars.animationLoop && slider.direction !== "prev") { + slideString = (reverse) ? 0 : (slider.count + 1) * dimension; + } else { + slideString = (reverse) ? ((slider.count - 1) - target + slider.cloneOffset) * dimension : (target + slider.cloneOffset) * dimension; + } + slider.setProps(slideString, "", slider.vars.animationSpeed); + if (slider.transitions) { + if (!slider.vars.animationLoop || !slider.atEnd) { + slider.animating = false; + slider.currentSlide = slider.animatingTo; + } + + // Unbind previous transitionEnd events and re-bind new transitionEnd event + slider.container.unbind("webkitTransitionEnd transitionend"); + slider.container.bind("webkitTransitionEnd transitionend", function() { + clearTimeout(slider.ensureAnimationEnd); + slider.wrapup(dimension); + }); + + // Insurance for the ever-so-fickle transitionEnd event + clearTimeout(slider.ensureAnimationEnd); + slider.ensureAnimationEnd = setTimeout(function() { + slider.wrapup(dimension); + }, slider.vars.animationSpeed + 100); + + } else { + slider.container.animate(slider.args, slider.vars.animationSpeed, slider.vars.easing, function(){ + slider.wrapup(dimension); + }); + } + } else { // FADE: + if (!touch) { + slider.slides.eq(slider.currentSlide).css({"zIndex": 1}).animate({"opacity": 0}, slider.vars.animationSpeed, slider.vars.easing); + slider.slides.eq(target).css({"zIndex": 2}).animate({"opacity": 1}, slider.vars.animationSpeed, slider.vars.easing, slider.wrapup); + } else { + slider.slides.eq(slider.currentSlide).css({ "opacity": 0, "zIndex": 1 }); + slider.slides.eq(target).css({ "opacity": 1, "zIndex": 2 }); + slider.wrapup(dimension); + } + } + // SMOOTH HEIGHT: + if (slider.vars.smoothHeight) { methods.smoothHeight(slider.vars.animationSpeed); } + } + }; + slider.wrapup = function(dimension) { + // SLIDE: + if (!fade && !carousel) { + if (slider.currentSlide === 0 && slider.animatingTo === slider.last && slider.vars.animationLoop) { + slider.setProps(dimension, "jumpEnd"); + } else if (slider.currentSlide === slider.last && slider.animatingTo === 0 && slider.vars.animationLoop) { + slider.setProps(dimension, "jumpStart"); + } + } + slider.animating = false; + slider.currentSlide = slider.animatingTo; + // API: after() animation Callback + slider.vars.after(slider); + }; + + // SLIDESHOW: + slider.animateSlides = function() { + if (!slider.animating && focused ) { slider.flexAnimate(slider.getTarget("next")); } + }; + // SLIDESHOW: + slider.pause = function() { + clearInterval(slider.animatedSlides); + slider.animatedSlides = null; + slider.playing = false; + // PAUSEPLAY: + if (slider.vars.pausePlay) { methods.pausePlay.update("play"); } + // SYNC: + if (slider.syncExists) { methods.sync("pause"); } + }; + // SLIDESHOW: + slider.play = function() { + if (slider.playing) { clearInterval(slider.animatedSlides); } + slider.animatedSlides = slider.animatedSlides || setInterval(slider.animateSlides, slider.vars.slideshowSpeed); + slider.started = slider.playing = true; + // PAUSEPLAY: + if (slider.vars.pausePlay) { methods.pausePlay.update("pause"); } + // SYNC: + if (slider.syncExists) { methods.sync("play"); } + }; + // STOP: + slider.stop = function () { + slider.pause(); + slider.stopped = true; + }; + slider.canAdvance = function(target, fromNav) { + // ASNAV: + var last = (asNav) ? slider.pagingCount - 1 : slider.last; + return (fromNav) ? true : + (asNav && slider.currentItem === slider.count - 1 && target === 0 && slider.direction === "prev") ? true : + (asNav && slider.currentItem === 0 && target === slider.pagingCount - 1 && slider.direction !== "next") ? false : + (target === slider.currentSlide && !asNav) ? false : + (slider.vars.animationLoop) ? true : + (slider.atEnd && slider.currentSlide === 0 && target === last && slider.direction !== "next") ? false : + (slider.atEnd && slider.currentSlide === last && target === 0 && slider.direction === "next") ? false : + true; + }; + slider.getTarget = function(dir) { + slider.direction = dir; + if (dir === "next") { + return (slider.currentSlide === slider.last) ? 0 : slider.currentSlide + 1; + } else { + return (slider.currentSlide === 0) ? slider.last : slider.currentSlide - 1; + } + }; + + // SLIDE: + slider.setProps = function(pos, special, dur) { + var target = (function() { + var posCheck = (pos) ? pos : ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo, + posCalc = (function() { + if (carousel) { + return (special === "setTouch") ? pos : + (reverse && slider.animatingTo === slider.last) ? 0 : + (reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) : + (slider.animatingTo === slider.last) ? slider.limit : posCheck; + } else { + switch (special) { + case "setTotal": return (reverse) ? ((slider.count - 1) - slider.currentSlide + slider.cloneOffset) * pos : (slider.currentSlide + slider.cloneOffset) * pos; + case "setTouch": return (reverse) ? pos : pos; + case "jumpEnd": return (reverse) ? pos : slider.count * pos; + case "jumpStart": return (reverse) ? slider.count * pos : pos; + default: return pos; + } + } + }()); + + return (posCalc * ((slider.vars.rtl)?1:-1)) + "px"; + }()); + + if (slider.transitions) { + if (slider.isFirefox) { + target = (vertical) ? "translate3d(0," + target + ",0)" : "translate3d(" + (parseInt(target)+'px') + ",0,0)"; + } else { + target = (vertical) ? "translate3d(0," + target + ",0)" : "translate3d(" + ((slider.vars.rtl?-1:1)*parseInt(target)+'px') + ",0,0)"; + } + dur = (dur !== undefined) ? (dur/1000) + "s" : "0s"; + slider.container.css("-" + slider.pfx + "-transition-duration", dur); + slider.container.css("transition-duration", dur); + } + + slider.args[slider.prop] = target; + if (slider.transitions || dur === undefined) { slider.container.css(slider.args); } + + slider.container.css('transform',target); + }; + + slider.setup = function(type) { + // SLIDE: + if (!fade) { + var sliderOffset, arr; + + if (type === "init") { + slider.viewport = $('
        ').css({"overflow": "hidden", "position": "relative"}).appendTo(slider).append(slider.container); + // INFINITE LOOP: + slider.cloneCount = 0; + slider.cloneOffset = 0; + // REVERSE: + if (reverse) { + arr = $.makeArray(slider.slides).reverse(); + slider.slides = $(arr); + slider.container.empty().append(slider.slides); + } + } + // INFINITE LOOP && !CAROUSEL: + if (slider.vars.animationLoop && !carousel) { + slider.cloneCount = 2; + slider.cloneOffset = 1; + // clear out old clones + if (type !== "init") { slider.container.find('.clone').remove(); } + slider.container.append(methods.uniqueID(slider.slides.first().clone().addClass('clone')).attr('aria-hidden', 'true')) + .prepend(methods.uniqueID(slider.slides.last().clone().addClass('clone')).attr('aria-hidden', 'true')); + } + slider.newSlides = $(slider.vars.selector, slider); + + sliderOffset = (reverse) ? slider.count - 1 - slider.currentSlide + slider.cloneOffset : slider.currentSlide + slider.cloneOffset; + // VERTICAL: + if (vertical && !carousel) { + slider.container.height((slider.count + slider.cloneCount) * 200 + "%").css("position", "absolute").width("100%"); + setTimeout(function(){ + slider.newSlides.css({"display": "block"}); + slider.doMath(); + slider.viewport.height(slider.h); + slider.setProps(sliderOffset * slider.h, "init"); + }, (type === "init") ? 100 : 0); + } else { + slider.container.width((slider.count + slider.cloneCount) * 200 + "%"); + slider.setProps(sliderOffset * slider.computedW, "init"); + setTimeout(function(){ + slider.doMath(); + if(slider.vars.rtl){ + if (slider.isFirefox) { + slider.newSlides.css({"width": slider.computedW, "marginRight" : slider.computedM, "float": "right", "display": "block"}); + } else { + slider.newSlides.css({"width": slider.computedW, "marginRight" : slider.computedM, "float": "left", "display": "block"}); + } + + } + else{ + slider.newSlides.css({"width": slider.computedW, "marginRight" : slider.computedM, "float": "left", "display": "block"}); + } + // SMOOTH HEIGHT: + if (slider.vars.smoothHeight) { methods.smoothHeight(); } + }, (type === "init") ? 100 : 0); + } + } else { // FADE: + if(slider.vars.rtl){ + slider.slides.css({"width": "100%", "float": 'right', "marginLeft": "-100%", "position": "relative"}); + } + else{ + slider.slides.css({"width": "100%", "float": 'left', "marginRight": "-100%", "position": "relative"}); + } + if (type === "init") { + if (!touch) { + //slider.slides.eq(slider.currentSlide).fadeIn(slider.vars.animationSpeed, slider.vars.easing); + if (slider.vars.fadeFirstSlide == false) { + slider.slides.css({ "opacity": 0, "display": "block", "zIndex": 1 }).eq(slider.currentSlide).css({"zIndex": 2}).css({"opacity": 1}); + } else { + slider.slides.css({ "opacity": 0, "display": "block", "zIndex": 1 }).eq(slider.currentSlide).css({"zIndex": 2}).animate({"opacity": 1},slider.vars.animationSpeed,slider.vars.easing); + } + } else { + slider.slides.css({ "opacity": 0, "display": "block", "webkitTransition": "opacity " + slider.vars.animationSpeed / 1000 + "s ease", "zIndex": 1 }).eq(slider.currentSlide).css({ "opacity": 1, "zIndex": 2}); + } + } + // SMOOTH HEIGHT: + if (slider.vars.smoothHeight) { methods.smoothHeight(); } + } + // !CAROUSEL: + // CANDIDATE: active slide + if (!carousel) { slider.slides.removeClass(namespace + "active-slide").eq(slider.currentSlide).addClass(namespace + "active-slide"); } + + //FlexSlider: init() Callback + slider.vars.init(slider); + }; + + slider.doMath = function() { + var slide = slider.slides.first(), + slideMargin = slider.vars.itemMargin, + minItems = slider.vars.minItems, + maxItems = slider.vars.maxItems; + + slider.w = (slider.viewport===undefined) ? slider.width() : slider.viewport.width(); + if (slider.isFirefox) { slider.w = slider.width(); } + slider.h = slide.height(); + slider.boxPadding = slide.outerWidth() - slide.width(); + + // CAROUSEL: + if (carousel) { + slider.itemT = slider.vars.itemWidth + slideMargin; + slider.itemM = slideMargin; + slider.minW = (minItems) ? minItems * slider.itemT : slider.w; + slider.maxW = (maxItems) ? (maxItems * slider.itemT) - slideMargin : slider.w; + slider.itemW = (slider.minW > slider.w) ? (slider.w - (slideMargin * (minItems - 1)))/minItems : + (slider.maxW < slider.w) ? (slider.w - (slideMargin * (maxItems - 1)))/maxItems : + (slider.vars.itemWidth > slider.w) ? slider.w : slider.vars.itemWidth; + + slider.visible = Math.floor(slider.w/(slider.itemW)); + slider.move = (slider.vars.move > 0 && slider.vars.move < slider.visible ) ? slider.vars.move : slider.visible; + slider.pagingCount = Math.ceil(((slider.count - slider.visible)/slider.move) + 1); + slider.last = slider.pagingCount - 1; + slider.limit = (slider.pagingCount === 1) ? 0 : + (slider.vars.itemWidth > slider.w) ? (slider.itemW * (slider.count - 1)) + (slideMargin * (slider.count - 1)) : ((slider.itemW + slideMargin) * slider.count) - slider.w - slideMargin; + } else { + slider.itemW = slider.w; + slider.itemM = slideMargin; + slider.pagingCount = slider.count; + slider.last = slider.count - 1; + } + slider.computedW = slider.itemW - slider.boxPadding; + slider.computedM = slider.itemM; + }; + + slider.update = function(pos, action) { + slider.doMath(); + + // update currentSlide and slider.animatingTo if necessary + if (!carousel) { + if (pos < slider.currentSlide) { + slider.currentSlide += 1; + } else if (pos <= slider.currentSlide && pos !== 0) { + slider.currentSlide -= 1; + } + slider.animatingTo = slider.currentSlide; + } + + // update controlNav + if (slider.vars.controlNav && !slider.manualControls) { + if ((action === "add" && !carousel) || slider.pagingCount > slider.controlNav.length) { + methods.controlNav.update("add"); + } else if ((action === "remove" && !carousel) || slider.pagingCount < slider.controlNav.length) { + if (carousel && slider.currentSlide > slider.last) { + slider.currentSlide -= 1; + slider.animatingTo -= 1; + } + methods.controlNav.update("remove", slider.last); + } + } + // update directionNav + if (slider.vars.directionNav) { methods.directionNav.update(); } + + }; + + slider.addSlide = function(obj, pos) { + var $obj = $(obj); + + slider.count += 1; + slider.last = slider.count - 1; + + // append new slide + if (vertical && reverse) { + (pos !== undefined) ? slider.slides.eq(slider.count - pos).after($obj) : slider.container.prepend($obj); + } else { + (pos !== undefined) ? slider.slides.eq(pos).before($obj) : slider.container.append($obj); + } + + // update currentSlide, animatingTo, controlNav, and directionNav + slider.update(pos, "add"); + + // update slider.slides + slider.slides = $(slider.vars.selector + ':not(.clone)', slider); + // re-setup the slider to accomdate new slide + slider.setup(); + + //FlexSlider: added() Callback + slider.vars.added(slider); + }; + slider.removeSlide = function(obj) { + var pos = (isNaN(obj)) ? slider.slides.index($(obj)) : obj; + + // update count + slider.count -= 1; + slider.last = slider.count - 1; + + // remove slide + if (isNaN(obj)) { + $(obj, slider.slides).remove(); + } else { + (vertical && reverse) ? slider.slides.eq(slider.last).remove() : slider.slides.eq(obj).remove(); + } + + // update currentSlide, animatingTo, controlNav, and directionNav + slider.doMath(); + slider.update(pos, "remove"); + + // update slider.slides + slider.slides = $(slider.vars.selector + ':not(.clone)', slider); + // re-setup the slider to accomdate new slide + slider.setup(); + + // FlexSlider: removed() Callback + slider.vars.removed(slider); + }; + + //FlexSlider: Initialize + methods.init(); + }; + + // Ensure the slider isn't focussed if the window loses focus. + $( window ).blur( function ( e ) { + focused = false; + }).focus( function ( e ) { + focused = true; + }); + + //FlexSlider: Default Settings + $.flexslider.defaults = { + namespace: "flex-", //{NEW} String: Prefix string attached to the class of every element generated by the plugin + selector: ".slides > li", //{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril + animation: "fade", //String: Select your animation type, "fade" or "slide" + easing: "swing", //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported! + direction: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical" + reverse: false, //{NEW} Boolean: Reverse the animation direction + animationLoop: true, //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end + smoothHeight: false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode + startAt: 0, //Integer: The slide that the slider should start on. Array notation (0 = first slide) + slideshow: true, //Boolean: Animate slider automatically + slideshowSpeed: 7000, //Integer: Set the speed of the slideshow cycling, in milliseconds + animationSpeed: 600, //Integer: Set the speed of animations, in milliseconds + initDelay: 0, //{NEW} Integer: Set an initialization delay, in milliseconds + randomize: false, //Boolean: Randomize slide order + fadeFirstSlide: true, //Boolean: Fade in the first slide when animation type is "fade" + thumbCaptions: false, //Boolean: Whether or not to put captions on thumbnails when using the "thumbnails" controlNav. + + // Usability features + pauseOnAction: true, //Boolean: Pause the slideshow when interacting with control elements, highly recommended. + pauseOnHover: false, //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering + pauseInvisible: true, //{NEW} Boolean: Pause the slideshow when tab is invisible, resume when visible. Provides better UX, lower CPU usage. + useCSS: true, //{NEW} Boolean: Slider will use CSS3 transitions if available + touch: true, //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices + video: false, //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches + + // Primary Controls + controlNav: true, //Boolean: Create navigation for paging control of each slide? Note: Leave true for manualControls usage + directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false) + prevText: "Previous", //String: Set the text for the "previous" directionNav item + nextText: "Next", //String: Set the text for the "next" directionNav item + + // Secondary Navigation + keyboard: true, //Boolean: Allow slider navigating via keyboard left/right keys + multipleKeyboard: false, //{NEW} Boolean: Allow keyboard navigation to affect multiple sliders. Default behavior cuts out keyboard navigation with more than one slider present. + mousewheel: false, //{UPDATED} Boolean: Requires jquery.mousewheel.js (https://github.com/brandonaaron/jquery-mousewheel) - Allows slider navigating via mousewheel + pausePlay: false, //Boolean: Create pause/play dynamic element + pauseText: "Pause", //String: Set the text for the "pause" pausePlay item + playText: "Play", //String: Set the text for the "play" pausePlay item + + // Special properties + controlsContainer: "", //{UPDATED} jQuery Object/Selector: Declare which container the navigation elements should be appended too. Default container is the FlexSlider element. Example use would be $(".flexslider-container"). Property is ignored if given element is not found. + manualControls: "", //{UPDATED} jQuery Object/Selector: Declare custom control navigation. Examples would be $(".flex-control-nav li") or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs. + customDirectionNav: "", //{NEW} jQuery Object/Selector: Custom prev / next button. Must be two jQuery elements. In order to make the events work they have to have the classes "prev" and "next" (plus namespace) + sync: "", //{NEW} Selector: Mirror the actions performed on this slider with another slider. Use with care. + asNavFor: "", //{NEW} Selector: Internal property exposed for turning the slider into a thumbnail navigation for another slider + + // Carousel Options + itemWidth: 0, //{NEW} Integer: Box-model width of individual carousel items, including horizontal borders and padding. + itemMargin: 0, //{NEW} Integer: Margin between carousel items. + minItems: 1, //{NEW} Integer: Minimum number of carousel items that should be visible. Items will resize fluidly when below this. + maxItems: 0, //{NEW} Integer: Maxmimum number of carousel items that should be visible. Items will resize fluidly when above this limit. + move: 0, //{NEW} Integer: Number of carousel items that should move on animation. If 0, slider will move all visible items. + allowOneSlide: true, //{NEW} Boolean: Whether or not to allow a slider comprised of a single slide + + // Browser Specific + isFirefox: false, // {NEW} Boolean: Set to true when Firefox is the browser used. + + // Callback API + start: function(){}, //Callback: function(slider) - Fires when the slider loads the first slide + before: function(){}, //Callback: function(slider) - Fires asynchronously with each slider animation + after: function(){}, //Callback: function(slider) - Fires after each slider animation completes + end: function(){}, //Callback: function(slider) - Fires when the slider reaches the last slide (asynchronous) + added: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is added + removed: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is removed + init: function() {}, //{NEW} Callback: function(slider) - Fires after the slider is initially setup + rtl: false //{NEW} Boolean: Whether or not to enable RTL mode + }; + + //FlexSlider: Plugin Function + $.fn.flexslider = function(options) { + if (options === undefined) { options = {}; } + + if (typeof options === "object") { + return this.each(function() { + var $this = $(this), + selector = (options.selector) ? options.selector : ".slides > li", + $slides = $this.find(selector); + + if ( ( $slides.length === 1 && options.allowOneSlide === false ) || $slides.length === 0 ) { + $slides.fadeIn(400); + if (options.start) { options.start($this); } + } else if ($this.data('flexslider') === undefined) { + new $.flexslider(this, options); + } + }); + } else { + // Helper strings to quickly perform functions on the slider + var $slider = $(this).data('flexslider'); + switch (options) { + case "play": $slider.play(); break; + case "pause": $slider.pause(); break; + case "stop": $slider.stop(); break; + case "next": $slider.flexAnimate($slider.getTarget("next"), true); break; + case "prev": + case "previous": $slider.flexAnimate($slider.getTarget("prev"), true); break; + default: if (typeof options === "number") { $slider.flexAnimate(options, true); } + } + } + }; +})(jQuery); diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/main/img/iconfont.0096ef98.svg b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/main/img/iconfont.0096ef98.svg new file mode 100644 index 00000000..6cc81067 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/main/img/iconfont.0096ef98.svg @@ -0,0 +1,41 @@ + + + + + + Created by iconfont + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/main/img/iconfont.ce1b01d3.ce1b01d3.svg b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/main/img/iconfont.ce1b01d3.ce1b01d3.svg new file mode 100644 index 00000000..f378f763 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/web/com.actionsoft.apps.coe.pal.publisher/main/img/iconfont.ce1b01d3.ce1b01d3.svg @@ -0,0 +1,2447 @@ + + + + + + Created by iconfont + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/com.actionsoft.apps.coe.pal.publisher/xpages/30267ab3-aeb6-4371-88e0-ecc13cef94a6.json b/com.actionsoft.apps.coe.pal.publisher/xpages/30267ab3-aeb6-4371-88e0-ecc13cef94a6.json new file mode 100644 index 00000000..886d7c2f --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/xpages/30267ab3-aeb6-4371-88e0-ecc13cef94a6.json @@ -0,0 +1 @@ +{"boxShadow":"","paddingRight":"0px","contentWindow":[{"subList":[{"cwScroll":"no","paddingRight":"0px","operationArea":[],"operationAreaDesc":[],"cwUrlId":"_52c854d476e761d08354c4980cab7816","sort":1,"isActive":"","isBold":"1","isItalic":"1","cwUrl":"./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_banner_msg","paddingBottom":"0px","fontFamily":"微软雅黑","cwUrlAppId":"com.actionsoft.apps.coe.pal.publisher","fontSize":"14px","id":"2846d3a5-7fa9-47a6-a78d-57da98fe42e5","paddingTop":"0px","cwStyle":"0","paddingLeft":"0px","cwName":"轮播图"}],"width":"4","id":"f0ac29b1-f15d-41f1-a94f-37e1d68a2973","sort":1,"height":"280"},{"subList":[{"cwScroll":"no","paddingRight":"10px","operationArea":[{"name":"更多","id":"40b6ad49-06c9-40e5-96fd-06ac6c77ca31","sort":1,"type":"url","ext3":"","content":"./w?sid=@sid&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&templateId=30267ab3-aeb6-4371-88e0-ecc13cef94a6&type=common","ext2":"","ext1":"2"}],"operationAreaDesc":[{"name":"更多","id":"40b6ad49-06c9-40e5-96fd-06ac6c77ca31","sort":1,"type":"url","ext3":"","content":"./w?sid=@sid&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&templateId=30267ab3-aeb6-4371-88e0-ecc13cef94a6&type=common","ext2":"","ext1":"2"}],"cwUrlId":"_b6dbfd79b95bdfecd8222b730bc4474e","sort":1,"isActive":"","isBold":"2","isItalic":"1","cwUrl":"./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_common_msg&count=8","paddingBottom":"5px","fontFamily":"微软雅黑","cwUrlAppId":"com.actionsoft.apps.coe.pal.publisher","fontSize":"14px","id":"b0754f29-de44-47f5-980b-d53ae3588333","paddingTop":"5px","cwStyle":"2","paddingLeft":"10px","cwName":"常用流程"}],"width":"1","id":"3b226fbb-cdbb-42fe-a215-5546d9cc02b4","sort":2,"height":"340"},{"subList":[{"cwScroll":"no","paddingRight":"10px","operationArea":[{"name":"更多","id":"6e1cab24-24bd-4c61-ba30-b1aa3daa8d5a","sort":1,"type":"url","ext3":"","content":"./w?sid=@sid&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&templateId=30267ab3-aeb6-4371-88e0-ecc13cef94a6&type=frequency","ext2":"","ext1":"2"}],"operationAreaDesc":[{"name":"更多","id":"6e1cab24-24bd-4c61-ba30-b1aa3daa8d5a","sort":1,"type":"url","ext3":"","content":"./w?sid=@sid&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&templateId=30267ab3-aeb6-4371-88e0-ecc13cef94a6&type=frequency","ext2":"","ext1":"2"}],"cwUrlId":"_6f3ec0132d1998e8464542c576c99c6e","sort":1,"isActive":"","isBold":"2","isItalic":"1","cwUrl":"./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_frequency_msg&count=8","paddingBottom":"5px","fontFamily":"微软雅黑","cwUrlAppId":"com.actionsoft.apps.coe.pal.publisher","fontSize":"14px","id":"a7cffb24-7257-41bd-8000-0ea333306541","paddingTop":"5px","cwStyle":"2","paddingLeft":"10px","cwName":"高频流程"}],"width":"1","id":"8053ce41-cba5-4fc0-819a-b7b1cd8300db","sort":3,"height":"340"},{"subList":[{"cwScroll":"no","paddingRight":"10px","operationArea":[{"name":"更多","id":"d49bfa96-d74d-4f9b-a964-75818d50a234","sort":1,"type":"url","ext3":"","content":"./w?sid=@sid&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&templateId=30267ab3-aeb6-4371-88e0-ecc13cef94a6&type=system","ext2":"","ext1":"2"}],"operationAreaDesc":[{"name":"更多","id":"d49bfa96-d74d-4f9b-a964-75818d50a234","sort":1,"type":"url","ext3":"","content":"./w?sid=@sid&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&templateId=30267ab3-aeb6-4371-88e0-ecc13cef94a6&type=system","ext2":"","ext1":"2"}],"cwUrlId":"_e8dc66e94a61d162d31a4b8271e9ee16","sort":1,"isActive":"","isBold":"2","isItalic":"1","cwUrl":"./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_system_msg&count=8","paddingBottom":"5px","fontFamily":"微软雅黑","cwUrlAppId":"com.actionsoft.apps.coe.pal.publisher","fontSize":"14px","id":"8e234950-4c36-4612-9a5d-ce1a88c6b8d5","paddingTop":"5px","cwStyle":"2","paddingLeft":"10px","cwName":"系统地图"}],"width":"1","id":"6c8705e0-1143-4f7b-bc79-301a3d0a7b07","sort":4,"height":"340"},{"subList":[{"cwScroll":"no","paddingRight":"10px","operationArea":[],"operationAreaDesc":[],"cwUrlId":"_9b6dbae408a22ec5bafaba0aaaafd300","sort":1,"isActive":"","isBold":"2","isItalic":"1","cwUrl":"./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_processmap_msg&wsId=&orgId=","paddingBottom":"5px","fontFamily":"微软雅黑","cwUrlAppId":"com.actionsoft.apps.coe.pal.publisher","fontSize":"14px","id":"34e44b12-c1bc-47ee-a9b8-f27a2fcfeb01","paddingTop":"5px","cwStyle":"2","paddingLeft":"10px","cwName":"流程地图"}],"width":"2","id":"7d87db6b-a916-4dbd-a219-e8fd26eeb229","sort":5,"height":"340"},{"subList":[{"cwScroll":"no","paddingRight":"10px","operationArea":[{"name":"刷新","id":"d2985070-425e-405c-ad38-c16bf3b337b8","sort":1,"type":"refresh","ext3":"","content":"","ext2":"","ext1":""},{"name":"|","id":"e5958cba-cf42-4607-a266-5697d410d185","sort":2,"type":"space","ext3":"","content":"","ext2":"","ext1":""},{"name":"更多","id":"97efabc7-c055-4066-869b-fd176b9b652c","sort":3,"type":"url","ext3":"","content":"./w?sid=@sid&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&templateId=30267ab3-aeb6-4371-88e0-ecc13cef94a6&type=notification","ext2":"","ext1":"2"}],"operationAreaDesc":[{"name":"更多","id":"97efabc7-c055-4066-869b-fd176b9b652c","sort":3,"type":"url","ext3":"","content":"./w?sid=@sid&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&templateId=30267ab3-aeb6-4371-88e0-ecc13cef94a6&type=notification","ext2":"","ext1":"2"},{"name":"|","id":"e5958cba-cf42-4607-a266-5697d410d185","sort":2,"type":"space","ext3":"","content":"","ext2":"","ext1":""},{"name":"刷新","id":"d2985070-425e-405c-ad38-c16bf3b337b8","sort":1,"type":"refresh","ext3":"","content":"","ext2":"","ext1":""}],"cwUrlId":"_a47bc020a38c9673484154d675ab6a1d","sort":1,"isActive":"","isBold":"2","isItalic":"1","cwUrl":"./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_notification_msg&count=8","paddingBottom":"5px","fontFamily":"微软雅黑","cwUrlAppId":"com.actionsoft.apps.coe.pal.publisher","fontSize":"14px","id":"a2e769be-7b19-49da-ab91-1b5589121416","paddingTop":"5px","cwStyle":"2","paddingLeft":"10px","cwName":"发布动态"}],"width":"2","id":"7aa6191e-e747-4d44-b81e-929da90afb34","sort":6,"height":"340"},{"subList":[{"cwScroll":"no","paddingRight":"10px","operationArea":[{"name":"更多","id":"c8aca99c-2c80-42fd-902a-9d77866e0ce7","sort":1,"type":"url","ext3":"","content":"./w?sid=@sid&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&templateId=30267ab3-aeb6-4371-88e0-ecc13cef94a6&type=data","ext2":"","ext1":"2"}],"operationAreaDesc":[{"name":"更多","id":"c8aca99c-2c80-42fd-902a-9d77866e0ce7","sort":1,"type":"url","ext3":"","content":"./w?sid=@sid&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&templateId=30267ab3-aeb6-4371-88e0-ecc13cef94a6&type=data","ext2":"","ext1":"2"}],"cwUrlId":"_a781768addf7cd48278a250c99f1868a","sort":1,"isActive":"","isBold":"2","isItalic":"1","cwUrl":"./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_data_msg&count=8","paddingBottom":"5px","fontFamily":"微软雅黑","cwUrlAppId":"com.actionsoft.apps.coe.pal.publisher","fontSize":"14px","id":"55aa93dd-293d-4f5e-8f38-df2688b7a55f","paddingTop":"5px","cwStyle":"2","paddingLeft":"10px","cwName":"数据地图"}],"width":"1","id":"44ebd999-1552-419d-9428-c68a7d72a697","sort":7,"height":"340"},{"subList":[{"cwScroll":"no","paddingRight":"10px","operationArea":[{"name":"更多","id":"61439ec2-1b22-421f-9756-5645888982f2","sort":1,"type":"url","ext3":"","content":"./w?sid=@sid&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&templateId=30267ab3-aeb6-4371-88e0-ecc13cef94a6&type=org","ext2":"","ext1":"2"}],"operationAreaDesc":[{"name":"更多","id":"61439ec2-1b22-421f-9756-5645888982f2","sort":1,"type":"url","ext3":"","content":"./w?sid=@sid&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&templateId=30267ab3-aeb6-4371-88e0-ecc13cef94a6&type=org","ext2":"","ext1":"2"}],"cwUrlId":"_facf3214760a45a90427cf2ac81304c1","sort":1,"isActive":"","isBold":"2","isItalic":"1","cwUrl":"./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_org_msg&count=8","paddingBottom":"5px","fontFamily":"微软雅黑","cwUrlAppId":"com.actionsoft.apps.coe.pal.publisher","fontSize":"14px","id":"afc9c192-2016-4e35-b2d1-0403b63ad95d","paddingTop":"5px","cwStyle":"2","paddingLeft":"10px","cwName":"组织地图"}],"width":"1","id":"5a15b6d4-49fe-41a2-a9ec-304986e75e57","sort":8,"height":"340"},{"subList":[{"cwScroll":"no","paddingRight":"10px","operationArea":[{"name":"更多","id":"ebe079a2-fcff-464e-843d-43bbce0e8c9a","sort":1,"type":"url","ext3":"","content":"./w?sid=@sid&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&templateId=30267ab3-aeb6-4371-88e0-ecc13cef94a6&type=control","ext2":"","ext1":"2"}],"operationAreaDesc":[{"name":"更多","id":"ebe079a2-fcff-464e-843d-43bbce0e8c9a","sort":1,"type":"url","ext3":"","content":"./w?sid=@sid&cmd=com.actionsoft.apps.coe.pal.publisher_client_sso_search_page&templateId=30267ab3-aeb6-4371-88e0-ecc13cef94a6&type=control","ext2":"","ext1":"2"}],"cwUrlId":"_f4143665a1a7ae3c378f3a67eeb748f5","sort":1,"isActive":"","isBold":"2","isItalic":"1","cwUrl":"./w?sid=@sid&cmd=com.actionsoft.apps.publisher_xpages_control_msg&count=8","paddingBottom":"5px","fontFamily":"微软雅黑","cwUrlAppId":"com.actionsoft.apps.coe.pal.publisher","fontSize":"14px","id":"f518f74d-e962-410e-b139-b93dba29ff02","paddingTop":"5px","cwStyle":"2","paddingLeft":"10px","cwName":"控制地图"}],"width":"1","id":"e0b977db-e7b7-4780-8662-049a703b3a13","sort":9,"height":"340"}],"categoryName":"流程发布","transparent":"1.0","marginRight":"0px","paddingBottom":"0px","templateJs":"","id":"30267ab3-aeb6-4371-88e0-ecc13cef94a6","paddingTop":"0px","updateUser":"admin","updateTime":"2018-12-11 11:33:40","sort":1,"marginLeft":"0px","borderRadius":"0px","createTime":"2018-10-11 10:04:45","backgroundFlag":"0","background":"","name":"流程发布新版门户首页","colorStyle":"blackc","createUser":"admin","marginBottom":"0px","loadingIcon":"","paddingLeft":"0px","marginTop":"0px","desc":""} \ No newline at end of file