From 4a2cb8d82de8bc51eb315ecaea282ab433fcd1bf Mon Sep 17 00:00:00 2001 From: lihongyu <504404568@qq.com> Date: Sat, 6 May 2023 16:41:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7=E7=B1=BB=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SynUser/.classpath | 7 + SynUser/.project | 17 + SynUser/.settings/org.eclipse.jdt.core.prefs | 12 + .../com/yili/org/CreateProcessController.java | 33 + .../src/com/yili/org/DisplayController.java | 52 + SynUser/src/com/yili/org/IntegrationJob.java | 483 +++++ SynUser/src/com/yili/org/OrgReloadJob.java | 20 + SynUser/src/com/yili/org/SynPostJob.java | 235 ++ SynUser/src/com/yili/org/SynPostJob2.java | 129 ++ SynUser/src/com/yili/org/SynPrem.java | 176 ++ SynUser/src/com/yili/org/SynUserJob.java | 243 +++ SynUser/src/com/yili/test/App.java | 99 + SynUser/src/com/yili/test/HttpJavaUtil.java | 300 +++ SynUser/src/com/yili/util/HttpClientUtil.java | 270 +++ SynUser/src/com/yili/util/UtilUrl.java | 53 + .../diagram.attribute.custom.xml_bak | 47 + com.actionsoft.apps.coe.pal.batch/.classpath | 9 + com.actionsoft.apps.coe.pal.batch/.project | 17 + .../.classpath | 18 + .../.project | 17 + .../.classpath | 20 + .../.project | 17 + .../util/readword/WordUtilXWPF2.java | 749 +++++++ .../.classpath | 10 + .../.project | 17 + .../.classpath | 9 + .../.classpath | 16 + .../.project | 17 + .../pubEvent/ProcessEndAfterEvent7.java | 1761 +++++++++++++++ .../pubEvent/ProcessEndAfterEvent_new.java | 1831 ++++++++++++++++ com.awspaas.user.apps.app/.classpath | 12 + com.awspaas.user.apps.app/.project | 17 + .../.classpath | 12 + .../.project | 17 + .../ExtractedText.txt | 454 ++++ .../manifest.xml | 46 + .../mobile/mobile-profile.xml | 15 + .../06a8bfc0-25e4-46f8-bc5f-f9b5e1a9c804.xml | 113 + .../0b707241-9f6d-49a0-bffa-acb4ece3d3de.xml | 165 ++ .../1f509b16-a35c-41ca-a5d7-c82d13004979.xml | 373 ++++ .../354355c2-cb66-4d1e-89b9-7db697964fd9.xml | 165 ++ .../367a7e45-c3a7-435f-8213-49b52bb90663.xml | 87 + .../3eb4ced6-bc73-4d9a-b263-21be6a51bbe8.xml | 165 ++ .../522c9ad1-5ce3-4c3c-9aaf-39323976096b.xml | 165 ++ ...522c9ad1-5ce3-4c3c-9aaf-39323976096b_1.xml | 165 ++ ...522c9ad1-5ce3-4c3c-9aaf-39323976096b_2.xml | 165 ++ .../76ebd0a8-18ba-4bbd-8d7e-b6cfc41d50c9.xml | 165 ++ .../7e437f57-2b41-4ccb-83b7-1898c2ef164b.xml | 347 +++ .../80e2f9d6-5e3b-46ba-b80a-770710ed2210.xml | 217 ++ .../831ed6e3-df83-417f-85c0-2b17fd443eef.xml | 139 ++ .../889193c3-fade-4075-8b4e-69403a3bf34d.xml | 139 ++ .../ab099a54-8a8d-46f1-b359-a4ac64b014fc.xml | 269 +++ .../c15fc899-941a-42f6-ba3c-b72029e1ae3f.xml | 243 +++ .../c23af0a0-f19d-4b03-b2d8-8e6a6303c3b7.xml | 87 + .../ce01c5ab-af41-43e7-996a-ee7fe12f9842.xml | 165 ++ .../cea1b185-e136-40db-9c78-1e1960259906.xml | 139 ++ .../db21b816-bb47-4732-a2aa-f84432e1be64.xml | 87 + .../e407996d-58c4-4964-a907-fafbb050ed63.xml | 165 ++ .../eb96d7bd-37da-4c8c-9763-6246a5de81dc.xml | 113 + .../f1531b24-fe88-4d6a-a7ce-6cde9ade9c6a.xml | 165 ++ .../f17c4bf4-67d2-4d33-8b05-055e258c6fc2.xml | 425 ++++ .../obj_2521be8c988942109be6c7dd41a358c5.xml | 61 + .../obj_35c0ed6d08b8439f9f8ef5fcef01ab27.xml | 60 + .../obj_360ee5ef449d442d95292a8a60f1f7fd.xml | 62 + .../obj_3f7b624f617f4be38566e22175516284.xml | 56 + .../obj_41a06cf29dc64bdc8369db4505d75222.xml | 60 + .../obj_4696c49b0fe64a56b2556a893491b75f.xml | 71 + .../obj_4f1b08c2bcd34c2f9895980c01ea4e21.xml | 62 + .../obj_5ed1dc03b858463698191ca1ee8d59ec.xml | 61 + .../obj_71b76d68efa6483bab116dddac582a27.xml | 47 + .../obj_75156a5ae7004e2daad5e284d26147b1.xml | 60 + .../obj_a4836ee471b947ea93076dcb9f22552f.xml | 75 + ...obj_a4836ee471b947ea93076dcb9f22552f_1.xml | 63 + ...obj_a4836ee471b947ea93076dcb9f22552f_2.xml | 63 + .../obj_aed82b86aba14271a0b0ad02b5fb3de7.xml | 83 + ...obj_aed82b86aba14271a0b0ad02b5fb3de7_1.xml | 66 + ...bj_aed82b86aba14271a0b0ad02b5fb3de7_10.xml | 66 + ...obj_aed82b86aba14271a0b0ad02b5fb3de7_2.xml | 66 + ...obj_aed82b86aba14271a0b0ad02b5fb3de7_3.xml | 66 + ...obj_aed82b86aba14271a0b0ad02b5fb3de7_4.xml | 66 + ...obj_aed82b86aba14271a0b0ad02b5fb3de7_5.xml | 66 + ...obj_aed82b86aba14271a0b0ad02b5fb3de7_6.xml | 66 + ...obj_aed82b86aba14271a0b0ad02b5fb3de7_7.xml | 66 + ...obj_aed82b86aba14271a0b0ad02b5fb3de7_8.xml | 66 + ...obj_aed82b86aba14271a0b0ad02b5fb3de7_9.xml | 66 + .../obj_b5f395389a354557ac73e2eef0315533.xml | 115 + .../obj_b6f7cd5e050c439f94499c995c041452.xml | 47 + .../obj_bcf258f78f8542288fb55681d6237f26.xml | 62 + .../obj_bfd25e4ac3cc4692b9a6c307a819f096.xml | 63 + .../obj_c1d70cc462b6470a80afe0afd6b76b67.xml | 70 + .../obj_cd515d3dfd2b428481a2d407cf76a52a.xml | 59 + .../obj_cd6277fbcf8f424bb81a54962ec2a019.xml | 60 + .../obj_d0de1ebf1b5a4b8fac0c0ec357123518.xml | 60 + ...obj_d0de1ebf1b5a4b8fac0c0ec357123518_1.xml | 60 + .../obj_df7827e0f8b64318a8a3d70c4db61df6.xml | 47 + .../obj_e823232d22454476a29dd282504fa8c9.xml | 119 ++ .../obj_ffba75874b7d468fb055dc4ca98a5d2b.xml | 64 + .../174c2259-a54a-4b4f-a375-912aea4ca162.xml | 45 + .../1fa52d9c-3422-40e3-8552-8ac8071f4c7a.xml | 45 + .../34b4e6ad-7aa3-4237-b42a-3d2332ac57b1.xml | 45 + .../459ac035-8b6a-4df0-8f4c-a8525b3fcdde.xml | 45 + .../559d4233-cce0-41e7-bc6f-773407d570e8.xml | 45 + .../93607580-1130-4522-aa30-a37d2467908a.xml | 45 + .../941fb1e4-5121-4495-91bb-6239ae7d30e5.xml | 45 + .../c5633ef8-8bef-4eae-9ca1-0f7be5d85232.xml | 45 + .../ce1c5456-dca6-4439-9d73-41ce07d0d934.xml | 45 + .../d3a614a6-f34f-44d4-bc97-42a5b1c21822.xml | 70 + .../041dc148-c76e-462e-b736-976e5ffb8fd8.xml | 26 + .../1adf3dba-9552-4943-84b6-f54574d9e6d4.xml | 26 + .../3363ed21-e16f-4bc3-909e-a84413211e07.xml | 26 + .../3d90ab79-664e-4db5-b61f-80f499a2b743.xml | 26 + .../46b40ada-6a1e-47a3-a7ec-dbf536393ce0.xml | 26 + .../63dca686-8c71-4f3b-97cf-d2958ab73824.xml | 26 + ...63dca686-8c71-4f3b-97cf-d2958ab73824_1.xml | 26 + .../954d6e02-199e-4df4-ba38-edaa119c8116.xml | 26 + .../986ac753-210f-4985-90e2-ed922d7402e0.xml | 26 + .../a4b4991a-5a53-47ab-854b-f6460fb85cd3.xml | 26 + .../a9a57f20-5bfd-4801-97b7-15f90e451e60.xml | 26 + .../cd06cb12-738e-4e26-be94-ef7c6f6200a2.xml | 26 + .../cd4d3ba3-d5ca-40aa-95c6-934eea301ac5.xml | 26 + .../obj_0b01eb3531a44b45be42d29d4d22043a.bpmn | 50 + .../obj_0b01eb3531a44b45be42d29d4d22043a.draw | 1 + ...0b01eb3531a44b45be42d29d4d22043a_small.png | Bin 0 -> 1606 bytes .../obj_1914eba9d2f14e8ea41da65f3eec7fce.bpmn | 56 + .../obj_1914eba9d2f14e8ea41da65f3eec7fce.draw | 1 + ...1914eba9d2f14e8ea41da65f3eec7fce_small.png | Bin 0 -> 1606 bytes .../obj_1c1a382bfc6542c78a8ef4a770979ba5.bpmn | 50 + .../obj_1c1a382bfc6542c78a8ef4a770979ba5.draw | 1 + ...1c1a382bfc6542c78a8ef4a770979ba5_small.png | Bin 0 -> 1606 bytes .../obj_2c71a85500bd474e86691e865668d4da.bpmn | 152 ++ ...obj_2c71a85500bd474e86691e865668d4da.check | 1 + .../obj_2c71a85500bd474e86691e865668d4da.png | Bin 0 -> 4043 bytes ...2c71a85500bd474e86691e865668d4da_small.png | Bin 0 -> 2228 bytes .../obj_47f8b75f15fc4dd688a37128ebbbcea9.bpmn | 50 + .../obj_47f8b75f15fc4dd688a37128ebbbcea9.draw | 1 + ...47f8b75f15fc4dd688a37128ebbbcea9_small.png | Bin 0 -> 1606 bytes .../obj_49a03c7cc69749b19371a3adc756cf67.bpmn | 50 + .../obj_49a03c7cc69749b19371a3adc756cf67.draw | 1 + ...49a03c7cc69749b19371a3adc756cf67_small.png | Bin 0 -> 1606 bytes .../obj_49e5bd7948554e058668818a91bd76a6.bpmn | 50 + .../obj_49e5bd7948554e058668818a91bd76a6.draw | 1 + ...49e5bd7948554e058668818a91bd76a6_small.png | Bin 0 -> 1606 bytes .../obj_5f74b0ac44364849b36d856ecd2c2101.bpmn | 161 ++ ...obj_5f74b0ac44364849b36d856ecd2c2101.check | 1 + .../obj_5f74b0ac44364849b36d856ecd2c2101.draw | 1 + ...5f74b0ac44364849b36d856ecd2c2101_small.png | Bin 0 -> 2267 bytes .../obj_634b28a82a7749e99578c4a447eb0313.bpmn | 50 + .../obj_634b28a82a7749e99578c4a447eb0313.draw | 1 + ...634b28a82a7749e99578c4a447eb0313_small.png | Bin 0 -> 1606 bytes .../obj_66a1f3aa16244153a24fea528558a27d.bpmn | 233 ++ ...obj_66a1f3aa16244153a24fea528558a27d.check | 1 + .../obj_66a1f3aa16244153a24fea528558a27d.draw | 1 + ...66a1f3aa16244153a24fea528558a27d_small.png | Bin 0 -> 2210 bytes .../obj_6c660cfefada4f72916501ecc7e4e05b.bpmn | 50 + .../obj_6c660cfefada4f72916501ecc7e4e05b.draw | 1 + ...6c660cfefada4f72916501ecc7e4e05b_small.png | Bin 0 -> 1606 bytes .../obj_838a4ed7a67f4b71909c9b7dbdacdee2.bpmn | 50 + .../obj_838a4ed7a67f4b71909c9b7dbdacdee2.draw | 1 + ...838a4ed7a67f4b71909c9b7dbdacdee2_small.png | Bin 0 -> 1606 bytes .../obj_853497604e8a47908c6cc2dcabe4bc59.bpmn | 50 + .../obj_853497604e8a47908c6cc2dcabe4bc59.draw | 1 + ...853497604e8a47908c6cc2dcabe4bc59_small.png | Bin 0 -> 1606 bytes .../obj_8a839b95573548a198074712ac38637a.bpmn | 50 + .../obj_8a839b95573548a198074712ac38637a.draw | 1 + ...8a839b95573548a198074712ac38637a_small.png | Bin 0 -> 1606 bytes .../obj_8cb8d649f20847edbacd822fdf06a1ce.bpmn | 50 + .../obj_8cb8d649f20847edbacd822fdf06a1ce.draw | 1 + ...8cb8d649f20847edbacd822fdf06a1ce_small.png | Bin 0 -> 1606 bytes .../obj_950b5a83746f4230aeb2a25d5c0b87df.bpmn | 50 + .../obj_950b5a83746f4230aeb2a25d5c0b87df.draw | 1 + ...950b5a83746f4230aeb2a25d5c0b87df_small.png | Bin 0 -> 1606 bytes .../obj_a0940a4fbc414a3a8eba0f1e00e37955.bpmn | 61 + .../obj_a0940a4fbc414a3a8eba0f1e00e37955.draw | 1 + ...a0940a4fbc414a3a8eba0f1e00e37955_small.png | Bin 0 -> 1606 bytes .../obj_a3a3286ddac94e3bb5d0c13b8dd7058d.bpmn | 50 + .../obj_a3a3286ddac94e3bb5d0c13b8dd7058d.draw | 1 + ...a3a3286ddac94e3bb5d0c13b8dd7058d_small.png | Bin 0 -> 1606 bytes .../obj_ab675ac36cac46a38774cea27a0dd162.bpmn | 152 ++ ...obj_ab675ac36cac46a38774cea27a0dd162.check | 1 + .../obj_ab675ac36cac46a38774cea27a0dd162.draw | 1 + .../obj_ab675ac36cac46a38774cea27a0dd162.png | Bin 0 -> 4043 bytes ...ab675ac36cac46a38774cea27a0dd162_small.png | Bin 0 -> 2228 bytes .../obj_b4700f89a7a144c086d047de0cfe9531.bpmn | 254 +++ ...obj_b4700f89a7a144c086d047de0cfe9531.check | 1 + .../obj_b4700f89a7a144c086d047de0cfe9531.draw | 1 + ...b4700f89a7a144c086d047de0cfe9531_small.png | Bin 0 -> 2099 bytes .../obj_bb5827b97dcd4dd9977e7008974a3982.bpmn | 50 + .../obj_bb5827b97dcd4dd9977e7008974a3982.draw | 1 + ...bb5827b97dcd4dd9977e7008974a3982_small.png | Bin 0 -> 1606 bytes .../obj_bc78a39c9bc94c9fbf69764c870d11fb.bpmn | 50 + .../obj_bc78a39c9bc94c9fbf69764c870d11fb.draw | 1 + ...bc78a39c9bc94c9fbf69764c870d11fb_small.png | Bin 0 -> 1606 bytes .../obj_bf6b5ac62cb744f1925d00ba1ae2e6fa.bpmn | 56 + .../obj_bf6b5ac62cb744f1925d00ba1ae2e6fa.draw | 1 + ...bf6b5ac62cb744f1925d00ba1ae2e6fa_small.png | Bin 0 -> 1606 bytes .../obj_c504beb31bc841ef96b6b2304257f7d5.bpmn | 57 + .../obj_c504beb31bc841ef96b6b2304257f7d5.draw | 1 + ...c504beb31bc841ef96b6b2304257f7d5_small.png | Bin 0 -> 1606 bytes .../obj_d9483b03345a4cc2a1de79e358784a56.bpmn | 50 + .../obj_d9483b03345a4cc2a1de79e358784a56.draw | 1 + ...d9483b03345a4cc2a1de79e358784a56_small.png | Bin 0 -> 1606 bytes .../obj_df02ab9de0a5469386537f3af6880f25.bpmn | 56 + .../obj_df02ab9de0a5469386537f3af6880f25.draw | 1 + ...df02ab9de0a5469386537f3af6880f25_small.png | Bin 0 -> 1606 bytes .../obj_ede3a2ddbf5447e4a51f314a645dbd37.bpmn | 57 + .../obj_ede3a2ddbf5447e4a51f314a645dbd37.draw | 1 + ...ede3a2ddbf5447e4a51f314a645dbd37_small.png | Bin 0 -> 1606 bytes .../obj_f63aae71b87444ca87a4c3d64362faac.bpmn | 54 + .../obj_f63aae71b87444ca87a4c3d64362faac.draw | 1 + ...f63aae71b87444ca87a4c3d64362faac_small.png | Bin 0 -> 1606 bytes .../controller/CreateProcessController.java | 343 +++ .../controller/PublishFilterController.java | 31 + .../controller/UpateFileStateController.java | 151 ++ .../apps/app/event/ProcessEndAfterEvent.java | 636 ++++++ .../apps/app/event/PublishPALRepository.java | 84 + .../app/event/UpateFileStateController.java | 66 + .../app/integration/job/ReadSendCountJob.java | 89 + .../integration/job/SendOAReadByTaskBo.java | 25 + .../integration/job/SendReadBycontract.java | 121 ++ .../app/integration/job/TestSendOARead.java | 635 ++++++ .../app/integration/job/TestSynPostJob.java | 235 ++ .../app/integration/job/UpdateOaReadJob.java | 47 + .../app/integration/job/sendReadByDataid.java | 1505 +++++++++++++ .../integration/job/sendReadByDataid2.java | 1399 ++++++++++++ .../integration/job/sendReadByDataid3.java | 1329 ++++++++++++ .../apps/app/job/CreateOutputReportJob.java | 350 +++ .../apps/app/job/CreateOutputReportJob2.java | 280 +++ .../apps/app/job/CreateOutputReportJob3.java | 142 ++ .../user/apps/app/job/NoPalFrameworkJob.java | 274 +++ .../user/apps/app/job/NoRefreshJob2.java | 403 ++++ .../user/apps/app/job/NoRefreshJob3.java | 389 ++++ .../user/apps/app/job/OAReadResultJob.java | 100 + .../awspaas/user/apps/app/job/PALUtilJob.java | 95 + .../app/job/PAlOnlinedocFileConvertJob.java | 245 +++ .../app/job/PAlOnlinedocFileConvertJob2.java | 136 ++ .../apps/app/job/ReactivateProcessJob.java | 34 + .../user/apps/app/job/ReadSendCountJob.java | 394 ++++ .../user/apps/app/job/RefreshTaskIdJob.java | 54 + .../app/job/RemoveDuplicationFileJob.java | 62 + .../user/apps/app/job/SelectPremJob.java | 90 + .../user/apps/app/job/UpdateKMSFileName.java | 55 + .../user/apps/app/oauth/OauthLogin.java | 62 + .../user/apps/app/plugins/Plugins.java | 26 + .../apps/app/publis/job/GetPalFileJob.java | 62 + .../user/apps/app/publis/job/SendEHSQJob.java | 491 +++++ .../apps/app/publis/job/SynFileStateJob.java | 54 + .../apps/app/publis/job/UpdateOaTaskJob.java | 263 +++ .../SyncFrameData_job_Controller.java | 367 ++++ .../SyncNodeData_jo_Controller.java | 1630 ++++++++++++++ .../apps/app/reportform/job/SyncData_job.java | 345 +++ .../app/reportform/job/SyncData_job2.java | 330 +++ .../app/reportform/job/SyncData_job3.java | 335 +++ .../app/reportform/job/SyncData_job4.java | 307 +++ .../app/reportform/job/SyncData_job5.java | 1660 +++++++++++++++ .../app/reportform/job/SyncNodeData_job.java | 1285 +++++++++++ .../user/apps/app/test/ExtractImages.java | 169 ++ .../awspaas/user/apps/app/util/AesUtil.java | 90 + .../awspaas/user/apps/app/util/CheckUtil.java | 28 + .../user/apps/app/util/DownloadUtil.java | 142 ++ .../user/apps/app/util/GetNodesUtil.java | 118 + .../user/apps/app/util/HttpClientUtils.java | 124 ++ .../awspaas/user/apps/app/util/HttpUtil.java | 64 + .../apps/app/util/OutputDCFileProcessor.java | 145 ++ .../user/apps/app/util/PreviewDataUtil.java | 106 + .../apps/app/util/RepositoryAttribute.java | 369 ++++ .../awspaas/user/apps/app/util/TreeUtil.java | 108 + .../awspaas/user/apps/app/util/UtilUrl.java | 51 + .../awspaas/user/apps/app/util/UtilUrls.java | 52 + .../user/apps/app/util/XmlDatasUtil.java | 240 +++ .../template/form/待办待阅-发布成功回执单.htm | 106 + .../form/待办待阅-发布成功回执单_m.htm | 101 + .../template/form/待办待阅-测试表单.htm | 66 + .../template/form/待办待阅-测试表单_m.htm | 55 + .../template/form/待办待阅-补充发送OA待阅.htm | 68 + .../form/待办待阅-补充发送OA待阅_m.htm | 55 + .../form/文件处理-PAL文件批量发布.htm | 66 + .../form/文件处理-PAL文件批量发布_m.htm | 55 + .../template/form/文件处理-PAL架构替换.htm | 70 + .../template/form/文件处理-PAL架构替换_m.htm | 55 + .../template/form/文件处理-批量刷新编号.htm | 58 + .../template/form/文件处理-批量刷新编号_m.htm | 55 + .../文件处理-批量发布时不发布的文件过滤.htm | 66 + .../文件处理-批量发布时不发布的文件过滤_m.htm | 55 + .../template/form/文件处理-文件状态修改.htm | 63 + .../template/form/文件处理-文件状态修改_m.htm | 55 + .../template/form/文件处理-空文件.htm | 51 + .../template/form/文件处理-空文件_m.htm | 55 + .../template/form/权限处理-阅览权限导入.htm | 86 + .../template/form/权限处理-阅览权限导入_m.htm | 55 + .../.classpath | 10 + .../.project | 17 + .../.classpath | 10 + .../.project | 17 + .../docview/DocumentsToReadController.java | 1 + .../apps/integration/oa/OaPendComponent.java | 82 +- .../integration/oauth/TaskController.java | 924 +++++--- .../user/apps/integration/util/AesUtil.java | 5 +- .../reportform/service/DataViewService.java | 18 +- .../service/FileManagementService3.java | 1282 +++++++++++ .../service/FileManagementService4.java | 1128 ++++++++++ .../service/ProcessPubService2.java | 1896 +++++++++++++++++ 301 files changed, 42160 insertions(+), 397 deletions(-) create mode 100644 SynUser/.classpath create mode 100644 SynUser/.project create mode 100644 SynUser/.settings/org.eclipse.jdt.core.prefs create mode 100644 SynUser/src/com/yili/org/CreateProcessController.java create mode 100644 SynUser/src/com/yili/org/DisplayController.java create mode 100644 SynUser/src/com/yili/org/IntegrationJob.java create mode 100644 SynUser/src/com/yili/org/OrgReloadJob.java create mode 100644 SynUser/src/com/yili/org/SynPostJob.java create mode 100644 SynUser/src/com/yili/org/SynPostJob2.java create mode 100644 SynUser/src/com/yili/org/SynPrem.java create mode 100644 SynUser/src/com/yili/org/SynUserJob.java create mode 100644 SynUser/src/com/yili/test/App.java create mode 100644 SynUser/src/com/yili/test/HttpJavaUtil.java create mode 100644 SynUser/src/com/yili/util/HttpClientUtil.java create mode 100644 SynUser/src/com/yili/util/UtilUrl.java create mode 100644 com.actionsoft.apps.coe.method.process.epc/method/process.epc/diagram.attribute.custom.xml_bak create mode 100644 com.actionsoft.apps.coe.pal.batch/.classpath create mode 100644 com.actionsoft.apps.coe.pal.batch/.project create mode 100644 com.actionsoft.apps.coe.pal.cooperation/.classpath create mode 100644 com.actionsoft.apps.coe.pal.cooperation/.project create mode 100644 com.actionsoft.apps.coe.pal.datamigration/.classpath create mode 100644 com.actionsoft.apps.coe.pal.datamigration/.project create mode 100644 com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/util/readword/WordUtilXWPF2.java create mode 100644 com.actionsoft.apps.coe.pal.output.pr/.classpath create mode 100644 com.actionsoft.apps.coe.pal.output.pr/.project create mode 100644 com.actionsoft.apps.coe.pal.processlist/.classpath create mode 100644 com.actionsoft.apps.coe.pal.publisher/.classpath create mode 100644 com.actionsoft.apps.coe.pal.publisher/.project create mode 100644 com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent7.java create mode 100644 com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent_new.java create mode 100644 com.awspaas.user.apps.app/.classpath create mode 100644 com.awspaas.user.apps.app/.project create mode 100644 com.awspaas.user.apps.app20221008163300/.classpath create mode 100644 com.awspaas.user.apps.app20221008163300/.project create mode 100644 com.awspaas.user.apps.app20221008163300/ExtractedText.txt create mode 100644 com.awspaas.user.apps.app20221008163300/manifest.xml create mode 100644 com.awspaas.user.apps.app20221008163300/mobile/mobile-profile.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_06a8bfc0-25e4-46f8-bc5f-f9b5e1a9c804/06a8bfc0-25e4-46f8-bc5f-f9b5e1a9c804.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_0b707241-9f6d-49a0-bffa-acb4ece3d3de/0b707241-9f6d-49a0-bffa-acb4ece3d3de.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_1f509b16-a35c-41ca-a5d7-c82d13004979/1f509b16-a35c-41ca-a5d7-c82d13004979.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_354355c2-cb66-4d1e-89b9-7db697964fd9/354355c2-cb66-4d1e-89b9-7db697964fd9.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_367a7e45-c3a7-435f-8213-49b52bb90663/367a7e45-c3a7-435f-8213-49b52bb90663.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_3eb4ced6-bc73-4d9a-b263-21be6a51bbe8/3eb4ced6-bc73-4d9a-b263-21be6a51bbe8.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_522c9ad1-5ce3-4c3c-9aaf-39323976096b/522c9ad1-5ce3-4c3c-9aaf-39323976096b.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_522c9ad1-5ce3-4c3c-9aaf-39323976096b/522c9ad1-5ce3-4c3c-9aaf-39323976096b_1.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_522c9ad1-5ce3-4c3c-9aaf-39323976096b/522c9ad1-5ce3-4c3c-9aaf-39323976096b_2.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_76ebd0a8-18ba-4bbd-8d7e-b6cfc41d50c9/76ebd0a8-18ba-4bbd-8d7e-b6cfc41d50c9.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_7e437f57-2b41-4ccb-83b7-1898c2ef164b/7e437f57-2b41-4ccb-83b7-1898c2ef164b.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_80e2f9d6-5e3b-46ba-b80a-770710ed2210/80e2f9d6-5e3b-46ba-b80a-770710ed2210.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_831ed6e3-df83-417f-85c0-2b17fd443eef/831ed6e3-df83-417f-85c0-2b17fd443eef.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_889193c3-fade-4075-8b4e-69403a3bf34d/889193c3-fade-4075-8b4e-69403a3bf34d.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_ab099a54-8a8d-46f1-b359-a4ac64b014fc/ab099a54-8a8d-46f1-b359-a4ac64b014fc.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_c15fc899-941a-42f6-ba3c-b72029e1ae3f/c15fc899-941a-42f6-ba3c-b72029e1ae3f.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_c23af0a0-f19d-4b03-b2d8-8e6a6303c3b7/c23af0a0-f19d-4b03-b2d8-8e6a6303c3b7.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_ce01c5ab-af41-43e7-996a-ee7fe12f9842/ce01c5ab-af41-43e7-996a-ee7fe12f9842.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_cea1b185-e136-40db-9c78-1e1960259906/cea1b185-e136-40db-9c78-1e1960259906.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_db21b816-bb47-4732-a2aa-f84432e1be64/db21b816-bb47-4732-a2aa-f84432e1be64.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_e407996d-58c4-4964-a907-fafbb050ed63/e407996d-58c4-4964-a907-fafbb050ed63.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_eb96d7bd-37da-4c8c-9763-6246a5de81dc/eb96d7bd-37da-4c8c-9763-6246a5de81dc.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_f1531b24-fe88-4d6a-a7ce-6cde9ade9c6a/f1531b24-fe88-4d6a-a7ce-6cde9ade9c6a.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/bo/_f17c4bf4-67d2-4d33-8b05-055e258c6fc2/f17c4bf4-67d2-4d33-8b05-055e258c6fc2.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_2521be8c988942109be6c7dd41a358c5/obj_2521be8c988942109be6c7dd41a358c5.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_35c0ed6d08b8439f9f8ef5fcef01ab27/obj_35c0ed6d08b8439f9f8ef5fcef01ab27.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_360ee5ef449d442d95292a8a60f1f7fd/obj_360ee5ef449d442d95292a8a60f1f7fd.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_3f7b624f617f4be38566e22175516284/obj_3f7b624f617f4be38566e22175516284.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_41a06cf29dc64bdc8369db4505d75222/obj_41a06cf29dc64bdc8369db4505d75222.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_4696c49b0fe64a56b2556a893491b75f/obj_4696c49b0fe64a56b2556a893491b75f.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_4f1b08c2bcd34c2f9895980c01ea4e21/obj_4f1b08c2bcd34c2f9895980c01ea4e21.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_5ed1dc03b858463698191ca1ee8d59ec/obj_5ed1dc03b858463698191ca1ee8d59ec.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_71b76d68efa6483bab116dddac582a27/obj_71b76d68efa6483bab116dddac582a27.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_75156a5ae7004e2daad5e284d26147b1/obj_75156a5ae7004e2daad5e284d26147b1.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_a4836ee471b947ea93076dcb9f22552f/obj_a4836ee471b947ea93076dcb9f22552f.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_a4836ee471b947ea93076dcb9f22552f/obj_a4836ee471b947ea93076dcb9f22552f_1.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_a4836ee471b947ea93076dcb9f22552f/obj_a4836ee471b947ea93076dcb9f22552f_2.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_1.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_10.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_2.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_3.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_4.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_5.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_6.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_7.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_8.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_9.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_b5f395389a354557ac73e2eef0315533/obj_b5f395389a354557ac73e2eef0315533.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_b6f7cd5e050c439f94499c995c041452/obj_b6f7cd5e050c439f94499c995c041452.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_bcf258f78f8542288fb55681d6237f26/obj_bcf258f78f8542288fb55681d6237f26.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_bfd25e4ac3cc4692b9a6c307a819f096/obj_bfd25e4ac3cc4692b9a6c307a819f096.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_c1d70cc462b6470a80afe0afd6b76b67/obj_c1d70cc462b6470a80afe0afd6b76b67.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_cd515d3dfd2b428481a2d407cf76a52a/obj_cd515d3dfd2b428481a2d407cf76a52a.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_cd6277fbcf8f424bb81a54962ec2a019/obj_cd6277fbcf8f424bb81a54962ec2a019.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_d0de1ebf1b5a4b8fac0c0ec357123518/obj_d0de1ebf1b5a4b8fac0c0ec357123518.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_d0de1ebf1b5a4b8fac0c0ec357123518/obj_d0de1ebf1b5a4b8fac0c0ec357123518_1.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_df7827e0f8b64318a8a3d70c4db61df6/obj_df7827e0f8b64318a8a3d70c4db61df6.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_e823232d22454476a29dd282504fa8c9/obj_e823232d22454476a29dd282504fa8c9.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/dw/_obj_ffba75874b7d468fb055dc4ca98a5d2b/obj_ffba75874b7d468fb055dc4ca98a5d2b.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/form/_174c2259-a54a-4b4f-a375-912aea4ca162/174c2259-a54a-4b4f-a375-912aea4ca162.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/form/_1fa52d9c-3422-40e3-8552-8ac8071f4c7a/1fa52d9c-3422-40e3-8552-8ac8071f4c7a.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/form/_34b4e6ad-7aa3-4237-b42a-3d2332ac57b1/34b4e6ad-7aa3-4237-b42a-3d2332ac57b1.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/form/_459ac035-8b6a-4df0-8f4c-a8525b3fcdde/459ac035-8b6a-4df0-8f4c-a8525b3fcdde.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/form/_559d4233-cce0-41e7-bc6f-773407d570e8/559d4233-cce0-41e7-bc6f-773407d570e8.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/form/_93607580-1130-4522-aa30-a37d2467908a/93607580-1130-4522-aa30-a37d2467908a.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/form/_941fb1e4-5121-4495-91bb-6239ae7d30e5/941fb1e4-5121-4495-91bb-6239ae7d30e5.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/form/_c5633ef8-8bef-4eae-9ca1-0f7be5d85232/c5633ef8-8bef-4eae-9ca1-0f7be5d85232.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/form/_ce1c5456-dca6-4439-9d73-41ce07d0d934/ce1c5456-dca6-4439-9d73-41ce07d0d934.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/form/_d3a614a6-f34f-44d4-bc97-42a5b1c21822/d3a614a6-f34f-44d4-bc97-42a5b1c21822.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/job/_041dc148-c76e-462e-b736-976e5ffb8fd8/041dc148-c76e-462e-b736-976e5ffb8fd8.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/job/_1adf3dba-9552-4943-84b6-f54574d9e6d4/1adf3dba-9552-4943-84b6-f54574d9e6d4.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/job/_3363ed21-e16f-4bc3-909e-a84413211e07/3363ed21-e16f-4bc3-909e-a84413211e07.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/job/_3d90ab79-664e-4db5-b61f-80f499a2b743/3d90ab79-664e-4db5-b61f-80f499a2b743.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/job/_46b40ada-6a1e-47a3-a7ec-dbf536393ce0/46b40ada-6a1e-47a3-a7ec-dbf536393ce0.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/job/_63dca686-8c71-4f3b-97cf-d2958ab73824/63dca686-8c71-4f3b-97cf-d2958ab73824.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/job/_63dca686-8c71-4f3b-97cf-d2958ab73824/63dca686-8c71-4f3b-97cf-d2958ab73824_1.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/job/_954d6e02-199e-4df4-ba38-edaa119c8116/954d6e02-199e-4df4-ba38-edaa119c8116.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/job/_986ac753-210f-4985-90e2-ed922d7402e0/986ac753-210f-4985-90e2-ed922d7402e0.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/job/_a4b4991a-5a53-47ab-854b-f6460fb85cd3/a4b4991a-5a53-47ab-854b-f6460fb85cd3.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/job/_a9a57f20-5bfd-4801-97b7-15f90e451e60/a9a57f20-5bfd-4801-97b7-15f90e451e60.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/job/_cd06cb12-738e-4e26-be94-ef7c6f6200a2/cd06cb12-738e-4e26-be94-ef7c6f6200a2.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/job/_cd4d3ba3-d5ca-40aa-95c6-934eea301ac5/cd4d3ba3-d5ca-40aa-95c6-934eea301ac5.xml create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_0b01eb3531a44b45be42d29d4d22043a/obj_0b01eb3531a44b45be42d29d4d22043a.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_0b01eb3531a44b45be42d29d4d22043a/obj_0b01eb3531a44b45be42d29d4d22043a.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_0b01eb3531a44b45be42d29d4d22043a/obj_0b01eb3531a44b45be42d29d4d22043a_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_1914eba9d2f14e8ea41da65f3eec7fce/obj_1914eba9d2f14e8ea41da65f3eec7fce.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_1914eba9d2f14e8ea41da65f3eec7fce/obj_1914eba9d2f14e8ea41da65f3eec7fce.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_1914eba9d2f14e8ea41da65f3eec7fce/obj_1914eba9d2f14e8ea41da65f3eec7fce_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_1c1a382bfc6542c78a8ef4a770979ba5/obj_1c1a382bfc6542c78a8ef4a770979ba5.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_1c1a382bfc6542c78a8ef4a770979ba5/obj_1c1a382bfc6542c78a8ef4a770979ba5.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_1c1a382bfc6542c78a8ef4a770979ba5/obj_1c1a382bfc6542c78a8ef4a770979ba5_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_2c71a85500bd474e86691e865668d4da/obj_2c71a85500bd474e86691e865668d4da.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_2c71a85500bd474e86691e865668d4da/obj_2c71a85500bd474e86691e865668d4da.check create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_2c71a85500bd474e86691e865668d4da/obj_2c71a85500bd474e86691e865668d4da.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_2c71a85500bd474e86691e865668d4da/obj_2c71a85500bd474e86691e865668d4da_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_47f8b75f15fc4dd688a37128ebbbcea9/obj_47f8b75f15fc4dd688a37128ebbbcea9.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_47f8b75f15fc4dd688a37128ebbbcea9/obj_47f8b75f15fc4dd688a37128ebbbcea9.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_47f8b75f15fc4dd688a37128ebbbcea9/obj_47f8b75f15fc4dd688a37128ebbbcea9_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_49a03c7cc69749b19371a3adc756cf67/obj_49a03c7cc69749b19371a3adc756cf67.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_49a03c7cc69749b19371a3adc756cf67/obj_49a03c7cc69749b19371a3adc756cf67.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_49a03c7cc69749b19371a3adc756cf67/obj_49a03c7cc69749b19371a3adc756cf67_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_49e5bd7948554e058668818a91bd76a6/obj_49e5bd7948554e058668818a91bd76a6.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_49e5bd7948554e058668818a91bd76a6/obj_49e5bd7948554e058668818a91bd76a6.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_49e5bd7948554e058668818a91bd76a6/obj_49e5bd7948554e058668818a91bd76a6_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_5f74b0ac44364849b36d856ecd2c2101/obj_5f74b0ac44364849b36d856ecd2c2101.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_5f74b0ac44364849b36d856ecd2c2101/obj_5f74b0ac44364849b36d856ecd2c2101.check create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_5f74b0ac44364849b36d856ecd2c2101/obj_5f74b0ac44364849b36d856ecd2c2101.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_5f74b0ac44364849b36d856ecd2c2101/obj_5f74b0ac44364849b36d856ecd2c2101_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_634b28a82a7749e99578c4a447eb0313/obj_634b28a82a7749e99578c4a447eb0313.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_634b28a82a7749e99578c4a447eb0313/obj_634b28a82a7749e99578c4a447eb0313.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_634b28a82a7749e99578c4a447eb0313/obj_634b28a82a7749e99578c4a447eb0313_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_66a1f3aa16244153a24fea528558a27d/obj_66a1f3aa16244153a24fea528558a27d.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_66a1f3aa16244153a24fea528558a27d/obj_66a1f3aa16244153a24fea528558a27d.check create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_66a1f3aa16244153a24fea528558a27d/obj_66a1f3aa16244153a24fea528558a27d.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_66a1f3aa16244153a24fea528558a27d/obj_66a1f3aa16244153a24fea528558a27d_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_6c660cfefada4f72916501ecc7e4e05b/obj_6c660cfefada4f72916501ecc7e4e05b.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_6c660cfefada4f72916501ecc7e4e05b/obj_6c660cfefada4f72916501ecc7e4e05b.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_6c660cfefada4f72916501ecc7e4e05b/obj_6c660cfefada4f72916501ecc7e4e05b_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_838a4ed7a67f4b71909c9b7dbdacdee2/obj_838a4ed7a67f4b71909c9b7dbdacdee2.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_838a4ed7a67f4b71909c9b7dbdacdee2/obj_838a4ed7a67f4b71909c9b7dbdacdee2.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_838a4ed7a67f4b71909c9b7dbdacdee2/obj_838a4ed7a67f4b71909c9b7dbdacdee2_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_853497604e8a47908c6cc2dcabe4bc59/obj_853497604e8a47908c6cc2dcabe4bc59.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_853497604e8a47908c6cc2dcabe4bc59/obj_853497604e8a47908c6cc2dcabe4bc59.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_853497604e8a47908c6cc2dcabe4bc59/obj_853497604e8a47908c6cc2dcabe4bc59_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_8a839b95573548a198074712ac38637a/obj_8a839b95573548a198074712ac38637a.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_8a839b95573548a198074712ac38637a/obj_8a839b95573548a198074712ac38637a.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_8a839b95573548a198074712ac38637a/obj_8a839b95573548a198074712ac38637a_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_8cb8d649f20847edbacd822fdf06a1ce/obj_8cb8d649f20847edbacd822fdf06a1ce.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_8cb8d649f20847edbacd822fdf06a1ce/obj_8cb8d649f20847edbacd822fdf06a1ce.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_8cb8d649f20847edbacd822fdf06a1ce/obj_8cb8d649f20847edbacd822fdf06a1ce_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_950b5a83746f4230aeb2a25d5c0b87df/obj_950b5a83746f4230aeb2a25d5c0b87df.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_950b5a83746f4230aeb2a25d5c0b87df/obj_950b5a83746f4230aeb2a25d5c0b87df.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_950b5a83746f4230aeb2a25d5c0b87df/obj_950b5a83746f4230aeb2a25d5c0b87df_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_a0940a4fbc414a3a8eba0f1e00e37955/obj_a0940a4fbc414a3a8eba0f1e00e37955.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_a0940a4fbc414a3a8eba0f1e00e37955/obj_a0940a4fbc414a3a8eba0f1e00e37955.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_a0940a4fbc414a3a8eba0f1e00e37955/obj_a0940a4fbc414a3a8eba0f1e00e37955_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_a3a3286ddac94e3bb5d0c13b8dd7058d/obj_a3a3286ddac94e3bb5d0c13b8dd7058d.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_a3a3286ddac94e3bb5d0c13b8dd7058d/obj_a3a3286ddac94e3bb5d0c13b8dd7058d.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_a3a3286ddac94e3bb5d0c13b8dd7058d/obj_a3a3286ddac94e3bb5d0c13b8dd7058d_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_ab675ac36cac46a38774cea27a0dd162/obj_ab675ac36cac46a38774cea27a0dd162.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_ab675ac36cac46a38774cea27a0dd162/obj_ab675ac36cac46a38774cea27a0dd162.check create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_ab675ac36cac46a38774cea27a0dd162/obj_ab675ac36cac46a38774cea27a0dd162.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_ab675ac36cac46a38774cea27a0dd162/obj_ab675ac36cac46a38774cea27a0dd162.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_ab675ac36cac46a38774cea27a0dd162/obj_ab675ac36cac46a38774cea27a0dd162_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_b4700f89a7a144c086d047de0cfe9531/obj_b4700f89a7a144c086d047de0cfe9531.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_b4700f89a7a144c086d047de0cfe9531/obj_b4700f89a7a144c086d047de0cfe9531.check create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_b4700f89a7a144c086d047de0cfe9531/obj_b4700f89a7a144c086d047de0cfe9531.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_b4700f89a7a144c086d047de0cfe9531/obj_b4700f89a7a144c086d047de0cfe9531_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_bb5827b97dcd4dd9977e7008974a3982/obj_bb5827b97dcd4dd9977e7008974a3982.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_bb5827b97dcd4dd9977e7008974a3982/obj_bb5827b97dcd4dd9977e7008974a3982.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_bb5827b97dcd4dd9977e7008974a3982/obj_bb5827b97dcd4dd9977e7008974a3982_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_bc78a39c9bc94c9fbf69764c870d11fb/obj_bc78a39c9bc94c9fbf69764c870d11fb.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_bc78a39c9bc94c9fbf69764c870d11fb/obj_bc78a39c9bc94c9fbf69764c870d11fb.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_bc78a39c9bc94c9fbf69764c870d11fb/obj_bc78a39c9bc94c9fbf69764c870d11fb_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_c504beb31bc841ef96b6b2304257f7d5/obj_c504beb31bc841ef96b6b2304257f7d5.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_c504beb31bc841ef96b6b2304257f7d5/obj_c504beb31bc841ef96b6b2304257f7d5.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_c504beb31bc841ef96b6b2304257f7d5/obj_c504beb31bc841ef96b6b2304257f7d5_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_d9483b03345a4cc2a1de79e358784a56/obj_d9483b03345a4cc2a1de79e358784a56.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_d9483b03345a4cc2a1de79e358784a56/obj_d9483b03345a4cc2a1de79e358784a56.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_d9483b03345a4cc2a1de79e358784a56/obj_d9483b03345a4cc2a1de79e358784a56_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_df02ab9de0a5469386537f3af6880f25/obj_df02ab9de0a5469386537f3af6880f25.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_df02ab9de0a5469386537f3af6880f25/obj_df02ab9de0a5469386537f3af6880f25.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_df02ab9de0a5469386537f3af6880f25/obj_df02ab9de0a5469386537f3af6880f25_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_ede3a2ddbf5447e4a51f314a645dbd37/obj_ede3a2ddbf5447e4a51f314a645dbd37.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_ede3a2ddbf5447e4a51f314a645dbd37/obj_ede3a2ddbf5447e4a51f314a645dbd37.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_ede3a2ddbf5447e4a51f314a645dbd37/obj_ede3a2ddbf5447e4a51f314a645dbd37_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_f63aae71b87444ca87a4c3d64362faac/obj_f63aae71b87444ca87a4c3d64362faac.bpmn create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_f63aae71b87444ca87a4c3d64362faac/obj_f63aae71b87444ca87a4c3d64362faac.draw create mode 100644 com.awspaas.user.apps.app20221008163300/repository/process/obj_f63aae71b87444ca87a4c3d64362faac/obj_f63aae71b87444ca87a4c3d64362faac_small.png create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/controller/CreateProcessController.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/controller/PublishFilterController.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/controller/UpateFileStateController.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/ProcessEndAfterEvent.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/PublishPALRepository.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/UpateFileStateController.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/ReadSendCountJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/SendOAReadByTaskBo.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/SendReadBycontract.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/TestSendOARead.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/TestSynPostJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/UpdateOaReadJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/sendReadByDataid.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/sendReadByDataid2.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/sendReadByDataid3.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/CreateOutputReportJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/CreateOutputReportJob2.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/CreateOutputReportJob3.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/NoPalFrameworkJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/NoRefreshJob2.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/NoRefreshJob3.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/OAReadResultJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/PALUtilJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/PAlOnlinedocFileConvertJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/PAlOnlinedocFileConvertJob2.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/ReactivateProcessJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/ReadSendCountJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/RefreshTaskIdJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/RemoveDuplicationFileJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/SelectPremJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/UpdateKMSFileName.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/oauth/OauthLogin.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/plugins/Plugins.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/GetPalFileJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/SendEHSQJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/SynFileStateJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/UpdateOaTaskJob.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/controller/SyncFrameData_job_Controller.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/controller/SyncNodeData_jo_Controller.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job2.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job3.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job4.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job5.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncNodeData_job.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/test/ExtractImages.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/AesUtil.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/CheckUtil.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/DownloadUtil.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/GetNodesUtil.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/HttpClientUtils.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/HttpUtil.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/OutputDCFileProcessor.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/PreviewDataUtil.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/RepositoryAttribute.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/TreeUtil.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/UtilUrl.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/UtilUrls.java create mode 100644 com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/XmlDatasUtil.java create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/待办待阅-发布成功回执单.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/待办待阅-发布成功回执单_m.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/待办待阅-测试表单.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/待办待阅-测试表单_m.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/待办待阅-补充发送OA待阅.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/待办待阅-补充发送OA待阅_m.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL文件批量发布.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL文件批量发布_m.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL架构替换.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL架构替换_m.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量刷新编号.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量刷新编号_m.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量发布时不发布的文件过滤.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量发布时不发布的文件过滤_m.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/文件处理-文件状态修改.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/文件处理-文件状态修改_m.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/文件处理-空文件.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/文件处理-空文件_m.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/权限处理-阅览权限导入.htm create mode 100644 com.awspaas.user.apps.app20221008163300/template/form/权限处理-阅览权限导入_m.htm create mode 100644 com.awspaas.user.apps.coe.pal.output.bd/.classpath create mode 100644 com.awspaas.user.apps.coe.pal.output.bd/.project create mode 100644 com.awspaas.user.apps.coe.pal.output.zd/.classpath create mode 100644 com.awspaas.user.apps.coe.pal.output.zd/.project create mode 100644 com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/FileManagementService3.java create mode 100644 com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/FileManagementService4.java create mode 100644 com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/ProcessPubService2.java diff --git a/SynUser/.classpath b/SynUser/.classpath new file mode 100644 index 00000000..90f2ac65 --- /dev/null +++ b/SynUser/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/SynUser/.project b/SynUser/.project new file mode 100644 index 00000000..beb82377 --- /dev/null +++ b/SynUser/.project @@ -0,0 +1,17 @@ + + + SynUser + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/SynUser/.settings/org.eclipse.jdt.core.prefs b/SynUser/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..ec1937b3 --- /dev/null +++ b/SynUser/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,12 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.release=disabled +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/SynUser/src/com/yili/org/CreateProcessController.java b/SynUser/src/com/yili/org/CreateProcessController.java new file mode 100644 index 00000000..a2b0ad79 --- /dev/null +++ b/SynUser/src/com/yili/org/CreateProcessController.java @@ -0,0 +1,33 @@ +package com.yili.org; + +import java.text.SimpleDateFormat; +import java.util.Date; + +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.TaskInstance; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.server.bind.annotation.Controller; +import com.actionsoft.bpms.server.bind.annotation.Mapping; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONObject; + +/* + * 新建流程 + */ +@Controller +public class CreateProcessController { + @Mapping("com.awspaas.user.apps.xitongfankui.createProcess") + public JSONObject CheckUser(String sid,String processDefId) { + JSONObject result = new JSONObject(); + UserContext uc = UserContext.fromSessionId(sid); + SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + ProcessInstance processInst = SDK.getProcessAPI().createProcessInstance(processDefId, uc.getUID(), "流程管理平台问题反馈"+"-"+uc.getUserName()+"-"+df.format(new Date())); + TaskInstance taskInst = SDK.getProcessAPI().start(processInst).fetchActiveTasks().get(0); + String portalUrl = SDK.getPortalAPI().getPortalUrl(); + String url = portalUrl + "/r/w?sid=" + uc.getSessionId() + + "&cmd=CLIENT_BPM_FORM_MAIN_PAGE_OPEN&processInstId=" + processInst.getId() + "&taskInstId=" + + taskInst.getId() + "&openState=1&reloadedFile=1"; + result.put("url",url); + return result; + } +} diff --git a/SynUser/src/com/yili/org/DisplayController.java b/SynUser/src/com/yili/org/DisplayController.java new file mode 100644 index 00000000..b6aeec71 --- /dev/null +++ b/SynUser/src/com/yili/org/DisplayController.java @@ -0,0 +1,52 @@ +package com.yili.org; + +import java.sql.Connection; +import java.sql.SQLException; + +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.server.bind.annotation.Controller; +import com.actionsoft.bpms.server.bind.annotation.Mapping; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +/** +* @Description 资产库菜单权限 +* @author zlf +* @date 2022年7月29日 +* +*/ +@Controller +public class DisplayController { + @Mapping("com.actionsoft.apps.coe.pal.publisher_output_desk_display") + public String display(String sid,String uid) { + Connection open = DBSql.open(); + ResponseObject ro = ResponseObject.newOkResponse(); + try { + if("admin".equals(uid)) { + ro.put("roleType","true"); + }else { + String roleType = DBSql.getString(open,"SELECT ROLETYPE FROM APP_ACT_COE_PAL_COOP_MEMBER R ,APP_ACT_COE_PAL_COOP_ROLE A WHERE R.ROLEID = A.ID AND USERID = ?", new Object[]{uid}); + System.err.println("当前登录账号:"+uid+",用户权限:"+roleType); + if(UtilString.isEmpty(roleType)) { + ro.put("roleType","false"); + }else { + if("1".equals(roleType)||"0".equals(roleType)||"2".equals(roleType)||"3".equals(roleType)) { + ro.put("roleType","true"); + }else { + ro.put("roleType","false"); + } + } + + } + } catch (Exception e) { + // TODO: handle exception + }finally { + try { + open.close(); + } catch (SQLException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + return ro.toString(); + } +} diff --git a/SynUser/src/com/yili/org/IntegrationJob.java b/SynUser/src/com/yili/org/IntegrationJob.java new file mode 100644 index 00000000..f53641f6 --- /dev/null +++ b/SynUser/src/com/yili/org/IntegrationJob.java @@ -0,0 +1,483 @@ +package com.yili.org; + +import java.sql.Connection; +import java.sql.SQLException; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; + +import org.dom4j.Document; +import org.dom4j.DocumentHelper; +import org.dom4j.Element; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.org.cache.OrgCache; +import com.actionsoft.bpms.org.cache.RoleCache; +import com.actionsoft.bpms.org.cache.UserCache; +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.org.model.RoleModel; +import com.actionsoft.bpms.org.model.UserModel; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.exception.AWSException; +import com.actionsoft.sdk.local.SDK; +import com.actionsoft.sdk.local.api.ORGAPI; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.yili.util.UtilUrl; + +/** + * 同步组织架构 + * @PackageName: com.awspaas.user.apps.yili.integration.job + * @ClassName: Integration + * @author: yujh + * @date: 2022/5/18 21:38 + */ +public class IntegrationJob implements IJob { + public static boolean init_flag = false; + public static String role_id = ""; + + + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + init_flag = Boolean.parseBoolean(SDK.getJobAPI().getJobParameter(jobExecutionContext)); + SDK.getLogAPI().consoleInfo(">>>>>job执行开始"); + SDK.getLogAPI().consoleInfo(">>>>>init部门执行开始"); + initDept(); + SDK.getLogAPI().consoleInfo(">>>>>init部门执行结束"); + SDK.getLogAPI().consoleInfo(">>>>>init人员执行开始"); + initUser(); + SDK.getLogAPI().consoleInfo(">>>>>init人员执行结束"); + SDK.getLogAPI().consoleInfo(">>>>>job执行结束"); + OrgCache.reloadOrgCahce(); + + } + + /** + * 先初始化以及部门 + * + * @return + */ + public static String initDept() { + // String url = "http://10.119.254.52:9001/MDM/ESB_MDM_ALL_QuyMdmInfoSelectSrv"; + String url = "http://10.105.1.115:8081/MDM/ESB_MDM_ALL_QuyMdmInfoSelectSrv"; + int pageNum = 30;// 暂定320页 + int pageSize = 300;// 一页300条记录 + try { + for (int i = 1; i < pageNum; i++) { + String whereStr = "Y\n" + + "ORG_CODE LIKE '%%' ORDER BY ORG_CODE\n"; + // 增量同步,修改3天之内的 + if (init_flag) { + whereStr = " Y\n" + " \n" + + " LAST_UPDATE_DATE BETWEEN SYSDATE -3 AND SYSDATE AND ORG_CODE LIKE '%%' ORDER BY ORG_CODE\n"; + } + + String xmlData = "\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " "+i+"\n" + + " \n" + + " Y\n" + + " \n" + + " "+pageSize+"\n" + + " \n" + + " LCGLPT\n" + + " \n" + + " CUX_SIEBEL_HR_ORG_V_NEW\n" + + " \n" + + whereStr + + " \n" + + " \n" + + " \n" + + ""; + + String postSoap = UtilUrl.doPostSoap(url, xmlData, ""); + //System.err.println("同步部门======》"+postSoap); + Document document = DocumentHelper.parseText(postSoap); + Element rootElement = document.getRootElement(); + Element result = rootElement.element("Body").element("getMdmInfoBySelectRequestResponse") + .element("return"); + String resultString = result.element("resultJson").getData().toString(); + JSONArray resultArray = JSONObject.parseArray(resultString); + if (resultArray.size() > 0) { + SDK.getLogAPI().consoleInfo(">>>>>遍历部门数据第"+i +"页数据:"+resultArray.size()); + try { + JSONArray level1Array = new JSONArray(); + JSONArray levelNo1Array = new JSONArray(); + for (Object o : resultArray) { + JSONObject resultJson = JSONObject.parseObject(o.toString()); + String parent_id = resultJson.getString("PARENT_ID"); + if (UtilString.isEmpty(parent_id) || parent_id.equals("00000001")) { + level1Array.add(resultJson); + } else { + levelNo1Array.add(resultJson); + } + } + createDept(level1Array); + createDept(levelNo1Array); + } catch (Exception e) { + e.printStackTrace(); + } finally { + } + } + + } + } catch (Exception e) { + e.printStackTrace(); + } + return ""; + } + + /** + * 初始化人员 + * + * @return + */ + public static String initUser() { + role_id = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "default_role_id"); + //String url = "http://10.119.254.52:9001/MDM/ESB_MDM_ALL_QuyMdmInfoSelectSrv"; + String url = "http://10.105.1.115:8081/MDM/ESB_MDM_ALL_QuyMdmInfoSelectSrv"; + //加入分页 + int pageNum = 320;//暂定320页 + int pageSize = 300;//一页300条记录 + try { + for (int i = 1; i < pageNum; i++) { + //System.out.println(">>>>>>>>>>>>>>>人员第"+i +"页开始"); + String whereStr ="Y\n" + + "STATUS != 'M'\n"; + //增量同步,修改一天之内的 + if(init_flag){ + whereStr = " Y \n" + + " \n" + + " LAST_UPDATE_TIME BETWEEN SYSDATE -3 AND SYSDATE\n"; + //" STATUS = 'A'\n"; + } + String xmlData = "\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " " + i + "\n" + + " \n" + + " Y\n" + + " \n" + + " " + pageSize + "\n" + + " \n" + + " LCGLPT\n" + + " \n" + + " GET_PERSON_BASIC_INFO\n" + + " \n" + + whereStr + + " \n" + + " \n" + + " \n" + + ""; + String postSoap = UtilUrl.doPostSoap(url, xmlData, ""); + Document document = DocumentHelper.parseText(postSoap); + Element rootElement = document.getRootElement(); + Element result = rootElement.element("Body").element("getMdmInfoBySelectRequestResponse").element("return"); + String resultString = result.element("resultJson").getData().toString(); + JSONArray resultArray = JSONObject.parseArray(resultString); + if (resultArray.size() > 0) { + SDK.getLogAPI().consoleInfo(">>>>>遍历人员第"+i +"页数据:"+resultArray.size()); + createUser(resultArray); + }else{ + break; + } + } + } catch (Exception e) { + e.printStackTrace(); + } finally { + + } + return ""; + } + + /** + * 部门信息执行插入或更新 + * + * @param resultArray + * @return + */ + public static void createDept(JSONArray resultArray) { + if (resultArray.size() == 0) { + return; + } + JSONArray noParenIdArray = new JSONArray(); + String yili_company_id = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "YILI_COMPANY_ID"); + for (Object o : resultArray) { + JSONObject resultJson = JSONObject.parseObject(o.toString()); + String org_code = resultJson.getString("ORG_CODE"); + String dept_flag = resultJson.getString("DEPT_FLAG"); + Date last_update_date = resultJson.getDate("LAST_UPDATE_DATE"); + String ehr_last_update_date = resultJson.getString("EHR_LAST_UPDATE_DATE"); + String parent_id = resultJson.getString("PARENT_ID"); + String parent_name = resultJson.getString("PARENT_NAME"); + String full_name = resultJson.getString("FULL_NAME"); + String eff_status = resultJson.getString("EFF_STATUS"); + String org_name = resultJson.getString("ORG_NAME"); + String hr_org_id = resultJson.getString("HR_ORG_ID"); + String manager_id = resultJson.getString("MANAGER_ID");//负责人id + if (UtilString.isEmpty(full_name)) { + full_name = "默认部门名称" + System.currentTimeMillis(); + } + String start_date = resultJson.getString("START_DATE"); + String end_date = resultJson.getString("END_DATE"); + JSONObject ext5 = new JSONObject(); + ext5.put("ehr_last_update_date", ehr_last_update_date); + ext5.put("parent_name", parent_name); + if (org_code.indexOf("-") > 0 || org_code.equals("00000001")) {//已撤销的机构就过滤掉,和集团 + continue; + } + + String currentId = getDeptIdByOuterId(org_code); + if (UtilString.isEmpty(currentId)) {//不存在,则走新增操作 + String parent_dept_id = "0"; + if (parent_id.equals("00000001")) { + parent_dept_id = ""; + } else if (UtilString.isNotEmpty(parent_id)) { + String selectParentDeptSql = " SELECT ID FROM ORGDEPARTMENT WHERE OUTERID = ? "; + parent_dept_id = DBSql.getString(selectParentDeptSql, new Object[]{parent_id}); + if (UtilString.isEmpty(parent_dept_id)) {//如果为空,则说明没找到 + noParenIdArray.add(resultJson); + continue; + } + } + String createDepartment = SDK.getORGAPI().createDepartment(yili_company_id, org_name, org_code, "", parent_dept_id, hr_org_id,"", full_name, manager_id, ext5.toString(), dept_flag, org_code, start_date, end_date); + String buName = ""; + //String sql ="SELECT * FROM orgdepartment WHERE DEPARTMENTNO = '"++"'"; + String sqls ="SELECT BUSINESS_UNIT FROM BO_EU_ORG_POSTS WHERE DEPTID = '"+currentId+"'"; + RowMap map = DBSql.getMap(sqls); + if(map!=null) { + SDK.getORGAPI().updateDepartment(createDepartment, org_name, org_code, ORGAPI.NO_UPDATE, hr_org_id, buName, full_name, map.getString("BUSINESS_UNIT"), ext5.toString(), dept_flag, org_code, start_date, end_date); + } + /* + String sql ="SELECT USERID FROM ORGUSER WHERE DEPARTMENTID = '"+createDepartment+"'"; + * String userId = DBSql.getString(sql); UserModel user = + * SDK.getORGAPI().getUser(userId); String departmentId = + * user.getDepartmentId(); if(user!=null) { buId = user.getExt3(); buName = + * user.getExt4(); } + */ + //String createDepartment = SDK.getORGAPI().createDepartment(yili_company_id, org_name, org_code, "", parent_dept_id, "", "", "", "", ext5.toString(), dept_flag, org_code, start_date, end_date); + if("I".equals(eff_status)) { + if(!SDK.getORGAPI().getDepartmentById(createDepartment).isClosed()) { + SDK.getORGAPI().closeDepartment(createDepartment); + } + } + + } else {//存在,则走更新操作 + if(UtilString.isNotEmpty(org_name)&&"总部".equals(org_name)) { + org_name = "伊利集团总部"; + } + + String buName = ""; + //String sql ="SELECT * FROM orgdepartment WHERE DEPARTMENTNO = '"++"'"; + String sql ="SELECT BUSINESS_UNIT FROM BO_EU_ORG_POSTS WHERE DEPTID = '"+currentId+"'"; + RowMap map = DBSql.getMap(sql); + if(map!=null) { + SDK.getORGAPI().updateDepartment(currentId, org_name, org_code, ORGAPI.NO_UPDATE, hr_org_id, buName, full_name, map.getString("BUSINESS_UNIT"), ext5.toString(), dept_flag, org_code, start_date, end_date); + } + if("A".equals(eff_status)) { + if(SDK.getORGAPI().getDepartmentById(currentId).isClosed()) { + SDK.getORGAPI().activeDepartment(currentId); + } + } + // SDK.getORGAPI().updateDepartment(currentId, org_name, org_code, ORGAPI.NO_UPDATE, "", "", "", "", ext5.toString(), dept_flag, org_code, start_date, end_date); + if("I".equals(eff_status)) { + if(!SDK.getORGAPI().getDepartmentById(currentId).isClosed()) { + SDK.getORGAPI().closeDepartment(currentId); + } + } + } + + } + if (noParenIdArray.size() > 0) { + createDept(noParenIdArray); + } + } + + /** + * 新增或更新人员 + * + * @param resultArray + * @param conn + */ + public static void createUser(JSONArray resultArray) { + JSONArray emptyArray = new JSONArray(); + for (Object o : resultArray) { + JSONObject resultJson = JSONObject.parseObject(o.toString()); + String emp_id = resultJson.getString("EMP_ID");//员工编号 + String emp_name = resultJson.getString("EMP_NAME");//员工姓名 + String business_unit = resultJson.getString("BUSINESS_UNIT");//事业部id + String bu_name = resultJson.getString("BU_NAME");//事业部名称 + String dept_id = resultJson.getString("DEPT_ID");//部门id + String status = resultJson.getString("STATUS");//人员状态编码 + String status_name = resultJson.getString("STATUS_NAME");//人员状态编码 + String sex = resultJson.getString("SEX");//性别编码 + String sex_name = resultJson.getString("SEX_NAME");//性别描述 + String phone = resultJson.getString("PHONE");//移动电话 + String email_addr = resultJson.getString("EMAIL_ADDR");//邮箱 + String job_class = resultJson.getString("JOB_CLASS");//职级类别编码 + String job_class_name = resultJson.getString("JOB_CLASS_NAME");//职级类别描述 + String job_family = resultJson.getString("JOB_FAMILY");//职级编码 + String job_family_name = resultJson.getString("JOB_FAMILY_NAME");//职级描述 + String job_code = resultJson.getString("JOB_CODE");//职务id + String job_name = resultJson.getString("JOB_NAME");//职务描述 + String position = resultJson.getString("POSITION");//新职务ID + String position_name = resultJson.getString("POSITION_NAME");//新职务描述 + String supervisor_id = resultJson.getString("SUPERVISOR_ID");//直接上级id + String currentId = getDeptIdByOuterId(dept_id); + if (UtilString.isEmpty(currentId)) { + System.out.println(">>>>>dept_id:"+dept_id); + System.out.println(">>>>>currentId:"+currentId); + emptyArray.add(resultJson); + continue; + } + JSONObject ext5 = new JSONObject(); + ext5.put("business_unit", business_unit); + ext5.put("bu_name", bu_name); + ext5.put("sex", sex); + UserModel model = UserCache.getModel(emp_id); + String sql ="SELECT ID FROM ORGUSER WHERE USERID = ?"; + String Id = DBSql.getString(sql,new Object[] {emp_id}); + if(null != model||UtilString.isNotEmpty(Id)){ + //用户名合法,则存在走更新逻辑 + if("I".equals(status)) { + //SDK.getORGAPI().removeUser(emp_id); + disabledOrActiveUser(emp_id, status); + System.err.println("本次同步注销人员===>:"+emp_id); + continue; + }else { + Map map =new HashMap(); + map.put("departmentId",currentId); + map.put("mobile",phone); + map.put("position_layer",job_class); + map.put("positionNo",position); + map.put("positionName",position_name); + map.put("email","");//邮件置空,规避不合法 + map.put("reportTo","");//汇报人置空,规避不合法 + map.put("ext1",job_family); + map.put("ext2",job_family_name); + map.put("ext3",business_unit); + map.put("ext4",bu_name); + map.put("ext5",ext5); + int i = SDK.getORGAPI().updateUser(emp_id, map); + //因为新增是,汇报人和email会强校验,则sql执行修改操作 + String updateUserSql = " UPDATE ORGUSER SET EMAIL = ?,REPORTTO = ? WHERE USERID = ?"; + if(UtilString.isNotEmpty(email_addr)){ + email_addr = email_addr.split(" ")[0]; + } + if(UtilString.isNotEmpty(email_addr) && email_addr.indexOf("/")>0){ + email_addr = email_addr.split("/")[1]; + } + DBSql.update(updateUserSql,new Object[]{email_addr,supervisor_id,emp_id}); + } + }else {//不存在,则走新增逻辑,或者激活逻辑 + + //先判断角色是否存在,不存在则创建 + String roleId = checkOrCreateRole(job_name,job_code,job_class_name); + //先判断岗位是否存在,不存在则创建 + checkOrCreatePostion(position_name,position,job_class_name); + int createUser = 0; + try { + createUser = SDK.getORGAPI().createUser(currentId, emp_id, emp_name, roleId, emp_id, "", false, "", phone, "", "", job_class, position, position_name, "", job_family, job_family_name, business_unit, bu_name, ext5.toString(), dept_id); + + } catch (Exception e) { + // TODO: handle exception + } + if(createUser!=0) { + System.err.println("本次同步新增人员===>"+emp_name+":"+emp_id); + } + //因为新增是,汇报人和email会强校验,则sql执行修改操作 + String updateUserSql = " UPDATE ORGUSER SET EMAIL = ?,REPORTTO = ? WHERE USERID = ?"; + if(UtilString.isNotEmpty(email_addr)){ + email_addr = email_addr.split(" ")[0]; + } + if(UtilString.isNotEmpty(email_addr) && email_addr.indexOf("/")>0){ + email_addr = email_addr.split("/")[1]; + } + DBSql.update(updateUserSql,new Object[]{email_addr,supervisor_id,emp_id}); + } + disabledOrActiveUser(emp_id,status); + } + SDK.getLogAPI().consoleInfo("emptyArray.size():"+emptyArray.size() + ""); + } + /** + * 先判断角色是否存在,不存在则创建 + * + * @return + */ + public static String checkOrCreateRole(String job_name, String job_code,String job_class_name) { + RoleModel model = RoleCache.getModelByNo(job_code); + try { + if(UtilString.isEmpty(model)){ + String role = SDK.getORGAPI().createRole(job_name, job_class_name, job_code); + System.err.println("本次同步新增角色===>"+job_name); + return role; + } + }catch (AWSException e){ + if(e.getCause().toString().indexOf("重复")>0){ + String role = SDK.getORGAPI().createRole(job_name+System.currentTimeMillis(), job_class_name, job_code); + System.err.println("本次同步新增角色===>"+job_name); + return role; + } + e.printStackTrace(); + return role_id; + } + return model.getId(); + } + + /** + * 先判断岗位是否存在,不存在则创建 + * + * @return + */ + public static String checkOrCreatePostion(String position_name, String position,String job_class_name) { + RoleModel model = RoleCache.getModelByNo(position); + try { + if(UtilString.isEmpty(model)){ + String role = SDK.getORGAPI().createPosition(position_name, job_class_name, position); + System.err.println("本次同步新增岗位===>"+position_name); + + return role; + } + }catch (AWSException e){ + e.printStackTrace(); + return role_id; + } + return model.getId(); + } + /** + * 根据外部Id获取部门Id + * + * @return + */ + public static String getDeptIdByOuterId(String org_code) { + String selectDeptSql = " SELECT ID FROM ORGDEPARTMENT WHERE OUTERID = ? "; + String currentId = DBSql.getString(selectDeptSql, new Object[]{org_code}); + return currentId; + } + + /** + * 注销或激活用户 + * @return + */ + public static void disabledOrActiveUser(String userId,String status){ + if(status.equals("A")){ //有效员工 + SDK.getORGAPI().activateUser(userId); + }else if(status.equals("I")){//无效员工 + SDK.getORGAPI().disabledUser(userId); + } + + } +} diff --git a/SynUser/src/com/yili/org/OrgReloadJob.java b/SynUser/src/com/yili/org/OrgReloadJob.java new file mode 100644 index 00000000..7ddd7565 --- /dev/null +++ b/SynUser/src/com/yili/org/OrgReloadJob.java @@ -0,0 +1,20 @@ +package com.yili.org; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.org.cache.OrgCache; +import com.actionsoft.bpms.schedule.IJob; + +/** + * @PackageName: com.awspaas.user.apps.yili.integration.job + * @ClassName: OrgReloadJob + * @author: yujh + * @date: 2022/5/23 9:03 + */ +public class OrgReloadJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + OrgCache.reloadOrgCahce(); + } +} diff --git a/SynUser/src/com/yili/org/SynPostJob.java b/SynUser/src/com/yili/org/SynPostJob.java new file mode 100644 index 00000000..660decf1 --- /dev/null +++ b/SynUser/src/com/yili/org/SynPostJob.java @@ -0,0 +1,235 @@ +package com.yili.org; + +import java.sql.Connection; +import java.sql.SQLException; +import java.util.Map; + +import org.dom4j.Document; +import org.dom4j.DocumentHelper; +import org.dom4j.Element; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.org.cache.OrgCache; +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.actionsoft.sdk.local.api.ORGAPI; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.yili.util.UtilUrl; + +/** + * 同步岗位 + * @PackageName: com.awspaas.user.apps.yili.integration.job + * @ClassName: Integration + * @author: yujh + * @date: 2022/5/18 21:38 + */ +public class SynPostJob implements IJob { + public static boolean init_flag = false; + public static String role_id = ""; + + + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + init_flag = Boolean.parseBoolean(SDK.getJobAPI().getJobParameter(jobExecutionContext)); + SDK.getLogAPI().consoleInfo(">>>>>job执行开始"); + SDK.getLogAPI().consoleInfo(">>>>>init岗位执行开始"); + long startTime = System.currentTimeMillis(); //获取开始时间 + initUser(); + long endTime = System.currentTimeMillis(); //获取结束时间 + System.out.println("程序运行时间:" + (endTime - startTime)/1000/60 + "min"); //输出程序运行时间 + SDK.getLogAPI().consoleInfo(">>>>>init岗位执行结束"); + SDK.getLogAPI().consoleInfo(">>>>>job执行结束"); + OrgCache.reloadOrgCahce(); + + } + + + /** + * 初始化岗位 + * + * @return + */ + public static String initUser() { + role_id = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "default_role_id"); + String url = "http://10.105.1.115:8081/MDM/ESB_MDM_ALL_QuyMdmInfoSelectSrv"; + // String url = "http://10.119.254.52:9001/MDM/ESB_MDM_ALL_QuyMdmInfoSelectSrv"; + // 加入分页 + int num = 0; + int count = 0; + int pageNum = 300;// 暂定320页 + int pageSize = 300;// 一页300条记录 + Connection conn = null; + try { + conn = DBSql.open(); + for (int i = 1; i <= pageNum; i++) { + System.out.println(">>>>>>>>>>>>>>>同步岗位第" + i + "页开始"); + // 增量同步,修改一个月之内的 + // System.err.println("---------------"+init_flag); + + //String whereStr = "NEFF_STATUS = 'I'\n"; + String whereStr = "N\n"; + if (init_flag) { + whereStr = " Y\n" + " \n" + + " LAST_UPDATE_TIME BETWEEN SYSDATE -1 AND SYSDATE "; + } + + String xmlData = "\n" + + " \n" + " \n" + " \n" + + " \n" + " \n" + + " \n" + " " + i + "\n" + + " \n" + " Y\n" + + " \n" + " " + pageSize + "\n" + + " \n" + " LCGLPT\n" + + " \n" + " V_GET_POSITION\n" + + " \n" + whereStr + " \n" + + " \n" + " \n" + ""; + String postSoap = UtilUrl.doPostSoap(url, xmlData, ""); + Document document = DocumentHelper.parseText(postSoap); + Element rootElement = document.getRootElement(); + Element result = rootElement.element("Body").element("getMdmInfoBySelectRequestResponse") + .element("return"); + // String pageSizes = result.element("pageSize").getData().toString(); + // System.err.println("pageSizes========"+pageSizes); + String resultString = result.element("resultJson").getData().toString(); + // String resultNum = result.element("totalRecord").getData().toString(); + JSONArray resultArray = JSONObject.parseArray(resultString); + count += resultArray.size(); + if (resultArray.size() > 0) { + SDK.getLogAPI().consoleInfo(">>>>>遍历岗位第" + i + "页数据:" + resultArray.size()); + int createUser = createPost(resultArray, conn); + num += createUser; + } else { + break; + } + } + } catch (Exception e) { + e.printStackTrace(); + } finally { + try { + conn.close(); + } catch (SQLException throwables) { + throwables.printStackTrace(); + } + } + + SDK.getLogAPI().consoleInfo("本次共同步岗位数据num:" + num + "条"); + SDK.getLogAPI().consoleInfo("本次共同步岗位数据count:" + count + "条"); + return ""; + } + + + + /** + * 新增或更新岗位 + * + * @param resultArray + * @param conn + */ + public static int createPost(JSONArray resultArray, Connection conn) { + int count = 0; + for (Object o : resultArray) { + JSONObject resultJson = JSONObject.parseObject(o.toString()); + String postId = resultJson.getString("POSITION_NBR");// 职位编码 + String sqt = "SELECT * FROM BO_EU_ORG_POSTS WHERE POSITION_NBR ='" + postId + "'"; + RowMap map = DBSql.getMap(sqt); + int createData = createData(resultJson, map); + if(createData>0) { + count++; + } + + } + return count; + + } + /** + * 创建/更新数据 + * @param resultJson + * @param map + * @return + */ + public static int createData(JSONObject resultJson, RowMap map) { + ORGAPI orgapi = SDK.getORGAPI(); + BO bo = new BO(); + if(map!=null) { + bo= SDK.getBOAPI().get("BO_EU_ORG_POSTS", map.getString("ID")); + } + String outerId = resultJson.getString("DEPTID");// 部门id + String status = resultJson.getString("EFF_STATUS"); + String postId = resultJson.getString("POSITION_NBR");// 岗位ID + Map innerMap = resultJson.getInnerMap(); + String sql = "SELECT ID FROM ORGDEPARTMENT WHERE OUTERID = '" + outerId + "'"; + String deId = DBSql.getString(sql); + innerMap.remove("DEPTID"); + innerMap.put("OUTERID", outerId); + innerMap.put("STATUS", status); + if (UtilString.isNotEmpty(deId)) { + innerMap.put("DEPTID", deId); + DepartmentModel departmentById = orgapi.getDepartmentById(deId); + if (null != departmentById) { + innerMap.put("DEPTNAME", departmentById.getName()); + String parentDepartmentId = departmentById.getParentDepartmentId(); + innerMap.put("DEPTPEID", parentDepartmentId); + if ("0".equals(parentDepartmentId)) { + innerMap.put("DEPTPENAME", "内蒙古伊利实业集团股份有限公司"); + } else { + innerMap.put("DEPTPENAME", orgapi.getDepartmentById(parentDepartmentId).getName()); + } + } + } + bo.setAll(innerMap); + if(map!=null) { + int update = SDK.getBOAPI().update("BO_EU_ORG_POSTS", bo); + if (update > 0) { + if ("A".equals(status)) { + //System.err.println("更新的岗位======>" + postId); + } else { + System.err.println("注销的岗位======>" + postId); + } + } + return update; + }else { + int createDataBO = 0; + if("A".equals(status)) { + createDataBO = SDK.getBOAPI().createDataBO("BO_EU_ORG_POSTS", bo, UserContext.fromUID("admin")); + if(createDataBO>0) { + System.err.println("新增的岗位======>" + postId); + } + } + return createDataBO; + } + } + + /** + * 岗位是否存在 + * @return + */ + public static String getPost(String postId, Connection conn){ + String selectUserSql = " SELECT ID FROM ORGROLE WHERE ROLENO = ? "; + String userId = DBSql.getString(conn, selectUserSql, new Object[]{postId}); + return userId; + + } + + + + /** + * 根据外部Id获取部门Id + * + * @return + */ + public static String getDeptIdByOuterId(String org_code, Connection conn) { + String selectDeptSql = " SELECT ID FROM ORGDEPARTMENT WHERE OUTERID = ? "; + String currentId = DBSql.getString(conn, selectDeptSql, new Object[]{org_code}); + return currentId; + } + + +} diff --git a/SynUser/src/com/yili/org/SynPostJob2.java b/SynUser/src/com/yili/org/SynPostJob2.java new file mode 100644 index 00000000..d077aa7c --- /dev/null +++ b/SynUser/src/com/yili/org/SynPostJob2.java @@ -0,0 +1,129 @@ +package com.yili.org; + +import java.sql.Connection; +import java.util.List; +import java.util.Map; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.org.cache.OrgCache; +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.actionsoft.sdk.local.api.ORGAPI; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; + +/** + * 同步岗位 + * @PackageName: com.awspaas.user.apps.yili.integration.job + * @ClassName: Integration + * @author: yujh + * @date: 2022/5/18 21:38 + */ +public class SynPostJob2 implements IJob { + public static boolean init_flag = false; + public static String role_id = ""; + + + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + init_flag = Boolean.parseBoolean(SDK.getJobAPI().getJobParameter(jobExecutionContext)); + SDK.getLogAPI().consoleInfo(">>>>>job执行开始"); + SDK.getLogAPI().consoleInfo(">>>>>init岗位执行开始"); + long startTime = System.currentTimeMillis(); //获取开始时间 + long endTime = System.currentTimeMillis(); //获取结束时间 + System.out.println("程序运行时间:" + (endTime - startTime)/1000/60 + "min"); //输出程序运行时间 + SDK.getLogAPI().consoleInfo(">>>>>init岗位执行结束"); + SDK.getLogAPI().consoleInfo(">>>>>job执行结束"); + OrgCache.reloadOrgCahce(); + + } + + + /** + * 新增或更新岗位 + * + * @param resultArray + * @param conn + */ + public static int createUser(JSONArray resultArray, Connection conn) { + List maps = DBSql.getMaps("SELECT * FROM BO_EU_ORG_POSTS"); + for (RowMap rowMap : maps) { + String deptId = rowMap.getString("DEPTID"); + + + + + + + } + + ORGAPI orgapi = SDK.getORGAPI(); + int count = 0; + for (Object o : resultArray) { + BO bo = new BO(); + JSONObject resultJson = JSONObject.parseObject(o.toString()); + String postId = resultJson.getString("POSITION_NBR");//职位编码 + String sqt = "SELECT ID FROM BO_EU_ORG_POSTS WHERE POSITION_NBR ='"+postId+"'"; + if(UtilString.isEmpty(DBSql.getString(sqt))) { + String outerId = resultJson.getString("DEPTID");// 部门id + Map innerMap = resultJson.getInnerMap(); + String sql = "SELECT ID FROM ORGDEPARTMENT WHERE OUTERID = '"+outerId+"'"; + String deId = DBSql.getString(sql); + innerMap.remove("DEPTID"); + innerMap.put("OUTERID", outerId); + if(UtilString.isNotEmpty(deId)) { + innerMap.put("DEPTID",deId); + DepartmentModel departmentById = orgapi.getDepartmentById(deId); + if (null!=departmentById) { + innerMap.put("DEPTNAME", departmentById.getName()); + String parentDepartmentId = departmentById.getParentDepartmentId(); + innerMap.put("DEPTPEID", parentDepartmentId); + if ("0".equals(parentDepartmentId)) { + innerMap.put("DEPTPENAME", "内蒙古伊利实业集团股份有限公司"); + } else { + innerMap.put("DEPTPENAME", orgapi.getDepartmentById(parentDepartmentId).getName()); + } + } + } + bo.setAll(innerMap); + SDK.getBOAPI().createDataBO("BO_EU_ORG_POSTS", bo, UserContext.fromUID("admin")); + } + + } + return count; + + } + + /** + * 岗位是否存在 + * @return + */ + public static String getPost(String postId, Connection conn){ + String selectUserSql = " SELECT ID FROM ORGROLE WHERE ROLENO = ? "; + String userId = DBSql.getString(conn, selectUserSql, new Object[]{postId}); + return userId; + + } + + + + /** + * 根据外部Id获取部门Id + * + * @return + */ + public static String getDeptIdByOuterId(String org_code, Connection conn) { + String selectDeptSql = " SELECT ID FROM ORGDEPARTMENT WHERE OUTERID = ? "; + String currentId = DBSql.getString(conn, selectDeptSql, new Object[]{org_code}); + return currentId; + } + + +} diff --git a/SynUser/src/com/yili/org/SynPrem.java b/SynUser/src/com/yili/org/SynPrem.java new file mode 100644 index 00000000..9c988b51 --- /dev/null +++ b/SynUser/src/com/yili/org/SynPrem.java @@ -0,0 +1,176 @@ +package com.yili.org; + +import java.util.ArrayList; +import java.util.List; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UUIDGener; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; + +/** + * 同步阅览权限 + * @PackageName: com.awspaas.user.apps.yili.integration.job + * @ClassName: Integration + * @author: yujh + * @date: 2022/9/18 21:38 + */ +public class SynPrem implements IJob { + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + UserContext uc = UserContext.fromUID("admin"); + List list = SDK.getBOAPI().query("BO_EU_PUBLISH_SCOPE_IMPORT").list(); + for (BO bos : list) { + String palName = bos.getString("PALNAME"); + String orgPerm = bos.getString("ORGPERM"); + String postPerm = bos.getString("POSTPERM"); + String levelPrem = bos.getString("LEVELPERM"); + String sendScope = bos.getString("SEND_SCOP"); + StringBuffer orgFail = new StringBuffer(); + StringBuffer orgPermBuf = new StringBuffer(); + String[] orgPermArr = orgPerm.split(","); + for (int i = 0; i < orgPermArr.length; i++) { + if ("伊利集团".equals(orgPermArr[i])) { + sendScope = "1"; + + } else { + String dsql = "SELECT ID FROM ORGDEPARTMENT WHERE DEPARTMENTNAME = '" + orgPermArr[i].trim() + "'"; + String depId = DBSql.getString(dsql); + if (UtilString.isNotEmpty(depId)) { + if(orgPermBuf.length()>0) { + String string = orgPermBuf.toString(); + if(!string.contains(depId)) { + if(i!=orgPermArr.length-1) { + orgPermBuf.append(depId).append(","); + }else { + orgPermBuf.append(depId); + } + } + + }else { + if (i!=orgPermArr.length-1) { + orgPermBuf.append(depId).append(","); + } else { + orgPermBuf.append(depId); + } + } + + + } else { + if (UtilString.isNotEmpty(orgPermArr[i])) { + orgFail.append(orgPermArr[i]).append(","); + } + } + + } + } + bos.set("ORGFAIL", orgFail); + StringBuffer postFail = new StringBuffer(); + StringBuffer postPermBuf = new StringBuffer(); + String[] postPermArr = postPerm.split(","); + + for (int i = 0; i < postPermArr.length; i++) { + String postNbrSql = "SELECT POSITION_NBR FROM BO_EU_ORG_POSTS WHERE DESCR = '" + postPermArr[i].trim() + "'"; + String postNbr = DBSql.getString(postNbrSql); + if (UtilString.isNotEmpty(postNbr)) { + if(postPermBuf.length()>0) { + String string = postPermBuf.toString(); + if(!string.contains(postNbr)) { + if (i!=postPermArr.length-1) { + postPermBuf.append(postNbr).append(","); + } else { + postPermBuf.append(postNbr); + } + } + }else { + if (i!=postPermArr.length-1) { + postPermBuf.append(postNbr).append(","); + } else { + postPermBuf.append(postNbr); + } + + } + + } else { + if (UtilString.isNotEmpty(postPermArr[i])) { + postFail.append(postPermArr[i]).append(","); + } + } + } + bos.set("POSTFAIL", postFail); + + StringBuffer levelFail = new StringBuffer(); + StringBuffer levelPremArrBuf = new StringBuffer(); + String[] levelPremArr = levelPrem.split(","); + for (String str : levelPremArr) { + if (UtilString.isNotEmpty(str)) { + if (str.equals(levelPremArr[levelPremArr.length - 1])) { + levelPremArrBuf.append(str); + } else { + levelPremArrBuf.append(str).append(","); + } + } else { + if (UtilString.isNotEmpty(str)) { + levelFail.append(str).append(","); + } + } + } + bos.set("LEVELFAIL", levelFail); + + List premlist = new ArrayList<>(); + String sqls = "SELECT * FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME = '" + palName.trim() + "'"; + List maps = DBSql.getMaps(sqls); + if (maps.size() == 0) { + bos.set("RESULT", "导入失败,未匹配到模型!"); + SDK.getBOAPI().update("BO_EU_PUBLISH_SCOPE_IMPORT", bos); + } else { + for (RowMap rowMap : maps) { + String sqlString = "SELECT ID FROM BO_ACT_PUBLISH_PERM_SCOPE WHERE PALVERSIONID = '" + + rowMap.getString("PLVERSIONID") + "'"; + List maps2 = DBSql.getMaps(sqlString); + for (RowMap rowMapw : maps2) { + SDK.getBOAPI().remove("BO_ACT_PUBLISH_PERM_SCOPE", rowMapw.getString("ID")); + } + BO bo = new BO(); + bo.set("PERMID", UUIDGener.getUUID()); + bo.set("WSID", rowMap.getString("WSID")); + bo.set("PALVERSIONID", rowMap.getString("PLVERSIONID")); + bo.set("PALNAME", rowMap.getString("PLNAME")); + bo.set("PERMTYPE", sendScope); + bo.set("ORGPERM", orgPermBuf); + bo.set("POSTPERM", postPermBuf); + bo.set("LEVELPERM", levelPremArrBuf); + premlist.add(bo); + } + if (premlist.size() > 0) { + try { + if (orgFail.length() != 0 || postFail.length() != 0 || levelFail.length() != 0) { + bos.set("RESULT", "导入部分成功!"); + + } else { + bos.set("RESULT", "导入成功!"); + } + SDK.getBOAPI().createDataBO("BO_ACT_PUBLISH_PERM_SCOPE", premlist, uc); + SDK.getLogAPI().consoleInfo("[发布范围权限信息保存至范围权限表]更新成功"); + + } catch (Exception e) { + bos.set("RESULT", "导入失败,字段长度超出范围!"); + } + SDK.getBOAPI().update("BO_EU_PUBLISH_SCOPE_IMPORT", bos); + } + + } + + } + + } + + + +} diff --git a/SynUser/src/com/yili/org/SynUserJob.java b/SynUser/src/com/yili/org/SynUserJob.java new file mode 100644 index 00000000..8597fccc --- /dev/null +++ b/SynUser/src/com/yili/org/SynUserJob.java @@ -0,0 +1,243 @@ +package com.yili.org; + +import java.sql.Connection; +import java.sql.SQLException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.dom4j.Document; +import org.dom4j.DocumentHelper; +import org.dom4j.Element; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.org.cache.OrgCache; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.yili.util.UtilUrl; + +/** + * 同步组织架构 + * @PackageName: com.awspaas.user.apps.yili.integration.job + * @ClassName: Integration + * @author: yujh + * @date: 2022/5/18 21:38 + */ +public class SynUserJob implements IJob { + public static boolean init_flag = false; + public static String role_id = ""; + + + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + init_flag = Boolean.parseBoolean(SDK.getJobAPI().getJobParameter(jobExecutionContext)); + SDK.getLogAPI().consoleInfo(">>>>>job执行开始"); + SDK.getLogAPI().consoleInfo(">>>>>init人员执行开始"); + long startTime = System.currentTimeMillis(); //获取开始时间 + initUser(); + long endTime = System.currentTimeMillis(); //获取结束时间 + System.out.println("程序运行时间:" + (endTime - startTime)/1000/60 + "min"); //输出程序运行时间 + SDK.getLogAPI().consoleInfo(">>>>>init人员执行结束"); + SDK.getLogAPI().consoleInfo(">>>>>job执行结束"); + OrgCache.reloadOrgCahce(); + + } + + + /** + * 初始化人员 + * + * @return + */ + public static String initUser() { + role_id = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "default_role_id"); + //String url = "http://10.119.254.52:9001/MDM/ESB_MDM_ALL_QuyMdmInfoSelectSrv"; + String url = "http://10.105.1.115:8081/MDM/ESB_MDM_ALL_QuyMdmInfoSelectSrv"; + //加入分页 + int num = 0; + int count= 0; + int pageNum = 320;//暂定320页 + int pageSize = 300;//一页300条记录 + Connection conn = null; + try { + conn = DBSql.open(); + for (int i = 1; i <= pageNum; i++) { + System.out.println(">>>>>>>>>>>>>>>同步人员第"+i +"页开始"); + String whereStr ="Y\n" + + "STATUS = 'A'\n"; + //增量同步,修改一个月之内的 + System.err.println("---------------"+init_flag); + /* + * if(init_flag){ whereStr = " Y\n" + + * " \n" + + * " LAST_UPDATE_TIME BETWEEN ADD_MONTHS(SYSDATE, -3) AND SYSDATE \n" + * ; //" STATUS = 'A'\n"; } + */ + String xmlData = "\n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " " + i + "\n" + + " \n" + + " Y\n" + + " \n" + + " " + pageSize + "\n" + + " \n" + + " LCGLPT\n" + + " \n" + + " GET_PERSON_BASIC_INFO\n" + + " \n" + + whereStr + + " \n" + + " \n" + + " \n" + + ""; + String postSoap = UtilUrl.doPostSoap(url, xmlData, ""); + Document document = DocumentHelper.parseText(postSoap); + Element rootElement = document.getRootElement(); + Element result = rootElement.element("Body").element("getMdmInfoBySelectRequestResponse").element("return"); + // String jsonString = JSONObject.toJSONString(result); + // System.err.println("接口返回结果:"+jsonString); + String resultString = result.element("resultJson").getData().toString(); + //String resultNum = result.element("totalRecord").getData().toString(); + String pageSizes = result.element("pageSize").getData().toString(); + String nextPageFlag = result.element("nextPageFlag").getData().toString(); + JSONArray resultArray = JSONObject.parseArray(resultString); + count+=resultArray.size(); + if (resultArray.size() > 0) { + //SDK.getLogAPI().consoleInfo(">>>>>遍历人员第"+i +"页数据:"+resultArray.size()); + int createUser = createUser(resultArray, conn); + num+=createUser; + }else{ + break; + } + } + } catch (Exception e) { + e.printStackTrace(); + } finally { + try { + conn.close(); + } catch (SQLException throwables) { + throwables.printStackTrace(); + } + } + + + SDK.getLogAPI().consoleInfo("本次共同步人员数据num:" + num+"条"); + SDK.getLogAPI().consoleInfo("本次共同步人员数据count:" + count+"条"); + return ""; + } + + + + /** + * 新增或更新人员 + * + * @param resultArray + * @param conn + */ + public static int createUser(JSONArray resultArray, Connection conn) { + int count = 0; + for (Object o : resultArray) { + + JSONObject resultJson = JSONObject.parseObject(o.toString()); + String status = resultJson.getString("STATUS");//人员状态编码 + String emp_id = resultJson.getString("EMP_ID");//员工编号 + if(UtilString.isEmpty(getUserId(emp_id, conn))){ + continue; + } + + String emp_name = resultJson.getString("EMP_NAME");//员工姓名 + String business_unit = resultJson.getString("BUSINESS_UNIT");//事业部id + String bu_name = resultJson.getString("BU_NAME");//事业部名称 + String dept_id = resultJson.getString("DEPT_ID");//部门id + String status_name = resultJson.getString("STATUS_NAME");//人员状态编码 + String sex = resultJson.getString("SEX");//性别编码 + String sex_name = resultJson.getString("SEX_NAME");//性别描述 + String phone = resultJson.getString("PHONE");//移动电话 + String email_addr = resultJson.getString("EMAIL_ADDR");//邮箱 + String job_class = resultJson.getString("JOB_CLASS");//职级类别编码 + String job_class_name = resultJson.getString("JOB_CLASS_NAME");//职级类别描述 + String job_family = resultJson.getString("JOB_FAMILY");//职级编码 + String job_family_name = resultJson.getString("JOB_FAMILY_NAME");//职级描述 + String job_code = resultJson.getString("JOB_CODE");//职务id + String job_name = resultJson.getString("JOB_NAME");//职务描述 + String position = resultJson.getString("POSITION");//新职务ID + String position_name = resultJson.getString("POSITION_NAME");//新职务描述 + String supervisor_id = resultJson.getString("SUPERVISOR_ID");//直接上级id + + Map map =new HashMap(); + map.put("mobile",phone); + map.put("position_layer",job_class); + map.put("positionNo",position); + map.put("positionName",position_name); + map.put("ext1",job_family); + map.put("ext2",job_family_name); + map.put("ext3",business_unit); + map.put("ext4",bu_name); + map.put("reportTo",supervisor_id); + + String sql = "SELECT ID FROM ORGROLE WHERE ROLENO = '"+position+"'"; + List maps = DBSql.getMaps(sql); + + if(UtilString.isEmpty(job_class)) { + job_class = "空"; + } + if(UtilString.isEmpty(supervisor_id)) { + supervisor_id = "空"; + } + String updateUserSql = "UPDATE ORGUSER SET POSITION_LAYER = ? ,EXT1 = ? ,EXT2 = ? ,EXT3 = ? ,EXT4 = ? ,REPORTTO = ? WHERE USERID = ?"; + count+=DBSql.update(conn,updateUserSql,new Object[]{job_class,job_family,job_family_name,business_unit,bu_name,supervisor_id,emp_id}); + } + return count; + + } + + /** + * 用户是否存在 + * @return + */ + public static String getUserId(String emp_id, Connection conn){ + String selectUserSql = " SELECT ID FROM BO_EU_ORG_USER WHERE EMP_ID = ? "; + String userId = DBSql.getString(conn, selectUserSql, new Object[]{emp_id}); + return userId; + + } + + + + /** + * 根据外部Id获取部门Id + * + * @return + */ + public static String getDeptIdByOuterId(String org_code, Connection conn) { + String selectDeptSql = " SELECT ID FROM ORGDEPARTMENT WHERE OUTERID = ? "; + String currentId = DBSql.getString(conn, selectDeptSql, new Object[]{org_code}); + return currentId; + } + + + /** + * 注销或激活用户 + * @return + */ + public static void disabledOrActiveUser(String userId,String status){ + if(status.equals("A")){ //有效员工 + SDK.getORGAPI().activateUser(userId); + }else if(status.equals("I")){//无效员工 + SDK.getORGAPI().disabledUser(userId); + } + + } +} diff --git a/SynUser/src/com/yili/test/App.java b/SynUser/src/com/yili/test/App.java new file mode 100644 index 00000000..9400da70 --- /dev/null +++ b/SynUser/src/com/yili/test/App.java @@ -0,0 +1,99 @@ +package com.yili.test; + +import java.io.UnsupportedEncodingException; +import java.util.HashMap; + +import org.apache.commons.codec.binary.Base64; + +public class App { + // Basic testClient:qwertyuio0987654rfg :: Basic ??? + static String clientId = "testClient"; + static String clientSecret = "1234567890"; + static String redirect_uri = "http://10.119.254.49:33018/"; + + public static void main(String[] args) { +// System.out.println("--startup--------"); + + + // [1] 第一个网址放在浏览器中打开,登录,然后拿url中的code +// String firstURL="http://cs.idm.yili.com:7777/ms_oauth/oauth2/endpoints/oauthservice/authorize?client_id="+clientId+"&redirect_uri="+redirect_uri+"&response_type=code&scope=UserProfile.me"; +// System.out.println(firstURL); + + // [2] code拿来调用第二个接口 + // ======================================================================= + //String code = "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCIsIng1dCI6IkNEanJCRy03d0hKZnZpNURzTm9OeGQ1TE5iWSIsImtpZCI6Im9yYWtleSJ9.eyJvcmFjbGUub2F1dGgucmVkaXJlY3QtdXJpIjoiaHR0cDovLzEwLjExOS4yMS4yMzE6MzE4NjIvZWNzLWNvbnNvbGUiLCJzdWIiOm51bGwsIm9yYWNsZS5vYXV0aC51c2VyX29yaWdpbl9pZF90eXBlIjoiTERBUF9VSUQiLCJvcmFjbGUub2F1dGgudXNlcl9vcmlnaW5faWQiOiIwMDMxODY5NiIsImlzcyI6Ind3dy5vcmFjbGUuZXhhbXBsZS5jb20iLCJvcmFjbGUub2F1dGguc3ZjX3BfbiI6Ik9BdXRoU2VydmljZVByb2ZpbGUiLCJpYXQiOjE2Mzk0OTMwMTgsIm9yYWNsZS5vYXV0aC50a19jb250ZXh0IjoiYXpjIiwiZXhwIjoxNjM5NDkzOTE4LCJwcm4iOm51bGwsImp0aSI6IjEwMzU0YjYxLTczZmYtNDAzMy04Y2U4LTcyZTFjYjFkYTg3YSIsIm9yYWNsZS5vYXV0aC5zY29wZSI6IlVzZXJQcm9maWxlLm1lIiwib3JhY2xlLm9hdXRoLmNsaWVudF9vcmlnaW5faWQiOiJNQU1DQ2xpZW50IiwidXNlci50ZW5hbnQubmFtZSI6IkRlZmF1bHREb21haW4iLCJvcmFjbGUub2F1dGguaWRfZF9pZCI6IjEyMzQ1Njc4LTEyMzQtMTIzNC0xMjM0LTEyMzQ1Njc4OTAxMiJ9.WYCIAKUIJS1LcWzDn4tfOCts78-grCHpCye4PL_gTTXamm1r2nnOdJKAZieCOdLeBhTbjyDRFldrruRFIkiqnU9Tp3RRkFXOB7vfintBK2VDpBz9_VJX3FgzoQRCGUOcX6nZu9_vBmgKu1yjJMaz6Vq13WHPFG1XLj1ttKlEBBY"; + String code = "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCIsIng1dCI6IkNEanJCRy03d0hKZnZpNURzTm9OeGQ1TE5iWSIsImtpZCI6Im9yYWtleSJ9.eyJvcmFjbGUub2F1dGgucmVkaXJlY3QtdXJpIjoiaHR0cDovLzEwLjExOS4yNTQuNDk6MzMwMTgvIiwic3ViIjpudWxsLCJvcmFjbGUub2F1dGgudXNlcl9vcmlnaW5faWRfdHlwZSI6IkxEQVBfVUlEIiwib3JhY2xlLm9hdXRoLnVzZXJfb3JpZ2luX2lkIjoiMDAzMTg2OTYiLCJpc3MiOiJ3d3cub3JhY2xlLmV4YW1wbGUuY29tIiwib3JhY2xlLm9hdXRoLnN2Y19wX24iOiJPQXV0aFNlcnZpY2VQcm9maWxlIiwiaWF0IjoxNjU3Nzc4NjkxLCJvcmFjbGUub2F1dGgudGtfY29udGV4dCI6ImF6YyIsImV4cCI6MTY1Nzc3OTU5MSwicHJuIjpudWxsLCJqdGkiOiI2N2UyMDgwNy0xZGFiLTRhNmEtOTM4My0yZjY4YWU1ZTM3MzciLCJvcmFjbGUub2F1dGguc2NvcGUiOiJVc2VyUHJvZmlsZS5tZSIsIm9yYWNsZS5vYXV0aC5jbGllbnRfb3JpZ2luX2lkIjoiZTQ4M2MwZTVmODEyNDU2MzliOWIwYzk0MGNhODFlODAiLCJ1c2VyLnRlbmFudC5uYW1lIjoiRGVmYXVsdERvbWFpbiIsIm9yYWNsZS5vYXV0aC5pZF9kX2lkIjoiMTIzNDU2NzgtMTIzNC0xMjM0LTEyMzQtMTIzNDU2Nzg5MDEyIn0.UFt7tPu-DL3fh1WhbjwuxwjkuvOpA1bDDLAiGXHx9-32JV-fv6ExeQ6GWXCjbgIVWxmnSzhGdqQuXIixsY6rN-VjXwloOoSE4tVsbxbO4imbHvaOGAjyvrWiKI3cLTokTK1In-kWr1FkkYq4_PcOgTi6PC8GYdH2_zY6_KBY1WIvyqhcVffBVLAN7yKtvjb4iT9ILYxSYq8LfZdyKJ9nwgoDH4qeOsmqsELXvny0"; + getTokens(redirect_uri, code); + + // [2] - 的结果 + /* + * {"expires_in":3600,"token_type":"Bearer", + * "access_token":"eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCIsIng1dCI6IkNEanJCRy03d0hKZnZpNURzTm9OeGQ1TE5iWSIsImtpZCI6Im9yYWtleSJ9.eyJzdWIiOiIwMDMxODY5NiIsIm9yYWNsZS5vYXV0aC51c2VyX29yaWdpbl9pZF90eXBlIjoiTERBUF9VSUQiLCJvcmFjbGUub2F1dGgudXNlcl9vcmlnaW5faWQiOiIwMDMxODY5NiIsImlzcyI6Ind3dy5vcmFjbGUuZXhhbXBsZS5jb20iLCJvcmFjbGUub2F1dGguc3ZjX3BfbiI6Ik9BdXRoU2VydmljZVByb2ZpbGUiLCJpYXQiOjE2Mzk0OTMwNjgsIm9yYWNsZS5vYXV0aC5wcm4uaWRfdHlwZSI6IkxEQVBfVUlEIiwib3JhY2xlLm9hdXRoLnRrX2NvbnRleHQiOiJyZXNvdXJjZV9hY2Nlc3NfdGsiLCJleHAiOjE2Mzk0OTY2NjgsInBybiI6IjAwMzE4Njk2IiwianRpIjoiODQ2NWUwNGYtZmUwOS00M2ZjLTkwNzYtY2YyZTg5NWY3YjUzIiwib3JhY2xlLm9hdXRoLmNsaWVudF9vcmlnaW5faWQiOiJNQU1DQ2xpZW50Iiwib3JhY2xlLm9hdXRoLnNjb3BlIjoiVXNlclByb2ZpbGUubWUiLCJ1c2VyLnRlbmFudC5uYW1lIjoiRGVmYXVsdERvbWFpbiIsIm9yYWNsZS5vYXV0aC5pZF9kX2lkIjoiMTIzNDU2NzgtMTIzNC0xMjM0LTEyMzQtMTIzNDU2Nzg5MDEyIn0.hXSM1SSVcgqrldfCUK0tEz_TwbbeMvyE1qTXz8qHV3CWMuvVPbVTdaywr-fLcJxM115X3a2LMLFGdSZegS1EjVlsuIIpX0Nknfp3zrXNe_uzaJU_YeubnSMum-GER4Wlh9Yu64e8GfjZdmD9IOVr_dl4Z8R-moXF7a4VV4fgPxA"} + * */ + //====================================================================== + + // [4] 获取上面 access_token ,传给第4个接口 + //String token = "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCIsIng1dCI6IkNEanJCRy03d0hKZnZpNURzTm9OeGQ1TE5iWSIsImtpZCI6Im9yYWtleSJ9.eyJzdWIiOiIwMDMxODY5NiIsIm9yYWNsZS5vYXV0aC51c2VyX29yaWdpbl9pZF90eXBlIjoiTERBUF9VSUQiLCJvcmFjbGUub2F1dGgudXNlcl9vcmlnaW5faWQiOiIwMDMxODY5NiIsImlzcyI6Ind3dy5vcmFjbGUuZXhhbXBsZS5jb20iLCJvcmFjbGUub2F1dGguc3ZjX3BfbiI6Ik9BdXRoU2VydmljZVByb2ZpbGUiLCJpYXQiOjE2Mzk0OTMwNjgsIm9yYWNsZS5vYXV0aC5wcm4uaWRfdHlwZSI6IkxEQVBfVUlEIiwib3JhY2xlLm9hdXRoLnRrX2NvbnRleHQiOiJyZXNvdXJjZV9hY2Nlc3NfdGsiLCJleHAiOjE2Mzk0OTY2NjgsInBybiI6IjAwMzE4Njk2IiwianRpIjoiODQ2NWUwNGYtZmUwOS00M2ZjLTkwNzYtY2YyZTg5NWY3YjUzIiwib3JhY2xlLm9hdXRoLmNsaWVudF9vcmlnaW5faWQiOiJNQU1DQ2xpZW50Iiwib3JhY2xlLm9hdXRoLnNjb3BlIjoiVXNlclByb2ZpbGUubWUiLCJ1c2VyLnRlbmFudC5uYW1lIjoiRGVmYXVsdERvbWFpbiIsIm9yYWNsZS5vYXV0aC5pZF9kX2lkIjoiMTIzNDU2NzgtMTIzNC0xMjM0LTEyMzQtMTIzNDU2Nzg5MDEyIn0.hXSM1SSVcgqrldfCUK0tEz_TwbbeMvyE1qTXz8qHV3CWMuvVPbVTdaywr-fLcJxM115X3a2LMLFGdSZegS1EjVlsuIIpX0Nknfp3zrXNe_uzaJU_YeubnSMum-GER4Wlh9Yu64e8GfjZdmD9IOVr_dl4Z8R-moXF7a4VV4fgPxA"; + //getUserInfo(token); + + /* // [4] 的结果 + * {"uid":"00318696","mail":"A00318696@yili.com","employeenumber":"00318696","lastname":"王超", + * "commonname":"王超","uri":"\/ms_oauth\/resources\/userprofile\/me\/00318696"} + */ + + } + + // http://cs.idm.yili.com:7777/ms_oauth/oauth2/endpoints/oauthservice/tokens?redirect_uri=http://192.168.88.100:8080/ecs-console/&grant_type=authorization_code&code= + // 获取授权Token接口(authorization_code模式) + public static String getTokens(String redirect_uri, String code) { + String tokenJson = ""; + + String url = "http://cs.idm.yili.com:7777/ms_oauth/oauth2/endpoints/oauthservice/tokens?" + "redirect_uri=" + + redirect_uri + "&grant_type=authorization_code&code=" + code; + + String authoStr = geAuthorization(clientId, clientSecret); + HashMap HeaderMap = new HashMap(); + HeaderMap.put("Content-Type", "application/x-www-form-urlencoded"); + HeaderMap.put("Authorization", authoStr); + HeaderMap.put("accept", "*/*"); + HeaderMap.put("connection", "Keep-Alive"); + + // do request + tokenJson = HttpJavaUtil.sendPost(url, "", HeaderMap); + System.out.println(tokenJson); + return tokenJson; + + } + + public static String getUserInfo(String token) { + String userInfoJson = ""; + String url = "http://cs.idm.yili.com:7777/ms_oauth/resources/userprofile/me"; + + String authoStr = token; + HashMap HeaderMap = new HashMap(); + HeaderMap.put("Content-Type", "application/x-www-form-urlencoded"); + HeaderMap.put("Authorization", authoStr); + HeaderMap.put("accept", "*/*"); + HeaderMap.put("connection", "Keep-Alive"); + + // do request get + userInfoJson = HttpJavaUtil.doGet(url, HeaderMap); + System.out.println(userInfoJson); + return userInfoJson; + } + + public static String geAuthorization(String clientId, String clientSecret) { + try { + byte[] key = (clientId + ":" + clientSecret).getBytes("utf-8"); + String cc = new String(Base64.encodeBase64(key), "utf-8"); + // String cc = new String(java.util.Base64.getEncoder().encode(key), "utf-8"); + return "Basic " + cc; + } catch (UnsupportedEncodingException e) { + e.printStackTrace(); + return ""; + } + } + + + +} diff --git a/SynUser/src/com/yili/test/HttpJavaUtil.java b/SynUser/src/com/yili/test/HttpJavaUtil.java new file mode 100644 index 00000000..1982ab0c --- /dev/null +++ b/SynUser/src/com/yili/test/HttpJavaUtil.java @@ -0,0 +1,300 @@ +package com.yili.test; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.OutputStream; +import java.io.PrintWriter; +import java.net.HttpURLConnection; +import java.net.MalformedURLException; +import java.net.URL; +import java.net.URLConnection; +import java.util.Map; + +import javax.net.ssl.HostnameVerifier; +import javax.net.ssl.HttpsURLConnection; +import javax.net.ssl.SSLSession; + +import okhttp3.MediaType; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.RequestBody; +import okhttp3.Response; + +public class HttpJavaUtil { + + public static final String DEF_CHATSET = "UTF-8"; + public static final int DEF_CONN_TIMEOUT = 30000; // 是建立连接的超时时间 + public static final int DEF_READ_TIMEOUT = 30000; // 是传递数据的超时时间 + + public static String doGet(String httpUrl, Map HeaderMap) { + HttpURLConnection connection = null; + InputStream is = null; + BufferedReader br = null; + String result = null;// 返回结果字符串 + System.out.println(httpUrl); + try { + // 创建远程url连接对象 + URL url = new URL(httpUrl); + try { + // trustAllHttpsCertificates(); + } catch (Exception e) { + e.printStackTrace(); + System.out.println("【异常】doGet-https-->" + e.getMessage()); + } + connection = (HttpURLConnection) url.openConnection(); + + // 设置header + for (String key : HeaderMap.keySet()) { + connection.setRequestProperty(key, HeaderMap.get(key).toString()); + } + + // 设置连接方式:get + connection.setRequestMethod("GET"); + // 设置连接主机服务器的超时时间:15000毫秒 + connection.setConnectTimeout(15000); + // 设置读取远程返回的数据时间:60000毫秒 + connection.setReadTimeout(60000); + // 发送请求 + connection.connect(); + // 通过connection连接,获取输入流 + if (connection.getResponseCode() == 200) { + is = connection.getInputStream(); + // 封装输入流is,并指定字符集 + br = new BufferedReader(new InputStreamReader(is, "UTF-8")); + // 存放数据 + StringBuffer sbf = new StringBuffer(); + String tempX = ""; + while ((tempX = br.readLine()) != null) { + sbf.append(tempX); + sbf.append("\r\n"); + } + result = sbf.toString(); + System.out.println(result); + } else { + String line; + String message = ""; + br = new BufferedReader(new InputStreamReader(connection.getErrorStream())); + StringBuffer buff = new StringBuffer(); + while ((line = br.readLine()) != null) { + buff.append(line + "\n"); + message += line; + } + message = buff.toString(); + System.out.println(message); + } + } catch (MalformedURLException e) { + e.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } finally { + // 关闭资源 + if (null != br) { + try { + br.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + if (null != is) { + try { + is.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + connection.disconnect();// 关闭远程连接 + } + return result; + } + + public static String doPost(String httpUrl, String BodyParam, Map HeaderMap) { + HttpURLConnection connection = null; + InputStream is = null; + OutputStream os = null; + BufferedReader br = null; + String result = null; + try { + URL url = new URL(httpUrl); + try { + // trustAllHttpsCertificates(); + } catch (Exception e) { + e.printStackTrace(); + System.out.println("【异常】doPost-https-->" + e.getMessage()); + } + connection = (HttpURLConnection) url.openConnection(); + + // 设置header + for (String key : HeaderMap.keySet()) { + connection.setRequestProperty(key, HeaderMap.get(key).toString()); + } + connection.setRequestMethod("POST"); + connection.setConnectTimeout(15000); + connection.setReadTimeout(60000); + connection.setDoOutput(true); + connection.setDoInput(true); + + os = connection.getOutputStream(); + os.write(BodyParam.getBytes()); + int resCode = connection.getResponseCode(); + + is = connection.getInputStream(); + br = new BufferedReader(new InputStreamReader(is, "UTF-8")); + StringBuffer sbf = new StringBuffer(); + String temp = null; + while ((temp = br.readLine()) != null) { + sbf.append(temp); + sbf.append("\r\n"); + } + result = sbf.toString(); + } catch (Exception e) { + System.out.println(e.getMessage()); + e.printStackTrace(); + } finally { + if (null != br) { + try { + br.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + if (null != os) { + try { + os.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + if (null != is) { + try { + is.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + connection.disconnect(); + } + return result; + } + + /** + * 信任全部https证书 + */ + private static void trustAllHttpsCertificates() throws Exception { + HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() { + public boolean verify(String str, SSLSession session) { + return true; + } + }); + javax.net.ssl.TrustManager[] trustAllCerts = new javax.net.ssl.TrustManager[1]; + javax.net.ssl.TrustManager tm = new miTM(); + trustAllCerts[0] = tm; + javax.net.ssl.SSLContext sc = javax.net.ssl.SSLContext.getInstance("SSL"); + sc.init(null, trustAllCerts, null); + javax.net.ssl.HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory()); + } + + static class miTM implements javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager { + + public java.security.cert.X509Certificate[] getAcceptedIssuers() { + return null; + } + + public boolean isServerTrusted(java.security.cert.X509Certificate[] certs) { + return true; + } + + public boolean isClientTrusted(java.security.cert.X509Certificate[] certs) { + return true; + } + + public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) + throws java.security.cert.CertificateException { + return; + } + + public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) + throws java.security.cert.CertificateException { + return; + } + } + + public static String sendPost(String url, String param, Map HeaderMap) { + PrintWriter out = null; + BufferedReader in = null; + String result = ""; + try { + URL realUrl = new URL(url); + // 打开和URL之间的连接 + URLConnection conn = realUrl.openConnection(); + + // 设置header + for (String key : HeaderMap.keySet()) { + conn.setRequestProperty(key, HeaderMap.get(key).toString()); + } + + // 发送POST请求必须设置如下两行 + conn.setDoOutput(true); + conn.setDoInput(true); + // 获取URLConnection对象对应的输出流 + out = new PrintWriter(conn.getOutputStream()); + // 发送请求参数 + out.print(param); + // flush输出流的缓冲 + out.flush(); + // 定义BufferedReader输入流来读取URL的响应 + in = new BufferedReader(new InputStreamReader(conn.getInputStream())); + String line; + while ((line = in.readLine()) != null) { + result += line; + } + } catch (Exception e) { + System.out.println("发送 POST 请求出现异常!" + e); + e.printStackTrace(); + } + // 使用finally块来关闭输出流、输入流 + finally { + try { + if (out != null) { + out.close(); + } + if (in != null) { + in.close(); + } + } catch (IOException ex) { + ex.printStackTrace(); + } + } + return result; + } + + + public static void tst4(String redirect_uri,String code) { + OkHttpClient client = new OkHttpClient(); + + MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded"); + RequestBody body = RequestBody.create(mediaType, "a=1"); + + Request request = new Request.Builder() + .url("http://cs.idm.cjlr.com:7777/ms_oauth/oauth2/endpoints/oauthservice/tokens?redirect_uri="+redirect_uri+"&grant_type=authorization_code&code="+code) + .post(body) + .addHeader("Authorization", "Basic 这里需要改改") + .addHeader("Content-Type", "application/x-www-form-urlencoded") + .addHeader("Accept", "*/*") + .addHeader("Cache-Control", "no-cache") + .addHeader("Connection", "keep-alive") + .addHeader("cache-control", "no-cache") + .build(); + + try { + Response response = client.newCall(request).execute(); + System.out.println(response); + } catch (IOException e) { + // TODO Auto-generated catch block + System.out.println(e); + e.printStackTrace(); + } + } + +} diff --git a/SynUser/src/com/yili/util/HttpClientUtil.java b/SynUser/src/com/yili/util/HttpClientUtil.java new file mode 100644 index 00000000..2bf085d5 --- /dev/null +++ b/SynUser/src/com/yili/util/HttpClientUtil.java @@ -0,0 +1,270 @@ +package com.yili.util; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.UnsupportedEncodingException; +import java.util.HashMap; +import java.util.Map; +import java.util.Set; + +import org.apache.commons.httpclient.Cookie; +import org.apache.commons.httpclient.Header; +import org.apache.commons.httpclient.HttpClient; +import org.apache.commons.httpclient.HttpMethodBase; +import org.apache.commons.httpclient.HttpStatus; +import org.apache.commons.httpclient.NameValuePair; +import org.apache.commons.httpclient.methods.GetMethod; +import org.apache.commons.httpclient.methods.PostMethod; +import org.apache.commons.httpclient.methods.RequestEntity; +import org.apache.commons.httpclient.methods.StringRequestEntity; +import org.apache.commons.httpclient.params.HttpConnectionManagerParams; +import org.apache.commons.lang3.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; + +public class HttpClientUtil { + private static final Logger log = LoggerFactory.getLogger(HttpClientUtil.class); + + private HttpClient client; + private HttpMethodBase httpMethod; + + public HttpClientUtil(HttpMethodBase method) { + this.httpMethod = method; + this.client = new HttpClient(); + this.client.getParams().setParameter("http.protocol.content-charset", "UTF-8"); + } + + public HttpClientUtil(String proxyHost, int proxyPort) { + this.client = null; + this.httpMethod = null; + this.client = new HttpClient(); + this.client.getParams().setParameter("http.protocol.content-charset", "UTF-8"); + setProxy(client, proxyHost , proxyPort); + } + + public HttpClientUtil(int timeoutInMilliseconds) { + this(null); + HttpConnectionManagerParams ps = this.client.getHttpConnectionManager().getParams(); + ps.setSoTimeout(timeoutInMilliseconds); + ps.setConnectionTimeout(timeoutInMilliseconds); + } + + public void setRequestHeader(String name, String value) { + this.httpMethod.setRequestHeader(name, value); + } + + public void addParameter(String name, String value) throws IllegalArgumentException { + if(name != null && value != null) { + if(this.httpMethod instanceof GetMethod) { + String q = this.httpMethod.getQueryString(); + if(q == null) { + this.httpMethod.setQueryString(name + "=" + value); + } else { + this.httpMethod.setQueryString(q + "&" + name + "=" + value); + } + } else if(this.httpMethod instanceof PostMethod) { + ((PostMethod)this.httpMethod).addParameter(name, value); + } + } else { + throw new IllegalArgumentException("Arguments to addParameter(String, String) cannot be null"); + } + } + + public static PostMethod buildPostMethod(String server, String uri, NameValuePair[] pairs) { + PostMethod postMethod = new PostMethod(server+ uri); + postMethod.addParameters(pairs); + postMethod.setRequestHeader("Connection","close"); + postMethod.setRequestHeader("charset","UTF-8"); + return postMethod; + } + + public static JSONObject postSend(String server, String uri, NameValuePair[] pairs) throws IOException { + PostMethod postMethod = HttpClientUtil.buildPostMethod(server, uri,pairs); + HttpClient httpClient = new HttpClient(); + httpClient.executeMethod(postMethod); + if (postMethod.getStatusCode() == HttpStatus.SC_OK){ + String responseBody = HttpClientUtil.getResponseBodyAsString(postMethod,"UTF-8"); + return JSON.parseObject(responseBody); + } + return new JSONObject(); + } + + public static String getResponseBodyAsString(HttpMethodBase httpMethod, String contentCharset) throws IOException { + InputStream in = httpMethod.getResponseBodyAsStream(); + ByteArrayOutputStream out = new ByteArrayOutputStream(4096); + byte[] buffer = new byte[4096]; + int len; + while((len = in.read(buffer)) > 0) { + out.write(buffer, 0, len); + } + out.close(); + byte[] data = out.toByteArray(); + return contentCharset != null?new String(data, contentCharset):new String(data); + } + + public static String buildQueryString(Map params) { + StringBuffer postParam = new StringBuffer(); + Set> entrySet = params.entrySet(); + for (Map.Entry entry : entrySet) { + postParam.append(entry.getKey()); + postParam.append("="); + postParam.append(entry.getValue()); + postParam.append("&"); + } + return postParam.substring(0, postParam.lastIndexOf("&")); + } + + public void setPostRequestBody(String data) throws UnsupportedEncodingException { + setPostRequestBody(data, "text/plain","UTF-8"); + } + + public void setPostRequestBody(String data,String contentType,String charset) throws UnsupportedEncodingException { + if(this.httpMethod instanceof PostMethod) { + PostMethod httpMethod = (PostMethod) this.httpMethod; + RequestEntity entity = new StringRequestEntity(data, contentType,charset); + httpMethod.setRequestEntity(entity); + } + } + + public int send() throws IOException { + this.httpMethod.setRequestHeader("Connection", "close"); + return this.client.executeMethod(this.httpMethod); + } + + public Map getResponseHeader() { + Map r = new HashMap(); + Header[] h = this.httpMethod.getResponseHeaders(); + Header[] var3 = h; + int var4 = h.length; + + for(int var5 = 0; var5 < var4; ++var5) { + Header header = var3[var5]; + r.put(header.getName(), header.getValue()); + } + + return r; + } + + public Map getCookies() { + Map r = new HashMap(); + Cookie[] cs = this.client.getState().getCookies(); + Cookie[] var3 = cs; + int var4 = cs.length; + + for(int var5 = 0; var5 < var4; ++var5) { + Cookie c = var3[var5]; + r.put(c.getName(), c.getValue()); + } + + return r; + } + + public InputStream getResponseBodyAsStream() throws IOException { + return this.httpMethod.getResponseBodyAsStream(); + } + + public String getResponseBodyAsString(String contentCharset) throws IOException { + InputStream instream = this.httpMethod.getResponseBodyAsStream(); + ByteArrayOutputStream outstream = new ByteArrayOutputStream(4096); + byte[] buffer = new byte[4096]; + + int len; + while((len = instream.read(buffer)) > 0) { + outstream.write(buffer, 0, len); + } + + outstream.close(); + byte[] rawdata = outstream.toByteArray(); + return contentCharset != null?new String(rawdata, contentCharset):new String(rawdata); + } + + public void close() { + if(this.httpMethod != null) { + try { + this.httpMethod.releaseConnection(); + } catch (Exception var2) { + ; + } + } + + } + + private static void setProxy(HttpClient client, String proxyHost, int proxyPort ) { + if(StringUtils.isNotBlank(proxyHost)) { + if(proxyPort > 0) { + client.getHostConfiguration().setProxy(proxyHost, proxyPort); + } + } + + } + + public static String getContent(String url, String proxyHost, int proxyPort ) { + if(StringUtils.isNotBlank(url)) { + HttpClient client = new HttpClient(); + GetMethod get = new GetMethod(url); + setProxy(client,proxyHost,proxyPort); + get.setRequestHeader("Connection", "close"); + String var3; + try { + client.executeMethod(get); + var3 = get.getResponseBodyAsString(); + } catch (Exception var7) { + log.error("", var7); + return null; + } finally { + get.releaseConnection(); + } + + return var3; + } else { + return null; + } + } + + public static String getContent(String url) { + if(StringUtils.isNotBlank(url)) { + HttpClient client = new HttpClient(); + GetMethod get = new GetMethod(url); + get.setRequestHeader("Connection", "close"); + String var3; + try { + client.executeMethod(get); + var3 = get.getResponseBodyAsString(); + } catch (Exception var7) { + log.error("", var7); + return null; + } finally { + get.releaseConnection(); + } + return var3; + } else { + return null; + } + } + + public static Header[] getContentHeader(String url) { + if(StringUtils.isNotBlank(url)) { + HttpClient client = new HttpClient(); + GetMethod get = new GetMethod(url); + get.setRequestHeader("Connection", "close"); + Header[] var3; + try { + client.executeMethod(get); + var3 = get.getResponseHeaders(); + } catch (Exception var7) { + log.error("", var7); + return null; + } finally { + get.releaseConnection(); + } + return var3; + } else { + return null; + } + } + +} \ No newline at end of file diff --git a/SynUser/src/com/yili/util/UtilUrl.java b/SynUser/src/com/yili/util/UtilUrl.java new file mode 100644 index 00000000..ee3575e1 --- /dev/null +++ b/SynUser/src/com/yili/util/UtilUrl.java @@ -0,0 +1,53 @@ +package com.yili.util; + +import java.nio.charset.Charset; + +import org.apache.http.HttpEntity; +import org.apache.http.client.config.RequestConfig; +import org.apache.http.client.methods.CloseableHttpResponse; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.entity.StringEntity; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClientBuilder; +import org.apache.http.util.EntityUtils; + +/** + * @PackageName: com.awspaas.user.apps.yili.integration.util + * @ClassName: UtilUrl + * @author: yujh + * @date: 2022/5/18 21:41 + */ +public class UtilUrl { + + //使用SOAP1.1发送消息 + public static String doPostSoap(String postUrl, String soapXml, String soapAction) { + String retStr = ""; + // 创建HttpClientBuilder + HttpClientBuilder httpClientBuilder = HttpClientBuilder.create(); + // HttpClient + CloseableHttpClient closeableHttpClient = httpClientBuilder.build(); + HttpPost httpPost = new HttpPost(postUrl); + // 设置请求和传输超时时间 + RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(6000) + .setConnectTimeout(6000).build(); + httpPost.setConfig(requestConfig); + try { + httpPost.setHeader("Content-Type", "text/xml;charset=UTF-8"); + httpPost.setHeader("SOAPAction", soapAction); + StringEntity data = new StringEntity(soapXml, Charset.forName("UTF-8")); + httpPost.setEntity(data); + CloseableHttpResponse response = closeableHttpClient.execute(httpPost); + HttpEntity httpEntity = response.getEntity(); + if (httpEntity != null) { + // 打印响应内容 + retStr = EntityUtils.toString(httpEntity, "UTF-8"); + + } + // 释放资源 + closeableHttpClient.close(); + } catch (Exception e) { + e.printStackTrace(); + } + return retStr; + } +} diff --git a/com.actionsoft.apps.coe.method.process.epc/method/process.epc/diagram.attribute.custom.xml_bak b/com.actionsoft.apps.coe.method.process.epc/method/process.epc/diagram.attribute.custom.xml_bak new file mode 100644 index 00000000..f7f8d44d --- /dev/null +++ b/com.actionsoft.apps.coe.method.process.epc/method/process.epc/diagram.attribute.custom.xml_bak @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/com.actionsoft.apps.coe.pal.batch/.classpath b/com.actionsoft.apps.coe.pal.batch/.classpath new file mode 100644 index 00000000..34745be0 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.batch/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/com.actionsoft.apps.coe.pal.batch/.project b/com.actionsoft.apps.coe.pal.batch/.project new file mode 100644 index 00000000..bae36713 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.batch/.project @@ -0,0 +1,17 @@ + + + com.actionsoft.apps.coe.pal.batch + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/com.actionsoft.apps.coe.pal.cooperation/.classpath b/com.actionsoft.apps.coe.pal.cooperation/.classpath new file mode 100644 index 00000000..42549f9a --- /dev/null +++ b/com.actionsoft.apps.coe.pal.cooperation/.classpath @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/com.actionsoft.apps.coe.pal.cooperation/.project b/com.actionsoft.apps.coe.pal.cooperation/.project new file mode 100644 index 00000000..f6ef5b96 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.cooperation/.project @@ -0,0 +1,17 @@ + + + com.actionsoft.apps.coe.pal.cooperation + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/com.actionsoft.apps.coe.pal.datamigration/.classpath b/com.actionsoft.apps.coe.pal.datamigration/.classpath new file mode 100644 index 00000000..0d5a600f --- /dev/null +++ b/com.actionsoft.apps.coe.pal.datamigration/.classpath @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/com.actionsoft.apps.coe.pal.datamigration/.project b/com.actionsoft.apps.coe.pal.datamigration/.project new file mode 100644 index 00000000..67fdf383 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.datamigration/.project @@ -0,0 +1,17 @@ + + + com.actionsoft.apps.coe.pal.datamigration + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/util/readword/WordUtilXWPF2.java b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/util/readword/WordUtilXWPF2.java new file mode 100644 index 00000000..a339023f --- /dev/null +++ b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/util/readword/WordUtilXWPF2.java @@ -0,0 +1,749 @@ +package com.actionsoft.apps.coe.pal.datamigration.util.readword; + +import java.io.ByteArrayInputStream; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.InputStream; +import java.math.BigInteger; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.Date; +import java.util.Iterator; +import java.util.List; + +import org.apache.poi.hwpf.usermodel.Paragraph; +import org.apache.poi.xwpf.usermodel.IBodyElement; +import org.apache.poi.xwpf.usermodel.XWPFDocument; +import org.apache.poi.xwpf.usermodel.XWPFParagraph; +import org.dom4j.DocumentException; + +import com.actionsoft.apps.coe.pal.datamigration.aris.mapping.ModelMappingAPIManager; +import com.actionsoft.apps.coe.pal.datamigration.constant.Constant; +import com.actionsoft.apps.coe.pal.datamigration.util.ShapeUtil; +import com.actionsoft.apps.coe.pal.datamigration.util.XMLUtil; +import com.actionsoft.apps.resource.plugin.profile.DCPluginProfile; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.server.fs.DCContext; +import com.actionsoft.bpms.server.fs.dc.DCProfileManager; +import com.actionsoft.bpms.util.UUIDGener; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.spire.doc.Document; +import com.spire.doc.FileFormat; + +import cn.jpush.api.utils.StringUtils; + +/** + * @author baizp + * @Description: + * @date 2022/6/16 15:53 + */ +public class WordUtilXWPF2 { + private static final String WORD_BLANK = "[\u00a0|\u3000|\u0020|\b|\t]"; + + /** + * word的它自己造换行符 要换成string的换行符 + */ + private static final String WORD_LINE_BREAK = "[\u000B|\r]"; + + + /** + * 抽取文字时去掉不必须字符正则 + */ + private static final String splitter = "[\\t|\\n|\\r|\\s+|\u00a0+]"; + + private static final String regexClearBeginBlank = "^" + splitter + "*|" + splitter + "*$"; + + + public static void main(String[] args) { + + String filePath = "D:/伊利集团公文处理管理办法-新.xml"; + //创建实例,加载xml测试文档 + Document docs = new Document(); + docs.loadFromFile(filePath); + + //保存为Docx格式 + docs.saveToFile("D:/toDocx.docx",FileFormat.Docx); + + //保存为Doc格式 + //docs.saveToFile("toDoc.doc",FileFormat.Doc); + JSONObject elements = null; + JSONObject shape = null; + /*props1.put("x", 130*zindex); + props1.put("y", 277); + props1.put("w", 110); + props1.put("h", 50);*/ + // String filePath = "/Users/jiuyabai/Desktop/yili项目/制度样例1—伊利集团流程制度类文件管理规范1.docx"; + File file = null; + try { + file = new File(filePath); + XWPFDocument doc = new XWPFDocument(new FileInputStream(filePath)); + JSONArray jsonArray = getXParagraph(doc); + System.out.println(""); + } catch (Exception e) { + + } + //new WordUtilXWPF().importWordLibrary(elements); + + } + + public static JSONArray getXParagraph(XWPFDocument doc) { + JSONArray jsons = new JSONArray(); + Iterator iter = doc.getBodyElementsIterator(); + int count = 1; + int img = 1; + int table = 1; + while (iter.hasNext()) { + IBodyElement element = iter.next(); + if (element instanceof XWPFParagraph) { + // 获取段落元素 + XWPFParagraph paragraph = (XWPFParagraph) element; + Paragraph paragraph1 = (Paragraph) element; + String text = paragraph.getText(); + String style = paragraph.getStyle();//标题级别 + if (org.apache.commons.lang3.StringUtils.isNotEmpty(text)) {//文字 + // 将word中的特有字符转化为普通的换行符、空格符等 + String textWithSameBlankAndBreak = text.replaceAll(WORD_BLANK, " ").replaceAll(WORD_LINE_BREAK, "\n") + .replaceAll("\n+", "\n"); + // 去除word特有的不可见字符 + String textClearBeginBlank = textWithSameBlankAndBreak.replaceAll(regexClearBeginBlank, ""); + // 为抽取的每一个段落加上\n作为换行符标识 + //System.out.println("text="+textClearBeginBlank); + //System.out.println("style="+style); + //System.out.println("------"); + JSONObject json = new JSONObject(); + json.put("text", text); + json.put("style", style); + json.put("index", count); + json.put("flag", "text"); + jsons.add(json); + count++; + } + } + } + + return jsons; + } + + + + /** + * @param userContext + * @param elements + * @param inputStream + * @param name + * @param shapefirst + * @param plid 模型ID + * @param type 是导入还是富文本 1是导入 0是富文本 + * @return + */ + public JSONObject rewritContent(UserContext userContext, JSONObject elements, InputStream inputStream, String name, JSONObject shapefirst, String plid, int type) { + //File file = null; + int count = 0; + List failTitleList = new ArrayList<>(); + StringBuilder richSbuild = new StringBuilder(); + String filePath = "C:/伊利集团公文处理管理办法-新.xml"; + try { + File file = new File(filePath); + //elements.clear(); + + /* + * //创建实例,加载xml测试文档 Document docs = new Document(); docs.loadFromFile(filePath); + * + * //保存为Docx格式 docs.saveToFile("toDocx.docx",FileFormat.Docx); + * + * //保存为Doc格式 docs.saveToFile("toDoc.doc",FileFormat.Doc); + */ + + System.err.println("1111"); + XWPFDocument doc = new XWPFDocument(inputStream); + JSONArray onlinedata = new JSONArray(); + if (shapefirst == null || shapefirst.size() == 0) { + JSONObject shapeze = ShapeUtil.getProcessShapeDefinitionByName("control.policy", "regulation"); + String shapeIdz = UUIDGener.getObjectId(); + shapeze.put("text", name);//不生效 + shapeze.put("level", 0); + JSONObject props1 = shapeze.getJSONObject("props");// 位置大小 + shapeze.put("id", shapeIdz); + props1.put("x", 100); + props1.put("y", 277); + props1.put("w", 110); + props1.put("h", 50); + props1.put("zindex", 0); + shapeze.put("next", true); + elements.put(shapeIdz, shapeze); + shapeze.put("p", 0); + onlinedata.add(shapeze); + } else { + elements.put(shapefirst.getString("id"), shapefirst); + shapefirst.put("next", true); + shapefirst.put("p", 0); + onlinedata.add(shapefirst); + } + + //获取段落 + List paras = doc.getParagraphs(); + //级别依次 + //记录x横向的位置 + int x = 1; + //记录y轴的位置 + int y = 1; + //记录上次层级 + int lastindex = 0; + boolean isfirst = true; + //所以条数 + int countall = 0; + //上级节点是否已有子节点 + boolean hasnext = false; + //内容的所有数据 + StringBuilder strb = new StringBuilder(); + //记录这条线上的所有节点 顺序就是层级 + //List onlinedata = new ArrayList(); + boolean lastislast = false; + XWPFDocument newfile = new XWPFDocument(); + boolean isend = false; + boolean isstart = true; + + for (XWPFParagraph para : paras) { + BigInteger numlevel = para.getNumIlvl(); + countall += 1; + //处理富文本的情况 + if (shapefirst != null && type == 0) { + isstart = false; + } + if ("内容**".equals(para.getParagraphText() ) && isstart ){//&& numlevel == null && isstart) { + count++; + isstart = false; + continue; + } + if (isstart) { + continue; + } + if (!para.getParagraphText().isEmpty()) { + if (para.getParagraphText().matches("附件\\d{1,}:")) { + isend = true; + } + XWPFParagraph tmpp = newfile.createParagraph(); + WordCreatFile.copyAllRunsToAnotherParagraph(para, tmpp); + } + if (isend) { + continue; + } + hasnext = false; + JSONObject shap = new JSONObject(); + String leveltext = para.getNumLevelText(); + + String titleLvl = getTitleLvl(doc, para);//获取段落级别 + //System.out.println("numlevel" + numlevel + "======leveltext=====" + leveltext + "=====获取到的级别为=====" + titleLvl + " =======内容为=====" + para.getText()); + + //System.out.println("=====当前level为" + (numlevel != null ? numlevel.intValue() : "空") + "=====上一节点层级为" + lastindex + " "); + + //标题级别 + if (numlevel != null && numlevel.intValue() > 0) { + int nowlevel = numlevel.intValue(); + //如果换层级了 就清空后面的数据 + if ((nowlevel < lastindex || lastindex == 0) && onlinedata.size() >= (nowlevel + 1)) { + // System.out.println("进行数据清理"); + JSONArray tmp = new JSONArray(); + for (int i = 0; i <= nowlevel; i++) { + tmp.add(onlinedata.getJSONObject(i)); + } + onlinedata = tmp; + } + lastislast = false; + String shapeId1 = UUIDGener.getObjectId(); + int pnode = lastindex; + boolean issamelevel = false; + //如果是同级,需要找到父节点 + if (lastindex == nowlevel) { + JSONObject tmpshap1 = onlinedata.getJSONObject(lastindex); + pnode = tmpshap1.getInteger("p"); + x = 0; + } else { + if (nowlevel > lastindex && (lastindex != 0 || isfirst)) { + x = 1; + } else { + x = 0; + } + /** + * 如果不是同级 需要找到同级 + */ + if ((onlinedata.size() - 1) >= nowlevel && onlinedata.get(nowlevel) != null) { + JSONObject tmpshap1 = onlinedata.getJSONObject(nowlevel); + pnode = tmpshap1.getInteger("p"); + lastindex = nowlevel; + } + /** + * 找上一级 + */ + if (onlinedata.size() == nowlevel && lastindex == 0) { + lastindex = nowlevel - 1; + JSONObject tmpshap1 = onlinedata.getJSONObject(lastindex); + pnode = lastindex; + hasnext = tmpshap1.getBoolean("next"); + x = 1; + } + } + isfirst = false; + //如果是父节点新增,则要父节点的节点 + JSONObject tmpshap = onlinedata.getJSONObject(lastindex); + // System.out.println("======获取上一节点位置为:" + lastindex + " ====节点内容为:" + tmpshap.getString("text")); + int len = para.getParagraphText().length() / 8 - 2; + /** + * 计算y + */ + if (nowlevel <= lastindex || hasnext) { + y += 1; + } + + shap = getSharp(x, y, countall, len, tmpshap, para.getParagraphText(),"item2"); + shap.put("id", shapeId1); + shap.put("text", getShowText(para.getParagraphText())); + shap.put("level", nowlevel); + shap.put("p", pnode); + elements.put(shapeId1, shap); + //拼接富文本标签 + richSbuild.append(DocToHtml.getHtml(nowlevel, para.getParagraphText())); + JSONObject linkshap = onlinedata.getJSONObject(pnode); + linkshap.put("next", true); + onlinedata.set(pnode, linkshap); + craetline(elements, linkshap, shap, countall); + onlinedata.set(nowlevel, shap); + lastindex = nowlevel; + } else { + //内容 + if (StringUtils.isNotEmpty(para.getParagraphText())) { + if (para.getParagraphText().contains("表单/模板适用范围")) { + System.out.println("断电测试11111"); + } + //countall += 1; + //判断下一个是否同一级 + boolean islast = false; + if (countall == paras.size()) { + islast = true; + } + if (countall < paras.size()) { + BigInteger nextlevel = paras.get(countall).getNumIlvl(); + //后面数据为高级别文字 + if (nextlevel != null && nextlevel.intValue() > 0) { + islast = true; + } else { + //后面为图片 或者表格 则要判断这之后是否有同级文字 + int tmp = countall; + while (tmp < paras.size()) { + XWPFParagraph paratmp = paras.get(tmp); + BigInteger nextleveltmp = paratmp.getNumIlvl(); + if (nextleveltmp == null && paratmp.getParagraphText().length() == 0) { + tmp += 1; + } else { + //有同级文字 + if ((nextleveltmp == null || nextleveltmp.intValue() == 0) && paratmp.getParagraphText().length() > 0) { + islast = false; + } else { + islast = true; + } + if (paratmp.getParagraphText().matches("附件\\d{1,}:")) { + islast = true; + } + if ("相关文件**".equals(para.getParagraphText())) { + //System.err.println("========相关文件========"); + islast = true; + isend = true; + } + break; + } + } + } + } + + if (islast && !isend) { + strb.append(para.getParagraphText()); + //拼接富文本标签 + richSbuild.append(DocToHtml.getHtml(0, para.getParagraphText())); + } + if (strb.length() > 0 && islast) { + if("相关文件**".equals( para.getParagraphText())) { + isend = true; + lastislast = true; + break; + } + String shapeId1 = UUIDGener.getObjectId(); + //System.out.println("段落内容===" + para.getParagraphText());//段落内容 + lastindex = onlinedata.size() - 1; + //获取级数 + int len = strb.length() / 8 - 2; + int pnode = lastindex; + int nowlevel = 0; + if (numlevel != null) { + nowlevel = numlevel.intValue(); + } + /* if (lastindex == nowlevel) { + JSONObject tmpshap1 = onlinedata.getJSONObject(lastindex); + pnode = tmpshap1.getInteger("p"); + }*/ + x = 1; + JSONObject tmpshap = onlinedata.getJSONObject(lastindex); + //根据上一个位置计算当前位置 + shap = getSharp(x, y, countall, len, tmpshap, strb.toString(),"item1"); + shap.put("id", shapeId1); + shap.put("text", getShowText(strb.toString()).replaceAll("\n", "")); + //shap.put("p", pnode); + shap.put("level", 0); + + JSONObject linkshap = onlinedata.getJSONObject(lastindex); + craetline(elements, linkshap, shap, countall); + linkshap.put("next", true); + onlinedata.set(pnode, linkshap); + elements.put(shapeId1, shap); + strb = new StringBuilder(); + } else { + strb.append(para.getParagraphText()).append("\n"); + //拼接富文本标签 + richSbuild.append(DocToHtml.getHtml(0, para.getParagraphText())); + } + lastislast = true; + lastindex = 0; + } + } + } + //将doc保存为富文本 + if (type == 1) { + saveRichText(userContext, richSbuild, plid, shapefirst.getString("id")); + } + //new WordCreatFile().createFile(newfile); + } catch (Exception e) { + e.printStackTrace(); + } finally { + // 会在本地产生临时文件,用完后需要删除 + /*if (file.exists()) { + //file.delete(); + }*/ + } + if(count>0) { + return elements; + + }else { + return null; + } + + + } + + public void saveRichText(UserContext userContext, StringBuilder content, String pluuid, String shapid) { + //先保存 将富文本存为附件 + DCPluginProfile dcProfilepdf = DCProfileManager.getDCProfile("com.actionsoft.apps.coe.pal.datamigration", "migration"); + DCContext dcContextpdf = new DCContext(userContext, dcProfilepdf, "com.actionsoft.apps.coe.pal.datamigration", pluuid, shapid, "richText.text"); + InputStream sbs = new ByteArrayInputStream(content.toString().getBytes(StandardCharsets.UTF_8)); + SDK.getDCAPI().write(sbs, dcContextpdf); + } + + /** + * 处理超长的字符 + * + * @param text + * @return + */ + public String getShowText(String text) { + if (!text.isEmpty() && text.length() >= 64) { + return text.substring(0, 64) + "..."; + } + return text; + } + + public JSONObject importWordLibrary(JSONObject elements) { + File file = null; + List failTitleList = new ArrayList<>(); + String filePath = "/Users/jiuyabai/Desktop/yili项目/制度样例1—伊利集团流程制度类文件管理规范1.docx"; + try { + file = new File(filePath); + XWPFDocument doc = new XWPFDocument(new FileInputStream(filePath)); + JSONObject shapeze = ShapeUtil.getProcessShapeDefinitionByName("control.policy", "regulation"); + String shapeIdz = UUIDGener.getObjectId(); + shapeze.put("text", "12312312312");//不生效 + JSONObject props1 = shapeze.getJSONObject("props");// 位置大小 + shapeze.put("id", shapeIdz); + props1.put("x", 100); + props1.put("y", 277); + props1.put("w", 110); + props1.put("h", 50); + props1.put("zindex", 0); + elements.put(shapeIdz, shapeze); + //获取段落 + List paras = doc.getParagraphs(); + int f = 0;//判断只从标题开始 + int inE = 0;//判断词条库什么时候添加 + int inT = 0;//判断词条库什么时候添加 + int level = 1;//判断级别什么时候添加 + Integer libraryTypeId = 0;//类型id + int leavone = 0; + int leatwo = 0; + int leatthee = 0; + int countall = 1; + int x = 2; + int y = 2; + int lastindex = 0; + StringBuilder strb = new StringBuilder(); + JSONObject leoj = new JSONObject(); + JSONObject letj = new JSONObject(); + //JSONObject lethreej = new JSONObject(); + for (XWPFParagraph para : paras) { + String failTitle = "";//返回错误标题 + String shapeId1 = UUIDGener.getObjectId(); + try { + String leveltext = para.getNumLevelText(); + BigInteger numlevel = para.getNumIlvl(); + String titleLvl = getTitleLvl(doc, para);//获取段落级别 + System.out.println("numlevel" + numlevel + "======leveltext=====" + leveltext + "=====获取到的级别为=====" + titleLvl + " =======内容为=====" + para.getText()); + if ("a5".equals(titleLvl) || "a7".equals(titleLvl) || "HTML".equals(titleLvl) || "".equals(titleLvl) || null == titleLvl) { + titleLvl = "8"; + } + Date date = new Date();//时间 + JSONObject shap = new JSONObject(); + if (null != titleLvl && !"".equals(titleLvl) && !"8".equals(titleLvl)) { + if (f != 1 && "0".equals(titleLvl)) {//这里是去除目录,只从内容标题开始 + f = 1; + } + if ("0".equals(titleLvl)) { + ++inT; + level = 0; + if (inT != 1) {//第一次不添加,第二次到的时候说明前边的段落内容已经循环完成然后添加 + //System.out.println("级别===" + titleLvl + " 数值======= " + para.getNumLevelText() + " 内容===" + para.getParagraphText()); + leavone += 1; + countall += 1; + lastindex = 0; + int len = para.getParagraphText().length() / 8 - 2; + shap = getSharp(x, y, countall, len, null, "","item1"); + shap.put("id", shapeId1); + shap.put("text", para.getParagraphText()); + } + } else if ("1".equals(titleLvl)) { + ++inE; + if (inE != 1 && level == 1) {//第一次不添加,第二次到的时候说明前边的段落内容已经循环完成然后添加 + //System.out.println("级别===" + titleLvl + " 数值======= " + para.getNumLevelText() + " 内容===" + para.getParagraphText()); + leavone += 1; + countall += 1; + if (lastindex == 2) { + x -= 1; + y += 1; + } + if (lastindex == 3) { + x -= 2; + y += 1; + } + if (lastindex == 1) { + y += 1; + } + if (x < 2) { + x = 2; + } + lastindex = 1; + int len = para.getParagraphText().length() / 8 - 2; + shap = getSharp(x, y, countall, len, null, "","item2"); + shap.put("id", shapeId1); + shap.put("text", para.getParagraphText()); + leoj = shap; + craetline(elements, shapeze, shap, countall); + } + level = 1; + } else if ("2".equals(titleLvl)) { + //level = 2; + //System.out.println("级别===" + titleLvl + " 数值======= " + para.getNumLevelText() + " 内容===" + para.getParagraphText()); + leatwo += 1; + countall += 1; + if (lastindex == 1) { + x += 1; + } + if (lastindex == 2) { + y += 1; + } + if (lastindex == 3) { + x -= 1; + y += 1; + } + lastindex = 2; + int len = para.getParagraphText().length() / 8 - 2; + shap = getSharp(x, y, countall, len, null, "","item2"); + shap.put("id", shapeId1); + shap.put("text", para.getParagraphText()); + letj = shap; + craetline(elements, leoj, shap, countall); + } else { + System.out.println("未匹配到级别"); + } + } else { + //if (f != 1) {//这里是去除目录,只从内容标题开始 + if (StringUtils.isNotEmpty(para.getParagraphText())) { + leatthee += 1; + countall += 1; + if (strb.length() > 0 && lastindex != 3) { + JSONObject tmpshap = new JSONObject(); + //System.out.println("段落内容===" + para.getParagraphText());//段落内容 + if (lastindex == 3) { + y += 1; + } + if (lastindex == 2) { + x += 1; + tmpshap = letj; + } + if (lastindex == 1) { + x += 2; + tmpshap = leoj; + } + int len = para.getParagraphText().length() / 8 - 2; + shap = getSharp(x, y, countall, len, null, "","item2"); + shap.put("id", shapeId1); + shap.put("text", para.getParagraphText()); + craetline(elements, tmpshap, shap, countall); + strb = new StringBuilder(); + } + strb.append(para.getParagraphText()); + lastindex = 3; + } + // } + } + if (shap != null && !shap.isEmpty()) { + elements.put(shapeId1, shap); + } + + } catch (Exception e) { + failTitleList.add(failTitle); + } + + } + } catch (Exception e) { + e.printStackTrace(); + } finally { + + // 会在本地产生临时文件,用完后需要删除 + /*if (file.exists()) { + //file.delete(); + }*/ + } + return elements; + } + + /** + * 连线处理 + * + * @param zindex + * @return + */ + public void craetline(JSONObject elements, JSONObject shapef1, JSONObject shapt1, int zindex) { + JSONObject linkerObj = ModelMappingAPIManager.getInstance().getLinkerDef(); + JSONObject shafp = shapef1.getJSONObject("props"); + JSONObject shatp = shapt1.getJSONObject("props"); + String linkerId = UUIDGener.getObjectId(); + linkerObj.put("id", linkerId); + JSONObject props = linkerObj.getJSONObject("props"); + props.put("zindex", zindex);// 层次 + linkerObj.put("props", props); + //linkerObj.put("points", getLinkerPoints(positionModels)); + JSONObject from = linkerObj.getJSONObject("from"); + from.put("id", shapef1.get("id")); + from.put("angle", Constant.ANGLE_LEFT); + from.put("x", shafp.getInteger("x") + shafp.getInteger("w")); + from.put("y", shafp.getInteger("y") + 25); + linkerObj.put("from", from); + JSONObject to = linkerObj.getJSONObject("to"); + to.put("id", shapt1.get("id")); + to.put("angle", Constant.ANGLE_RIGHT); + to.put("x", shatp.getInteger("x")); + to.put("y", shatp.getInteger("y") + 25); + linkerObj.put("to", to); + elements.put(linkerId, linkerObj); + } + + public JSONObject getSharp(int x, int y, int zindex, int len, JSONObject lastshap, String str,String type) { +// String shapeId1 = UUIDGener.getObjectId(); + + JSONObject shape1 = ShapeUtil.getProcessShapeDefinitionByName("control.policy", type); +// shape1.put("id", shapeId1); + JSONArray attribute = shape1.getJSONArray("dataAttributes").getJSONObject(0).getJSONArray("attributesJsonArray"); + JSONObject tmp = new JSONObject(); + tmp.put("ref", ""); + tmp.put("readonly", false); + tmp.put("scope", "%,*"); + tmp.put("name", "描述"); + tmp.put("id", "desc"); + tmp.put("type", "textarea"); + tmp.put("value", str); + tmp.put("groupPath", "baseAttribute"); + tmp.put("key", "desc"); + attribute.add(tmp); + // shape1.put("text",orgdepartmentList.get(i).getString("POSITION_NAME")); + if (lastshap.getString("text").contains("适用范围设定")) { + System.out.println("断点"); + } + lastshap = lastshap.getJSONObject("props"); + + JSONObject props1 = shape1.getJSONObject("props");// 位置大小 + if (len < 0) { + len = 0; + } + int xtmp = lastshap.getInteger("x") + (lastshap.getInteger("w") + 100) * x; + props1.put("x", xtmp); + props1.put("y", 100 * y); + //props1.put("w", 150 + (len * 35)); + if("item1".equals(type)) { + props1.put("w", 385); + }else { + props1.put("w", 325); + } + props1.put("h", 50); + //System.out.println("坐标为:x" + xtmp + " y:" + y); + props1.put("zindex", zindex); + return shape1; + } + + /** + * Word中的大纲级别,可以通过getPPr().getOutlineLvl()直接提取,但需要注意,Word中段落级别,通过如下三种方式定义: + * 1、直接对段落进行定义; + * 2、对段落的样式进行定义; + * 3、对段落样式的基础样式进行定义。 + * 因此,在通过“getPPr().getOutlineLvl()”提取时,需要依次在如上三处读取。 + * + * @param doc + * @param para + * @return + */ + private String getTitleLvl(XWPFDocument doc, XWPFParagraph para) { + String titleLvl = ""; + try { + //判断该段落是否设置了大纲级别 + if (para.getCTP().getPPr().getOutlineLvl() != null) { + return String.valueOf(para.getCTP().getPPr().getOutlineLvl().getVal()); + } + } catch (Exception e) { + + } + try { + //判断该段落的样式是否设置了大纲级别 + if (doc.getStyles().getStyle(para.getStyle()).getCTStyle().getPPr().getOutlineLvl() != null) { + return String.valueOf(doc.getStyles().getStyle(para.getStyle()).getCTStyle().getPPr().getOutlineLvl().getVal()); + } + } catch (Exception e) { + + } + + try { + //判断该段落的样式的基础样式是否设置了大纲级别 + if (doc.getStyles().getStyle(doc.getStyles().getStyle(para.getStyle()).getCTStyle().getBasedOn().getVal()) + .getCTStyle().getPPr().getOutlineLvl() != null) { + String styleName = doc.getStyles().getStyle(para.getStyle()).getCTStyle().getBasedOn().getVal(); + return String.valueOf(doc.getStyles().getStyle(styleName).getCTStyle().getPPr().getOutlineLvl().getVal()); + } + } catch (Exception e) { + + } + try { + if (para.getStyleID() != null) { + return para.getStyleID(); + } + } catch (Exception e) { + + } + return titleLvl; + } +} diff --git a/com.actionsoft.apps.coe.pal.output.pr/.classpath b/com.actionsoft.apps.coe.pal.output.pr/.classpath new file mode 100644 index 00000000..de3ee16f --- /dev/null +++ b/com.actionsoft.apps.coe.pal.output.pr/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/com.actionsoft.apps.coe.pal.output.pr/.project b/com.actionsoft.apps.coe.pal.output.pr/.project new file mode 100644 index 00000000..f74ebba4 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.output.pr/.project @@ -0,0 +1,17 @@ + + + com.actionsoft.apps.coe.pal.output.pr + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/com.actionsoft.apps.coe.pal.processlist/.classpath b/com.actionsoft.apps.coe.pal.processlist/.classpath new file mode 100644 index 00000000..410ac9ff --- /dev/null +++ b/com.actionsoft.apps.coe.pal.processlist/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/com.actionsoft.apps.coe.pal.publisher/.classpath b/com.actionsoft.apps.coe.pal.publisher/.classpath new file mode 100644 index 00000000..56a2d507 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/.classpath @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/com.actionsoft.apps.coe.pal.publisher/.project b/com.actionsoft.apps.coe.pal.publisher/.project new file mode 100644 index 00000000..d1cf5153 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/.project @@ -0,0 +1,17 @@ + + + com.actionsoft.apps.coe.pal.publisher + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent7.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent7.java new file mode 100644 index 00000000..69a304a1 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent7.java @@ -0,0 +1,1761 @@ +package com.actionsoft.apps.coe.pal.publisher.pubEvent; + +import java.sql.Timestamp; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; +import java.util.HashMap; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + +import org.apache.commons.lang.StringUtils; +import org.dom4j.Document; +import org.dom4j.DocumentException; +import org.dom4j.DocumentHelper; +import org.dom4j.Element; + +import com.actionsoft.apps.coe.pal.pal.output.constant.OutputConst; +import com.actionsoft.apps.coe.pal.pal.output.dao.OutputTask; +import com.actionsoft.apps.coe.pal.pal.output.extend.OutputAppManager; +import com.actionsoft.apps.coe.pal.pal.output.extend.OutputAppProfile; +import com.actionsoft.apps.coe.pal.pal.output.model.OutputTaskModel; +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.model.UpfileModel; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.web.UpfileWeb; +import com.actionsoft.apps.resource.plugin.profile.DCPluginProfile; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.bpmn.engine.core.delegate.ProcessExecutionContext; +import com.actionsoft.bpms.bpmn.engine.listener.ExecuteListener; +import com.actionsoft.bpms.bpmn.engine.listener.ExecuteListenerInterface; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.TaskInstance; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.login.constant.LoginConst; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.org.model.UserModel; +import com.actionsoft.bpms.server.SSOUtil; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.server.fs.DCContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.exception.AWSException; +import com.actionsoft.sdk.local.SDK; +import com.actionsoft.sdk.local.api.AppAPI; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; + +/** + * 流程结束后发送待阅数据 + * + * @author wangchengye + * @time 2022/11/4 + */ +@SuppressWarnings("all") +public class ProcessEndAfterEvent7 extends ExecuteListener implements ExecuteListenerInterface { + private String isSendEHSQ = SDK.getAppAPI().getProperty("com.actionsoft.apps.coe.pal.publisher", "isSendEHSQ"); + private String isSendOA = SDK.getAppAPI().getProperty("com.actionsoft.apps.coe.pal.publisher", "isSendOA"); + private String isSendKMS = SDK.getAppAPI().getProperty("com.actionsoft.apps.coe.pal.publisher", "isSendKMS"); + + @Override + public String getDescription() { + return "确认发布节点任务完成后推送OA/EHSQ/KMS"; + } + + @Override + public String getVersion() { + return "1.0"; + } + + @Override + public void execute(ProcessExecutionContext ext) throws Exception { + ExecutorService service = Executors.newFixedThreadPool(1); + service.execute(new Runnable() { + @Override + public void run() { + try { + ProcessData(ext); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + }); + } + + public void ProcessData(ProcessExecutionContext processExecutionContext) throws Exception { + System.err.println(processExecutionContext.getTaskInstance().getTitle() + "_推送文件开始========>"); + // http://localhost:8089/portal/r/or?cmd=com.hy_client_bpm_form_main_page_open&oauthName=oauthLogin&processInstId=3505e654-9217-41cd-a31d-4971846b3219 + /** + * 当流程不等于终止的时候往下走 + */ + if (!"terminate".equals(processExecutionContext.getProcessInstance().getControlState())) { + DownloadUtil downloadUtil = new DownloadUtil(); + String wsId = ""; + JSONArray filed = new JSONArray(new LinkedList<>()); + String portalUrl = SDK.getPortalAPI().getPortalUrl(); + // System.out.println("portal======>>>>" + portalUrl); + /* + * if (portalUrl.equals("http://10.114.11.135:8088/portal")){ portalUrl = + * "http://bpm.yili.com:8088/portal/"; } + */ + try { + + String url = portalUrl + "/r/or?cmd=com.yili_process_page&oauthName=oauthLogin&processInstId=" + + processExecutionContext.getProcessInstance().getId() + "&taskInstId=" + + processExecutionContext.getTaskInstance().getId(); + String mobileurl = "https://bpm.yili.com:8088/portal" + + "/r/or?cmd=com.yili_process_page_phone&corpid=wwb0ae23173b140618&appAgentId=1000014&oauthName=wechat&processInstId=" + + processExecutionContext.getProcessInstance().getId() + "&taskInstId=" + + processExecutionContext.getTaskInstance().getId(); + + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Timestamp endTime = processExecutionContext.getProcessInstance().getStartTime(); + BO boActCoePublish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true) + .addQuery("BINDID=", processExecutionContext.getProcessInstance().getId()) + .addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + + // ProcessExecutionContext processExecutionContext,String fileCreateName,String + // fileName,String fileurl,String readingScope_org,String isFullCompany,String + // fileCreateDate,String relationProcessinstId,String readingScope_post,String + // readingScope_level,String fileid + String not_url = "/w?cmd=com.yili_process_page&processInstId=" + + processExecutionContext.getProcessInstance().getId() + "&taskInstId=" + + processExecutionContext.getTaskInstance().getId(); + execute(processExecutionContext, boActCoePublish.getString("APPLYUSERNAME"), + boActCoePublish.getString("PROCESS_TITLE"), not_url, + boActCoePublish.getString("SEND_SCOPE_ORG"), boActCoePublish.getString("SEND_SCOP"), + boActCoePublish.getString("APPLYDATE"), processExecutionContext.getProcessInstance().getId(), + boActCoePublish.getString("SEND_SCOPE_POST"), boActCoePublish.getString("SEND_SCOPE_LEVEL"), + "1"); + + JSONObject jsonObject = new JSONObject(new LinkedHashMap()); + jsonObject.put("action", "read"); + jsonObject.put("title", " " + "" + boActCoePublish.getString("PROCESS_TITLE") + ""); + jsonObject.put("dept", SDK.getORGAPI() + .getDepartmentByUser(processExecutionContext.getTaskInstance().getTarget()).getNo());// SDK.getORGAPI().getDepartmentByUser(processExecutionContext.getProcessInstance().getCreateUser()).getNo() + String target = processExecutionContext.getTaskInstance().getTarget(); + target = processExecutionContext.getTaskInstance().getTarget(); + jsonObject.put("user", target); + // jsonObject.put("user",);//processExecutionContext.getProcessInstance().getCreateUser() + jsonObject.put("date", sdf.format(endTime)); + jsonObject.put("remark", boActCoePublish.getString("PROCESS_TITLE")); + jsonObject.put("status", "0"); + jsonObject.put("dataid", processExecutionContext.getProcessInstance().getId()); + jsonObject.put("pcurl", url); + jsonObject.put("mobileurl", mobileurl); + // list.add(1,"00352394"); + // list.add(2,"00352394"); + BO bo_act_coe_publish1 = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true) + .addQuery("BINDID=", processExecutionContext.getProcessInstance().getId()) + .addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + String crateUserId = target; + String new_uid = ""; + + BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true) + .addQuery("BINDID=", processExecutionContext.getProcessInstance().getId()) + .addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + // 流程发布的新增发布 + List bo_act_coe_publish_n = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N", true) + .addQuery("BINDID=", processExecutionContext.getProcessInstance().getId()).list(); + List bo_act_coe_publish_c = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_C", true) + .addQuery("BINDID=", processExecutionContext.getProcessInstance().getId()).list(); + List bo_act_coe_publish_s = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_S", true) + .addQuery("BINDID=", processExecutionContext.getProcessInstance().getId()).list(); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + + JSONArray jsonArray = new JSONArray(); + /** + * 推送到知识库 + */ + if ("true".equals(isSendKMS)) { + try { + // 发布到知识库 + int m = 0; + for (BO bo : bo_act_coe_publish_n) { + createKmsByNew(bo, wsId, filed, processExecutionContext, bo_act_coe_publish, crateUserId); + } + // 更新知识库 + for (BO bo : bo_act_coe_publish_c) { + CreateKmsByupdate(bo, wsId, filed, processExecutionContext, bo_act_coe_publish, + crateUserId); + } + + // 废止知识库文件 + for (BO bo : bo_act_coe_publish_s) { + // 将旧的知识取消发布或者移动到废止发布中 + String publishfileid_stop = bo.getString("STOPFILEID"); + filed.add(publishfileid_stop); + String sql_s = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid_stop + + "'"; + RowMap map1 = DBSql.getMap(sql_s); + if (StringUtils.isNotEmpty(map1.getString("EXT4"))) { + CancelPublishKnwl(processExecutionContext, + processExecutionContext.getUserContext().getSessionId(), + map1.getString("EXT4")); + + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '' WHERE ID = '" + + publishfileid_stop + "'"); + } + } + } catch (Exception e) { + // TODO: handle exception + } + } + + /** + * 同步PAL文件表文件版本标识,用于部门视图 + */ + if(bo_act_coe_publish_n.size()>0) { + for (BO bo : bo_act_coe_publish_n) { + try { + String fileId = bo.getString("PUBLISHFILEID"); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '1' WHERE ID = '"+fileId+"'"); + } catch (Exception e) { + } + } + } + if(bo_act_coe_publish_c.size()>0) { + for (BO bo : bo_act_coe_publish_c) { + try { + String changefileId = bo.getString("CHANGEFILEID"); + String changefileIdNew = bo.getString("CHANGEDFILEIDNEW"); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '0' WHERE ID = '"+changefileId+"'"); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '1' WHERE ID = '"+changefileIdNew+"'"); + } catch (Exception e) { + } + } + } + + if(bo_act_coe_publish_s.size()>0) { + for (BO bo : bo_act_coe_publish_s) { + try { + String fileId = bo.getString("STOPFILEID"); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '0' WHERE ID = '"+fileId+"'"); + } catch (Exception e) { + } + } + } + /** + * 推送到EHSQ + */ + boolean sendEhqs = true; + String depId = processExecutionContext.getUserContext().getDepartmentModel().getId(); + //获取EHSQ配置表判断是否发送 + String sql = "SELECT * FROM BO_ACT_ACT_ESQ_SEND"; + List maps = DBSql.getMaps(sql); + for (RowMap rowMap : maps) { + String dempet = rowMap.getString("DEMPET"); + String issend = rowMap.getString("ISSEND"); + DepartmentModel departmentById = SDK.getORGAPI().getDepartmentById(dempet); + if(departmentById!=null) { + String departemenId = departmentById.getId(); + if(departemenId.equals(depId)&&"是".equals(issend)) { + sendEhqs = true; + } /* + * else { List subDepartments = + * SDK.getORGAPI().getSubDepartments(departmentById.getId()); for + * (DepartmentModel departmentModel : subDepartments) { String subDeartmentId = + * departmentModel.getId(); if(subDeartmentId.equals(depId)&&"是".equals(issend)) + * { sendEhqs = true; } } + * + * } + */ + } + } + if(!sendEhqs) { + System.err.println("本次发文不推送EHSQ====>"+processExecutionContext.getProcessInstance().getTitle()); + } + if ("true".equals(isSendEHSQ)&&sendEhqs) { + try { + // 推送EHSQ + if(bo_act_coe_publish_n.size()>0) { + sendEHSQ(processExecutionContext, bo_act_coe_publish_n); + } + // 更新EHSQ + if(bo_act_coe_publish_c.size()>0) { + updateEHSQ(processExecutionContext, bo_act_coe_publish_c); + } + } catch (Exception e) { + // TODO: handle exception + } + } + /** + * 更新数据看板底表 + */ + try { + AttrSynAslp(processExecutionContext, wsId, filed); + } catch (Exception e) { + } + + /** + * 推送待阅文件到OA + */ + if ("true".equals(isSendOA)) { + ProcessInstance instanceById = processExecutionContext.getProcessInstance(); + if (bo_act_coe_publish1 != null && instanceById != null) { + System.err.println(instanceById.getTitle() + "推送OA待阅执行开始====>"); + long startTime = System.currentTimeMillis(); + ArrayList sendList = new ArrayList(); + // 发送全集团 + if ("1".equals(bo_act_coe_publish1.getString("SEND_SCOP"))) { + // 系统人员 + ArrayList userList1 = new ArrayList(); + try { + userList1 = getUser(jsonObject, "5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe", "0", + instanceById.getId()); + } catch (Exception e) { + // TODO: handle exception + } + //System.err.println("系统人员=====>" + userList1); + // 项目开发人员 + ArrayList userList2 = new ArrayList(); + try { + userList2 = getUser(jsonObject, "e79281b1-2f81-4895-b30e-9f96e9ad0e2c", "0", + instanceById.getId()); + } catch (Exception e) { + // TODO: handle exception + } + //System.err.println("项目开发人员=====>" + userList2); + // 离退人员 + ArrayList userList3 = new ArrayList(); + try { + userList3 = getUser(jsonObject, "65048aee-157f-49f2-a2dc-5903dd26f519", "0", + instanceById.getId()); + } catch (Exception e) { + // TODO: handle exception + } + //System.err.println("离退人员=====>" + userList3); + List mapsl = DBSql.getMaps("SELECT * FROM ORGUSER WHERE CLOSED = '0'"); + for (RowMap rowMap : mapsl) { + String userId = rowMap.getString("USERID"); + // RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '" + // + instanceById.getId() + "' AND USER_ID = '" + userId + "'"); + if (!"10033643".equals(userId) && !userList1.contains(userId) + && !userList2.contains(userId) && !userList3.contains(userId)) { + sendList.add(userId); + } + } + } else { + // 发送组织岗位职级 + sendList = getSendList(instanceById, bo_act_coe_publish1, jsonObject); + + } + long countTime = System.currentTimeMillis(); + System.err.println(instanceById.getTitle() + "待发送人员数量====>" + sendList.size() + " 计算用时===>" + + (countTime - startTime) + "毫秒"); + for (String user : sendList) { + try { + SendOARead(jsonObject, instanceById, user, "批量推送"); + } catch (Exception e) { // TODO: handle exception + + } + } + // 二次推送 + List List = DBSql.getMaps("SELECT NAME FROM BO_EU_READ_COUNT WHERE PROCESSID = '" + + instanceById.getId() + "' AND RESULT = '待处理'"); + if (List.size() != 0) { + System.err.println(instanceById.getTitle() + "批量推送失败后执行二次推送=======>" + List.size()); + for (RowMap rowMap : List) { + try { + ArrayList userList3 = new ArrayList(); + String userIds = rowMap.getString("NAME"); + System.err.println(instanceById.getTitle() + "二次推送账号=======>" + userIds); + SendOARead(jsonObject, instanceById, userIds, "单个账号推送"); + } catch (Exception e) { // TODO: handle exception + } + } + } + + long endTimes = System.currentTimeMillis(); + // 存入日志 + createReadLog(processExecutionContext, jsonObject, sendList, startTime, endTimes); + System.err.println(instanceById.getTitle() + "推送OA待阅执行完毕====>" + "用时:" + + (endTimes - startTime) / 1000 / 60 + "分钟"); + } + + } + + + + + } catch (Exception e) { + e.printStackTrace(); + } finally { + } + } + } + + /** + * 创建附件及文件 + * + * @param processExecutionContext + * @param bo_name + * @param userContext + * @param cardId + * @param fileid + */ + public void creadteFile(ProcessExecutionContext processExecutionContext, String bo_name, UserContext userContext, + String cardId, String fileid) { + /** + * 这个主要是负责对流程手册进行相关的文件的生成 + */ + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); +// aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/CreateFile"; + + if (StringUtils.isNotEmpty(cardId)) { + String sql_ext4 = "select * from APP_ACT_COE_PAL_REPOSITORY where EXT4 = '" + cardId + "'"; + RowMap map = DBSql.getMap(sql_ext4); + System.out.println("maps======>>>>>>>" + map); + System.out.println("fileid==》》》》" + fileid); + System.out.println("id==》》》》" + map.getString("ID")); + RowMap rowMap = DBSql + .getMap("SELECT * FROM " + bo_name + " where " + fileid + " '" + map.getString("ID") + "'"); + // BO bos = + // SDK.getBOAPI().query(bo_name,true).addQuery(fileid,"17e7d198-1656-4a2c-8912-a81850170be9").detail(); + if (rowMap != null) { + + if (StringUtils.isNotEmpty(rowMap.getString("TASKID"))) { + + OutputTaskModel model = new OutputTask().getTaskReportById(rowMap.getString("TASKID")); + if (model != null) { + // System.out.println(",pdel============" + model); + OutputAppProfile appProfile = OutputAppManager.getProfile(model.getProfileId()); + if (appProfile == null) { + throw new AWSException("Not Find OutputAppProfile! profileId=" + model.getProfileId()); + } + DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), + OutputConst.EXT_APP_DC_OUTPUT); + if (dcProfile == null) + throw new AWSException( + "Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT); + String sql_lever = ""; + if (bo_name.equals("BO_ACT_COE_PUBLISH_N")) { + sql_lever = "SELECT PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID = '" + + rowMap.getString("PUBLISHFILEID") + "'"; + + } else if (bo_name.equals("BO_ACT_COE_PUBLISH_C")) { + sql_lever = "SELECT PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID = '" + + rowMap.getString("CHANGEDFILEIDNEW") + "'"; + } + String lever = DBSql.getString(sql_lever); + System.out.println("版本号::::::::::::" + lever); + // lever = lever.substring(0,3); + if (lever.length() == 5 && lever.substring(4).equals("0")) { + lever.substring(0, 3); + } else if (lever.length() == 1) { + lever = lever + ".0"; + } + String filename = ""; + if (bo_name.equals("BO_ACT_COE_PUBLISH_N")) { + filename = rowMap.getString("PUBLISHFILENAME"); + } else if (bo_name.equals("BO_ACT_COE_PUBLISH_C")) { + filename = rowMap.getString("CHANGEDFILENAMENEW"); + } + DCContext dcContext = new DCContext(userContext, dcProfile, appProfile.getAppContext().getId(), + model.getWsId(), rowMap.getString("TASKID"), filename + "_" + lever + ".doc"); + // UtilFile file = new UtilFile(dcContext.getPath()); + + Map params = new HashMap(); +//知识ID,必填 + params.put("cardId", cardId); +//sid,必填 + params.put("sid", userContext.getSessionId()); + + params.put("dc", dcContext); + AppAPI appAPI = SDK.getAppAPI(); +//创建文件 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("流程手册的存入=================" + ro); + } + } + + } + String sql_A = "SELECT PLNAME FROM APP_ACT_COE_PAL_REPOSITORY where ID = '" + map.getString("ID") + + "' AND PLMETHODID != 'process.framework' AND PLMETHODID IN (select distinct PLMETHODID from APP_ACT_COE_PAL_REPOSITORY)"; + List rows = DBSql.getMaps(sql_A); + + for (RowMap bo : rows) { + + /** + * 这个是模型中的附件获取的并插入的数据信息,需要做修改 + */ + // 调用App + +// 参数定义列表 + Map paramss = new HashMap(); +//知识ID,必填 + paramss.put("cardId", cardId); +//sid,必填 + paramss.put("sid", userContext.getSessionId()); + + UpfileWeb upfileWeb = new UpfileWeb(userContext); + + String sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where PLMETHODID != 'process.framework' AND ID= '" + + map.getString("ID") + "'" + ") ORDER BY FILENAME ASC"; + List maps = DBSql.getMaps(sql_upfile); + for (RowMap row : maps) { + if (!row.getString("FILENAME").contains(".xml")) { + UpfileModel upfileModel = new UpfileModel(); + upfileModel.setType(row.getString("FILETYPE")); + upfileModel.setFileName(row.getString("FILENAME")); + upfileModel.setPl_uuid(row.getString("PALREPOSITORYID")); + upfileModel.setShape_uuid(row.getString("SHAPEID")); + DCContext dcContexts = upfileWeb.getDCContext(upfileModel); + paramss.put("dc", dcContexts); + AppAPI appAPIs = SDK.getAppAPI(); + ResponseObject ros = appAPIs.callASLP(appAPIs.getAppContext(sourceAppId), aslp, paramss); + } + } + } + try { + + PublishKnow(processExecutionContext, userContext, cardId); + } catch (Exception e) { + e.printStackTrace(); + } + } + } + + /** + * 发布知识 + * + * @param processExecutionContext + * @param userContext + * @param id + */ + public void PublishKnow(ProcessExecutionContext processExecutionContext, UserContext userContext, String id) { + + String sql = "select EXT4 from APP_ACT_COE_PAL_REPOSITORY where id in (select PLPARENTID from APP_ACT_COE_PAL_REPOSITORY where EXT4 = '" + + id + "')"; + List maps = DBSql.getMaps(sql); + String ids = ""; + for (RowMap rowmap : maps) { + ids += rowmap.getString("EXT4") + ","; + } + String[] deptSplit_id = ids.split(","); + + JSONArray jsonArray = new JSONArray(); + for (String id_names : deptSplit_id) { + jsonArray.add(id_names); + } + // jsonObject.put(deptSplit_id); + id += ","; + String[] deptSplit_das = id.split(","); + JSONArray jsonArray_das = new JSONArray(); + for (String das : deptSplit_das) { + jsonArray_das.add(das); + } + // jsonObject.put(deptSplit_id); + + if (!jsonArray_das.isEmpty() && !jsonArray.isEmpty()) { + + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/PublishKnwl"; + // 参数定义列表 + Map params = new HashMap(); + // 要发布到的维度ID的JSON数组字符串,必填 + params.put("dimensionIDArray", jsonArray.toString()); + // 要发布的知识ID的JSON数组字符串,必填 + params.put("knwlIDArray", jsonArray_das.toString()); + // 标签的JSON数组字符串,非必填 + + // sid,必填 + params.put("sid", userContext.getSessionId()); + AppAPI appAPI = SDK.getAppAPI(); + // 发布知识 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + + System.out.println("知识发布============" + ro); + + } + + } + + /** + * 取消发布知识 + * + * @param processExecutionContext + * @param sid + * @param knwlId + * @return + */ + public boolean CancelPublishKnwl(ProcessExecutionContext processExecutionContext, String sid, String knwlId) { + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/CancelPublishKnwl"; + // 参数定义列表 + Map params = new HashMap(); + // sid,如果为空,则需要传createUser参数,非必填 + params.put("sid", sid); + // 知识ID,必填 + params.put("knwlId", knwlId); + AppAPI appAPI = SDK.getAppAPI(); + // 取消发布知识(全部维度) + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("取消发布的ro=====>>>>" + ro); + return ro.isOk(); + } + + /** + * 创建XPage页面上的待阅文件 + * + * @param processExecutionContext + * @param fileCreateName + * @param fileName + * @param fileurl + * @param readingScope_org + * @param isFullCompany + * @param fileCreateDate + * @param relationProcessinstId + * @param readingScope_post + * @param readingScope_level + * @param fileid + * @return + */ + public boolean execute(ProcessExecutionContext processExecutionContext, String fileCreateName, String fileName, + String fileurl, String readingScope_org, String isFullCompany, String fileCreateDate, + String relationProcessinstId, String readingScope_post, String readingScope_level, String fileid) { + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.awspaas.user.apps.docview/PushFileToXpage"; + // 参数定义列表 + Map params = new HashMap(); + // 发布人,不允许空值,必填 + params.put("fileCreateName", fileCreateName); + // 待阅文件标题名称,不允许空值,必填 + params.put("fileName", fileName); + // 阅读范围_组织,不允许空值,非必填 + params.put("readingScope_org", readingScope_org); + // 是否全公司可见,不允许空值,必填 + params.put("isFullCompany", isFullCompany); + // 待阅文件Url,不允许空值,必填 + params.put("fileurl", fileurl); + // 发布日期,不允许空值,必填 + params.put("fileCreateDate", fileCreateDate); + // 发布流程ID,不允许空值,必填 + params.put("relationProcessinstId", relationProcessinstId); + // 阅读范围_岗位,不允许空值,非必填 + params.put("readingScope_post", readingScope_post); + // 阅读范围_职级,不允许空值,非必填 + params.put("readingScope_level", readingScope_level); + // 待阅文件ID,多个逗号隔开,不允许空值,必填 + params.put("fileid", fileid); + AppAPI appAPI = SDK.getAppAPI(); + // 推送待阅文件到xpage门户 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("ros++++++++=====待阅》》》》》》》》》》" + ro); + return ro.isOk(); + } + + /** + * 给知识授权 + * + * @param processExecutionContext + * @param jsonArray + * @param sid + * @param knwlId + * @return + */ + public boolean AddKnwlAC(ProcessExecutionContext processExecutionContext, JSONArray jsonArray, String sid, + String knwlId) { + + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/AddKnwlAC"; + // 参数定义列表 + Map params = new HashMap(); + // [{"assignmentType":"department","assignmentId":"62196ff9-a26d-4be5-9480-3ef680886f63"},{"assignmentType":"user","assignmentId":"user1"}],必填 + params.put("acList", jsonArray); + // sid,如果为空,则需要传createUser参数,非必填 + params.put("sid", sid); + // 知识ID,必填 + params.put("knwlId", knwlId); + AppAPI appAPI = SDK.getAppAPI(); + // 给知识授权 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + return ro.isOk(); + } + + /** + * 柱军的ASLP + * + * @param processExecutionContext + * @param wsId + * @param fileId + * @return + */ + public boolean AttrSynAslp(ProcessExecutionContext processExecutionContext, String wsId, JSONArray fileId) { + System.out.println(""); + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.awspaas.user.apps.yili.reportform/AttrSynAslp"; + // 参数定义列表 + Map params = new HashMap(); + // 资产内容库id,必填 + params.put("wsId", wsId); + // 文件id;json数组[id1,id2,id3],必填 + params.put("fileId", fileId); + AppAPI appAPI = SDK.getAppAPI(); + // 增量同步数据 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("同步数据看板底表结果>>>>>>>>>>>>>" + ro); + return ro.isOk(); + } + + /** + * 发送OA待阅数据 + * + * @param jsonObject + * @param processInstance + * @param results + * @throws DocumentException + */ + public void SendOARead(JSONObject jsonObject, ProcessInstance processInstance, String userIds,String type) + throws DocumentException { + + String processInstId = processInstance.getId(); + // System.err.println(processInstance.getTitle() + "开始发送:" + userId); + + + if ("".equals(userIds) || UtilString.isEmpty(userIds)) { return; } + + jsonObject.put("userList", userIds); + String xmlStr = "\n" + + " " + " " + " " + " " + + "" + " " + " " + + " " + ""; + // System.out.println("xmlStr>>>>>>>>" + xmlStr); + String readurl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "readurl"); + try { + String postSoap = UtilUrl.doPostSoap(readurl, xmlStr, ""); + Document document = DocumentHelper.parseText(postSoap); + Element rootElement = document.getRootElement(); + // System.out.println("rootElement>>>>>>" + rootElement); + Element result = rootElement.element("Body").element("serviceResponse").element("out"); + String resultString = result.getData().toString(); + JSONObject jsonObject1 = JSON.parseObject(resultString); + String datas = jsonObject1.getString("data"); + String status = jsonObject1.getString("status"); + // System.out.println("推送》》》》》》》》》》》" + status); + if ("true".equals(status)) { + JSONArray resultArray = JSONObject.parseArray(datas); + //System.out.println(processInstance.getTitle() + "待阅推送成功:" + idList.size()+"人"); + for (int j = 0; j < resultArray.size(); j++) { + JSONObject jsonObject2 = resultArray.getJSONObject(j); + String user = jsonObject2.get("user").toString(); + String dataid = jsonObject2.get("dataid").toString(); + BO bo = new BO(); + bo.set("TITLE", processInstance.getTitle()); + bo.set("PROCESSID", processInstance.getId()); + bo.set("USER_ID", user); + bo.set("USERDEP", SDK.getORGAPI().getUser(user).getDepartmentId()); + bo.set("DATAID", dataid); + bo.set("RESULT", status); + bo.set("SENDTYPE", "1"); + bo.set("READSTATE", "未读"); + bo.set("TYPE", type); + SDK.getBOAPI().create("BO_ACT_DATAID", bo, processInstance.getId(), processInstance.getCreateUser()); + } + if("单个账号推送".equals(type)) { + DBSql.update("UPDATE BO_EU_READ_COUNT SET RESULT = '已重新推送' WHERE PROCESSID = '"+processInstId+"' AND NAME = '"+userIds+"'"); + } + } else { + System.out.println(processInstance.getTitle() + "待阅推送失败:" + userIds); + try { + BO bo = new BO(); + bo.set("TITLE", processInstance.getTitle()); + bo.set("NAME", userIds); + bo.set("TYPE", type); + bo.set("RESULT", "待处理"); + bo.set("PROCESSID", processInstId); + bo.set("DEPNAME", SDK.getORGAPI().getUser(userIds).getDepartmentId()); + SDK.getBOAPI().create("BO_EU_READ_COUNT", bo, processInstance.getId(), processInstance.getCreateUser()); + } catch (Exception e) { + // TODO: handle exception + } + } + + } catch (Exception e) { + System.out.println(processInstance.getTitle() + "待阅推送失败:" + userIds); + BO bo = new BO(); + bo.set("TITLE", processInstance.getTitle()); + bo.set("NAME", userIds); + bo.set("TYPE", type); + bo.set("RESULT", "待处理"); + bo.set("PROCESSID", processInstId); + bo.set("DEPNAME", SDK.getORGAPI().getUser(userIds).getDepartmentId()); + SDK.getBOAPI().create("BO_EU_READ_COUNT", bo, processInstance.getId(), processInstance.getCreateUser()); + } + + } + + /** + * 发送EHSQ数据 + * + * @param jsonArray + * @return + * @throws Exception + */ + public String SendEHSQFile(String plName,JSONArray jsonArray) throws Exception { + /** + * 首先需要将传过来的参数进行加密操作,并设置 + */ + AesUtil aesUtil = new AesUtil(); + String system = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "system"); + String AES = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "AES"); + String EHSQUrl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "EHSQUrl"); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + String date = sdf.format(new Date()); + String s1 = date.replaceAll("-", "").replaceAll(" ", "").replaceAll(":", ""); + + //System.out.println("时间>>>>>>>>>>>>" + s1); + String data = system + "##" + s1; + String encrypt = aesUtil.encrypt(data, AES); // 获取加密之后的秘钥 + JSONObject jsonObject = new JSONObject(new LinkedHashMap<>()); + jsonObject.put("system", system); + jsonObject.put("token", encrypt); + jsonObject.put("infos", jsonArray); + HttpUtil httpUtil = new HttpUtil(); + //System.out.println(plName+"发送EHSQ参数>>>>>" + jsonObject); + String s = httpUtil.sendPost(jsonObject, EHSQUrl); + //System.out.println(plName+"发送EHSQ结果>>>>>" + s); + + return s; + } + + public ArrayList getSendList(ProcessInstance instanceById, BO bo_act_coe_publish1, JSONObject jsonObject) { + String sendType = bo_act_coe_publish1.getString("SEND_SCOP"); + String org = bo_act_coe_publish1.getString("SEND_SCOPE_ORG"); + String post = bo_act_coe_publish1.getString("SEND_SCOPE_POST"); + String level = bo_act_coe_publish1.getString("SEND_SCOPE_LEVEL"); + ArrayList userList = new ArrayList<>(); + if ("1".equals(sendType)) { + //System.err.println("发送全集团=====>" + instanceById.getTitle()); + userList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, sendType); + + } else { + /** + * 先组织和职级取交集,然后再和岗位取并集 + */ + if (UtilString.isNotEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isNotEmpty(level)) { + //System.err.println("发送组织/岗位/职级=====>" + instanceById.getTitle()); + ArrayList sendOrgList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, + sendType); + ArrayList sendLevel = sendLevel(level, sendOrgList, instanceById, bo_act_coe_publish1, jsonObject); + userList = sendPost(post, sendLevel, instanceById, bo_act_coe_publish1, + jsonObject); + } + // 如果职级为空,组织/岗位取并集 + if (UtilString.isNotEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isEmpty(level)) { + //System.err.println("发送组织/岗位=====>" + instanceById.getTitle()); + ArrayList sendOrgList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, + sendType); + userList = sendPost(post, sendOrgList, instanceById, bo_act_coe_publish1, jsonObject); + } + // 如果岗位为空,组织/职级取交集 + if (UtilString.isNotEmpty(org) && UtilString.isEmpty(post) && UtilString.isNotEmpty(level)) { + //System.err.println("发送组织/职级=====>" + instanceById.getTitle()); + ArrayList sendOrgList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, + sendType); + userList = sendLevel(level, sendOrgList, instanceById, bo_act_coe_publish1, jsonObject); + } + + /** + * 组织为空 岗位和职级取并集 + */ + if (UtilString.isEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isNotEmpty(level)) { + //System.err.println("发送岗位/职级=====>" + instanceById.getTitle()); + ArrayList sendLevel2 = sendLevel2(level, userList, instanceById, bo_act_coe_publish1, jsonObject); + userList = sendPost(post, sendLevel2, instanceById, bo_act_coe_publish1, + jsonObject); + } + // 如果只有组织不为空 + if (UtilString.isNotEmpty(org) && UtilString.isEmpty(post) && UtilString.isEmpty(level)) { + //System.err.println("发送组织=====>" + instanceById.getTitle()); + userList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, sendType); + } + // 如果只有岗位不为空 + if (UtilString.isEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isEmpty(level)) { + //System.err.println("发送岗位=====>" + instanceById.getTitle()); + userList = sendPost(post, userList, instanceById, bo_act_coe_publish1, jsonObject); + } + // 如果只有职级不为空 + if (UtilString.isEmpty(org) && UtilString.isEmpty(post) && UtilString.isNotEmpty(level)) { + //System.err.println("发送职级=====>" + instanceById.getTitle()); + userList = sendLevel2(level, userList, instanceById, bo_act_coe_publish1, jsonObject); + } + + } + + return userList; + + } + + // 发送组织 + public ArrayList sendOrg(String org, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject, String sendType) { + String processid = instanceById.getId(); + // 获取组织 + if (StringUtils.isNotEmpty(org) || "1".equals(sendType)) { + long startTime = System.currentTimeMillis(); + userList = getUser(jsonObject, org, sendType, processid); + long endTimes = System.currentTimeMillis(); + // System.out.println(instanceById.getTitle()+"_根据部门获取人员用时===>"+(endTimes-startTime)/1000); + } + + return userList; + } + + // 发送岗位 + public ArrayList sendPost(String post, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject) { + String processid = instanceById.getId(); + // 获取岗位 + if (StringUtils.isNotEmpty(post)) { + String posts[] = post.split(","); + // 取并集 + String postss = ""; + if (posts.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + postss = "'" + posts[0] + "'"; + } else { + postss = "'" + StringUtils.join(posts, "','") + "'"; + } + String sql = "select * from ORGUSER where POSITION_NO in (" + postss + ") and userno is not null"; + List maps1 = DBSql.getMaps(sql); + for (RowMap rowMap : maps1) { + String userId = rowMap.getString("USERID"); + if (!userList.contains(userId)) { + boolean closed = SDK.getORGAPI().getUser(userId).isClosed(); + if(!closed) { + userList.add(userId); + } + } + + } + } + + return userList; + } + + // 发送职级 + public ArrayList sendLevel(String level, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject) { + String processid = instanceById.getId(); + ArrayList userList_level = new ArrayList(); + // 获取职级 + if (StringUtils.isNotEmpty(level)) { + String ranks[] = level.split(","); + String rankss = ""; + if (ranks.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + rankss = "'" + ranks[0] + "'"; + } else { + rankss = "'" + StringUtils.join(ranks, "','") + "'"; + } + // 取交集 + String sql2 = "select * from ORGUSER where EXT2 in (" + rankss + ") and userno is not null"; + List maps2 = DBSql.getMaps(sql2); + for (RowMap rowMap : maps2) { + String userId = rowMap.getString("USERID"); + if (userList.contains(userId)) { + boolean closed = SDK.getORGAPI().getUser(userId).isClosed(); + if(!closed) { + userList_level.add(userId); + } + } + + } + } + + return userList_level; + } + + // 只发送职级 + public ArrayList sendLevel2(String level, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject) { + String processid = instanceById.getId(); + ArrayList userList_level = new ArrayList(); + // 获取职级 + if (StringUtils.isNotEmpty(level)) { + String ranks[] = level.split(","); + String rankss = ""; + if (ranks.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + rankss = "'" + ranks[0] + "'"; + } else { + rankss = "'" + StringUtils.join(ranks, "','") + "'"; + } + // 取交集 + String sql2 = "select * from ORGUSER where EXT2 in (" + rankss + ") and userno is not null"; + List maps2 = DBSql.getMaps(sql2); + for (RowMap rowMap : maps2) { + String userId = rowMap.getString("USERID"); + boolean closed = SDK.getORGAPI().getUser(userId).isClosed(); + if(!closed) { + userList_level.add(userId); + } + } + } + return userList_level; + } + + /** + * 根据部门id获取当前部门以及下级部门的人员信息 + * + * @param processid + * @return + */ + + public ArrayList getUser(JSONObject jsonObject, String depIds, String sendType, String processid) { + ArrayList arr = new ArrayList(); + ArrayList arr_test = new ArrayList(); + // 全集团 + if ("1".equals(sendType)) { + List departmentsByCompanyId = SDK.getORGAPI().getDepartmentsByCompanyId(1, + "8911e732-b42a-4556-853f-ad32761bcbee"); + for (DepartmentModel departmentModel : departmentsByCompanyId) { + String id = departmentModel.getId(); + // 查询未注销的部门并且去掉系统部门 + if (!departmentModel.isClosed() && !"5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe".equals(id) + && !"e79281b1-2f81-4895-b30e-9f96e9ad0e2c".equals(id) + && !"65048aee-157f-49f2-a2dc-5903dd26f519".equals(id)) { + getUserList(jsonObject, arr_test, arr, id, processid); + + } + } + } else { + if (UtilString.isNotEmpty(depIds)) { + String[] split = depIds.split(","); + for (String depId : split) { + getUserList(jsonObject, arr_test, arr, depId, processid); + } + } + } + + // System.err.println(SDK.getProcessAPI().getInstanceById(processid) + + // "_得到的总人数为:" + arr_test.size()); + // System.err.println(SDK.getProcessAPI().getInstanceById(processid) + + // "_得到的过滤后的人数为:" + arr.size()); + return arr; + } + + public void getUserList(JSONObject jsonObject, ArrayList arr_test, ArrayList arr, + String departmentId, String processid) { + // 获取当前部门下人员 + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(departmentId); + for (UserModel userModel : userModelList) { + if (!userModel.isClosed()) { + String uid = userModel.getUID(); + if (!arr.contains(uid)) { + if (!"10033643".equals(uid)) { + // System.err.println("发送人员======>" + uid); } + arr.add(uid); + + } + /* + * RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '" + * + processid + "' AND USER_ID = '" + uid + "'"); if (map == null) { + * //System.err.println("发送人员======>" + uid); } + */ + } + } + } + // 获取当前部门的子部门人员 + DepartmentModel departmentById = SDK.getORGAPI().getDepartmentById(departmentId); + if (departmentById.isExistSubModelOfCache()) { + getSubDepartments(jsonObject, arr_test, arr, departmentById, processid); + } + + } + + // 获取子部门人员 + public void getSubDepartments(JSONObject jsonObject, ArrayList arr_test, ArrayList arr, + DepartmentModel departmentById, String processid) { + if (!departmentById.isClosed()) { + List subDepartments = SDK.getORGAPI().getSubDepartments(departmentById.getId()); + for (DepartmentModel departmentModel : subDepartments) { + if (!departmentModel.isClosed()) { + String id = departmentModel.getId(); + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(id); + for (UserModel userModel : userModelList) { + if (!userModel.isClosed()) { + String uid = userModel.getUID(); + if (!arr.contains(uid)) { + if (!"10033643".equals(uid)) { + // System.err.println("发送人员======>" + uid); } + arr.add(uid); + } + // System.err.println(SDK.getProcessAPI().getInstanceById(processid) + + // "_发送人员======>" + uid); + + } + } + } + // 递归获取子部门下的子部门 + if (SDK.getORGAPI().isExistSubDepartment(id)) { + getSubDepartments(jsonObject, arr_test, arr, SDK.getORGAPI().getDepartmentById(id), processid); + } + + } + + } + } + } + + /** + * 创建待阅日志 + * + * @param processExecutionContext + * @param jsonObject + * @param users + * @param startTime + */ + + public void createReadLog(ProcessExecutionContext processExecutionContext, JSONObject jsonObject, + ArrayList arr, long startTime, long endTimes) { + BO bo_Read_log = new BO(); + String processInstId = processExecutionContext.getProcessInstance().getId(); + bo_Read_log.set("USREID", processExecutionContext.getUserContext().getUID()); + bo_Read_log.set("DEPID", processExecutionContext.getUserContext().getDepartmentModel().getId()); + bo_Read_log.set("BUNAME", processExecutionContext.getUserContext().getUserModel().getExt4()); + bo_Read_log.set("TITLE", jsonObject.get("title")); + bo_Read_log.set("PROCESSID", processInstId); + bo_Read_log.set("SENDNUM", arr.size()); + String sqly = "SELECT * FROM BO_ACT_DATAID WHERE PROCESSID = '" + processInstId + "' AND SENDTYPE = '1'"; + List mapsy = DBSql.getMaps(sqly); + bo_Read_log.set("SENDNUMSJ", mapsy.size()); + BO bo_act_coe_publishs = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", processInstId) + .addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + String send_scop = bo_act_coe_publishs.getString("SEND_SCOP"); + bo_Read_log.set("SEND_SCOP", send_scop); + String SEND_SCOPE_ORG = bo_act_coe_publishs.getString("SEND_SCOPE_ORG"); + if (UtilString.isNotEmpty(SEND_SCOPE_ORG)) { + String[] resulr = SEND_SCOPE_ORG.split(","); + bo_Read_log.set("SEND_SCOPE_ORGNUM", resulr.length); + } + String SEND_SCOPE_POST = bo_act_coe_publishs.getString("SEND_SCOPE_POST"); + if (UtilString.isNotEmpty(SEND_SCOPE_POST)) { + String[] resulr = SEND_SCOPE_POST.split(","); + bo_Read_log.set("SEND_SCOPE_POST_NUM", resulr.length); + } + String SEND_SCOPE_LEVEL = bo_act_coe_publishs.getString("SEND_SCOPE_LEVEL"); + if (UtilString.isNotEmpty(SEND_SCOPE_LEVEL)) { + String[] resulr = SEND_SCOPE_LEVEL.split(","); + bo_Read_log.set("SEND_SCOPE_LEVEL_NUM", resulr.length); + } + + bo_Read_log.set("STARTTIMES", startTime); + bo_Read_log.set("ENDTIMES", endTimes); + long time = endTimes - startTime; + long diffSeconds = time / 1000 % 60; + long diffMinutes = time / (60 * 1000) % 60; + long diffHours = time / (60 * 60 * 1000) % 24; + long diffDays = time / (24 * 60 * 60 * 1000); + String remainTime =""; + if(diffDays!=0&&diffHours!=0) { + remainTime = diffDays + "天" + diffHours + "小时"+diffMinutes + "分钟"+diffSeconds + "秒"; + }else if(diffDays==0&&diffHours!=0&&diffMinutes!=0){ + remainTime = diffHours + "小时"+diffMinutes + "分钟"+diffSeconds + "秒"; + }else if(diffDays==0&&diffHours==0&&diffMinutes!=0) { + remainTime = diffMinutes + "分钟"+diffSeconds + "秒"; + }else if(diffDays==0&&diffHours==0&&diffMinutes==0) { + remainTime = diffSeconds + "秒"; + } + bo_Read_log.set("TIMECOUNT",remainTime); + // 文件发布成功回执流程 + ProcessInstance processInst = SDK.getProcessAPI().createProcessInstance("obj_b4700f89a7a144c086d047de0cfe9531", + "admin", jsonObject.get("title") + "成功发布回执单"); + SDK.getBOAPI().create("BO_EU_PAL_PULBISH_SUCCESS", bo_Read_log, processInst, UserContext.fromUID("admin")); + TaskInstance taskInst = SDK.getProcessAPI().start(processInst).fetchActiveTasks().get(0); + SDK.getTaskAPI().completeTask(taskInst.getId(), "admin"); + + } + + /** + * 通过发布知识创建知识 + * + * @param bo 发布清单表数据 + * @param wsId 知识库id + * @param filed 文件集合JsonArray格式 + * @param processExecutionContext 流程数据 + * @param bo_act_coe_publish 发布表 + * @param uid 账户合计 + */ + public void createKmsByNew(BO bo, String wsId, JSONArray filed, ProcessExecutionContext processExecutionContext, + BO bo_act_coe_publish, String uid) { + { + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + wsId = model.getWsId(); + String publishfileid = bo.getString("PUBLISHFILEID"); + filed.add(publishfileid); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + if (StringUtils.isEmpty(map.getString("EXT4"))) { + // aslp服务地址 + String aslps_create = "aslp://com.actionsoft.apps.kms/CreateKnwl"; +// 参数定义列表 + Map params_create = new HashMap(); +//保密级别, 0: 普通 1:秘密 2:机密,必填 + params_create.put("securityLevel", 0); +//知识名称,必填 + + String level = ""; + if (map != null) { + String pver = map.getString("PLVER"); + if (UtilString.isNotEmpty(pver)) { + if (pver.contains(".00")) { + String levels = pver; + String[] plvers = levels.split("\\."); + plvers[1] = plvers[1].replaceAll("0", ""); + level = plvers[0] + "." + plvers[1]; + } else { + level = pver + ".0"; + } + } + } + params_create.put("knwlName", map.getString("PLNAME") + "V" + level); +//是否可以评论,必填 + params_create.put("isComment", true); +//是否可以评分,必填 + params_create.put("isRate", true); +//有效期:yyyy-MM-dd,非必填 + params_create.put("validDate", "2099-12-31"); +//只读控制,1:在线阅读和下载 0:在线阅读,必填 + params_create.put("onlineLevel", 1); +//知识创建人,某些特殊场景下,sid和createUser代表的用户并不一样,如果此参数为null,则使用sid代表的用户,非必填 + params_create.put("createUser", "admin"); +//知识内容,非必填 + params_create.put("cardContext", ""); +//sid,必填 + params_create.put("sid", processExecutionContext.getUserContext().getSessionId()); + AppAPI appAPI_create = SDK.getAppAPI(); +//创建知识 + ResponseObject ro_create = appAPI_create.callASLP( + appAPI_create.getAppContext(processExecutionContext.getProcessInstance().getAppId()), + aslps_create, params_create); + String cardId = ((LinkedHashMap) ro_create.getData()).get("cardId").toString(); + JSONArray jsonArray1 = new JSONArray(); + if (bo_act_coe_publish.getString("SEND_SCOP").equals("0")) { + String departId = bo_act_coe_publish.getString("SEND_SCOPE_ORG"); + if (StringUtils.isNotEmpty(departId) + && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_LEVEL")) + && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_POST"))) { + String strs[] = departId.split(","); + for (String departmentid : strs) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", departmentid); + jsonArray1.add(jsonObjecta); + } + } else { + + String[] split = uid.split(","); + + List list = new ArrayList(Arrays.asList(split)); + + HashSet h = new HashSet(list); + list.clear(); + list.addAll(h); + + for (String user_id : list) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "user"); + jsonObjecta.put("assignmentId", user_id); + jsonArray1.add(jsonObjecta); + } + } + } else { + List departmentsByCompanyId = SDK.getORGAPI().getDepartmentsByCompanyId(1, + "8911e732-b42a-4556-853f-ad32761bcbee"); + for (DepartmentModel departmentModel : departmentsByCompanyId) { + String depId = departmentModel.getId(); + // 查询未注销的部门并且去掉系统部门 + if (!departmentModel.isClosed()&& !"e79281b1-2f81-4895-b30e-9f96e9ad0e2c".equals(depId)&& !"65048aee-157f-49f2-a2dc-5903dd26f519".equals(depId)) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType","department"); + jsonObjecta.put("assignmentId",depId); + jsonArray1.add(jsonObjecta); + } + } + } + + AddKnwlAC(processExecutionContext, jsonArray1, processExecutionContext.getUserContext().getSessionId(), + cardId); + + String update_sql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '" + cardId + "' WHERE " + + " PLCATEGORY = 'process'and PLMETHODID !='process.framework' " + + " and PLNAME not in ('流程架构图','测试用','GMY-截图用','sx批量测试'" + + " ,'8.2培训使用','用户练习使用','YX测试分部','yx测试人员','yx测试部','流程架构测试')" + + " and PLPARENTID not in ('63ff93c6-2f27-4851-a396-6830c428db2e'," + + " 'c84f497a-4de3-4404-86e8-cd5af71c3b47','94dabf55-b032-4316-a4c3-00b83763da09'," + + " '36ac7cdd-a361-4bd3-9511-c03c1b3627a4','84e534b4-e51a-4874-9ff1-8a0206d9e0c5'," + + " '98bd5917-7563-4b29-b775-815e91d9864c','f07da63c-3423-4c1e-ae75-b323c6a69093'," + + " '79cb4c35-d2f7-4c43-a7db-44038b557eac','7ad79a73-a497-417a-a5ec-d4c9fd45061c'," + + " '42c09260-c1d3-44b7-ac3d-f8280e04c294') and ID = '" + publishfileid + "'"; + int update = DBSql.update(update_sql); + System.out.println("更新id为:" + publishfileid + "版本为:的知识对应的资产库的EXT4的影响行数为" + update); + creadteFile(processExecutionContext, "BO_ACT_COE_PUBLISH_N", processExecutionContext.getUserContext(), + cardId, "PUBLISHFILEID = "); + } + } + } + + /** + * 发布生成kms知识 + * + * @param bo 更新发布清单表 + * @param wsId 知识库id + * @param filed 发布清单的发布id + * @param processExecutionContext 流程数据 + * @param bo_act_coe_publish 发布表 + * @param uid 账户集合 + */ + public void CreateKmsByupdate(BO bo, String wsId, JSONArray filed, ProcessExecutionContext processExecutionContext, + BO bo_act_coe_publish, String uid) { + { + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + wsId = model.getWsId(); + String publishfileid = bo.getString("CHANGEDFILEIDNEW"); + filed.add(publishfileid); + DBSql.update("update APP_ACT_COE_PAL_REPOSITORY set EXT4 = '' where id = '" + publishfileid + "'"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + if (StringUtils.isEmpty(map.getString("EXT4"))) { + // aslp服务地址 + String aslps_create = "aslp://com.actionsoft.apps.kms/CreateKnwl"; +// 参数定义列表 + Map params_create = new HashMap(); +//保密级别, 0: 普通 1:秘密 2:机密,必填 + params_create.put("securityLevel", 0); +//知识名称,必填 + String level = ""; + if (map != null) { + String pver = map.getString("PLVER"); + if (UtilString.isNotEmpty(pver)) { + if (pver.contains(".00")) { + String levels = pver; + String[] plvers = levels.split("\\."); + plvers[1] = plvers[1].replaceAll("0", ""); + level = plvers[0] + "." + plvers[1]; + } else { + level = pver + ".0"; + } + } + } + + params_create.put("knwlName", map.getString("PLNAME") + "V" + level); +//是否可以评论,必填 + params_create.put("isComment", true); +//是否可以评分,必填 + params_create.put("isRate", true); +//有效期:yyyy-MM-dd,非必填 + params_create.put("validDate", "2099-12-31"); +//只读控制,1:在线阅读和下载 0:在线阅读,必填 + params_create.put("onlineLevel", 1); +//知识创建人,某些特殊场景下,sid和createUser代表的用户并不一样,如果此参数为null,则使用sid代表的用户,非必填 + params_create.put("createUser", "admin"); +//知识内容,非必填 + params_create.put("cardContext", ""); +//sid,必填 + params_create.put("sid", processExecutionContext.getUserContext().getSessionId()); + AppAPI appAPI_create = SDK.getAppAPI(); +//创建知识 + ResponseObject ro_create = appAPI_create.callASLP( + appAPI_create.getAppContext(processExecutionContext.getProcessInstance().getAppId()), + aslps_create, params_create); + // System.out.println("ro_create================" + ro_create); + String cardId = ((LinkedHashMap) ro_create.getData()).get("cardId").toString(); + JSONArray jsonArray1 = new JSONArray(); + if (bo_act_coe_publish.getString("SEND_SCOP").equals("1")) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "company"); + jsonObjecta.put("assignmentId", "8911e732-b42a-4556-853f-ad32761bcbee"); + jsonArray1.add(jsonObjecta); + } else { + String departId = bo_act_coe_publish.getString("SEND_SCOPE_ORG"); + if (StringUtils.isNotEmpty(departId) + && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_LEVEL")) + && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_POST"))) { + String strs[] = departId.split(","); + for (String departmentid : strs) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", departmentid); + jsonArray1.add(jsonObjecta); + } + } else { + String[] split = uid.split(","); + + List list = new ArrayList(Arrays.asList(split)); + + HashSet h = new HashSet(list); + list.clear(); + list.addAll(h); + + for (String user_id : list) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "user"); + jsonObjecta.put("assignmentId", user_id); + jsonArray1.add(jsonObjecta); + } + } + + } + AddKnwlAC(processExecutionContext, jsonArray1, processExecutionContext.getUserContext().getSessionId(), + cardId); + + String update_sql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '" + cardId + "' WHERE " + + " PLCATEGORY = 'process'and PLMETHODID !='process.framework' " + + " and PLNAME not in ('流程架构图','测试用','GMY-截图用','sx批量测试'" + + " ,'8.2培训使用','用户练习使用','YX测试分部','yx测试人员','yx测试部','流程架构测试')" + + " and PLPARENTID not in ('63ff93c6-2f27-4851-a396-6830c428db2e'," + + " 'c84f497a-4de3-4404-86e8-cd5af71c3b47','94dabf55-b032-4316-a4c3-00b83763da09'," + + " '36ac7cdd-a361-4bd3-9511-c03c1b3627a4','84e534b4-e51a-4874-9ff1-8a0206d9e0c5'," + + " '98bd5917-7563-4b29-b775-815e91d9864c','f07da63c-3423-4c1e-ae75-b323c6a69093'," + + " '79cb4c35-d2f7-4c43-a7db-44038b557eac','7ad79a73-a497-417a-a5ec-d4c9fd45061c'," + + " '42c09260-c1d3-44b7-ac3d-f8280e04c294') and ID = '" + publishfileid + "'"; + int update = DBSql.update(update_sql); + System.out.println("更新id为:" + publishfileid + "版本为:的知识对应的资产库的EXT4的影响行数为" + update); + creadteFile(processExecutionContext, "BO_ACT_COE_PUBLISH_C", processExecutionContext.getUserContext(), + cardId, " CHANGEDFILEIDNEW="); + } + // 将旧的知识取消发布或者移动到废止发布中 + String publishfileid_old = bo.getString("CHANGEFILEID"); + String sql_c = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid_old + "'"; + RowMap map1 = DBSql.getMap(sql_c); + if (StringUtils.isNotEmpty(map1.getString("EXT4"))) { + CancelPublishKnwl(processExecutionContext, processExecutionContext.getUserContext().getSessionId(), + map1.getString("EXT4")); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '' WHERE ID = '" + publishfileid_old + "'"); + } + } + } + + // 创建推送日志 + public void createLog(ProcessInstance instanceById, String uids) { + BO bo = new BO();// BO_EU_PAL_SEND_LOG + bo.set("USREID", instanceById.getCreateUser()); + bo.set("TITLE", instanceById.getTitle()); + bo.set("SENDTIME", instanceById.getEndTime()); + bo.set("PROCESSID", instanceById.getId()); + bo.set("USERNAMES", uids); + bo.set("DEPID", UserContext.fromUID(uids).getDepartmentModel().getId()); + bo.set("POSTNAME", UserContext.fromUID(uids).getUserModel().getPositionName()); + bo.set("BUNAME", UserContext.fromUID(uids).getUserModel().getExt2()); + SDK.getBOAPI().createDataBO("BO_EU_PAL_SEND_LOG", bo, UserContext.fromUID("admin")); + } + + public void sendEHSQ(ProcessExecutionContext processExecutionContext, List bo_act_coe_publish_n) { + for (BO bo : bo_act_coe_publish_n) { + DownloadUtil downloadUtil = new DownloadUtil(); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + JSONArray jsonArray_EHSQ = new JSONArray(); + JSONObject jsonObject_ehsq = new JSONObject(new LinkedHashMap<>()); + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + String wsId = model.getWsId(); + String publishfileid = bo.getString("PUBLISHFILEID"); + LinkedHashMap downloadurl = downloadUtil.outputReportDownload( + UserContext.fromUID(processExecutionContext.getProcessInstance().getCreateUser()), + bo.getString("TASKID"), publishfileid); + jsonObject_ehsq.put("fileid", bo.getString("TASKID")); + String plName = bo.getString("PUBLISHFILENAME"); + jsonObject_ehsq.put("filename", bo.getString("PUBLISHFILENAME")); + String plNumer = bo.getString("PUBLISH_NUMBER"); + jsonObject_ehsq.put("filecode",bo.getString("PUBLISH_NUMBER")); + //jsonObject_ehsq.put("filecode", "123456"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(publishfileid); + jsonObject_ehsq.put("version", "V"+palRepositoryModel.getVersion()+""); + BO byProcess = SDK.getBOAPI().getByProcess("BO_ACT_COE_PUBLISH", processExecutionContext.getProcessInstance().getId()); + String cdeDate = byProcess.getString("CHOICEEFFECTIVEDATE"); + if("1".equals(cdeDate)) { + jsonObject_ehsq.put("releasedate", byProcess.getString("EFFECTIVEDATE")); + jsonObject_ehsq.put("effectivedate", byProcess.getString("EFFECTIVEDATE")); + }else { + jsonObject_ehsq.put("releasedate", simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("effectivedate", simpleDateFormat.format(new Date())); + } + jsonObject_ehsq.put("authorcode", processExecutionContext.getTaskInstance().getTarget()); // jsonObject_ehsq.put("authorcode","00116465"); + jsonObject_ehsq.put("authorname", + UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getUserName()); + // jsonObject_ehsq.put("authorname","毛鹏程"); + jsonObject_ehsq.put("companycode", UserContext + .fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getNo()); + // jsonObject_ehsq.put("companycode","00000013"); + jsonObject_ehsq.put("authorcompany", UserContext + .fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getName()); // jsonObject_ehsq.put("authorcompany","总部质量管理部"); + // // + BO bo1 = SDK.getBOAPI().query("BO_ACT_PUBLISH_PERM_SCOPE", true) + .addQuery("PALNAME=", bo.getString("PUBLISHFILENAME")).detail(); + if (bo1 != null) { + if (bo1.getString("PERMTYPE").equals("1")) { + jsonObject_ehsq.put("releasescope", "内蒙古伊利实业集团股份有限公司"); + } else { + + String departname = ""; + String orgperm = bo1.getString("ORGPERM"); + String dleass = ""; + String[] deptSplit = orgperm.split(","); + if (deptSplit.length == 1) { + dleass = "'" + deptSplit[0] + "'"; + } + dleass = "'" + StringUtils.join(deptSplit, "','") + "'"; + + List maps = DBSql + .getMaps("select DEPARTMENTNAME from ORGDEPARTMENT where ID in (" + dleass + ")"); + for (RowMap rowmas : maps) { + departname += rowmas.getString("DEPARTMENTNAME") + ";"; + } + if(UtilString.isNotEmpty(departname)&&departname.length()>500) { + String substring = departname.substring(0, 500); + departname = substring.substring(0,substring.lastIndexOf(";")); + } + jsonObject_ehsq.put("releasescope", departname); + + } + } + + //System.out.println("任务办理者>>>>>>>>>>>" + processExecutionContext.getTaskInstance().getTarget()); + String sessionId = new SSOUtil().registerClientSessionNoPassword( + processExecutionContext.getTaskInstance().getTarget(), LoginConst.DEFAULT_LANG, "localhost", + LoginConst.DEVICE_PC); + + //System.out.println("办理者的sessionid>>>>>>>>>>>" + sessionId); + String downurl = downloadUtil.getzipURL(sessionId, bo.getString("TASKID"), bo.getString("PUBLISHFILENAME")); + // jsonObject_ehsq.put("downloadurl","http://bpm.yili.com:8088/portal/r"+downurl.toString().substring(1)); + String recordfiles = ""; + String recordurls = ""; + Set keys = downloadurl.keySet(); + for (String key : keys) { + recordfiles += key + ";"; + String cent_url = downloadurl.get(key).substring(downloadurl.get(key).indexOf("/df"), + downloadurl.get(key).length()); + String fileDownurl = "http://bpm.yili.com:8088/portal/r" + cent_url; + recordurls += fileDownurl + ";"; + } + String new_name = ""; + String[] split = recordfiles.split(";"); + if (split.length > 0) { + + for (int i = 1; i < split.length; i++) { + new_name += split[i] + ";"; + } + } + + String new_url = ""; + String[] urls = recordurls.split(";"); + if (urls.length > 0) { + String loadurl = urls[0].replaceAll("&sid=null", "&sid=" + sessionId); + System.out.println("下载的地址是<<<<<<<<<<<<<<<<<<" + loadurl); + jsonObject_ehsq.put("downloadurl", loadurl); + for (int i = 1; i < urls.length; i++) { + String data_url = urls[i].replaceAll("&sid=null", "&sid=" + sessionId); + new_url += data_url + ";"; + } + } + jsonObject_ehsq.put("recordfiles", new_name); + jsonObject_ehsq.put("recordurls", new_url); + jsonArray_EHSQ.add(jsonObject_ehsq); + + Date date = new Date(); + SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + UserContext uc = processExecutionContext.getUserContext(); + String userName = uc.getUserName(); + try { + String sql = "SELECT ID FROM BO_EU_PAL_SEND_EHSQ_JOB WHERE PLID = '"+publishfileid+"' AND USERNAMES = '"+userName+"'"; + String id = DBSql.getString(sql); + String sendEHSQFile = SendEHSQFile(plName,jsonArray_EHSQ); + System.err.println("EHSQ流程发布推送结果====>"+processExecutionContext.getProcessInstance().getTitle()+"=========>"+sendEHSQFile); + if(UtilString.isNotEmpty(id)) { + BO bos = SDK.getBOAPI().get("BO_EU_PAL_SEND_EHSQ_JOB", id); + updateSendLog(bos,userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布推送", sendEHSQFile); + }else { + createSendLog(userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布推送", sendEHSQFile); + } + } catch (Exception e) { + String sql = "SELECT ID FROM BO_EU_PAL_SEND_EHSQ_JOB WHERE PLID = '"+publishfileid+"' AND USERNAMES = '"+userName+"'"; + String id = DBSql.getString(sql); + if(UtilString.isNotEmpty(id)) { + BO bos = SDK.getBOAPI().get("BO_EU_PAL_SEND_EHSQ_JOB", id); + updateSendLog(bos,userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布推送", e.getMessage()); + }else { + createSendLog(userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布推送", e.getMessage()); + } + } + + } + } + + public void createSendLog(String username,String userDempet,String plId,String plName,String plNumer,String sendTime,String sendType,String sendResult) { + BO bo = new BO(); + bo.set("PLID", plId); + bo.set("PLNAME", plName); + bo.set("PLNUMER", plNumer); + bo.set("SENDTIME", sendTime); + bo.set("SENDTYPE", sendType); + bo.set("SENDRESULT", sendResult); + bo.set("USERNAMES", username); + bo.set("USERDEMPET", userDempet); + SDK.getBOAPI().createDataBO("BO_EU_PAL_SEND_EHSQ_JOB", bo, UserContext.fromUID("admin")); + } + public void updateSendLog(BO bo,String username,String userDempet,String plId,String plName,String plNumer,String sendTime,String sendType,String sendResult) { + bo.set("PLNUMER", plNumer); + bo.set("SENDTIME", sendTime); + bo.set("SENDTYPE", sendType); + bo.set("SENDRESULT", sendResult); + SDK.getBOAPI().update("BO_EU_PAL_SEND_EHSQ_JOB", bo); + } + public void updateEHSQ(ProcessExecutionContext processExecutionContext, List bo_act_coe_publish_c) { + DownloadUtil downloadUtil = new DownloadUtil(); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + for (BO bo : bo_act_coe_publish_c) { + JSONArray jsonArray_EHSQ = new JSONArray(); + JSONObject jsonObject_ehsq = new JSONObject(new LinkedHashMap<>()); + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + String wsId = model.getWsId(); + String publishfileid = bo.getString("CHANGEDFILEIDNEW"); + LinkedHashMap downloadurl = downloadUtil.outputReportDownload( + UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()), bo.getString("TASKID"), + publishfileid); + jsonObject_ehsq.put("fileid", bo.getString("TASKID")); + String plName = bo.getString("CHANGEDFILENAMENEW"); + String plNumer = bo.getString("CHANGE_NUMBER"); + jsonObject_ehsq.put("filename", plName); + jsonObject_ehsq.put("filecode",plNumer); + //jsonObject_ehsq.put("filecode", "123456"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(publishfileid); + jsonObject_ehsq.put("version", "V"+palRepositoryModel.getVersion()+""); + BO byProcess = SDK.getBOAPI().getByProcess("BO_ACT_COE_PUBLISH", processExecutionContext.getProcessInstance().getId()); + String cdeDate = byProcess.getString("CHOICEEFFECTIVEDATE"); + if("1".equals(cdeDate)) { + jsonObject_ehsq.put("releasedate", byProcess.getString("EFFECTIVEDATE")); + jsonObject_ehsq.put("effectivedate", byProcess.getString("EFFECTIVEDATE")); + }else { + jsonObject_ehsq.put("releasedate", simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("effectivedate", simpleDateFormat.format(new Date())); + } + jsonObject_ehsq.put("authorcode", processExecutionContext.getTaskInstance().getTarget()); + jsonObject_ehsq.put("authorname", + UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getUserName()); + jsonObject_ehsq.put("companycode", UserContext + .fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getNo()); + jsonObject_ehsq.put("authorcompany", UserContext + .fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getName()); + BO bo1 = SDK.getBOAPI().query("BO_ACT_PUBLISH_PERM_SCOPE", true) + .addQuery("PALNAME=", bo.getString("CHANGEDFILENAMENEW")).detail(); + if (bo1 != null) { + if (bo1.getString("PERMTYPE").equals("1")) { + jsonObject_ehsq.put("releasescope", "内蒙古伊利实业集团股份有限公司"); + } else { + String departname = ""; + String orgperm = bo1.getString("ORGPERM"); + String dleass = ""; + String[] deptSplit = orgperm.split(","); + if (deptSplit.length == 1) { + dleass = "'" + deptSplit[0] + "'"; + } + dleass = "'" + StringUtils.join(deptSplit, "','") + "'"; + + List maps = DBSql + .getMaps("select DEPARTMENTNAME from ORGDEPARTMENT where ID in (" + dleass + ")"); + for (RowMap rowmas : maps) { + departname += rowmas.getString("DEPARTMENTNAME") + ";"; + } + if(UtilString.isNotEmpty(departname)&&departname.length()>500) { + String substring = departname.substring(0, 500); + departname = substring.substring(0,substring.lastIndexOf(";")); + } + jsonObject_ehsq.put("releasescope", departname); + + } + } + + String sessionId = new SSOUtil().registerClientSessionNoPassword( + processExecutionContext.getTaskInstance().getTarget(), LoginConst.DEFAULT_LANG, "localhost", + LoginConst.DEVICE_PC); + + String downurl = downloadUtil.getzipURL(sessionId, bo.getString("TASKID"), + bo.getString("CHANGEDFILENAMENEW")); + String recordfiles = ""; + String recordurls = ""; + Set keys = downloadurl.keySet(); + for (String key : keys) { + recordfiles += key + ";"; + String cent_url = downloadurl.get(key).substring(downloadurl.get(key).indexOf("/df"), + downloadurl.get(key).length()); + String fileDownurl = "http://bpm.yili.com:8088/portal/r" + cent_url; + recordurls += fileDownurl + ";"; + } + String new_name = ""; + String[] split = recordfiles.split(";"); + if (split.length > 0) { + + for (int i = 1; i < split.length; i++) { + new_name += split[i] + ";"; + } + } + + String new_url = ""; + String[] urls = recordurls.split(";"); + if (urls.length > 0) { + String loadurl = urls[0].replaceAll("&sid=null", "&sid=" + sessionId); + System.out.println("下载的地址是<<<<<<<<<<<<<<<<<<" + loadurl); + jsonObject_ehsq.put("downloadurl", loadurl); + for (int i = 1; i < urls.length; i++) { + String data_url = urls[i].replaceAll("&sid=null", "&sid=" + sessionId); + new_url += data_url + ";"; + } + } + jsonObject_ehsq.put("recordfiles", new_name); + jsonObject_ehsq.put("recordurls", new_url); + jsonArray_EHSQ.add(jsonObject_ehsq); + Date date = new Date(); + SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + UserContext uc = processExecutionContext.getUserContext(); + String userName = uc.getUserName(); + try { + String sql = "SELECT ID FROM BO_EU_PAL_SEND_EHSQ_JOB WHERE PLID = '"+publishfileid+"' AND USERNAMES = '"+userName+"'"; + String id = DBSql.getString(sql); + String sendEHSQFile = SendEHSQFile(plName,jsonArray_EHSQ); + System.err.println("EHSQ流程发布更新===>"+processExecutionContext.getProcessInstance().getTitle()+"==========>"+sendEHSQFile); + if(UtilString.isNotEmpty(id)) { + BO bos = SDK.getBOAPI().get("BO_EU_PAL_SEND_EHSQ_JOB", id); + updateSendLog(bos,userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布更新", sendEHSQFile); + }else { + createSendLog(userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布更新", sendEHSQFile); + } + } catch (Exception e) { + String sql = "SELECT ID FROM BO_EU_PAL_SEND_EHSQ_JOB WHERE PLID = '"+publishfileid+"' AND USERNAMES = '"+userName+"'"; + String id = DBSql.getString(sql); + if(UtilString.isNotEmpty(id)) { + BO bos = SDK.getBOAPI().get("BO_EU_PAL_SEND_EHSQ_JOB", id); + updateSendLog(bos,userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布更新", e.getMessage()); + }else { + createSendLog(userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布更新", e.getMessage()); + } + } + } + } + +} diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent_new.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent_new.java new file mode 100644 index 00000000..ea0a4de2 --- /dev/null +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/pubEvent/ProcessEndAfterEvent_new.java @@ -0,0 +1,1831 @@ +package com.actionsoft.apps.coe.pal.publisher.pubEvent; + +import java.sql.Timestamp; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; +import java.util.HashMap; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + +import org.apache.commons.lang.StringUtils; +import org.dom4j.Document; +import org.dom4j.DocumentException; +import org.dom4j.DocumentHelper; +import org.dom4j.Element; + +import com.actionsoft.apps.coe.pal.pal.output.constant.OutputConst; +import com.actionsoft.apps.coe.pal.pal.output.dao.OutputTask; +import com.actionsoft.apps.coe.pal.pal.output.extend.OutputAppManager; +import com.actionsoft.apps.coe.pal.pal.output.extend.OutputAppProfile; +import com.actionsoft.apps.coe.pal.pal.output.model.OutputTaskModel; +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.model.UpfileModel; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.web.UpfileWeb; +import com.actionsoft.apps.resource.plugin.profile.DCPluginProfile; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.bpmn.engine.core.delegate.ProcessExecutionContext; +import com.actionsoft.bpms.bpmn.engine.listener.ExecuteListener; +import com.actionsoft.bpms.bpmn.engine.listener.ExecuteListenerInterface; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.TaskInstance; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.login.constant.LoginConst; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.org.model.UserModel; +import com.actionsoft.bpms.server.SSOUtil; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.server.fs.DCContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.exception.AWSException; +import com.actionsoft.sdk.local.SDK; +import com.actionsoft.sdk.local.api.AppAPI; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; + +/** + * 流程结束后发送待阅数据 + * + * @author wangchengye + * @time 2022/11/4 + */ +@SuppressWarnings("all") +public class ProcessEndAfterEvent_new extends ExecuteListener implements ExecuteListenerInterface { + private String isSendEHSQ = SDK.getAppAPI().getProperty("com.actionsoft.apps.coe.pal.publisher", "isSendEHSQ"); + private String isSendOA = SDK.getAppAPI().getProperty("com.actionsoft.apps.coe.pal.publisher", "isSendOA"); + private String isSendKMS = SDK.getAppAPI().getProperty("com.actionsoft.apps.coe.pal.publisher", "isSendKMS"); + + @Override + public String getDescription() { + return "确认发布节点任务完成后推送OA/EHSQ/KMS"; + } + + @Override + public String getVersion() { + return "1.0"; + } + + @Override + public void execute(ProcessExecutionContext ext) throws Exception { + ExecutorService service = Executors.newFixedThreadPool(1); + service.execute(new Runnable() { + @Override + public void run() { + try { + ProcessData(ext); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + }); + } + + public void ProcessData(ProcessExecutionContext processExecutionContext) throws Exception { + System.err.println(processExecutionContext.getTaskInstance().getTitle() + "_推送文件开始========>"); + // http://localhost:8089/portal/r/or?cmd=com.hy_client_bpm_form_main_page_open&oauthName=oauthLogin&processInstId=3505e654-9217-41cd-a31d-4971846b3219 + /** + * 当流程不等于终止的时候往下走 + */ + if (!"terminate".equals(processExecutionContext.getProcessInstance().getControlState())) { + DownloadUtil downloadUtil = new DownloadUtil(); + String wsId = ""; + JSONArray filed = new JSONArray(new LinkedList<>()); + String portalUrl = SDK.getPortalAPI().getPortalUrl(); + // System.out.println("portal======>>>>" + portalUrl); + /* + * if (portalUrl.equals("http://10.114.11.135:8088/portal")){ portalUrl = + * "http://bpm.yili.com:8088/portal/"; } + */ + try { + + String url = portalUrl + "/r/or?cmd=com.yili_process_page&oauthName=oauthLogin&processInstId=" + + processExecutionContext.getProcessInstance().getId() + "&taskInstId=" + + processExecutionContext.getTaskInstance().getId(); + String mobileurl = "https://bpm.yili.com:8088/portal" + + "/r/or?cmd=com.yili_process_page_phone&corpid=wwb0ae23173b140618&appAgentId=1000014&oauthName=wechat&processInstId=" + + processExecutionContext.getProcessInstance().getId() + "&taskInstId=" + + processExecutionContext.getTaskInstance().getId(); + + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Timestamp endTime = processExecutionContext.getProcessInstance().getStartTime(); + BO boActCoePublish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true) + .addQuery("BINDID=", processExecutionContext.getProcessInstance().getId()) + .addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + + // ProcessExecutionContext processExecutionContext,String fileCreateName,String + // fileName,String fileurl,String readingScope_org,String isFullCompany,String + // fileCreateDate,String relationProcessinstId,String readingScope_post,String + // readingScope_level,String fileid + String not_url = "/w?cmd=com.yili_process_page&processInstId=" + + processExecutionContext.getProcessInstance().getId() + "&taskInstId=" + + processExecutionContext.getTaskInstance().getId(); + execute(processExecutionContext, boActCoePublish.getString("APPLYUSERNAME"), + boActCoePublish.getString("PROCESS_TITLE"), not_url, + boActCoePublish.getString("SEND_SCOPE_ORG"), boActCoePublish.getString("SEND_SCOP"), + boActCoePublish.getString("APPLYDATE"), processExecutionContext.getProcessInstance().getId(), + boActCoePublish.getString("SEND_SCOPE_POST"), boActCoePublish.getString("SEND_SCOPE_LEVEL"), + "1"); + + JSONObject jsonObject = new JSONObject(new LinkedHashMap()); + jsonObject.put("action", "read"); + jsonObject.put("title", " " + "" + boActCoePublish.getString("PROCESS_TITLE") + ""); + jsonObject.put("dept", SDK.getORGAPI() + .getDepartmentByUser(processExecutionContext.getTaskInstance().getTarget()).getNo());// SDK.getORGAPI().getDepartmentByUser(processExecutionContext.getProcessInstance().getCreateUser()).getNo() + String target = processExecutionContext.getTaskInstance().getTarget(); + target = processExecutionContext.getTaskInstance().getTarget(); + jsonObject.put("user", target); + // jsonObject.put("user",);//processExecutionContext.getProcessInstance().getCreateUser() + jsonObject.put("date", sdf.format(endTime)); + jsonObject.put("remark", boActCoePublish.getString("PROCESS_TITLE")); + jsonObject.put("status", "0"); + jsonObject.put("dataid", processExecutionContext.getProcessInstance().getId()); + jsonObject.put("pcurl", url); + jsonObject.put("mobileurl", mobileurl); + // list.add(1,"00352394"); + // list.add(2,"00352394"); + BO bo_act_coe_publish1 = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true) + .addQuery("BINDID=", processExecutionContext.getProcessInstance().getId()) + .addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + String crateUserId = target; + String new_uid = ""; + + BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true) + .addQuery("BINDID=", processExecutionContext.getProcessInstance().getId()) + .addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + // 流程发布的新增发布 + List bo_act_coe_publish_n = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N", true) + .addQuery("BINDID=", processExecutionContext.getProcessInstance().getId()).list(); + List bo_act_coe_publish_c = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_C", true) + .addQuery("BINDID=", processExecutionContext.getProcessInstance().getId()).list(); + List bo_act_coe_publish_s = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_S", true) + .addQuery("BINDID=", processExecutionContext.getProcessInstance().getId()).list(); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + + JSONArray jsonArray = new JSONArray(); + /** + * 推送到知识库 + */ + if ("true".equals(isSendKMS)) { + try { + // 发布到知识库 + int m = 0; + for (BO bo : bo_act_coe_publish_n) { + createKmsByNew(bo, wsId, filed, processExecutionContext, bo_act_coe_publish, crateUserId); + } + // 更新知识库 + for (BO bo : bo_act_coe_publish_c) { + CreateKmsByupdate(bo, wsId, filed, processExecutionContext, bo_act_coe_publish, + crateUserId); + } + + // 废止知识库文件 + for (BO bo : bo_act_coe_publish_s) { + // 将旧的知识取消发布或者移动到废止发布中 + String publishfileid_stop = bo.getString("STOPFILEID"); + filed.add(publishfileid_stop); + String sql_s = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid_stop + + "'"; + RowMap map1 = DBSql.getMap(sql_s); + if (StringUtils.isNotEmpty(map1.getString("EXT4"))) { + CancelPublishKnwl(processExecutionContext, + processExecutionContext.getUserContext().getSessionId(), + map1.getString("EXT4")); + + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '' WHERE ID = '" + + publishfileid_stop + "'"); + } + } + } catch (Exception e) { + // TODO: handle exception + } + } + + /** + * 同步PAL文件表文件版本标识,用于部门视图 + */ + if(bo_act_coe_publish_n.size()>0) { + for (BO bo : bo_act_coe_publish_n) { + try { + String fileId = bo.getString("PUBLISHFILEID"); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '1' WHERE ID = '"+fileId+"'"); + } catch (Exception e) { + } + } + } + if(bo_act_coe_publish_c.size()>0) { + for (BO bo : bo_act_coe_publish_c) { + try { + String changefileId = bo.getString("CHANGEFILEID"); + String changefileIdNew = bo.getString("CHANGEDFILEIDNEW"); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '0' WHERE ID = '"+changefileId+"'"); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '1' WHERE ID = '"+changefileIdNew+"'"); + } catch (Exception e) { + } + } + } + + if(bo_act_coe_publish_s.size()>0) { + for (BO bo : bo_act_coe_publish_s) { + try { + String fileId = bo.getString("STOPFILEID"); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '0' WHERE ID = '"+fileId+"'"); + } catch (Exception e) { + } + } + } + /** + * 推送到EHSQ + */ + boolean sendEhqs = true; + String depId = processExecutionContext.getUserContext().getDepartmentModel().getId(); + //获取EHSQ配置表判断是否发送 + String sql = "SELECT * FROM BO_ACT_ACT_ESQ_SEND"; + List maps = DBSql.getMaps(sql); + for (RowMap rowMap : maps) { + String dempet = rowMap.getString("DEMPET"); + String issend = rowMap.getString("ISSEND"); + DepartmentModel departmentById = SDK.getORGAPI().getDepartmentById(dempet); + if(departmentById!=null) { + String departemenId = departmentById.getId(); + if(departemenId.equals(depId)&&"是".equals(issend)) { + sendEhqs = true; + } /* + * else { List subDepartments = + * SDK.getORGAPI().getSubDepartments(departmentById.getId()); for + * (DepartmentModel departmentModel : subDepartments) { String subDeartmentId = + * departmentModel.getId(); if(subDeartmentId.equals(depId)&&"是".equals(issend)) + * { sendEhqs = true; } } + * + * } + */ + } + } + if(!sendEhqs) { + System.err.println("本次发文不推送EHSQ====>"+processExecutionContext.getProcessInstance().getTitle()); + } + if ("true".equals(isSendEHSQ)&&sendEhqs) { + try { + // 推送EHSQ + if(bo_act_coe_publish_n.size()>0) { + sendEHSQ(processExecutionContext, bo_act_coe_publish_n); + } + // 更新EHSQ + if(bo_act_coe_publish_c.size()>0) { + updateEHSQ(processExecutionContext, bo_act_coe_publish_c); + } + } catch (Exception e) { + // TODO: handle exception + } + } + /** + * 更新数据看板底表 + */ + try { + AttrSynAslp(processExecutionContext, wsId, filed); + } catch (Exception e) { + } + + /** + * 推送待阅文件到OA + */ + if ("true".equals(isSendOA)) { + ProcessInstance instanceById = processExecutionContext.getProcessInstance(); + if (bo_act_coe_publish1 != null && instanceById != null) { + System.err.println(instanceById.getTitle() + "推送OA待阅执行开始====>"); + long startTime = System.currentTimeMillis(); + ArrayList sendList = new ArrayList(); + // 发送全集团 + if ("1".equals(bo_act_coe_publish1.getString("SEND_SCOP"))) { + // 系统人员 + ArrayList userList1 = new ArrayList(); + try { + userList1 = getUser(jsonObject, "5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe", "0", + instanceById.getId()); + } catch (Exception e) { + // TODO: handle exception + } + //System.err.println("系统人员=====>" + userList1); + // 项目开发人员 + ArrayList userList2 = new ArrayList(); + try { + userList2 = getUser(jsonObject, "e79281b1-2f81-4895-b30e-9f96e9ad0e2c", "0", + instanceById.getId()); + } catch (Exception e) { + // TODO: handle exception + } + //System.err.println("项目开发人员=====>" + userList2); + // 离退人员 + ArrayList userList3 = new ArrayList(); + try { + userList3 = getUser(jsonObject, "65048aee-157f-49f2-a2dc-5903dd26f519", "0", + instanceById.getId()); + } catch (Exception e) { + // TODO: handle exception + } + //System.err.println("离退人员=====>" + userList3); + List mapsl = DBSql.getMaps("SELECT * FROM ORGUSER WHERE CLOSED = '0'"); + for (RowMap rowMap : mapsl) { + String userId = rowMap.getString("USERID"); + // RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '" + // + instanceById.getId() + "' AND USER_ID = '" + userId + "'"); + if (!"10033643".equals(userId) && !userList1.contains(userId) + && !userList2.contains(userId) && !userList3.contains(userId)) { + sendList.add(userId); + } + } + } else { + // 发送组织岗位职级 + sendList = getSendList(instanceById, bo_act_coe_publish1, jsonObject); + + } + + + long countTime = System.currentTimeMillis(); + System.err.println(instanceById.getTitle() + "待发送人员数量====>" + sendList.size() + " 计算用时===>" + + (countTime - startTime) + "毫秒"); + + /* + * for (String user : sendList) { try { SendOARead(jsonObject, instanceById, + * user, "批量推送"); } catch (Exception e) { // TODO: handle exception } } + */ + + + int toIndex = 300; + int listSize = sendList.size(); + boolean shutdown = false; + for (int i = 0; i < sendList.size(); i += 300) { + if (i + 300 > listSize) { + toIndex = listSize - i; + } + List idList = sendList.subList(i, i + toIndex); + try { + SendOARead(jsonObject, instanceById, idList, "批量推送"); + } catch (Exception e) { + // TODO: handle exception + } + + /* + * ExecutorService cachedThreadPool = Executors.newFixedThreadPool(3); // 开启一个线程 + * cachedThreadPool.execute(new Runnable() { + * + * @Override public void run() { try { } catch (DocumentException e) { // TODO + * Auto-generated catch block e.printStackTrace(); } + * + * } }); + */ + // 以下是等线程池的全部线程执行结束后,会自动执行。 + /* + * cachedThreadPool.shutdown(); while (true) { if + * (cachedThreadPool.isTerminated()) { long time = System.currentTimeMillis() - + * startTime; //System.out.println("程序结束了,总耗时:" + time + " ms(毫秒)!\n"+toIndex); + * break; } } + */ + + } + + // 二次推送 + + List List = DBSql.getMaps("SELECT NAME FROM BO_EU_READ_COUNT WHERE PROCESSID = '" + + instanceById.getId() + "' AND RESULT = '待处理'"); + if (List.size() != 0) { + System.err.println(instanceById.getTitle() + "批量推送失败后执行二次推送=======>" + List.size()); + for (RowMap rowMap : List) { + try { + ArrayList userList3 = new ArrayList(); + userList3.add(rowMap.getString("NAME")); + System.err.println(instanceById.getTitle() + "二次推送账号=======>" + userList3); + SendOARead(jsonObject, instanceById, userList3, "单个账号推送"); + } catch (Exception e) { // TODO: handle exception + } + } + } + + long endTimes = System.currentTimeMillis(); + // 存入日志 + createReadLog(processExecutionContext, jsonObject, sendList, startTime, endTimes); + System.err.println(instanceById.getTitle() + "推送OA待阅执行完毕====>" + "用时:" + + (endTimes - startTime) / 1000 / 60 + "分钟"); + } + + } + + + + + } catch (Exception e) { + e.printStackTrace(); + } finally { + } + } + } + + /** + * 创建附件及文件 + * + * @param processExecutionContext + * @param bo_name + * @param userContext + * @param cardId + * @param fileid + */ + public void creadteFile(ProcessExecutionContext processExecutionContext, String bo_name, UserContext userContext, + String cardId, String fileid) { + /** + * 这个主要是负责对流程手册进行相关的文件的生成 + */ + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); +// aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/CreateFile"; + + if (StringUtils.isNotEmpty(cardId)) { + String sql_ext4 = "select * from APP_ACT_COE_PAL_REPOSITORY where EXT4 = '" + cardId + "'"; + RowMap map = DBSql.getMap(sql_ext4); + System.out.println("maps======>>>>>>>" + map); + System.out.println("fileid==》》》》" + fileid); + System.out.println("id==》》》》" + map.getString("ID")); + RowMap rowMap = DBSql + .getMap("SELECT * FROM " + bo_name + " where " + fileid + " '" + map.getString("ID") + "'"); + // BO bos = + // SDK.getBOAPI().query(bo_name,true).addQuery(fileid,"17e7d198-1656-4a2c-8912-a81850170be9").detail(); + if (rowMap != null) { + + if (StringUtils.isNotEmpty(rowMap.getString("TASKID"))) { + + OutputTaskModel model = new OutputTask().getTaskReportById(rowMap.getString("TASKID")); + if (model != null) { + // System.out.println(",pdel============" + model); + OutputAppProfile appProfile = OutputAppManager.getProfile(model.getProfileId()); + if (appProfile == null) { + throw new AWSException("Not Find OutputAppProfile! profileId=" + model.getProfileId()); + } + DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), + OutputConst.EXT_APP_DC_OUTPUT); + if (dcProfile == null) + throw new AWSException( + "Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT); + String sql_lever = ""; + if (bo_name.equals("BO_ACT_COE_PUBLISH_N")) { + sql_lever = "SELECT PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID = '" + + rowMap.getString("PUBLISHFILEID") + "'"; + + } else if (bo_name.equals("BO_ACT_COE_PUBLISH_C")) { + sql_lever = "SELECT PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID = '" + + rowMap.getString("CHANGEDFILEIDNEW") + "'"; + } + String lever = DBSql.getString(sql_lever); + System.out.println("版本号::::::::::::" + lever); + // lever = lever.substring(0,3); + if (lever.length() == 5 && lever.substring(4).equals("0")) { + lever.substring(0, 3); + } else if (lever.length() == 1) { + lever = lever + ".0"; + } + String filename = ""; + if (bo_name.equals("BO_ACT_COE_PUBLISH_N")) { + filename = rowMap.getString("PUBLISHFILENAME"); + } else if (bo_name.equals("BO_ACT_COE_PUBLISH_C")) { + filename = rowMap.getString("CHANGEDFILENAMENEW"); + } + DCContext dcContext = new DCContext(userContext, dcProfile, appProfile.getAppContext().getId(), + model.getWsId(), rowMap.getString("TASKID"), filename + "_" + lever + ".doc"); + // UtilFile file = new UtilFile(dcContext.getPath()); + + Map params = new HashMap(); +//知识ID,必填 + params.put("cardId", cardId); +//sid,必填 + params.put("sid", userContext.getSessionId()); + + params.put("dc", dcContext); + AppAPI appAPI = SDK.getAppAPI(); +//创建文件 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("流程手册的存入=================" + ro); + } + } + + } + String sql_A = "SELECT PLNAME FROM APP_ACT_COE_PAL_REPOSITORY where ID = '" + map.getString("ID") + + "' AND PLMETHODID != 'process.framework' AND PLMETHODID IN (select distinct PLMETHODID from APP_ACT_COE_PAL_REPOSITORY)"; + List rows = DBSql.getMaps(sql_A); + + for (RowMap bo : rows) { + + /** + * 这个是模型中的附件获取的并插入的数据信息,需要做修改 + */ + // 调用App + +// 参数定义列表 + Map paramss = new HashMap(); +//知识ID,必填 + paramss.put("cardId", cardId); +//sid,必填 + paramss.put("sid", userContext.getSessionId()); + + UpfileWeb upfileWeb = new UpfileWeb(userContext); + + String sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where PLMETHODID != 'process.framework' AND ID= '" + + map.getString("ID") + "'" + ") ORDER BY FILENAME ASC"; + List maps = DBSql.getMaps(sql_upfile); + for (RowMap row : maps) { + if (!row.getString("FILENAME").contains(".xml")) { + UpfileModel upfileModel = new UpfileModel(); + upfileModel.setType(row.getString("FILETYPE")); + upfileModel.setFileName(row.getString("FILENAME")); + upfileModel.setPl_uuid(row.getString("PALREPOSITORYID")); + upfileModel.setShape_uuid(row.getString("SHAPEID")); + DCContext dcContexts = upfileWeb.getDCContext(upfileModel); + paramss.put("dc", dcContexts); + AppAPI appAPIs = SDK.getAppAPI(); + ResponseObject ros = appAPIs.callASLP(appAPIs.getAppContext(sourceAppId), aslp, paramss); + } + } + } + try { + + PublishKnow(processExecutionContext, userContext, cardId); + } catch (Exception e) { + e.printStackTrace(); + } + } + } + + /** + * 发布知识 + * + * @param processExecutionContext + * @param userContext + * @param id + */ + public void PublishKnow(ProcessExecutionContext processExecutionContext, UserContext userContext, String id) { + + String sql = "select EXT4 from APP_ACT_COE_PAL_REPOSITORY where id in (select PLPARENTID from APP_ACT_COE_PAL_REPOSITORY where EXT4 = '" + + id + "')"; + List maps = DBSql.getMaps(sql); + String ids = ""; + for (RowMap rowmap : maps) { + ids += rowmap.getString("EXT4") + ","; + } + String[] deptSplit_id = ids.split(","); + + JSONArray jsonArray = new JSONArray(); + for (String id_names : deptSplit_id) { + jsonArray.add(id_names); + } + // jsonObject.put(deptSplit_id); + id += ","; + String[] deptSplit_das = id.split(","); + JSONArray jsonArray_das = new JSONArray(); + for (String das : deptSplit_das) { + jsonArray_das.add(das); + } + // jsonObject.put(deptSplit_id); + + if (!jsonArray_das.isEmpty() && !jsonArray.isEmpty()) { + + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/PublishKnwl"; + // 参数定义列表 + Map params = new HashMap(); + // 要发布到的维度ID的JSON数组字符串,必填 + params.put("dimensionIDArray", jsonArray.toString()); + // 要发布的知识ID的JSON数组字符串,必填 + params.put("knwlIDArray", jsonArray_das.toString()); + // 标签的JSON数组字符串,非必填 + + // sid,必填 + params.put("sid", userContext.getSessionId()); + AppAPI appAPI = SDK.getAppAPI(); + // 发布知识 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + + System.out.println("知识发布============" + ro); + + } + + } + + /** + * 取消发布知识 + * + * @param processExecutionContext + * @param sid + * @param knwlId + * @return + */ + public boolean CancelPublishKnwl(ProcessExecutionContext processExecutionContext, String sid, String knwlId) { + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/CancelPublishKnwl"; + // 参数定义列表 + Map params = new HashMap(); + // sid,如果为空,则需要传createUser参数,非必填 + params.put("sid", sid); + // 知识ID,必填 + params.put("knwlId", knwlId); + AppAPI appAPI = SDK.getAppAPI(); + // 取消发布知识(全部维度) + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("取消发布的ro=====>>>>" + ro); + return ro.isOk(); + } + + /** + * 创建XPage页面上的待阅文件 + * + * @param processExecutionContext + * @param fileCreateName + * @param fileName + * @param fileurl + * @param readingScope_org + * @param isFullCompany + * @param fileCreateDate + * @param relationProcessinstId + * @param readingScope_post + * @param readingScope_level + * @param fileid + * @return + */ + public boolean execute(ProcessExecutionContext processExecutionContext, String fileCreateName, String fileName, + String fileurl, String readingScope_org, String isFullCompany, String fileCreateDate, + String relationProcessinstId, String readingScope_post, String readingScope_level, String fileid) { + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.awspaas.user.apps.docview/PushFileToXpage"; + // 参数定义列表 + Map params = new HashMap(); + // 发布人,不允许空值,必填 + params.put("fileCreateName", fileCreateName); + // 待阅文件标题名称,不允许空值,必填 + params.put("fileName", fileName); + // 阅读范围_组织,不允许空值,非必填 + params.put("readingScope_org", readingScope_org); + // 是否全公司可见,不允许空值,必填 + params.put("isFullCompany", isFullCompany); + // 待阅文件Url,不允许空值,必填 + params.put("fileurl", fileurl); + // 发布日期,不允许空值,必填 + params.put("fileCreateDate", fileCreateDate); + // 发布流程ID,不允许空值,必填 + params.put("relationProcessinstId", relationProcessinstId); + // 阅读范围_岗位,不允许空值,非必填 + params.put("readingScope_post", readingScope_post); + // 阅读范围_职级,不允许空值,非必填 + params.put("readingScope_level", readingScope_level); + // 待阅文件ID,多个逗号隔开,不允许空值,必填 + params.put("fileid", fileid); + AppAPI appAPI = SDK.getAppAPI(); + // 推送待阅文件到xpage门户 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("ros++++++++=====待阅》》》》》》》》》》" + ro); + return ro.isOk(); + } + + /** + * 给知识授权 + * + * @param processExecutionContext + * @param jsonArray + * @param sid + * @param knwlId + * @return + */ + public boolean AddKnwlAC(ProcessExecutionContext processExecutionContext, JSONArray jsonArray, String sid, + String knwlId) { + + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/AddKnwlAC"; + // 参数定义列表 + Map params = new HashMap(); + // [{"assignmentType":"department","assignmentId":"62196ff9-a26d-4be5-9480-3ef680886f63"},{"assignmentType":"user","assignmentId":"user1"}],必填 + params.put("acList", jsonArray); + // sid,如果为空,则需要传createUser参数,非必填 + params.put("sid", sid); + // 知识ID,必填 + params.put("knwlId", knwlId); + AppAPI appAPI = SDK.getAppAPI(); + // 给知识授权 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + return ro.isOk(); + } + + /** + * 柱军的ASLP + * + * @param processExecutionContext + * @param wsId + * @param fileId + * @return + */ + public boolean AttrSynAslp(ProcessExecutionContext processExecutionContext, String wsId, JSONArray fileId) { + System.out.println(""); + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.awspaas.user.apps.yili.reportform/AttrSynAslp"; + // 参数定义列表 + Map params = new HashMap(); + // 资产内容库id,必填 + params.put("wsId", wsId); + // 文件id;json数组[id1,id2,id3],必填 + params.put("fileId", fileId); + AppAPI appAPI = SDK.getAppAPI(); + // 增量同步数据 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("同步数据看板底表结果>>>>>>>>>>>>>" + ro); + return ro.isOk(); + } + + /** + * 发送OA待阅数据 + * + * @param jsonObject + * @param processInstance + * @param results + * @throws DocumentException + */ + public void SendOARead(JSONObject jsonObject, ProcessInstance processInstance, List idList,String type) + throws DocumentException { + + String processInstId = processInstance.getId(); + // System.err.println(processInstance.getTitle() + "开始发送:" + userId); + + /* + * if ("".equals(userId) || UtilString.isEmpty(userId)) { return; } + */ + if (idList.size() == 0) { + return; + } + String userIds = StringUtils.join(idList, ","); + jsonObject.put("userList", userIds); + String xmlStr = "\n" + + " " + " " + " " + " " + + "" + " " + " " + + " " + ""; + // System.out.println("xmlStr>>>>>>>>" + xmlStr); + String readurl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "readurl"); + String postSoap = UtilUrl.doPostSoap(readurl, xmlStr, ""); + Document document = DocumentHelper.parseText(postSoap); + Element rootElement = document.getRootElement(); + // System.out.println("rootElement>>>>>>" + rootElement); + Element result = rootElement.element("Body").element("serviceResponse").element("out"); + String resultString = result.getData().toString(); + JSONObject jsonObject1 = JSON.parseObject(resultString); + String datas = jsonObject1.getString("data"); + String status = jsonObject1.getString("status"); + // System.out.println("推送》》》》》》》》》》》" + status); + if ("true".equals(status)) { + JSONArray resultArray = JSONObject.parseArray(datas); + //System.out.println(processInstance.getTitle() + "待阅推送成功:" + idList.size()+"人"); + for (int j = 0; j < resultArray.size(); j++) { + JSONObject jsonObject2 = resultArray.getJSONObject(j); + String user = jsonObject2.get("user").toString(); + String dataid = jsonObject2.get("dataid").toString(); + BO bo = new BO(); + bo.set("TITLE", processInstance.getTitle()); + bo.set("PROCESSID", processInstance.getId()); + bo.set("USER_ID", user); + bo.set("USERDEP", SDK.getORGAPI().getUser(user).getDepartmentId()); + bo.set("DATAID", dataid); + bo.set("RESULT", status); + bo.set("SENDTYPE", "1"); + bo.set("READSTATE", "未读"); + bo.set("TYPE", type); + SDK.getBOAPI().create("BO_ACT_DATAID", bo, processInstance.getId(), processInstance.getCreateUser()); + } + if("单个账号推送".equals(type)) { + DBSql.update("UPDATE BO_EU_READ_COUNT SET RESULT = '已重新推送' WHERE PROCESSID = '"+processInstId+"' AND NAME = '"+userIds+"'"); + } + } else { + for (String userId : idList) { + System.out.println(processInstance.getTitle() + "待阅推送失败:" + userId); + try { + BO bo = new BO(); + bo.set("TITLE", processInstance.getTitle()); + bo.set("NAME", userId); + bo.set("TYPE", type); + bo.set("RESULT", "待处理"); + bo.set("PROCESSID", processInstId); + bo.set("DEPNAME", SDK.getORGAPI().getUser(userId).getDepartmentId()); + SDK.getBOAPI().create("BO_EU_READ_COUNT", bo, processInstance.getId(), processInstance.getCreateUser()); + } catch (Exception e) { + System.out.println(processInstance.getTitle() + "待阅推送失败:" + userIds); + BO bo = new BO(); + bo.set("TITLE", processInstance.getTitle()); + bo.set("NAME", userIds); + bo.set("TYPE", type); + bo.set("RESULT", "待处理"); + bo.set("PROCESSID", processInstId); + bo.set("DEPNAME", SDK.getORGAPI().getUser(userIds).getDepartmentId()); + SDK.getBOAPI().create("BO_EU_READ_COUNT", bo, processInstance.getId(), processInstance.getCreateUser()); + } + } + + + } + } + + /** + * 发送EHSQ数据 + * + * @param jsonArray + * @return + * @throws Exception + */ + public String SendEHSQFile(String plName,JSONArray jsonArray) throws Exception { + /** + * 首先需要将传过来的参数进行加密操作,并设置 + */ + AesUtil aesUtil = new AesUtil(); + String system = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "system"); + String AES = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "AES"); + String EHSQUrl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "EHSQUrl"); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + String date = sdf.format(new Date()); + String s1 = date.replaceAll("-", "").replaceAll(" ", "").replaceAll(":", ""); + + //System.out.println("时间>>>>>>>>>>>>" + s1); + String data = system + "##" + s1; + String encrypt = aesUtil.encrypt(data, AES); // 获取加密之后的秘钥 + JSONObject jsonObject = new JSONObject(new LinkedHashMap<>()); + jsonObject.put("system", system); + jsonObject.put("token", encrypt); + jsonObject.put("infos", jsonArray); + HttpUtil httpUtil = new HttpUtil(); + //System.out.println(plName+"发送EHSQ参数>>>>>" + jsonObject); + String s = httpUtil.sendPost(jsonObject, EHSQUrl); + //System.out.println(plName+"发送EHSQ结果>>>>>" + s); + + return s; + } + + public ArrayList getSendList(ProcessInstance instanceById, BO bo_act_coe_publish1, JSONObject jsonObject) { + String sendType = bo_act_coe_publish1.getString("SEND_SCOP"); + String org = bo_act_coe_publish1.getString("SEND_SCOPE_ORG"); + String post = bo_act_coe_publish1.getString("SEND_SCOPE_POST"); + String level = bo_act_coe_publish1.getString("SEND_SCOPE_LEVEL"); + ArrayList userList = new ArrayList<>(); + if ("1".equals(sendType)) { + //System.err.println("发送全集团=====>" + instanceById.getTitle()); + userList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, sendType); + + } else { + /** + * 先组织和职级取交集,然后再和岗位取并集 + */ + if (UtilString.isNotEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isNotEmpty(level)) { + //System.err.println("发送组织/岗位/职级=====>" + instanceById.getTitle()); + ArrayList sendOrgList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, + sendType); + ArrayList sendLevel = sendLevel(level, sendOrgList, instanceById, bo_act_coe_publish1, jsonObject); + userList = sendPost(post, sendLevel, instanceById, bo_act_coe_publish1, + jsonObject); + } + // 如果职级为空,组织/岗位取并集 + if (UtilString.isNotEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isEmpty(level)) { + //System.err.println("发送组织/岗位=====>" + instanceById.getTitle()); + ArrayList sendOrgList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, + sendType); + userList = sendPost(post, sendOrgList, instanceById, bo_act_coe_publish1, jsonObject); + } + // 如果岗位为空,组织/职级取交集 + if (UtilString.isNotEmpty(org) && UtilString.isEmpty(post) && UtilString.isNotEmpty(level)) { + //System.err.println("发送组织/职级=====>" + instanceById.getTitle()); + ArrayList sendOrgList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, + sendType); + userList = sendLevel(level, sendOrgList, instanceById, bo_act_coe_publish1, jsonObject); + } + + /** + * 组织为空 岗位和职级取并集 + */ + if (UtilString.isEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isNotEmpty(level)) { + //System.err.println("发送岗位/职级=====>" + instanceById.getTitle()); + ArrayList sendLevel2 = sendLevel2(level, userList, instanceById, bo_act_coe_publish1, jsonObject); + userList = sendPost(post, sendLevel2, instanceById, bo_act_coe_publish1, + jsonObject); + } + // 如果只有组织不为空 + if (UtilString.isNotEmpty(org) && UtilString.isEmpty(post) && UtilString.isEmpty(level)) { + //System.err.println("发送组织=====>" + instanceById.getTitle()); + userList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, sendType); + } + // 如果只有岗位不为空 + if (UtilString.isEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isEmpty(level)) { + //System.err.println("发送岗位=====>" + instanceById.getTitle()); + userList = sendPost(post, userList, instanceById, bo_act_coe_publish1, jsonObject); + } + // 如果只有职级不为空 + if (UtilString.isEmpty(org) && UtilString.isEmpty(post) && UtilString.isNotEmpty(level)) { + //System.err.println("发送职级=====>" + instanceById.getTitle()); + userList = sendLevel2(level, userList, instanceById, bo_act_coe_publish1, jsonObject); + } + + } + + return userList; + + } + + // 发送组织 + public ArrayList sendOrg(String org, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject, String sendType) { + String processid = instanceById.getId(); + // 获取组织 + if (StringUtils.isNotEmpty(org) || "1".equals(sendType)) { + long startTime = System.currentTimeMillis(); + userList = getUser(jsonObject, org, sendType, processid); + long endTimes = System.currentTimeMillis(); + // System.out.println(instanceById.getTitle()+"_根据部门获取人员用时===>"+(endTimes-startTime)/1000); + } + + return userList; + } + + // 发送岗位 + public ArrayList sendPost(String post, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject) { + String processid = instanceById.getId(); + // 获取岗位 + if (StringUtils.isNotEmpty(post)) { + String posts[] = post.split(","); + // 取并集 + String postss = ""; + if (posts.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + postss = "'" + posts[0] + "'"; + } else { + postss = "'" + StringUtils.join(posts, "','") + "'"; + } + String sql = "select * from ORGUSER where POSITION_NO in (" + postss + ") and userno is not null"; + List maps1 = DBSql.getMaps(sql); + for (RowMap rowMap : maps1) { + String userId = rowMap.getString("USERID"); + if (!userList.contains(userId)) { + boolean closed = SDK.getORGAPI().getUser(userId).isClosed(); + if(!closed) { + userList.add(userId); + } + } + + } + } + + return userList; + } + + // 发送职级 + public ArrayList sendLevel(String level, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject) { + String processid = instanceById.getId(); + ArrayList userList_level = new ArrayList(); + // 获取职级 + if (StringUtils.isNotEmpty(level)) { + String ranks[] = level.split(","); + String rankss = ""; + if (ranks.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + rankss = "'" + ranks[0] + "'"; + } else { + rankss = "'" + StringUtils.join(ranks, "','") + "'"; + } + // 取交集 + String sql2 = "select * from ORGUSER where EXT2 in (" + rankss + ") and userno is not null"; + List maps2 = DBSql.getMaps(sql2); + for (RowMap rowMap : maps2) { + String userId = rowMap.getString("USERID"); + if (userList.contains(userId)) { + boolean closed = SDK.getORGAPI().getUser(userId).isClosed(); + if(!closed) { + userList_level.add(userId); + } + } + + } + } + + return userList_level; + } + + // 只发送职级 + public ArrayList sendLevel2(String level, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject) { + String processid = instanceById.getId(); + ArrayList userList_level = new ArrayList(); + // 获取职级 + if (StringUtils.isNotEmpty(level)) { + String ranks[] = level.split(","); + String rankss = ""; + if (ranks.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + rankss = "'" + ranks[0] + "'"; + } else { + rankss = "'" + StringUtils.join(ranks, "','") + "'"; + } + // 取交集 + String sql2 = "select * from ORGUSER where EXT2 in (" + rankss + ") and userno is not null"; + List maps2 = DBSql.getMaps(sql2); + for (RowMap rowMap : maps2) { + String userId = rowMap.getString("USERID"); + boolean closed = SDK.getORGAPI().getUser(userId).isClosed(); + if(!closed) { + userList_level.add(userId); + } + } + } + return userList_level; + } + + /** + * 根据部门id获取当前部门以及下级部门的人员信息 + * + * @param processid + * @return + */ + + public ArrayList getUser(JSONObject jsonObject, String depIds, String sendType, String processid) { + ArrayList arr = new ArrayList(); + ArrayList arr_test = new ArrayList(); + // 全集团 + if ("1".equals(sendType)) { + List departmentsByCompanyId = SDK.getORGAPI().getDepartmentsByCompanyId(1, + "8911e732-b42a-4556-853f-ad32761bcbee"); + for (DepartmentModel departmentModel : departmentsByCompanyId) { + String id = departmentModel.getId(); + // 查询未注销的部门并且去掉系统部门 + if (!departmentModel.isClosed() && !"5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe".equals(id) + && !"e79281b1-2f81-4895-b30e-9f96e9ad0e2c".equals(id) + && !"65048aee-157f-49f2-a2dc-5903dd26f519".equals(id)) { + getUserList(jsonObject, arr_test, arr, id, processid); + + } + } + } else { + if (UtilString.isNotEmpty(depIds)) { + String[] split = depIds.split(","); + for (String depId : split) { + getUserList(jsonObject, arr_test, arr, depId, processid); + } + } + } + + // System.err.println(SDK.getProcessAPI().getInstanceById(processid) + + // "_得到的总人数为:" + arr_test.size()); + // System.err.println(SDK.getProcessAPI().getInstanceById(processid) + + // "_得到的过滤后的人数为:" + arr.size()); + return arr; + } + + public void getUserList(JSONObject jsonObject, ArrayList arr_test, ArrayList arr, + String departmentId, String processid) { + // 获取当前部门下人员 + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(departmentId); + for (UserModel userModel : userModelList) { + if (!userModel.isClosed()) { + String uid = userModel.getUID(); + if (!arr.contains(uid)) { + if (!"10033643".equals(uid)) { + // System.err.println("发送人员======>" + uid); } + arr.add(uid); + + } + /* + * RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '" + * + processid + "' AND USER_ID = '" + uid + "'"); if (map == null) { + * //System.err.println("发送人员======>" + uid); } + */ + } + } + } + // 获取当前部门的子部门人员 + DepartmentModel departmentById = SDK.getORGAPI().getDepartmentById(departmentId); + if (departmentById.isExistSubModelOfCache()) { + getSubDepartments(jsonObject, arr_test, arr, departmentById, processid); + } + + } + + // 获取子部门人员 + public void getSubDepartments(JSONObject jsonObject, ArrayList arr_test, ArrayList arr, + DepartmentModel departmentById, String processid) { + if (!departmentById.isClosed()) { + List subDepartments = SDK.getORGAPI().getSubDepartments(departmentById.getId()); + for (DepartmentModel departmentModel : subDepartments) { + if (!departmentModel.isClosed()) { + String id = departmentModel.getId(); + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(id); + for (UserModel userModel : userModelList) { + if (!userModel.isClosed()) { + String uid = userModel.getUID(); + if (!arr.contains(uid)) { + if (!"10033643".equals(uid)) { + // System.err.println("发送人员======>" + uid); } + arr.add(uid); + } + // System.err.println(SDK.getProcessAPI().getInstanceById(processid) + + // "_发送人员======>" + uid); + + } + } + } + // 递归获取子部门下的子部门 + if (SDK.getORGAPI().isExistSubDepartment(id)) { + getSubDepartments(jsonObject, arr_test, arr, SDK.getORGAPI().getDepartmentById(id), processid); + } + + } + + } + } + } + /** + * 创建线程发送待阅 + * + * @param list 人员集合 + * @param startTime 开始时间 + * @param jsonObject 发送的json串 + * @param processExecutionContext 流程数据 + */ + /* + * public void course(List list,long startTime,JSONObject + * jsonObject,ProcessExecutionContext processExecutionContext){ // + * 创建线程来实现为每300人为一个的线程跑待阅 ExecutorService service = + * Executors.newFixedThreadPool(4); service.execute(new Runnable() { + * + * @Override public void run() { int i=0; for (String[] resrt:list ) { + * + * if ((list.size()-1)==i){ long endTime = System.currentTimeMillis(); + * + * long time = endTime - startTime; long itmes = time/1000/60/60; BO + * bo_eu_pal_read_log = SDK.getBOAPI().query("BO_EU_PAL_READ_LOG", + * true).addQuery("PROCESSID = ", + * processExecutionContext.getProcessInstance().getId()).detail(); + * bo_eu_pal_read_log.set("ENDTIMES",endTime); + * bo_eu_pal_read_log.set("TIMECOUNT",itmes); + * SDK.getBOAPI().update("BO_EU_PAL_READ_LOG",bo_eu_pal_read_log); } try { + * SendOARead(jsonObject,processExecutionContext,resrt); } catch + * (DocumentException e) { e.printStackTrace(); } i++; } } }); } + */ + + /** + * 创建待阅日志 + * + * @param processExecutionContext + * @param jsonObject + * @param users + * @param startTime + */ + + public void createReadLog(ProcessExecutionContext processExecutionContext, JSONObject jsonObject, + ArrayList arr, long startTime, long endTimes) { + BO bo_Read_log = new BO(); + String processInstId = processExecutionContext.getProcessInstance().getId(); + bo_Read_log.set("USREID", processExecutionContext.getUserContext().getUID()); + bo_Read_log.set("DEPID", processExecutionContext.getUserContext().getDepartmentModel().getId()); + bo_Read_log.set("BUNAME", processExecutionContext.getUserContext().getUserModel().getExt4()); + bo_Read_log.set("TITLE", jsonObject.get("title")); + bo_Read_log.set("PROCESSID", processInstId); + bo_Read_log.set("SENDNUM", arr.size()); + String sqly = "SELECT * FROM BO_ACT_DATAID WHERE PROCESSID = '" + processInstId + "' AND SENDTYPE = '1'"; + List mapsy = DBSql.getMaps(sqly); + bo_Read_log.set("SENDNUMSJ", mapsy.size()); + BO bo_act_coe_publishs = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", processInstId) + .addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + String send_scop = bo_act_coe_publishs.getString("SEND_SCOP"); + bo_Read_log.set("SEND_SCOP", send_scop); + String SEND_SCOPE_ORG = bo_act_coe_publishs.getString("SEND_SCOPE_ORG"); + if (UtilString.isNotEmpty(SEND_SCOPE_ORG)) { + String[] resulr = SEND_SCOPE_ORG.split(","); + bo_Read_log.set("SEND_SCOPE_ORGNUM", resulr.length); + } + String SEND_SCOPE_POST = bo_act_coe_publishs.getString("SEND_SCOPE_POST"); + if (UtilString.isNotEmpty(SEND_SCOPE_POST)) { + String[] resulr = SEND_SCOPE_POST.split(","); + bo_Read_log.set("SEND_SCOPE_POST_NUM", resulr.length); + } + String SEND_SCOPE_LEVEL = bo_act_coe_publishs.getString("SEND_SCOPE_LEVEL"); + if (UtilString.isNotEmpty(SEND_SCOPE_LEVEL)) { + String[] resulr = SEND_SCOPE_LEVEL.split(","); + bo_Read_log.set("SEND_SCOPE_LEVEL_NUM", resulr.length); + } + + bo_Read_log.set("STARTTIMES", startTime); + bo_Read_log.set("ENDTIMES", endTimes); + long time = endTimes - startTime; + long diffSeconds = time / 1000 % 60; + long diffMinutes = time / (60 * 1000) % 60; + long diffHours = time / (60 * 60 * 1000) % 24; + long diffDays = time / (24 * 60 * 60 * 1000); + String remainTime = ""; + if (diffDays != 0 && diffHours != 0) { + remainTime = diffDays + "天" + diffHours + "小时" + diffMinutes + "分钟" + diffSeconds + "秒"; + } else if (diffDays == 0 && diffHours != 0 && diffMinutes != 0) { + remainTime = diffHours + "小时" + diffMinutes + "分钟" + diffSeconds + "秒"; + } else if (diffDays == 0 && diffHours == 0 && diffMinutes != 0) { + remainTime = diffMinutes + "分钟" + diffSeconds + "秒"; + } else if (diffDays == 0 && diffHours == 0 && diffMinutes == 0) { + remainTime = diffSeconds + "秒"; + } + bo_Read_log.set("TIMECOUNT", remainTime); + // 文件发布成功回执流程 + String titltes = jsonObject.get("title") + "成功发布回执单"; + ProcessInstance processInst = SDK.getProcessAPI().createProcessInstance("obj_b4700f89a7a144c086d047de0cfe9531", + "admin", titltes); + BO bo = SDK.getBOAPI().getByProcess("BO_ACT_COE_PUBLISH", processInstId); + SDK.getBOAPI().create("BO_EU_PAL_PULBISH_SUCCESS", bo_Read_log, processInst, UserContext.fromUID("admin")); + TaskInstance taskInst = SDK.getProcessAPI().start(processInst).fetchActiveTasks().get(0); + SDK.getTaskAPI().completeTask(taskInst.getId(), "admin"); + SDK.getTaskAPI().createUserCCTaskInstance(processInst, taskInst, UserContext.fromUID("admin"), + bo.getString("PROCESS_MANAGER"), titltes); + + } + + /** + * 通过发布知识创建知识 + * + * @param bo 发布清单表数据 + * @param wsId 知识库id + * @param filed 文件集合JsonArray格式 + * @param processExecutionContext 流程数据 + * @param bo_act_coe_publish 发布表 + * @param uid 账户合计 + */ + public void createKmsByNew(BO bo, String wsId, JSONArray filed, ProcessExecutionContext processExecutionContext, + BO bo_act_coe_publish, String uid) { + { + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + wsId = model.getWsId(); + String publishfileid = bo.getString("PUBLISHFILEID"); + filed.add(publishfileid); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + if (StringUtils.isEmpty(map.getString("EXT4"))) { + // aslp服务地址 + String aslps_create = "aslp://com.actionsoft.apps.kms/CreateKnwl"; +// 参数定义列表 + Map params_create = new HashMap(); +//保密级别, 0: 普通 1:秘密 2:机密,必填 + params_create.put("securityLevel", 0); +//知识名称,必填 + + String level = ""; + if (map != null) { + String pver = map.getString("PLVER"); + if (UtilString.isNotEmpty(pver)) { + if (pver.contains(".00")) { + String levels = pver; + String[] plvers = levels.split("\\."); + plvers[1] = plvers[1].replaceAll("0", ""); + level = plvers[0] + "." + plvers[1]; + } else { + level = pver + ".0"; + } + } + } + params_create.put("knwlName", map.getString("PLNAME") + "V" + level); +//是否可以评论,必填 + params_create.put("isComment", true); +//是否可以评分,必填 + params_create.put("isRate", true); +//有效期:yyyy-MM-dd,非必填 + params_create.put("validDate", "2099-12-31"); +//只读控制,1:在线阅读和下载 0:在线阅读,必填 + params_create.put("onlineLevel", 1); +//知识创建人,某些特殊场景下,sid和createUser代表的用户并不一样,如果此参数为null,则使用sid代表的用户,非必填 + params_create.put("createUser", "admin"); +//知识内容,非必填 + params_create.put("cardContext", ""); +//sid,必填 + params_create.put("sid", processExecutionContext.getUserContext().getSessionId()); + AppAPI appAPI_create = SDK.getAppAPI(); +//创建知识 + ResponseObject ro_create = appAPI_create.callASLP( + appAPI_create.getAppContext(processExecutionContext.getProcessInstance().getAppId()), + aslps_create, params_create); + String cardId = ((LinkedHashMap) ro_create.getData()).get("cardId").toString(); + JSONArray jsonArray1 = new JSONArray(); + if (bo_act_coe_publish.getString("SEND_SCOP").equals("0")) { + String departId = bo_act_coe_publish.getString("SEND_SCOPE_ORG"); + if (StringUtils.isNotEmpty(departId) + && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_LEVEL")) + && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_POST"))) { + String strs[] = departId.split(","); + for (String departmentid : strs) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", departmentid); + jsonArray1.add(jsonObjecta); + } + } else { + + String[] split = uid.split(","); + + List list = new ArrayList(Arrays.asList(split)); + + HashSet h = new HashSet(list); + list.clear(); + list.addAll(h); + + for (String user_id : list) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "user"); + jsonObjecta.put("assignmentId", user_id); + jsonArray1.add(jsonObjecta); + } + } + } else { + List departmentsByCompanyId = SDK.getORGAPI().getDepartmentsByCompanyId(1, + "8911e732-b42a-4556-853f-ad32761bcbee"); + for (DepartmentModel departmentModel : departmentsByCompanyId) { + String depId = departmentModel.getId(); + // 查询未注销的部门并且去掉系统部门 + if (!departmentModel.isClosed()&& !"e79281b1-2f81-4895-b30e-9f96e9ad0e2c".equals(depId)&& !"65048aee-157f-49f2-a2dc-5903dd26f519".equals(depId)) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType","department"); + jsonObjecta.put("assignmentId",depId); + jsonArray1.add(jsonObjecta); + } + } + } + + AddKnwlAC(processExecutionContext, jsonArray1, processExecutionContext.getUserContext().getSessionId(), + cardId); + + String update_sql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '" + cardId + "' WHERE " + + " PLCATEGORY = 'process'and PLMETHODID !='process.framework' " + + " and PLNAME not in ('流程架构图','测试用','GMY-截图用','sx批量测试'" + + " ,'8.2培训使用','用户练习使用','YX测试分部','yx测试人员','yx测试部','流程架构测试')" + + " and PLPARENTID not in ('63ff93c6-2f27-4851-a396-6830c428db2e'," + + " 'c84f497a-4de3-4404-86e8-cd5af71c3b47','94dabf55-b032-4316-a4c3-00b83763da09'," + + " '36ac7cdd-a361-4bd3-9511-c03c1b3627a4','84e534b4-e51a-4874-9ff1-8a0206d9e0c5'," + + " '98bd5917-7563-4b29-b775-815e91d9864c','f07da63c-3423-4c1e-ae75-b323c6a69093'," + + " '79cb4c35-d2f7-4c43-a7db-44038b557eac','7ad79a73-a497-417a-a5ec-d4c9fd45061c'," + + " '42c09260-c1d3-44b7-ac3d-f8280e04c294') and ID = '" + publishfileid + "'"; + int update = DBSql.update(update_sql); + System.out.println("更新id为:" + publishfileid + "版本为:的知识对应的资产库的EXT4的影响行数为" + update); + creadteFile(processExecutionContext, "BO_ACT_COE_PUBLISH_N", processExecutionContext.getUserContext(), + cardId, "PUBLISHFILEID = "); + } + } + } + + /** + * 发布生成kms知识 + * + * @param bo 更新发布清单表 + * @param wsId 知识库id + * @param filed 发布清单的发布id + * @param processExecutionContext 流程数据 + * @param bo_act_coe_publish 发布表 + * @param uid 账户集合 + */ + public void CreateKmsByupdate(BO bo, String wsId, JSONArray filed, ProcessExecutionContext processExecutionContext, + BO bo_act_coe_publish, String uid) { + { + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + wsId = model.getWsId(); + String publishfileid = bo.getString("CHANGEDFILEIDNEW"); + filed.add(publishfileid); + DBSql.update("update APP_ACT_COE_PAL_REPOSITORY set EXT4 = '' where id = '" + publishfileid + "'"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + if (StringUtils.isEmpty(map.getString("EXT4"))) { + // aslp服务地址 + String aslps_create = "aslp://com.actionsoft.apps.kms/CreateKnwl"; +// 参数定义列表 + Map params_create = new HashMap(); +//保密级别, 0: 普通 1:秘密 2:机密,必填 + params_create.put("securityLevel", 0); +//知识名称,必填 + String level = ""; + if (map != null) { + String pver = map.getString("PLVER"); + if (UtilString.isNotEmpty(pver)) { + if (pver.contains(".00")) { + String levels = pver; + String[] plvers = levels.split("\\."); + plvers[1] = plvers[1].replaceAll("0", ""); + level = plvers[0] + "." + plvers[1]; + } else { + level = pver + ".0"; + } + } + } + + params_create.put("knwlName", map.getString("PLNAME") + "V" + level); +//是否可以评论,必填 + params_create.put("isComment", true); +//是否可以评分,必填 + params_create.put("isRate", true); +//有效期:yyyy-MM-dd,非必填 + params_create.put("validDate", "2099-12-31"); +//只读控制,1:在线阅读和下载 0:在线阅读,必填 + params_create.put("onlineLevel", 1); +//知识创建人,某些特殊场景下,sid和createUser代表的用户并不一样,如果此参数为null,则使用sid代表的用户,非必填 + params_create.put("createUser", "admin"); +//知识内容,非必填 + params_create.put("cardContext", ""); +//sid,必填 + params_create.put("sid", processExecutionContext.getUserContext().getSessionId()); + AppAPI appAPI_create = SDK.getAppAPI(); +//创建知识 + ResponseObject ro_create = appAPI_create.callASLP( + appAPI_create.getAppContext(processExecutionContext.getProcessInstance().getAppId()), + aslps_create, params_create); + // System.out.println("ro_create================" + ro_create); + String cardId = ((LinkedHashMap) ro_create.getData()).get("cardId").toString(); + JSONArray jsonArray1 = new JSONArray(); + if (bo_act_coe_publish.getString("SEND_SCOP").equals("1")) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "company"); + jsonObjecta.put("assignmentId", "8911e732-b42a-4556-853f-ad32761bcbee"); + jsonArray1.add(jsonObjecta); + } else { + String departId = bo_act_coe_publish.getString("SEND_SCOPE_ORG"); + if (StringUtils.isNotEmpty(departId) + && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_LEVEL")) + && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_POST"))) { + String strs[] = departId.split(","); + for (String departmentid : strs) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", departmentid); + jsonArray1.add(jsonObjecta); + } + } else { + String[] split = uid.split(","); + + List list = new ArrayList(Arrays.asList(split)); + + HashSet h = new HashSet(list); + list.clear(); + list.addAll(h); + + for (String user_id : list) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "user"); + jsonObjecta.put("assignmentId", user_id); + jsonArray1.add(jsonObjecta); + } + } + + } + AddKnwlAC(processExecutionContext, jsonArray1, processExecutionContext.getUserContext().getSessionId(), + cardId); + + String update_sql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '" + cardId + "' WHERE " + + " PLCATEGORY = 'process'and PLMETHODID !='process.framework' " + + " and PLNAME not in ('流程架构图','测试用','GMY-截图用','sx批量测试'" + + " ,'8.2培训使用','用户练习使用','YX测试分部','yx测试人员','yx测试部','流程架构测试')" + + " and PLPARENTID not in ('63ff93c6-2f27-4851-a396-6830c428db2e'," + + " 'c84f497a-4de3-4404-86e8-cd5af71c3b47','94dabf55-b032-4316-a4c3-00b83763da09'," + + " '36ac7cdd-a361-4bd3-9511-c03c1b3627a4','84e534b4-e51a-4874-9ff1-8a0206d9e0c5'," + + " '98bd5917-7563-4b29-b775-815e91d9864c','f07da63c-3423-4c1e-ae75-b323c6a69093'," + + " '79cb4c35-d2f7-4c43-a7db-44038b557eac','7ad79a73-a497-417a-a5ec-d4c9fd45061c'," + + " '42c09260-c1d3-44b7-ac3d-f8280e04c294') and ID = '" + publishfileid + "'"; + int update = DBSql.update(update_sql); + System.out.println("更新id为:" + publishfileid + "版本为:的知识对应的资产库的EXT4的影响行数为" + update); + creadteFile(processExecutionContext, "BO_ACT_COE_PUBLISH_C", processExecutionContext.getUserContext(), + cardId, " CHANGEDFILEIDNEW="); + } + // 将旧的知识取消发布或者移动到废止发布中 + String publishfileid_old = bo.getString("CHANGEFILEID"); + String sql_c = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid_old + "'"; + RowMap map1 = DBSql.getMap(sql_c); + if (StringUtils.isNotEmpty(map1.getString("EXT4"))) { + CancelPublishKnwl(processExecutionContext, processExecutionContext.getUserContext().getSessionId(), + map1.getString("EXT4")); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '' WHERE ID = '" + publishfileid_old + "'"); + } + } + } + + // 创建推送日志 + public void createLog(ProcessInstance instanceById, String uids) { + BO bo = new BO();// BO_EU_PAL_SEND_LOG + bo.set("USREID", instanceById.getCreateUser()); + bo.set("TITLE", instanceById.getTitle()); + bo.set("SENDTIME", instanceById.getEndTime()); + bo.set("PROCESSID", instanceById.getId()); + bo.set("USERNAMES", uids); + bo.set("DEPID", UserContext.fromUID(uids).getDepartmentModel().getId()); + bo.set("POSTNAME", UserContext.fromUID(uids).getUserModel().getPositionName()); + bo.set("BUNAME", UserContext.fromUID(uids).getUserModel().getExt2()); + SDK.getBOAPI().createDataBO("BO_EU_PAL_SEND_LOG", bo, UserContext.fromUID("admin")); + } + + public void sendEHSQ(ProcessExecutionContext processExecutionContext, List bo_act_coe_publish_n) { + for (BO bo : bo_act_coe_publish_n) { + DownloadUtil downloadUtil = new DownloadUtil(); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + JSONArray jsonArray_EHSQ = new JSONArray(); + JSONObject jsonObject_ehsq = new JSONObject(new LinkedHashMap<>()); + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + String wsId = model.getWsId(); + String publishfileid = bo.getString("PUBLISHFILEID"); + LinkedHashMap downloadurl = downloadUtil.outputReportDownload( + UserContext.fromUID(processExecutionContext.getProcessInstance().getCreateUser()), + bo.getString("TASKID"), publishfileid); + jsonObject_ehsq.put("fileid", bo.getString("TASKID")); + String plName = bo.getString("PUBLISHFILENAME"); + jsonObject_ehsq.put("filename", bo.getString("PUBLISHFILENAME")); + String plNumer = bo.getString("PUBLISH_NUMBER"); + jsonObject_ehsq.put("filecode",bo.getString("PUBLISH_NUMBER")); + //jsonObject_ehsq.put("filecode", "123456"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(publishfileid); + jsonObject_ehsq.put("version", "V"+palRepositoryModel.getVersion()+""); + BO byProcess = SDK.getBOAPI().getByProcess("BO_ACT_COE_PUBLISH", processExecutionContext.getProcessInstance().getId()); + String cdeDate = byProcess.getString("CHOICEEFFECTIVEDATE"); + if("1".equals(cdeDate)) { + jsonObject_ehsq.put("releasedate", byProcess.getString("EFFECTIVEDATE")); + jsonObject_ehsq.put("effectivedate", byProcess.getString("EFFECTIVEDATE")); + }else { + jsonObject_ehsq.put("releasedate", simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("effectivedate", simpleDateFormat.format(new Date())); + } + jsonObject_ehsq.put("authorcode", processExecutionContext.getTaskInstance().getTarget()); // jsonObject_ehsq.put("authorcode","00116465"); + jsonObject_ehsq.put("authorname", + UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getUserName()); + // jsonObject_ehsq.put("authorname","毛鹏程"); + jsonObject_ehsq.put("companycode", UserContext + .fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getNo()); + // jsonObject_ehsq.put("companycode","00000013"); + jsonObject_ehsq.put("authorcompany", UserContext + .fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getName()); // jsonObject_ehsq.put("authorcompany","总部质量管理部"); + // // + BO bo1 = SDK.getBOAPI().query("BO_ACT_PUBLISH_PERM_SCOPE", true) + .addQuery("PALNAME=", bo.getString("PUBLISHFILENAME")).detail(); + if (bo1 != null) { + if (bo1.getString("PERMTYPE").equals("1")) { + jsonObject_ehsq.put("releasescope", "内蒙古伊利实业集团股份有限公司"); + } else { + + String departname = ""; + String orgperm = bo1.getString("ORGPERM"); + String dleass = ""; + String[] deptSplit = orgperm.split(","); + if (deptSplit.length == 1) { + dleass = "'" + deptSplit[0] + "'"; + } + dleass = "'" + StringUtils.join(deptSplit, "','") + "'"; + + List maps = DBSql + .getMaps("select DEPARTMENTNAME from ORGDEPARTMENT where ID in (" + dleass + ")"); + for (RowMap rowmas : maps) { + departname += rowmas.getString("DEPARTMENTNAME") + ";"; + } + if(UtilString.isNotEmpty(departname)&&departname.length()>500) { + String substring = departname.substring(0, 500); + departname = substring.substring(0,substring.lastIndexOf(";")); + } + jsonObject_ehsq.put("releasescope", departname); + + } + } + + //System.out.println("任务办理者>>>>>>>>>>>" + processExecutionContext.getTaskInstance().getTarget()); + String sessionId = new SSOUtil().registerClientSessionNoPassword( + processExecutionContext.getTaskInstance().getTarget(), LoginConst.DEFAULT_LANG, "localhost", + LoginConst.DEVICE_PC); + + //System.out.println("办理者的sessionid>>>>>>>>>>>" + sessionId); + String downurl = downloadUtil.getzipURL(sessionId, bo.getString("TASKID"), bo.getString("PUBLISHFILENAME")); + // jsonObject_ehsq.put("downloadurl","http://bpm.yili.com:8088/portal/r"+downurl.toString().substring(1)); + String recordfiles = ""; + String recordurls = ""; + Set keys = downloadurl.keySet(); + for (String key : keys) { + recordfiles += key + ";"; + String cent_url = downloadurl.get(key).substring(downloadurl.get(key).indexOf("/df"), + downloadurl.get(key).length()); + String fileDownurl = "http://bpm.yili.com:8088/portal/r" + cent_url; + recordurls += fileDownurl + ";"; + } + String new_name = ""; + String[] split = recordfiles.split(";"); + if (split.length > 0) { + + for (int i = 1; i < split.length; i++) { + new_name += split[i] + ";"; + } + } + + String new_url = ""; + String[] urls = recordurls.split(";"); + if (urls.length > 0) { + String loadurl = urls[0].replaceAll("&sid=null", "&sid=" + sessionId); + System.out.println("下载的地址是<<<<<<<<<<<<<<<<<<" + loadurl); + jsonObject_ehsq.put("downloadurl", loadurl); + for (int i = 1; i < urls.length; i++) { + String data_url = urls[i].replaceAll("&sid=null", "&sid=" + sessionId); + new_url += data_url + ";"; + } + } + jsonObject_ehsq.put("recordfiles", new_name); + jsonObject_ehsq.put("recordurls", new_url); + jsonArray_EHSQ.add(jsonObject_ehsq); + + Date date = new Date(); + SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + UserContext uc = processExecutionContext.getUserContext(); + String userName = uc.getUserName(); + try { + String sql = "SELECT ID FROM BO_EU_PAL_SEND_EHSQ_JOB WHERE PLID = '"+publishfileid+"' AND USERNAMES = '"+userName+"'"; + String id = DBSql.getString(sql); + String sendEHSQFile = SendEHSQFile(plName,jsonArray_EHSQ); + System.err.println("EHSQ流程发布推送结果====>"+processExecutionContext.getProcessInstance().getTitle()+"=========>"+sendEHSQFile); + if(UtilString.isNotEmpty(id)) { + BO bos = SDK.getBOAPI().get("BO_EU_PAL_SEND_EHSQ_JOB", id); + updateSendLog(bos,userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布推送", sendEHSQFile); + }else { + createSendLog(userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布推送", sendEHSQFile); + } + } catch (Exception e) { + String sql = "SELECT ID FROM BO_EU_PAL_SEND_EHSQ_JOB WHERE PLID = '"+publishfileid+"' AND USERNAMES = '"+userName+"'"; + String id = DBSql.getString(sql); + if(UtilString.isNotEmpty(id)) { + BO bos = SDK.getBOAPI().get("BO_EU_PAL_SEND_EHSQ_JOB", id); + updateSendLog(bos,userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布推送", e.getMessage()); + }else { + createSendLog(userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布推送", e.getMessage()); + } + } + } + } + + public void createSendLog(String username,String userDempet,String plId,String plName,String plNumer,String sendTime,String sendType,String sendResult) { + BO bo = new BO(); + bo.set("PLID", plId); + bo.set("PLNAME", plName); + bo.set("PLNUMER", plNumer); + bo.set("SENDTIME", sendTime); + bo.set("SENDTYPE", sendType); + bo.set("SENDRESULT", sendResult); + bo.set("USERNAMES", username); + bo.set("USERDEMPET", userDempet); + SDK.getBOAPI().createDataBO("BO_EU_PAL_SEND_EHSQ_JOB", bo, UserContext.fromUID("admin")); + } + public void updateSendLog(BO bo,String username,String userDempet,String plId,String plName,String plNumer,String sendTime,String sendType,String sendResult) { + bo.set("PLNUMER", plNumer); + bo.set("SENDTIME", sendTime); + bo.set("SENDTYPE", sendType); + bo.set("SENDRESULT", sendResult); + SDK.getBOAPI().update("BO_EU_PAL_SEND_EHSQ_JOB", bo); + } + public void updateEHSQ(ProcessExecutionContext processExecutionContext, List bo_act_coe_publish_c) { + DownloadUtil downloadUtil = new DownloadUtil(); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + for (BO bo : bo_act_coe_publish_c) { + JSONArray jsonArray_EHSQ = new JSONArray(); + JSONObject jsonObject_ehsq = new JSONObject(new LinkedHashMap<>()); + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + String wsId = model.getWsId(); + String publishfileid = bo.getString("CHANGEDFILEIDNEW"); + LinkedHashMap downloadurl = downloadUtil.outputReportDownload( + UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()), bo.getString("TASKID"), + publishfileid); + jsonObject_ehsq.put("fileid", bo.getString("TASKID")); + String plName = bo.getString("CHANGEDFILENAMENEW"); + String plNumer = bo.getString("CHANGE_NUMBER"); + jsonObject_ehsq.put("filename", plName); + jsonObject_ehsq.put("filecode",plNumer); + //jsonObject_ehsq.put("filecode", "123456"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(publishfileid); + jsonObject_ehsq.put("version", "V"+palRepositoryModel.getVersion()+""); + BO byProcess = SDK.getBOAPI().getByProcess("BO_ACT_COE_PUBLISH", processExecutionContext.getProcessInstance().getId()); + String cdeDate = byProcess.getString("CHOICEEFFECTIVEDATE"); + if("1".equals(cdeDate)) { + jsonObject_ehsq.put("releasedate", byProcess.getString("EFFECTIVEDATE")); + jsonObject_ehsq.put("effectivedate", byProcess.getString("EFFECTIVEDATE")); + }else { + jsonObject_ehsq.put("releasedate", simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("effectivedate", simpleDateFormat.format(new Date())); + } + jsonObject_ehsq.put("authorcode", processExecutionContext.getTaskInstance().getTarget()); + jsonObject_ehsq.put("authorname", + UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getUserName()); + jsonObject_ehsq.put("companycode", UserContext + .fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getNo()); + jsonObject_ehsq.put("authorcompany", UserContext + .fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getName()); + BO bo1 = SDK.getBOAPI().query("BO_ACT_PUBLISH_PERM_SCOPE", true) + .addQuery("PALNAME=", bo.getString("CHANGEDFILENAMENEW")).detail(); + if (bo1 != null) { + if (bo1.getString("PERMTYPE").equals("1")) { + jsonObject_ehsq.put("releasescope", "内蒙古伊利实业集团股份有限公司"); + } else { + + String departname = ""; + String orgperm = bo1.getString("ORGPERM"); + String dleass = ""; + String[] deptSplit = orgperm.split(","); + if (deptSplit.length == 1) { + dleass = "'" + deptSplit[0] + "'"; + } + dleass = "'" + StringUtils.join(deptSplit, "','") + "'"; + + List maps = DBSql + .getMaps("select DEPARTMENTNAME from ORGDEPARTMENT where ID in (" + dleass + ")"); + for (RowMap rowmas : maps) { + departname += rowmas.getString("DEPARTMENTNAME") + ";"; + } + if(UtilString.isNotEmpty(departname)&&departname.length()>500) { + String substring = departname.substring(0, 500); + departname = substring.substring(0,substring.lastIndexOf(";")); + } + jsonObject_ehsq.put("releasescope", departname); + + } + } + + String sessionId = new SSOUtil().registerClientSessionNoPassword( + processExecutionContext.getTaskInstance().getTarget(), LoginConst.DEFAULT_LANG, "localhost", + LoginConst.DEVICE_PC); + + String downurl = downloadUtil.getzipURL(sessionId, bo.getString("TASKID"), + bo.getString("CHANGEDFILENAMENEW")); + String recordfiles = ""; + String recordurls = ""; + Set keys = downloadurl.keySet(); + for (String key : keys) { + recordfiles += key + ";"; + String cent_url = downloadurl.get(key).substring(downloadurl.get(key).indexOf("/df"), + downloadurl.get(key).length()); + String fileDownurl = "http://bpm.yili.com:8088/portal/r" + cent_url; + recordurls += fileDownurl + ";"; + } + String new_name = ""; + String[] split = recordfiles.split(";"); + if (split.length > 0) { + + for (int i = 1; i < split.length; i++) { + new_name += split[i] + ";"; + } + } + + String new_url = ""; + String[] urls = recordurls.split(";"); + if (urls.length > 0) { + String loadurl = urls[0].replaceAll("&sid=null", "&sid=" + sessionId); + System.out.println("下载的地址是<<<<<<<<<<<<<<<<<<" + loadurl); + jsonObject_ehsq.put("downloadurl", loadurl); + for (int i = 1; i < urls.length; i++) { + String data_url = urls[i].replaceAll("&sid=null", "&sid=" + sessionId); + new_url += data_url + ";"; + } + } + jsonObject_ehsq.put("recordfiles", new_name); + jsonObject_ehsq.put("recordurls", new_url); + jsonArray_EHSQ.add(jsonObject_ehsq); + Date date = new Date(); + SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + UserContext uc = processExecutionContext.getUserContext(); + String userName = uc.getUserName(); + try { + String sql = "SELECT ID FROM BO_EU_PAL_SEND_EHSQ_JOB WHERE PLID = '"+publishfileid+"' AND USERNAMES = '"+userName+"'"; + String id = DBSql.getString(sql); + String sendEHSQFile = SendEHSQFile(plName,jsonArray_EHSQ); + System.err.println("EHSQ流程发布更新===>"+processExecutionContext.getProcessInstance().getTitle()+"==========>"+sendEHSQFile); + if(UtilString.isNotEmpty(id)) { + BO bos = SDK.getBOAPI().get("BO_EU_PAL_SEND_EHSQ_JOB", id); + updateSendLog(bos,userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布更新", sendEHSQFile); + }else { + createSendLog(userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布更新", sendEHSQFile); + } + } catch (Exception e) { + String sql = "SELECT ID FROM BO_EU_PAL_SEND_EHSQ_JOB WHERE PLID = '"+publishfileid+"' AND USERNAMES = '"+userName+"'"; + String id = DBSql.getString(sql); + if(UtilString.isNotEmpty(id)) { + BO bos = SDK.getBOAPI().get("BO_EU_PAL_SEND_EHSQ_JOB", id); + updateSendLog(bos,userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布更新", e.getMessage()); + }else { + createSendLog(userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "流程发布更新", e.getMessage()); + } + } + } + } + +} diff --git a/com.awspaas.user.apps.app/.classpath b/com.awspaas.user.apps.app/.classpath new file mode 100644 index 00000000..27f05dab --- /dev/null +++ b/com.awspaas.user.apps.app/.classpath @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/com.awspaas.user.apps.app/.project b/com.awspaas.user.apps.app/.project new file mode 100644 index 00000000..c1431d2e --- /dev/null +++ b/com.awspaas.user.apps.app/.project @@ -0,0 +1,17 @@ + + + com.awspaas.user.apps.app20221008163300 + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/com.awspaas.user.apps.app20221008163300/.classpath b/com.awspaas.user.apps.app20221008163300/.classpath new file mode 100644 index 00000000..27f05dab --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/.classpath @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/.project b/com.awspaas.user.apps.app20221008163300/.project new file mode 100644 index 00000000..c1431d2e --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/.project @@ -0,0 +1,17 @@ + + + com.awspaas.user.apps.app20221008163300 + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/com.awspaas.user.apps.app20221008163300/ExtractedText.txt b/com.awspaas.user.apps.app20221008163300/ExtractedText.txt new file mode 100644 index 00000000..ae658608 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/ExtractedText.txt @@ -0,0 +1,454 @@ +1. 内容** +4.1 流程制度类文件分类管理 +4.1.1 流程制度类文件分类 +流程制度类文件分类 +释义 +流程架构文件 +是指包含流程架构L1-L3、流程架构图、流程卡片等流程架构完整信息的描述性文件。 +管理手册 +是指为阐明某领域的管理目标、方针,明确管理机制和原则,全面覆盖领域管理范围的纲领性文件。 +流程文件 +是指对公司业务流程进行详细说明,用于帮助公司人员准确理解流程逻辑、执行要求,指导员工正确履行职责,正确完成工作的文件。 +制度规范 +是指为维护公司正常运行,要求大家共同遵守的与业务相关且在较大范围内长期有效的办事规程或行动准则。包括各种管理类程序、规范、办法、准则、规则、机制、制度、细则等。 +操作指导 +某个角色或岗位操作一个或多个业务活动的详细说明文件,用于指导员工准确无误的履行工作。 +表单/模板 +即承载了各类文件的内容提纲及其格式的文档,或者各类文件需要使用的具有固定格式的表格或单据。包括:申请表、记录、检查单、清单等。 +4.1.2 分类管理原则 +4.1.2.1 流程制度类文件不做分级管理,以文件分类为准,业务执行过程中可通过所属流程架构的层级判定流程制度类文件的层级和业务覆盖范围。 +4.1.2.2 管理手册通常对应流程架构中一、二级流程,范围覆盖较大业务领域,三级及以下流程相关管理要求的呈现建议使用制度规范。 +4.1.2.3 为保证文件分类的清晰界限,制度规范可描述针对流程不同阶段的管理要求,但勿体现流程说明和过程描述性质的内容,如涉及,可以引用相关流程文件,以“参见xxx流程”的形式体现。 +4.2 流程制度类文件编制 +4.2.1 构成与相关属性 +4.2.1.1 文件均由封面、目录、文控信息、修订记录及正文构成。 +4.2.1.2 正文一般包括目的、术语定义、组织/角色职责、管理原则(管理规范)、流程图和流程说明(流程文件) +4.2.1.3 文件适用范围:是指流程制度类文件发行后,文件内容所适用的具体单位、组织。 +4.2.1.4 文件发放范围:是指包含文件适用范围,以及文件的知悉需求的,文件发送单位(适用范围)、抄送单位的总和。 +4.2.2 流程制度类文件命名 +4.2.2.1 通用命名原则:明确管理内容、适用范围、文件类型等文件关键要素,无范围歧义,确保文件命名的唯一性,如:《伊利集团内部控制评价管理办法》、《液奶品牌策略制定流程》。 +4.2.2.2 各类流程制度类文件命名细则: +1) 流程架构文件:流程架构文件命名为《伊利集团流程架构》 +2) 管理手册:依据管理范围命名为“XX管理手册”,如“流程管理手册”“质量管理手册”。 +3) 制度规范:制度规范命名规则为“适用范围、管理内容等”+“规范/准则/制度/办法/规则/机制/细则等”,勿使用“方案”等具有明显项目或阶段性管理特征的命名,以免对文件类型产生误导;另外,当文件仅涉及评价标准等管理标准类内容时可使用“标准”进行命名。 +4) 流程文件:命名规则=“流程名称” +5) 操作指导:操作指导命名规则为“指导范围、指导内容等”+“操作指导”其中指导内容如为某流程的操作指导,尽可能采用对应流程名称。 +6) 表单/模板:“表单/模板适用范围、表单/模板内容等”+“表单”/“模板” +4.2.3 流程制度类文件适用范围设定 +流程制度类文件的适用范围是其一个重要属性,需在文控信息及文件编号中明确体现。各单位和组织在文件拟制过程中,需要考虑文件的适用范围合理性,具体原则如下: +* 集团总部职能部门原则上建议拟制适用于整个公司或者总部职能范围的流程制度类文件,针对某个事业部的流程制度类文件,建议由事业部拟制发布。 +* 事业部职能部门拟制的文件可适用于本事业部、事业部某特定大区或者工厂,不可拟制适用于多个事业部的流程制度类文件。 +* 事业部某大区或者工厂拟制的文件可适用于本大区或者工厂,不可拟制适用于多个工厂或者大区的流程制度类文件。 +4.2.4 流程制度类文件编号 +流程制度类文件编号根据流程架构参照以下编号规则进行编订,须确保文件编号的唯一性,以方便文件管理。具体如下: +4.2.4.1 文件编号规则 +文件整体编号由“文件编号”“版本号”“适用范围”组成,“文件编号”由“架构标号+末级流程编号”“文件类型编码”及“顺序号”组成,其中“架构编号+末级流程编号”与“文件类型编码”之间用“/”隔开,“适用范围”与“版本号”之间用“-”隔开。 +整体编号格式为“对应流程架构的架构编号.末级流程编号/文件类型代码+文件顺序号+版本号-适用范围”,方式如下: + +其中架构编号和末级流程编号为4个两位数字中间用“.”间隔组成,两位数字取值为“0~99”,取值小于10时,补足两位表示,如三级流程“11.1.1”表示为“11.01.01.00”,末级流程“11.1.2.1”表示为“11.01.02.01” +4.2.4.2 适用范围编码规则 +适用范围的编号格式为“单位属性代码+区域代码+其他代码”,方式如下: + +1) 单位属性代码 +单位属性代码用代表单位简称的2个字母组成,体现文件的适用范围,包括:集团(全公司)、总部职能(全部)、事业部、分公司、子公司、某总部职能部门,代码表: +单位 +编码 +集团(全公司) +YL +总部职能 +ZB +液奶事业部 +YN +酸奶事业部 +SN +奶粉事业部 +NF +冷饮事业部 +LY +奶酪事业部 +NL +分公司 +FG +子公司 +ZG +单位代码表1 +单位 +编码 +单位 +编码 +总裁办公室 +ZC +品牌管理部 +PP +战略企划部 +ZQ +企业事务部 +QS +审计部 +SJ +媒介部 +MJ +投资管理部 +TZ +党群综合部 +ZH +董事会办公室 +DB +并购部 +BG +供应保障部 +GY +法律事务部 +FL +信息科技中心 +XX +质量管理部 +ZG +数字化管理办公室 +SZ +市场研究部 +SC +乳业技术研究院 +RY +工程管理部 +GC +人力资源部 +RL +财务管理部 +CW +投资者关系部 +TG +国际业务部 +GJ +单位代码表2 +2) 区域代码 +* 如文件适用范围适用于本单位之下的所有工厂/大区(默认归属到事业部而非分子公司)、或其他分子公司,则区域代码为YY;如文件适用范围为某大区、工厂或其以外的分子公司,需使用区域代码进一步明确范围,代码表如下: +工厂/分公司名称 +代码 +工厂/分公司名称 +代码 +工厂/分公司名称 +代码 +工厂/分公司名称 +代码 +辽宁 +LN +包头 +BT +云南 +YN +长春 +CC +黄冈 +HG +广西 +GX +济源 +JY +武汉 +WH +西安 +XA +多伦 +DL +龙游 +LY +巴彦淖尔 +BY +成都 +CD +赤峰 +CF +梅州 +MZ +锡林浩特 +XL +金川 +JC +咸阳 +XY +齐齐哈尔 +QQ +廊坊 +LF +定州 +DZ +河南 +HN +金海 +JA +杜蒙 +DM +天津 +TJ +滦州 +LU +苏州 +SZ +张北 +ZB +广东 +GD +黑龙江 +HL +金华 +JH +林甸 +LD +合肥 +HF +沈阳 +SY +潍坊 +WF +临朐 +LQ +肇东 +ZD +北京 +BJ +金山 +JS +晋中 +JZ +乌鲁木齐 +WM +阜新 +FX +乌兰察布 +WL +贵阳 +GY +宁夏 +NX +济南 +JN +兰州 +LZ +太原 +TY +哈尔滨 +HE +郑州 +ZZ +广州 +GZ +南昌 +NC +大连 +DA +长沙 +CS +深圳 +SH +福建 +FJ +吉林省 +JL +上海 +SA +南宁 +NN +青岛 +QD +石家庄 +SJ +南京 +NJ +重庆 +CQ +杭州 +HA +工厂/分公司代码表 + +大区名称 +代码 +大区名称 +代码 +大区名称 +代码 +(B2B)北区 +BQ +晋冀蒙大区 +JM +浙沪大区 +ZH +(B2B)东区 +DQ +京津大区 +JJ +两湖大区 +LH +(B2B)南区 +NQ +京津冀大区 +3J +云贵广大区 +YG +(B2B)西区 +XQ +鲁豫大区 +YQ +安徽大区 +AH +东北大区 +DB +蒙晋大区 +MJ +江苏大区 +SQ +华北大区 +HB +闽赣大区 +MG +河南大区 +HQ +华东大区 +HD +苏皖大区 +SW +粤海大区 +YH +华南大区 +HU +西北大区 +XB +山东大区 +SD +华中大区 +HZ +西南大区 +XN +华西大区 +HX +销售大区代码 +子公司名称 +代码 +子公司名称 +代码 +印尼乳业 +ID +新西兰ODL +NZ +印尼绿色亚洲 +IG +西部乳业 +WL +泰国Chomthana +TH +伊知牛 +YZ +其他分子公司代码 + +3) 其他代码 +如文件适用范围为某产品、某业务场景、品类、模块,以及后续可能扩展的其他分类,可使用其他代码,代码命名规则为两位英文字母,由文件编码者进行代码注册申请后方可使用,如,安慕希代码可注册为AM。 +如文件范围不涉及产品、业务场景、品类、模块等其他扩展分类,则其他代码为YY。 +4) 代码注册 +当事业部、职能部门、工厂、销售大区或分子公司等新增、变更,或适用范围为特定某些工厂/区域组合、文件适用范围涉及“其他代码”等现有代码表未覆盖适用范围的情况发生时,由文件编制者向流程制度类文件管理部门申请增加编码,并提供对应的流程责任人信息,获得确认和反馈后,可使用文件编码。 +5) 编码示例 +全集团适用的文件,适用范围编码为为“YLYYYY”; +仅总部职能适用的文件,适用范围编码为为“ZBYYYY”; +仅液奶事业部适用的文件,适用范围编码为为“YNYYYY”; +仅液奶金川工厂适用的文件,适用范围编码为为“YNJCYY”; +仅奶粉西北大区适用的文件,适用范围编码为“NFXBYY”; +仅液奶事业部安慕希产品适用的文件,适用范围编码为“YNYYAM” +仅北京分公司适用的文件,适用范围编码为“FGBJYY” +仅印尼乳业适用的文件,适用范围编码为“GJIDYY” +仅伊知牛适用的文件,适用范围编码为“ZGYZYY” +4.2.4.3 文件类别号 +文件类别号用一位字母表示,具体如下。 +序号 +文件类别 +编码 +编码备注 +1 +流程架构文件 +A +Architecture +2 +管理手册 +M +Manual +3 +制度规范 +R +Rule +4 +流程文件 +P +Process +5 +操作指导 +W +Working Instruction +6 +表单\模板 +T +Template + +4.2.4.4 文件顺序号规则 +是指该文件的顺序号,当文件属于同一流程架构且适用范围相同,或文件属于标准流程与适配流程关系,以文件顺序号对文件进行独立编号,以确保文件编号的唯一性,用阿拉伯数字(01、02、03……)表示。 +4.2.4.5 文件版本号规则 +VX.x(其中“X”为文件升级版本号,当文件变更篇幅≥30%或文件核心内容发生重大变化时,对其进行版本升级,取值为从1~9,“x” 为文件调整版本号,当文件变更篇幅<30%且未对文件核心内容进行变化时,对其进行更新,取值为0~9,例如:V1.0代表文件第一版,V1.9代表文件第一版第9次调整)。 +4.2.4.6 支持文件编号 +支持文件的编号应同派生支持文件的文件保持一致,仅文件类别号及顺序号体现差异,如《流程制度类文件管理规范》编号为:11.01.02.00/R01V1.0-YLYYYY,则其支持文件《流程文件模板》编号为:11.01.02.00/T01V1.0-YLYYYY;《制度规范模板》编号为:11.01.02.00/T02V1.0-YLYYYY +4.2.5 流程制度类文件格式要求 +4.2.5.1 页面布局 +页面布局:文件均采用A4纸版面格式。 +1) 制度规范(普通A4页面边距) +* 纵向版面:上、下页边距为2.54cm,左、右页边距为3.18cm。 +* 横向版面:上、下页边距为3.18cm,左、右页边距为2.54cm。 +2) 流程文件(ARIS系统自动设定边距) +* 纵向版面:上、下页边距为3cm,左、右页边距为2cm。 +* 横向版面:上、下页边距为2cm,左、右页边距为3cm。 +4.2.5.2 封面格式要求 +1) 封面包含文件类型、文件编号、文件名称。 +2) 文件类型用黑体二号不加粗,文件名称用黑体一号字加粗居中,文件编号用黑体10不加粗。 +3) 封面中文件类型和文件名称用分隔线隔开,上半部分包括文件类型和文件编号,下半部分包括文件名称。 +4.2.5.3 文控信息和修订记录格式要求 +1) 表格标题使用宋体小四,加粗。 +2) 表格内容使用宋体五号,固定部分加粗,填写内容不加粗。 +4.2.5.4 目录格式要求 +1) 目录采用自动生成目录的方式,确保导航页面可展示目录并定位。 +2) 目录页展示1~3级目录,3级以下不展示。 +3) 目录标题为宋体二号加粗。 +4) 目录主体用宋体小四不加粗,1.5倍行距。 +5) 目录主体部分标题与页码之间用小圆点连接。 +4.2.5.5 正文格式要求 +1) 内容层次序号4级以内按照以下排列:1、1.1、1.1.1、1.1.1.1;2、2.1、2.1.1、2.1.1.1…,4级以上使用1)、2)、3)… +2) 正文1、2、3级标题用宋体小四加粗,4级标题宋体小四不加粗。 +3) 正文内容用宋体小四不加粗,首行缩进,行距为1.5倍,段前段后均为0。4级以外带序号内容悬挂缩进,行距为1.5倍,段前段后均为0。 +4.2.5.6 表格格式要求 +1) 正文中表格字体用宋体五号,表头/标题加粗,表格内容不加粗,表格内行间距为1.0倍。 +2) 正文中表格出现跨页情况,需使用标题行重复。 +3) 表格中如有内容不涉及用“/”填写。 +4.2.5.7 页眉页脚格式要求 +1) 页眉左侧使用黑体10号字标明公司全称,右侧标明公司LOGO。 +2) 页脚左侧使用黑体8号字标明“以上信息为伊利公司所有,未经允许不得外传”,右侧标明页码,页码从封面第一页开始标注。 +4.2.5.8 不同文件需按如下要求使用对应模板: +1) 制度规范模板:适用于所有制度规范; +2) 流程文件模板:适用于所有流程文件; +3) 操作指导模板:适用于操作指导; +4) 表单/模板类文件模板:适用于所有表单/模板类文件,根据实际需求可采用word版本、excel版本,其中封面及修订记录需严格执行模板要求,具体内容(主要指表单、表格、模板等待填写和套用的部分)可根据实际需求采用不同文件形式并作为模板的附件。 +4.3 流程制度类文件审签发布 +4.3.1 审批要求 +流程文件、制度规范由一级流程责任人或其授权人最终审批。 +操作指导、模板表单由被授权的三级流程责任人审批。 +4.3.2 多文件审签 +流程制度类文件可与其支持文件同时发布,发布后支持文件可独立进行变更等管理。 +多文件同时发布,需要审签要求最高的文件审签。如流程文件与其支持文件同时发布时,其审签按流程文件执行。 +多文件适用范围不同时,最终审批人不同时,原则上不可同时发布。 +多文件同时发布,其会签需确保包含多份文件的所有相关方。 +4.3.3 文件发布 +文件发布具体管理要求请参见《流程制度类文件发布流程》,原则上,流程制度类文件发布生效后需确保适用范围内可获取、生效版本唯一性、发布过程可追溯、发布途径明确、发布审签符合4.3.1条款规定的审签要求。 +4.4 流程制度类文件变更管理 +流程制度类文件的变更,由流程责任人或其委托人主导编制,编制完成后,按流程制度类文件发布审签要求执行变更审签及发布。文件名称变更也属于文件变更的范围内,不作为新文件,按文件编号及版本管理要求执行。 +4.4.1 文件升级 +文件升级指文件变更篇幅≥30%,或文件适用范围变化,组织/角色职责变化≥30%,或内容≥30%等重大变更。升级需在文件版本号中明确体现,具体见本文件4.2.4.5版本号规则。 +4.4.2 文件调整 +文件调整指文件变更篇幅<30%且文件核心内容:如适用范围、组织/角色职责、内容等均未发生≥30%的变化,仅发生个别管理细则的补充、文字描述的更新等。调整需在文件版本号中明确体现,具体见本文件4.2.4.5版本号规则。 +4.5 流程制度类文件废止 +单独废止某流程制度类文件,审签与文件发布执行相同流程,具体参见《流程制度类文件发布流程》 +如流程制度文件因新版本发行而对现行版本进行废止或发行后需废止某特定文件,需在附则中明确现行版本VX.x或某文件(需注明编号)同步废止。 +2. 相关文件** + diff --git a/com.awspaas.user.apps.app20221008163300/manifest.xml b/com.awspaas.user.apps.app20221008163300/manifest.xml new file mode 100644 index 00000000..30c69317 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/manifest.xml @@ -0,0 +1,46 @@ + + + + PAL文件数据批量处理 + 1.0 + 9 + AWSPaaS-EndUser + true + +
+ + com.awspaas.user.apps.app.plugins.Plugins + + + + + true + + + + + + true + true + com.actionsoft.apps.coe.pal + + 2022-10-08 17:55:07 + + + + + + + + + + + + + + + + + 2022-11-23 + 2022-11-23 20:59:59 +
diff --git a/com.awspaas.user.apps.app20221008163300/mobile/mobile-profile.xml b/com.awspaas.user.apps.app20221008163300/mobile/mobile-profile.xml new file mode 100644 index 00000000..a93e3e64 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/mobile/mobile-profile.xml @@ -0,0 +1,15 @@ + + + + + universal + + 1.0 + common + + sid + false + true + false + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_06a8bfc0-25e4-46f8-bc5f-f9b5e1a9c804/06a8bfc0-25e4-46f8-bc5f-f9b5e1a9c804.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_06a8bfc0-25e4-46f8-bc5f-f9b5e1a9c804/06a8bfc0-25e4-46f8-bc5f-f9b5e1a9c804.xml new file mode 100644 index 00000000..dd7a1f8b --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_06a8bfc0-25e4-46f8-bc5f-f9b5e1a9c804/06a8bfc0-25e4-46f8-bc5f-f9b5e1a9c804.xml @@ -0,0 +1,113 @@ + + + 06a8bfc0-25e4-46f8-bc5f-f9b5e1a9c804 + admin + 2022-11-05 19:56:05 + admin + 2022-11-05 20:00:54 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrUM9qdDs49JLlT+VyfBQzCtRm/vYfYfeUpb8QZxHIOgIEe+AnSMJZkbEP2iip4alX + false + 待阅推送失败人员记录 + BO_EU_READ_COUNT + false + false + false + 待办待阅 + admin + TABLE + + + 0 + _local + + + + 28fb4241-a91c-439f-8e2a-7939fe150e45 + TITLE + 文件标题 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 196772d5-e0c2-4d1a-94a9-2619835c2797 + NAME + 接收人 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + b172c8dd-1b42-4c62-97ab-254cd4c596c8 + DEPNAME + 部门名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 6bc7ee35-2c63-4686-a1bf-4f6fc4c4d548 + AWS_IN_B163450884DD + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_0b707241-9f6d-49a0-bffa-acb4ece3d3de/0b707241-9f6d-49a0-bffa-acb4ece3d3de.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_0b707241-9f6d-49a0-bffa-acb4ece3d3de/0b707241-9f6d-49a0-bffa-acb4ece3d3de.xml new file mode 100644 index 00000000..f0801c7e --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_0b707241-9f6d-49a0-bffa-acb4ece3d3de/0b707241-9f6d-49a0-bffa-acb4ece3d3de.xml @@ -0,0 +1,165 @@ + + + 0b707241-9f6d-49a0-bffa-acb4ece3d3de + admin + 2022-10-13 22:17:33 + admin + 2022-10-13 22:19:28 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrxl+saVe4FeCV5KC6P30dvxyp52oMpmDywgs3nLWgp3gDkRBxW4VMyZ0zgH5GSpDi + false + PAL架构替换 + BO_EU_PAL_FRAMEWORK_TOOL + false + false + false + 文件处理 + admin + TABLE + + + 0 + _local + + + + ee03ab0a-213e-4a3f-a886-844159597e76 + PALNAME + 文件名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + ffdb7763-2c10-4a5c-ab63-52341ea6a612 + ERRORFRAMEWORK + 错误架构 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 3746a9c7-5970-45ca-abf7-a09938d8070c + CORRECTFRAMEWORK + 正确架构 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + cd5d6425-9a8a-4b63-9ce7-c773cb7d898f + PAID + 文件Id + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 213dd195-d4cf-4ff9-9d02-6b6705eecf56 + RESULT + 修改结果 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 214184f2-9230-4d30-b90d-d77c46e14095 + AWS_IN_23DC9BF4EAF3 + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_1f509b16-a35c-41ca-a5d7-c82d13004979/1f509b16-a35c-41ca-a5d7-c82d13004979.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_1f509b16-a35c-41ca-a5d7-c82d13004979/1f509b16-a35c-41ca-a5d7-c82d13004979.xml new file mode 100644 index 00000000..22622dbe --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_1f509b16-a35c-41ca-a5d7-c82d13004979/1f509b16-a35c-41ca-a5d7-c82d13004979.xml @@ -0,0 +1,373 @@ + + + 1f509b16-a35c-41ca-a5d7-c82d13004979 + admin + 2022-10-08 16:39:36 + admin + 2022-10-12 16:10:14 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrYGgreD50ydf2hWRt5SZDBaiNgOLALW9T7hRmbe/OLRUhSVPdlwM7HWVDGC0obLhU + false + 模型权限导入模板 + BO_EU_PUBLISH_SCOPE_IMPORT + false + false + false + 权限处理 + admin + TABLE + + + 0 + _local + + + + e20976d6-df82-477e-807c-10699e868307 + PALNAME + 模型名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + d96a2fbc-498a-473f-a82f-72c0b71893d8 + ORGPERM + 组织权限,部门名称,逗号分隔 + TEXT + 2000 + true + + 200 + AWSUI.Address + {"placeholder":"","addressType":"dept","isLiveSearch":true,"addressSetting":{"delimiter":",","choiceType":"single","leafType":"dept"},"range":"all","isFullDeptPath":false,"deptSourceField":"DEPTID","deptTargetField":"ORGPERM"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 9fb66a90-997f-4811-ad94-b8403237d8b6 + POSTPERM + 岗位权限,岗位名称,逗号分隔 + TEXT + 2000 + true + + 200 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 9ebad961-737d-4c1d-a1a9-0966b696933a + LEVELPERM + 职级权限,职级名称,逗号分隔 + TEXT + 2000 + true + + 200 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 53cc9ebb-c1ee-4ff7-880f-e13410f1058b + LEVELFAIL + 未匹配到的职级 + TEXT + 2000 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + f018f7d7-d416-42bf-9ac0-527a9d3b7c48 + POSTFAIL + 未匹配到的岗位 + TEXT + 2000 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 1c5cf7ae-2e72-46f3-b16d-f4d0dc23aaf1 + ORGFAIL + 未匹配到的组织 + TEXT + 2000 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 5b557df5-a93a-433f-8604-70e4d2af569d + RESULT + 导入结果 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 48418d16-2b34-49f1-a6bb-e09e7faaa536 + SEND_SCOP + 权限范围(1:全集团,0:部分) + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 69c12aba-0f84-4c10-968d-e36b99facbd6 + PALVERSIONID + PAL模型版本ID + TEXT + 36 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 4e0fea9d-d0df-450c-9e72-036e823f0d59 + FRNAME + 架构名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 5c8187a9-fe1b-4f8f-a0d3-20500cb3edce + FILETYPE + 文件类型 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 7fcc6eea-d42a-4194-8430-f709bb9a6c1e + IDPLUBSH + 是否发布 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + cc21abdc-16c3-4ab6-8426-bc7d26327a71 + AWS_IN_C3A4CD81B919 + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_354355c2-cb66-4d1e-89b9-7db697964fd9/354355c2-cb66-4d1e-89b9-7db697964fd9.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_354355c2-cb66-4d1e-89b9-7db697964fd9/354355c2-cb66-4d1e-89b9-7db697964fd9.xml new file mode 100644 index 00000000..7c28596d --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_354355c2-cb66-4d1e-89b9-7db697964fd9/354355c2-cb66-4d1e-89b9-7db697964fd9.xml @@ -0,0 +1,165 @@ + + + 354355c2-cb66-4d1e-89b9-7db697964fd9 + admin + 2022-10-08 16:37:04 + admin + 2022-10-08 16:37:13 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrg+6PzlOIWrw4pxrXlsT7xUY5BB6n7LPo4oPjWvPGe3BRy0LNlP3CX9PWIW/6+NSR + false + 视图文件表状态修改记录表 + BO_EU_PAL_FILE_NULL_L + false + false + false + 文件处理 + admin + TABLE + + + 0 + _local + + + + 533add71-de64-4de7-86e6-c2e426345c8a + PLNAME + 模型名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + f23bd1b9-dbee-417e-bf47-480d3c788331 + FRAMEWORK + 架构名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + fa6da524-7945-447d-b2ba-b91a7431d1ab + VERSION + 版本号 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 3fc67753-79e8-4fac-81e0-b389dcf1b5fb + TYPE + 模型类型 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + ee0d67ab-4e95-4619-8093-e9237d195e5f + ISPUBLISH + 是否发布 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 2701a7ec-ba7e-47dd-ac90-e79c1451c5d5 + AWS_IN_97C860604815 + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_367a7e45-c3a7-435f-8213-49b52bb90663/367a7e45-c3a7-435f-8213-49b52bb90663.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_367a7e45-c3a7-435f-8213-49b52bb90663/367a7e45-c3a7-435f-8213-49b52bb90663.xml new file mode 100644 index 00000000..f9d89cbc --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_367a7e45-c3a7-435f-8213-49b52bb90663/367a7e45-c3a7-435f-8213-49b52bb90663.xml @@ -0,0 +1,87 @@ + + + 367a7e45-c3a7-435f-8213-49b52bb90663 + admin + 2022-11-11 18:20:09 + admin + 2022-11-11 18:20:43 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrEzSBflC67q2gyVl/Cm+xCAkd4be67Vcc8NJFrX1VucSif+JBYJ0JVKtosNVYvUyN + false + 批量刷新编号 + BO_EU_PAL_NOREFR + false + false + false + 文件处理 + admin + TABLE + + + 0 + _local + + + + 825d16c7-b8c7-4748-ba83-226890c589f8 + PLNAME + 模型名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + ab99a718-ed30-4249-a608-08bdac1d7a9c + PLID + 模型ID + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + fc0f5b4e-7eab-4b93-8db1-ac4c16c9125a + AWS_IN_A3DB3CD51D3E + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_3eb4ced6-bc73-4d9a-b263-21be6a51bbe8/3eb4ced6-bc73-4d9a-b263-21be6a51bbe8.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_3eb4ced6-bc73-4d9a-b263-21be6a51bbe8/3eb4ced6-bc73-4d9a-b263-21be6a51bbe8.xml new file mode 100644 index 00000000..d101a6ad --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_3eb4ced6-bc73-4d9a-b263-21be6a51bbe8/3eb4ced6-bc73-4d9a-b263-21be6a51bbe8.xml @@ -0,0 +1,165 @@ + + + 3eb4ced6-bc73-4d9a-b263-21be6a51bbe8 + admin + 2022-10-08 16:34:51 + admin + 2022-10-08 16:35:02 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrHsajck9EvGFZVXbIQ0F0b0lWdOeqymUNRn/L+uY0hQ5aVZlgxXQMRQnQ1k08lKKs + false + PAL空模型记录 + BO_EU__PAL_NULL_L + false + false + false + 文件处理 + admin + TABLE + + + 0 + _local + + + + 3764b0ee-b3dc-496c-a3ec-e5bbd1ae8beb + PLNAME + 模型名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 8f10f2bf-6209-4201-97ab-71c4b1b009c7 + FRAMEWORK + 架构名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 4cc1f3f4-3e0a-4351-8b14-b537ad81dd3d + VERSION + 版本号 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + a47b6c1d-dd1e-46b4-9b1c-5d6e5faa37e2 + TYPE + 模型类型 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 78ffa151-09d4-4137-ad1e-2b403976ca86 + ISPUBLISH + 是否发布 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 3f8ab66c-af1e-4e3a-9423-3c91ec1e6f38 + AWS_IN_CD17D2709D42 + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_522c9ad1-5ce3-4c3c-9aaf-39323976096b/522c9ad1-5ce3-4c3c-9aaf-39323976096b.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_522c9ad1-5ce3-4c3c-9aaf-39323976096b/522c9ad1-5ce3-4c3c-9aaf-39323976096b.xml new file mode 100644 index 00000000..79fd4b8c --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_522c9ad1-5ce3-4c3c-9aaf-39323976096b/522c9ad1-5ce3-4c3c-9aaf-39323976096b.xml @@ -0,0 +1,165 @@ + + + 522c9ad1-5ce3-4c3c-9aaf-39323976096b + admin + 2022-11-08 15:14:40 + admin + 2022-11-08 17:00:01 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr/35+jJ9btNe7O1DOrLZCeQXsMesrBq1hyDvQCZLxYOQ/WssNhZoGnD9hel1dHOnt + false + 补充推送待阅 + BO_EU_PAL_PUBLIC_SUPPLEMENT + false + false + false + 待办待阅 + admin + TABLE + + + 0 + _local + + + + 94fedce0-2cf7-4587-863d-29fac348d70a + PUBLISHUSERNAME + 补充发布申请人 + TEXT + 128 + false + @uid() + 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 + {"type":"org","orgtype":"user"} + + {} + + + 884f08ef-77f1-4f8b-a16f-ad6b07a7c54a + PUBLISHUSERTIME + 补发时间 + DATE + 0 + false + @datetime() + 100 + AWSUI.DateTime + {"placeholder":"","minDate":"","maxDate":"","showtype":"doubleCalendar","advSetting":"","dateFmt":"yyyy-MM-dd HH:mm:ss","showDayOfWeek":"false","dwfmt":"(EE)"} + true + false + false + + ENTITY + + + + 0 + + false + + + {} + + + 6362dce2-2e55-46a5-9adb-0b174aced8e2 + REASON + 补发原因 + TEXT + 500 + false + + 100 + AWSUI.Textarea + {"listHeight":"100","autoHeight":"false","placeholder":"","fnKey1":"false","fnKey2":"false","fnKey3":"false","lineFeed":"false","key":"","search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 0ad45698-431d-4d52-b1c9-7182937016ff + PUBLISHUSPROSSINSID + 关联发布ID + TEXT + 128 + false + + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"522c9ad1-5ce3-4c3c-9aaf-39323976096b","isAdvance":false,"mapping":{"source":"id","target":"this"},"display":"PROCESSTITLE","dataType":"localJDBC","data":{"sql":"select id,PROCESSTITLE from wfc_process where createuser !='admin'and PROCESSDEFID = 'obj_fb1c7a54b98b412187388c8bab407362'and CONTROLSTATE = 'end' and processtitle not like '%测试%'"},"valueTrans":"","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + ff781bff-81e9-45ca-9e59-bf871b962614 + PUBLISHTOUSER + 补充发送人员 + TEXT + 2000 + false + + 100 + AWSUI.Address + {"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":true,"companyList":"","addressSetting":{"rootDetpId":"","teamId":"","isDisplayMap":true,"isMapFormat":false,"hideSubDeptAsCompany":false,"layerFrom":"","layerTo":"","range":"department|team","delimiter":",","choiceType":"multiple","itemDisplayType":"all","leafType":"user","filterClass":"","sourceDataClass":""},"sourceField":"UID","targetField":"PUBLISHTOUSER"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 1d4e9b3d-3488-4097-8924-26d78ae434d1 + AWS_IN_DCF0DD99A2BC + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_522c9ad1-5ce3-4c3c-9aaf-39323976096b/522c9ad1-5ce3-4c3c-9aaf-39323976096b_1.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_522c9ad1-5ce3-4c3c-9aaf-39323976096b/522c9ad1-5ce3-4c3c-9aaf-39323976096b_1.xml new file mode 100644 index 00000000..85f511bb --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_522c9ad1-5ce3-4c3c-9aaf-39323976096b/522c9ad1-5ce3-4c3c-9aaf-39323976096b_1.xml @@ -0,0 +1,165 @@ + + + 522c9ad1-5ce3-4c3c-9aaf-39323976096b + admin + 2022-11-08 15:14:40 + admin + 2022-11-08 16:35:09 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr/35+jJ9btNe7O1DOrLZCeQXsMesrBq1hyDvQCZLxYOQ/WssNhZoGnD9hel1dHOnt + false + 补充推送待阅 + BO_EU_PAL_PUBLIC_SUPPLEMENT + false + false + false + 待办待阅 + admin + TABLE + + + 0 + _local + + + + 94fedce0-2cf7-4587-863d-29fac348d70a + PUBLISHUSERNAME + 补充发布申请人 + TEXT + 128 + false + @uid() + 100 + AWSUI.Text + {"search":"0"} + true + false + false + + ENTITY + + + + 0 + + false + + + {} + + + 884f08ef-77f1-4f8b-a16f-ad6b07a7c54a + PUBLISHUSERTIME + 补发时间 + DATE + 0 + false + @datetime() + 100 + AWSUI.Date + {} + true + false + false + + ENTITY + + + + 0 + + false + + + {} + + + 6362dce2-2e55-46a5-9adb-0b174aced8e2 + REASON + 补发原因 + TEXT + 500 + false + + 100 + AWSUI.Textarea + {"listHeight":"100","autoHeight":"false","placeholder":"","fnKey1":"false","fnKey2":"false","fnKey3":"false","lineFeed":"false","key":"","search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 0ad45698-431d-4d52-b1c9-7182937016ff + PUBLISHUSPROSSINSID + 关联发布ID + TEXT + 128 + false + + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"522c9ad1-5ce3-4c3c-9aaf-39323976096b","isAdvance":false,"mapping":{"source":"id","target":"this"},"display":"PROCESSTITLE","dataType":"localJDBC","data":{"sql":"select id,PROCESSTITLE from wfc_process where createuser !='admin'and PROCESSDEFID = 'obj_fb1c7a54b98b412187388c8bab407362'and CONTROLSTATE = 'end'"},"valueTrans":"","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + ff781bff-81e9-45ca-9e59-bf871b962614 + PUBLISHTOUSER + 补充发送人员 + TEXT + 2000 + false + + 100 + AWSUI.Address + {"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":",","choiceType":"multiple"},"deptSourceField":"","deptTargetField":""} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 1d4e9b3d-3488-4097-8924-26d78ae434d1 + AWS_IN_DCF0DD99A2BC + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_522c9ad1-5ce3-4c3c-9aaf-39323976096b/522c9ad1-5ce3-4c3c-9aaf-39323976096b_2.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_522c9ad1-5ce3-4c3c-9aaf-39323976096b/522c9ad1-5ce3-4c3c-9aaf-39323976096b_2.xml new file mode 100644 index 00000000..85ae7626 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_522c9ad1-5ce3-4c3c-9aaf-39323976096b/522c9ad1-5ce3-4c3c-9aaf-39323976096b_2.xml @@ -0,0 +1,165 @@ + + + 522c9ad1-5ce3-4c3c-9aaf-39323976096b + admin + 2022-11-08 15:14:40 + admin + 2022-11-08 16:19:53 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr/35+jJ9btNe7O1DOrLZCeQXsMesrBq1hyDvQCZLxYOQ/WssNhZoGnD9hel1dHOnt + false + 补充推送待阅 + BO_EU_PAL_PUBLIC_SUPPLEMENT + false + false + false + 待办待阅 + admin + TABLE + + + 0 + _local + + + + 94fedce0-2cf7-4587-863d-29fac348d70a + PUBLISHUSERNAME + 补充发布申请人 + TEXT + 128 + false + @uid() + 100 + AWSUI.Text + {"search":"0"} + true + false + false + + ENTITY + + + + 0 + + false + + + {} + + + 884f08ef-77f1-4f8b-a16f-ad6b07a7c54a + PUBLISHUSERTIME + 补发时间 + DATE + 0 + false + @datetime() + 100 + AWSUI.Date + {} + true + false + false + + ENTITY + + + + 0 + + false + + + {} + + + 6362dce2-2e55-46a5-9adb-0b174aced8e2 + REASON + 补发原因 + TEXT + 500 + false + + 100 + AWSUI.Textarea + {"listHeight":"100","autoHeight":"false","placeholder":"","fnKey1":"false","fnKey2":"false","fnKey3":"false","lineFeed":"false","key":"","search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 0ad45698-431d-4d52-b1c9-7182937016ff + PUBLISHUSPROSSINSID + 关联发布ID + TEXT + 128 + false + + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"522c9ad1-5ce3-4c3c-9aaf-39323976096b","isAdvance":false,"mapping":{"source":"id","target":"this"},"display":"PROCESSTITLE","dataType":"localJDBC","data":{"sql":"select id,PROCESSTITLE from wfc_process where createuser !='admin'and PROCESSDEFID = 'obj_fb1c7a54b98b412187388c8bab407362'and CONTROLSTATE = 'end' and processtitle not like '%测试%'"},"valueTrans":"","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + ff781bff-81e9-45ca-9e59-bf871b962614 + PUBLISHTOUSER + 补充发送人员 + TEXT + 2000 + false + + 100 + AWSUI.Address + {"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":",","choiceType":"multiple"},"deptSourceField":"","deptTargetField":""} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 1d4e9b3d-3488-4097-8924-26d78ae434d1 + AWS_IN_DCF0DD99A2BC + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_76ebd0a8-18ba-4bbd-8d7e-b6cfc41d50c9/76ebd0a8-18ba-4bbd-8d7e-b6cfc41d50c9.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_76ebd0a8-18ba-4bbd-8d7e-b6cfc41d50c9/76ebd0a8-18ba-4bbd-8d7e-b6cfc41d50c9.xml new file mode 100644 index 00000000..0c7c1950 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_76ebd0a8-18ba-4bbd-8d7e-b6cfc41d50c9/76ebd0a8-18ba-4bbd-8d7e-b6cfc41d50c9.xml @@ -0,0 +1,165 @@ + + + 76ebd0a8-18ba-4bbd-8d7e-b6cfc41d50c9 + admin + 2022-10-08 18:20:28 + admin + 2022-10-08 18:32:29 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrWeynaI03xuI9HMo3ooxzSdQCLFJ5zc2km5H/YGYCYMT9YIpI8250zLcxDLfBLFP1 + false + 状态更新子表 + BO_EU_PAL_SATE_SUB + false + false + false + 文件处理 + admin + TABLE + + + 0 + _local + + + + b65c0dd1-3f66-45ee-98ae-1e17344dc748 + PLNAME + 文件名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + d16657be-ca82-49f2-b711-2a07d7c86447 + PLID + 文件id + TEXT + 128 + true + + 100 + AWSUI.TreeDictionary + {"leafField":"PLPARENTID","leafValue":"0","leafS":"notEql","filterField":"","filterS":"","filterValue":"","filter":[],"multiselect":false,"checkInherit":true,"separator":",","allPath":false,"allPathSeparator":",","searchShow":"table","fileName":"$[PLNAME]","getFields":"PLNAME","displayField":"","fillBackFields":"PLID","pId":"PLPARENTID","dId":"ID","mapping":{"source":"PLNAME","target":"PLID"},"placeholder":"","dialogName":"","mappingRule":"leaf;parent;","iconCls":"","advCls":"","dataType":"localJDBC","data":{"sql":"select * from App_Act_Coe_Pal_Repository where PLPARENTID !='0'","rootSql":""},"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 56f7803e-d425-4ae3-a129-14c089567d32 + PLVESION + 文件版本 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 01c53b09-dd13-4383-9a85-db7e98cbdd18 + RESULT + 修订记录 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 8c904160-0eac-45b6-8a31-9e88d83698ae + PLFILE + 文件附件 + 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 + + + {} + + + + + 691173aa-6623-4c38-a3a9-aedab53bbdbc + AWS_IN_6B32B8815055 + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_7e437f57-2b41-4ccb-83b7-1898c2ef164b/7e437f57-2b41-4ccb-83b7-1898c2ef164b.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_7e437f57-2b41-4ccb-83b7-1898c2ef164b/7e437f57-2b41-4ccb-83b7-1898c2ef164b.xml new file mode 100644 index 00000000..3645d81b --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_7e437f57-2b41-4ccb-83b7-1898c2ef164b/7e437f57-2b41-4ccb-83b7-1898c2ef164b.xml @@ -0,0 +1,347 @@ + + + 7e437f57-2b41-4ccb-83b7-1898c2ef164b + admin + 2022-10-08 16:38:49 + admin + 2022-10-08 16:38:56 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr+mORKh8oFYSDp/5Ui47m5QjEsxpomU8hLcCYB6AtXgUR+APpgthraVd/RCDutRGi + false + 模型权限2 + BO_EU_PUBLISH_PERM_SCOPE2 + false + false + false + 权限处理 + admin + TABLE + + + 0 + _local + + + + a0885b07-ef19-4783-b15c-05544b0471bf + PERMID + 权限ID + TEXT + 36 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 2217d02b-ba23-4198-afe5-1025f891bc64 + WSID + 资产库ID + TEXT + 36 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 2a5cc44a-0f68-49fa-a342-356828cda137 + PALVERSIONID + PAL模型版本ID + TEXT + 36 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + a84bcb7d-eaa3-47c3-a5a2-dab1e74006ef + PALNAME + 模型名称(冗余字段) + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + dc303b83-2069-4b77-839b-8f447d52a836 + PERMTYPE + 权限类型 + TEXT + 64 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + a04d38b5-ccdc-47da-aecd-a302bcd062fa + ORGPERM + 组织权限,部门ID,逗号分隔 + TEXT + 2000 + true + + 200 + AWSUI.Address + {"placeholder":"","addressType":"dept","isLiveSearch":true,"addressSetting":{"delimiter":",","choiceType":"single","leafType":"dept"},"range":"all","isFullDeptPath":false,"deptSourceField":"DEPTID","deptTargetField":"ORGPERM"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 791ab96c-b10f-43d9-a1f1-231b39cfc8f5 + POSTPERM + 岗位权限,岗位ID,逗号分隔 + TEXT + 2000 + true + + 200 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 40b6cf3f-f605-4feb-8c31-0b4d4fa3d978 + LEVELPERM + 职级权限,职级ID,逗号分隔 + TEXT + 2000 + true + + 200 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + a3e4a115-e63b-4152-b1cd-b1b437e3a528 + EXT1 + 备用字段1 + TEXT + 36 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + eb6d0702-402b-4b1f-aeb0-e5453990d122 + EXT2 + 备用字段2 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + d0095911-1748-42c8-89e3-2e47861697fe + EXT3 + 备用字段3 + TEXT + 256 + true + + 150 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + fc7f5add-70cb-4014-a767-68c0e1e1ebf4 + EXT4 + 备用字段4 + TEXT + 512 + true + + 200 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 5cb29808-6d12-45dc-8701-74e102ac7402 + AWS_IN_FC70D561C8B7 + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_80e2f9d6-5e3b-46ba-b80a-770710ed2210/80e2f9d6-5e3b-46ba-b80a-770710ed2210.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_80e2f9d6-5e3b-46ba-b80a-770710ed2210/80e2f9d6-5e3b-46ba-b80a-770710ed2210.xml new file mode 100644 index 00000000..ce831355 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_80e2f9d6-5e3b-46ba-b80a-770710ed2210/80e2f9d6-5e3b-46ba-b80a-770710ed2210.xml @@ -0,0 +1,217 @@ + + + 80e2f9d6-5e3b-46ba-b80a-770710ed2210 + admin + 2022-10-25 16:08:30 + admin + 2022-10-28 12:03:17 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr3SyxrdZbejWVEcffzXmnFAZqQLJ0X2IuSPKFmjsSjDLFW43Pm0PVW2yDt+s69LwH + false + PAL错误模型统计 + BO_EU_PAL_ERROR_FILE + false + false + false + 文件处理 + admin + TABLE + + + 0 + _local + + + + b3205bd8-cc68-4a55-9e56-0b65e0cd53f9 + PLNAME + 模型名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 70535008-b037-4425-bd62-2a3ee816936a + FRAMEWORK + 架构名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 288f43d5-acf4-445b-8ea6-1b17a9cab0a7 + VERSION + 版本号 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 55f85831-6fe3-4583-a4fb-5b773cc1b627 + TYPE + 模型类型 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 1476b894-a9bc-4350-b48b-ffd654e0cde2 + ISPUBLISH + 是否发布 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 3749e33b-d9a4-4571-bcb4-db72d92a4b38 + ERRORTYPE + 错误类型 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 244124ed-da54-4076-af63-7e75ed9a4330 + PLID + 模型ID + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 04c9137d-f16c-4f0a-8e68-f551da6ee119 + AWS_IN_AD03B9701380 + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_831ed6e3-df83-417f-85c0-2b17fd443eef/831ed6e3-df83-417f-85c0-2b17fd443eef.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_831ed6e3-df83-417f-85c0-2b17fd443eef/831ed6e3-df83-417f-85c0-2b17fd443eef.xml new file mode 100644 index 00000000..174ca338 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_831ed6e3-df83-417f-85c0-2b17fd443eef/831ed6e3-df83-417f-85c0-2b17fd443eef.xml @@ -0,0 +1,139 @@ + + + 831ed6e3-df83-417f-85c0-2b17fd443eef + admin + 2022-10-12 14:50:14 + admin + 2022-10-12 15:30:22 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrYGgreD50ydf2hWRt5SZDBaiNgOLALW9T7hRmbe/OLRUhSVPdlwM7HWVDGC0obLhU + false + 无预览权限的模型统计 + BO_EU_PAL_NULL_PREM + false + false + false + 权限处理 + admin + TABLE + + + 0 + _local + + + + eb54caed-fbb9-4577-9e06-e2c902e79ff6 + PALNAME + 模型名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + aed1e6d4-144d-46e7-8d59-d4760805bc49 + ORGPERM + 组织权限,部门名称,逗号分隔 + TEXT + 2000 + true + + 200 + AWSUI.Address + {"placeholder":"","addressType":"dept","isLiveSearch":true,"addressSetting":{"delimiter":",","choiceType":"single","leafType":"dept"},"range":"all","isFullDeptPath":false,"deptSourceField":"DEPTID","deptTargetField":"ORGPERM"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + f2b9d07e-293e-4c83-8751-1e9014f3d42e + POSTPERM + 岗位权限,岗位名称,逗号分隔 + TEXT + 2000 + true + + 200 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 88dfa773-5714-4949-a26e-e3182c66d6d7 + LEVELPERM + 职级权限,职级名称,逗号分隔 + TEXT + 2000 + true + + 200 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + cc21abdc-16c3-4ab6-8426-bc7d26327a71 + AWS_IN_951170FF5C70 + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_889193c3-fade-4075-8b4e-69403a3bf34d/889193c3-fade-4075-8b4e-69403a3bf34d.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_889193c3-fade-4075-8b4e-69403a3bf34d/889193c3-fade-4075-8b4e-69403a3bf34d.xml new file mode 100644 index 00000000..6dd70355 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_889193c3-fade-4075-8b4e-69403a3bf34d/889193c3-fade-4075-8b4e-69403a3bf34d.xml @@ -0,0 +1,139 @@ + + + 889193c3-fade-4075-8b4e-69403a3bf34d + admin + 2022-10-17 16:11:33 + admin + 2022-10-17 16:11:33 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrjvueaO4iSDlLh9v2JV9aHQzAgek5DhRI7EhkSM1fqYaHNbEciz3nJNBAzWI4/RFG + false + 文件批量发布 + BO_EU_PAL_PLFB + false + false + false + 文件处理 + admin + TABLE + + + 0 + _local + + + + 416588f5-ad38-49b6-ac06-6f92038e8d6d + FRAMEWORKNAME + 所属架构 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 6eed1b24-c2f5-4eb3-b1fa-c2c969a70419 + PLNAME + 文件名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 085042cf-ac9c-4f17-8411-7fb627184167 + ISPUBLISH + 是否发布 + TEXT + 128 + true + + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"c304434f-3c94-476a-9cfc-c862e7af4925","isAdvance":false,"dataType":"sampleText","data":"否|是","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 4117c778-8eba-42f8-9bf5-d91f0d7eae02 + PLID + 文件id + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 2f8ceec9-05b0-46d6-b2d7-68e4672f8b3c + AWS_IN_D3B1F10EB3CE + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_ab099a54-8a8d-46f1-b359-a4ac64b014fc/ab099a54-8a8d-46f1-b359-a4ac64b014fc.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_ab099a54-8a8d-46f1-b359-a4ac64b014fc/ab099a54-8a8d-46f1-b359-a4ac64b014fc.xml new file mode 100644 index 00000000..fca3fa94 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_ab099a54-8a8d-46f1-b359-a4ac64b014fc/ab099a54-8a8d-46f1-b359-a4ac64b014fc.xml @@ -0,0 +1,269 @@ + + + ab099a54-8a8d-46f1-b359-a4ac64b014fc + admin + 2022-10-10 23:32:43 + admin + 2022-10-11 12:33:25 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrE/bRWliEMOyg4nDfR/YTGM+e+jx+7IXvEoXLCa7maOw0v4psHHGkw3cGCtQZsP+j + false + 手册预览加载日志 + BO_EU_PAL_OUTPUTREPORT + false + false + false + 手册日志 + admin + TABLE + + + 0 + _local + + + + 757dbcd5-b8a5-4c69-ba9a-36f2f70ce590 + PLNAME + 模型名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 4b539719-6108-43ae-8d34-6c1f7b578009 + PLVERSION + 模型版本 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 8588a110-e1bb-4463-affa-6411d9018183 + PLMETHODID + 模型类型 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 79559b7c-1e17-4aae-975f-ab5ffee5702a + FILEURL + 预览链接 + TEXT + 2000 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 8360ff1f-65cc-4e04-a2bb-e1ebd9561a01 + RESULT + 转换结果 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + db2cc759-a980-471b-ac93-0cc58c825f62 + PLID + 模型Id + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 3a61a352-b04f-4680-a8af-fa9b0f168d1c + FRNAME + 架构名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 74b21635-1c16-4173-8279-1456012d99c9 + TASKID + 手册ID + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + f77ab97d-d142-4ea5-9554-98d94d664292 + REMARKS + 备注 + TEXT + 500 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 4acff1e2-560f-46d0-a937-d0b93a5d6841 + AWS_IN_36554669B514 + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_c15fc899-941a-42f6-ba3c-b72029e1ae3f/c15fc899-941a-42f6-ba3c-b72029e1ae3f.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_c15fc899-941a-42f6-ba3c-b72029e1ae3f/c15fc899-941a-42f6-ba3c-b72029e1ae3f.xml new file mode 100644 index 00000000..6cc91778 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_c15fc899-941a-42f6-ba3c-b72029e1ae3f/c15fc899-941a-42f6-ba3c-b72029e1ae3f.xml @@ -0,0 +1,243 @@ + + + c15fc899-941a-42f6-ba3c-b72029e1ae3f + admin + 2022-10-28 17:29:49 + admin + 2022-11-02 12:15:27 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr3SyxrdZbejWVEcffzXmnFAZqQLJ0X2IuSPKFmjsSjDLFW43Pm0PVW2yDt+s69LwH + false + 模型编号刷新记录 + BO_EU_PAL_NOREFRESH + false + false + false + 文件处理 + admin + TABLE + + + 0 + _local + + + + b50ac29a-3d5c-4eb1-bc42-2ae2d5960a23 + PLNAME + 模型名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 5368044f-e974-4c55-9c8a-7c58d3fbe35f + FRAMEWORK + 架构名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + c8791af9-59a0-48e7-96d9-7dfe548e6d01 + VERSION + 版本号 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + f143f6de-11c1-450e-b903-d37d4406f138 + TYPE + 模型类型 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + a8a41c8b-ab6c-46f1-84f8-b377b46aab2a + ISPUBLISH + 是否发布 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 5ee18018-b13f-42cc-9b7e-b925247fd28c + PLID + 模型ID + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 0bf562ed-a1b2-4cae-a256-3769e51f9c8f + RESULT + 刷新结果 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + d77414c6-a11b-4109-83d2-1609c35a6968 + RESULTSTR + 返回结果记录 + TEXT + 2000 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 04c9137d-f16c-4f0a-8e68-f551da6ee119 + AWS_IN_2353BAF2BABC + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_c23af0a0-f19d-4b03-b2d8-8e6a6303c3b7/c23af0a0-f19d-4b03-b2d8-8e6a6303c3b7.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_c23af0a0-f19d-4b03-b2d8-8e6a6303c3b7/c23af0a0-f19d-4b03-b2d8-8e6a6303c3b7.xml new file mode 100644 index 00000000..16de2b2b --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_c23af0a0-f19d-4b03-b2d8-8e6a6303c3b7/c23af0a0-f19d-4b03-b2d8-8e6a6303c3b7.xml @@ -0,0 +1,87 @@ + + + c23af0a0-f19d-4b03-b2d8-8e6a6303c3b7 + admin + 2022-10-08 18:19:03 + admin + 2022-10-08 18:19:55 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrkRcTfTKcjRTSJc+9Xir4/bkCmBLuG2kWTwLqqwIYYCKOQbBAQjS12Y16Lz760bUS + false + 文件状态更新 + BO_EU_PAL_SATE + false + false + false + 文件处理 + admin + TABLE + + + 0 + _local + + + + 16c30807-0bd3-43d0-ab7a-4747a5d83e12 + USERNAME + 发起人 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + f75bcfa3-06d0-48cc-93a5-bea670da4324 + CREATETIME + 创建日期 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 72487484-9668-4ef9-9fb4-4de32acdbc28 + AWS_IN_7E498EF6318E + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_ce01c5ab-af41-43e7-996a-ee7fe12f9842/ce01c5ab-af41-43e7-996a-ee7fe12f9842.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_ce01c5ab-af41-43e7-996a-ee7fe12f9842/ce01c5ab-af41-43e7-996a-ee7fe12f9842.xml new file mode 100644 index 00000000..0f050c3c --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_ce01c5ab-af41-43e7-996a-ee7fe12f9842/ce01c5ab-af41-43e7-996a-ee7fe12f9842.xml @@ -0,0 +1,165 @@ + + + ce01c5ab-af41-43e7-996a-ee7fe12f9842 + admin + 2022-11-04 17:49:29 + admin + 2022-11-04 17:51:38 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrUM9qdDs49JLlT+VyfBQzCtRm/vYfYfeUpb8QZxHIOgIEe+AnSMJZkbEP2iip4alX + false + 待阅文件统计 + BO_EU_PAL_SEND_OA_COUNT + false + false + false + 待办待阅 + admin + TABLE + + + 0 + _local + + + + 2beec695-98f8-45d0-ae36-f5cf1ccd515e + TITLE + 文件标题 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 37f051ef-b470-4edc-b79a-01fe514de93f + YGNUM + 应该推送的人数 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 17bfceb5-2b17-498a-8687-55d2ee4f69f7 + SJNUM + 实际推送人数 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + ea60d0f8-8a8c-44c1-91ee-a727d94ff16d + TIME + 推送时间 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 0bb831b2-c6c7-4a0e-91b9-80e54597b7f3 + NAME + 发布人 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 6bc7ee35-2c63-4686-a1bf-4f6fc4c4d548 + AWS_IN_0F16C5243E3A + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_cea1b185-e136-40db-9c78-1e1960259906/cea1b185-e136-40db-9c78-1e1960259906.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_cea1b185-e136-40db-9c78-1e1960259906/cea1b185-e136-40db-9c78-1e1960259906.xml new file mode 100644 index 00000000..ca746eaf --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_cea1b185-e136-40db-9c78-1e1960259906/cea1b185-e136-40db-9c78-1e1960259906.xml @@ -0,0 +1,139 @@ + + + cea1b185-e136-40db-9c78-1e1960259906 + admin + 2022-10-08 16:36:04 + admin + 2022-10-08 16:36:14 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrjvueaO4iSDlLh9v2JV9aHQzAgek5DhRI7EhkSM1fqYaHNbEciz3nJNBAzWI4/RFG + false + 批量发布过滤表 + BO_EU_BATCH_PUBLIS_NL + false + false + false + 文件处理 + admin + TABLE + + + 0 + _local + + + + e6fb3504-d7c5-417d-89f5-a51cc0b87d35 + FRAMEWORKNAME + 所属架构 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 289ee407-fcfe-44c2-9496-1765c7f11c92 + PLNAME + 文件名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + db55a841-cdb2-4c43-893e-b8f78f5b3759 + ISPUBLISH + 是否发布 + TEXT + 128 + true + + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"c304434f-3c94-476a-9cfc-c862e7af4925","isAdvance":false,"dataType":"sampleText","data":"否|是","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 55a95463-9434-4277-89a7-ffc514d4fc11 + PLID + 文件id + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 2f8ceec9-05b0-46d6-b2d7-68e4672f8b3c + AWS_IN_D3B1F10EB3CE + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_db21b816-bb47-4732-a2aa-f84432e1be64/db21b816-bb47-4732-a2aa-f84432e1be64.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_db21b816-bb47-4732-a2aa-f84432e1be64/db21b816-bb47-4732-a2aa-f84432e1be64.xml new file mode 100644 index 00000000..816d3c2d --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_db21b816-bb47-4732-a2aa-f84432e1be64/db21b816-bb47-4732-a2aa-f84432e1be64.xml @@ -0,0 +1,87 @@ + + + db21b816-bb47-4732-a2aa-f84432e1be64 + admin + 2022-11-08 18:57:19 + admin + 2022-11-11 13:30:50 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrPYftT0uteVD4XioLpqQ8suLbZ3ZLJYMAZS5YD++Aa/OC4jzrt+ue20ZywHJd9FYs + false + 测试表 + BO_EU_TEST_01 + false + false + false + 待办待阅 + admin + TABLE + + + 0 + _local + + + + a251b9e0-ac77-4c7e-98ef-133f992cb8ed + TEST1 + 测试字段1 + TEXT + 2000 + true + 111 + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + f253b46c-9cfc-4ac8-8b9b-7efcba1f2b7f + TEST2 + 测试字段2 + BIGTEXT + 200000 + 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 + + + {} + + + + + 670d6baf-122c-4ff2-bee6-ae56f781b2bc + AWS_IN_5F00CF983124 + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_e407996d-58c4-4964-a907-fafbb050ed63/e407996d-58c4-4964-a907-fafbb050ed63.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_e407996d-58c4-4964-a907-fafbb050ed63/e407996d-58c4-4964-a907-fafbb050ed63.xml new file mode 100644 index 00000000..8629ef78 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_e407996d-58c4-4964-a907-fafbb050ed63/e407996d-58c4-4964-a907-fafbb050ed63.xml @@ -0,0 +1,165 @@ + + + e407996d-58c4-4964-a907-fafbb050ed63 + admin + 2022-11-10 21:32:53 + admin + 2022-11-10 21:54:17 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrpFs9EcYRRhhn4Odef/cnPh4Hxf9nQq5fFsmqgkEUa0jCOBY5iadI+keJbHJI8sBu + false + 用户系统登录日志 + BO_EU_SYS_LOGIN_LOG + false + false + false + 待办待阅 + admin + TABLE + + + 0 + _local + + + + 8da87ee1-6f59-4255-8f85-37f867bba201 + USERID + 登录账号 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 03df7d89-b53b-4bf2-8ad6-c710cc4dc6bb + LOGTIME + 登录时间 + DATE + 0 + true + + 100 + AWSUI.Date + {} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + a40ff9b3-1013-4dff-bf03-56c48b231c47 + USERDEP + 部门名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 2b4fca45-f105-452e-a010-8fc68b13bce5 + USERBU + 事业部名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 990b8045-720d-4abe-a4ad-f276401afb7a + USERPOST + 岗位名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 6049f4eb-1fc1-495e-8679-e5c640695d6f + AWS_IN_E42399356FC8 + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_eb96d7bd-37da-4c8c-9763-6246a5de81dc/eb96d7bd-37da-4c8c-9763-6246a5de81dc.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_eb96d7bd-37da-4c8c-9763-6246a5de81dc/eb96d7bd-37da-4c8c-9763-6246a5de81dc.xml new file mode 100644 index 00000000..c51ea6ef --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_eb96d7bd-37da-4c8c-9763-6246a5de81dc/eb96d7bd-37da-4c8c-9763-6246a5de81dc.xml @@ -0,0 +1,113 @@ + + + eb96d7bd-37da-4c8c-9763-6246a5de81dc + admin + 2022-10-09 21:20:31 + admin + 2022-10-09 21:21:58 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrm7Ap+WY7+UBkR5CpOkc/XnuYKuuVIajP4pNC7up3yobJqHQ7TdGEiRuEwOcmbUTb + false + 制度手册生成错误记录 + BO_EU_PAL_OUT_ZD + false + false + false + 权限处理 + admin + TABLE + + + 0 + _local + + + + 2364dc24-3330-40ca-9f52-529274317867 + PLNAME + 文件名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 70a5b9ff-a993-4679-972c-515f3d685dc1 + PLID + 文件id + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 8e913339-423e-4b53-8725-6b7f33874822 + ERROR + 报错信息 + TEXT + 2000 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 14d8dd91-c12f-4cba-9410-55c171e34e1a + AWS_IN_1D123C1D55E5 + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_f1531b24-fe88-4d6a-a7ce-6cde9ade9c6a/f1531b24-fe88-4d6a-a7ce-6cde9ade9c6a.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_f1531b24-fe88-4d6a-a7ce-6cde9ade9c6a/f1531b24-fe88-4d6a-a7ce-6cde9ade9c6a.xml new file mode 100644 index 00000000..7ab9ac74 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_f1531b24-fe88-4d6a-a7ce-6cde9ade9c6a/f1531b24-fe88-4d6a-a7ce-6cde9ade9c6a.xml @@ -0,0 +1,165 @@ + + + f1531b24-fe88-4d6a-a7ce-6cde9ade9c6a + admin + 2022-10-09 09:04:30 + admin + 2022-10-09 09:04:30 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrHsajck9EvGFZVXbIQ0F0b0lWdOeqymUNRn/L+uY0hQ5aVZlgxXQMRQnQ1k08lKKs + false + 空文件记录 + BO_EU_PAL_NULL_FILE + false + false + false + 文件处理 + admin + TABLE + + + 0 + _local + + + + df5c1e93-8423-4208-b9af-6c0d4e1c50f0 + PLNAME + 模型名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 8b64fc76-8be3-40d7-a4ff-130618cdc45f + FRAMEWORK + 架构名称 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + dc358efb-49f0-4053-a338-94b1b345b5b4 + VERSION + 版本号 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + a15ebb36-27e8-41f5-b031-4ac0428ff52e + TYPE + 模型类型 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + f04edf38-7bd7-4933-821b-41cbc0fa3c68 + ISPUBLISH + 是否发布 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + 3f8ab66c-af1e-4e3a-9423-3c91ec1e6f38 + AWS_IN_CD17D2709D42 + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/bo/_f17c4bf4-67d2-4d33-8b05-055e258c6fc2/f17c4bf4-67d2-4d33-8b05-055e258c6fc2.xml b/com.awspaas.user.apps.app20221008163300/repository/bo/_f17c4bf4-67d2-4d33-8b05-055e258c6fc2/f17c4bf4-67d2-4d33-8b05-055e258c6fc2.xml new file mode 100644 index 00000000..cb6349da --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/bo/_f17c4bf4-67d2-4d33-8b05-055e258c6fc2/f17c4bf4-67d2-4d33-8b05-055e258c6fc2.xml @@ -0,0 +1,425 @@ + + + f17c4bf4-67d2-4d33-8b05-055e258c6fc2 + admin + 2022-11-07 09:35:24 + admin + 2022-11-08 17:07:20 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrVe4S2yn1JjIbz0tq0/PZqUmhz9nG1aiUTBDT/5/Lzv/Llb09+BLaKli4j27HZa5a + false + 发布成功回执 + BO_EU_PAL_PULBISH_SUCCESS + false + false + false + 待办待阅 + admin + TABLE + + + 0 + _local + + + + 32bc5b41-c0a9-449e-9f8b-61fb1b6848d9 + USREID + 发布人账号 + TEXT + 36 + true + + 100 + AWSUI.Address + {"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":" ","choiceType":"multiple"},"deptSourceField":"","deptTargetField":""} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 56c8427d-d360-48cc-800b-eb0d4dac1229 + DEPID + 部门ID + TEXT + 36 + true + + 100 + AWSUI.Address + {"placeholder":"","addressType":"dept","isLiveSearch":true,"addressSetting":{"delimiter":",","choiceType":"single","leafType":"dept"},"range":"all","isFullDeptPath":false,"deptSourceField":"DEPTID","deptTargetField":"DEPID"} + true + false + true + + ENTITY + + + + 0 + + false + {"type":"org","orgtype":"dept"} + + {} + + + 4ac2bd65-871b-4ce8-bf71-f68923ee112c + BUNAME + 事业部名称 + TEXT + 36 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + c4530591-1212-4a45-823a-32a43b5e83ea + TITLE + 发布文件标题 + TEXT + 500 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 92d71f4c-509c-4fd7-ae1c-ba1d38509d85 + PROCESSID + 发布流程实例Id + TEXT + 36 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + fb3fdebc-87f7-4303-bc51-a84fd66f7278 + SENDNUM + 应发人员总数 + NUMBER + 10 + true + + 80 + AWSUI.Number + {} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 9be813b1-036d-4a70-aa27-177f44136105 + SENDNUMSJ + 实际发送人员总数 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + f05982b7-2dcf-4d68-91b9-3ccefb0891bd + READNUM + 已读人数 + NUMBER + 10 + true + + 80 + AWSUI.Number + {} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 338f81e5-1bee-4e7d-9e77-d799d27eb959 + SEND_SCOP + 是否发送全公司 + TEXT + 36 + true + + 100 + AWSUI.ComboBox + {"placeholder":"","boItemId":"cde0cf5a-7b48-4fba-90ee-dbfcb09ace84","isAdvance":false,"dataType":"sampleText","data":"1:是|0:否","mode":"common","exportDataValidity":true,"setunival":true,"boUrlFormData":{"hrefSelVal":"nothing"}} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 71b531cc-8ecd-4fd3-b806-6dd777b1c2c3 + SEND_SCOPE_ORGNUM + 发送组织数量 + NUMBER + 10 + true + + 80 + AWSUI.Number + {} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 02eb5ee4-0713-4d14-9215-a801e0e27aec + SEND_SCOPE_POST_NUM + 发送岗位数量 + NUMBER + 10 + true + + 80 + AWSUI.Number + {} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + 81e0b099-352f-4a07-aab8-dd0a9fb330bb + SEND_SCOPE_LEVEL_NUM + 发送职级数量 + NUMBER + 10 + true + + 80 + AWSUI.Number + {} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + fd55e766-c356-4317-b656-09af3abadd7a + TIMECOUNT + 总共用时 + TEXT + 128 + true + + 100 + AWSUI.Text + {"search":"0"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + ee751a98-67c4-4c99-981a-4c2463739b9b + STARTTIMES + 开始时间 + DATE + 0 + true + + 100 + AWSUI.DateTime + {"placeholder":"","minDate":"","maxDate":"","showtype":"doubleCalendar","advSetting":"","dateFmt":"yyyy-MM-dd HH:mm:ss","showDayOfWeek":"false","dwfmt":"(EE)"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + b51d20d8-1403-4a30-9883-06c362075531 + ENDTIMES + 结束时间 + DATE + 0 + true + + 100 + AWSUI.DateTime + {"placeholder":"","minDate":"","maxDate":"","showtype":"doubleCalendar","advSetting":"","dateFmt":"yyyy-MM-dd HH:mm:ss","showDayOfWeek":"false","dwfmt":"(EE)"} + true + false + true + + ENTITY + + + + 0 + + false + + + {} + + + + + dfb87a06-a1fc-4ec5-b459-ae39ab2b5d8f + AWS_IN_EE34885DA5B7 + INDEX + BINDID + + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_2521be8c988942109be6c7dd41a358c5/obj_2521be8c988942109be6c7dd41a358c5.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_2521be8c988942109be6c7dd41a358c5/obj_2521be8c988942109be6c7dd41a358c5.xml new file mode 100644 index 00000000..f9205189 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_2521be8c988942109be6c7dd41a358c5/obj_2521be8c988942109be6c7dd41a358c5.xml @@ -0,0 +1,61 @@ + + + obj_2521be8c988942109be6c7dd41a358c5 + admin + 2022-11-09 19:56:43 + admin + 2022-11-20 11:32:44 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr3VrbwLvWLa3SYtgGSHYTbiTmYlaRF1/1ZG/NzeSOw7yScTiv5aSTKdSSsOMmPgi9 + false + 1.0 + obj_2521be8c988942109be6c7dd41a358c5 + + 待办待阅 + 1 + admin + + <dataView id="obj_2be0a2bc94bc4183928100accb2f11bc" label="统计表" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams>%7B%22dataMode%22%3A%7B%22mobile%22%3A%7B%22type%22%3A%22list%22%2C%22templateJSON%22%3A%7B%22children%22%3A%5B%7B%22children%22%3A%5B%7B%22children%22%3A%5B%7B%22field%22%3A%22DW-NO-CONTENT%7Etitle%22%2C%22style%22%3A%7B%22color%22%3A%22%233383da%22%2C%22fontSize%22%3A%2214px%22%2C%22fontWeight%22%3A%22bold%22%7D%2C%22id%22%3A%22obj_c2f4b1dd7463437fadb9d5e840d05f80%22%7D%5D%2C%22span%22%3A14%2C%22id%22%3A%22obj_5647dd3e80a4429f85cbc5c6a4bb3e1b%22%7D%2C%7B%22children%22%3A%5B%7B%22field%22%3A%22DW-NO-CONTENT%7Edate%22%2C%22id%22%3A%22obj_9e914938183d4dc19123b0fcbaeb835a%22%7D%5D%2C%22style%22%3A%7B%22textAlign%22%3A%22right%22%7D%2C%22span%22%3A10%2C%22id%22%3A%22obj_11aa9e083bd743f5ad323861a087e345%22%7D%5D%2C%22id%22%3A%22obj_99d619e917a145c3809a156f401a3587%22%7D%2C%7B%22children%22%3A%5B%7B%22children%22%3A%5B%7B%22field%22%3A%22DW-NO-CONTENT%7Econtent%22%2C%22id%22%3A%22obj_1c6c158fe2a742ebab37e8b46eb78ed6%22%7D%5D%2C%22id%22%3A%22obj_efc2ab59234f40e7bde02cf0204aec1c%22%7D%5D%2C%22id%22%3A%22obj_97c63588ffa14733a916a2c8b19fa24c%22%7D%2C%7B%22children%22%3A%5B%7B%22children%22%3A%5B%7B%22field%22%3A%22DW-NO-CONTENT%7Eremarks%22%2C%22style%22%3A%7B%22fontSize%22%3A%2212px%22%7D%2C%22id%22%3A%22obj_d2b23288243c426fa2c443489cc543d3%22%7D%5D%2C%22id%22%3A%22obj_50f1ceb0330647a8be0dd851530e7073%22%7D%5D%2C%22style%22%3A%7B%22marginTop%22%3A%2212px%22%7D%2C%22id%22%3A%22obj_b49e11ce8ea4474f993743e8a64b5b49%22%7D%5D%2C%22id%22%3A%22obj_0e3e5674297f4fcbada37e100f4c7a6c%22%7D%7D%2C%22pc%22%3A%7B%22type%22%3A%22table%22%2C%22templateJSON%22%3A%7B%7D%7D%7D%2C%22dataModeBack%22%3A%7B%22pc%22%3A%7B%7D%2C%22mobile%22%3A%7B%7D%7D%7D</dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_0af133776c2f4f3fb64d3f20458bfdce" isshow="true" extendcode="" event=""> + <button id="obj_60fff7abe4d64b439410661ef73edcd8" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_19d45f4e3ce0414198139aa44f95c32c" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_e0cbe111971a49a4b47b37a12b0bf001" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_daa02c1a93ed451e98a7cd4dfc0be1f8" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_a6b3fdb70ee74341ac2b8e5a196bb4d3" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_3f5e0d7911f84559ac7b90b75bf03888" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_dda53f6829974d07b172dc0be8ee3066" isshow="true" layoutType="tile" tdGroup="4" tileLayout="x" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="true"> + <likecondition id="obj_bc486fc68df149bf9607989152766af2" field="USER_ID" extend1="" label="接收人" comparetype="=" uiname="TEXT" relationship="" uidefault="" uicomponent="地址簿" uiref="{"placeholder":"","addressType":"user","isLiveSearch":true,"isAdvMode":false,"addressSetting":{"isMapFormat":false,"delimiter":" ","choiceType":"single"},"deptSourceField":"","deptTargetField":""}" required="false" security="" orderindex="0" event=""/> + <likecondition id="obj_30fff6c81b414d4492741827b49f9439" field="READSTATE" extend1="" label="阅读状态" comparetype="=" uiname="TEXT" relationship="" uidefault="" uicomponent="列表" uiref="{"type":"NORMAL","cons":"未读:未读|已读:已读","showAdv":false}" required="false" security="" orderindex="1" event=""/> + </searcher> + <navTree id="obj_0950f8022d0a434da04f892e34835b3e" isshow="true" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_0d35fce3941948bea27994a67af9d07f" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_a99053fd49cd4c10a0d7ba6f4e831448" isshow="true" autoSearch="true" customSet="true" select="false" datasource="sql:SELECT * FROM BO_ACT_DATAID" countSql="" pagesize="200" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="2f27d564-70f6-440b-8bda-e6ad5cdc0cf6" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="253" colALias="" colTableAlias="" colTable="BO_ACT_DATAID" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TITLE" label="文件标题" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="78c0f98b-7d19-4a54-bff8-2854af8b312c" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="87" colALias="" colTableAlias="" colTable="BO_ACT_DATAID" length="36" required="0" align="center" showrule="{"type":"org","orgtype":"user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CREATEUSER" label="发布人" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="0e624844-f468-4eb3-a91c-cc81269eed52" sort="desc" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="179" colALias="" colTableAlias="" colTable="BO_ACT_DATAID" length="7" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CREATEDATE" label="发送时间" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="afd8e308-a31d-4afb-89c8-258ae04c33cd" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="86" colALias="" colTableAlias="" colTable="BO_ACT_DATAID" length="128" required="0" align="center" showrule="{"type":"NORMAL","cons":"true:成功","showAdv":false}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="发送结果" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="c15ea41b-8286-448a-a6f1-65284a339479" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="95" colALias="" colTableAlias="" colTable="BO_ACT_DATAID" length="128" required="0" align="center" showrule="{"type":"org","orgtype":"user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="USER_ID" label="接收人" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="5a036974-88b7-4374-9775-06d0c56eb83b" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="110" colALias="" colTableAlias="" colTable="BO_ACT_DATAID" length="128" required="0" align="left" showrule="{"type":"org","orgtype":"dept"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="USERDEP" label="接收人部门" orderindex="5" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="bc1c99b0-b14c-4bdc-a5d9-732673f6943e" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="91" colALias="" colTableAlias="" colTable="BO_ACT_DATAID" length="128" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="READSTATE" label="阅读状态" orderindex="6" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="872f3cb2-f145-4c89-bb90-7ba22cedecd5" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="140" colALias="" colTableAlias="" colTable="BO_ACT_DATAID" length="7" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="READTIMES" label="阅读时间" orderindex="7" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="1945f96a-9ca2-4e4b-8567-da2265d1bf29" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="95" colALias="" colTableAlias="" colTable="BO_ACT_DATAID" length="39" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="READCOUNT" label="阅读次数" orderindex="8" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="be0ad291-b6df-4e94-946c-4f77e31a5857" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="110" colALias="" colTableAlias="" colTable="BO_ACT_DATAID" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ID" label="ID" orderindex="9" colbehaviortarget="" ishidden="true" export="true" backHide="false" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="9dea0252-4e5f-406c-81c2-8b36a583fcc3" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_ACT_DATAID" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PROCESSID" label="PROCESSID" orderindex="10" colbehaviortarget="" ishidden="true" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_35c0ed6d08b8439f9f8ef5fcef01ab27/obj_35c0ed6d08b8439f9f8ef5fcef01ab27.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_35c0ed6d08b8439f9f8ef5fcef01ab27/obj_35c0ed6d08b8439f9f8ef5fcef01ab27.xml new file mode 100644 index 00000000..1a2f2690 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_35c0ed6d08b8439f9f8ef5fcef01ab27/obj_35c0ed6d08b8439f9f8ef5fcef01ab27.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_35c0ed6d08b8439f9f8ef5fcef01ab27</id> + <createUser>admin</createUser> + <createTime>2022-10-24 20:10:39</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-24 20:13:29</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrts8XCtAMYaozR+HcVeQN8pUm1n7A5r9Tx8sEybxQRUJdM4lFlqrU9Xf7S3IK/Q1u</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_35c0ed6d08b8439f9f8ef5fcef01ab27</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_db97fd04633e4d45b70ee3b00f29252c" label="空模型统计" extendcode="" event=""/> + <dataView id="obj_08c374e2f752428591fb473109f8e70f" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_5a16cb7a406b4b50b190660bfa66cb4c" isshow="true" extendcode="" event=""> + <button id="obj_63cf860b4ae144fc83a9e48a029935ec" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_64493e5167b443f09da94d372544fd40" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_0caab39f0d2440b3a884f559b03b7039" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_45c0d216ad2c4244b57ed7ee44ec3626" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_6a9d6d2a780644cf887bdb4d04c2d276" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_24d91ea0a2234a158b0e788e0a968b41" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_c13d9988551a4e70bb32c4adc0b80f98" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_483f8efdfcf04aaf9c472670e9fbf4fe" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_bea55d0cf7134002a4596eef047e075c" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_d27cba57048a4f46bde603bb422a31d5" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU__PAL_NULL_L" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="3e93060c-6406-46a7-89fd-fb345cb84b9b" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="261" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLNAME" label="模型名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="2bf7c7d1-3b17-40c2-b314-78b06034e4fe" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="189" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="FRAMEWORK" label="架构名称" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="6cfce913-efd5-41b9-a9d6-5d36cbb8ef9b" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="VERSION" label="版本号" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="86a66781-056e-4464-8147-63dad81a927c" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TYPE" label="模型类型" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="5f6644df-2cb3-4968-93c5-8c9286a0fa62" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ISPUBLISH" label="是否发布" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="89226d46-95c4-4bf7-82d8-a13001d4e73a" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="false" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="f94ac2b2-5c1e-4656-ba6a-5c80af0aeda3" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="6" colbehaviortarget="" ishidden="false" export="false" backHide="false" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="45c9fd90-41b2-41a4-86e1-98d6645068c2" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="false" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="1756804c-1e8f-4a93-92be-a3dccb5fa0b2" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="false" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="21efef66-517d-45a6-8d7c-fd1c8842df67" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="false" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="980b8103-886f-4504-8bbb-d92f7beb2a9f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="false" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="454c7089-f08a-4c8b-ac11-6fd48d533ba2" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="3054f31e-969b-433b-ab1f-8dc6e46b70f2" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_360ee5ef449d442d95292a8a60f1f7fd/obj_360ee5ef449d442d95292a8a60f1f7fd.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_360ee5ef449d442d95292a8a60f1f7fd/obj_360ee5ef449d442d95292a8a60f1f7fd.xml new file mode 100644 index 00000000..2e868d4b --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_360ee5ef449d442d95292a8a60f1f7fd/obj_360ee5ef449d442d95292a8a60f1f7fd.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_360ee5ef449d442d95292a8a60f1f7fd</id> + <createUser>admin</createUser> + <createTime>2022-11-04 17:56:02</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-05 12:09:33</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr71CrsbC1isXmp80isePuPSxV/jQdl+ZAxI1A+ihVFxAYcvLfUTtNlRgAh4XZnGsR</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_360ee5ef449d442d95292a8a60f1f7fd</processGroupId> + <processGroupName></processGroupName> + <categoryName>待办待阅</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_7daf76d526794a6eba2c5c9d0164849b" label="待阅文件统计" extendcode="" event=""/> + <dataView id="obj_2d7811024f264430a3bea96bdfe73fe5" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_c57998599ef04c439cad78bfec93b91c" isshow="true" extendcode="" event=""> + <button id="obj_02ad06af3ae64441a5e5e43525a4b673" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_4a86a46ab1424ab4a7e3aa57c262620b" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="2" mobileShow="false" event="" selectShow="false"/> + <button id="obj_8ef63417939b4c7eb9ad5d66a2e903c6" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="3" mobileShow="false" event="" selectShow="true"/> + <button id="obj_1421cb3266cc414a904b9117274c7dbc" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_067a24a536fc4d3e8d016952ebb5117e" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_b29359eee5f84dc89d9883329ac702b4" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="6" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_8cb3124951944d97b9140ce977d4d310" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"> + <likecondition id="obj_cf0b027748984b0781f4df65be64fba3" field="TITLE" extend1="" label="文件标题" comparetype="like" uiname="TEXT" relationship="" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="0" event=""/> + </searcher> + <navTree id="obj_63ec126a8055447684852b8c1b2828b2" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_7e602300353249049518632fff71d33d" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_0643c13bb5494da6aa63d65c4b86c918" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_SEND_OA_COUNT" countSql="" pagesize="100" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="f2ae5795-a970-4ad5-b5b8-dcfc7263fae4" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="89" colALias="" colTableAlias="" colTable="BO_EU_PAL_SEND_OA_COUNT" length="128" required="1" align="left" showrule="{"type":"org","orgtype":"user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="NAME" label="发布人" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="1da9436e-0ff7-4183-a54c-a141fa379f1f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="572" colALias="" colTableAlias="" colTable="BO_EU_PAL_SEND_OA_COUNT" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TITLE" label="文件标题" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="1febe8b9-a8b4-4e72-a565-9ff6dcef0961" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="128" colALias="" colTableAlias="" colTable="BO_EU_PAL_SEND_OA_COUNT" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="YGNUM" label="应该推送的人数" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="5f5d8ced-a8a2-4401-ac3b-21bf15ea0309" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="114" colALias="" colTableAlias="" colTable="BO_EU_PAL_SEND_OA_COUNT" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="SJNUM" label="实际推送人数" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="78e1da7a-3159-4c6e-8fe3-0a4a59f1b5ba" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="193" colALias="" colTableAlias="" colTable="BO_EU_PAL_SEND_OA_COUNT" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TIME" label="推送时间" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="1349aeb4-27f1-47c4-bf76-0e0858ac45e1" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_SEND_OA_COUNT" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="c7fdc564-e0a3-487d-94f5-c4cd11c02150" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_SEND_OA_COUNT" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="25004a20-3865-420b-b406-f1e0143313d8" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_SEND_OA_COUNT" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="a38e852a-8874-4f8b-83ae-9b74d0e8bdd5" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_SEND_OA_COUNT" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="4365f86a-0571-4bd7-ab45-49eb7c58dc2a" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_SEND_OA_COUNT" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="222fd530-767e-4c55-ba95-e0b6facea4ae" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_SEND_OA_COUNT" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="5045346d-1453-4050-a61c-4ee142c27308" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_SEND_OA_COUNT" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="a3aacc29-eaf6-48ab-9ecc-8c6e46e90b0e" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_SEND_OA_COUNT" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_3f7b624f617f4be38566e22175516284/obj_3f7b624f617f4be38566e22175516284.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_3f7b624f617f4be38566e22175516284/obj_3f7b624f617f4be38566e22175516284.xml new file mode 100644 index 00000000..b3411793 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_3f7b624f617f4be38566e22175516284/obj_3f7b624f617f4be38566e22175516284.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_3f7b624f617f4be38566e22175516284</id> + <createUser>admin</createUser> + <createTime>2022-10-18 15:58:23</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-18 15:59:24</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrExRMEva6zCpDL/48XHt1dgr6g4gzj8TKXeZyxduhcFPkhID21WtnwnDZqpxy6aRc</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_3f7b624f617f4be38566e22175516284</processGroupId> + <processGroupName></processGroupName> + <categoryName>手册日志</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_4934f65f2e424d9a8a2781ca2ff53f9b" label="文件手册清单视图" extendcode="" event=""/> + <dataView id="obj_81a6a4312bd541bd9f4c9eb4ae8f1856" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_d476c6946c84498ebe8ec65607712e72" isshow="true" extendcode="" event=""> + <button id="obj_428c9a967c31476798f8096181036cba" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_5341851beee1485896fd0ce72e0ea928" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="2" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d7aa8b8c139e4ea7bcfc74fcf4495c93" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="3" mobileShow="false" event="" selectShow="true"/> + <button id="obj_386576d2f8f842389898fc1eefcd0988" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_5e6e6a7905c0411594e5c2c6175d0ef4" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_420e363350094d8cb863b87b90b148ef" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="6" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_702686663a764eb8981f0cf0584e6d55" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"> + <likecondition id="obj_97960fe469fe4efe98bc744ca16959b2" field="PID" extend1="" label="PID" comparetype="=" uiname="TEXT" relationship="" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="0" event=""/> + <likecondition id="obj_0858995a844f4106ba41123edef0179b" field="TASKID" extend1="" label="TASKID" comparetype="=" uiname="TEXT" relationship="" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="1" event=""/> + </searcher> + <navTree id="obj_7f91ef7ad23c46f2aa3bc0cd159a7dc5" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_7bb776bc919e4a98bcbc35b00fe27a57" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_61454befe15240e3a6c042b95227ca9e" isshow="true" autoSearch="true" customSet="true" select="false" datasource="sql:SELECT * FROM app_act_coe_pal_publish_list" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="8da8255b-162e-4209-90ed-8150ce715294" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="110" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_PUBLISH_LIST" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PID" label="PID" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="b6744000-44ab-44b6-8063-b27932b3e8cb" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="110" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_PUBLISH_LIST" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PALREPOSITORYID" label="PALREPOSITORYID" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="60f5c819-d76a-43fe-a7e8-7ecb88b9472c" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="60" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_PUBLISH_LIST" length="1" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ACTIONTYPE" label="ACTIONTYPE" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="054a8396-b312-4f10-9f17-c6887cd2c48e" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="200" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_PUBLISH_LIST" length="255" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PUBLISHDESC" label="PUBLISHDESC" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="99be6816-46e1-4a47-bcb6-c6f22c476a6e" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="234" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_PUBLISH_LIST" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TASKID" label="TASKID" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="f0c8d302-1687-49ed-a20d-e7a006e10d4f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="321" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_PUBLISH_LIST" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ID" label="ID" orderindex="5" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_41a06cf29dc64bdc8369db4505d75222/obj_41a06cf29dc64bdc8369db4505d75222.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_41a06cf29dc64bdc8369db4505d75222/obj_41a06cf29dc64bdc8369db4505d75222.xml new file mode 100644 index 00000000..1403c0ba --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_41a06cf29dc64bdc8369db4505d75222/obj_41a06cf29dc64bdc8369db4505d75222.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_41a06cf29dc64bdc8369db4505d75222</id> + <createUser>15600221563</createUser> + <createTime>2022-10-17 17:29:43</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-09 14:53:02</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr7dJg6pouGCzgCJ64d7vlfrYCqCfgme+GoV7wyinsbN9Lcxel2ueco9OGW3jTMTpD</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_41a06cf29dc64bdc8369db4505d75222</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>15600221563</processAdministrator> + <title id="obj_b9f7b9a55d254202bd2e670d6c8ea152" label="文件批量发布" extendcode="" event=""/> + <dataView id="obj_913c3ec680fd4d7091304693cbb33daf" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_61cc801711a5433c982762b781e9fcab" isshow="true" extendcode="" event=""> + <button id="obj_5fd1bfd0803e40809ec5fce05f06a54b" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_1d570ff71c1c4f4d94cc23609878a758" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_edb3fdfe0cfa4dc5863a8c5b1683fcb8" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_ce254a643cfe4f43b8019a8f5f63c3bb" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_6183741273244a3c9558174c85e0abc6" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_4701b1b9211f4502a0ecb9c1b6585274" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_09126bb0667b4faa882703d2ec9e1085" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_1914eba9d2f14e8ea41da65f3eec7fce|c5633ef8-8bef-4eae-9ca1-0f7be5d85232","formName":"PAL文件批量发布","formExcelShowName":"文件批量发布","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PAL_PLFB","boItems":[{"name":"FRAMEWORKNAME","title":"所属架构"},{"name":"PLNAME","title":"文件名称"},{"name":"ISPUBLISH","title":"是否发布"},{"name":"PLID","title":"文件id"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_10e4f33b01624e1790f8c148b5d36a8b" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_6580f156aa3e463588e372b2dc4f6da8" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_0c2fe4b6989c4a0f8e718c1c9c2a3c30" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_234e499976c34b4bba1f93dbb392c8d6" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_PLFB" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="obj_12f60462963c45e2abdedc5a3bf526e3" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="167" colALias="" colTableAlias="" colTable="BO_EU_PAL_PLFB" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="FRAMEWORKNAME" label="所属架构" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_d4f7f8952606412c8da479afcc696e1c" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="334" colALias="" colTableAlias="" colTable="BO_EU_PAL_PLFB" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLNAME" label="文件名称" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_d6d635152ba3416395844ba7c726b0e9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="167" colALias="" colTableAlias="" colTable="BO_EU_PAL_PLFB" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ISPUBLISH" label="是否发布" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.ComboBox" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_c512afc42a1f4910b75a2e70d61b0739" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="172" colALias="" colTableAlias="" colTable="BO_EU_PAL_PLFB" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLID" label="文件id" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_7dc4537c9db148b28bffa230f6dfa138" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_PLFB" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="4" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_946a934cd5f843a18b838ff2a44898ca" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_PLFB" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_0b9d0083780e4f689ea4b5dc6612c3e7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_PLFB" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_97cf63f471284498a05bda4280168955" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_PLFB" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_7c513a1f9eb643ef8dbf093323899a0e" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_PLFB" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_f7d0ec3e109245ea885c366ef86a7fc0" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_PLFB" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_fd6bc1362d9247b285e4f7787ff0a585" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_PLFB" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_26898280228f424cb3d8c99e3aa419e2" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_PLFB" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_4696c49b0fe64a56b2556a893491b75f/obj_4696c49b0fe64a56b2556a893491b75f.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_4696c49b0fe64a56b2556a893491b75f/obj_4696c49b0fe64a56b2556a893491b75f.xml new file mode 100644 index 00000000..5f978b92 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_4696c49b0fe64a56b2556a893491b75f/obj_4696c49b0fe64a56b2556a893491b75f.xml @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_4696c49b0fe64a56b2556a893491b75f</id> + <createUser>admin</createUser> + <createTime>2022-10-12 15:40:27</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-14 19:28:53</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrc+4RosaCQpxbUXcOYBDbDFWgA/yMDOJ54QhhZzkWFJzTFw+jodgJw3wc/10K+hrj</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_4696c49b0fe64a56b2556a893491b75f</processGroupId> + <processGroupName></processGroupName> + <categoryName>权限处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_13dc19f73e7f4e998e8865951d3be4d8" label="权限导入" extendcode="" event=""/> + <dataView id="obj_f5ef3eccd96c456d8cca18383a2677ba" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_b0bcf0e487f64ef381a0c5ab704dfbd0" isshow="true" extendcode="" event=""> + <button id="obj_56aa1567b26e452eab868abe0e044aec" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d355ebdef30141a392063c36b7c2ccef" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_e299d0c21fbc4014b143738e3526ebbd" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_4996c0e9d49f47b29584fa72ec5eea7d" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_c24ddb0124a74e57a9377e558346287e" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_ec941c97f18c410f8acb81ea007bf378" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_b2a3070768c547d0956f2f2c1363e95a" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_a0940a4fbc414a3a8eba0f1e00e37955|941fb1e4-5121-4495-91bb-6239ae7d30e5","formName":"阅览权限导入","formExcelShowName":"权限导入","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":true,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PUBLISH_SCOPE_IMPORT","boItems":[{"name":"FRNAME","title":"架构名称"},{"name":"PALNAME","title":"模型名称"},{"name":"FILETYPE","title":"文件类型"},{"name":"IDPLUBSH","title":"是否发布"},{"name":"ORGPERM","title":"组织权限,部门名称,逗号分隔"},{"name":"POSTPERM","title":"岗位权限,岗位名称,逗号分隔"},{"name":"LEVELPERM","title":"职级权限,职级名称,逗号分隔"},{"name":"RESULT","title":"导入结果"},{"name":"ORGFAIL","title":"未匹配到的组织"},{"name":"POSTFAIL","title":"未匹配到的岗位"},{"name":"LEVELFAIL","title":"未匹配到的职级"},{"name":"SEND_SCOP","title":"权限范围(1:全集团,0:部分)"},{"name":"PALVERSIONID","title":"PAL模型版本ID"}]}]},"updateImport":{"boModels":[{"boDefName":"BO_EU_PUBLISH_SCOPE_IMPORT","boItems":[{"name":"PALNAME","title":"模型名称"},{"name":"ORGPERM","title":"组织权限,部门名称,逗号分隔"},{"name":"POSTPERM","title":"岗位权限,岗位名称,逗号分隔"},{"name":"LEVELPERM","title":"职级权限,职级名称,逗号分隔"},{"name":"LEVELFAIL","title":"未匹配到的职级"},{"name":"POSTFAIL","title":"未匹配到的岗位"},{"name":"ORGFAIL","title":"未匹配到的组织"},{"name":"RESULT","title":"导入结果"},{"name":"SEND_SCOP","title":"权限范围(1:全集团,0:部分)"},{"name":"PALVERSIONID","title":"PAL模型版本ID"},{"name":"FRNAME","title":"架构名称"},{"name":"FILETYPE","title":"文件类型"},{"name":"IDPLUBSH","title":"是否发布"}],"keyFields":"PALNAME"}],"updateendprocess":false}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_78b8b033630e4b8e9af004ec503063a1" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"> + <likecondition id="obj_a3b2176282214a21b38f221280e47fe5" field="RESULT" extend1="" label="导入结果" comparetype="like" uiname="TEXT" relationship="" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="0" event=""/> + </searcher> + <navTree id="obj_714fd049a37b462f85df99f279bbf2c5" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_682e8bad78334e2fac0a27892c9e546d" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_605ce630a6f646af89c849eff560b37d" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PUBLISH_SCOPE_IMPORT" countSql="" pagesize="200" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="1b7534c2-60a9-4330-b170-4f879babad81" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="256" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="FRNAME" label="架构名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_e4f4e7aaecf34ab4b86db8272ccab773" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="368" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="128" required="0" align="left" showrule="" upshowrule="{"type":"tx","required":false,"length":"128","cmconfig":{"func":""}}" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PALNAME" label="模型名称" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="be7833d2-3124-46ae-8006-a64f2b705809" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="FILETYPE" label="文件类型" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="302630b6-27f3-40de-9884-27fb0293239e" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="IDPLUBSH" label="是否发布" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_95f2698f6f6f4e3c9d0aa174970b27b8" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="200px" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="2000" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ORGPERM" label="组织权限,部门名称,逗号分隔" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Address" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_b99565f8da0e4d2aa7609764f85c4daf" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="225" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="2000" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="POSTPERM" label="岗位权限,岗位名称,逗号分隔" orderindex="5" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_28871107851a49e1bf1507841da28cf8" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="200px" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="2000" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="LEVELPERM" label="职级权限,职级名称,逗号分隔" orderindex="6" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_8eba1ee6a44a469c81fb09309e74f2e3" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="210" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="导入结果" orderindex="7" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_0ce2292bb47d4cd7997672a9eba7bd98" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="473" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="2000" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ORGFAIL" label="未匹配到的组织" orderindex="8" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_25d47a8ae07a4af384ed87fb0ac0f68d" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="2000" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="LEVELFAIL" label="未匹配到的职级" orderindex="9" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_73c072efa20549bcbfb8a0ea872b9821" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="2000" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="POSTFAIL" label="未匹配到的岗位" orderindex="10" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_54c2589e58354efe99c6472d0a820eb7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="SEND_SCOP" label="权限范围(1:全集团,0:部分)" orderindex="11" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="e4066a3f-946f-48cd-a77a-b1b13e957a7d" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PALVERSIONID" label="PAL模型版本ID" orderindex="12" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_bb1b5c3ce29148f3970cd21fd63c3ef7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="13" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_1545836603164f20976bbcb9c2ce86a5" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="14" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_3befabeebc8e4f2c9585aa501f145b38" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="15" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_f7efb872191a4e6c859a295aad780708" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="16" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_48c0e15ea6fe4d35886d9e8ab81c61db" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="17" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_7919f155fdb34506b311434200643e96" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="18" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_edb2b0506c77479385d12be3e62a6948" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="19" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_caf61087dce2417bb0d928bf7bd7b199" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PUBLISH_SCOPE_IMPORT" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="20" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_4f1b08c2bcd34c2f9895980c01ea4e21/obj_4f1b08c2bcd34c2f9895980c01ea4e21.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_4f1b08c2bcd34c2f9895980c01ea4e21/obj_4f1b08c2bcd34c2f9895980c01ea4e21.xml new file mode 100644 index 00000000..c21b9470 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_4f1b08c2bcd34c2f9895980c01ea4e21/obj_4f1b08c2bcd34c2f9895980c01ea4e21.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_4f1b08c2bcd34c2f9895980c01ea4e21</id> + <createUser>admin</createUser> + <createTime>2022-10-09 19:17:25</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-11 22:48:43</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr0z7nw8STzc+5G7U8SvBSGYHBXh0tni6zRU2SJv9HfcDDhAywBazRZtEVH4Im8C0r</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_4f1b08c2bcd34c2f9895980c01ea4e21</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_91c9150b6c034a7eb1b0b5ddadcc6a3e" label="批量发布时不发布文件过滤" extendcode="" event=""/> + <dataView id="obj_c1a35fca3122485cb56e1eed10e350f0" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_acca627be0f34c7b9ba02e61a648dd8a" isshow="true" extendcode="" event=""> + <button id="obj_7ad3ebf0b55e4bf39be5558f1053857a" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_5583f2158fa0420da75a9bd4becd1638" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_1e8164550365477697bed1180fbef449" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_f6c495347b1e434693709a0c1ad14d5a" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_9ee5f5b97e1044c686f1879806b3c17a" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_889dcbb762874b879704993d0e6d45f4" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_5ef011fbd2574fb5a03d669cc3a4d5e3" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_bf6b5ac62cb744f1925d00ba1ae2e6fa|1fa52d9c-3422-40e3-8552-8ac8071f4c7a","formName":"批量发布时不发布的文件过滤","formExcelShowName":"不发布文件过滤","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_BATCH_PUBLIS_NL","boItems":[{"name":"FRAMEWORKNAME","title":"所属架构"},{"name":"PLNAME","title":"文件名称"},{"name":"ISPUBLISH","title":"是否发布"},{"name":"PLID","title":"文件id"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_3a425fd6ddf343658a845a4eff3bebb3" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"> + <likecondition id="obj_3efc8927ad1244828220bbda4b2c8d24" field="PLNAME" extend1="" label="文件名称" comparetype="like" uiname="TEXT" relationship="" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="0" event=""/> + </searcher> + <navTree id="obj_130d37e676b84dda87ef9fb75b43fc65" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_0f2dd922f6d940aeb7c44ff0da9c3a5d" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_d35694539f004591a633dfc0125e6ad8" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_BATCH_PUBLIS_NL" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="cd52efa5-e159-4113-801a-edaa11d2d309" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_BATCH_PUBLIS_NL" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="FRAMEWORKNAME" label="所属架构" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="e97d9561-1d78-4521-b8f0-ff1c2b752476" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="258" colALias="" colTableAlias="" colTable="BO_EU_BATCH_PUBLIS_NL" length="128" required="1" align="left" showrule="" upshowrule="{"type":"tx","required":false,"length":"128","cmconfig":{"func":""}}" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLNAME" label="文件名称" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="ed5ddc20-7161-4fd6-8281-66583fa7dda5" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_BATCH_PUBLIS_NL" length="128" required="1" align="left" showrule="" upshowrule="{"type":"tx","required":false,"length":"128","cmconfig":{"func":""}}" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ISPUBLISH" label="是否发布" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.ComboBox" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="e6a3d814-2d9e-44e2-afed-53c0b6ff1150" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_BATCH_PUBLIS_NL" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLID" label="文件id" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="1c7cd4b3-334d-4b2f-86da-620b57f8886b" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_BATCH_PUBLIS_NL" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="4" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="f2dbb808-d7d3-4912-aad8-f71c2b1211c9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_BATCH_PUBLIS_NL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="d043db21-1b10-43d0-8771-c2bbf6c015e6" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_BATCH_PUBLIS_NL" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="5bc2590a-d2be-4c3d-9530-282af102f605" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_BATCH_PUBLIS_NL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="3020a1a3-0a0c-4541-ae5d-9b3b86cd1470" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_BATCH_PUBLIS_NL" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="196a6700-36e5-4728-abc3-a36c1367899f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_BATCH_PUBLIS_NL" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="448486eb-85cf-4eef-80ce-fc8ca565fa8f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_BATCH_PUBLIS_NL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="414304d9-673d-4dd5-8ce2-1212d2f43bfe" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_BATCH_PUBLIS_NL" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_5ed1dc03b858463698191ca1ee8d59ec/obj_5ed1dc03b858463698191ca1ee8d59ec.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_5ed1dc03b858463698191ca1ee8d59ec/obj_5ed1dc03b858463698191ca1ee8d59ec.xml new file mode 100644 index 00000000..3137f746 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_5ed1dc03b858463698191ca1ee8d59ec/obj_5ed1dc03b858463698191ca1ee8d59ec.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_5ed1dc03b858463698191ca1ee8d59ec</id> + <createUser>admin</createUser> + <createTime>2022-10-09 09:05:37</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-24 19:56:58</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrT6z7QFJKCcfvv1/UYIhnqKLhbyVcia7wBDlmol6ss26AK50SsAzc0LJdrgIE9Hkh</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_5ed1dc03b858463698191ca1ee8d59ec</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_11bcbf181808404e8cde52debae7f22d" label="空文件记录" extendcode="" event=""/> + <dataView id="obj_55479da00d7e445d90c0140f690d96af" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_3e3ac6e9ef704c8892619ed59a781258" isshow="true" extendcode="" event=""> + <button id="obj_7af67872c999419d9cf83f3d097501d0" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_c034722fd5164187987eac4955477cd2" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_29d42145889c4a98ac241f0dda05b4f7" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_47c7f957734a4acca0c8c00e5a373cf4" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_3b7bfeb3744c455db32b70a0e0d0aef2" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_8245b902c134461fb30b440a61888d8e" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_b14307c782fd4101bfc55306cc4cb672" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_ede3a2ddbf5447e4a51f314a645dbd37|459ac035-8b6a-4df0-8f4c-a8525b3fcdde","formName":"空文件","formExcelShowName":"空文件记录","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PAL_NULL_FILE","boItems":[{"name":"PLNAME","title":"模型名称"},{"name":"FRAMEWORK","title":"架构名称"},{"name":"VERSION","title":"版本号"},{"name":"TYPE","title":"模型类型"},{"name":"ISPUBLISH","title":"是否发布"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_90d30677f9f94680a795de8ee0d33174" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_71b95fa6c30b487f86deb4ede6dd0d9d" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_2fd530c5a4de46a5b791fcdd2ec20e33" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_836c179c631c4ad29dd45c3ff4821817" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_NULL_FILE" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="obj_f555a7639fdd425285da178427f2044f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_NULL_FILE" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLNAME" label="模型名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_123e0a3b24b54562926973938eedb802" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="247" colALias="" colTableAlias="" colTable="BO_EU_PAL_NULL_FILE" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="FRAMEWORK" label="架构名称" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_4228ce1bb4e34b4a9be7d3efb21e84f0" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_NULL_FILE" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="VERSION" label="版本号" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_72266e73a77f4ffbba52ea2dcf758bbc" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_NULL_FILE" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TYPE" label="模型类型" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_6a8804e6a56847488c7a4fede3281cae" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_NULL_FILE" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ISPUBLISH" label="是否发布" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_001565c1e540412b838fabc9a2c81644" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_NULL_FILE" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_65069731a6644ee98dcac431f80995ed" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_NULL_FILE" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_139c166e80e740a1ae63a2e60cb57e18" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_NULL_FILE" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_3316b34ec12542868cbcd22f6ab90bb4" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_NULL_FILE" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_e043acfbaa5545eaaf42b1e090b48129" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_NULL_FILE" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ab4544f2b0db403083c3f623ed63a7be" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_NULL_FILE" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_c7f1bdeb07344079aee69b2f23d7110b" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_NULL_FILE" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ebeddf06c20243b79cb0fe1d7e53ed07" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_NULL_FILE" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_71b76d68efa6483bab116dddac582a27/obj_71b76d68efa6483bab116dddac582a27.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_71b76d68efa6483bab116dddac582a27/obj_71b76d68efa6483bab116dddac582a27.xml new file mode 100644 index 00000000..2e89b965 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_71b76d68efa6483bab116dddac582a27/obj_71b76d68efa6483bab116dddac582a27.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_71b76d68efa6483bab116dddac582a27</id> + <createUser>admin</createUser> + <createTime>2022-11-04 18:23:28</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-04 18:23:28</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrXi7jgyfKqHEiG2sOUJ2qec1fMZDXmkU+61IcMZvRPEd8x1xwd2T1pj28AmBMq67u</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_71b76d68efa6483bab116dddac582a27</processGroupId> + <processGroupName></processGroupName> + <categoryName>待办待阅</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_b59eb87e391742cd9fb2e3e0e976971e" label="系统人员" extendcode="" event=""/> + <dataView id="obj_0abf3c59cbb64f4d8175010481d4a481" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_f102c91762f9411fa408e5dc3fb12294" isshow="true" extendcode="" event=""> + <button id="obj_40ad398751a94fd7b14a8b4cb310fbe8" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_92165de4f31646ad953d5a756c252efc" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="2" mobileShow="false" event="" selectShow="false"/> + <button id="obj_04284d7e2b9049ff85d1925a810df2d8" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="3" mobileShow="false" event="" selectShow="true"/> + <button id="obj_f5c122b759a14e58a3f6f2d5f3af4e1d" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_ecd6f0098a9e4a2ca0433d38bff53bd6" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_b37590c858694a9b92f580f9f2ade1bd" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="6" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_8ae8f7643e6946c4ab7706a77b298c82" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_70e1ae83ed3b4ede99820926f387b886" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_7a807953433342709df71020c74c707e" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_0cf94060a7934436b87b5be16c2142d7" isshow="true" autoSearch="true" customSet="true" select="false" datasource="" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_75156a5ae7004e2daad5e284d26147b1/obj_75156a5ae7004e2daad5e284d26147b1.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_75156a5ae7004e2daad5e284d26147b1/obj_75156a5ae7004e2daad5e284d26147b1.xml new file mode 100644 index 00000000..d1d99c24 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_75156a5ae7004e2daad5e284d26147b1/obj_75156a5ae7004e2daad5e284d26147b1.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_75156a5ae7004e2daad5e284d26147b1</id> + <createUser>admin</createUser> + <createTime>2022-11-05 23:20:18</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-20 10:02:08</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrJC9/Olp8V0LXtvkRWTNtfDpU4H754D10NJAOwxErKpa/eIXsLM8NsP366PtZCwiD</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_75156a5ae7004e2daad5e284d26147b1</processGroupId> + <processGroupName></processGroupName> + <categoryName>待办待阅</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_e9cf4a56bf5b4115a7e28fdece6c2121" label="待阅推送失败人员" extendcode="" event=""/> + <dataView id="obj_16742235146844daaa42841fe68e7a8e" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_fadbf9a65b3e4d7cb443a542d5f84173" isshow="true" extendcode="" event=""> + <button id="obj_ff1735337be8431a90ed749b487426c4" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_bb17fc3080cd43fe9cc1960a3103a02a" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="2" mobileShow="false" event="" selectShow="false"/> + <button id="obj_58625fab4b72456ebae9431447447e5b" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="3" mobileShow="false" event="" selectShow="true"/> + <button id="obj_43c99edfe69d428ab8b8c06c92790273" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_8c7670fb89ea4de8b684ded965db93d6" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_2b8a09af2fc14ea0b06e1ac0661111d1" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="6" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_e22b26e8685540b28923ea0f6d8a59f9" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"> + <likecondition id="obj_185802ff169b47afa08c5a028de84b8b" field="TITLE" extend1="" label="文件标题" comparetype="like" uiname="TEXT" relationship="" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="0" event=""/> + </searcher> + <navTree id="obj_82791ac8e7324709b8b511cd40bea44c" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_1ff7e7c717dc4676be517fc02ca30080" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_0f01dd98efc44eedbd3dfc554e9ddde9" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_READ_COUNT" countSql="" pagesize="100" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="76d7fdcd-c012-42ff-86a6-66d4ac679761" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="521" colALias="" colTableAlias="" colTable="BO_EU_READ_COUNT" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TITLE" label="文件标题" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="8a276d51-0d5a-4d63-828b-8f9ce175b534" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_READ_COUNT" length="128" required="1" align="left" showrule="{"type":"org","orgtype":"user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="NAME" label="接收人" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="06a47c11-6d91-4268-917d-1d548589c891" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="256" colALias="" colTableAlias="" colTable="BO_EU_READ_COUNT" length="128" required="1" align="left" showrule="{"type":"org","orgtype":"dept"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="DEPNAME" label="部门名称" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="0095032b-2899-483f-97f3-3691ee1db819" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_READ_COUNT" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="3" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="faa43e23-b9f4-4510-8e95-395856bca01f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_READ_COUNT" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="4" colbehaviortarget="" ishidden="false" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="beb9684e-65cf-44c7-aaac-30cb2810b7a3" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_READ_COUNT" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="01c552dc-dda5-4774-bb08-fccbb623a5d2" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_READ_COUNT" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="5e534e81-9368-43d9-b0df-f557329b627b" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_READ_COUNT" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="35300aac-f5a3-4f45-810f-c606008323e6" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_READ_COUNT" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="a9a23cb6-750b-4c91-99f6-8f19cee47309" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_READ_COUNT" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="c6db475b-73e1-464f-b112-9780246d2a14" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_READ_COUNT" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_a4836ee471b947ea93076dcb9f22552f/obj_a4836ee471b947ea93076dcb9f22552f.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_a4836ee471b947ea93076dcb9f22552f/obj_a4836ee471b947ea93076dcb9f22552f.xml new file mode 100644 index 00000000..f19a0199 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_a4836ee471b947ea93076dcb9f22552f/obj_a4836ee471b947ea93076dcb9f22552f.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_a4836ee471b947ea93076dcb9f22552f</id> + <createUser>admin</createUser> + <createTime>2022-10-28 17:33:54</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-21 13:46:21</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrscUH1vcJUFAg1ZuPTOadjscb01chG+HaVoSRMvoXOKF2vCc3kIXFc95FWAO/5F/J</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_a4836ee471b947ea93076dcb9f22552f</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_3462b471e2a74e99b3310b7d13e8f8ee" label="批量刷模型编号记录" extendcode="" event=""/> + <dataView id="obj_35b5721b32cf4d06853ab3b669fea3ac" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_97d240f5acae4afa8fef32dd79962c9e" isshow="true" extendcode="" event=""> + <button id="obj_7ccfe7a1eb64401da063b75aea2e2610" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_7ad8b5fe8ab9482c9bcfe1b83fc546fb" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_60598cac06494f9aaead2ab971ae7e0c" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_6fe5c902cf4243bc96f58ec179c30277" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_9b45eab48e8b468083f48b49e7129c67" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_dbb0cafe97e3408798ef6e419683b455" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_93307c325105467b932e549b0fc42b90" refbuttonid="obj_92f9887391ec459dac93dd30286dab05" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_dd4d47c0098548edbeb26907931d95cc" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"> + <likecondition id="obj_5d00232ea33b418ea909af80baebf17c" field="PLNAME" extend1="" label="模型名称" comparetype="=" uiname="TEXT" relationship="" uidefault="" uicomponent="日期" uiref="" required="false" security="" orderindex="0" event=""/> + </searcher> + <navTree id="obj_9cc9309936154e79a43b0f589ebac801" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_95a1cee330e3409dbf083099979c28b1" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_50ad37f2b71a4821b0c82ac762eb586c" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_NOREFRESH" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="3c0d303b-b0a4-4eb0-a518-249b7936e9b1" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLNAME" label="模型名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="d901c630-f839-4599-a58a-19d91f61df5e" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="185" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="FRAMEWORK" label="架构名称" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="090aca46-a540-4c04-99a5-f8d92db449bc" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="VERSION" label="版本号" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="51faf84d-d054-4df2-a31e-7dd77f7e3683" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TYPE" label="模型类型" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="03750ee1-41f0-42b1-a3ec-3305374704eb" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ISPUBLISH" label="是否发布" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="535eaafc-8518-45c6-b2b0-ad4cf12a75f6" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="236" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLID" label="模型ID" orderindex="5" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="53399e31-27a9-446f-b6c3-57a5d4e461ba" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="刷新结果" orderindex="6" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="3b8639be-5985-453a-8083-ed80f325d31f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="2000" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULTSTR" label="返回结果记录" orderindex="7" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="5f8d640d-8d6a-4105-ad1c-e47aa8c97512" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="cf0f6002-0f2a-4a3a-b5be-a9ae1ec91f4f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="dbc681ce-d70c-450f-9d9f-b0669f0b7518" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="2473ed2a-cca2-4e1a-88f7-561a9134fc10" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="11" colbehaviortarget="" ishidden="false" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="9aae8d07-396b-40b4-84c8-adf0c7c15504" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="c5b2ab95-ae96-4359-ae2e-b09678017ccf" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="13" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="1081b1c8-cefd-45fc-aa87-7c46370a9458" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="14" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="8ddd3c3f-aa75-4b00-a882-e4c1be3ced08" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="15" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons> + <userextendbutton id="obj_92f9887391ec459dac93dd30286dab05" icon="" label="打开模型" tip=""> + <eventcall></eventcall> + <eventscript>var%20data%20%3D%20eventContext.DWApi.grid.getCheckedData%28%29%3B%0Aconst%20sid%20%3D%20eventContext.DWApi.sid%3B%0Avar%20palId%20%3D%20data%5B0%5D.PLID%3B%0Awindow.open%28%27https%3A//bpm.yili.com%3A8088/portal/r/w%3Fuuid%3D%27+palId+%27%26teamId%3D%26cmd%3Dcom.actionsoft.apps.coe.pal_pl_repository_designer%26sid%3D%27+sid%29</eventscript> + <beforeeventcall></beforeeventcall> + <beforeeventscript></beforeeventscript> + <aftereventcall></aftereventcall> + <aftereventscript></aftereventscript> + </userextendbutton> + </userextendbuttons> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_a4836ee471b947ea93076dcb9f22552f/obj_a4836ee471b947ea93076dcb9f22552f_1.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_a4836ee471b947ea93076dcb9f22552f/obj_a4836ee471b947ea93076dcb9f22552f_1.xml new file mode 100644 index 00000000..46867d61 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_a4836ee471b947ea93076dcb9f22552f/obj_a4836ee471b947ea93076dcb9f22552f_1.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_a4836ee471b947ea93076dcb9f22552f</id> + <createUser>admin</createUser> + <createTime>2022-10-28 17:33:54</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-01 14:59:26</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrscUH1vcJUFAg1ZuPTOadjscb01chG+HaVoSRMvoXOKF2vCc3kIXFc95FWAO/5F/J</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_a4836ee471b947ea93076dcb9f22552f</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_3462b471e2a74e99b3310b7d13e8f8ee" label="批量刷模型编号记录" extendcode="" event=""/> + <dataView id="obj_35b5721b32cf4d06853ab3b669fea3ac" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_97d240f5acae4afa8fef32dd79962c9e" isshow="true" extendcode="" event=""> + <button id="obj_7ccfe7a1eb64401da063b75aea2e2610" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_7ad8b5fe8ab9482c9bcfe1b83fc546fb" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="2" mobileShow="false" event="" selectShow="false"/> + <button id="obj_60598cac06494f9aaead2ab971ae7e0c" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="3" mobileShow="false" event="" selectShow="true"/> + <button id="obj_6fe5c902cf4243bc96f58ec179c30277" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_9b45eab48e8b468083f48b49e7129c67" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_dbb0cafe97e3408798ef6e419683b455" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="6" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_dd4d47c0098548edbeb26907931d95cc" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_9cc9309936154e79a43b0f589ebac801" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_95a1cee330e3409dbf083099979c28b1" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_50ad37f2b71a4821b0c82ac762eb586c" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_NOREFRESH" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="3c0d303b-b0a4-4eb0-a518-249b7936e9b1" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLNAME" label="模型名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="d901c630-f839-4599-a58a-19d91f61df5e" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="FRAMEWORK" label="架构名称" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="090aca46-a540-4c04-99a5-f8d92db449bc" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="VERSION" label="版本号" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="51faf84d-d054-4df2-a31e-7dd77f7e3683" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TYPE" label="模型类型" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="03750ee1-41f0-42b1-a3ec-3305374704eb" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ISPUBLISH" label="是否发布" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="535eaafc-8518-45c6-b2b0-ad4cf12a75f6" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLID" label="错误类型" orderindex="5" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="53399e31-27a9-446f-b6c3-57a5d4e461ba" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="刷新结果" orderindex="6" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="3b8639be-5985-453a-8083-ed80f325d31f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="2000" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULTSTR" label="返回结果记录" orderindex="7" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="5f8d640d-8d6a-4105-ad1c-e47aa8c97512" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="cf0f6002-0f2a-4a3a-b5be-a9ae1ec91f4f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="9" colbehaviortarget="" ishidden="false" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="dbc681ce-d70c-450f-9d9f-b0669f0b7518" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="2473ed2a-cca2-4e1a-88f7-561a9134fc10" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="9aae8d07-396b-40b4-84c8-adf0c7c15504" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="c5b2ab95-ae96-4359-ae2e-b09678017ccf" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="13" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="1081b1c8-cefd-45fc-aa87-7c46370a9458" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="14" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="8ddd3c3f-aa75-4b00-a882-e4c1be3ced08" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="15" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_a4836ee471b947ea93076dcb9f22552f/obj_a4836ee471b947ea93076dcb9f22552f_2.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_a4836ee471b947ea93076dcb9f22552f/obj_a4836ee471b947ea93076dcb9f22552f_2.xml new file mode 100644 index 00000000..20e270e9 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_a4836ee471b947ea93076dcb9f22552f/obj_a4836ee471b947ea93076dcb9f22552f_2.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_a4836ee471b947ea93076dcb9f22552f</id> + <createUser>admin</createUser> + <createTime>2022-10-28 17:33:54</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-28 17:34:07</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrscUH1vcJUFAg1ZuPTOadjscb01chG+HaVoSRMvoXOKF2vCc3kIXFc95FWAO/5F/J</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_a4836ee471b947ea93076dcb9f22552f</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_3462b471e2a74e99b3310b7d13e8f8ee" label="批量刷模型编号记录" extendcode="" event=""/> + <dataView id="obj_35b5721b32cf4d06853ab3b669fea3ac" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_97d240f5acae4afa8fef32dd79962c9e" isshow="true" extendcode="" event=""> + <button id="obj_7ccfe7a1eb64401da063b75aea2e2610" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_7ad8b5fe8ab9482c9bcfe1b83fc546fb" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="2" mobileShow="false" event="" selectShow="false"/> + <button id="obj_60598cac06494f9aaead2ab971ae7e0c" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="3" mobileShow="false" event="" selectShow="true"/> + <button id="obj_6fe5c902cf4243bc96f58ec179c30277" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_9b45eab48e8b468083f48b49e7129c67" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_dbb0cafe97e3408798ef6e419683b455" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="6" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_dd4d47c0098548edbeb26907931d95cc" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_9cc9309936154e79a43b0f589ebac801" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_95a1cee330e3409dbf083099979c28b1" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_50ad37f2b71a4821b0c82ac762eb586c" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_NOREFRESH" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="3c0d303b-b0a4-4eb0-a518-249b7936e9b1" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLNAME" label="模型名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="d901c630-f839-4599-a58a-19d91f61df5e" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="FRAMEWORK" label="架构名称" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="090aca46-a540-4c04-99a5-f8d92db449bc" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="VERSION" label="版本号" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="51faf84d-d054-4df2-a31e-7dd77f7e3683" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TYPE" label="模型类型" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="03750ee1-41f0-42b1-a3ec-3305374704eb" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ISPUBLISH" label="是否发布" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="535eaafc-8518-45c6-b2b0-ad4cf12a75f6" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLID" label="错误类型" orderindex="5" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="53399e31-27a9-446f-b6c3-57a5d4e461ba" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="刷新结果" orderindex="6" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="3b8639be-5985-453a-8083-ed80f325d31f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="2000" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULTSTR" label="返回结果记录" orderindex="7" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="5f8d640d-8d6a-4105-ad1c-e47aa8c97512" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="cf0f6002-0f2a-4a3a-b5be-a9ae1ec91f4f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="dbc681ce-d70c-450f-9d9f-b0669f0b7518" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="2473ed2a-cca2-4e1a-88f7-561a9134fc10" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="9aae8d07-396b-40b4-84c8-adf0c7c15504" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="c5b2ab95-ae96-4359-ae2e-b09678017ccf" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="13" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="1081b1c8-cefd-45fc-aa87-7c46370a9458" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="14" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="8ddd3c3f-aa75-4b00-a882-e4c1be3ced08" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFRESH" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="15" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7.xml new file mode 100644 index 00000000..8312ea46 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_aed82b86aba14271a0b0ad02b5fb3de7</id> + <createUser>admin</createUser> + <createTime>2022-10-13 22:20:19</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-17 16:34:22</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr8lTS+u7f3oZvQJOffDUI237cH5qcXSCfoQs3cgGx/5bilvIwAAd2JM0I5/1N5aFR</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_aed82b86aba14271a0b0ad02b5fb3de7</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_22b9b27bae6a43398714bfa4cde9577f" label="文件移动架构" extendcode="" event=""/> + <dataView id="obj_12d8a5b838114b6dbf03a95d5941131f" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_4fd8fa769cca401db034b26c6e0b3091" isshow="true" extendcode="" event=""> + <button id="obj_664e9c305000446fa342f527b5f5136b" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_632f3fb79eb942eca93d29db9e7b8d12" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_715bf53fff9e47d5a875d66db3bb8f2a" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_851596a6e48744ec8864950ab62e8d44" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_52078d93732042bfb8b32f86dd75e5af" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_fcb0034c013f4e5eb80b09ab73c158f7" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d76d90168f85450098cd5f982ad79f7b" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_c504beb31bc841ef96b6b2304257f7d5|93607580-1130-4522-aa30-a37d2467908a","formName":"PAL架构替换","formExcelShowName":"文件架构替换","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PAL_FRAMEWORK_TOOL","boItems":[{"name":"PALNAME","title":"文件名称"},{"name":"ERRORFRAMEWORK","title":"错误架构"},{"name":"CORRECTFRAMEWORK","title":"正确架构"},{"name":"PAID","title":"文件Id"},{"name":"RESULT","title":"修改结果"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + <button id="obj_aed532b62033405d8e6362ff20c0b2ab" refbuttonid="obj_065ff4e1368544fba60a9009707c0fcc" cls="" fontColor="" bgColor="#eaf1de" security="" isshow="true" orderindex="7" mobileShow="false" event="" selectShow="false"/> + <button id="obj_b086ba11179747e5880b9a5983086de7" refbuttonid="obj_8fa19d5c9d6a4f08a4ee0d5067ef9879" cls="" fontColor="" bgColor="#dae5f0" security="" isshow="true" orderindex="8" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_ebdbe5b9186d43cda9125524083eaaf3" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"> + <likecondition id="obj_c3a958586e92498b8492a74499ca6997" field="PALNAME" extend1="" label="文件名称" comparetype="like" uiname="TEXT" relationship="" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="0" event=""/> + <likecondition id="obj_2226340ea2bb456cb98f251878946063" field="RESULT" extend1="" label="移动结果" comparetype="like" uiname="TEXT" relationship="" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="1" event=""/> + </searcher> + <navTree id="obj_8857127bd1064a44a7dbb1a2b68413fe" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_47cdde7f6757472183a8d9766c912ead" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_234c41c7855a4e438eb42147083b294b" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_FRAMEWORK_TOOL" countSql="" pagesize="100" event="" rowDefHeight="25" showCheckBox="true" ismultiple="false" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="obj_a9600e90beb1491484631fd77c761d44" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="332" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="{"type":"tx","required":false,"length":"128","cmconfig":{"func":""}}" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PALNAME" label="文件名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_af0b13e5a54f4cedb6e3a5520674e7d9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="235" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ERRORFRAMEWORK" label="错误架构" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_a3cf7ca035bd41e6b535f0d6b87c1b18" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="228" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CORRECTFRAMEWORK" label="正确架构" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ccf94b8ca7874cfd8b81cd1f64a2f5b7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="500" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="{"type":"tx","required":false,"length":"128","cmconfig":{"func":""}}" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="移动结果" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_6a73be84418d4e228ba715abe9edd87a" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="137" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PAID" label="文件Id" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_67dc8ea181d3415c8f66288524831591" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_dcc23e214abe4a19bdd9ad0b8ecd4846" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_9c25d97c738a44fd8e89cf7b306ff1ab" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_964fb139d057405fb704d24cfb821529" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_5d75158954234dd589df0e37d8ac8001" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_1b4f80e7626644ac8ea46edf2bd0cf17" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ae2e4d74932b4d49b59a354b45878b73" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_8827e5574411478a89db52ed27d026d4" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons> + <userextendbutton id="obj_065ff4e1368544fba60a9009707c0fcc" icon="" label="打开模型" tip=""> + <eventcall></eventcall> + <eventscript>var%20data%20%3D%20eventContext.DWApi.grid.getCheckedData%28%29%3B%0Aconst%20sid%20%3D%20eventContext.DWApi.sid%3B%0Avar%20palId%20%3D%20data%5B0%5D.PAID%3B%0Awindow.open%28%27https%3A//bpm.yili.com%3A8088/portal/r/w%3Fuuid%3D%27+palId+%27%26teamId%3D%26cmd%3Dcom.actionsoft.apps.coe.pal_pl_repository_designer%26sid%3D%27+sid%29</eventscript> + <beforeeventcall></beforeeventcall> + <beforeeventscript></beforeeventscript> + <aftereventcall></aftereventcall> + <aftereventscript></aftereventscript> + </userextendbutton> + <userextendbutton id="obj_8fa19d5c9d6a4f08a4ee0d5067ef9879" icon="" label="批量移动" tip=""> + <eventcall></eventcall> + <eventscript>var%20data%20%3D%20eventContext.DWApi.grid.getCheckedData%28%29%3B%0Aif%28data%5B0%5D%3D%3Dnull%7C%7Cdata.length%3E1%29%7B%0A%20%20eventContext.instance.%24message%28%7B%0A%20%20type%3A%22error%22%2C%0A%20%20message%3A%22%u8BF7%u9009%u62E9%u5355%u6761%u6570%u636E%uFF01%22%0A%7D%29%3B%0A%7Delse%7B%0A%20testCall%28%29%3B%0A%7D%0A%0Afunction%20testCall%28%29%20%7B%0A%09var%20plId%20%3D%20data%5B0%5D.PALNAME%3B%0A%09var%20sid%20%3D%20eventContext.DWApi.grid.sid%3B%0A%09eventContext.instance.awsuiaxios.post%28%7B%0A%09%09%09url%3A%20%22./jd%22%2C%0A%09%09%09data%3A%20%7B%0A%09%09%09%09cmd%3A%20%22com.awspaas.user.apps.app.controller.movePalFile%22%2C%0A%09%09%09%09sid%3A%20sid%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20plname%3AplId%0A%09%09%09%09//%20bindId%3A%20%20eventContext.row._BINDID%2C%0A%09%09%09%09//APPLYNO%3A%20JSON.stringify%28result%29%0A%09%09%09%09//title%20%3A%20eventContext.row.FILENAME%0A%09%09%09%7D%0A%09%09%7D%29%0A%09%09.then%28function%28response%29%20%7B%0A%09%09%09if%20%28response.result%20%21%3D%20%22error%22%29%20%7B%0A%09%09%09%09if%20%28response.result%20%3D%3D%20%22ok%22%29%20%7B%0A%09%09%09%09%09if%20%28response.data.result%20%3D%3D%20%22ok%22%29%20%7B%0A%09%09%09%09%09%09eventContext.instance.%24message%28%7B%0A%09%09%09%09%09%09%09type%3A%20%22success%22%2C%0A%09%09%09%09%09%09%09message%3A%20%22%u6587%u4EF6%u79FB%u52A8%u6210%u529F%uFF01%22%0A%09%09%09%09%09%09%7D%29%3B%0A%0A%09%09%09%09%09%7D%20else%20%7B%0A%09%09%09%09%09%09eventContext.instance.%24message%28%7B%0A%09%09%09%09%09%09%09type%3A%20%22error%22%2C%0A%09%09%09%09%09%09%09message%3A%20%22%u6587%u4EF6%u79FB%u52A8%u5931%u8D25%uFF0C%u67B6%u6784%u4E0D%u5339%u914D%uFF01%22%0A%09%09%09%09%09%09%7D%29%3B%0A%0A%09%09%09%09%09%7D%0A%0A%09%09%09%09%7D%20else%20%7B%0A%09%09%09%09%09eventContext.instance.%24message%28%7B%0A%09%09%09%09%09%09type%3A%20%22warning%22%2C%0A%09%09%09%09%09%09message%3A%20response.result%0A%09%09%09%09%09%7D%29%3B%0A%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%0A%09%09%7D%29%0A%09%09.catch%28function%28response%29%20%7B%0A%09%09%09console.log%28response%29%3B%0A%09%09%7D%29%3B%0A%0A%7D%0A%0A%0A%0A%0A%0A</eventscript> + <beforeeventcall></beforeeventcall> + <beforeeventscript></beforeeventscript> + <aftereventcall></aftereventcall> + <aftereventscript></aftereventscript> + </userextendbutton> + </userextendbuttons> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_1.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_1.xml new file mode 100644 index 00000000..b24d6e82 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_1.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_aed82b86aba14271a0b0ad02b5fb3de7</id> + <createUser>admin</createUser> + <createTime>2022-10-13 22:20:19</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-14 00:53:50</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr8lTS+u7f3oZvQJOffDUI237cH5qcXSCfoQs3cgGx/5bilvIwAAd2JM0I5/1N5aFR</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_aed82b86aba14271a0b0ad02b5fb3de7</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_22b9b27bae6a43398714bfa4cde9577f" label="PAL架构替换" extendcode="" event=""/> + <dataView id="obj_12d8a5b838114b6dbf03a95d5941131f" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_4fd8fa769cca401db034b26c6e0b3091" isshow="true" extendcode="" event=""> + <button id="obj_664e9c305000446fa342f527b5f5136b" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_632f3fb79eb942eca93d29db9e7b8d12" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_715bf53fff9e47d5a875d66db3bb8f2a" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_851596a6e48744ec8864950ab62e8d44" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_52078d93732042bfb8b32f86dd75e5af" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_fcb0034c013f4e5eb80b09ab73c158f7" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d76d90168f85450098cd5f982ad79f7b" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_c504beb31bc841ef96b6b2304257f7d5|93607580-1130-4522-aa30-a37d2467908a","formName":"PAL架构替换","formExcelShowName":"文件架构替换","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PAL_FRAMEWORK_TOOL","boItems":[{"name":"PALNAME","title":"文件名称"},{"name":"ERRORFRAMEWORK","title":"错误架构"},{"name":"CORRECTFRAMEWORK","title":"正确架构"},{"name":"PAID","title":"文件Id"},{"name":"RESULT","title":"修改结果"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_ebdbe5b9186d43cda9125524083eaaf3" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_8857127bd1064a44a7dbb1a2b68413fe" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_47cdde7f6757472183a8d9766c912ead" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_234c41c7855a4e438eb42147083b294b" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_FRAMEWORK_TOOL" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="%7B%22behavior%22%3A%22%22%2C%22behaviorMobile%22%3A%22%22%2C%22h%22%3A%22%22%2C%22hUnit%22%3A%22px%22%2C%22ih%22%3A%22%22%2C%22ihUnit%22%3A%22px%22%2C%22isMask%22%3A0%2C%22sw%22%3A%22%22%2C%22swUnit%22%3A%22px%22%2C%22target%22%3A%22%22%2C%22title%22%3A%22%22%2C%22wUnit%22%3A%22px%22%2C%22w%22%3A%22%22%7D" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="obj_a9600e90beb1491484631fd77c761d44" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="309" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PALNAME" label="文件名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_af0b13e5a54f4cedb6e3a5520674e7d9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="168" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ERRORFRAMEWORK" label="错误架构" orderindex="1" colbehaviortarget="inner" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="openmodifyform" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_a3cf7ca035bd41e6b535f0d6b87c1b18" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="214" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CORRECTFRAMEWORK" label="正确架构" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_6a73be84418d4e228ba715abe9edd87a" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PAID" label="文件Id" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ccf94b8ca7874cfd8b81cd1f64a2f5b7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="322" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="修改结果" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_67dc8ea181d3415c8f66288524831591" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_dcc23e214abe4a19bdd9ad0b8ecd4846" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_9c25d97c738a44fd8e89cf7b306ff1ab" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_964fb139d057405fb704d24cfb821529" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_5d75158954234dd589df0e37d8ac8001" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_1b4f80e7626644ac8ea46edf2bd0cf17" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ae2e4d74932b4d49b59a354b45878b73" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_8827e5574411478a89db52ed27d026d4" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors> + <userextendbehavior id="openmodifyform" name=""> + <templatecall>onclick%3D</templatecall> + <templatescript></templatescript> + </userextendbehavior> + </userextendbehaviors> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_10.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_10.xml new file mode 100644 index 00000000..855c30f9 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_10.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_aed82b86aba14271a0b0ad02b5fb3de7</id> + <createUser>admin</createUser> + <createTime>2022-10-13 22:20:19</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-13 23:29:38</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr8lTS+u7f3oZvQJOffDUI237cH5qcXSCfoQs3cgGx/5bilvIwAAd2JM0I5/1N5aFR</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_aed82b86aba14271a0b0ad02b5fb3de7</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_22b9b27bae6a43398714bfa4cde9577f" label="PAL架构替换" extendcode="" event=""/> + <dataView id="obj_12d8a5b838114b6dbf03a95d5941131f" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_4fd8fa769cca401db034b26c6e0b3091" isshow="true" extendcode="" event=""> + <button id="obj_664e9c305000446fa342f527b5f5136b" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_632f3fb79eb942eca93d29db9e7b8d12" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_715bf53fff9e47d5a875d66db3bb8f2a" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_851596a6e48744ec8864950ab62e8d44" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_52078d93732042bfb8b32f86dd75e5af" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_fcb0034c013f4e5eb80b09ab73c158f7" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d76d90168f85450098cd5f982ad79f7b" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_c504beb31bc841ef96b6b2304257f7d5|93607580-1130-4522-aa30-a37d2467908a","formName":"PAL架构替换","formExcelShowName":"文件架构替换","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PAL_FRAMEWORK_TOOL","boItems":[{"name":"PALNAME","title":"文件名称"},{"name":"ERRORFRAMEWORK","title":"错误架构"},{"name":"CORRECTFRAMEWORK","title":"正确架构"},{"name":"PAID","title":"文件Id"},{"name":"RESULT","title":"修改结果"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_ebdbe5b9186d43cda9125524083eaaf3" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_8857127bd1064a44a7dbb1a2b68413fe" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_47cdde7f6757472183a8d9766c912ead" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_234c41c7855a4e438eb42147083b294b" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_FRAMEWORK_TOOL" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="%7B%22behavior%22%3A%22%22%2C%22behaviorMobile%22%3A%22%22%2C%22h%22%3A%22%22%2C%22hUnit%22%3A%22px%22%2C%22ih%22%3A%22%22%2C%22ihUnit%22%3A%22px%22%2C%22isMask%22%3A0%2C%22sw%22%3A%22%22%2C%22swUnit%22%3A%22px%22%2C%22target%22%3A%22%22%2C%22title%22%3A%22%22%2C%22wUnit%22%3A%22px%22%2C%22w%22%3A%22%22%7D" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="obj_a9600e90beb1491484631fd77c761d44" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="309" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PALNAME" label="文件名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_af0b13e5a54f4cedb6e3a5520674e7d9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="168" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ERRORFRAMEWORK" label="错误架构" orderindex="1" colbehaviortarget="inner" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="openmodifyform" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_a3cf7ca035bd41e6b535f0d6b87c1b18" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="214" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CORRECTFRAMEWORK" label="正确架构" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_6a73be84418d4e228ba715abe9edd87a" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PAID" label="文件Id" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ccf94b8ca7874cfd8b81cd1f64a2f5b7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="修改结果" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_67dc8ea181d3415c8f66288524831591" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_dcc23e214abe4a19bdd9ad0b8ecd4846" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_9c25d97c738a44fd8e89cf7b306ff1ab" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_964fb139d057405fb704d24cfb821529" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_5d75158954234dd589df0e37d8ac8001" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_1b4f80e7626644ac8ea46edf2bd0cf17" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ae2e4d74932b4d49b59a354b45878b73" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_8827e5574411478a89db52ed27d026d4" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors> + <userextendbehavior id="openmodifyform" name=""> + <templatecall>onclick%3D</templatecall> + <templatescript></templatescript> + </userextendbehavior> + </userextendbehaviors> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_2.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_2.xml new file mode 100644 index 00000000..19dfe846 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_2.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_aed82b86aba14271a0b0ad02b5fb3de7</id> + <createUser>admin</createUser> + <createTime>2022-10-13 22:20:19</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-14 00:51:51</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr8lTS+u7f3oZvQJOffDUI237cH5qcXSCfoQs3cgGx/5bilvIwAAd2JM0I5/1N5aFR</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_aed82b86aba14271a0b0ad02b5fb3de7</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_22b9b27bae6a43398714bfa4cde9577f" label="PAL架构替换" extendcode="" event=""/> + <dataView id="obj_12d8a5b838114b6dbf03a95d5941131f" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_4fd8fa769cca401db034b26c6e0b3091" isshow="true" extendcode="" event=""> + <button id="obj_664e9c305000446fa342f527b5f5136b" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_632f3fb79eb942eca93d29db9e7b8d12" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_715bf53fff9e47d5a875d66db3bb8f2a" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_851596a6e48744ec8864950ab62e8d44" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_52078d93732042bfb8b32f86dd75e5af" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_fcb0034c013f4e5eb80b09ab73c158f7" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d76d90168f85450098cd5f982ad79f7b" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_c504beb31bc841ef96b6b2304257f7d5|93607580-1130-4522-aa30-a37d2467908a","formName":"PAL架构替换","formExcelShowName":"文件架构替换","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PAL_FRAMEWORK_TOOL","boItems":[{"name":"PALNAME","title":"文件名称"},{"name":"ERRORFRAMEWORK","title":"错误架构"},{"name":"CORRECTFRAMEWORK","title":"正确架构"},{"name":"PAID","title":"文件Id"},{"name":"RESULT","title":"修改结果"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_ebdbe5b9186d43cda9125524083eaaf3" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_8857127bd1064a44a7dbb1a2b68413fe" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_47cdde7f6757472183a8d9766c912ead" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_234c41c7855a4e438eb42147083b294b" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_FRAMEWORK_TOOL" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="%7B%22behavior%22%3A%22%22%2C%22behaviorMobile%22%3A%22%22%2C%22h%22%3A%22%22%2C%22hUnit%22%3A%22px%22%2C%22ih%22%3A%22%22%2C%22ihUnit%22%3A%22px%22%2C%22isMask%22%3A0%2C%22sw%22%3A%22%22%2C%22swUnit%22%3A%22px%22%2C%22target%22%3A%22%22%2C%22title%22%3A%22%22%2C%22wUnit%22%3A%22px%22%2C%22w%22%3A%22%22%7D" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="obj_a9600e90beb1491484631fd77c761d44" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="309" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PALNAME" label="文件名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_af0b13e5a54f4cedb6e3a5520674e7d9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="168" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ERRORFRAMEWORK" label="错误架构" orderindex="1" colbehaviortarget="inner" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="openmodifyform" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_a3cf7ca035bd41e6b535f0d6b87c1b18" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="214" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CORRECTFRAMEWORK" label="正确架构" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_6a73be84418d4e228ba715abe9edd87a" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PAID" label="文件Id" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ccf94b8ca7874cfd8b81cd1f64a2f5b7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="修改结果" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_67dc8ea181d3415c8f66288524831591" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_dcc23e214abe4a19bdd9ad0b8ecd4846" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_9c25d97c738a44fd8e89cf7b306ff1ab" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_964fb139d057405fb704d24cfb821529" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_5d75158954234dd589df0e37d8ac8001" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_1b4f80e7626644ac8ea46edf2bd0cf17" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ae2e4d74932b4d49b59a354b45878b73" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_8827e5574411478a89db52ed27d026d4" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors> + <userextendbehavior id="openmodifyform" name=""> + <templatecall>onclick%3D</templatecall> + <templatescript></templatescript> + </userextendbehavior> + </userextendbehaviors> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_3.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_3.xml new file mode 100644 index 00000000..1369bd3b --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_3.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_aed82b86aba14271a0b0ad02b5fb3de7</id> + <createUser>admin</createUser> + <createTime>2022-10-13 22:20:19</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-14 00:41:37</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr8lTS+u7f3oZvQJOffDUI237cH5qcXSCfoQs3cgGx/5bilvIwAAd2JM0I5/1N5aFR</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_aed82b86aba14271a0b0ad02b5fb3de7</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_22b9b27bae6a43398714bfa4cde9577f" label="PAL架构替换" extendcode="" event=""/> + <dataView id="obj_12d8a5b838114b6dbf03a95d5941131f" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_4fd8fa769cca401db034b26c6e0b3091" isshow="true" extendcode="" event=""> + <button id="obj_664e9c305000446fa342f527b5f5136b" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_632f3fb79eb942eca93d29db9e7b8d12" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_715bf53fff9e47d5a875d66db3bb8f2a" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_851596a6e48744ec8864950ab62e8d44" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_52078d93732042bfb8b32f86dd75e5af" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_fcb0034c013f4e5eb80b09ab73c158f7" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d76d90168f85450098cd5f982ad79f7b" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_c504beb31bc841ef96b6b2304257f7d5|93607580-1130-4522-aa30-a37d2467908a","formName":"PAL架构替换","formExcelShowName":"文件架构替换","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PAL_FRAMEWORK_TOOL","boItems":[{"name":"PALNAME","title":"文件名称"},{"name":"ERRORFRAMEWORK","title":"错误架构"},{"name":"CORRECTFRAMEWORK","title":"正确架构"},{"name":"PAID","title":"文件Id"},{"name":"RESULT","title":"修改结果"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_ebdbe5b9186d43cda9125524083eaaf3" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_8857127bd1064a44a7dbb1a2b68413fe" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_47cdde7f6757472183a8d9766c912ead" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_234c41c7855a4e438eb42147083b294b" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_FRAMEWORK_TOOL" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="%7B%22behavior%22%3A%22%22%2C%22behaviorMobile%22%3A%22%22%2C%22h%22%3A%22%22%2C%22hUnit%22%3A%22px%22%2C%22ih%22%3A%22%22%2C%22ihUnit%22%3A%22px%22%2C%22isMask%22%3A0%2C%22sw%22%3A%22%22%2C%22swUnit%22%3A%22px%22%2C%22target%22%3A%22%22%2C%22title%22%3A%22%22%2C%22wUnit%22%3A%22px%22%2C%22w%22%3A%22%22%7D" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="obj_a9600e90beb1491484631fd77c761d44" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="309" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PALNAME" label="文件名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_af0b13e5a54f4cedb6e3a5520674e7d9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="168" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ERRORFRAMEWORK" label="错误架构" orderindex="1" colbehaviortarget="inner" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="openmodifyform" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_a3cf7ca035bd41e6b535f0d6b87c1b18" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="214" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CORRECTFRAMEWORK" label="正确架构" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_6a73be84418d4e228ba715abe9edd87a" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PAID" label="文件Id" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ccf94b8ca7874cfd8b81cd1f64a2f5b7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="修改结果" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_67dc8ea181d3415c8f66288524831591" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_dcc23e214abe4a19bdd9ad0b8ecd4846" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_9c25d97c738a44fd8e89cf7b306ff1ab" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_964fb139d057405fb704d24cfb821529" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_5d75158954234dd589df0e37d8ac8001" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_1b4f80e7626644ac8ea46edf2bd0cf17" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ae2e4d74932b4d49b59a354b45878b73" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_8827e5574411478a89db52ed27d026d4" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors> + <userextendbehavior id="openmodifyform" name=""> + <templatecall>onclick%3D</templatecall> + <templatescript></templatescript> + </userextendbehavior> + </userextendbehaviors> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_4.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_4.xml new file mode 100644 index 00000000..b1c4d569 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_4.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_aed82b86aba14271a0b0ad02b5fb3de7</id> + <createUser>admin</createUser> + <createTime>2022-10-13 22:20:19</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-14 00:40:49</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr8lTS+u7f3oZvQJOffDUI237cH5qcXSCfoQs3cgGx/5bilvIwAAd2JM0I5/1N5aFR</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_aed82b86aba14271a0b0ad02b5fb3de7</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_22b9b27bae6a43398714bfa4cde9577f" label="PAL架构替换" extendcode="" event=""/> + <dataView id="obj_12d8a5b838114b6dbf03a95d5941131f" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_4fd8fa769cca401db034b26c6e0b3091" isshow="true" extendcode="" event=""> + <button id="obj_664e9c305000446fa342f527b5f5136b" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_632f3fb79eb942eca93d29db9e7b8d12" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_715bf53fff9e47d5a875d66db3bb8f2a" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_851596a6e48744ec8864950ab62e8d44" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_52078d93732042bfb8b32f86dd75e5af" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_fcb0034c013f4e5eb80b09ab73c158f7" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d76d90168f85450098cd5f982ad79f7b" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_c504beb31bc841ef96b6b2304257f7d5|93607580-1130-4522-aa30-a37d2467908a","formName":"PAL架构替换","formExcelShowName":"文件架构替换","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PAL_FRAMEWORK_TOOL","boItems":[{"name":"PALNAME","title":"文件名称"},{"name":"ERRORFRAMEWORK","title":"错误架构"},{"name":"CORRECTFRAMEWORK","title":"正确架构"},{"name":"PAID","title":"文件Id"},{"name":"RESULT","title":"修改结果"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_ebdbe5b9186d43cda9125524083eaaf3" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_8857127bd1064a44a7dbb1a2b68413fe" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_47cdde7f6757472183a8d9766c912ead" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_234c41c7855a4e438eb42147083b294b" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_FRAMEWORK_TOOL" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="%7B%22behavior%22%3A%22%22%2C%22behaviorMobile%22%3A%22%22%2C%22h%22%3A%22%22%2C%22hUnit%22%3A%22px%22%2C%22ih%22%3A%22%22%2C%22ihUnit%22%3A%22px%22%2C%22isMask%22%3A0%2C%22sw%22%3A%22%22%2C%22swUnit%22%3A%22px%22%2C%22target%22%3A%22%22%2C%22title%22%3A%22%22%2C%22wUnit%22%3A%22px%22%2C%22w%22%3A%22%22%7D" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="obj_a9600e90beb1491484631fd77c761d44" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="309" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PALNAME" label="文件名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_af0b13e5a54f4cedb6e3a5520674e7d9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="168" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ERRORFRAMEWORK" label="错误架构" orderindex="1" colbehaviortarget="inner" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="openmodifyform" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_a3cf7ca035bd41e6b535f0d6b87c1b18" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="214" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CORRECTFRAMEWORK" label="正确架构" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_6a73be84418d4e228ba715abe9edd87a" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PAID" label="文件Id" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ccf94b8ca7874cfd8b81cd1f64a2f5b7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="修改结果" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_67dc8ea181d3415c8f66288524831591" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_dcc23e214abe4a19bdd9ad0b8ecd4846" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_9c25d97c738a44fd8e89cf7b306ff1ab" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_964fb139d057405fb704d24cfb821529" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_5d75158954234dd589df0e37d8ac8001" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_1b4f80e7626644ac8ea46edf2bd0cf17" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ae2e4d74932b4d49b59a354b45878b73" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_8827e5574411478a89db52ed27d026d4" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors> + <userextendbehavior id="openmodifyform" name=""> + <templatecall>onclick%3D</templatecall> + <templatescript></templatescript> + </userextendbehavior> + </userextendbehaviors> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_5.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_5.xml new file mode 100644 index 00000000..71074158 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_5.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_aed82b86aba14271a0b0ad02b5fb3de7</id> + <createUser>admin</createUser> + <createTime>2022-10-13 22:20:19</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-14 00:39:41</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr8lTS+u7f3oZvQJOffDUI237cH5qcXSCfoQs3cgGx/5bilvIwAAd2JM0I5/1N5aFR</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_aed82b86aba14271a0b0ad02b5fb3de7</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_22b9b27bae6a43398714bfa4cde9577f" label="PAL架构替换" extendcode="" event=""/> + <dataView id="obj_12d8a5b838114b6dbf03a95d5941131f" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_4fd8fa769cca401db034b26c6e0b3091" isshow="true" extendcode="" event=""> + <button id="obj_664e9c305000446fa342f527b5f5136b" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_632f3fb79eb942eca93d29db9e7b8d12" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_715bf53fff9e47d5a875d66db3bb8f2a" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_851596a6e48744ec8864950ab62e8d44" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_52078d93732042bfb8b32f86dd75e5af" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_fcb0034c013f4e5eb80b09ab73c158f7" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d76d90168f85450098cd5f982ad79f7b" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_c504beb31bc841ef96b6b2304257f7d5|93607580-1130-4522-aa30-a37d2467908a","formName":"PAL架构替换","formExcelShowName":"文件架构替换","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PAL_FRAMEWORK_TOOL","boItems":[{"name":"PALNAME","title":"文件名称"},{"name":"ERRORFRAMEWORK","title":"错误架构"},{"name":"CORRECTFRAMEWORK","title":"正确架构"},{"name":"PAID","title":"文件Id"},{"name":"RESULT","title":"修改结果"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_ebdbe5b9186d43cda9125524083eaaf3" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_8857127bd1064a44a7dbb1a2b68413fe" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_47cdde7f6757472183a8d9766c912ead" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_234c41c7855a4e438eb42147083b294b" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_FRAMEWORK_TOOL" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="%7B%22behavior%22%3A%22%22%2C%22behaviorMobile%22%3A%22%22%2C%22h%22%3A%22%22%2C%22hUnit%22%3A%22px%22%2C%22ih%22%3A%22%22%2C%22ihUnit%22%3A%22px%22%2C%22isMask%22%3A0%2C%22sw%22%3A%22%22%2C%22swUnit%22%3A%22px%22%2C%22target%22%3A%22%22%2C%22title%22%3A%22%22%2C%22wUnit%22%3A%22px%22%2C%22w%22%3A%22%22%7D" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="obj_a9600e90beb1491484631fd77c761d44" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="309" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PALNAME" label="文件名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_af0b13e5a54f4cedb6e3a5520674e7d9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="168" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ERRORFRAMEWORK" label="错误架构" orderindex="1" colbehaviortarget="inner" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="openmodifyform" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_a3cf7ca035bd41e6b535f0d6b87c1b18" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="214" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CORRECTFRAMEWORK" label="正确架构" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_6a73be84418d4e228ba715abe9edd87a" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PAID" label="文件Id" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ccf94b8ca7874cfd8b81cd1f64a2f5b7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="修改结果" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_67dc8ea181d3415c8f66288524831591" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_dcc23e214abe4a19bdd9ad0b8ecd4846" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_9c25d97c738a44fd8e89cf7b306ff1ab" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_964fb139d057405fb704d24cfb821529" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_5d75158954234dd589df0e37d8ac8001" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_1b4f80e7626644ac8ea46edf2bd0cf17" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ae2e4d74932b4d49b59a354b45878b73" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_8827e5574411478a89db52ed27d026d4" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors> + <userextendbehavior id="openmodifyform" name=""> + <templatecall>onclick%3D</templatecall> + <templatescript></templatescript> + </userextendbehavior> + </userextendbehaviors> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_6.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_6.xml new file mode 100644 index 00000000..ba564210 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_6.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_aed82b86aba14271a0b0ad02b5fb3de7</id> + <createUser>admin</createUser> + <createTime>2022-10-13 22:20:19</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-14 00:38:53</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr8lTS+u7f3oZvQJOffDUI237cH5qcXSCfoQs3cgGx/5bilvIwAAd2JM0I5/1N5aFR</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_aed82b86aba14271a0b0ad02b5fb3de7</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_22b9b27bae6a43398714bfa4cde9577f" label="PAL架构替换" extendcode="" event=""/> + <dataView id="obj_12d8a5b838114b6dbf03a95d5941131f" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_4fd8fa769cca401db034b26c6e0b3091" isshow="true" extendcode="" event=""> + <button id="obj_664e9c305000446fa342f527b5f5136b" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_632f3fb79eb942eca93d29db9e7b8d12" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_715bf53fff9e47d5a875d66db3bb8f2a" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_851596a6e48744ec8864950ab62e8d44" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_52078d93732042bfb8b32f86dd75e5af" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_fcb0034c013f4e5eb80b09ab73c158f7" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d76d90168f85450098cd5f982ad79f7b" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_c504beb31bc841ef96b6b2304257f7d5|93607580-1130-4522-aa30-a37d2467908a","formName":"PAL架构替换","formExcelShowName":"文件架构替换","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PAL_FRAMEWORK_TOOL","boItems":[{"name":"PALNAME","title":"文件名称"},{"name":"ERRORFRAMEWORK","title":"错误架构"},{"name":"CORRECTFRAMEWORK","title":"正确架构"},{"name":"PAID","title":"文件Id"},{"name":"RESULT","title":"修改结果"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_ebdbe5b9186d43cda9125524083eaaf3" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_8857127bd1064a44a7dbb1a2b68413fe" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_47cdde7f6757472183a8d9766c912ead" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_234c41c7855a4e438eb42147083b294b" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_FRAMEWORK_TOOL" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="%7B%22behavior%22%3A%22%22%2C%22behaviorMobile%22%3A%22%22%2C%22h%22%3A%22%22%2C%22hUnit%22%3A%22px%22%2C%22ih%22%3A%22%22%2C%22ihUnit%22%3A%22px%22%2C%22isMask%22%3A0%2C%22sw%22%3A%22%22%2C%22swUnit%22%3A%22px%22%2C%22target%22%3A%22%22%2C%22title%22%3A%22%22%2C%22wUnit%22%3A%22px%22%2C%22w%22%3A%22%22%7D" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="obj_a9600e90beb1491484631fd77c761d44" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="309" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PALNAME" label="文件名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_af0b13e5a54f4cedb6e3a5520674e7d9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="168" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ERRORFRAMEWORK" label="错误架构" orderindex="1" colbehaviortarget="inner" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="openmodifyform" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_a3cf7ca035bd41e6b535f0d6b87c1b18" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="214" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CORRECTFRAMEWORK" label="正确架构" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_6a73be84418d4e228ba715abe9edd87a" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PAID" label="文件Id" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ccf94b8ca7874cfd8b81cd1f64a2f5b7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="修改结果" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_67dc8ea181d3415c8f66288524831591" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_dcc23e214abe4a19bdd9ad0b8ecd4846" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_9c25d97c738a44fd8e89cf7b306ff1ab" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_964fb139d057405fb704d24cfb821529" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_5d75158954234dd589df0e37d8ac8001" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_1b4f80e7626644ac8ea46edf2bd0cf17" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ae2e4d74932b4d49b59a354b45878b73" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_8827e5574411478a89db52ed27d026d4" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors> + <userextendbehavior id="openmodifyform" name=""> + <templatecall>onclick%3D</templatecall> + <templatescript></templatescript> + </userextendbehavior> + </userextendbehaviors> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_7.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_7.xml new file mode 100644 index 00000000..9d3a320f --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_7.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_aed82b86aba14271a0b0ad02b5fb3de7</id> + <createUser>admin</createUser> + <createTime>2022-10-13 22:20:19</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-14 00:26:55</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr8lTS+u7f3oZvQJOffDUI237cH5qcXSCfoQs3cgGx/5bilvIwAAd2JM0I5/1N5aFR</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_aed82b86aba14271a0b0ad02b5fb3de7</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_22b9b27bae6a43398714bfa4cde9577f" label="PAL架构替换" extendcode="" event=""/> + <dataView id="obj_12d8a5b838114b6dbf03a95d5941131f" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_4fd8fa769cca401db034b26c6e0b3091" isshow="true" extendcode="" event=""> + <button id="obj_664e9c305000446fa342f527b5f5136b" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_632f3fb79eb942eca93d29db9e7b8d12" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_715bf53fff9e47d5a875d66db3bb8f2a" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_851596a6e48744ec8864950ab62e8d44" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_52078d93732042bfb8b32f86dd75e5af" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_fcb0034c013f4e5eb80b09ab73c158f7" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d76d90168f85450098cd5f982ad79f7b" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_c504beb31bc841ef96b6b2304257f7d5|93607580-1130-4522-aa30-a37d2467908a","formName":"PAL架构替换","formExcelShowName":"文件架构替换","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PAL_FRAMEWORK_TOOL","boItems":[{"name":"PALNAME","title":"文件名称"},{"name":"ERRORFRAMEWORK","title":"错误架构"},{"name":"CORRECTFRAMEWORK","title":"正确架构"},{"name":"PAID","title":"文件Id"},{"name":"RESULT","title":"修改结果"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_ebdbe5b9186d43cda9125524083eaaf3" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_8857127bd1064a44a7dbb1a2b68413fe" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_47cdde7f6757472183a8d9766c912ead" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_234c41c7855a4e438eb42147083b294b" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_FRAMEWORK_TOOL" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="%7B%22behavior%22%3A%22%22%2C%22behaviorMobile%22%3A%22%22%2C%22h%22%3A%22%22%2C%22hUnit%22%3A%22px%22%2C%22ih%22%3A%22%22%2C%22ihUnit%22%3A%22px%22%2C%22isMask%22%3A0%2C%22sw%22%3A%22%22%2C%22swUnit%22%3A%22px%22%2C%22target%22%3A%22%22%2C%22title%22%3A%22%22%2C%22wUnit%22%3A%22px%22%2C%22w%22%3A%22%22%7D" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="obj_a9600e90beb1491484631fd77c761d44" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="309" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PALNAME" label="文件名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_af0b13e5a54f4cedb6e3a5520674e7d9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="168" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ERRORFRAMEWORK" label="错误架构" orderindex="1" colbehaviortarget="inner" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="openmodifyform" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_a3cf7ca035bd41e6b535f0d6b87c1b18" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="214" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CORRECTFRAMEWORK" label="正确架构" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_6a73be84418d4e228ba715abe9edd87a" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PAID" label="文件Id" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ccf94b8ca7874cfd8b81cd1f64a2f5b7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="修改结果" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_67dc8ea181d3415c8f66288524831591" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_dcc23e214abe4a19bdd9ad0b8ecd4846" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_9c25d97c738a44fd8e89cf7b306ff1ab" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_964fb139d057405fb704d24cfb821529" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_5d75158954234dd589df0e37d8ac8001" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_1b4f80e7626644ac8ea46edf2bd0cf17" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ae2e4d74932b4d49b59a354b45878b73" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_8827e5574411478a89db52ed27d026d4" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors> + <userextendbehavior id="openmodifyform" name=""> + <templatecall>onclick%3D</templatecall> + <templatescript></templatescript> + </userextendbehavior> + </userextendbehaviors> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_8.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_8.xml new file mode 100644 index 00000000..fbda832a --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_8.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_aed82b86aba14271a0b0ad02b5fb3de7</id> + <createUser>admin</createUser> + <createTime>2022-10-13 22:20:19</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-14 00:21:50</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr8lTS+u7f3oZvQJOffDUI237cH5qcXSCfoQs3cgGx/5bilvIwAAd2JM0I5/1N5aFR</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_aed82b86aba14271a0b0ad02b5fb3de7</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_22b9b27bae6a43398714bfa4cde9577f" label="PAL架构替换" extendcode="" event=""/> + <dataView id="obj_12d8a5b838114b6dbf03a95d5941131f" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_4fd8fa769cca401db034b26c6e0b3091" isshow="true" extendcode="" event=""> + <button id="obj_664e9c305000446fa342f527b5f5136b" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_632f3fb79eb942eca93d29db9e7b8d12" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_715bf53fff9e47d5a875d66db3bb8f2a" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_851596a6e48744ec8864950ab62e8d44" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_52078d93732042bfb8b32f86dd75e5af" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_fcb0034c013f4e5eb80b09ab73c158f7" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d76d90168f85450098cd5f982ad79f7b" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_c504beb31bc841ef96b6b2304257f7d5|93607580-1130-4522-aa30-a37d2467908a","formName":"PAL架构替换","formExcelShowName":"文件架构替换","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PAL_FRAMEWORK_TOOL","boItems":[{"name":"PALNAME","title":"文件名称"},{"name":"ERRORFRAMEWORK","title":"错误架构"},{"name":"CORRECTFRAMEWORK","title":"正确架构"},{"name":"PAID","title":"文件Id"},{"name":"RESULT","title":"修改结果"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_ebdbe5b9186d43cda9125524083eaaf3" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_8857127bd1064a44a7dbb1a2b68413fe" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_47cdde7f6757472183a8d9766c912ead" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_234c41c7855a4e438eb42147083b294b" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_FRAMEWORK_TOOL" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="%7B%22behavior%22%3A%22%22%2C%22behaviorMobile%22%3A%22%22%2C%22h%22%3A%22%22%2C%22hUnit%22%3A%22px%22%2C%22ih%22%3A%22%22%2C%22ihUnit%22%3A%22px%22%2C%22isMask%22%3A0%2C%22sw%22%3A%22%22%2C%22swUnit%22%3A%22px%22%2C%22target%22%3A%22%22%2C%22title%22%3A%22%22%2C%22wUnit%22%3A%22px%22%2C%22w%22%3A%22%22%7D" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="obj_a9600e90beb1491484631fd77c761d44" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="309" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PALNAME" label="文件名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_af0b13e5a54f4cedb6e3a5520674e7d9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="168" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ERRORFRAMEWORK" label="错误架构" orderindex="1" colbehaviortarget="inner" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="openmodifyform" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_a3cf7ca035bd41e6b535f0d6b87c1b18" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="214" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CORRECTFRAMEWORK" label="正确架构" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_6a73be84418d4e228ba715abe9edd87a" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PAID" label="文件Id" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ccf94b8ca7874cfd8b81cd1f64a2f5b7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="修改结果" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_67dc8ea181d3415c8f66288524831591" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_dcc23e214abe4a19bdd9ad0b8ecd4846" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_9c25d97c738a44fd8e89cf7b306ff1ab" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_964fb139d057405fb704d24cfb821529" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_5d75158954234dd589df0e37d8ac8001" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_1b4f80e7626644ac8ea46edf2bd0cf17" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ae2e4d74932b4d49b59a354b45878b73" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_8827e5574411478a89db52ed27d026d4" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors> + <userextendbehavior id="openmodifyform" name=""> + <templatecall>onclick%3D</templatecall> + <templatescript></templatescript> + </userextendbehavior> + </userextendbehaviors> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_9.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_9.xml new file mode 100644 index 00000000..704e9c52 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_aed82b86aba14271a0b0ad02b5fb3de7/obj_aed82b86aba14271a0b0ad02b5fb3de7_9.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_aed82b86aba14271a0b0ad02b5fb3de7</id> + <createUser>admin</createUser> + <createTime>2022-10-13 22:20:19</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-14 00:21:37</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr8lTS+u7f3oZvQJOffDUI237cH5qcXSCfoQs3cgGx/5bilvIwAAd2JM0I5/1N5aFR</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_aed82b86aba14271a0b0ad02b5fb3de7</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_22b9b27bae6a43398714bfa4cde9577f" label="PAL架构替换" extendcode="" event=""/> + <dataView id="obj_12d8a5b838114b6dbf03a95d5941131f" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_4fd8fa769cca401db034b26c6e0b3091" isshow="true" extendcode="" event=""> + <button id="obj_664e9c305000446fa342f527b5f5136b" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_632f3fb79eb942eca93d29db9e7b8d12" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_715bf53fff9e47d5a875d66db3bb8f2a" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_851596a6e48744ec8864950ab62e8d44" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_52078d93732042bfb8b32f86dd75e5af" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_fcb0034c013f4e5eb80b09ab73c158f7" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d76d90168f85450098cd5f982ad79f7b" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_c504beb31bc841ef96b6b2304257f7d5|93607580-1130-4522-aa30-a37d2467908a","formName":"PAL架构替换","formExcelShowName":"文件架构替换","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PAL_FRAMEWORK_TOOL","boItems":[{"name":"PALNAME","title":"文件名称"},{"name":"ERRORFRAMEWORK","title":"错误架构"},{"name":"CORRECTFRAMEWORK","title":"正确架构"},{"name":"PAID","title":"文件Id"},{"name":"RESULT","title":"修改结果"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_ebdbe5b9186d43cda9125524083eaaf3" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_8857127bd1064a44a7dbb1a2b68413fe" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_47cdde7f6757472183a8d9766c912ead" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_234c41c7855a4e438eb42147083b294b" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_FRAMEWORK_TOOL" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="%7B%22behavior%22%3A%22%22%2C%22behaviorMobile%22%3A%22%22%2C%22h%22%3A%22%22%2C%22hUnit%22%3A%22px%22%2C%22ih%22%3A%22%22%2C%22ihUnit%22%3A%22px%22%2C%22isMask%22%3A0%2C%22sw%22%3A%22%22%2C%22swUnit%22%3A%22px%22%2C%22target%22%3A%22%22%2C%22title%22%3A%22%22%2C%22wUnit%22%3A%22px%22%2C%22w%22%3A%22%22%7D" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="obj_a9600e90beb1491484631fd77c761d44" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="309" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PALNAME" label="文件名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_af0b13e5a54f4cedb6e3a5520674e7d9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="168" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ERRORFRAMEWORK" label="错误架构" orderindex="1" colbehaviortarget="inner" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="openmodifyform" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_a3cf7ca035bd41e6b535f0d6b87c1b18" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="214" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CORRECTFRAMEWORK" label="正确架构" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_6a73be84418d4e228ba715abe9edd87a" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PAID" label="文件Id" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ccf94b8ca7874cfd8b81cd1f64a2f5b7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="100px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="修改结果" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_67dc8ea181d3415c8f66288524831591" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_dcc23e214abe4a19bdd9ad0b8ecd4846" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_9c25d97c738a44fd8e89cf7b306ff1ab" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_964fb139d057405fb704d24cfb821529" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_5d75158954234dd589df0e37d8ac8001" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_1b4f80e7626644ac8ea46edf2bd0cf17" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ae2e4d74932b4d49b59a354b45878b73" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_8827e5574411478a89db52ed27d026d4" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120px" colALias="" colTableAlias="" colTable="BO_EU_PAL_FRAMEWORK_TOOL" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors> + <userextendbehavior id="openmodifyform" name=""> + <templatecall>onclick%3D</templatecall> + <templatescript></templatescript> + </userextendbehavior> + </userextendbehaviors> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_b5f395389a354557ac73e2eef0315533/obj_b5f395389a354557ac73e2eef0315533.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_b5f395389a354557ac73e2eef0315533/obj_b5f395389a354557ac73e2eef0315533.xml new file mode 100644 index 00000000..ab31cbea --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_b5f395389a354557ac73e2eef0315533/obj_b5f395389a354557ac73e2eef0315533.xml @@ -0,0 +1,115 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_b5f395389a354557ac73e2eef0315533</id> + <createUser>admin</createUser> + <createTime>2022-10-09 13:02:48</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-10 17:35:01</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrIgo8tLWQCPm97EdrT7DBipMg+PeFe6Ga/DwptVFEiKCRO9YVa0ltwvAM5UxoarMc</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_b5f395389a354557ac73e2eef0315533</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_42ff3fd71fdd42e08b418e974147a13c" label="文件状态批量修改" extendcode="" event=""/> + <dataView id="obj_770010ea990748c98b264314a592ace8" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_3cc3bcf9a7a148b0a000442d1a302639" isshow="true" extendcode="" event=""> + <button id="obj_af2a3e3a18ac4abda236c1789f62d6d9" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_bc9653482218466dbafb8bbadffa159c" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d1ce8cb94cc948f083f50043dcb0fde6" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_07c4c238a12d453498e856035d9643b3" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_ba2f0a30d5be4c9f9827b566b255ba37" refbuttonid="obj_3fa876e649524e29981e39194a49df46" cls="" fontColor="" bgColor="#d9d9d9" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d1176f7720d64c8ba7b278be0150d631" refbuttonid="obj_1a3ca2ee7799444c8eb40c63f2db4310" cls="" fontColor="" bgColor="#b5c3d2" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_c8222f8362ff4da09d714f69f5f13bab" refbuttonid="obj_01673e8348c748f9bb61d274cbc4cd79" cls="" fontColor="" bgColor="#b3d0d7" security="" isshow="true" orderindex="6" mobileShow="true" event="" selectShow="false"/> + <button id="obj_6c5791418fb849c7868c4a07912f1a52" refbuttonid="obj_5ab67f3e20304148926ded24cf1f91cb" cls="" fontColor="" bgColor="#b5c3d2" security="" isshow="true" orderindex="7" mobileShow="false" event="" selectShow="false"/> + <button id="obj_e7ad0ce3b3914ccf8792c57d00af2701" refbuttonid="obj_3a98ad935c8744f48d2fb9e79c1cc85e" cls="" fontColor="" bgColor="#c6d9f0" security="" isshow="true" orderindex="8" mobileShow="false" event="" selectShow="false"/> + <button id="obj_2a035cd067374865b617918f69dce7d9" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="9" mobileShow="false" event="" selectShow="false"/> + <button id="obj_8e3f6e1317ae4f1189db13d4a6c25477" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="10" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_123f7e6eb6ee462b92b3c4f82c0188c4" isshow="true" layoutType="tile" tdGroup="4" tileLayout="x" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="true"> + <likecondition id="obj_22ab80ecb4384c93a882c7a27368ddb0" field="PLNAME" extend1="" label="文件名称" comparetype="like" uiname="TEXT" relationship="" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="0" event=""/> + <likecondition id="obj_9f3d90728d564df8ae5581d57867aafd" field="PLMETHODID" extend1="" label="文件类型" comparetype="=" uiname="TEXT" relationship="AND" uidefault="" uicomponent="列表" uiref="{"type":"NORMAL","cons":"process.epc:epc模型|process.flowchart:泳道图模型|control.policy:制度模型|data.form:表单模型|process.evc:架构模型|org.role:角色模型|control.kpi:绩效模型","showAdv":false}" required="false" security="" orderindex="1" event=""/> + <likecondition id="obj_33a60133c8da48ee95081c13c741c4d5" field="ISPUBLISH" extend1="" label="发布状态" comparetype="=" uiname="NUMBER" relationship="" uidefault="" uicomponent="列表" uiref="{"type":"NORMAL","cons":"0:未发布|1:已发布","showAdv":false}" required="false" security="" orderindex="2" event=""/> + <likecondition id="obj_96ca23aaeeb0461ab64e0b6eb2580a1f" field="ISAPPROVAL" extend1="" label="审批状态" comparetype="=" uiname="NUMBER" relationship="" uidefault="" uicomponent="列表" uiref="{"type":"NORMAL","cons":"0:设计中|1:审批中","showAdv":false}" required="false" security="" orderindex="3" event=""/> + <likecondition id="obj_af20255b921145c595e774928cddd8cd" field="ISSTOP" extend1="" label="停用状态" comparetype="=" uiname="NUMBER" relationship="" uidefault="" uicomponent="列表" uiref="{"type":"NORMAL","cons":"0:在用|1:停用","showAdv":false}" required="false" security="" orderindex="4" event=""/> + </searcher> + <navTree id="obj_81f18c49af8a4cdc80a535cb5de7fa3a" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_b35a8081fdd349e382eeb5c73885b3b6" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_4878ff4edeeb45b081cd9e6fe23e10e0" isshow="true" autoSearch="true" customSet="true" select="false" datasource="sql:SELECT * FROM app_act_coe_pal_repository where PLMETHODID in ('org.role','data.form','process.flowchart','process.epc','control.policy','process.evc','control.kpi')" countSql="" pagesize="100" event="" rowDefHeight="25" showCheckBox="true" ismultiple="false" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="%7B%22behavior%22%3A%22%u6253%u5F00%u6A21%u578B%22%2C%22behaviorMobile%22%3A%22%22%2C%22h%22%3A%22%22%2C%22hUnit%22%3A%22px%22%2C%22ih%22%3A%22%22%2C%22ihUnit%22%3A%22px%22%2C%22isMask%22%3A0%2C%22sw%22%3A%22%22%2C%22swUnit%22%3A%22px%22%2C%22target%22%3A%22%22%2C%22title%22%3A%22%22%2C%22wUnit%22%3A%22px%22%2C%22w%22%3A%22%22%7D" extendsql="" identifier="ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="ebd68e1e-4b9a-44c7-9b1c-3d374947c392" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="295" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_REPOSITORY" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLNAME" label="文件名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="obj_bd52e5012341419f82151d1f54c9357c" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="18cc2cff-408c-4fda-98b2-125186303631" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="99" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_REPOSITORY" length="8" required="0" align="center" showrule="{"type":"NORMAL","cons":"1:V1.0|2:V2.0|3:V3.0|4:V4.0|5:V5.0|6:V6.0|7:V7.0|8:V8.0","showAdv":false}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLVER" label="文件版本" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="26dabc03-352f-45ce-a5de-c6d5e3538540" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="80" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_REPOSITORY" length="3" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLLEVEL" label="PLLEVEL" orderindex="2" colbehaviortarget="" ishidden="true" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="78cbf7ae-b391-46a5-a5c1-d99c909d4ec2" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="88" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_REPOSITORY" length="2" required="0" align="center" showrule="{"type":"NORMAL","cons":"1:是|0:否","showAdv":false}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ISUSE" label="是否在用" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="0f579fcb-cd8f-4c02-89ba-6a88b28254e9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="139" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_REPOSITORY" length="2" required="0" align="center" showrule="{"showAdv":false,"type":"NORMAL","cons":"0:未发布|1:已发布","rainbowTab":{"0":"#ffe9c4","1":"#d1e8ff"}}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ISPUBLISH" label="发布状态" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="004ba583-011c-4fa7-8df0-821d1233a3b9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="80" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_REPOSITORY" length="2" required="0" align="center" showrule="{"type":"NORMAL","cons":"0:设计中|1:审批中","showAdv":false}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ISAPPROVAL" label="审批状态" orderindex="5" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="03bcea60-9150-4c8a-9d50-d8d0a62fd5ad" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="105" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_REPOSITORY" length="2" required="0" align="center" showrule="{"type":"NORMAL","cons":"0:在用|1:停用","showAdv":false}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ISSTOP" label="停用状态" orderindex="6" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="b89af774-7237-43f1-b765-a2b613854f8c" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="133" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_REPOSITORY" length="36" required="0" align="center" showrule="{"type":"NORMAL","cons":"control.policy:制度文件|process.flowchart:泳道图模型|data.form:表单模型|process.epc:epc模型|process.evc:架构模型|org.role:角色模型|control.kpi:绩效模型","showAdv":false,"rainbowTab":{"data.form":"#d1e8ff","process.epc":"#ffe9c4"}}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLMETHODID" label="文件类型" orderindex="7" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="f822b6f3-88ae-407a-a39a-0014fa8d1176" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="288" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_REPOSITORY" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ID" label="文件ID" orderindex="8" colbehaviortarget="" ishidden="true" export="true" backHide="false" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="6694cdba-bbd4-44ec-8d6c-987748b93efc" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="167" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_REPOSITORY" length="7" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CREATEDATE" label="模型创建日期" orderindex="9" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="ade57fa9-0806-4e58-b9da-3fb063f0320f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="160" colALias="" colTableAlias="" colTable="APP_ACT_COE_PAL_REPOSITORY" length="7" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PUBLISHDATE" label="发布日期" orderindex="10" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons> + <userextendbutton id="obj_3fa876e649524e29981e39194a49df46" icon="" label="改为设计态" tip=""> + <eventcall></eventcall> + <eventscript>var%20data%20%3D%20eventContext.DWApi.grid.getCheckedData%28%29%3B%0Aif%28data%5B0%5D%3D%3Dnull%7C%7Cdata.length%3E1%29%7B%0A%20%20eventContext.instance.%24message%28%7B%0A%20%20type%3A%22error%22%2C%0A%20%20message%3A%22%u8BF7%u9009%u62E9%u5355%u6761%u6570%u636E%uFF01%22%0A%7D%29%3B%0A%7Delse%7B%0A%20testCall%28%29%3B%0A%7D%0A%0Afunction%20testCall%28%29%20%7B%0A%09var%20plId%20%3D%20data%5B0%5D.ID%3B%0A%09var%20sid%20%3D%20eventContext.DWApi.grid.sid%3B%0A%09eventContext.instance.awsuiaxios.post%28%7B%0A%09%09%09url%3A%20%22./jd%22%2C%0A%09%09%09data%3A%20%7B%0A%09%09%09%09cmd%3A%20%22com.awspaas.user.apps.app.controller.updatePalFileState%22%2C%0A%09%09%09%09sid%3A%20sid%2C%0A%09%09%09%09plId%3A%20plId%2C%0A%09%09%09%09state%3A%20%220%22%2C%0A%09%09%09%09type%3A%20%221%22%0A%09%09%09%09//%20bindId%3A%20%20eventContext.row._BINDID%2C%0A%09%09%09%09//APPLYNO%3A%20JSON.stringify%28result%29%0A%09%09%09%09//title%20%3A%20eventContext.row.FILENAME%0A%09%09%09%7D%0A%09%09%7D%29%0A%09%09.then%28function%28response%29%20%7B%0A%09%09%09if%20%28response.result%20%21%3D%20%22error%22%29%20%7B%0A%09%09%09%09if%20%28response.result%20%3D%3D%20%22ok%22%29%20%7B%0A%09%09%09%09%09eventContext.instance.%24message%28%7B%0A%09%09%09%09%09%09type%3A%20%22success%22%2C%0A%09%09%09%09%09%09message%3A%20%22%u6587%u4EF6%u5DF2%u6539%u4E3A%u8BBE%u8BA1%u72B6%u6001%uFF01%22%0A%09%09%09%09%09%7D%29%3B%0A%09%09%09%09%7D%20else%20%7B%0A%09%09%09%09%09eventContext.instance.%24message%28%7B%0A%09%09%09%09%09%09type%3A%20%22warning%22%2C%0A%09%09%09%09%09%09message%3A%20response.result%0A%09%09%09%09%09%7D%29%3B%0A%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%0A%09%09%7D%29%0A%09%09.catch%28function%28response%29%20%7B%0A%09%09%09console.log%28response%29%3B%0A%09%09%7D%29%3B%0A%0A%7D%0A%0A%0A%0A%0A%0A</eventscript> + <beforeeventcall></beforeeventcall> + <beforeeventscript></beforeeventscript> + <aftereventcall></aftereventcall> + <aftereventscript></aftereventscript> + </userextendbutton> + <userextendbutton id="obj_1a3ca2ee7799444c8eb40c63f2db4310" icon="" label="改为发布态" tip=""> + <eventcall></eventcall> + <eventscript>var%20data%20%3D%20eventContext.DWApi.grid.getCheckedData%28%29%3B%0Aif%28data%5B0%5D%3D%3Dnull%7C%7Cdata.length%3E1%29%7B%0A%20%20eventContext.instance.%24message%28%7B%0A%20%20type%3A%22error%22%2C%0A%20%20message%3A%22%u8BF7%u9009%u62E9%u5355%u6761%u6570%u636E%uFF01%22%0A%7D%29%3B%0A%7Delse%7B%0A%20testCall%28%29%3B%0A%7D%0A%0Afunction%20testCall%28%29%20%7B%0A%09var%20plId%20%3D%20data%5B0%5D.ID%3B%0A%09var%20sid%20%3D%20eventContext.DWApi.grid.sid%3B%0A%09eventContext.instance.awsuiaxios.post%28%7B%0A%09%09%09url%3A%20%22./jd%22%2C%0A%09%09%09data%3A%20%7B%0A%09%09%09%09cmd%3A%20%22com.awspaas.user.apps.app.controller.updatePalFileState%22%2C%0A%09%09%09%09sid%3A%20sid%2C%0A%09%09%09%09plId%3A%20plId%2C%0A%09%09%09%09state%3A%20%221%22%2C%0A%09%09%09%09type%3A%20%221%22%0A%09%09%09%09//%20bindId%3A%20%20eventContext.row._BINDID%2C%0A%09%09%09%09//APPLYNO%3A%20JSON.stringify%28result%29%0A%09%09%09%09//title%20%3A%20eventContext.row.FILENAME%0A%09%09%09%7D%0A%09%09%7D%29%0A%09%09.then%28function%28response%29%20%7B%0A%09%09%09if%20%28response.result%20%21%3D%20%22error%22%29%20%7B%0A%09%09%09%09if%20%28response.result%20%3D%3D%20%22ok%22%29%20%7B%0A%09%09%09%09%09eventContext.instance.%24message%28%7B%0A%09%09%09%09%09%09type%3A%20%22success%22%2C%0A%09%09%09%09%09%09message%3A%20%22%u6587%u4EF6%u5DF2%u6539%u4E3A%u53D1%u5E03%u72B6%u6001%uFF01%22%0A%09%09%09%09%09%7D%29%3B%0A%09%09%09%09%7D%20else%20%7B%0A%09%09%09%09%09eventContext.instance.%24message%28%7B%0A%09%09%09%09%09%09type%3A%20%22warning%22%2C%0A%09%09%09%09%09%09message%3A%20response.result%0A%09%09%09%09%09%7D%29%3B%0A%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%0A%09%09%7D%29%0A%09%09.catch%28function%28response%29%20%7B%0A%09%09%09console.log%28response%29%3B%0A%09%09%7D%29%3B%0A%0A%7D%0A%0A%0A%0A%0A%0A</eventscript> + <beforeeventcall></beforeeventcall> + <beforeeventscript></beforeeventscript> + <aftereventcall></aftereventcall> + <aftereventscript></aftereventscript> + </userextendbutton> + <userextendbutton id="obj_01673e8348c748f9bb61d274cbc4cd79" icon="" label="审批改为设计" tip=""> + <eventcall></eventcall> + <eventscript>var%20data%20%3D%20eventContext.DWApi.grid.getCheckedData%28%29%3B%0Aif%28data%5B0%5D%3D%3Dnull%7C%7Cdata.length%3E1%29%7B%0A%20%20eventContext.instance.%24message%28%7B%0A%20%20type%3A%22error%22%2C%0A%20%20message%3A%22%u8BF7%u9009%u62E9%u5355%u6761%u6570%u636E%uFF01%22%0A%7D%29%3B%0A%7Delse%7B%0A%20testCall%28%29%3B%0A%7D%0A%0Afunction%20testCall%28%29%20%7B%0A%09var%20plId%20%3D%20data%5B0%5D.ID%3B%0A%09var%20sid%20%3D%20eventContext.DWApi.grid.sid%3B%0A%09eventContext.instance.awsuiaxios.post%28%7B%0A%09%09%09url%3A%20%22./jd%22%2C%0A%09%09%09data%3A%20%7B%0A%09%09%09%09cmd%3A%20%22com.awspaas.user.apps.app.controller.updatePalFileState%22%2C%0A%09%09%09%09sid%3A%20sid%2C%0A%09%09%09%09plId%3A%20plId%2C%0A%09%09%09%09state%3A%20%220%22%2C%0A%09%09%09%09type%3A%20%222%22%0A%09%09%09%09//%20bindId%3A%20%20eventContext.row._BINDID%2C%0A%09%09%09%09//APPLYNO%3A%20JSON.stringify%28result%29%0A%09%09%09%09//title%20%3A%20eventContext.row.FILENAME%0A%09%09%09%7D%0A%09%09%7D%29%0A%09%09.then%28function%28response%29%20%7B%0A%09%09%09if%20%28response.result%20%21%3D%20%22error%22%29%20%7B%0A%09%09%09%09if%20%28response.result%20%3D%3D%20%22ok%22%29%20%7B%0A%09%09%09%09%09eventContext.instance.%24message%28%7B%0A%09%09%09%09%09%09type%3A%20%22success%22%2C%0A%09%09%09%09%09%09message%3A%20%22%u6587%u4EF6%u5DF2%u6539%u4E3A%u8BBE%u8BA1%u72B6%u6001%uFF01%22%0A%09%09%09%09%09%7D%29%3B%0A%09%09%09%09%7D%20else%20%7B%0A%09%09%09%09%09eventContext.instance.%24message%28%7B%0A%09%09%09%09%09%09type%3A%20%22warning%22%2C%0A%09%09%09%09%09%09message%3A%20response.result%0A%09%09%09%09%09%7D%29%3B%0A%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%0A%09%09%7D%29%0A%09%09.catch%28function%28response%29%20%7B%0A%09%09%09console.log%28response%29%3B%0A%09%09%7D%29%3B%0A%0A%7D%0A%0A%0A%0A%0A%0A</eventscript> + <beforeeventcall></beforeeventcall> + <beforeeventscript></beforeeventscript> + <aftereventcall></aftereventcall> + <aftereventscript></aftereventscript> + </userextendbutton> + <userextendbutton id="obj_3a98ad935c8744f48d2fb9e79c1cc85e" icon="" label="查看模型" tip=""> + <eventcall></eventcall> + <eventscript>var%20data%20%3D%20eventContext.DWApi.grid.getCheckedData%28%29%3B%0Aconst%20sid%20%3D%20eventContext.DWApi.sid%3B%0Avar%20palId%20%3D%20data%5B0%5D.ID%3B%0Awindow.open%28%27https%3A//bpm.yili.com%3A8088/portal/r/w%3Fuuid%3D%27+palId+%27%26teamId%3D%26cmd%3Dcom.actionsoft.apps.coe.pal_pl_repository_designer%26sid%3D%27+sid%29</eventscript> + <beforeeventcall></beforeeventcall> + <beforeeventscript></beforeeventscript> + <aftereventcall></aftereventcall> + <aftereventscript></aftereventscript> + </userextendbutton> + <userextendbutton id="obj_5ab67f3e20304148926ded24cf1f91cb" icon="" label="设计改为审批" tip=""> + <eventcall></eventcall> + <eventscript>var%20data%20%3D%20eventContext.DWApi.grid.getCheckedData%28%29%3B%0Aif%28data%5B0%5D%3D%3Dnull%7C%7Cdata.length%3E1%29%7B%0A%20%20eventContext.instance.%24message%28%7B%0A%20%20type%3A%22error%22%2C%0A%20%20message%3A%22%u8BF7%u9009%u62E9%u5355%u6761%u6570%u636E%uFF01%22%0A%7D%29%3B%0A%7Delse%7B%0A%20testCall%28%29%3B%0A%7D%0A%0Afunction%20testCall%28%29%20%7B%0A%09var%20plId%20%3D%20data%5B0%5D.ID%3B%0A%09var%20sid%20%3D%20eventContext.DWApi.grid.sid%3B%0A%09eventContext.instance.awsuiaxios.post%28%7B%0A%09%09%09url%3A%20%22./jd%22%2C%0A%09%09%09data%3A%20%7B%0A%09%09%09%09cmd%3A%20%22com.awspaas.user.apps.app.controller.updatePalFileState%22%2C%0A%09%09%09%09sid%3A%20sid%2C%0A%09%09%09%09plId%3A%20plId%2C%0A%09%09%09%09state%3A%20%221%22%2C%0A%09%09%09%09type%3A%20%222%22%0A%09%09%09%09//%20bindId%3A%20%20eventContext.row._BINDID%2C%0A%09%09%09%09//APPLYNO%3A%20JSON.stringify%28result%29%0A%09%09%09%09//title%20%3A%20eventContext.row.FILENAME%0A%09%09%09%7D%0A%09%09%7D%29%0A%09%09.then%28function%28response%29%20%7B%0A%09%09%09if%20%28response.result%20%21%3D%20%22error%22%29%20%7B%0A%09%09%09%09if%20%28response.result%20%3D%3D%20%22ok%22%29%20%7B%0A%09%09%09%09%09eventContext.instance.%24message%28%7B%0A%09%09%09%09%09%09type%3A%20%22success%22%2C%0A%09%09%09%09%09%09message%3A%20%22%u6587%u4EF6%u5DF2%u6539%u4E3A%u5BA1%u6279%u4E2D%uFF01%22%0A%09%09%09%09%09%7D%29%3B%0A%09%09%09%09%7D%20else%20%7B%0A%09%09%09%09%09eventContext.instance.%24message%28%7B%0A%09%09%09%09%09%09type%3A%20%22warning%22%2C%0A%09%09%09%09%09%09message%3A%20response.result%0A%09%09%09%09%09%7D%29%3B%0A%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%0A%09%09%7D%29%0A%09%09.catch%28function%28response%29%20%7B%0A%09%09%09console.log%28response%29%3B%0A%09%09%7D%29%3B%0A%0A%7D%0A%0A%0A%0A%0A%0A</eventscript> + <beforeeventcall></beforeeventcall> + <beforeeventscript></beforeeventscript> + <aftereventcall></aftereventcall> + <aftereventscript></aftereventscript> + </userextendbutton> + </userextendbuttons> + <userextendbehaviors> + <userextendbehavior id="obj_bd52e5012341419f82151d1f54c9357c" name="打开模型"> + <templatecall>onclick%3D</templatecall> + <templatescript>var%20data%20%3D%20eventContext.DWApi.grid.getCheckedData%28%29%3B%0Aconst%20sid%20%3D%20eventContext.DWApi.sid%3B%0Avar%20palId%20%3D%20data%5B0%5D.ID%3B%0Awindow.open%28%27https%3A//bpm.yili.com%3A8088/portal/r/w%3Fuuid%3D%27+palId+%27%26teamId%3D%26cmd%3Dcom.actionsoft.apps.coe.pal_pl_repository_designer%26sid%3D%27+sid%29</templatescript> + </userextendbehavior> + </userextendbehaviors> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_b6f7cd5e050c439f94499c995c041452/obj_b6f7cd5e050c439f94499c995c041452.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_b6f7cd5e050c439f94499c995c041452/obj_b6f7cd5e050c439f94499c995c041452.xml new file mode 100644 index 00000000..74e75984 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_b6f7cd5e050c439f94499c995c041452/obj_b6f7cd5e050c439f94499c995c041452.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_b6f7cd5e050c439f94499c995c041452</id> + <createUser>admin</createUser> + <createTime>2022-10-17 15:39:16</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-17 15:39:16</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr79PpHIrySQHKvqaUKd+xS1IFoHaW4RcDRlnxoqtNoGUxJ98BXGhN/vI73WjTVXVY</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_b6f7cd5e050c439f94499c995c041452</processGroupId> + <processGroupName></processGroupName> + <categoryName>手册日志</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_e449f63572604226b9583bf4f1cfdd36" label="报告生成器失败记录清理" extendcode="" event=""/> + <dataView id="obj_b3fcaed22898430a9c760e7d35059eab" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_e321f743287248e3a37102556494aad9" isshow="true" extendcode="" event=""> + <button id="obj_616dedd184d9423a97e4ee47f2c793c7" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_e9e862ff72d0440a85d2ce421039c100" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="2" mobileShow="false" event="" selectShow="false"/> + <button id="obj_71f26a1607f047e59d3b061a92558f43" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="3" mobileShow="false" event="" selectShow="true"/> + <button id="obj_a6369e483a9349d9babe1268656b15e3" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_8d48c081279e41c881209efc3dd06b0b" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d2e5c8d0c817493c9a36605a16df04c3" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="6" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_9c4acc20972e4b59ac1260e5fe40a8cb" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_c47accc612ad4a0fbc7337108d181695" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_adbc10867f0243eaa81cba211a778a2e" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_36930055e4b24182b6bb4d8758cc0e7e" isshow="true" autoSearch="true" customSet="true" select="false" datasource="" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_bcf258f78f8542288fb55681d6237f26/obj_bcf258f78f8542288fb55681d6237f26.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_bcf258f78f8542288fb55681d6237f26/obj_bcf258f78f8542288fb55681d6237f26.xml new file mode 100644 index 00000000..cf70aeff --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_bcf258f78f8542288fb55681d6237f26/obj_bcf258f78f8542288fb55681d6237f26.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_bcf258f78f8542288fb55681d6237f26</id> + <createUser>admin</createUser> + <createTime>2022-10-09 08:59:28</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-09 09:00:12</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrlci0NHQJ6EqOtI1Q4wd4GWtz7SVDwld39mgMdhnjXGKr9hsMrRjX/GyyBaDEgW29</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_bcf258f78f8542288fb55681d6237f26</processGroupId> + <processGroupName></processGroupName> + <categoryName>权限处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_a648b317027a4f219529a079067f2f6e" label="空模型统计" extendcode="" event=""/> + <dataView id="obj_b18f9576cb1747fe8a7b5ed481ada48a" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_ce61330304d04abf9c6268959091d455" isshow="true" extendcode="" event=""> + <button id="obj_a37387b242df43bfb46eedb603e66afe" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_62ad382573d749b5aec3b118a4530ecf" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="2" mobileShow="false" event="" selectShow="false"/> + <button id="obj_1a9c3d130d5d410e9c22a53507c6e3e9" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="3" mobileShow="false" event="" selectShow="true"/> + <button id="obj_3dc29cf20aac4b64b7eb92bf44916ff8" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_a26a23c04b2c4630aae8beb4b905bad7" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_a74fbe57b30d4822bce16d9ab4a24802" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="6" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_e6dc4ae5923e43698e1f7ca4e7206739" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"> + <likecondition id="obj_dcb4a4725e1147608251c5818f899726" field="PLNAME" extend1="" label="模型名称" comparetype="=" uiname="TEXT" relationship="" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="0" event=""/> + </searcher> + <navTree id="obj_9c75e6f972e049edb413278e74e710e6" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_9ea66a465976409fa4feb5dc693c91e6" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_a8ceb79b988c47a0a2b28ae88fd406e9" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU__PAL_NULL_L" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="f733a217-5bb1-48c9-afc4-3e0b4f93abc3" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLNAME" label="模型名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="6301d98d-3fb7-4b4e-ad4e-06334b1249a4" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="FRAMEWORK" label="架构名称" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="aad0bf79-cb45-435a-99a2-123e054d1399" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="VERSION" label="版本号" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="195b17eb-aad2-4bf6-aae3-ce7590d71e74" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TYPE" label="模型类型" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="7850494b-221b-42ec-b0df-182adbcc35e2" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ISPUBLISH" label="是否发布" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="eb696bf8-3554-4b36-96fe-51d4f1e292f8" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="6b43a7f6-4f55-4cec-8e20-a7145a8767fc" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="20a50c50-838f-4ea7-b5c4-cee8ba6463a6" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="a765f1a4-f65a-4b27-b1a2-294cf3a0d877" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="b25390dd-fdb2-43f7-872d-0204fa842a29" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="ca21cfce-7a86-4202-a96d-483cdd7fc976" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="3f964734-8a14-4d7b-9780-a0e7c8126868" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="c6df17e7-b98e-4b0f-abc9-b82da22545b8" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU__PAL_NULL_L" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_bfd25e4ac3cc4692b9a6c307a819f096/obj_bfd25e4ac3cc4692b9a6c307a819f096.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_bfd25e4ac3cc4692b9a6c307a819f096/obj_bfd25e4ac3cc4692b9a6c307a819f096.xml new file mode 100644 index 00000000..d63c49f8 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_bfd25e4ac3cc4692b9a6c307a819f096/obj_bfd25e4ac3cc4692b9a6c307a819f096.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_bfd25e4ac3cc4692b9a6c307a819f096</id> + <createUser>admin</createUser> + <createTime>2022-11-10 21:39:59</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-10 22:03:21</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGryY6ZsUSI304EVfhEMyz0IeZJLs6J2iK+owiUQQIhXlTOvhxxt2CswSxXYnTZd651</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_bfd25e4ac3cc4692b9a6c307a819f096</processGroupId> + <processGroupName></processGroupName> + <categoryName>待办待阅</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_f2b19066e3f943619d79992aaea35203" label="用户登录日志_系统日志表" extendcode="" event=""/> + <dataView id="obj_2fa7f90c16614625ad827efc401fb35d" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_c22488060ac14d3ba17f61df31aebc27" isshow="true" extendcode="" event=""> + <button id="obj_3c28e795eb494cb0916972a4b6685c71" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_12d3c0984f1a4c4a9921c20d1b855696" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_79399c5cc62c49e2aa9f6d13eac61196" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_d0deec820b934036826bb761055459cc" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_1f21a8423870467ba02ce0b2569b94eb" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_111d93f1bd254a9fa4cbd4aaacb6b0c5" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_73eebf36540049cd922d9f3674503689" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"> + <likecondition id="obj_ce927f0cbe134e8d8886d1a18b479d72" field="LOGTIME" extend1="" label="登录时间" comparetype=">=" uiname="DATE" relationship="" uidefault="" uicomponent="日期" uiref="" required="false" security="" orderindex="0" event=""/> + <likecondition id="obj_995e476cdd7b4219a29a396d583c5ec8" field="LOGTIME" extend1="" label="登录时间" comparetype="<=" uiname="DATE" relationship="" uidefault="" uicomponent="日期" uiref="" required="false" security="" orderindex="1" event=""/> + </searcher> + <navTree id="obj_3627d35a57f14103b1f71b3b66d783c8" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_2b8e93c4c3a54b5ca3d255d32eb06b52" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_1ab237d228144c5fb063635743693cd1" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_SYS_LOGIN_LOG" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="f8bd0860-cd0f-439f-af93-311a3768b5cc" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="137" colALias="" colTableAlias="" colTable="BO_EU_SYS_LOGIN_LOG" length="128" required="1" align="left" showrule="{"type":"org","orgtype":"user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="USERID" label="登录账号" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="51d99703-e009-4d07-bf9c-b993eae5847d" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_SYS_LOGIN_LOG" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="1" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="6632aeb4-477b-45d5-94e6-33f1ea8b3e97" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_SYS_LOGIN_LOG" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="2" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="d887e0db-0359-4249-b093-d54b57ed0d38" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_SYS_LOGIN_LOG" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="3" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="d3912f0f-cdd9-4069-bc85-79040e0a7b83" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_SYS_LOGIN_LOG" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="4" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="69d1647b-0d21-4743-a205-47c07091a988" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_SYS_LOGIN_LOG" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="8091ff88-6f62-496f-aa48-d7a7866f0cec" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_SYS_LOGIN_LOG" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="d534dffd-3119-49c8-8814-f9f8cfda3a4d" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_SYS_LOGIN_LOG" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="2065cb5b-1ceb-4ab3-9b7e-42e177c5551b" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_SYS_LOGIN_LOG" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="7f090b05-f769-4453-8144-4c5f537f66e3" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_SYS_LOGIN_LOG" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="USERBU" label="事业部名称" orderindex="9" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="4dd7df8e-03a9-4659-93ec-4e82c3d33f1f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="197" colALias="" colTableAlias="" colTable="BO_EU_SYS_LOGIN_LOG" length="128" required="1" align="left" showrule="{"type":"org","orgtype":"dept"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="USERDEP" label="部门名称" orderindex="10" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="d154d35e-5629-4440-a4f4-ee81e9887676" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="229" colALias="" colTableAlias="" colTable="BO_EU_SYS_LOGIN_LOG" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="USERPOST" label="岗位名称" orderindex="11" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="6fad2f4a-1c98-4135-bf8b-6500e06edeb8" sort="desc" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="318" colALias="" colTableAlias="" colTable="BO_EU_SYS_LOGIN_LOG" length="0" required="1" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="LOGTIME" label="登录时间" orderindex="12" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="0" boType="AWSUI.Date" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_c1d70cc462b6470a80afe0afd6b76b67/obj_c1d70cc462b6470a80afe0afd6b76b67.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_c1d70cc462b6470a80afe0afd6b76b67/obj_c1d70cc462b6470a80afe0afd6b76b67.xml new file mode 100644 index 00000000..17dee5f2 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_c1d70cc462b6470a80afe0afd6b76b67/obj_c1d70cc462b6470a80afe0afd6b76b67.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_c1d70cc462b6470a80afe0afd6b76b67</id> + <createUser>admin</createUser> + <createTime>2022-11-07 13:23:36</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-20 10:10:54</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrqbr0E0Yo6NdDG4OCsOjXyBwezNo9V/tvl6yOqJKR3vxkb9GleOGzde7EsusaB1F1</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_c1d70cc462b6470a80afe0afd6b76b67</processGroupId> + <processGroupName></processGroupName> + <categoryName>待办待阅</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_4c6f0ea2b6824d45b39b33d3d35d04f0" label="待阅执行回执视图" extendcode="" event=""/> + <dataView id="obj_fe1edda316b04844afc1291935c884dc" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_5de0ba77bd8f4b16a74b600835eef24e" isshow="true" extendcode="" event=""> + <button id="obj_f67763e2b641425da64e7ccac7e38ddf" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_46d2a5b7714f417d82309ecb8c45ed90" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="2" mobileShow="false" event="" selectShow="false"/> + <button id="obj_1fc1309215be46b2b46ce110653550ce" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="3" mobileShow="false" event="" selectShow="true"/> + <button id="obj_0517bb4a097540a88634ac849387756b" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_6985c8f005f449c28bdaf150f640ae1f" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_c349ff4f347244b484f38be0e8d1cc38" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="6" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_8f4cf8096eef431a90be29852ef35cbb" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_85406f843a4044f8af8b1c6d972a6d70" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_8cae2b070bd74339b7f977bb22ee196b" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_63f46a4814df4ff6bb3590157dc54c1b" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_PULBISH_SUCCESS" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="4069d52c-513f-4db0-9031-4a6a685d10c7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="244" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="500" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TITLE" label="发布文件标题" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="1770c77c-8d78-4c4e-98f0-938a08faead5" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="104" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="36" required="1" align="left" showrule="{"type":"org","orgtype":"user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="USREID" label="发布人账号" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Address" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="a036fd35-1e00-4936-9cb1-adc2145a9530" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="DEPID" label="部门ID" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Address" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="50cae278-66c5-4542-ba63-c64d9ede1ae2" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="121" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="BUNAME" label="事业部名称" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="9e7df53b-d7f7-4769-8c63-61e48bf6b7f7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="169" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="10" required="1" align="right" showrule="" upshowrule="{"type":"val","required":false,"length":"10","fmtnum":"","cmconfig":{"func":""}}" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="SENDNUM" label="发送总人数" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="AWSUI.Number" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="1874f17d-6686-4723-8c7f-f90af3845d8d" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="138" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="128" required="1" align="left" showrule="" upshowrule="{"type":"tx","required":false,"length":"128","cmconfig":{"func":""}}" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="SENDNUMSJ" label="实际发送人员总数" orderindex="5" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="3b78e386-8579-4f62-9c6b-4d1f3cca0185" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="132" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="10" required="1" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="READNUM" label="已读人数" orderindex="6" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="AWSUI.Number" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="a0042d12-837b-489b-9b59-e917d3e38ffb" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="SEND_SCOP" label="是否发送全公司" orderindex="7" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.ComboBox" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="6b59da0b-93ba-44c0-9b4d-ccf319aee961" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PROCESSID" label="发布流程实例Id" orderindex="8" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="a2c31f63-247c-4cd4-b462-6f04f89cf5e2" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="80" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="10" required="1" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="SEND_SCOPE_ORGNUM" label="发送组织数量" orderindex="9" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="AWSUI.Number" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="91a6e72c-9357-445a-9017-2da1d4be46cf" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="80" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="10" required="1" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="SEND_SCOPE_POST_NUM" label="发送岗位数量" orderindex="10" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="AWSUI.Number" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="12a5e0a5-f901-4c65-bfcd-e786b782f6c8" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="80" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="10" required="1" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="SEND_SCOPE_LEVEL_NUM" label="发送职级数量" orderindex="11" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="AWSUI.Number" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="50fbd99a-f8d1-4554-ba76-e73915018f06" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TIMECOUNT" label="总共用时" orderindex="12" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="71cfb040-a423-4511-b518-6bfa9ffec577" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="90" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="0" required="1" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="STARTTIMES" label="开始时间" orderindex="13" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="0" boType="AWSUI.DateTime" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="2213fddc-8d07-4d26-99b0-284dbb2ccc72" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="90" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="0" required="1" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ENDTIMES" label="结束时间" orderindex="14" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="0" boType="AWSUI.DateTime" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="d2f30cc7-6769-4644-bfb8-99f19e50a98a" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="15" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="820093c4-41c9-41c7-bb66-b1910d9f4926" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="16" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="89185eee-9cdc-412f-9c89-9a14f127d992" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="17" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="eee46596-344c-473e-b9d3-95897d8058c7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="18" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="af7d0680-6331-43ac-8415-43f60afff561" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="19" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="599dd88d-2422-4454-9681-50526b602e36" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="20" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="e81f4c17-6135-4846-87c5-932b85ee02dc" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="21" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="0999ee77-86b5-4c26-9fef-efd6f6a2f1c0" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_PULBISH_SUCCESS" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="22" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_cd515d3dfd2b428481a2d407cf76a52a/obj_cd515d3dfd2b428481a2d407cf76a52a.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_cd515d3dfd2b428481a2d407cf76a52a/obj_cd515d3dfd2b428481a2d407cf76a52a.xml new file mode 100644 index 00000000..f8f1e6c1 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_cd515d3dfd2b428481a2d407cf76a52a/obj_cd515d3dfd2b428481a2d407cf76a52a.xml @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_cd515d3dfd2b428481a2d407cf76a52a</id> + <createUser>admin</createUser> + <createTime>2022-11-08 19:05:01</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-08 19:06:44</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr+cRAnETB/JJSa1L2/pGVbm3PrASBcrSUYQ/xOWB4VOtSt7Qg9qNcWA+jJjhGNVgh</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_cd515d3dfd2b428481a2d407cf76a52a</processGroupId> + <processGroupName></processGroupName> + <categoryName>待办待阅</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_317cf229cbd048b48341624ce1413548" label="测试视图" extendcode="" event=""/> + <dataView id="obj_e5087af2a736437a895503589139a182" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_3cd7a6d69eae4f26b7578b95d677845f" isshow="true" extendcode="" event=""> + <button id="obj_ad8c7b7da56045cb86be09f1d60f4746" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_0df5f283fafe4aa9a06ad322e856075f" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_276e11a374a34f4794224662ab527f91" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_44568ebd8471477ca3fe2dd1ddde14ef" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_e202d76dc5d84f8e858b50bc26474c15" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_f0d97a354e2a4af5988335b7f7816c0c" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="5" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_2a77b779bd1a48528393f60a728133eb" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_776c1e01f5b945339cdbab1b4fa9d3fa" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_cc1ce39f65ca4868ab8ad92dd34d5336" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_f52ec9e5e1ee47f79fa7523cce1d78b9" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_TEST_01" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="5e0a98d0-838f-46b0-9ea7-b314e9b906ab" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_TEST_01" length="128" required="1" align="left" showrule="" upshowrule="{"type":"tx","required":false,"length":"128","cmconfig":{"func":""}}" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TEST1" label="测试字段1" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="12a6da3f-b35e-4a8b-8512-7ba0024bb584" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_TEST_01" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TEST2" label="测试字段2" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="aef9528a-c192-44f3-ab85-1b17f9d1ea48" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_TEST_01" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TEST3" label="测试字段3" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="b9c52509-80aa-4760-aee9-34d0f4e132b6" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_TEST_01" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TEST4" label="测试字段4" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="b034e18c-5822-4029-aa07-7c8a7c8862e8" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_TEST_01" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="4" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="46b63fa2-595d-4c28-b2d0-75ce18cce6c0" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_TEST_01" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="59e8961c-b9be-4dda-9ea9-4a755e6a8312" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_TEST_01" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="fe9a4842-69cc-4aea-980b-add13b0bf0ef" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_TEST_01" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="c3af544b-8ce8-4be8-9086-42f2dafd98ff" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_TEST_01" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="806d2578-bb83-4f3d-8dfd-cd6a7188963c" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_TEST_01" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="0a8ea36c-0556-417b-950f-53358a158995" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_TEST_01" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="0730b965-88f1-4328-8bbd-62ade178cfc9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_TEST_01" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_cd6277fbcf8f424bb81a54962ec2a019/obj_cd6277fbcf8f424bb81a54962ec2a019.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_cd6277fbcf8f424bb81a54962ec2a019/obj_cd6277fbcf8f424bb81a54962ec2a019.xml new file mode 100644 index 00000000..ac787d0b --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_cd6277fbcf8f424bb81a54962ec2a019/obj_cd6277fbcf8f424bb81a54962ec2a019.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_cd6277fbcf8f424bb81a54962ec2a019</id> + <createUser>admin</createUser> + <createTime>2022-11-10 21:05:19</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-10 21:07:31</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrQK+2WLE5/vRt6ztRrZGmOf3PAfkrKmUyupGhLKtQh/7jbPWJeFCMb4DtKDntAiOq</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_cd6277fbcf8f424bb81a54962ec2a019</processGroupId> + <processGroupName></processGroupName> + <categoryName>手册日志</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_d966696c34a04687aeabf95051d85ebd" label="用户登录系统日志" extendcode="" event=""/> + <dataView id="obj_1cfd0f98243941448145f5e9c870c962" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_3ddd240c9c444c4ea18437623d589270" isshow="true" extendcode="" event=""> + <button id="obj_f0474baadadc445891d0101cfe4c4b2c" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_94b97557742744eda2249c4853d89eac" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="2" mobileShow="false" event="" selectShow="false"/> + <button id="obj_a3ea2b1411b842819b3448961da0159c" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="3" mobileShow="false" event="" selectShow="true"/> + <button id="obj_4a310f2f68a0449fbf3bcfed24e3aee6" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_7b52c7586bb34afe880de2bc97ad5331" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_e95bc3873c2341a99441b34b46a60447" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="6" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_3f6ec2bf2b95417f9e3da1b9ac725c81" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_08ea3f890df5455997efd7d73263c9c1" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_d7652e42d6554ff090d0676757d71dc8" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_06732899ddaf4bf58eb3df230a4438a1" isshow="true" autoSearch="true" customSet="true" select="false" datasource="sql:select * from sys_session" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="SESSIONID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="4ffdb037-367a-4f19-8b85-bf6549dafffa" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="174" colALias="" colTableAlias="" colTable="SYS_SESSION" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="SESSIONID" label="SESSIONID" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="b07b828c-571c-4f99-aae1-6a7a6cdf3808" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="80" colALias="" colTableAlias="" colTable="SYS_SESSION" length="2" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ISSDK" label="ISSDK" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="61ef6f6b-a9e1-46c5-9abe-3402831b5a1b" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="110" colALias="" colTableAlias="" colTable="SYS_SESSION" length="36" required="0" align="left" showrule="{"type":"org","orgtype":"user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="USERID" label="USERID" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="b362de33-2b84-498b-a76d-d921789e1e14" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="SYS_SESSION" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="IP" label="IP" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="222676c7-e1ba-4cd2-8ab7-69c73d5cd622" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="143" colALias="" colTableAlias="" colTable="SYS_SESSION" length="17" required="0" align="right" showrule="{"dfconfig":{"typesOf":"date","currencyType":"","decimalPlacesSwitch":false,"decimalPlaces":0,"numberSectionSwitch":false,"sectionType":"international","nullValueHandling":"","prefixVal":"","suffixVal":"","currentFormat":"yyyy年MM月dd日HH时mm分ss秒","targetFormat":"yyyy年MM月dd日HH时mm分ss秒","unitConversionSwitch":false,"convertType":"","conversionExpression":"","currentUnitVal":"","targetUnitVal":""}}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="STARTTIME" label="STARTTIME" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="d787067c-a197-42f2-8320-df502e209a7b" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="185" colALias="" colTableAlias="" colTable="SYS_SESSION" length="17" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="REFRESHTIME" label="REFRESHTIME" orderindex="5" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="1c2088f0-e3a9-465d-8c0c-fa6fc98c4c56" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="80" colALias="" colTableAlias="" colTable="SYS_SESSION" length="17" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CLOSETIME" label="CLOSETIME" orderindex="6" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="2ec75f44-def8-4212-b17b-cea5e5fd86d7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="70" colALias="" colTableAlias="" colTable="SYS_SESSION" length="16" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="DEVICETYPE" label="DEVICETYPE" orderindex="7" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="480749c6-d900-498f-b96e-b6ee45df589c" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="70" colALias="" colTableAlias="" colTable="SYS_SESSION" length="16" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="DEVICELANG" label="DEVICELANG" orderindex="8" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="ac50bc88-1f1a-48b0-82cb-66489e086293" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="60" colALias="" colTableAlias="" colTable="SYS_SESSION" length="1" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="SESSIONSCOPE" label="SESSIONSCOPE" orderindex="9" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="5bf03fed-487e-4205-9aae-5d6e352e25c8" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="SYS_SESSION" length="90" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="INSTNAME" label="INSTNAME" orderindex="10" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="7ea36681-19ec-4cf8-b08e-60ca141542dd" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="80" colALias="" colTableAlias="" colTable="SYS_SESSION" length="2" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="CLOSED" label="CLOSED" orderindex="11" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="28e8a043-3d0a-4b29-8e9b-56d9eb7f9412" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="60" colALias="" colTableAlias="" colTable="SYS_SESSION" length="10" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="SESSIONTIMEZONE" label="SESSIONTIMEZONE" orderindex="12" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_d0de1ebf1b5a4b8fac0c0ec357123518/obj_d0de1ebf1b5a4b8fac0c0ec357123518.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_d0de1ebf1b5a4b8fac0c0ec357123518/obj_d0de1ebf1b5a4b8fac0c0ec357123518.xml new file mode 100644 index 00000000..b1379972 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_d0de1ebf1b5a4b8fac0c0ec357123518/obj_d0de1ebf1b5a4b8fac0c0ec357123518.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_d0de1ebf1b5a4b8fac0c0ec357123518</id> + <createUser>admin</createUser> + <createTime>2022-11-11 18:21:33</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-23 21:29:34</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr84oXoY8hihuTot2R1HE+db2sGgWkVS6vMsKFiUCL5N82dqsSLpu2YaOpnPySR4tS</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_d0de1ebf1b5a4b8fac0c0ec357123518</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_b0e370b9973d4663993bcd9c3d647fb2" label="批量刷新编号" extendcode="" event=""/> + <dataView id="obj_a89ac0d10c524ad98ae9038bb4085b30" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_2134370ad57f46beab18b57a1831ad6b" isshow="true" extendcode="" event=""> + <button id="obj_1fb14ace2688421f92c568cb6ac8baa6" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_3c25aa50173e4f8e9029e103c70801c8" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_5cfb8f97526b4b62b08cb6e22b3a3686" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_7873742de2b4488d9ff604b725ad0281" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_e3e1479ca0cf488da47679f2803fa73d" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_31c3027655104dfbbbbe7df8cfb3285d" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d67f6d31a11e466b9a44337ee80fe8c6" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_f63aae71b87444ca87a4c3d64362faac|559d4233-cce0-41e7-bc6f-773407d570e8","formName":"批量刷新编号","formExcelShowName":"批量刷新编号","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PAL_NOREFR","boItems":[{"name":"PLNAME","title":"模型名称"},{"name":"PLID","title":"模型ID"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_99078a0359c448618933c22ebf99edb0" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"> + <likecondition id="obj_a9f3c33b57c34d06976296bcfd57c37f" field="PLNAME" extend1="" label="模型名称" comparetype="=" uiname="TEXT" relationship="" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="0" event=""/> + </searcher> + <navTree id="obj_a58d1f7bb14b4479ba10d4b51c53dc9a" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_b09a231a67814d5193e0971acc0cb83c" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_ae78777340a04396879c6aa982956e5e" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_NOREFR" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="obj_b6f11a963aff48bfb34e1e8f91588682" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="128" required="0" align="left" showrule="" upshowrule="{"type":"tx","required":false,"length":"128","cmconfig":{"func":""}}" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLNAME" label="模型名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ef1c2e7fa86e4a659f552fa52f08c30d" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="236" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLID" label="模型ID" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_a38a4712afc7495d9ca0c869dd8b8228" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="2" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_e107b58c6c1a47adb6237242fa91f2b7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="3" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ccb68d81602e4423bc9c29038c382f71" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="4" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_91e0d29fd474426abc94c6750c15d5ce" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_a373a0aa31f8420cb68a9a55ad3d0dc2" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_5640ee4052714f0a8d70d91248a9a409" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_c3b4e37d06cd40a2ad5eb3dfaf4c0049" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_334cbd415af64035a7dcc27e9d4f7913" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_d0de1ebf1b5a4b8fac0c0ec357123518/obj_d0de1ebf1b5a4b8fac0c0ec357123518_1.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_d0de1ebf1b5a4b8fac0c0ec357123518/obj_d0de1ebf1b5a4b8fac0c0ec357123518_1.xml new file mode 100644 index 00000000..6ea5dfa6 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_d0de1ebf1b5a4b8fac0c0ec357123518/obj_d0de1ebf1b5a4b8fac0c0ec357123518_1.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_d0de1ebf1b5a4b8fac0c0ec357123518</id> + <createUser>admin</createUser> + <createTime>2022-11-11 18:21:33</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-21 23:40:25</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr84oXoY8hihuTot2R1HE+db2sGgWkVS6vMsKFiUCL5N82dqsSLpu2YaOpnPySR4tS</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_d0de1ebf1b5a4b8fac0c0ec357123518</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_b0e370b9973d4663993bcd9c3d647fb2" label="批量刷新编号" extendcode="" event=""/> + <dataView id="obj_a89ac0d10c524ad98ae9038bb4085b30" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_2134370ad57f46beab18b57a1831ad6b" isshow="true" extendcode="" event=""> + <button id="obj_1fb14ace2688421f92c568cb6ac8baa6" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_3c25aa50173e4f8e9029e103c70801c8" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_5cfb8f97526b4b62b08cb6e22b3a3686" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_7873742de2b4488d9ff604b725ad0281" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_e3e1479ca0cf488da47679f2803fa73d" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_31c3027655104dfbbbbe7df8cfb3285d" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d67f6d31a11e466b9a44337ee80fe8c6" refbuttonid="importDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="6" config="[{"btnName":"","formDefId":"obj_f63aae71b87444ca87a4c3d64362faac|559d4233-cce0-41e7-bc6f-773407d570e8","formName":"批量刷新编号","formExcelShowName":"批量刷新编号","maxRow":"20000","javaEvents":[],"enableAddImport":true,"enableupdateimport":false,"requiredImport":false,"importStrategy":{"addImport":{"strategybase":"onlyimportdata","boModels":[{"boDefName":"BO_EU_PAL_NOREFR","boItems":[{"name":"PLNAME","title":"模型名称"},{"name":"PLID","title":"模型ID"}]}]}}}]" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_99078a0359c448618933c22ebf99edb0" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"> + <likecondition id="obj_a9f3c33b57c34d06976296bcfd57c37f" field="PLNAME" extend1="" label="模型名称" comparetype="=" uiname="TEXT" relationship="" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="0" event=""/> + </searcher> + <navTree id="obj_a58d1f7bb14b4479ba10d4b51c53dc9a" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_b09a231a67814d5193e0971acc0cb83c" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_ae78777340a04396879c6aa982956e5e" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_NOREFR" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="obj_b6f11a963aff48bfb34e1e8f91588682" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLNAME" label="模型名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ef1c2e7fa86e4a659f552fa52f08c30d" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="236" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="128" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLID" label="模型ID" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_a38a4712afc7495d9ca0c869dd8b8228" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="2" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_e107b58c6c1a47adb6237242fa91f2b7" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="3" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_ccb68d81602e4423bc9c29038c382f71" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="4" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_91e0d29fd474426abc94c6750c15d5ce" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="5" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_a373a0aa31f8420cb68a9a55ad3d0dc2" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="6" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_5640ee4052714f0a8d70d91248a9a409" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_c3b4e37d06cd40a2ad5eb3dfaf4c0049" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="36" required="0" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="obj_334cbd415af64035a7dcc27e9d4f7913" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_NOREFR" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_df7827e0f8b64318a8a3d70c4db61df6/obj_df7827e0f8b64318a8a3d70c4db61df6.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_df7827e0f8b64318a8a3d70c4db61df6/obj_df7827e0f8b64318a8a3d70c4db61df6.xml new file mode 100644 index 00000000..9ade5659 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_df7827e0f8b64318a8a3d70c4db61df6/obj_df7827e0f8b64318a8a3d70c4db61df6.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_df7827e0f8b64318a8a3d70c4db61df6</id> + <createUser>admin</createUser> + <createTime>2022-11-04 16:33:13</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-04 16:33:13</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGraqisLuSOwJQsgjRz78WGWYt4femP3DFPeAGRosN5O9ovXF8O8zZrEBA3WUoZO4fH</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_df7827e0f8b64318a8a3d70c4db61df6</processGroupId> + <processGroupName></processGroupName> + <categoryName>权限处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_e6e6dbb035584f88bfd3b6779250e7a3" label="权限测试" extendcode="" event=""/> + <dataView id="obj_652d3cef7cf7481e8a9289a69beafc56" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_32ad4d69402942c7aef01e9a92cee434" isshow="true" extendcode="" event=""> + <button id="obj_91a2b880bd284c85a652685af76ae1ce" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_2decd0727fd042819089d955837d6328" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="2" mobileShow="false" event="" selectShow="false"/> + <button id="obj_37f30a8205e4482088c6ded4e918e7f6" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="3" mobileShow="false" event="" selectShow="true"/> + <button id="obj_75a1a4ee95404ee9ab92dc97bd9c898b" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_fc0bf2c2a68f4186a230ac41086e1ac2" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_f817c9fd298445d98d16603c62e58cf3" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="6" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_fc8b779c50d34b98b5e1585f432e3988" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"/> + <navTree id="obj_8af11c9643264ed88d6e74b4f082da77" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_fb732f66335b41f6a641703cf4208bfb" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_f3cb722db8d149aeb73c4181a149c6ec" isshow="true" autoSearch="true" customSet="true" select="false" datasource="" countSql="" pagesize="15" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_e823232d22454476a29dd282504fa8c9/obj_e823232d22454476a29dd282504fa8c9.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_e823232d22454476a29dd282504fa8c9/obj_e823232d22454476a29dd282504fa8c9.xml new file mode 100644 index 00000000..e14f2acc --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_e823232d22454476a29dd282504fa8c9/obj_e823232d22454476a29dd282504fa8c9.xml @@ -0,0 +1,119 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_e823232d22454476a29dd282504fa8c9</id> + <createUser>admin</createUser> + <createTime>2022-10-10 23:46:03</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-03 10:03:29</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrszCychtf8Iu5m5n4/mutu2BMnen5zl7NSGVd50kEdNmX0T2ZB6xBW9Wa05MIeber</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_e823232d22454476a29dd282504fa8c9</processGroupId> + <processGroupName></processGroupName> + <categoryName>手册日志</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_f746c31f38f04aae95e2c98f03c02061" label="手册预览加载日志" extendcode="" event=""/> + <dataView id="obj_44bc5ab41b304b3c9923480ca8a82b90" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_08ce90fc3af24456a627256b4caf66a6" isshow="true" extendcode="" event=""> + <button id="obj_ef974b7fd6ba4efd8f7b301991abe4f5" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="0" mobileShow="false" event="" selectShow="false"/> + <button id="obj_cc44be8274204563b676cb2edcf32711" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_93a9bfd43d494e9b86aa640a0b5bf3ba" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="2" mobileShow="false" event="" selectShow="true"/> + <button id="obj_359f3eccdd674ddca4d79e71f07979fd" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="3" mobileShow="false" event="" selectShow="false"/> + <button id="obj_85643b996fc34e63862bad1670f9f022" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_58aaa0e01de34c7cafc8a060c04a86d2" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_a27f8a0ae5044a2296f2e6d0c4c6f069" refbuttonid="obj_9c6cfa7b9be041d08e334e32756daeae" cls="" fontColor="" bgColor="#dae5f0" security="" isshow="true" orderindex="6" mobileShow="false" event="" selectShow="false"/> + <button id="obj_a1f405a3bb144889a4562f38680fdaa6" refbuttonid="obj_39f7d52151b44c288fed5ec780c487d3" cls="" fontColor="" bgColor="#eaf1de" security="" isshow="true" orderindex="7" mobileShow="false" event="" selectShow="false"/> + <button id="obj_7e42b18ba69e473cb4ad6d93c99f827e" refbuttonid="obj_c34b4c5c91854a6b8962806b064fa544" cls="" fontColor="" bgColor="#fee9da" security="" isshow="true" orderindex="8" mobileShow="false" event="" selectShow="false"/> + <button id="obj_17c5000d81b14f77bfb22c86f08ff22d" refbuttonid="obj_906782368fa44c8d88ca194e9f008564" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="9" mobileShow="false" event="" selectShow="false"/> + <button id="obj_b4b414b156244a44a6d0a15bc30c6a56" refbuttonid="obj_48a5548fbeec43f69217849ef8941311" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="10" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_1721aeee6b97468091cff34c0f5c9631" isshow="true" layoutType="tile" tdGroup="4" tileLayout="x" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="true"> + <likecondition id="obj_539f2652ebf244f8a2731ac10ea9a0e4" field="PLNAME" extend1="" label="模型名称" comparetype="like" uiname="TEXT" relationship="" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="0" event=""/> + <likecondition id="obj_8c7fd5a9f4a340eea4c907e54fded157" field="RESULT" extend1="" label="转换结果" comparetype="like" uiname="TEXT" relationship="OR" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="1" event=""/> + <likecondition id="obj_79589d524a9049ab88f62d21412dbb84" field="PLMETHODID" extend1="" label="模型类型" comparetype="!=" uiname="TEXT" relationship="" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="2" event=""/> + </searcher> + <navTree id="obj_525fed60641e430b8095b88b6fe73b57" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_366fd893c1624ce4b3867fbb6f24db75" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_eaabc935e27d4cc2a26e92a05c3448e7" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_OUTPUTREPORT" countSql="" pagesize="50" event="" rowDefHeight="25" showCheckBox="true" ismultiple="false" isshownumbercol="true" numberCellTotal="true" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="%7B%22behavior%22%3A%22%u6253%u5F00%u624B%u518C%22%2C%22behaviorMobile%22%3A%22%22%2C%22h%22%3A%22%22%2C%22hUnit%22%3A%22px%22%2C%22ih%22%3A%22%22%2C%22ihUnit%22%3A%22px%22%2C%22isMask%22%3A0%2C%22sw%22%3A%22%22%2C%22swUnit%22%3A%22px%22%2C%22target%22%3A%22%22%2C%22title%22%3A%22%22%2C%22wUnit%22%3A%22px%22%2C%22w%22%3A%22%22%7D" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="4783ab79-d577-406c-8124-539a6a4aad48" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="261" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLNAME" label="模型名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="obj_995d67ce1e2146e4a42b594e46ecb6d9" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="9bb6b171-b663-423e-bde1-b4232dd56083" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="175" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="FRNAME" label="架构名称" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="b2c92c0e-4ee4-41e3-b4d5-17e1c67aee07" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="103" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLVERSION" label="模型版本" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="28655e19-67b9-47ea-8e2c-bdc660deb666" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="500" required="1" align="left" showrule="" upshowrule="{"type":"tx","required":false,"length":"500","cmconfig":{"func":""}}" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="REMARKS" label="备注" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="7e4a4938-3b63-40e7-86c5-be4807fe58a5" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="162" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="1000" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="FILEURL" label="预览链接" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="c0267f64-142c-4ed4-96a3-2911ba104629" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="128" required="1" align="left" showrule="{"type":"NORMAL","cons":"control.policy:制度模型|data.form:表单模型|process.epc:epc模型","showAdv":false}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLMETHODID" label="模型类型" orderindex="5" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="adb8c325-9a64-4890-920a-a4dbc1fafc0d" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="158" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="128" required="1" align="left" showrule="" upshowrule="{"type":"tx","required":false,"length":"128","cmconfig":{"func":""}}" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="RESULT" label="转换结果" orderindex="6" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="da398407-b763-4b93-bf64-761dfa0ccc87" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="531efd50-d3e1-4d2c-84c5-52305ea92cf2" sort="desc" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="8" colbehaviortarget="" ishidden="false" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="b766ddac-1c37-414a-8a32-732322b6ce98" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="bf76a5c0-ab4b-4cb1-a942-fa145eb8c45f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="d4fb21b7-fcf8-4f9a-9c6f-042ee56e034b" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="5ace7a5d-2261-40b3-8250-ed5966748e11" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="ed93c50d-88ae-4d74-98dd-09324889f878" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="13" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="4fed5187-4765-4858-b486-4103334c65c9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="14" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="b68a8d30-3ee0-42c5-9dd3-fd6e8d27524f" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLID" label="模型Id" orderindex="15" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="7e027de4-bfeb-4a6f-9fd5-47f9146df3ae" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_OUTPUTREPORT" length="128" required="1" align="left" showrule="" upshowrule="{"type":"tx","required":false,"length":"128","cmconfig":{"func":""}}" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TASKID" label="手册ID" orderindex="16" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons> + <userextendbutton id="obj_9c6cfa7b9be041d08e334e32756daeae" icon="" label="预览手册" tip=""> + <eventcall></eventcall> + <eventscript>var%20data%20%3D%20eventContext.DWApi.grid.getCheckedData%28%29%3B%0Aconst%20sid%20%3D%20eventContext.DWApi.sid%3B%0Avar%20url%20%3D%20data%5B0%5D.FILEURL%3B%0Awindow.open%28%27https%3A//bpm.yili.com%3A8088/portal/r/w%3Fsid%3D%27+sid+url%29</eventscript> + <beforeeventcall></beforeeventcall> + <beforeeventscript></beforeeventscript> + <aftereventcall></aftereventcall> + <aftereventscript></aftereventscript> + </userextendbutton> + <userextendbutton id="obj_39f7d52151b44c288fed5ec780c487d3" icon="" label="模型阅览" tip=""> + <eventcall></eventcall> + <eventscript>var%20data%20%3D%20eventContext.DWApi.grid.getCheckedData%28%29%3B%0Aconst%20sid%20%3D%20eventContext.DWApi.sid%3B%0Avar%20plId%20%3D%20data%5B0%5D.PLID%3B%0Avar%20taskId%20%3D%20data%5B0%5D.TASKID%3B%0Awindow.open%28%27https%3A//bpm.yili.com%3A8088/portal/r/w%3Fcmd%3Dcom.actionsoft.apps.coe.pal.publisher_publish_file_open%26uuid%3D%27+plId+%27%26sid%3D%27+sid+%27%26taskId%3D%27+taskId%29</eventscript> + <beforeeventcall></beforeeventcall> + <beforeeventscript></beforeeventscript> + <aftereventcall></aftereventcall> + <aftereventscript></aftereventscript> + </userextendbutton> + <userextendbutton id="obj_c34b4c5c91854a6b8962806b064fa544" icon="" label="查看模型" tip=""> + <eventcall></eventcall> + <eventscript>var%20data%20%3D%20eventContext.DWApi.grid.getCheckedData%28%29%3B%0Aconst%20sid%20%3D%20eventContext.DWApi.sid%3B%0Avar%20paId%20%3D%20data%5B0%5D.PLID%3B%0Awindow.open%28%27https%3A//bpm.yili.com%3A8088/portal/r/w%3Fuuid%3D%27+paId+%27%26teamId%3D%26cmd%3Dcom.actionsoft.apps.coe.pal_pl_repository_designer%26sid%3D%27+sid%29</eventscript> + <beforeeventcall></beforeeventcall> + <beforeeventscript></beforeeventscript> + <aftereventcall></aftereventcall> + <aftereventscript></aftereventscript> + </userextendbutton> + <userextendbutton id="obj_906782368fa44c8d88ca194e9f008564" icon="" label="改为设计" tip=""> + <eventcall></eventcall> + <eventscript>var%20data%20%3D%20eventContext.DWApi.grid.getCheckedData%28%29%3B%0Aif%28data%5B0%5D%3D%3Dnull%7C%7Cdata.length%3E1%29%7B%0A%20%20eventContext.instance.%24message%28%7B%0A%20%20type%3A%22error%22%2C%0A%20%20message%3A%22%u8BF7%u9009%u62E9%u5355%u6761%u6570%u636E%uFF01%22%0A%7D%29%3B%0A%7Delse%7B%0A%20testCall%28%29%3B%0A%7D%0A%0Afunction%20testCall%28%29%20%7B%0A%09var%20plId%20%3D%20data%5B0%5D.PLID%3B%0A%09var%20sid%20%3D%20eventContext.DWApi.grid.sid%3B%0A%09eventContext.instance.awsuiaxios.post%28%7B%0A%09%09%09url%3A%20%22./jd%22%2C%0A%09%09%09data%3A%20%7B%0A%09%09%09%09cmd%3A%20%22com.awspaas.user.apps.app.controller.updatePalFileState%22%2C%0A%09%09%09%09sid%3A%20sid%2C%0A%09%09%09%09plId%3A%20plId%2C%0A%09%09%09%09state%3A%20%220%22%2C%0A%09%09%09%09type%3A%20%220%22%0A%09%09%09%09//%20bindId%3A%20%20eventContext.row._BINDID%2C%0A%09%09%09%09//APPLYNO%3A%20JSON.stringify%28result%29%0A%09%09%09%09//title%20%3A%20eventContext.row.FILENAME%0A%09%09%09%7D%0A%09%09%7D%29%0A%09%09.then%28function%28response%29%20%7B%0A%09%09%09if%20%28response.result%20%21%3D%20%22error%22%29%20%7B%0A%09%09%09%09if%20%28response.result%20%3D%3D%20%22ok%22%29%20%7B%0A%09%09%09%09%09eventContext.instance.%24message%28%7B%0A%09%09%09%09%09%09type%3A%20%22success%22%2C%0A%09%09%09%09%09%09message%3A%20%22%u6587%u4EF6%u5DF2%u6539%u4E3A%u8BBE%u8BA1%u72B6%u6001%uFF01%22%0A%09%09%09%09%09%7D%29%3B%0A%09%09%09%09%7D%20else%20%7B%0A%09%09%09%09%09eventContext.instance.%24message%28%7B%0A%09%09%09%09%09%09type%3A%20%22warning%22%2C%0A%09%09%09%09%09%09message%3A%20response.result%0A%09%09%09%09%09%7D%29%3B%0A%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%0A%09%09%7D%29%0A%09%09.catch%28function%28response%29%20%7B%0A%09%09%09console.log%28response%29%3B%0A%09%09%7D%29%3B%0A%0A%7D%0A%0A%0A%0A%0A%0A</eventscript> + <beforeeventcall></beforeeventcall> + <beforeeventscript></beforeeventscript> + <aftereventcall></aftereventcall> + <aftereventscript></aftereventscript> + </userextendbutton> + <userextendbutton id="obj_48a5548fbeec43f69217849ef8941311" icon="" label="改为发布" tip=""> + <eventcall></eventcall> + <eventscript>var%20data%20%3D%20eventContext.DWApi.grid.getCheckedData%28%29%3B%0Aif%28data%5B0%5D%3D%3Dnull%7C%7Cdata.length%3E1%29%7B%0A%20%20eventContext.instance.%24message%28%7B%0A%20%20type%3A%22error%22%2C%0A%20%20message%3A%22%u8BF7%u9009%u62E9%u5355%u6761%u6570%u636E%uFF01%22%0A%7D%29%3B%0A%7Delse%7B%0A%20testCall%28%29%3B%0A%7D%0A%0Afunction%20testCall%28%29%20%7B%0A%09var%20plId%20%3D%20data%5B0%5D.ID%3B%0A%09var%20sid%20%3D%20eventContext.DWApi.grid.sid%3B%0A%09eventContext.instance.awsuiaxios.post%28%7B%0A%09%09%09url%3A%20%22./jd%22%2C%0A%09%09%09data%3A%20%7B%0A%09%09%09%09cmd%3A%20%22com.awspaas.user.apps.app.controller.updatePalFileState%22%2C%0A%09%09%09%09sid%3A%20sid%2C%0A%09%09%09%09plId%3A%20plId%2C%0A%09%09%09%09state%3A%20%221%22%2C%0A%09%09%09%09type%3A%20%220%22%0A%09%09%09%09//%20bindId%3A%20%20eventContext.row._BINDID%2C%0A%09%09%09%09//APPLYNO%3A%20JSON.stringify%28result%29%0A%09%09%09%09//title%20%3A%20eventContext.row.FILENAME%0A%09%09%09%7D%0A%09%09%7D%29%0A%09%09.then%28function%28response%29%20%7B%0A%09%09%09if%20%28response.result%20%21%3D%20%22error%22%29%20%7B%0A%09%09%09%09if%20%28response.result%20%3D%3D%20%22ok%22%29%20%7B%0A%09%09%09%09%09eventContext.instance.%24message%28%7B%0A%09%09%09%09%09%09type%3A%20%22success%22%2C%0A%09%09%09%09%09%09message%3A%20%22%u6587%u4EF6%u5DF2%u6539%u4E3A%u53D1%u5E03%u72B6%u6001%uFF01%22%0A%09%09%09%09%09%7D%29%3B%0A%09%09%09%09%7D%20else%20%7B%0A%09%09%09%09%09eventContext.instance.%24message%28%7B%0A%09%09%09%09%09%09type%3A%20%22warning%22%2C%0A%09%09%09%09%09%09message%3A%20response.result%0A%09%09%09%09%09%7D%29%3B%0A%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%0A%09%09%7D%29%0A%09%09.catch%28function%28response%29%20%7B%0A%09%09%09console.log%28response%29%3B%0A%09%09%7D%29%3B%0A%0A%7D%0A%0A%0A%0A%0A%0A</eventscript> + <beforeeventcall></beforeeventcall> + <beforeeventscript></beforeeventscript> + <aftereventcall></aftereventcall> + <aftereventscript></aftereventscript> + </userextendbutton> + </userextendbuttons> + <userextendbehaviors> + <userextendbehavior id="obj_995d67ce1e2146e4a42b594e46ecb6d9" name="打开手册"> + <templatecall>onclick%3D</templatecall> + <templatescript>var%20data%20%3D%20eventContext.DWApi.grid.getCheckedData%28%29%3B%0Aconst%20sid%20%3D%20eventContext.DWApi.sid%3B%0Avar%20paId%20%3D%20data%5B0%5D.PLID%3B%0Awindow.open%28%27https%3A//bpm.yili.com%3A8088/portal/r/w%3Fuuid%3D%27+paId+%27%26teamId%3D%26cmd%3Dcom.actionsoft.apps.coe.pal_pl_repository_designer%26sid%3D%27+sid%29</templatescript> + </userextendbehavior> + </userextendbehaviors> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_ffba75874b7d468fb055dc4ca98a5d2b/obj_ffba75874b7d468fb055dc4ca98a5d2b.xml b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_ffba75874b7d468fb055dc4ca98a5d2b/obj_ffba75874b7d468fb055dc4ca98a5d2b.xml new file mode 100644 index 00000000..03cc57ab --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/dw/_obj_ffba75874b7d468fb055dc4ca98a5d2b/obj_ffba75874b7d468fb055dc4ca98a5d2b.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<AWSDWModel> + <id>obj_ffba75874b7d468fb055dc4ca98a5d2b</id> + <createUser>admin</createUser> + <createTime>2022-10-25 16:42:46</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-10-28 14:02:08</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrPoSmT+y9F2ye3XC1Hh4C0PD25sw/EQFQriE7rDN+HwfkCZeYigT3g7WWR4TQIoOc</signature> + <managed>false</managed> + <version>1.0</version> + <processGroupId>obj_ffba75874b7d468fb055dc4ca98a5d2b</processGroupId> + <processGroupName></processGroupName> + <categoryName>文件处理</categoryName> + <dwType>1</dwType> + <processAdministrator>admin</processAdministrator> + <title id="obj_53feae933e6b439ea526b32e4a5ef3fb" label="问题模型统计" extendcode="" event=""/> + <dataView id="obj_7d6f12fe5714463595e484f24a9b361a" label="首页" showType="link" orderIndex="0" dwReportType="-1" isDefault="false" category="普通视图" implClassName="com.actionsoft.bpms.dw.design.dataview.CommonDataView" security="" event="" url="" userExtendJs="" show="true"> + <showHighSecurity>false</showHighSecurity> + <dataParams></dataParams> + <layoutECategoryType></layoutECategoryType> + <layoutECategoryTypeLast></layoutECategoryTypeLast> + <afterLoadEventCall></afterLoadEventCall> + <afterLoadEventScript></afterLoadEventScript> + <toolbar id="obj_5277721cea7546028e18f568d53f6d3f" isshow="true" extendcode="" event=""> + <button id="obj_b9b5ccee863d44509c81ac5a419f2ffa" refbuttonid="save" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="1" mobileShow="false" event="" selectShow="false"/> + <button id="obj_ea059bea06d643a9be1c3526eb7904c4" refbuttonid="new" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="2" mobileShow="false" event="" selectShow="false"/> + <button id="obj_63ab87b9afe443f7bd9a8fa509ae61b3" refbuttonid="delete" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="3" mobileShow="false" event="" selectShow="true"/> + <button id="obj_bdf7451270044b659eac4c4435fbb954" refbuttonid="print" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="4" mobileShow="false" event="" selectShow="false"/> + <button id="obj_8727642b88b44f13ad60ce0c8eea9895" refbuttonid="refresh" cls="" fontColor="" bgColor="" security="" isshow="true" orderindex="5" mobileShow="false" event="" selectShow="false"/> + <button id="obj_d405afef9ff24085b9129534c60e6b21" refbuttonid="exportDWData" cls="" fontColor="" bgColor="" security="" isshow="false" orderindex="6" mobileShow="false" event="" selectShow="false"/> + </toolbar> + <searcher id="obj_1c10f8620c494937a78c944291aec1b5" isshow="true" layoutType="tile" tdGroup="4" tileLayout="y" textCls="" dwLeftCls="" dwRightCls="" extendcode="" event="" xconditionEvent="" tileOpen="false"> + <likecondition id="obj_b984c7254999437e9b81dc3131e99cb9" field="PLNAME" extend1="" label="模型名称" comparetype="like" uiname="TEXT" relationship="" uidefault="" uicomponent="文本" uiref="" required="false" security="" orderindex="0" event=""/> + </searcher> + <navTree id="obj_eecb2a7259f34b548b66bb961166ae4e" isshow="false" type="" rootcls="" leafcls="" ismultiple="false" isexpanded="true" orderindex="" event=""/> + <layout id="obj_a7f282226c214f81a2c009156b85da0c" label="" classname="com.actionsoft.bpms.dw.exec.layout.LayoutA" event=""/> + <datagrid id="obj_e53ed778eb0b4cc3aab5f789dc5ce6c9" isshow="true" autoSearch="true" customSet="true" select="false" datasource="bo:BO_EU_PAL_ERROR_FILE" countSql="" pagesize="100" event="" rowDefHeight="25" showCheckBox="true" ismultiple="true" isshownumbercol="true" numberCellTotal="false" shownumbercolwidth="40px" freezeCols="0" wrap="false" nowrapTitle="false" refbehaviorid="|_title{}title_||||" behaviortarget="" behaviorConfig="" extendsql="" identifier="_ID" extend1="" multiHeader=""> + <dataBaseConn></dataBaseConn> + <freezeField></freezeField> + <column id="589d4726-b64c-4033-bf92-f750ad8e8ae6" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="197" colALias="" colTableAlias="" colTable="BO_EU_PAL_ERROR_FILE" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLNAME" label="模型名称" orderindex="0" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="2ce49e57-fd2c-4742-8a45-365df6e8657d" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="301" colALias="" colTableAlias="" colTable="BO_EU_PAL_ERROR_FILE" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="PLID" label="模型ID" orderindex="1" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="23c04353-68b9-4358-bbe2-cc3e51526398" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="184" colALias="" colTableAlias="" colTable="BO_EU_PAL_ERROR_FILE" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="FRAMEWORK" label="架构名称" orderindex="2" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="006de5e6-9a20-44de-8d9d-f0744faef67e" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_ERROR_FILE" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="VERSION" label="版本号" orderindex="3" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="650bc6a7-52ba-4283-8c01-875318e8ca33" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_ERROR_FILE" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="TYPE" label="模型类型" orderindex="4" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="2df33ac9-dc51-41af-8b4c-125a94b1e07b" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="150" colALias="" colTableAlias="" colTable="BO_EU_PAL_ERROR_FILE" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ISPUBLISH" label="是否发布" orderindex="5" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="9883147e-c2ec-4a7e-b0d9-4981f9e1aa3d" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="67" colALias="" colTableAlias="" colTable="BO_EU_PAL_ERROR_FILE" length="128" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="ERRORTYPE" label="错误类型" orderindex="6" colbehaviortarget="" ishidden="false" export="true" backHide="false" isusedvalue="false" tableheadsort="true" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="0" boType="AWSUI.Text" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="1f6d9e0a-662d-4e36-9363-0e309e61d779" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_ERROR_FILE" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ORGID" label="单位ID" orderindex="7" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="06c0a5c6-0366-4abf-8a8b-29c5e2dbfae9" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_ERROR_FILE" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEDATE" label="创建日期" orderindex="8" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="5dc14874-30f1-40a5-8f98-fa2f417dea06" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_ERROR_FILE" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_CREATEUSER" label="创建人" orderindex="9" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="834885dc-f91e-4235-905a-1bbd346f6a77" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="135" colALias="" colTableAlias="" colTable="BO_EU_PAL_ERROR_FILE" length="0" required="0" align="center" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEDATE" label="更新日期" orderindex="10" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="DATE" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="86ff53a5-6eb3-4d80-a57d-451f4ff37c27" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_ERROR_FILE" length="36" required="1" align="left" showrule="{"type": "org","orgtype": "user"}" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_UPDATEUSER" label="更新人" orderindex="11" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="89146ca2-07b3-4508-aded-55664750fb99" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_ERROR_FILE" length="1" required="0" align="right" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ISEND" label="流程是否结束" orderindex="12" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="NUMBER" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="fd8180a3-1d71-43e7-b113-1b6c50a26480" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_ERROR_FILE" length="36" required="0" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_ID" label="业务表ID" orderindex="13" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <column id="c45a45f3-e96f-485f-a6d9-abce8f2e7ff1" sort="" isfilter="false" bgcolor="" fontcolor="" fontsize="12px" width="120" colALias="" colTableAlias="" colTable="BO_EU_PAL_ERROR_FILE" length="36" required="1" align="left" showrule="" upshowrule="" upDataClassName="" extend1="" extend2="" security="" securityLevel="0" event="" field="_BINDID" label="流程实例ID" orderindex="14" colbehaviortarget="" ishidden="true" export="false" backHide="true" isusedvalue="true" tableheadsort="false" colrefbehaviorid="" columnAction="" datatype="TEXT" handleType="1" boType="" count="false" countType="" colorFullNote="false" colorFullNoteMap=""/> + <dynamicRule></dynamicRule> + </datagrid> + <reportSetting></reportSetting> + <chartSetting></chartSetting> + </dataView> + <userextendbuttons/> + <userextendbehaviors/> + <iconFontCode></iconFontCode> + <iconFontColor></iconFontColor> +</AWSDWModel> diff --git a/com.awspaas.user.apps.app20221008163300/repository/form/_174c2259-a54a-4b4f-a375-912aea4ca162/174c2259-a54a-4b4f-a375-912aea4ca162.xml b/com.awspaas.user.apps.app20221008163300/repository/form/_174c2259-a54a-4b4f-a375-912aea4ca162/174c2259-a54a-4b4f-a375-912aea4ca162.xml new file mode 100644 index 00000000..681f4b1a --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/form/_174c2259-a54a-4b4f-a375-912aea4ca162/174c2259-a54a-4b4f-a375-912aea4ca162.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<formModel> + <id>174c2259-a54a-4b4f-a375-912aea4ca162</id> + <createUser>admin</createUser> + <createTime>2022-11-08 15:19:29</createTime> + <updateUser>admin</updateUser> + <updateTime>2022-11-08 17:00:31</updateTime> + <signature>tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrSzIU7heDv4vD9lTXoXwio0D5GmNo0fg1wpLRpyvatxGeeFp1PIP7RNB+nmy57kir</signature> + <managed>false</managed> + <title>补充发送OA待阅 + false + 待办待阅 + admin + + + + + + + ca052f7f-2cb6-44aa-bf99-b8ee6c38a0e9 + 补充发送OA待阅 + {"tablet":"待办待阅-补充发送OA待阅.htm","pc":"待办待阅-补充发送OA待阅.htm","mobile":"待办待阅-补充发送OA待阅_m.htm"} + false + + + 0 + 522c9ad1-5ce3-4c3c-9aaf-39323976096b + + false + {"pc":"_bpm.platform","mobile":"_bpm.platform"} + + {"pc":"scheme_aws.css","mobile":""} + + + + + + + + + false + false + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/form/_1fa52d9c-3422-40e3-8552-8ac8071f4c7a/1fa52d9c-3422-40e3-8552-8ac8071f4c7a.xml b/com.awspaas.user.apps.app20221008163300/repository/form/_1fa52d9c-3422-40e3-8552-8ac8071f4c7a/1fa52d9c-3422-40e3-8552-8ac8071f4c7a.xml new file mode 100644 index 00000000..df958e5e --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/form/_1fa52d9c-3422-40e3-8552-8ac8071f4c7a/1fa52d9c-3422-40e3-8552-8ac8071f4c7a.xml @@ -0,0 +1,45 @@ + + + 1fa52d9c-3422-40e3-8552-8ac8071f4c7a + admin + 2022-10-09 19:18:36 + admin + 2022-10-09 19:18:50 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrGxjAgqDJhEkrGZsyeQjB32v2Pyec/jWUdcF35QtFCu4sem4xs13jnXvYshqiSkb6 + false + 批量发布时不发布的文件过滤 + false + 文件处理 + admin + + + + + + + 8c6af8f5-83ad-4ed9-bd8b-48ab5ce03728 + 批量发布时不发布的文件过滤 + {"tablet":"文件处理-批量发布时不发布的文件过滤.htm","pc":"文件处理-批量发布时不发布的文件过滤.htm","mobile":"文件处理-批量发布时不发布的文件过滤_m.htm"} + false + + + 0 + cea1b185-e136-40db-9c78-1e1960259906 + + false + {"pc":"_bpm.platform","mobile":"_bpm.platform"} + + {"pc":"scheme_aws.css","mobile":""} + + + + + + + + + false + false + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/form/_34b4e6ad-7aa3-4237-b42a-3d2332ac57b1/34b4e6ad-7aa3-4237-b42a-3d2332ac57b1.xml b/com.awspaas.user.apps.app20221008163300/repository/form/_34b4e6ad-7aa3-4237-b42a-3d2332ac57b1/34b4e6ad-7aa3-4237-b42a-3d2332ac57b1.xml new file mode 100644 index 00000000..86f74d72 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/form/_34b4e6ad-7aa3-4237-b42a-3d2332ac57b1/34b4e6ad-7aa3-4237-b42a-3d2332ac57b1.xml @@ -0,0 +1,45 @@ + + + 34b4e6ad-7aa3-4237-b42a-3d2332ac57b1 + admin + 2022-11-07 09:37:08 + admin + 2022-11-20 11:24:07 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr4C1CPacXnMq2ra2zOM6SI1TwyQWVenanl5kCJCttzTwQe5Y1ILF0J1xob7PDe5jW + false + 发布成功回执单 + false + 待办待阅 + admin + + + + + + + 9b4e19de-43ef-4706-808b-b4e6d530953c + 发布成功回执单 + {"tablet":"待办待阅-发布成功回执单.htm","pc":"待办待阅-发布成功回执单.htm","mobile":"待办待阅-发布成功回执单_m.htm"} + false + + + 0 + f17c4bf4-67d2-4d33-8b05-055e258c6fc2 + + false + {"pc":"_bpm.platform","mobile":"_bpm.platform"} + + {"pc":"scheme_aws.css","mobile":"scheme_aws.css"} + + + + + + + {"displayRule":[{"expressions":[{"type":"field","expression":"BO_EU_PAL_PULBISH_SUCCESS.TITLE","juge":"like","value":"补充","fieldType":"string"}],"rules":[{"display":"hide","dom":"field","domId":"BO_EU_PAL_PULBISH_SUCCESS.SEND_SCOP","labelName":"","dwId":null,"dwMap":""},{"display":"hide","dom":"field","domId":"BO_EU_PAL_PULBISH_SUCCESS.SEND_SCOPE_ORGNUM","labelName":"","dwId":null,"dwMap":""},{"display":"hide","dom":"field","domId":"BO_EU_PAL_PULBISH_SUCCESS.SEND_SCOPE_POST_NUM","labelName":"","dwId":null,"dwMap":""},{"display":"hide","dom":"field","domId":"BO_EU_PAL_PULBISH_SUCCESS.SEND_SCOPE_LEVEL_NUM","labelName":"","dwId":null,"dwMap":""}],"fields":["BO_EU_PAL_PULBISH_SUCCESS.TITLE"]}],"requiredRule":[],"modifyRule":[],"calcRule":[]} + + false + false + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/form/_459ac035-8b6a-4df0-8f4c-a8525b3fcdde/459ac035-8b6a-4df0-8f4c-a8525b3fcdde.xml b/com.awspaas.user.apps.app20221008163300/repository/form/_459ac035-8b6a-4df0-8f4c-a8525b3fcdde/459ac035-8b6a-4df0-8f4c-a8525b3fcdde.xml new file mode 100644 index 00000000..e023a14c --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/form/_459ac035-8b6a-4df0-8f4c-a8525b3fcdde/459ac035-8b6a-4df0-8f4c-a8525b3fcdde.xml @@ -0,0 +1,45 @@ + + + 459ac035-8b6a-4df0-8f4c-a8525b3fcdde + admin + 2022-10-09 09:04:54 + admin + 2022-10-24 19:56:37 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGri9PCTwrktaE76VPNKpLUpvNM8vIp4Miwe0N/LjRVpvovFKJBGDc7XCjMlQU/9UsU + false + 空文件 + false + 文件处理 + admin + + + + + + + fdd2e70d-0e0b-402b-8690-d233b2d1e73e + PAL空模型记录 + {"pc":"文件处理-空文件.htm","mobile":"文件处理-空文件_m.htm"} + false + + + 0 + 3eb4ced6-bc73-4d9a-b263-21be6a51bbe8 + + false + {"pc":"_bpm.platform","mobile":"_bpm.platform"} + + {"pc":"","mobile":""} + + + + + + + + + false + false + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/form/_559d4233-cce0-41e7-bc6f-773407d570e8/559d4233-cce0-41e7-bc6f-773407d570e8.xml b/com.awspaas.user.apps.app20221008163300/repository/form/_559d4233-cce0-41e7-bc6f-773407d570e8/559d4233-cce0-41e7-bc6f-773407d570e8.xml new file mode 100644 index 00000000..1175d7f0 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/form/_559d4233-cce0-41e7-bc6f-773407d570e8/559d4233-cce0-41e7-bc6f-773407d570e8.xml @@ -0,0 +1,45 @@ + + + 559d4233-cce0-41e7-bc6f-773407d570e8 + admin + 2022-11-11 18:21:08 + admin + 2022-11-11 18:21:11 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrfrogCXkPc8I+5ugryYqpiDWXY+heiAxIgz+IOIsbhtoIZ2s7PXMBOA6oUIx6LzYO + false + 批量刷新编号 + false + 文件处理 + admin + + + + + + + 35deb21e-da42-4c11-91e1-d73c140e5b1b + 批量刷新编号 + {"tablet":"文件处理-批量刷新编号.htm","pc":"文件处理-批量刷新编号.htm","mobile":"文件处理-批量刷新编号_m.htm"} + false + + + 0 + 367a7e45-c3a7-435f-8213-49b52bb90663 + + false + {"pc":"_bpm.platform","mobile":"_bpm.platform"} + + {"pc":"scheme_aws.css","mobile":""} + + + + + + + + + false + false + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/form/_93607580-1130-4522-aa30-a37d2467908a/93607580-1130-4522-aa30-a37d2467908a.xml b/com.awspaas.user.apps.app20221008163300/repository/form/_93607580-1130-4522-aa30-a37d2467908a/93607580-1130-4522-aa30-a37d2467908a.xml new file mode 100644 index 00000000..f0231591 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/form/_93607580-1130-4522-aa30-a37d2467908a/93607580-1130-4522-aa30-a37d2467908a.xml @@ -0,0 +1,45 @@ + + + 93607580-1130-4522-aa30-a37d2467908a + admin + 2022-10-13 22:19:54 + admin + 2022-10-13 22:19:58 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrIo2lpBI/LK4xw0OrCKuAkWu3vDycDLtmmoagGaajgVNz0pQmOrjGRLifGJUXF4IF + false + PAL架构替换 + false + 文件处理 + admin + + + + + + + 8f664c44-b75c-4da8-a3f0-20cdc7561f95 + PAL架构替换 + {"tablet":"文件处理-PAL架构替换.htm","pc":"文件处理-PAL架构替换.htm","mobile":"文件处理-PAL架构替换_m.htm"} + false + + + 0 + 0b707241-9f6d-49a0-bffa-acb4ece3d3de + + false + {"pc":"_bpm.platform","mobile":"_bpm.platform"} + + {"pc":"scheme_aws.css","mobile":""} + + + + + + + + + false + false + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/form/_941fb1e4-5121-4495-91bb-6239ae7d30e5/941fb1e4-5121-4495-91bb-6239ae7d30e5.xml b/com.awspaas.user.apps.app20221008163300/repository/form/_941fb1e4-5121-4495-91bb-6239ae7d30e5/941fb1e4-5121-4495-91bb-6239ae7d30e5.xml new file mode 100644 index 00000000..f27eb96f --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/form/_941fb1e4-5121-4495-91bb-6239ae7d30e5/941fb1e4-5121-4495-91bb-6239ae7d30e5.xml @@ -0,0 +1,45 @@ + + + 941fb1e4-5121-4495-91bb-6239ae7d30e5 + admin + 2022-10-12 15:39:43 + admin + 2022-10-12 15:39:50 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr+Kp6SKA4dL9Rx32jVZgVxvPddcTx+7XKWtRKcPqfLyPFfqCrkCkIJfL1bOKGWy3F + false + 阅览权限导入 + false + 权限处理 + admin + + + + + + + 4e3bd313-d2e6-429c-a769-08a741704720 + 阅览权限导入 + {"tablet":"权限处理-阅览权限导入.htm","pc":"权限处理-阅览权限导入.htm","mobile":"权限处理-阅览权限导入_m.htm"} + false + + + 0 + 1f509b16-a35c-41ca-a5d7-c82d13004979 + + false + {"pc":"_bpm.platform","mobile":"_bpm.platform"} + + {"pc":"scheme_aws.css","mobile":""} + + + + + + + + + false + false + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/form/_c5633ef8-8bef-4eae-9ca1-0f7be5d85232/c5633ef8-8bef-4eae-9ca1-0f7be5d85232.xml b/com.awspaas.user.apps.app20221008163300/repository/form/_c5633ef8-8bef-4eae-9ca1-0f7be5d85232/c5633ef8-8bef-4eae-9ca1-0f7be5d85232.xml new file mode 100644 index 00000000..3bb8c4bb --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/form/_c5633ef8-8bef-4eae-9ca1-0f7be5d85232/c5633ef8-8bef-4eae-9ca1-0f7be5d85232.xml @@ -0,0 +1,45 @@ + + + c5633ef8-8bef-4eae-9ca1-0f7be5d85232 + 15600221563 + 2022-10-17 17:29:20 + 15600221563 + 2022-10-17 17:29:22 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGruDmmaW3TbglstpQblXaFzifc5Ai3z1rUjQPi5/EhBxA8T8lm9Fp1hL2T6+r593Ud + false + PAL文件批量发布 + false + 文件处理 + 15600221563 + + + + + + + e5e00e2b-3a15-43ff-9314-ea0effb561d6 + PAL文件批量发布 + {"tablet":"文件处理-PAL文件批量发布.htm","pc":"文件处理-PAL文件批量发布.htm","mobile":"文件处理-PAL文件批量发布_m.htm"} + false + + + 0 + 889193c3-fade-4075-8b4e-69403a3bf34d + + false + {"pc":"_bpm.platform","mobile":"_bpm.platform"} + + {"pc":"scheme_aws.css","mobile":""} + + + + + + + + + false + false + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/form/_ce1c5456-dca6-4439-9d73-41ce07d0d934/ce1c5456-dca6-4439-9d73-41ce07d0d934.xml b/com.awspaas.user.apps.app20221008163300/repository/form/_ce1c5456-dca6-4439-9d73-41ce07d0d934/ce1c5456-dca6-4439-9d73-41ce07d0d934.xml new file mode 100644 index 00000000..671f5444 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/form/_ce1c5456-dca6-4439-9d73-41ce07d0d934/ce1c5456-dca6-4439-9d73-41ce07d0d934.xml @@ -0,0 +1,45 @@ + + + ce1c5456-dca6-4439-9d73-41ce07d0d934 + admin + 2022-11-08 19:05:49 + admin + 2022-11-08 19:05:52 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrvF0Opi+yhhy4X0W3EJXFygnMPQm+Hsx9Qa2DPNZYJSVNEVwMJMTHLjG3NEV/TSrN + false + 测试表单 + false + 待办待阅 + admin + + + + + + + 47598d8e-9657-43a5-b332-419060c4729a + 测试表单 + {"tablet":"待办待阅-测试表单.htm","pc":"待办待阅-测试表单.htm","mobile":"待办待阅-测试表单_m.htm"} + false + + + 0 + db21b816-bb47-4732-a2aa-f84432e1be64 + + false + {"pc":"_bpm.platform","mobile":"_bpm.platform"} + + {"pc":"scheme_aws.css","mobile":""} + + + + + + + + + false + false + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/form/_d3a614a6-f34f-44d4-bc97-42a5b1c21822/d3a614a6-f34f-44d4-bc97-42a5b1c21822.xml b/com.awspaas.user.apps.app20221008163300/repository/form/_d3a614a6-f34f-44d4-bc97-42a5b1c21822/d3a614a6-f34f-44d4-bc97-42a5b1c21822.xml new file mode 100644 index 00000000..d45f0630 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/form/_d3a614a6-f34f-44d4-bc97-42a5b1c21822/d3a614a6-f34f-44d4-bc97-42a5b1c21822.xml @@ -0,0 +1,70 @@ + + + d3a614a6-f34f-44d4-bc97-42a5b1c21822 + admin + 2022-10-08 18:08:11 + admin + 2022-10-08 18:27:26 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrTLvs7uxu6RlaW31N2/0AMMFdqOdiQc5TmA3Uz/KbgajeEBLo4mpgRpNlzPybcIY8 + false + 文件状态修改 + false + 文件处理 + admin + + + + + + + 5a2ed498-2d88-4a11-9058-b8a3e92753a1 + 文件状态更新 + {"pc":"文件处理-文件状态修改.htm","mobile":"文件处理-文件状态修改_m.htm"} + false + + + 0 + c23af0a0-f19d-4b03-b2d8-8e6a6303c3b7 + + false + {"pc":"_bpm.platform","mobile":"_bpm.platform"} + + {"pc":"scheme_aws.css","mobile":""} + + + + + + + + + false + false + + + fd37b399-9fe4-4b1f-adb7-32609927538f + 状态更新子表 + {} + true + + + 0 + 76ebd0a8-18ba-4bbd-8d7e-b6cfc41d50c9 + + false + + + {} + + + + + + + + + false + false + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/job/_041dc148-c76e-462e-b736-976e5ffb8fd8/041dc148-c76e-462e-b736-976e5ffb8fd8.xml b/com.awspaas.user.apps.app20221008163300/repository/job/_041dc148-c76e-462e-b736-976e5ffb8fd8/041dc148-c76e-462e-b736-976e5ffb8fd8.xml new file mode 100644 index 00000000..2b269a1e --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/job/_041dc148-c76e-462e-b736-976e5ffb8fd8/041dc148-c76e-462e-b736-976e5ffb8fd8.xml @@ -0,0 +1,26 @@ + + + 041dc148-c76e-462e-b736-976e5ffb8fd8 + admin + 2022-11-04 12:34:59 + + 2022-11-07 14:26:58 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr2hjZZmB9XI879GpivrJ6Ca/5m2NDI6p4gTKmuXxGN4rHQ7e5b6vGxjLAmhzaKDPs + false + OA待阅文件数量发送情况统计 + DEFAULT + + false + false + com.awspaas.user.apps.app.job.ReadSendCountJob + 2022-11-04T12:34:59+08:00 + 0:1:1 + 1 + + false + 未分类 + false + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/job/_1adf3dba-9552-4943-84b6-f54574d9e6d4/1adf3dba-9552-4943-84b6-f54574d9e6d4.xml b/com.awspaas.user.apps.app20221008163300/repository/job/_1adf3dba-9552-4943-84b6-f54574d9e6d4/1adf3dba-9552-4943-84b6-f54574d9e6d4.xml new file mode 100644 index 00000000..a2b7b85a --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/job/_1adf3dba-9552-4943-84b6-f54574d9e6d4/1adf3dba-9552-4943-84b6-f54574d9e6d4.xml @@ -0,0 +1,26 @@ + + + 1adf3dba-9552-4943-84b6-f54574d9e6d4 + admin + 2022-10-28 11:04:36 + + 2022-10-28 11:04:36 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrCIhTflYm5945gV9eXNH+Kh2NUp5RziuuMVEjA7mzhd1aqgubVOHZd1FnODDLJovv + false + 问题模型统计 + DEFAULT + + false + false + com.awspaas.user.apps.app.job.CreateOutputReportJob2 + 2022-10-28T11:04:36+08:00 + 0:1:1 + + + false + 未分类 + false + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/job/_3363ed21-e16f-4bc3-909e-a84413211e07/3363ed21-e16f-4bc3-909e-a84413211e07.xml b/com.awspaas.user.apps.app20221008163300/repository/job/_3363ed21-e16f-4bc3-909e-a84413211e07/3363ed21-e16f-4bc3-909e-a84413211e07.xml new file mode 100644 index 00000000..0d43385f --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/job/_3363ed21-e16f-4bc3-909e-a84413211e07/3363ed21-e16f-4bc3-909e-a84413211e07.xml @@ -0,0 +1,26 @@ + + + 3363ed21-e16f-4bc3-909e-a84413211e07 + admin + 2022-11-17 13:07:41 + + 2022-11-21 22:41:43 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrm3SP4DZNlOMoOJSVdXHaSJ7ilwaFP6zJ6WA4qnywgpOHY/0aY67J8V3kx9rPDlZ8 + false + 预览服务调用 + DEFAULT + + false + false + com.awspaas.user.apps.app.job.PAlOnlinedocFileConvertJob + 2022-11-17T13:07:41+08:00 + 6::0 + + + false + 未分类 + false + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/job/_3d90ab79-664e-4db5-b61f-80f499a2b743/3d90ab79-664e-4db5-b61f-80f499a2b743.xml b/com.awspaas.user.apps.app20221008163300/repository/job/_3d90ab79-664e-4db5-b61f-80f499a2b743/3d90ab79-664e-4db5-b61f-80f499a2b743.xml new file mode 100644 index 00000000..fc2c1e33 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/job/_3d90ab79-664e-4db5-b61f-80f499a2b743/3d90ab79-664e-4db5-b61f-80f499a2b743.xml @@ -0,0 +1,26 @@ + + + 3d90ab79-664e-4db5-b61f-80f499a2b743 + admin + 2022-11-11 16:06:20 + + 2022-11-11 16:06:20 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrUm7eOjayWheMNXOP46k51qQqWCSmuz7ShDRiApXxECEig1Xr8h4vWA43SNwhyaqI + false + 文件处理工具 + DEFAULT + + false + false + com.awspaas.user.apps.app.job.PALUtilJob + 2022-11-11T16:06:20+08:00 + 6::0 + + + false + 未分类 + false + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/job/_46b40ada-6a1e-47a3-a7ec-dbf536393ce0/46b40ada-6a1e-47a3-a7ec-dbf536393ce0.xml b/com.awspaas.user.apps.app20221008163300/repository/job/_46b40ada-6a1e-47a3-a7ec-dbf536393ce0/46b40ada-6a1e-47a3-a7ec-dbf536393ce0.xml new file mode 100644 index 00000000..9ae85462 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/job/_46b40ada-6a1e-47a3-a7ec-dbf536393ce0/46b40ada-6a1e-47a3-a7ec-dbf536393ce0.xml @@ -0,0 +1,26 @@ + + + 46b40ada-6a1e-47a3-a7ec-dbf536393ce0 + admin + 2022-11-03 19:41:00 + + 2022-11-03 19:49:44 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrNrjSs/bpHiIQdO0rKefOZR8XTsqdOcGrC9o5Idg9zuPveQnM2H/MJxVGD8NfrLqz + false + 更新知识库错误文件名称 + DEFAULT + + false + false + com.awspaas.user.apps.app.job.UpdateKMSFileName + 2022-11-03T19:41:00+08:00 + 0:1:1 + + + false + 未分类 + false + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/job/_63dca686-8c71-4f3b-97cf-d2958ab73824/63dca686-8c71-4f3b-97cf-d2958ab73824.xml b/com.awspaas.user.apps.app20221008163300/repository/job/_63dca686-8c71-4f3b-97cf-d2958ab73824/63dca686-8c71-4f3b-97cf-d2958ab73824.xml new file mode 100644 index 00000000..d7d95ea9 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/job/_63dca686-8c71-4f3b-97cf-d2958ab73824/63dca686-8c71-4f3b-97cf-d2958ab73824.xml @@ -0,0 +1,26 @@ + + + 63dca686-8c71-4f3b-97cf-d2958ab73824 + admin + 2022-11-24 17:02:20 + + 2022-11-24 20:06:47 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrjs24exMUYPN21qG9tkrbylLwysNogSax+q4sbfvAMM7JVWL4a1dcaj2K4k0Hvl/C + false + 批量刷模型架构 + DEFAULT + + false + false + com.awspaas.user.apps.app.job.NoPalFrameworkJob + 2022-11-24T17:02:20+08:00 + 6::0 + + + false + 未分类 + false + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/job/_63dca686-8c71-4f3b-97cf-d2958ab73824/63dca686-8c71-4f3b-97cf-d2958ab73824_1.xml b/com.awspaas.user.apps.app20221008163300/repository/job/_63dca686-8c71-4f3b-97cf-d2958ab73824/63dca686-8c71-4f3b-97cf-d2958ab73824_1.xml new file mode 100644 index 00000000..96c4c696 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/job/_63dca686-8c71-4f3b-97cf-d2958ab73824/63dca686-8c71-4f3b-97cf-d2958ab73824_1.xml @@ -0,0 +1,26 @@ + + + 63dca686-8c71-4f3b-97cf-d2958ab73824 + admin + 2022-11-24 17:02:20 + + 2022-11-24 17:02:20 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrjs24exMUYPN21qG9tkrbylLwysNogSax+q4sbfvAMM7JVWL4a1dcaj2K4k0Hvl/C + false + 批量刷模型架构 + DEFAULT + + false + false + com.awspaas.user.apps.app.job.NoPalFrameworkJob + 2022-11-24T17:02:20+08:00 + 0:1:1 + + + false + 未分类 + false + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/job/_954d6e02-199e-4df4-ba38-edaa119c8116/954d6e02-199e-4df4-ba38-edaa119c8116.xml b/com.awspaas.user.apps.app20221008163300/repository/job/_954d6e02-199e-4df4-ba38-edaa119c8116/954d6e02-199e-4df4-ba38-edaa119c8116.xml new file mode 100644 index 00000000..308210a8 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/job/_954d6e02-199e-4df4-ba38-edaa119c8116/954d6e02-199e-4df4-ba38-edaa119c8116.xml @@ -0,0 +1,26 @@ + + + 954d6e02-199e-4df4-ba38-edaa119c8116 + admin + 2022-11-11 18:32:41 + + 2022-11-17 13:04:53 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrZyw2T2JoNE3XFqK+n6KKUZRnBZVRB4Oi4COu/DCU8CAanSMxXrR6IY+widaMOrK5 + false + 批量刷模型活动序号 + DEFAULT + + false + false + com.awspaas.user.apps.app.job.NoRefreshJob2 + 2022-11-11T18:32:41+08:00 + 6::0 + + + false + 未分类 + false + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/job/_986ac753-210f-4985-90e2-ed922d7402e0/986ac753-210f-4985-90e2-ed922d7402e0.xml b/com.awspaas.user.apps.app20221008163300/repository/job/_986ac753-210f-4985-90e2-ed922d7402e0/986ac753-210f-4985-90e2-ed922d7402e0.xml new file mode 100644 index 00000000..2f435683 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/job/_986ac753-210f-4985-90e2-ed922d7402e0/986ac753-210f-4985-90e2-ed922d7402e0.xml @@ -0,0 +1,26 @@ + + + 986ac753-210f-4985-90e2-ed922d7402e0 + admin + 2022-11-09 14:58:25 + + 2022-11-17 13:05:03 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrIzOI08QuyHaSZu7eQEQMQu+/GPW/6JiP5Qyy7X/wzzckdXrlph8IMcJoFC8Ngp47 + false + 批量发布文件 + DEFAULT + + false + false + com.awspaas.user.apps.app.job.CreateOutputReportJob + 2022-11-09T14:58:25+08:00 + 6::0 + + + false + 未分类 + false + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/job/_a4b4991a-5a53-47ab-854b-f6460fb85cd3/a4b4991a-5a53-47ab-854b-f6460fb85cd3.xml b/com.awspaas.user.apps.app20221008163300/repository/job/_a4b4991a-5a53-47ab-854b-f6460fb85cd3/a4b4991a-5a53-47ab-854b-f6460fb85cd3.xml new file mode 100644 index 00000000..dac22e91 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/job/_a4b4991a-5a53-47ab-854b-f6460fb85cd3/a4b4991a-5a53-47ab-854b-f6460fb85cd3.xml @@ -0,0 +1,26 @@ + + + a4b4991a-5a53-47ab-854b-f6460fb85cd3 + admin + 2022-10-28 17:23:55 + + 2022-10-28 17:23:55 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGraBRyB0fLooP0S9zX0ZAXiMb+u0iDEL94cR80Lk4VPLgphcSr1rlAQqmdRb6NU18Y + false + 批量刷制度模型编号 + DEFAULT + + false + false + com.awspaas.user.apps.app.job.NoRefreshJob + 2022-10-28T17:23:55+08:00 + 0:1:1 + + + false + 未分类 + false + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/job/_a9a57f20-5bfd-4801-97b7-15f90e451e60/a9a57f20-5bfd-4801-97b7-15f90e451e60.xml b/com.awspaas.user.apps.app20221008163300/repository/job/_a9a57f20-5bfd-4801-97b7-15f90e451e60/a9a57f20-5bfd-4801-97b7-15f90e451e60.xml new file mode 100644 index 00000000..3e821dbc --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/job/_a9a57f20-5bfd-4801-97b7-15f90e451e60/a9a57f20-5bfd-4801-97b7-15f90e451e60.xml @@ -0,0 +1,26 @@ + + + a9a57f20-5bfd-4801-97b7-15f90e451e60 + admin + 2022-12-07 16:59:26 + + 2022-12-07 16:59:26 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr4F3cVfxxRBsTMnf8IXmak84T5AW/BZHRbKKJj83MSxxYYVjcl9BEsfZPgqL9BdtP + false + 已发布文件新版本标识 + DEFAULT + + false + false + com.awspaas.user.apps.app.publis.job.SynFileStateJob + 2022-12-07T16:59:26+08:00 + 0:1:1 + + + false + 未分类 + false + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/job/_cd06cb12-738e-4e26-be94-ef7c6f6200a2/cd06cb12-738e-4e26-be94-ef7c6f6200a2.xml b/com.awspaas.user.apps.app20221008163300/repository/job/_cd06cb12-738e-4e26-be94-ef7c6f6200a2/cd06cb12-738e-4e26-be94-ef7c6f6200a2.xml new file mode 100644 index 00000000..d0a88296 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/job/_cd06cb12-738e-4e26-be94-ef7c6f6200a2/cd06cb12-738e-4e26-be94-ef7c6f6200a2.xml @@ -0,0 +1,26 @@ + + + cd06cb12-738e-4e26-be94-ef7c6f6200a2 + admin + 2022-12-29 14:50:13 + + 2022-12-29 14:50:13 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGrLGuHqYSUh8KW2kxQdEHY6EFsj931GEMmATL/AaNu8WjAh7umywRB98Kq+fKaol+a + false + 文件节点信息同步 + DEFAULT + + false + false + com.awspaas.user.apps.app.reportform.job.SyncData_job + 2022-12-29T14:50:13+08:00 + 0:1:1 + + + false + 未分类 + false + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/job/_cd4d3ba3-d5ca-40aa-95c6-934eea301ac5/cd4d3ba3-d5ca-40aa-95c6-934eea301ac5.xml b/com.awspaas.user.apps.app20221008163300/repository/job/_cd4d3ba3-d5ca-40aa-95c6-934eea301ac5/cd4d3ba3-d5ca-40aa-95c6-934eea301ac5.xml new file mode 100644 index 00000000..537e6c1b --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/job/_cd4d3ba3-d5ca-40aa-95c6-934eea301ac5/cd4d3ba3-d5ca-40aa-95c6-934eea301ac5.xml @@ -0,0 +1,26 @@ + + + cd4d3ba3-d5ca-40aa-95c6-934eea301ac5 + admin + 2022-10-12 20:04:34 + + 2022-10-13 17:55:39 + tGOmxiTgjT/77UoYpSlq8Vc+hHPRoJWHdZexXc7zEpYuMNdhvSICeJnlc/RzRHGr3KfoGbVvoa9UnL1JmcMyAHT4eVpkMx7bUpSobd6Aa0pW0stpT6x2VttRU/PstCHU + false + 批量激活发布流程 + DEFAULT + + false + false + com.awspaas.user.apps.app.job.ReactivateProcessJob + 2022-10-12T20:04:34+08:00 + 6::0 + + + false + 未分类 + false + + + + diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_0b01eb3531a44b45be42d29d4d22043a/obj_0b01eb3531a44b45be42d29d4d22043a.bpmn b/com.awspaas.user.apps.app20221008163300/repository/process/obj_0b01eb3531a44b45be42d29d4d22043a/obj_0b01eb3531a44b45be42d29d4d22043a.bpmn new file mode 100644 index 00000000..f464960f --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_0b01eb3531a44b45be42d29d4d22043a/obj_0b01eb3531a44b45be42d29d4d22043a.bpmn @@ -0,0 +1,50 @@ + + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_0b01eb3531a44b45be42d29d4d22043a/obj_0b01eb3531a44b45be42d29d4d22043a.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_0b01eb3531a44b45be42d29d4d22043a/obj_0b01eb3531a44b45be42d29d4d22043a.draw new file mode 100644 index 00000000..d41f0042 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_0b01eb3531a44b45be42d29d4d22043a/obj_0b01eb3531a44b45be42d29d4d22043a.draw @@ -0,0 +1 @@ +{"versionId":"obj_0b01eb3531a44b45be42d29d4d22043a","chartId":"obj_0b01eb3531a44b45be42d29d4d22043a","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-11-04 16:33:13","definitionId":"obj_0b01eb3531a44b45be42d29d4d22043a"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_0b01eb3531a44b45be42d29d4d22043a/obj_0b01eb3531a44b45be42d29d4d22043a_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_0b01eb3531a44b45be42d29d4d22043a/obj_0b01eb3531a44b45be42d29d4d22043a_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_1914eba9d2f14e8ea41da65f3eec7fce/obj_1914eba9d2f14e8ea41da65f3eec7fce.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_1914eba9d2f14e8ea41da65f3eec7fce/obj_1914eba9d2f14e8ea41da65f3eec7fce.draw new file mode 100644 index 00000000..8404fa01 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_1914eba9d2f14e8ea41da65f3eec7fce/obj_1914eba9d2f14e8ea41da65f3eec7fce.draw @@ -0,0 +1 @@ +{"versionId":"obj_1914eba9d2f14e8ea41da65f3eec7fce","chartId":"obj_1914eba9d2f14e8ea41da65f3eec7fce","userIds":["15600221563"],"messages":[],"userNames":"李宏宇","remark":"","updateTime":"2022-10-17 17:29:43","definitionId":"obj_1914eba9d2f14e8ea41da65f3eec7fce"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_1914eba9d2f14e8ea41da65f3eec7fce/obj_1914eba9d2f14e8ea41da65f3eec7fce_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_1914eba9d2f14e8ea41da65f3eec7fce/obj_1914eba9d2f14e8ea41da65f3eec7fce_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_1c1a382bfc6542c78a8ef4a770979ba5/obj_1c1a382bfc6542c78a8ef4a770979ba5.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_1c1a382bfc6542c78a8ef4a770979ba5/obj_1c1a382bfc6542c78a8ef4a770979ba5.draw new file mode 100644 index 00000000..fe0b8cd4 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_1c1a382bfc6542c78a8ef4a770979ba5/obj_1c1a382bfc6542c78a8ef4a770979ba5.draw @@ -0,0 +1 @@ +{"versionId":"obj_1c1a382bfc6542c78a8ef4a770979ba5","chartId":"obj_1c1a382bfc6542c78a8ef4a770979ba5","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-10-24 20:10:39","definitionId":"obj_1c1a382bfc6542c78a8ef4a770979ba5"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_1c1a382bfc6542c78a8ef4a770979ba5/obj_1c1a382bfc6542c78a8ef4a770979ba5_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_1c1a382bfc6542c78a8ef4a770979ba5/obj_1c1a382bfc6542c78a8ef4a770979ba5_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":14,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":1} + [{"name":"Name","id":"obj_ca0ed12489000001c0bc1198bfb01a5b","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca0ed124890000017f2dd5435ea0f870","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca0ed12489000001e5f311965ee98a70","type":"string","category":"default","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"obj_ca0ed124890000016a15196b75dd52c0","type":"list","category":"default","value":""},{"name":"isSequantial","id":"obj_ca0ed12489000001193a36601f701081","type":"boolean","category":"default","value":"true"},{"name":"isForCompensation","id":"obj_ca0ed12489000001e8ef1180e140186e","type":"boolean","category":"default","value":"false"},{"name":"renderings","id":"obj_ca0ed12489000001f3a81e80c2c51c12","type":"string","category":"default","value":""},{"name":"implementation","id":"obj_ca0ed124890000011b99fd2f880f1afe","type":"string","category":"default","value":""},{"name":"resources","id":"obj_ca0ed124890000012fcf3d302782179a","type":"string","category":"default","value":""},{"name":"ioSpecification","id":"obj_ca0ed124890000019d118ca8d0e049b0","type":"string","category":"default","value":""},{"name":"dataInputAssociations","id":"obj_ca0ed12489000001e8d610b018f08c90","type":"string","category":"default","value":""},{"name":"dataOutputAssociations","id":"obj_ca0ed12489000001ad29aae013c0ee80","type":"string","category":"default","value":""},{"relevanceShapes":[],"attributesContent":"","type":"string","attributesJsonArray":[{"isRequired":false,"ref":"","readonly":false,"scope":"userTask,serviceTask,manualTask,receiveTask,sendTask,scriptTask,businessRuleTask","name":"信息系统","id":"information_system","type":"string","value":"","groupPath":"processExecution","key":"information_system"},{"isRequired":false,"ref":"","readonly":false,"scope":"%,userTask,serviceTask,manualTask,receiveTask,sendTask,scriptTask,businessRuleTask","name":"输出","id":"out","type":"textarea","value":"","groupPath":"baseAttribute","key":"out"},{"isRequired":false,"ref":"","readonly":false,"scope":"%,*","name":"描述","id":"desc","type":"textarea","value":"1116666","groupPath":"baseAttribute","key":"desc"},{"isRequired":false,"ref":"","readonly":false,"scope":"userTask,serviceTask,manualTask,receiveTask,sendTask,scriptTask,businessRuleTask,%","name":"流程绩效","id":"performance","type":"string","value":"","groupPath":"org_performance","key":"performance"},{"isRequired":false,"ref":"","readonly":false,"scope":"userTask,serviceTask,manualTask,receiveTask,sendTask,scriptTask,businessRuleTask,%","name":"执行频率","id":"frequency","type":"string","value":"","groupPath":"process","key":"frequency"},{"isRequired":false,"ref":"","readonly":false,"scope":"%,*","name":"注释","id":"note","type":"string","value":"","groupPath":"baseAttribute","key":"note"},{"isRequired":false,"ref":"","readonly":false,"scope":"%,userTask,serviceTask,manualTask,receiveTask,sendTask,scriptTask,businessRuleTask","name":"输入","id":"input","type":"textarea","value":"3333333","groupPath":"baseAttribute","key":"input"},{"isRequired":false,"ref":"","readonly":false,"scope":"userTask,serviceTask,manualTask,receiveTask,sendTask,scriptTask,businessRuleTask,%","name":"等待时间","id":"wait_time","type":"string","value":"","groupPath":"process","key":"wait_time"}],"linksArray":[],"shapeDesc":"","privateAttributeContent":[],"name":"default","id":"obj_ca0ed12489000001e530191bd271184a","category":"default","value":"","upFilesArray":[],"privateAttribute":[],"isCopy":"","shapeGroupId":""}] + + + + + + + + + + + + linker + + + + + + {"fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false} + {"lineStyle":"solid","lineColor":"50,50,50","beginArrowStyle":"none","endArrowStyle":"solidArrow","lineWidth":1} + [{"shapeDesc":"","name":"AWSProperties","id":"AWSPropertiesID","type":"string","category":"default","value":""}] + + + + + + + + + + + + + linker + + + + + + {"fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false} + {"lineStyle":"solid","lineColor":"50,50,50","beginArrowStyle":"none","endArrowStyle":"solidArrow","lineWidth":1} + [{"shapeDesc":"","name":"AWSProperties","id":"AWSPropertiesID","type":"string","category":"default","value":""}] + + + + + + + + + + + + + startEvent + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":14,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":1} + [{"name":"Name","id":"obj_ca0ed1253a000001728514a0c0301282","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca0ed1253a000001fee916601030f4b0","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca0ed1253a000001497069dd1c7e1f3c","type":"string","category":"default","value":""},{"relevanceShapes":[],"attributesContent":"","type":"string","attributesJsonArray":[],"linksArray":[],"shapeDesc":"","privateAttributeContent":[],"name":"AWSProperties","privateShapesName":[],"id":"obj_ca0ed1253a0000011f7619421ef71407","category":"default","value":"","upFilesArray":[],"privateAttribute":[],"isCopy":"","shapeGroupId":""}] + + + + + + + + + + + + endEvent + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":14,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"100,0,0","lineWidth":1} + [{"name":"Name","id":"obj_ca0ed134ad400001524010a71b781f3f","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca0ed134ad400001e9c3a9b21d001908","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca0ed134ad4000019dac96f0116815fd","type":"string","category":"default","value":""},{"relevanceShapes":[],"attributesContent":"","type":"string","attributesJsonArray":[],"linksArray":[],"shapeDesc":"","privateAttributeContent":[],"name":"AWSProperties","privateShapesName":[],"id":"obj_ca0ed134ad400001bbd91c3011604710","category":"default","value":"","upFilesArray":[],"privateAttribute":[],"isCopy":"","shapeGroupId":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_2c71a85500bd474e86691e865668d4da/obj_2c71a85500bd474e86691e865668d4da.check b/com.awspaas.user.apps.app20221008163300/repository/process/obj_2c71a85500bd474e86691e865668d4da/obj_2c71a85500bd474e86691e865668d4da.check new file mode 100644 index 00000000..f001447f --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_2c71a85500bd474e86691e865668d4da/obj_2c71a85500bd474e86691e865668d4da.check @@ -0,0 +1 @@ +{"CheckOutTime":"2022-11-17 15:06:32","CheckOutIP":"10.140.4.254","CheckOutUser":"admin","CheckOutState":"CHECKOUT"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_2c71a85500bd474e86691e865668d4da/obj_2c71a85500bd474e86691e865668d4da.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_2c71a85500bd474e86691e865668d4da/obj_2c71a85500bd474e86691e865668d4da.png new file mode 100644 index 0000000000000000000000000000000000000000..7db65e426d589925c14ebee6276a19c61f77cfae GIT binary patch literal 4043 zcmbVPXHb(-vkrnZjY^XaN(U(l0&1ivHS~^=04gFqgc=Y~=`DbC1SwJlX%Zj_ktPT# zy+$FSSAiFiq7aZ9ym#i_nfveiv-9qmGv|GF&+eY*i8V3O0W=O%-(i(lfjZ1*=2qLsdp zRZeM6ZpZiwk+>E08BX2ow||)S)2pk)M0;q|Oonv5N*)>Z8CsRZNYsyBx+c!!ok4=2 z`bo__R~6*8y*3?}jv>b#?Xy!5@4%_)kmcOpEgC2q5Xe`Fv5X3320=AQWvapP{^uTu z1pYs#P`%eB#j3|BUcrs>U2*W`45ndv)%0ymM-NfG(`{sRNxsT~-^S~|;9q`@Vaq)C z4a4t6K@x}w1pU8g;i3A6hj5aa|pl9~}t*s&bkrl_=MlMjmL-u>1 zH3F3RcRFIdRoQeXS`dm>3rER?ydO^)`So-mqy5NCBXv(qlv6BPj`8>iB1}|led54* z{u~KBgD8+db;EiVG#td1Zog|SQuc6nRy3GaJsSAL=CMB49!j7gf!P-TlKp(;r-`a4 zCI79Ne;|;`)bvnuf#Uawfgxt)vs(r%z`5jx%uM*Y8}VPRY}f?u13UsrFtHd%oKdi z$QEX@yK$>w@wZrPv~2Lon7P9&;*wlLdV1j2R;)^peD!(`&&5XlqFIr1C=@!ZG%S>X z{-E@anb^>DjOyhIQCAW93k|>U&>irQOCfoIK*GLjT#MI|vvdCt!{ZlCARfzWyrxX8 z|J@>TWXy}qz4r`Fa=RjMkBhX#n8$;&c{Sdj80Q@jxW|#4tjNKE#D*x@PP2cI$x4Zt z5DR!#`@;(5lf=l@wDGZ7r0(`95?Dl?IM}wEJAZiCDLc-( zA#(6yMSjSy@M0n4khm7?`SZr{$o@t8<-`%vC>;uGtl_5dryZHCLdqf{ zkhTFhf{bWWO7#`OuwLQQMsqjeY17Pg*>LN#h(X1IF!B$?WCg1yJ&IQHW?s$}0MV-N z8;SMT@#(uEK~W3oF1N_fOlu<_3omOY4g?F%I~pwyG9lzDf-P&(?6}mtVhO~*d~%7j z0K$jP7)+|7GxC@e`{sXc=;qXw{)OAb)r;JR3rl@SY_f`BQ1Ec@%F7Y)Z$cFs6%=!z z25%bf8bz2z$i1nkw^;Ei+mf62#0#lisN!6uU_vM#$mB7Zv1gtXQDV93A)#&Gei@#F=n|A9;*tSEJ z*+Z3$y1X_%4arZNVLK6vV~cOyalF9Z1F7v_5t5=#u?U=aX3Uf9-H_YLL|$^$vEj6b zhVreIsQ4nSrp+}~?|of%YzNT)cNH8Vip0X}dCry}QF79n((?u9S{7mvMXg1|pj-l{ zJ={Hb-z)t&XB!!B)c&R2=|_J-=PUv@DU7$Udh*Lf$h5&Lua?(b|2na96B8L}w+yJ_ zL*8b!zJjLg$gK-vgy}_rEP^#TJGPb%$OtJ8Vo<|&lD|9p|2|-1`_MxMN72VE*Cb8r zr@Q`m^^Hy0Myi|K5e3HV;cVRnyC*V~^4I}jw0_0cODY{&n*R&iNPy&T75ykB`1yjt zb_+m*ePxN(;fvUaRV>b)I#QX*G^iT)?A2dL9=~S_Zr+=NUFc&r>inxSv9&|6{(kgK zT_amM*{>Sw?zgw|rYzw~%cy>KJA}bWuuuC}blfc2KQdxx?%clL3OamSnp@X{>d{+q&@mmw|q!8l?l`gOHThNi; z!P7Kn=nF*aT{!qUqR$K7^e%2#nmvcY1dRluu!KxVCm7XZS<<78zUs0=r*?cl`?Wj) z;`8}}oHw>+oOolx{))>fS-Obghyu}jjm$LFfoQI4kA{n(lUPsAYzFH*n3@<)iR8m% z4{LP)?ZxJga@mH+|NZ=)nji}oJ>3{+(Q?dR8O#3ICxJo91j&qJcqGr4@KQ&NWeiJp z^tAmUTo#duvpF22M>F_BO&-))ly?z{#Y1O?weQt-=a8zBk#N1Vhi#YbVA~`c>$yy2 zF`NjA=J=QbQ+gB>?*H6%zkqB%xOW_?BEbQ>!1vT{BA|reu+LJ|lOpyrUfnl-eb2co zk)M~JU*+k}%9m8}8aTeLveJN~$UA+4jsT;S<&Zpx>(vJvCqH+o3>+f*40lnBJiDw= z?=NkPh{0$41vCmfDTU+AGc`4Z>j%t6avHQ;9QZoty1fwvlZ{%W7R87m2CqK)=uMKq8S)v8iR239b-Ix** z62|FqBymKBAik4)PVF?Q>QKt|>Vp^1B2mrbG%1~4V5ypqTAX)y=}kjNH>J^PN&?%2 z$w3mS_t#Qqo#2z3+^M%V5N(OIob!NEUjP2I5hF=PKb?7-fMN*|vfTUJR2=K>r!@cb z?1aIN9CTZ6>k3S#ZjhBPz#(uo;X9)~74ik(9o*RBvZZ$~p!za-Rtr!y4f-hF(S75S z%}2DYa${lXsmODv4zfU0Z5~u=NUiv5Foy6>PrvyyIm#;B^Fz%R-RpFTqW%PC1IEr< zVTpK3)f(o6Db!uE(?JTF;we5aCC0nEd5J6wF`r|vR`YF_YrblHJ~3KlZn{W)#y64~ z*HAT=4+f85YYl5CpWuM~4p|=pm-qzkSmxm_%w)-}%kTsl4de5Rx5$4+PdkyC7bu!1lZ>@#>b>SB8^6CXbIe>{E|7!* z(yA=KK5KHAPTIAZbAlTUsjvl}Qez7CCZ|G!Qcb>}#Id!YsgqNAE84z?&^ab4rY9dC z)Q9u(_G{vpMI7-T74-=0l2_IeVYe&HE3%HRvGfREZSI7koPsm|g_W6OU46nPS}v7s z9#!|K7DgVDSm(=z7*5+(Rit1nrDlDVS9k;rLI&S@X7|x8ysb?`o-#8>i?z>;a!t+hbZ=ihOE&eyJ%Ur(%X}dvL!ksCsHfjAp zaWo=XTE8>t>nA{te(?Q^{cUd#+m1@S^BGS&r@D0K#K7{qvf|2~8LgI5%f8Br%39TN zXN}G)Jv$43WgaV$#D#fkun?zPt&?=?-%Gb(27}#wQ1D<<^w3QFH2(mi5ZjBL%>p|2 zKNM@SRGFEUO%A&1UeP;~&AZc9%7ETH!?%X~XdGoMnZ=sMl?KnMbQ^jTX1fS{vR=9* z9ZE>=7^{$a=y9*eKURKUV29%VUAsQbIch%_DocI-h*naLP1&q#l}p-&a65QXr@-vZ z+0fIW(%UkdD*l@*MMdJv#z4-nHAX+&i&Ys1VS30!s*!aO%ha_hdksTW9Did+o&~gap(oAe=-);} z^Afve)?qB%l0B~GxntxxL;$cw%HqGKAs6x+u+IVJ(=;t!x6?VwK=1;wYEHlet~#&Dh`4@;mRml>-N~Jk*(y)O8#rt zdW3}{zRbXJn|K{uH$Gp=idv{ESp?2t1x{)nsPr2|Z4gi!xs3@mP?Hl+Eg-5;ctIsB zR1Gr|K^SSt`=2$FG{W*_>TQHB4nne6XXRM(0Oq&QB{$F7I*&7Py?vaj`thX;v z#|3M=O~x}UYg*wY6gKFZ@A^|WJa>;M&o^J}MJiO8MK0-ib!LZ-O}L(^RV$&710C|1 z! zT(>y@{}*q;4nin38pX*z^c?rl%^?Y{*r3pJDDLm}-B(N`;{X)o`C~T+IV39jhW+yv z$~rKx{^}~_W95QeLyRL%Kv^6p=q&g;p~sF+Bj2F{rxoV?Y8}T)_6U+*t=8~lh8&91 zg|*-XO76cC>&{T$+d(=-LDV=DIV3n-NPXYV)GviNMKQ1!vWxaBydR=8Zi#!%#15VX z{rr5H-Oay|>;=H}E^FmZD{*R1hD-53rEmfCZNfT6K%Jp3M(Ln^YIn~JrC_w;6|e-J ze{4V%nn`>L@2}y$R`2$gu%|4-6f46K{DI`hBk|ABzd9yQ&CWMZtX`CrU99v|`7-Eb$A&!J1vM;Hz)CjYb zu@y?kGL~V4(HvxK&De&O2JhpF5AiRj}s4g zFAR-B7OB`n5>U_3yTS^zXKR^dIXx`u}NN2$Jw4{a>wqq!(W+ z-sSA#79BI~d`Viz$VXoRLuy9i8yUT>2RNo5hDqg|)h;E*`2IrO<|@AHm-@pZmQt(7 zKD!7Tx6j^r2cX55cD`BQdA3YB90SihdVWG4dX|1!`1;@Rq%rq!xu^5%! zTNtgcfn~89k4;aJD0x}RO3fh~pR;;<$zrUd%asW?S3FaHd-3+J-EOC?s#_>r^U}GJ zs>2%3KJo^mjs`*(GI!sw%w3pJm>+S0}iRg76qubbd9%2GaOkj^R^%#pThH7LDXkC>&Sg^R4GuNL1Wb9eVZC z%aDedpa-GxlZR`Vhk06aICNfMTs_dE==$Zw zOmumT2HWlPPN$ngi!uargOAIvgEF8>gp-8#=RFz`^m6UmDlkqjNk`Ire`b zTGzHehN609IXN#_Nf~+&>EatUwrGuTO~U-$bV{Bvj)*;5P+H(*I8#X3ixe~=+&w}u z6YAPNQCGSJz9z8|dwIhh9n}t5l+;9UqrC3e#;2??k*l$_rfg`T`~6ytGQBrCkdZ4U znCx{yU%cqPSox+$=$DE5WRW5h-agYUe|XcqE&o-% zX?adZAkkb=s)8EL?8yrnsi`V8S@%gZtER}n(Xno5xEY(?@nWqV=x*+(}TJ$9`CfSc@Ddi*#X>pa3#B+uJWKj(}Ns(ST!s;`GtJJ1|O zuZGX(9WM{xAC4sO`D|tyn44TVFyr9$)>=CFaI{rn^ybDmGA6ryVkvGbt#c+f@f7Gu z`O9_-h`eC!XnV!!tkMiNJx_JeGy)*g)ufggTsOxtCqPG`W({7ef8iMyuos!b6oWpA zs!|N%ROhm0|19W^C>1N0x}{0bEHbQGZsAApoXX&B#Uj@an(5P;v~%FPCtEGA7t3{3 z5}U(RJC_Ge1kAv!t>2wD$xb!AXXIw1UtYeB0(P#KMUCr@Hrm7iS3k~8AL=&lE@N9` zU5oF1B}vXABvsPle@%zMDzQocl&$-1zY_b&3%%r)akiE7T?V4(gRymF>K5cvpVd7c z)W!Lpw$JwVW)a&7k4ux_Z6X?yGCUyKokf%;w@_lr*1011A22DfK_&~}3($(l=8rY9 z2f1JS1(q<(l4h_rn!pvbZT&}%fJOCmG2Tz3sn}j= zaITyZi=QHggy|KSydaXv45bx@VO!rJvHLBIjm5qlcfJ@4p(b!F^Min>G^Aw^cTSn0 zDsCRuf2XKV0W1<6+rQ0NRB6$Ck4|Dx_d`J2#s1t}i@6IqH>O5h0fdt6&2&;pyOsK1 zMJGK-LC81$(Mf%4dr}>h34+YD=wF_U#7xC+F#2Sq)1uRjw;fka36OKe+refc`68e2QUbD>UrmNYdT;jR-l|I@#2mxfcI7 + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_47f8b75f15fc4dd688a37128ebbbcea9/obj_47f8b75f15fc4dd688a37128ebbbcea9.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_47f8b75f15fc4dd688a37128ebbbcea9/obj_47f8b75f15fc4dd688a37128ebbbcea9.draw new file mode 100644 index 00000000..96faf721 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_47f8b75f15fc4dd688a37128ebbbcea9/obj_47f8b75f15fc4dd688a37128ebbbcea9.draw @@ -0,0 +1 @@ +{"versionId":"obj_47f8b75f15fc4dd688a37128ebbbcea9","chartId":"obj_47f8b75f15fc4dd688a37128ebbbcea9","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-10-09 08:59:27","definitionId":"obj_47f8b75f15fc4dd688a37128ebbbcea9"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_47f8b75f15fc4dd688a37128ebbbcea9/obj_47f8b75f15fc4dd688a37128ebbbcea9_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_47f8b75f15fc4dd688a37128ebbbcea9/obj_47f8b75f15fc4dd688a37128ebbbcea9_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_49a03c7cc69749b19371a3adc756cf67/obj_49a03c7cc69749b19371a3adc756cf67.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_49a03c7cc69749b19371a3adc756cf67/obj_49a03c7cc69749b19371a3adc756cf67.draw new file mode 100644 index 00000000..2d3b0163 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_49a03c7cc69749b19371a3adc756cf67/obj_49a03c7cc69749b19371a3adc756cf67.draw @@ -0,0 +1 @@ +{"versionId":"obj_49a03c7cc69749b19371a3adc756cf67","chartId":"obj_49a03c7cc69749b19371a3adc756cf67","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-11-04 17:56:02","definitionId":"obj_49a03c7cc69749b19371a3adc756cf67"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_49a03c7cc69749b19371a3adc756cf67/obj_49a03c7cc69749b19371a3adc756cf67_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_49a03c7cc69749b19371a3adc756cf67/obj_49a03c7cc69749b19371a3adc756cf67_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_49e5bd7948554e058668818a91bd76a6/obj_49e5bd7948554e058668818a91bd76a6.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_49e5bd7948554e058668818a91bd76a6/obj_49e5bd7948554e058668818a91bd76a6.draw new file mode 100644 index 00000000..3af43298 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_49e5bd7948554e058668818a91bd76a6/obj_49e5bd7948554e058668818a91bd76a6.draw @@ -0,0 +1 @@ +{"versionId":"obj_49e5bd7948554e058668818a91bd76a6","chartId":"obj_49e5bd7948554e058668818a91bd76a6","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-11-07 13:23:36","definitionId":"obj_49e5bd7948554e058668818a91bd76a6"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_49e5bd7948554e058668818a91bd76a6/obj_49e5bd7948554e058668818a91bd76a6_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_49e5bd7948554e058668818a91bd76a6/obj_49e5bd7948554e058668818a91bd76a6_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {"isSupportMap":true,"customRuleVal":"","ignoreOptionVal":"auto","isHistoryRoute":true,"ignoreOptions":"","multiSelectDisabledCheckBox":false,"includeSelf":true,"isUp":true,"addressSetting":{},"routeType":"com.actionsoft.bpms.commons.performer.impl.user.ProcessCreater","userOrderPolicy":"none","option":"target","multiSelect":true} + + + + + + + + + + + + + + + + + + + + + linker + + + + + + {"fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false} + {"lineStyle":"solid","lineColor":"50,50,50","beginArrowStyle":"none","endArrowStyle":"solidArrow","lineWidth":2} + [{"name":"AWSProperties","type":"string","category":"default","value":""}] + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"obj_ca01fc4b20f00001a7c052b91de561e0","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca01fc4b20f00001e76b10501e551978","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca01fc4b20f00001de648a5016803520","type":"string","category":"default","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"obj_ca01fc4b20f0000127b81918dacd1cd0","type":"list","category":"default","value":""},{"name":"isSequantial","id":"obj_ca01fc4b20f00001655e43301c001e7d","type":"boolean","category":"default","value":"true"},{"name":"isForCompensation","id":"obj_ca01fc4b20f00001394c152733001546","type":"boolean","category":"default","value":"false"},{"name":"renderings","id":"obj_ca01fc4b20f0000130db1400dbe81409","type":"string","category":"default","value":""},{"name":"implementation","id":"obj_ca01fc4b20f0000146d0437061f08e20","type":"string","category":"default","value":""},{"name":"resources","id":"obj_ca01fc4b20f000012d238460d699ec00","type":"string","category":"default","value":""},{"name":"ioSpecification","id":"obj_ca01fc4b20f000016c6116701dd0c390","type":"string","category":"default","value":""},{"name":"dataInputAssociations","id":"obj_ca01fc4b20f000019a8a12d06c987a40","type":"string","category":"default","value":""},{"name":"dataOutputAssociations","id":"obj_ca01fc4b20f000016d72a970caf01203","type":"string","category":"default","value":""}] + + + + + + + + + + + + endEvent + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"100,0,0","lineWidth":2} + [{"name":"Name","id":"obj_ca01fc4be8900001a25ff6fa74fb3e20","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca01fc4be8900001955f17cbda4c1974","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca01fc4be8900001e7f01800b530dae0","type":"string","category":"default","value":""}] + + + + + + + + + + + + startEvent + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"obj_ca01fc4a46c0000170c91150beb0c3b0","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca01fc4a46c00001c0901a2919809b70","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca01fc4a46c000018faa1f2018df9180","type":"string","category":"default","value":""}] + + + + + + + + + + + + linker + + + + + + {"fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false} + {"lineStyle":"solid","lineColor":"50,50,50","beginArrowStyle":"none","endArrowStyle":"solidArrow","lineWidth":2} + [{"name":"AWSProperties","type":"string","category":"default","value":""}] + + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_5f74b0ac44364849b36d856ecd2c2101/obj_5f74b0ac44364849b36d856ecd2c2101.check b/com.awspaas.user.apps.app20221008163300/repository/process/obj_5f74b0ac44364849b36d856ecd2c2101/obj_5f74b0ac44364849b36d856ecd2c2101.check new file mode 100644 index 00000000..ad06215d --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_5f74b0ac44364849b36d856ecd2c2101/obj_5f74b0ac44364849b36d856ecd2c2101.check @@ -0,0 +1 @@ +{"CheckOutTime":"2022-10-11 22:43:10","CheckOutIP":"10.140.4.254","CheckOutUser":"","CheckOutState":"IDLE"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_5f74b0ac44364849b36d856ecd2c2101/obj_5f74b0ac44364849b36d856ecd2c2101.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_5f74b0ac44364849b36d856ecd2c2101/obj_5f74b0ac44364849b36d856ecd2c2101.draw new file mode 100644 index 00000000..d1197b77 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_5f74b0ac44364849b36d856ecd2c2101/obj_5f74b0ac44364849b36d856ecd2c2101.draw @@ -0,0 +1 @@ +{"versionId":"obj_5f74b0ac44364849b36d856ecd2c2101","chartId":"obj_5f74b0ac44364849b36d856ecd2c2101","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-10-08 18:10:03","definitionId":"obj_5f74b0ac44364849b36d856ecd2c2101"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_5f74b0ac44364849b36d856ecd2c2101/obj_5f74b0ac44364849b36d856ecd2c2101_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_5f74b0ac44364849b36d856ecd2c2101/obj_5f74b0ac44364849b36d856ecd2c2101_small.png new file mode 100644 index 0000000000000000000000000000000000000000..e27b1f4ae2aa036714d2caff4967a52dca299210 GIT binary patch literal 2267 zcmb_edpr|rA6J={T#9l@hIMpaNxGne&>BWdi_%<@>vG$2%n%brheRZu9M+j><+9DC zEOTkCgb}m7HVDd{o{Pz_mB5|KA-1#KHu->`~Cf%Kc3I?ebUdJ zg()lUQIwODQ+9T;cU#}Ttj|{9=JnMRv<#4w13q@Phg`VUH#3lgejw6)J;xQ5!r)6= zCiSEUXQl62s(!-lE1duyd8_s=8~u?4_joH!F*ebE*r^AQLOqLA==6XTw@pR&h%-$W zD6g&Nwi3#L7f!-Cd5uhJ(gS07G0k}tAd576ao*ZP0yz&P8C%*x|@hRVA8$9HjY=i&Pt{?LMvhOha zv-`hJ^{sonM+mFWwh}w!BzAJvREIHdJeYrwk!Skc0VsXgQU1s~p^;f`T1_z>9N^;) z_?mMx3?{rsunjdsXBe%SxP}j4`Rn1V7r3}dmbQkrC}0CqA;`rm^4yjvV@2Cm&!{Vr zt*Z)35cLHNu>SG)#|}?@UMgXiU=VPR{4dijTa)#U`T+|_5m27@)gT2&>(5oQoaia6 zbhc35F6i|RdMLzqvcBshrd0Cy3M)1VhD<9@Im9BCxycZ@9J1wBM{Qud4o2Cbug^(AhY|~fPn)T_4tr(`(AQy zcIOX|iViRWd8RSJWo@>^=fWk>3<&dHgg9g&n`LVEZC1#PPPV=1>x<*s_^TFF!q1?~ z%5_yBEGeJ*j2igVO+asr&LNT{Zb8({YXSDnbBg@{W}PvdLnaoM5vDkf9}Q-tkB)Ux$+p!=D?|oN-Kz_P%C*r)!K|phAa3ZwAz?HXaS3Ox@c+g%eEA-xlRD?y7fZe(+ zM`lmtHs=WchCW0`@(76@l+UhQ?hC>jRY~&V37U!D>t8^0O5AEwI;D5q{*{`-@aO{^H`09H%F;XNw>y@({=JjzuH97CV( zjx`M3u64M0D>Hf#?LGwu>w=MBt{7~(OsH@=TZ7^SX0T6_TT$1eoLY8ePcr%8d89%i z&O4|>S^EA>3gz$S;NjZ|)WAC{E)38Qe$}Mu&i9tY$O)fzy&t-iP_mdmZsRZ zTOo>P-Xy_IgQvAcP4@_!Zo;-4hiU-hu0A<(G(>b?!^BH4cg@P$x`zWVFP~hCZ3!ml zBUh{^Ysj#fUG#n3pYSujj>j+od{ZXRcnxNA3|N~NyX5*ilXP3$skQ+YpqNjA9dHPOQ& zWYcdl05bhmyT)Cty~odD#+hI?IiDG$)W=9$J0rMY7S+{-p9t+PMxjvdNF;+!FYT3F zf_0L}#2(q{lOF)!LCe=#FVl!t(P8Vu+1VKiO(~&Ycv=U2Vp+iVXOq;otB;YE3VyRo z8>>ieplRb;(+plfh^rRCA6@$sZxC`GsvazMu$w@*298`liC1OvWznQHBgQCxf?i-2 z=OXYhtA>L5CBOKn^#8nK+zSp2;JqU6CBw!gs{PCoJaJcBRyKq0nkD8k^~6DsgeTd< zqRvut@*admpW(zv1lHu}=T``-SM9l(tFd>4GIsnGMw0lFWo!i}3u-LhJ*>IxMH4#J zXGP9pDPx!g7k}4fY)0npS4JHf>7hH~yx9Wly)`Sv=Ohb_B^Btr>LDXo&^^8>`C+zO zyO@7Vh+C`7TfbO#d4X#Q!=5k|*sraGoN+F=xo z&IWvA%eF}Ts6clcD35Jkgg(_sxy3m9vM1P>Qe>`)^a!G1ZE>gXOquW7U+mX(+Xd_n z?g97PUp{9YQPQoeGi|MBWyv2JhlbbV>lwQIMZd|EIsV+JV$0z2KbYx&^r?6^=dOou zz0p!lV}RyGuOOO8(>QnkPqK`k)78Dh!Xp+{B*EX2WyMwe{(%LD+ + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_634b28a82a7749e99578c4a447eb0313/obj_634b28a82a7749e99578c4a447eb0313.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_634b28a82a7749e99578c4a447eb0313/obj_634b28a82a7749e99578c4a447eb0313.draw new file mode 100644 index 00000000..545aa4d6 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_634b28a82a7749e99578c4a447eb0313/obj_634b28a82a7749e99578c4a447eb0313.draw @@ -0,0 +1 @@ +{"versionId":"obj_634b28a82a7749e99578c4a447eb0313","chartId":"obj_634b28a82a7749e99578c4a447eb0313","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-10-10 23:46:03","definitionId":"obj_634b28a82a7749e99578c4a447eb0313"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_634b28a82a7749e99578c4a447eb0313/obj_634b28a82a7749e99578c4a447eb0313_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_634b28a82a7749e99578c4a447eb0313/obj_634b28a82a7749e99578c4a447eb0313_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"uids":"10036614","addressSetting":{},"customRuleVal":"","ignoreOptionVal":"auto","routeType":"com.actionsoft.bpms.commons.performer.impl.user.FixUsers","isHistoryRoute":true,"userOrderPolicy":"deptPriorityOrder","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + + + + + + {"isSupportMap":true,"customRuleVal":"","ignoreOptionVal":"auto","isHistoryRoute":true,"ignoreOptions":"","multiSelectDisabledCheckBox":false,"includeSelf":true,"isUp":true,"addressSetting":{},"routeType":"com.actionsoft.bpms.commons.performer.impl.user.ProcessCreater","userOrderPolicy":"none","option":"target","multiSelect":true} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"obj_ca0bec8922c00001797d1140b05d1048","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca0bec8922c00001bd1c1c4c87723d00","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca0bec8922c00001265112252800b350","type":"string","category":"default","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"obj_ca0bec8922c00001a1e0e3706a148740","type":"list","category":"default","value":""},{"name":"isSequantial","id":"obj_ca0bec8922c00001d83c183b1000b5a0","type":"boolean","category":"default","value":"false"},{"name":"isForCompensation","id":"obj_ca0bec8922c000016b8517e07c7bb670","type":"boolean","category":"default","value":"false"},{"name":"renderings","id":"obj_ca0bec8922c00001cd1b3c5e139010ed","type":"string","category":"default","value":""},{"name":"implementation","id":"obj_ca0bec8922c00001b5746d681c8015bb","type":"string","category":"default","value":""},{"name":"resources","id":"obj_ca0bec8922c000015fb7cf2d149d1aa3","type":"string","category":"default","value":""},{"name":"ioSpecification","id":"obj_ca0bec8922c0000167e610201fb0cf80","type":"string","category":"default","value":""},{"name":"dataInputAssociations","id":"obj_ca0bec8922c0000157ad108d68bf1e91","type":"string","category":"default","value":""},{"name":"dataOutputAssociations","id":"obj_ca0bec8922c00001863e1ab61c9c1c89","type":"string","category":"default","value":""}] + + + + + + + + + + + + linker + + + + + + {"fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false} + {"lineStyle":"solid","lineColor":"50,50,50","beginArrowStyle":"none","endArrowStyle":"solidArrow","lineWidth":2} + [{"name":"AWSProperties","type":"string","category":"default","value":""}] + + + + + + + + + + + + + startEvent + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"obj_ca0bec8616e0000120e84f80d0c03e00","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca0bec8616e00001921288df4d6951e0","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca0bec8616e000012afddec0b6f02f10","type":"string","category":"default","value":""}] + + + + + + + + + + + + linker + + + + + + {"fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false} + {"lineStyle":"solid","lineColor":"50,50,50","beginArrowStyle":"none","endArrowStyle":"solidArrow","lineWidth":2} + [{"name":"AWSProperties","type":"string","category":"default","value":""}] + + + + + + + + + + + + + linker + + + + + + {"fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false} + {"lineStyle":"solid","lineColor":"50,50,50","beginArrowStyle":"none","endArrowStyle":"solidArrow","lineWidth":2} + [{"name":"AWSProperties","type":"string","category":"default","value":""}] + + + + + + + + + + + + + endEvent + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"100,0,0","lineWidth":2} + [{"name":"Name","id":"obj_ca0bec8b0ae000011edc19d41b9038b0","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca0bec8b0ae000015b25112511f03250","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca0bec8b0af0000153198870920966b0","type":"string","category":"default","value":""}] + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"obj_ca0bec868ff00001cd93282a19ef17da","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca0bec868ff000014c22100070b21a1b","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca0bec868ff00001c8c620d736542120","type":"string","category":"default","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"obj_ca0bec868ff000015590140015f51cc2","type":"list","category":"default","value":""},{"name":"isSequantial","id":"obj_ca0bec868ff00001c67e130f1f9017c2","type":"boolean","category":"default","value":"true"},{"name":"isForCompensation","id":"obj_ca0bec868ff0000189b3bbb536a015e9","type":"boolean","category":"default","value":"false"},{"name":"renderings","id":"obj_ca0bec868ff00001cc5b1a501a5015ac","type":"string","category":"default","value":""},{"name":"implementation","id":"obj_ca0bec868ff00001a3dbf5c012105330","type":"string","category":"default","value":""},{"name":"resources","id":"obj_ca0bec868ff00001112b1e404e631ed5","type":"string","category":"default","value":""},{"name":"ioSpecification","id":"obj_ca0bec868ff00001135b183015801af5","type":"string","category":"default","value":""},{"name":"dataInputAssociations","id":"obj_ca0bec868ff000011912fbfa1ce9cd60","type":"string","category":"default","value":""},{"name":"dataOutputAssociations","id":"obj_ca0bec868ff00001b09bf1f31dc0168e","type":"string","category":"default","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_66a1f3aa16244153a24fea528558a27d/obj_66a1f3aa16244153a24fea528558a27d.check b/com.awspaas.user.apps.app20221008163300/repository/process/obj_66a1f3aa16244153a24fea528558a27d/obj_66a1f3aa16244153a24fea528558a27d.check new file mode 100644 index 00000000..8f364c48 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_66a1f3aa16244153a24fea528558a27d/obj_66a1f3aa16244153a24fea528558a27d.check @@ -0,0 +1 @@ +{"CheckOutTime":"2022-11-21 10:09:45","CheckOutIP":"10.140.4.254","CheckOutUser":"","CheckOutState":"IDLE"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_66a1f3aa16244153a24fea528558a27d/obj_66a1f3aa16244153a24fea528558a27d.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_66a1f3aa16244153a24fea528558a27d/obj_66a1f3aa16244153a24fea528558a27d.draw new file mode 100644 index 00000000..2609244d --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_66a1f3aa16244153a24fea528558a27d/obj_66a1f3aa16244153a24fea528558a27d.draw @@ -0,0 +1 @@ +{"versionId":"obj_66a1f3aa16244153a24fea528558a27d","chartId":"obj_66a1f3aa16244153a24fea528558a27d","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-11-08 17:01:42","definitionId":"obj_66a1f3aa16244153a24fea528558a27d"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_66a1f3aa16244153a24fea528558a27d/obj_66a1f3aa16244153a24fea528558a27d_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_66a1f3aa16244153a24fea528558a27d/obj_66a1f3aa16244153a24fea528558a27d_small.png new file mode 100644 index 0000000000000000000000000000000000000000..3fcfac4010ea45fc7ca0de3ab529448caf623790 GIT binary patch literal 2210 zcmb_ec~lbE9(K~q#u3pzXg0P3Xtgj!|N1M`y_1P1=vQbV>DF^|Fxn1Q>^WyNXBjBIKkbyHVfsS`m zw%^K+3?>!iL?xQqp1FDbWxzjLfuWouKl^LUXq5|2kNOMozTYbbgI+*rj)V8pe}IQc z`h8yP3kYn+oq;H6dN}yeVpTaNrr|=8@Iqi4+bK39tA9Oib;@?ESPJ;bW{VP@f zRh`)pd~XEX4CUlq7QSBzj*AqL8}uKVfrI3uQL9kG{XJ5JzoXXquVHIpDN6l+|R_^h4t< zYHXDcva0qKbZ)8OjalP@WWh5gx3GCfp;I0OI_oc;xi!PleZ++f^4@x@=P$tBQ@9~- z1C_X@tY7^-Ck}`A-PdVRieWidg% zeQN~983VI^t}Qcb)dK63*(`T=YKHy0(A^ZIRs1pb0-EKF!LL4S4p=j&uhb91vTfG} zWE-^&+40JD)~wcq2E{_QZa=NQ--B7JE$P>Xn_q~=%Br6c#2?XgQk<3)K}?&i9l_(O(PRWCQFuG*e>bPETs0+1Nhw_qJ_qH`dTJa=&UV?-9l7r zd8w*sAcqB8v7FazaoNjvxJf`@=h+@%zlc=;eCIUdo5>^{Rjh4L@Xnn9kWE7dQ}d%L z9qXb8VV2$=9{YOqX8VTc9<~W4CU#;v?8ixCmy1qJvy7nn$1l+@;=8JK14WtJ#F^1V z)J)1r5HTaVL2>R>r}Il1XwEf!3a}gzBD&9ZlTeoe9|wh-veSZa{N-xXakHHwM-d_q zr5>)o;1mDcF7%lX8jY^3tn~Hu6_{rvLv-Km5DXYM>RbVsM=2B)7b9I2shM$m9;r_`5PC%1 zffnjF4VO6HF+!N1BM=C-84g1Q!X;T&KFY6VPov;jlQyioz>sk&=hefKchGdYg#fQa zt*c{uB=t_*%`OO17~Fx2x*MY-^56AOmiu_t8syNXy`v8*oeTZ5s3C*L8BYrcsJV>L zp~2>~I9p4jlU;@>)Vf8?T}FV=YCi_ECI%$8(L4n7_t|i|6`8~8YH?a}yU=m%JynI{ z83vbpe7x4G-CfS$E(YTB-;9=7XC`x4q56BL-V07$3uo(GTEUIy=IZTPOE-Q~)nf7r zX}x}@eA@K34ro$Ow$7y(103D!et?leoZlF#ACG5Tvyae@?yyY z3W86#T9(9caqiABUt=Ew5&LU_=CH$NSRB*UMI()!idPR(3sSGx;u$^hP}$XGNOCn> zfPp%$x1?0>RBfRa3db0#o>3fA98-=#R~^tK-MysswszG^u;%AT^!ryQ8a{1?j~VurrHUm2i0ILinA<<;hGVCs z?);_5rOAV!{_JykXe1*b9U!hqQhB{S;vy|eSQB;J@I-e<6_Xk&O>gMZlR!Z-WQI?- zo~OxCxKu{R_4-C3^Go&zAmvY1u>#7#g!%^5@u%a-G8D969T+?D3-f0A!V5lSqOHus zT7H!uHS7!ct6uo$X7-iE{%(EJPVg!# Gf8uWyw-SQ@ literal 0 HcmV?d00001 diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_6c660cfefada4f72916501ecc7e4e05b/obj_6c660cfefada4f72916501ecc7e4e05b.bpmn b/com.awspaas.user.apps.app20221008163300/repository/process/obj_6c660cfefada4f72916501ecc7e4e05b/obj_6c660cfefada4f72916501ecc7e4e05b.bpmn new file mode 100644 index 00000000..7e242014 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_6c660cfefada4f72916501ecc7e4e05b/obj_6c660cfefada4f72916501ecc7e4e05b.bpmn @@ -0,0 +1,50 @@ + + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_6c660cfefada4f72916501ecc7e4e05b/obj_6c660cfefada4f72916501ecc7e4e05b.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_6c660cfefada4f72916501ecc7e4e05b/obj_6c660cfefada4f72916501ecc7e4e05b.draw new file mode 100644 index 00000000..4cb06d54 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_6c660cfefada4f72916501ecc7e4e05b/obj_6c660cfefada4f72916501ecc7e4e05b.draw @@ -0,0 +1 @@ +{"versionId":"obj_6c660cfefada4f72916501ecc7e4e05b","chartId":"obj_6c660cfefada4f72916501ecc7e4e05b","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-11-04 18:23:28","definitionId":"obj_6c660cfefada4f72916501ecc7e4e05b"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_6c660cfefada4f72916501ecc7e4e05b/obj_6c660cfefada4f72916501ecc7e4e05b_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_6c660cfefada4f72916501ecc7e4e05b/obj_6c660cfefada4f72916501ecc7e4e05b_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_838a4ed7a67f4b71909c9b7dbdacdee2/obj_838a4ed7a67f4b71909c9b7dbdacdee2.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_838a4ed7a67f4b71909c9b7dbdacdee2/obj_838a4ed7a67f4b71909c9b7dbdacdee2.draw new file mode 100644 index 00000000..fea1679e --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_838a4ed7a67f4b71909c9b7dbdacdee2/obj_838a4ed7a67f4b71909c9b7dbdacdee2.draw @@ -0,0 +1 @@ +{"versionId":"obj_838a4ed7a67f4b71909c9b7dbdacdee2","chartId":"obj_838a4ed7a67f4b71909c9b7dbdacdee2","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-10-09 13:02:48","definitionId":"obj_838a4ed7a67f4b71909c9b7dbdacdee2"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_838a4ed7a67f4b71909c9b7dbdacdee2/obj_838a4ed7a67f4b71909c9b7dbdacdee2_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_838a4ed7a67f4b71909c9b7dbdacdee2/obj_838a4ed7a67f4b71909c9b7dbdacdee2_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_853497604e8a47908c6cc2dcabe4bc59/obj_853497604e8a47908c6cc2dcabe4bc59.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_853497604e8a47908c6cc2dcabe4bc59/obj_853497604e8a47908c6cc2dcabe4bc59.draw new file mode 100644 index 00000000..b9881267 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_853497604e8a47908c6cc2dcabe4bc59/obj_853497604e8a47908c6cc2dcabe4bc59.draw @@ -0,0 +1 @@ +{"versionId":"obj_853497604e8a47908c6cc2dcabe4bc59","chartId":"obj_853497604e8a47908c6cc2dcabe4bc59","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-11-10 21:39:59","definitionId":"obj_853497604e8a47908c6cc2dcabe4bc59"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_853497604e8a47908c6cc2dcabe4bc59/obj_853497604e8a47908c6cc2dcabe4bc59_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_853497604e8a47908c6cc2dcabe4bc59/obj_853497604e8a47908c6cc2dcabe4bc59_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_8a839b95573548a198074712ac38637a/obj_8a839b95573548a198074712ac38637a.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_8a839b95573548a198074712ac38637a/obj_8a839b95573548a198074712ac38637a.draw new file mode 100644 index 00000000..0dada755 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_8a839b95573548a198074712ac38637a/obj_8a839b95573548a198074712ac38637a.draw @@ -0,0 +1 @@ +{"versionId":"obj_8a839b95573548a198074712ac38637a","chartId":"obj_8a839b95573548a198074712ac38637a","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-11-10 21:05:19","definitionId":"obj_8a839b95573548a198074712ac38637a"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_8a839b95573548a198074712ac38637a/obj_8a839b95573548a198074712ac38637a_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_8a839b95573548a198074712ac38637a/obj_8a839b95573548a198074712ac38637a_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_8cb8d649f20847edbacd822fdf06a1ce/obj_8cb8d649f20847edbacd822fdf06a1ce.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_8cb8d649f20847edbacd822fdf06a1ce/obj_8cb8d649f20847edbacd822fdf06a1ce.draw new file mode 100644 index 00000000..03207302 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_8cb8d649f20847edbacd822fdf06a1ce/obj_8cb8d649f20847edbacd822fdf06a1ce.draw @@ -0,0 +1 @@ +{"versionId":"obj_8cb8d649f20847edbacd822fdf06a1ce","chartId":"obj_8cb8d649f20847edbacd822fdf06a1ce","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-10-17 15:39:16","definitionId":"obj_8cb8d649f20847edbacd822fdf06a1ce"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_8cb8d649f20847edbacd822fdf06a1ce/obj_8cb8d649f20847edbacd822fdf06a1ce_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_8cb8d649f20847edbacd822fdf06a1ce/obj_8cb8d649f20847edbacd822fdf06a1ce_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_950b5a83746f4230aeb2a25d5c0b87df/obj_950b5a83746f4230aeb2a25d5c0b87df.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_950b5a83746f4230aeb2a25d5c0b87df/obj_950b5a83746f4230aeb2a25d5c0b87df.draw new file mode 100644 index 00000000..fa726da0 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_950b5a83746f4230aeb2a25d5c0b87df/obj_950b5a83746f4230aeb2a25d5c0b87df.draw @@ -0,0 +1 @@ +{"versionId":"obj_950b5a83746f4230aeb2a25d5c0b87df","chartId":"obj_950b5a83746f4230aeb2a25d5c0b87df","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-10-25 16:42:46","definitionId":"obj_950b5a83746f4230aeb2a25d5c0b87df"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_950b5a83746f4230aeb2a25d5c0b87df/obj_950b5a83746f4230aeb2a25d5c0b87df_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_950b5a83746f4230aeb2a25d5c0b87df/obj_950b5a83746f4230aeb2a25d5c0b87df_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + + + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_a0940a4fbc414a3a8eba0f1e00e37955/obj_a0940a4fbc414a3a8eba0f1e00e37955.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_a0940a4fbc414a3a8eba0f1e00e37955/obj_a0940a4fbc414a3a8eba0f1e00e37955.draw new file mode 100644 index 00000000..c26c1a18 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_a0940a4fbc414a3a8eba0f1e00e37955/obj_a0940a4fbc414a3a8eba0f1e00e37955.draw @@ -0,0 +1 @@ +{"versionId":"obj_a0940a4fbc414a3a8eba0f1e00e37955","chartId":"obj_a0940a4fbc414a3a8eba0f1e00e37955","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-10-12 15:40:27","definitionId":"obj_a0940a4fbc414a3a8eba0f1e00e37955"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_a0940a4fbc414a3a8eba0f1e00e37955/obj_a0940a4fbc414a3a8eba0f1e00e37955_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_a0940a4fbc414a3a8eba0f1e00e37955/obj_a0940a4fbc414a3a8eba0f1e00e37955_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_a3a3286ddac94e3bb5d0c13b8dd7058d/obj_a3a3286ddac94e3bb5d0c13b8dd7058d.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_a3a3286ddac94e3bb5d0c13b8dd7058d/obj_a3a3286ddac94e3bb5d0c13b8dd7058d.draw new file mode 100644 index 00000000..a696e967 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_a3a3286ddac94e3bb5d0c13b8dd7058d/obj_a3a3286ddac94e3bb5d0c13b8dd7058d.draw @@ -0,0 +1 @@ +{"versionId":"obj_a3a3286ddac94e3bb5d0c13b8dd7058d","chartId":"obj_a3a3286ddac94e3bb5d0c13b8dd7058d","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-10-18 15:58:23","definitionId":"obj_a3a3286ddac94e3bb5d0c13b8dd7058d"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_a3a3286ddac94e3bb5d0c13b8dd7058d/obj_a3a3286ddac94e3bb5d0c13b8dd7058d_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_a3a3286ddac94e3bb5d0c13b8dd7058d/obj_a3a3286ddac94e3bb5d0c13b8dd7058d_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":14,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":1} + [{"name":"Name","id":"obj_ca0ed12489000001c0bc1198bfb01a5b","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca0ed124890000017f2dd5435ea0f870","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca0ed12489000001e5f311965ee98a70","type":"string","category":"default","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"obj_ca0ed124890000016a15196b75dd52c0","type":"list","category":"default","value":""},{"name":"isSequantial","id":"obj_ca0ed12489000001193a36601f701081","type":"boolean","category":"default","value":"true"},{"name":"isForCompensation","id":"obj_ca0ed12489000001e8ef1180e140186e","type":"boolean","category":"default","value":"false"},{"name":"renderings","id":"obj_ca0ed12489000001f3a81e80c2c51c12","type":"string","category":"default","value":""},{"name":"implementation","id":"obj_ca0ed124890000011b99fd2f880f1afe","type":"string","category":"default","value":""},{"name":"resources","id":"obj_ca0ed124890000012fcf3d302782179a","type":"string","category":"default","value":""},{"name":"ioSpecification","id":"obj_ca0ed124890000019d118ca8d0e049b0","type":"string","category":"default","value":""},{"name":"dataInputAssociations","id":"obj_ca0ed12489000001e8d610b018f08c90","type":"string","category":"default","value":""},{"name":"dataOutputAssociations","id":"obj_ca0ed12489000001ad29aae013c0ee80","type":"string","category":"default","value":""},{"relevanceShapes":[],"attributesContent":"","type":"string","attributesJsonArray":[{"isRequired":false,"ref":"","readonly":false,"scope":"userTask,serviceTask,manualTask,receiveTask,sendTask,scriptTask,businessRuleTask","name":"信息系统","id":"information_system","type":"string","value":"","groupPath":"processExecution","key":"information_system"},{"isRequired":false,"ref":"","readonly":false,"scope":"%,userTask,serviceTask,manualTask,receiveTask,sendTask,scriptTask,businessRuleTask","name":"输出","id":"out","type":"textarea","value":"","groupPath":"baseAttribute","key":"out"},{"isRequired":false,"ref":"","readonly":false,"scope":"%,*","name":"描述","id":"desc","type":"textarea","value":"1116666","groupPath":"baseAttribute","key":"desc"},{"isRequired":false,"ref":"","readonly":false,"scope":"userTask,serviceTask,manualTask,receiveTask,sendTask,scriptTask,businessRuleTask,%","name":"流程绩效","id":"performance","type":"string","value":"","groupPath":"org_performance","key":"performance"},{"isRequired":false,"ref":"","readonly":false,"scope":"userTask,serviceTask,manualTask,receiveTask,sendTask,scriptTask,businessRuleTask,%","name":"执行频率","id":"frequency","type":"string","value":"","groupPath":"process","key":"frequency"},{"isRequired":false,"ref":"","readonly":false,"scope":"%,*","name":"注释","id":"note","type":"string","value":"","groupPath":"baseAttribute","key":"note"},{"isRequired":false,"ref":"","readonly":false,"scope":"%,userTask,serviceTask,manualTask,receiveTask,sendTask,scriptTask,businessRuleTask","name":"输入","id":"input","type":"textarea","value":"3333333","groupPath":"baseAttribute","key":"input"},{"isRequired":false,"ref":"","readonly":false,"scope":"userTask,serviceTask,manualTask,receiveTask,sendTask,scriptTask,businessRuleTask,%","name":"等待时间","id":"wait_time","type":"string","value":"","groupPath":"process","key":"wait_time"}],"linksArray":[],"shapeDesc":"","privateAttributeContent":[],"name":"default","id":"obj_ca0ed12489000001e530191bd271184a","category":"default","value":"","upFilesArray":[],"privateAttribute":[],"isCopy":"","shapeGroupId":""}] + + + + + + + + + + + + linker + + + + + + {"fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false} + {"lineStyle":"solid","lineColor":"50,50,50","beginArrowStyle":"none","endArrowStyle":"solidArrow","lineWidth":1} + [{"shapeDesc":"","name":"AWSProperties","id":"AWSPropertiesID","type":"string","category":"default","value":""}] + + + + + + + + + + + + + linker + + + + + + {"fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false} + {"lineStyle":"solid","lineColor":"50,50,50","beginArrowStyle":"none","endArrowStyle":"solidArrow","lineWidth":1} + [{"shapeDesc":"","name":"AWSProperties","id":"AWSPropertiesID","type":"string","category":"default","value":""}] + + + + + + + + + + + + + startEvent + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":14,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":1} + [{"name":"Name","id":"obj_ca0ed1253a000001728514a0c0301282","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca0ed1253a000001fee916601030f4b0","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca0ed1253a000001497069dd1c7e1f3c","type":"string","category":"default","value":""},{"relevanceShapes":[],"attributesContent":"","type":"string","attributesJsonArray":[],"linksArray":[],"shapeDesc":"","privateAttributeContent":[],"name":"AWSProperties","privateShapesName":[],"id":"obj_ca0ed1253a0000011f7619421ef71407","category":"default","value":"","upFilesArray":[],"privateAttribute":[],"isCopy":"","shapeGroupId":""}] + + + + + + + + + + + + endEvent + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":14,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"100,0,0","lineWidth":1} + [{"name":"Name","id":"obj_ca0ed134ad400001524010a71b781f3f","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca0ed134ad400001e9c3a9b21d001908","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca0ed134ad4000019dac96f0116815fd","type":"string","category":"default","value":""},{"relevanceShapes":[],"attributesContent":"","type":"string","attributesJsonArray":[],"linksArray":[],"shapeDesc":"","privateAttributeContent":[],"name":"AWSProperties","privateShapesName":[],"id":"obj_ca0ed134ad400001bbd91c3011604710","category":"default","value":"","upFilesArray":[],"privateAttribute":[],"isCopy":"","shapeGroupId":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_ab675ac36cac46a38774cea27a0dd162/obj_ab675ac36cac46a38774cea27a0dd162.check b/com.awspaas.user.apps.app20221008163300/repository/process/obj_ab675ac36cac46a38774cea27a0dd162/obj_ab675ac36cac46a38774cea27a0dd162.check new file mode 100644 index 00000000..dba19f8f --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_ab675ac36cac46a38774cea27a0dd162/obj_ab675ac36cac46a38774cea27a0dd162.check @@ -0,0 +1 @@ +{"CheckOutTime":"2022-11-18 10:40:24","CheckOutIP":"10.140.4.254","CheckOutUser":"admin","CheckOutState":"CHECKOUT"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_ab675ac36cac46a38774cea27a0dd162/obj_ab675ac36cac46a38774cea27a0dd162.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_ab675ac36cac46a38774cea27a0dd162/obj_ab675ac36cac46a38774cea27a0dd162.draw new file mode 100644 index 00000000..e4920cf8 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_ab675ac36cac46a38774cea27a0dd162/obj_ab675ac36cac46a38774cea27a0dd162.draw @@ -0,0 +1 @@ +{"versionId":"obj_ab675ac36cac46a38774cea27a0dd162","chartId":"obj_ab675ac36cac46a38774cea27a0dd162","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-11-17 15:04:47","definitionId":"obj_ab675ac36cac46a38774cea27a0dd162"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_ab675ac36cac46a38774cea27a0dd162/obj_ab675ac36cac46a38774cea27a0dd162.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_ab675ac36cac46a38774cea27a0dd162/obj_ab675ac36cac46a38774cea27a0dd162.png new file mode 100644 index 0000000000000000000000000000000000000000..7db65e426d589925c14ebee6276a19c61f77cfae GIT binary patch literal 4043 zcmbVPXHb(-vkrnZjY^XaN(U(l0&1ivHS~^=04gFqgc=Y~=`DbC1SwJlX%Zj_ktPT# zy+$FSSAiFiq7aZ9ym#i_nfveiv-9qmGv|GF&+eY*i8V3O0W=O%-(i(lfjZ1*=2qLsdp zRZeM6ZpZiwk+>E08BX2ow||)S)2pk)M0;q|Oonv5N*)>Z8CsRZNYsyBx+c!!ok4=2 z`bo__R~6*8y*3?}jv>b#?Xy!5@4%_)kmcOpEgC2q5Xe`Fv5X3320=AQWvapP{^uTu z1pYs#P`%eB#j3|BUcrs>U2*W`45ndv)%0ymM-NfG(`{sRNxsT~-^S~|;9q`@Vaq)C z4a4t6K@x}w1pU8g;i3A6hj5aa|pl9~}t*s&bkrl_=MlMjmL-u>1 zH3F3RcRFIdRoQeXS`dm>3rER?ydO^)`So-mqy5NCBXv(qlv6BPj`8>iB1}|led54* z{u~KBgD8+db;EiVG#td1Zog|SQuc6nRy3GaJsSAL=CMB49!j7gf!P-TlKp(;r-`a4 zCI79Ne;|;`)bvnuf#Uawfgxt)vs(r%z`5jx%uM*Y8}VPRY}f?u13UsrFtHd%oKdi z$QEX@yK$>w@wZrPv~2Lon7P9&;*wlLdV1j2R;)^peD!(`&&5XlqFIr1C=@!ZG%S>X z{-E@anb^>DjOyhIQCAW93k|>U&>irQOCfoIK*GLjT#MI|vvdCt!{ZlCARfzWyrxX8 z|J@>TWXy}qz4r`Fa=RjMkBhX#n8$;&c{Sdj80Q@jxW|#4tjNKE#D*x@PP2cI$x4Zt z5DR!#`@;(5lf=l@wDGZ7r0(`95?Dl?IM}wEJAZiCDLc-( zA#(6yMSjSy@M0n4khm7?`SZr{$o@t8<-`%vC>;uGtl_5dryZHCLdqf{ zkhTFhf{bWWO7#`OuwLQQMsqjeY17Pg*>LN#h(X1IF!B$?WCg1yJ&IQHW?s$}0MV-N z8;SMT@#(uEK~W3oF1N_fOlu<_3omOY4g?F%I~pwyG9lzDf-P&(?6}mtVhO~*d~%7j z0K$jP7)+|7GxC@e`{sXc=;qXw{)OAb)r;JR3rl@SY_f`BQ1Ec@%F7Y)Z$cFs6%=!z z25%bf8bz2z$i1nkw^;Ei+mf62#0#lisN!6uU_vM#$mB7Zv1gtXQDV93A)#&Gei@#F=n|A9;*tSEJ z*+Z3$y1X_%4arZNVLK6vV~cOyalF9Z1F7v_5t5=#u?U=aX3Uf9-H_YLL|$^$vEj6b zhVreIsQ4nSrp+}~?|of%YzNT)cNH8Vip0X}dCry}QF79n((?u9S{7mvMXg1|pj-l{ zJ={Hb-z)t&XB!!B)c&R2=|_J-=PUv@DU7$Udh*Lf$h5&Lua?(b|2na96B8L}w+yJ_ zL*8b!zJjLg$gK-vgy}_rEP^#TJGPb%$OtJ8Vo<|&lD|9p|2|-1`_MxMN72VE*Cb8r zr@Q`m^^Hy0Myi|K5e3HV;cVRnyC*V~^4I}jw0_0cODY{&n*R&iNPy&T75ykB`1yjt zb_+m*ePxN(;fvUaRV>b)I#QX*G^iT)?A2dL9=~S_Zr+=NUFc&r>inxSv9&|6{(kgK zT_amM*{>Sw?zgw|rYzw~%cy>KJA}bWuuuC}blfc2KQdxx?%clL3OamSnp@X{>d{+q&@mmw|q!8l?l`gOHThNi; z!P7Kn=nF*aT{!qUqR$K7^e%2#nmvcY1dRluu!KxVCm7XZS<<78zUs0=r*?cl`?Wj) z;`8}}oHw>+oOolx{))>fS-Obghyu}jjm$LFfoQI4kA{n(lUPsAYzFH*n3@<)iR8m% z4{LP)?ZxJga@mH+|NZ=)nji}oJ>3{+(Q?dR8O#3ICxJo91j&qJcqGr4@KQ&NWeiJp z^tAmUTo#duvpF22M>F_BO&-))ly?z{#Y1O?weQt-=a8zBk#N1Vhi#YbVA~`c>$yy2 zF`NjA=J=QbQ+gB>?*H6%zkqB%xOW_?BEbQ>!1vT{BA|reu+LJ|lOpyrUfnl-eb2co zk)M~JU*+k}%9m8}8aTeLveJN~$UA+4jsT;S<&Zpx>(vJvCqH+o3>+f*40lnBJiDw= z?=NkPh{0$41vCmfDTU+AGc`4Z>j%t6avHQ;9QZoty1fwvlZ{%W7R87m2CqK)=uMKq8S)v8iR239b-Ix** z62|FqBymKBAik4)PVF?Q>QKt|>Vp^1B2mrbG%1~4V5ypqTAX)y=}kjNH>J^PN&?%2 z$w3mS_t#Qqo#2z3+^M%V5N(OIob!NEUjP2I5hF=PKb?7-fMN*|vfTUJR2=K>r!@cb z?1aIN9CTZ6>k3S#ZjhBPz#(uo;X9)~74ik(9o*RBvZZ$~p!za-Rtr!y4f-hF(S75S z%}2DYa${lXsmODv4zfU0Z5~u=NUiv5Foy6>PrvyyIm#;B^Fz%R-RpFTqW%PC1IEr< zVTpK3)f(o6Db!uE(?JTF;we5aCC0nEd5J6wF`r|vR`YF_YrblHJ~3KlZn{W)#y64~ z*HAT=4+f85YYl5CpWuM~4p|=pm-qzkSmxm_%w)-}%kTsl4de5Rx5$4+PdkyC7bu!1lZ>@#>b>SB8^6CXbIe>{E|7!* z(yA=KK5KHAPTIAZbAlTUsjvl}Qez7CCZ|G!Qcb>}#Id!YsgqNAE84z?&^ab4rY9dC z)Q9u(_G{vpMI7-T74-=0l2_IeVYe&HE3%HRvGfREZSI7koPsm|g_W6OU46nPS}v7s z9#!|K7DgVDSm(=z7*5+(Rit1nrDlDVS9k;rLI&S@X7|x8ysb?`o-#8>i?z>;a!t+hbZ=ihOE&eyJ%Ur(%X}dvL!ksCsHfjAp zaWo=XTE8>t>nA{te(?Q^{cUd#+m1@S^BGS&r@D0K#K7{qvf|2~8LgI5%f8Br%39TN zXN}G)Jv$43WgaV$#D#fkun?zPt&?=?-%Gb(27}#wQ1D<<^w3QFH2(mi5ZjBL%>p|2 zKNM@SRGFEUO%A&1UeP;~&AZc9%7ETH!?%X~XdGoMnZ=sMl?KnMbQ^jTX1fS{vR=9* z9ZE>=7^{$a=y9*eKURKUV29%VUAsQbIch%_DocI-h*naLP1&q#l}p-&a65QXr@-vZ z+0fIW(%UkdD*l@*MMdJv#z4-nHAX+&i&Ys1VS30!s*!aO%ha_hdksTW9Did+o&~gap(oAe=-);} z^Afve)?qB%l0B~GxntxxL;$cw%HqGKAs6x+u+IVJ(=;t!x6?VwK=1;wYEHlet~#&Dh`4@;mRml>-N~Jk*(y)O8#rt zdW3}{zRbXJn|K{uH$Gp=idv{ESp?2t1x{)nsPr2|Z4gi!xs3@mP?Hl+Eg-5;ctIsB zR1Gr|K^SSt`=2$FG{W*_>TQHB4nne6XXRM(0Oq&QB{$F7I*&7Py?vaj`thX;v z#|3M=O~x}UYg*wY6gKFZ@A^|WJa>;M&o^J}MJiO8MK0-ib!LZ-O}L(^RV$&710C|1 z! zT(>y@{}*q;4nin38pX*z^c?rl%^?Y{*r3pJDDLm}-B(N`;{X)o`C~T+IV39jhW+yv z$~rKx{^}~_W95QeLyRL%Kv^6p=q&g;p~sF+Bj2F{rxoV?Y8}T)_6U+*t=8~lh8&91 zg|*-XO76cC>&{T$+d(=-LDV=DIV3n-NPXYV)GviNMKQ1!vWxaBydR=8Zi#!%#15VX z{rr5H-Oay|>;=H}E^FmZD{*R1hD-53rEmfCZNfT6K%Jp3M(Ln^YIn~JrC_w;6|e-J ze{4V%nn`>L@2}y$R`2$gu%|4-6f46K{DI`hBk|ABzd9yQ&CWMZtX`CrU99v|`7-Eb$A&!J1vM;Hz)CjYb zu@y?kGL~V4(HvxK&De&O2JhpF5AiRj}s4g zFAR-B7OB`n5>U_3yTS^zXKR^dIXx`u}NN2$Jw4{a>wqq!(W+ z-sSA#79BI~d`Viz$VXoRLuy9i8yUT>2RNo5hDqg|)h;E*`2IrO<|@AHm-@pZmQt(7 zKD!7Tx6j^r2cX55cD`BQdA3YB90SihdVWG4dX|1!`1;@Rq%rq!xu^5%! zTNtgcfn~89k4;aJD0x}RO3fh~pR;;<$zrUd%asW?S3FaHd-3+J-EOC?s#_>r^U}GJ zs>2%3KJo^mjs`*(GI!sw%w3pJm>+S0}iRg76qubbd9%2GaOkj^R^%#pThH7LDXkC>&Sg^R4GuNL1Wb9eVZC z%aDedpa-GxlZR`Vhk06aICNfMTs_dE==$Zw zOmumT2HWlPPN$ngi!uargOAIvgEF8>gp-8#=RFz`^m6UmDlkqjNk`Ire`b zTGzHehN609IXN#_Nf~+&>EatUwrGuTO~U-$bV{Bvj)*;5P+H(*I8#X3ixe~=+&w}u z6YAPNQCGSJz9z8|dwIhh9n}t5l+;9UqrC3e#;2??k*l$_rfg`T`~6ytGQBrCkdZ4U znCx{yU%cqPSox+$=$DE5WRW5h-agYUe|XcqE&o-% zX?adZAkkb=s)8EL?8yrnsi`V8S@%gZtER}n(Xno5xEY(?@nWqV=x*+(}TJ$9`CfSc@Ddi*#X>pa3#B+uJWKj(}Ns(ST!s;`GtJJ1|O zuZGX(9WM{xAC4sO`D|tyn44TVFyr9$)>=CFaI{rn^ybDmGA6ryVkvGbt#c+f@f7Gu z`O9_-h`eC!XnV!!tkMiNJx_JeGy)*g)ufggTsOxtCqPG`W({7ef8iMyuos!b6oWpA zs!|N%ROhm0|19W^C>1N0x}{0bEHbQGZsAApoXX&B#Uj@an(5P;v~%FPCtEGA7t3{3 z5}U(RJC_Ge1kAv!t>2wD$xb!AXXIw1UtYeB0(P#KMUCr@Hrm7iS3k~8AL=&lE@N9` zU5oF1B}vXABvsPle@%zMDzQocl&$-1zY_b&3%%r)akiE7T?V4(gRymF>K5cvpVd7c z)W!Lpw$JwVW)a&7k4ux_Z6X?yGCUyKokf%;w@_lr*1011A22DfK_&~}3($(l=8rY9 z2f1JS1(q<(l4h_rn!pvbZT&}%fJOCmG2Tz3sn}j= zaITyZi=QHggy|KSydaXv45bx@VO!rJvHLBIjm5qlcfJ@4p(b!F^Min>G^Aw^cTSn0 zDsCRuf2XKV0W1<6+rQ0NRB6$Ck4|Dx_d`J2#s1t}i@6IqH>O5h0fdt6&2&;pyOsK1 zMJGK-LC81$(Mf%4dr}>h34+YD=wF_U#7xC+F#2Sq)1uRjw;fka36OKe+refc`68e2QUbD>UrmNYdT;jR-l|I@#2mxfcI7 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {"isSupportMap":true,"customRuleVal":"","ignoreOptionVal":"auto","isHistoryRoute":true,"ignoreOptions":"","multiSelectDisabledCheckBox":false,"includeSelf":true,"isUp":true,"addressSetting":{},"routeType":"com.actionsoft.bpms.commons.performer.impl.user.ProcessCreater","userOrderPolicy":"none","option":"target","multiSelect":true} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"uids":"@form(BO_EU_PAL_PULBISH_SUCCESS,USREID) 10036614","addressSetting":{},"customRuleVal":"","ignoreOptionVal":"auto","routeType":"com.actionsoft.bpms.commons.performer.impl.user.FixUsers","isHistoryRoute":true,"userOrderPolicy":"deptPriorityOrder","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + + + + startEvent + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"obj_ca0b859089100001f25415cb17993f20","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca0b85908910000126e212201bf02740","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca0b859089100001ab9a68f5425a8470","type":"string","category":"default","value":""}] + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"obj_ca0b85918b700001ca54a11c17109b30","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca0b85918b800001a0481d17f0601350","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca0b85918b800001903182604ae09e50","type":"string","category":"default","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"obj_ca0b85918b8000016af380ee1fce18b0","type":"list","category":"default","value":""},{"name":"isSequantial","id":"obj_ca0b85918b800001feb2b6901fbcf040","type":"boolean","category":"default","value":"false"},{"name":"isForCompensation","id":"obj_ca0b85918b8000016c631e30b0d1ae90","type":"boolean","category":"default","value":"false"},{"name":"renderings","id":"obj_ca0b85918b800001cdf1f0ac1f30dc90","type":"string","category":"default","value":""},{"name":"implementation","id":"obj_ca0b85918b800001979a17d0b6151400","type":"string","category":"default","value":""},{"name":"resources","id":"obj_ca0b85918b800001cead193717501c39","type":"string","category":"default","value":""},{"name":"ioSpecification","id":"obj_ca0b85918b800001ab66e7309b001622","type":"string","category":"default","value":""},{"name":"dataInputAssociations","id":"obj_ca0b85918b800001aa7d12b9b1601c04","type":"string","category":"default","value":""},{"name":"dataOutputAssociations","id":"obj_ca0b85918b800001813026b41300192b","type":"string","category":"default","value":""}] + + + + + + + + + + + + linker + + + + + + {"fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false} + {"lineStyle":"solid","lineColor":"50,50,50","beginArrowStyle":"none","endArrowStyle":"solidArrow","lineWidth":2} + [{"name":"AWSProperties","type":"string","category":"default","value":""}] + + + + + + + + + + + + + linker + + + + + + {"fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false} + {"lineStyle":"solid","lineColor":"50,50,50","beginArrowStyle":"none","endArrowStyle":"solidArrow","lineWidth":2} + [{"name":"AWSProperties","type":"string","category":"default","value":""}] + + + + + + + + + + + + + linker + + + + + + {"fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false} + {"lineStyle":"solid","lineColor":"50,50,50","beginArrowStyle":"none","endArrowStyle":"solidArrow","lineWidth":2} + [{"name":"AWSProperties","type":"string","category":"default","value":""}] + + + + + + + + + + + + + endEvent + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"100,0,0","lineWidth":2} + [{"name":"Name","id":"obj_ca0b8592315000013b8917b063b0f7c0","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca0b859231500001825515a01033d140","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca0b85923150000151bd117992601495","type":"string","category":"default","value":""}] + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","size":13,"color":"50,50,50","underline":false,"textAlign":"center","bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"obj_ca0b86b36d70000131ae2740e8501643","type":"string","category":"default","value":""},{"name":"documentation","id":"obj_ca0b86b36d700001bc55ffe6d0a36d70","type":"string","category":"default","value":""},{"name":"AWSProperties","id":"obj_ca0b86b36d70000154eb1de23a60189c","type":"string","category":"default","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"obj_ca0b86b36d700001c4f71770180010b4","type":"list","category":"default","value":"MultipleLoopCharacteristics"},{"name":"isSequantial","id":"obj_ca0b86b36d7000018b911d604f3f1bcf","type":"boolean","category":"default","value":"false"},{"name":"isForCompensation","id":"obj_ca0b86b36d7000018b1813121e9e1940","type":"boolean","category":"default","value":"false"},{"name":"renderings","id":"obj_ca0b86b36d700001f36d1cacda781a0e","type":"string","category":"default","value":""},{"name":"implementation","id":"obj_ca0b86b36d700001e7a9ede04fd797e0","type":"string","category":"default","value":""},{"name":"resources","id":"obj_ca0b86b36d70000177684860152019dc","type":"string","category":"default","value":""},{"name":"ioSpecification","id":"obj_ca0b86b36d7000014da0537a11501045","type":"string","category":"default","value":""},{"name":"dataInputAssociations","id":"obj_ca0b86b36d700001dff71bdee557edb0","type":"string","category":"default","value":""},{"name":"dataOutputAssociations","id":"obj_ca0b86b36d700001a51cc0d019e0e330","type":"string","category":"default","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_b4700f89a7a144c086d047de0cfe9531/obj_b4700f89a7a144c086d047de0cfe9531.check b/com.awspaas.user.apps.app20221008163300/repository/process/obj_b4700f89a7a144c086d047de0cfe9531/obj_b4700f89a7a144c086d047de0cfe9531.check new file mode 100644 index 00000000..f1b82e07 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_b4700f89a7a144c086d047de0cfe9531/obj_b4700f89a7a144c086d047de0cfe9531.check @@ -0,0 +1 @@ +{"CheckOutTime":"2022-11-20 11:28:42","CheckOutIP":"10.140.4.254","CheckOutUser":"admin","CheckOutState":"CHECKOUT"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_b4700f89a7a144c086d047de0cfe9531/obj_b4700f89a7a144c086d047de0cfe9531.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_b4700f89a7a144c086d047de0cfe9531/obj_b4700f89a7a144c086d047de0cfe9531.draw new file mode 100644 index 00000000..afbc0a11 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_b4700f89a7a144c086d047de0cfe9531/obj_b4700f89a7a144c086d047de0cfe9531.draw @@ -0,0 +1 @@ +{"versionId":"obj_b4700f89a7a144c086d047de0cfe9531","chartId":"obj_b4700f89a7a144c086d047de0cfe9531","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-11-20 11:28:42","definitionId":"obj_b4700f89a7a144c086d047de0cfe9531"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_b4700f89a7a144c086d047de0cfe9531/obj_b4700f89a7a144c086d047de0cfe9531_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_b4700f89a7a144c086d047de0cfe9531/obj_b4700f89a7a144c086d047de0cfe9531_small.png new file mode 100644 index 0000000000000000000000000000000000000000..bd1e97c0cf73dd06bef02cd1b3f3cec4f2dc5ced GIT binary patch literal 2099 zcmdT`X*3&%7S^X#ql0$T-YD&%V~ed3i6u=&lvcGJG}fwG5`(Iph8RKHK~*hD$yocS zH92%N)++Ui1_?SsMUv7X@-z#vJVYNe^WJ$s-p}{v{kZp@`<;8g@BX;w-22ltw~LAj zS_(2UGKwzFj^FP`(Y_7I|7G8M>+BqnkvY2U;t2Oh`tX^R=2{eg>b00+-KRIY{$Q+E zfv-IG{ygE4^(PDvbQ0;eoL+t6(^rYF56K0m!zRwVZ&%gM+)mI33`U!$af2s|YwE*b z=CyAAie9Dp%2!(IfR5AlbpA<%5 zn_6312X6i~Le8dMNfAGGhhhBKq47?u-{l)~5uQ^8E{sF`6@J7IVfTi`6T6#B#OX^B z0Uw~`gu})>xrNy@Snn<~H*?cTeL5G?Rq3)r0GngWF10t5B(3&SV4* zL8Fy%z;f-!A+aFEZOUaLyA&E9=s2*`((>SeVyu#O!dCiGlV?u9A(1^6$uU@8U$3M7 zvF)|oLOjoSd_KE9m6!EyRDxz}F$F0V9 zKJ%T1gDOkz^w}hGh+9u6JTX3jTxMRCBH~tL^4gPe*||;aU-pW{;#KQFtvFw-@7~5P zZv!KK&WrzsuLAUYRe6sQKC4(8WaZwhV$?fae3mkFrNb)UrGD}Z?_N&|ubMJ37k-`Z zp=2oN75U}dhl5d`C2~r3=LTxnwIEB&FKle0Nq|l*90fwv_&J}5?4NZkf7FC&xCX&I zh#ozC%(LR8?`>YdUek6QJt*J5)65=><#%w_dJ6-YCcK)n7k$p089VkdvgxdoN1m2y zEu2P49bbBeY!q2oMeuhGey}DrHa7bD`W^$+{z{C&0yY~P{We((Y++>W)O{dk)2DT1 z*`COKC9!xFm48#6X_Era6hd>={?yS!8-ByxDRZtIFq-F9G@8ah)r?j7G?H&tZl zUQk%5qN1`e5_Cgaz7$z>x7b*4WkIt@!4;w;%-6hia22~ zxDg2aqys!H2r^ByTYjk-T?#eGq|QtN;-2oWijeW$VXklSF;gEE{er`=@LLj*t=gIZ{kWigrvQ z)s0>s%W*5tAcIYJkkaG^r<}@2O=@z|B?dKlVWut2=SUBFw3M|cC1p;}&JIc64h@N< z#ov9{omt#@$v)?x-s9S4zG6|gSETx$MEIGGN;QbOtRSVq=!B1(uZ_~IJ787nfYB!; zoX~Q%!JFY zdx*kHsg9R;{O@S5)zWfL{O{Z}=wwYBrFrU+i;I~Oz{du2Z6;qYYB`ScncXaa^y|t2 zE*(jjoPUwkKp#*B$wOaQzY(UZ0y=ag{r=$JDON`Yt^B`er#kRby6Sgxz1Nc`s*#K- z2u`_4#8@xH-v@YKV#G`e{maREJX@%3rHHkX>>uw$YLUb};TL)|_tgs_pk + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_bb5827b97dcd4dd9977e7008974a3982/obj_bb5827b97dcd4dd9977e7008974a3982.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_bb5827b97dcd4dd9977e7008974a3982/obj_bb5827b97dcd4dd9977e7008974a3982.draw new file mode 100644 index 00000000..6f9d59cd --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_bb5827b97dcd4dd9977e7008974a3982/obj_bb5827b97dcd4dd9977e7008974a3982.draw @@ -0,0 +1 @@ +{"versionId":"obj_bb5827b97dcd4dd9977e7008974a3982","chartId":"obj_bb5827b97dcd4dd9977e7008974a3982","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-11-09 19:56:43","definitionId":"obj_bb5827b97dcd4dd9977e7008974a3982"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_bb5827b97dcd4dd9977e7008974a3982/obj_bb5827b97dcd4dd9977e7008974a3982_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_bb5827b97dcd4dd9977e7008974a3982/obj_bb5827b97dcd4dd9977e7008974a3982_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_bc78a39c9bc94c9fbf69764c870d11fb/obj_bc78a39c9bc94c9fbf69764c870d11fb.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_bc78a39c9bc94c9fbf69764c870d11fb/obj_bc78a39c9bc94c9fbf69764c870d11fb.draw new file mode 100644 index 00000000..b21b4106 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_bc78a39c9bc94c9fbf69764c870d11fb/obj_bc78a39c9bc94c9fbf69764c870d11fb.draw @@ -0,0 +1 @@ +{"versionId":"obj_bc78a39c9bc94c9fbf69764c870d11fb","chartId":"obj_bc78a39c9bc94c9fbf69764c870d11fb","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-11-05 23:20:18","definitionId":"obj_bc78a39c9bc94c9fbf69764c870d11fb"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_bc78a39c9bc94c9fbf69764c870d11fb/obj_bc78a39c9bc94c9fbf69764c870d11fb_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_bc78a39c9bc94c9fbf69764c870d11fb/obj_bc78a39c9bc94c9fbf69764c870d11fb_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"addressSetting":{},"customRuleVal":"","ignoreOptionVal":"auto","routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","isHistoryRoute":true,"userOrderPolicy":"","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa.draw new file mode 100644 index 00000000..00ba2dfa --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa.draw @@ -0,0 +1 @@ +{"versionId":"obj_bf6b5ac62cb744f1925d00ba1ae2e6fa","chartId":"obj_bf6b5ac62cb744f1925d00ba1ae2e6fa","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-10-09 19:19:56","definitionId":"obj_bf6b5ac62cb744f1925d00ba1ae2e6fa"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa/obj_bf6b5ac62cb744f1925d00ba1ae2e6fa_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_c504beb31bc841ef96b6b2304257f7d5/obj_c504beb31bc841ef96b6b2304257f7d5.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_c504beb31bc841ef96b6b2304257f7d5/obj_c504beb31bc841ef96b6b2304257f7d5.draw new file mode 100644 index 00000000..34a5fe54 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_c504beb31bc841ef96b6b2304257f7d5/obj_c504beb31bc841ef96b6b2304257f7d5.draw @@ -0,0 +1 @@ +{"versionId":"obj_c504beb31bc841ef96b6b2304257f7d5","chartId":"obj_c504beb31bc841ef96b6b2304257f7d5","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-10-13 22:20:18","definitionId":"obj_c504beb31bc841ef96b6b2304257f7d5"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_c504beb31bc841ef96b6b2304257f7d5/obj_c504beb31bc841ef96b6b2304257f7d5_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_c504beb31bc841ef96b6b2304257f7d5/obj_c504beb31bc841ef96b6b2304257f7d5_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_d9483b03345a4cc2a1de79e358784a56/obj_d9483b03345a4cc2a1de79e358784a56.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_d9483b03345a4cc2a1de79e358784a56/obj_d9483b03345a4cc2a1de79e358784a56.draw new file mode 100644 index 00000000..a0d44233 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_d9483b03345a4cc2a1de79e358784a56/obj_d9483b03345a4cc2a1de79e358784a56.draw @@ -0,0 +1 @@ +{"versionId":"obj_d9483b03345a4cc2a1de79e358784a56","chartId":"obj_d9483b03345a4cc2a1de79e358784a56","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-10-28 17:33:54","definitionId":"obj_d9483b03345a4cc2a1de79e358784a56"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_d9483b03345a4cc2a1de79e358784a56/obj_d9483b03345a4cc2a1de79e358784a56_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_d9483b03345a4cc2a1de79e358784a56/obj_d9483b03345a4cc2a1de79e358784a56_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"addressSetting":{},"customRuleVal":"","ignoreOptionVal":"auto","routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","isHistoryRoute":true,"userOrderPolicy":"","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_df02ab9de0a5469386537f3af6880f25/obj_df02ab9de0a5469386537f3af6880f25.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_df02ab9de0a5469386537f3af6880f25/obj_df02ab9de0a5469386537f3af6880f25.draw new file mode 100644 index 00000000..5571fbd7 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_df02ab9de0a5469386537f3af6880f25/obj_df02ab9de0a5469386537f3af6880f25.draw @@ -0,0 +1 @@ +{"versionId":"obj_df02ab9de0a5469386537f3af6880f25","chartId":"obj_df02ab9de0a5469386537f3af6880f25","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-11-08 19:06:25","definitionId":"obj_df02ab9de0a5469386537f3af6880f25"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_df02ab9de0a5469386537f3af6880f25/obj_df02ab9de0a5469386537f3af6880f25_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_df02ab9de0a5469386537f3af6880f25/obj_df02ab9de0a5469386537f3af6880f25_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_ede3a2ddbf5447e4a51f314a645dbd37/obj_ede3a2ddbf5447e4a51f314a645dbd37.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_ede3a2ddbf5447e4a51f314a645dbd37/obj_ede3a2ddbf5447e4a51f314a645dbd37.draw new file mode 100644 index 00000000..01139b72 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_ede3a2ddbf5447e4a51f314a645dbd37/obj_ede3a2ddbf5447e4a51f314a645dbd37.draw @@ -0,0 +1 @@ +{"versionId":"obj_ede3a2ddbf5447e4a51f314a645dbd37","chartId":"obj_ede3a2ddbf5447e4a51f314a645dbd37","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-10-09 09:05:37","definitionId":"obj_ede3a2ddbf5447e4a51f314a645dbd37"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_ede3a2ddbf5447e4a51f314a645dbd37/obj_ede3a2ddbf5447e4a51f314a645dbd37_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_ede3a2ddbf5447e4a51f314a645dbd37/obj_ede3a2ddbf5447e4a51f314a645dbd37_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj- + + + + + + + + + + + + + + {"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""} + + + + + + + + + + + + + + + + + + + + + userTask + + + + + + {"orientation":"vertical","fontFamily":"Arial","color":"50,50,50","size":13,"textAlign":"center","underline":false,"bold":false,"italic":false,"vAlign":"middle"} + {"lineStyle":"solid","lineColor":"0,100,0","lineWidth":2} + [{"name":"Name","id":"_c5e431a09e8000019667a030a612172c","category":"default","type":"string","value":""},{"name":"documentation","id":"_c5e431a09e800001a51b1ad665702f80","category":"default","type":"string","value":""},{"name":"AWSProperties","id":"_c5e431a09e800001e350169f14944c00","category":"default","type":"string","value":""},{"listItems":["","StandardLoopCharacteristics","MultipleLoopCharacteristics"],"name":"loopCharacteristics","id":"_c5e431a09e8000011134166057601c8d","category":"default","type":"list","value":""},{"name":"isSequantial","id":"_c5e431a09e80000179f9bc834a226940","category":"default","type":"boolean","value":"true"},{"name":"isForCompensation","id":"_c5e431a09e8000013df09cc0b50010f9","category":"default","type":"boolean","value":"false"},{"name":"renderings","id":"_c5e431a09e80000198201540eeb0cf70","category":"default","type":"string","value":""},{"name":"implementation","id":"_c5e431a09e8000012e3c1f101730a630","category":"default","type":"string","value":""},{"name":"resources","id":"_c5e431a09e900001ce78702013301212","category":"default","type":"string","value":""},{"name":"ioSpecification","id":"_c5e431a09e900001b62b10196bf81699","category":"default","type":"string","value":""},{"name":"dataInputAssociations","id":"_c5e431a09e900001f6305df0112f1b79","category":"default","type":"string","value":""},{"name":"dataOutputAssociations","id":"_c5e431a09e900001b9e91930bd0c1f9c","category":"default","type":"string","value":""}] + + + + + + + + + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_f63aae71b87444ca87a4c3d64362faac/obj_f63aae71b87444ca87a4c3d64362faac.draw b/com.awspaas.user.apps.app20221008163300/repository/process/obj_f63aae71b87444ca87a4c3d64362faac/obj_f63aae71b87444ca87a4c3d64362faac.draw new file mode 100644 index 00000000..05e0981e --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/repository/process/obj_f63aae71b87444ca87a4c3d64362faac/obj_f63aae71b87444ca87a4c3d64362faac.draw @@ -0,0 +1 @@ +{"versionId":"obj_f63aae71b87444ca87a4c3d64362faac","chartId":"obj_f63aae71b87444ca87a4c3d64362faac","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2022-11-11 18:21:33","definitionId":"obj_f63aae71b87444ca87a4c3d64362faac"} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/repository/process/obj_f63aae71b87444ca87a4c3d64362faac/obj_f63aae71b87444ca87a4c3d64362faac_small.png b/com.awspaas.user.apps.app20221008163300/repository/process/obj_f63aae71b87444ca87a4c3d64362faac/obj_f63aae71b87444ca87a4c3d64362faac_small.png new file mode 100644 index 0000000000000000000000000000000000000000..d3ddee2b78080cb8570e0c31d9667f8b75fb5103 GIT binary patch literal 1606 zcmcgtdr;C@6b5`HrR-S3E`>I=u4`#-=4evN&y+1Qans7QA$lR2W)D$Q0l`O_?B>+^ zC`)BEHM1}usA*9vI<}fhfjK_VFh%kOiKvN>{rRZb+5La#n|trvd(QptnRCzm?)6^? z`wie|I0OPQa691Y1&&Ivy;=hUdtVcc4g{iW;O6RlS8%y}F zn;)=~&xHBdOD?EV1K;CaH$jR#jMzoicB+=`civJKcGg{tey|xq*mZqhmDq zM@83L!}OxT3h@aS!INDo?txbOKIPoZ)?GP$FK1f?HpRzP8AtH#yJ1kP6>!W}p;Mu~ z3TFBe9_mlZvhLQ}g;`0e#c&ismWMGV&)VEBfKU~^y>GUU1o@q}1c8I>oSQCuD9b%KC+ea$|FwT zs}BCi;#~pliBgaAS0^@|)9Z;>qvFfq=DI=V zj!o}Mxp|>3L!DLGlIntS>Ac8YLTb>$;yH;W4z_u6Zj|blMX|Z*Ug}TLF$LD4lCBZ% zShm;j!nTvU%{U_H?8LZ~81wqa8n4CRW2>tyU9|jrpk#sm^BeMK|BDQbs4A4RLfgRc z!2~>&NeXr;OrrK_IGf}#{H8@9hc_zLAF=kURv+XXz05IxZZ~%`&VHbhrkE6Etov@d zUOw(=7jLSkVHv&{@2sMHFqee(1~}xa?lVdr_b1>ighkqzY{JPsm8Si5jlP`%WX{g9 z`BI>`3@E`~atUz>F`1K2A>cUwftc)8wX_mJI6=Fz&|Dk_6dF^jZ)w;=(B?^U-8@hn z3y`LUlM<)fUO!fLDt-G!vl#NKJ5MoC`CNw22vZjw!1*2G zcv+B?rtv37oLk(Aot{`ukGIzBpCpPe4bU>M6}mCApD^l^N&dbxkZftwdI+(KrU+(R z-!l>dDBlat2_5C0Y(6r8qX%(ZNUPCfWD_d~#WIs2E~?kzeOj5-vZG#>rvt1;xkU(= zBITNxOz%pa)Tg9!1f2cC?k3cL>XwTCEIVsuwh`pfbqpa&=(tu36|7}(@L(sBpdY|t zdyjXVo@jCMXtEUs!srS_=#4HJl6c8?#+FekcO-XLhpB-=9V)%^_y$JwjW`pf35PX~ zh#GBHPmkWY`)Yzb#GTYgayyzA^RIcs(DGYJDq?z_-{iIXhqSVO5H^RmS+&9Hy%2DP zMVQOn>|wO92ulCxu8xR_$!kC@g}~Cq>I)<25qS-Iwn9KFOIt2O?eFdE_6G|Z2BwBZ zfK6ihD!-s1wFe#kD3hF zTXs41^{*||rec8nGq7gvz-dM5zZhrajW0Uiz{> zD5`Ady`#H#9^Z~yQV+ph>S)hd3auwO_?(n>ZO6Ch)`t{##G|yeSX;*6jM53y7fu`d zz(e6ArxJqvx^K7lJj-0) { + ro.put("result", "ok"); + }else { + ro.put("result", "error"); + } + return ro; + } + + // 批量移动文件架构 + @Mapping("com.awspaas.user.apps.app.controller.movePalFile") + public ResponseObject move(String sid, String plname) { + ResponseObject ro = ResponseObject.newOkResponse(); + + /* + * String sqls = "SELECT * FROM BO_EU_PAL_FRAMWORK_SUCCESS "; List maps2 + * = DBSql.getMaps(sqls); for (RowMap rowMap : maps2) { String plNameL + * =rowMap.getString("PALNAME"); String uuid = rowMap.getString("PAID"); String + * result = rowMap.getString("RESULT"); String updateSql = + * "UPDATE BO_EU_PAL_FRAMEWORK_TOOL SET RESULT = '" + result + "',PAID = '" + + * uuid + "' WHERE PALNAME = '" + " "+plNameL + "'"; DBSql.update(updateSql); + * + * } + */ + + + + System.err.println("开始移动文件=======>" + plname); + String sql = "SELECT * FROM BO_EU_PAL_FRAMEWORK_TOOL "; + //String sql = "SELECT * FROM BO_EU_PAL_FRAMEWORK_TOOL WHERE RESULT NOT LIKE '%成功%' "; + + if (!"all".equals(plname)) { + sql = "SELECT * FROM BO_EU_PAL_FRAMEWORK_TOOL WHERE PALNAME ='" + plname + "'"; + } + + List maps = DBSql.getMaps(sql); + System.err.println("maps===>" + maps); + if (maps.size() > 0) { + for (RowMap rowMap : maps) { + try { + String plName = rowMap.getString("PALNAME").trim(); + String plNameL = rowMap.getString("PALNAME"); + String error = rowMap.getString("ERRORFRAMEWORK"); + String right = rowMap.getString("CORRECTFRAMEWORK"); + // 获取导入表的错误架构id + String sqlerror = "SELECT ID FROM App_Act_Coe_Pal_Repository WHERE PLNAME ='" + error + "'"; + //String maperrorId = DBSql.getString(sqlerror); + + // 获取导入表的正确架构id + String sqlright = "SELECT ID FROM App_Act_Coe_Pal_Repository WHERE PLNAME ='" + right + "'"; + String maprightId = DBSql.getString(sqlright); + + // 获取文件id和父架构ID33 + String sqlS = "SELECT ID,PLPARENTID FROM App_Act_Coe_Pal_Repository WHERE PLNAME ='" + plName + "'"; + RowMap map = DBSql.getMap(sqlS); + if(map!=null) { + String uuid = map.getString("ID"); + String prId = map.getString("PLPARENTID"); + // 获取文件库父架构名称 + String sqlT = "SELECT PLNAME FROM App_Act_Coe_Pal_Repository WHERE ID ='" + prId + "'"; + String prName = DBSql.getString(sqlT); + String prName3 = DBSql.getString(sqlT); + + String substring = right.substring(right.lastIndexOf(".") + 2); + // 判断是否是导入表的错误架构 + // + System.err.println("当前文件架构名=======>" + prName); + if (error.trim().equals(prName.trim())) { + String update = "UPDATE App_Act_Coe_Pal_Repository SET PLPARENTID = '" + maprightId + + "' WHERE ID ='" + uuid + "'"; + int update2 = DBSql.update(update); + PALRepositoryPropertyDao propertyDao = new PALRepositoryPropertyDao(); + + String name1 = right.substring(right.lastIndexOf(".") + 2).trim(); + if(UtilString.isNotEmpty(name1)) { + // 设置三级架构名称 + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L3", name1); + + // 设置二级架构名称 + String sql2 = "SELECT PLPARENTID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + maprightId + + "'"; + String prd2 = DBSql.getString(sql2); + String sqlp2 = "SELECT PLNAME,ID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + prd2 + "'"; + RowMap map2 = DBSql.getMap(sqlp2); + if (map2 != null) { + String uuid2 = map2.getString("ID"); + String plName2 = map2.getString("PLNAME"); + String name2 = plName2.substring(plName2.lastIndexOf(".") + 2).trim(); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L2", name2); + + // 设置一级架构名称 + String sql1 = "SELECT PLPARENTID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + uuid2 + "'"; + String prd1 = DBSql.getString(sql1); + String sqlp1 = "SELECT PLNAME,ID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + prd1 + "'"; + RowMap map1 = DBSql.getMap(sqlp1); + + if (map1 != null) { + String uuid1 = map1.getString("ID"); + String plName1 = map1.getString("PLNAME"); + String name3 = plName1.substring(plName1.lastIndexOf(".") + 2).trim(); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L1", name3); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '4'"); + + } else { + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L3", "/"); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L1", name2); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L2", name1); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '3'"); + } + + } else { + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L2", "/"); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L3", "/"); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L1", name1); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '2'"); + + } + } + + + + ro.put("result", "ok"); + String result = "文件从【" + error + "】移动到【" + right + "】成功!"; + /* + * String updateSql = "UPDATE BO_EU_PAL_FRAMEWORK_TOOL SET RESULT = '" + result + * + "',PAID = '" + uuid + "' WHERE PALNAME = '" + plNameL + "'"; + * DBSql.update(updateSql); + */ + BO bo = new BO(); + bo.set("PALNAME", plName); + bo.set("ERRORFRAMEWORK", error); + bo.set("CORRECTFRAMEWORK", right); + bo.set("PAID", uuid); + bo.set("RESULT", result); + int createDataBO = SDK.getBOAPI().createDataBO("BO_EU_PAL_FRAMWORK_SUCCESS", bo, UserContext.fromUID("admin")); + if(createDataBO>0) { + String sqly = "DELETE FROM BO_EU_PAL_FRAMEWORK_TOOL WHERE PALNAME = '"+plNameL+"'"; + DBSql.update(sqly); + } + } else { + ro.put("result", "error"); + String updateSql = "UPDATE BO_EU_PAL_FRAMEWORK_TOOL SET RESULT ='文件移动失败,原架构和文件属性里的架构不匹配请检查!' WHERE PALNAME = '" + + plNameL + "'"; + DBSql.update(updateSql); + + + + } + }else { + ro.put("result", "error"); + String updateSql = "UPDATE BO_EU_PAL_FRAMEWORK_TOOL SET RESULT ='文件移动失败,文件名称不正确请检查!' WHERE PALNAME = '" + + plNameL + "'"; + DBSql.update(updateSql); + } + } catch (Exception e) { + e.printStackTrace(); + System.err.println("文件移动异常"+plname+"_"+e.getMessage()); + } + + } + } + + PALRepositoryCache.getCache().reload(); + return ro; + + } + + //批量导入权限 + @Mapping("com.awspaas.user.apps.xitongfankui.createPrem") + public JSONObject createPrem(String sid,String processDefId) { + JSONObject result = new JSONObject(); + UserContext uc = UserContext.fromSessionId(sid); + + + List list = SDK.getBOAPI().query("BO_ACT_PUBLISH_SCOPE_IMPORT").list(); + for (BO bos : list) { + String palName = bos.getString("PALNAME"); + String orgPerm = bos.getString("ORGPERM"); + String postPerm = bos.getString("POSTPERM"); + String levelPrem = bos.getString("LEVELPERM"); + String sendScope = bos.getString("SEND_SCOP"); + + StringBuffer orgSuccess = new StringBuffer(); + StringBuffer orgFail = new StringBuffer(); + + StringBuffer orgPermBuf = new StringBuffer(); + String[] orgPermArr = orgPerm.split(","); + for (String str : orgPermArr) { + String dsql = "SELECT ID FROM ORGDEPARTMENT WHERE DEPARTMENTNAME = '"+str+"'"; + String depId = DBSql.getString(dsql); + if(UtilString.isNotEmpty(depId)) { + if(str.equals(orgPermArr[orgPermArr.length-1])) { + orgPermBuf.append(depId); + }else { + orgPermBuf.append(depId).append(","); + } + + }else { + orgFail.append(str).append(","); + } + } + bos.set("ORGFAIL", orgFail); + + StringBuffer postFail = new StringBuffer(); + StringBuffer postPermBuf = new StringBuffer(); + String[] postPermArr = postPerm.split(","); + for (String str : postPermArr) { + String postNbrSql = "SELECT POSITION_NBR FROM BO_EU_ORG_POSTS WHERE DESCR = '"+str+"'"; + String postNbr = DBSql.getString(postNbrSql); + if(UtilString.isNotEmpty(postNbr)) { + if(str.equals(postPermArr[postPermArr.length-1])) { + postPermBuf.append(postNbr); + }else { + postPermBuf.append(postNbr).append(","); + } + + }else { + postFail.append(str).append(","); + } + } + bos.set("POSTFAIL", postFail); + StringBuffer levelFail = new StringBuffer(); + StringBuffer levelPremArrBuf = new StringBuffer(); + String[] levelPremArr = levelPrem.split(","); + for (String str : levelPremArr) { + String levelSql = "SELECT RANKSUB_NO FROM BO_ACT_PAL_LEVEL_SUB WHERE RANKSUB_NAME = '"+str+"'"; + String leveNo = DBSql.getString(levelSql); + if(UtilString.isNotEmpty(leveNo)) { + if(str.equals(levelPremArr[levelPremArr.length-1])) { + levelPremArrBuf.append(str); + }else { + levelPremArrBuf.append(str).append(","); + } + }else { + levelFail.append(str).append(","); + } + } + bos.set("LEVELFAIL", postFail); + + if("1".equals(sendScope)||orgPermBuf.length()!=0||postPermBuf.length()!=0||levelPremArrBuf.length()!=0) { + List premlist = new ArrayList<>(); + String sqls = "SELECT * FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME = '"+palName+"'"; + List maps = DBSql.getMaps(sqls); + + Set removeIds = new HashSet<>(); + for (RowMap rowMap : maps) { + List delList = SDK.getBOAPI().query("BO_ACT_PUBLISH_PERM_SCOPE2").addQuery("PALVERSIONID=", rowMap.getString("PALVERSIONID")).list(); + if (delList != null && delList.size() > 0) { + for (BO del : delList) { + removeIds.add(del.getId()); + } + } + } + for (String removeId : removeIds) { + SDK.getBOAPI().remove("BO_ACT_PUBLISH_PERM_SCOPE2", removeId); + } + + + + for (RowMap rowMap : maps) { + + BO bo = new BO(); + bo.set("PERMID", UUIDGener.getUUID()); + bo.set("WSID", rowMap.getString("WSID")); + bo.set("PALVERSIONID", rowMap.getString("PLVERSIONID")); + bo.set("PALNAME", rowMap.getString("PLNAME")); + bo.set("PERMTYPE", sendScope); + bo.set("ORGPERM", orgPermBuf); + bo.set("POSTPERM", postPermBuf); + bo.set("LEVELPERM",levelPremArrBuf); + premlist.add(bo); + } + if (premlist.size() > 0) { + bos.set("RESULT", "导入成功!"); + SDK.getBOAPI().update("BO_ACT_PUBLISH_SCOPE_IMPORT", bos); + SDK.getBOAPI().createDataBO("BO_ACT_PUBLISH_PERM_SCOPE2", premlist, uc); + SDK.getLogAPI().consoleInfo("[发布范围权限信息保存至范围权限表]更新成功"); + } + + }else { + bos.set("RESULT", "导入失败!"); + SDK.getBOAPI().update("BO_ACT_PUBLISH_SCOPE_IMPORT", bos); + } + + + } + + return result; + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/controller/PublishFilterController.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/controller/PublishFilterController.java new file mode 100644 index 00000000..dfbab5f8 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/controller/PublishFilterController.java @@ -0,0 +1,31 @@ +package com.awspaas.user.apps.app.controller; + +import com.actionsoft.bpms.server.bind.annotation.Controller; +import com.actionsoft.bpms.server.bind.annotation.Mapping; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.alibaba.fastjson.JSONObject; + +/* + * 批量发布文件是过滤掉不发布的文件 + */ +@Controller +public class PublishFilterController { + @Mapping("com.actionsoft.apps.coe.pal.publisher_publish_pubfilter") + public JSONObject CheckUser(String sid,String fileName) { + JSONObject result = new JSONObject(); + if(UtilString.isNotEmpty(fileName)) { + String sql = "SELECT ID FROM BO_EU_BATCH_PUBLIS_NL WHERE PLNAME = '"+fileName.trim()+"' AND ISPUBLISH = '否'"; + String Id = DBSql.getString(sql); + if(UtilString.isEmpty(Id)) { + result.put("result","yes"); + }else { + System.err.println("发布过滤文件=======>"+fileName.trim()); + result.put("result","no"); + } + + } + return result; + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/controller/UpateFileStateController.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/controller/UpateFileStateController.java new file mode 100644 index 00000000..81da090c --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/controller/UpateFileStateController.java @@ -0,0 +1,151 @@ +package com.awspaas.user.apps.app.controller; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.actionsoft.apps.coe.pal.pal.repository.PALRepositoryQueryAPIManager; +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.dao.PALRepository; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.server.bind.annotation.Controller; +import com.actionsoft.bpms.server.bind.annotation.Mapping; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONObject; +/** + * 修改文件状态 + * @author lihongyu + * + */ +@Controller +public class UpateFileStateController { + private static Logger logger = LoggerFactory.getLogger(UpateFileStateController.class); + + // 修改文件发布状态 + @Mapping("com.awspaas.user.apps.app.controller.updatePalFileState") + public ResponseObject checkIsSend(String sid, String plId, String state, String type) { + System.err.println("修改文件状态========>" + plId + "/" + state + "/" + type); + ResponseObject ro = ResponseObject.newOkResponse(); + int count = 0; + if ("1".equals(type)) { + //修改发布状态 + String updataSql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET ISPUBLISH = '" + state + "' WHERE ID = '" + plId + + "'"; + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '"+state+"' WHERE ID = '"+plId+"'"); + count = DBSql.update(updataSql); + String sqlt = "UPDATE BO_EU_PAL_FILE1 SET FILESTATE = '" + state + "' WHERE FILEID = '" + plId + "'"; + DBSql.update(sqlt); + /* + String id = DBSql.getString("SELECT ID FROM APP_ACT_COE_PAL_PUBLISH_LIST WHERE PALREPOSITORYID='" + plId + "'"); + * if (UtilString.isNotEmpty(id)) { PALRepositoryModel model = + * PALRepositoryCache.getCache().get(plId); if + * ("control.policy".equals(model.getMethodId()) || + * "process.flowchart".equals(model.getMethodId()) || + * "data.form".equals(model.getMethodId()) || + * "process.epc".equals(model.getMethodId())) { String taskId = + * createOutputReport(model, "7d3ca852-a0bd-42e6-80b1-3dcea6f55083", "admin", + * "", plId); // 刷新预览加载的表 String sqlr = + * "UPDATE BO_EU_PAL_OUTPUTREPORT SET TASKID = '" + taskId + "' WHERE PLID = '" + * + plId + "'"; DBSql.update(sqlr); System.err.println("重新生成手册:" + + * model.getName() + "--->taskId" + taskId); + * DBSql.update("UPDATE BO_ACT_COE_PUBLISH_N SET TASKID='" + taskId + + * "'WHERE PUBLISHFILEID ='" + plId + "'"); count = + * DBSql.update("UPDATE APP_ACT_COE_PAL_PUBLISH_LIST SET TASKID='" + taskId + + * "'WHERE PALREPOSITORYID='" + plId + "'"); } } + */ + PALRepositoryCache.getCache().reload(); + SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>"); + } else if ("2".equals(type)) { + // 修改流程文件的审批状态 + String updataSql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET ISAPPROVAL = '" + state + "' WHERE ID = '" + plId + + "'"; + System.err.println("审批改为设计=======>" + updataSql); + count = DBSql.update(updataSql); + PALRepositoryCache.getCache().reload(); + SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>"); + } else if ("3".equals(type)) { + // 重新生成手册 + PALRepositoryModel model = PALRepositoryCache.getCache().get(plId); + String taskId = createOutputReport(model, "7d3ca852-a0bd-42e6-80b1-3dcea6f55083", "admin", "", plId); + System.err.println("======手动生成手册id======"+taskId); + // 刷新预览加载的表 + String sqlr = "UPDATE BO_EU_PAL_OUTPUTREPORT SET TASKID = '" + taskId + "' WHERE PLID = '" + plId + "'"; + DBSql.update(sqlr); + String sql1 = "SELECT ID FROM BO_ACT_COE_PUBLISH_N WHERE PUBLISHFILEID = '" + plId + "'"; + String sql2 = "SELECT ID FROM BO_ACT_COE_PUBLISH_C WHERE CHANGEDFILEIDNEW = '" + plId + "'"; + if (UtilString.isNotEmpty(DBSql.getString(sql1))) { + count = DBSql.update( + "UPDATE BO_ACT_COE_PUBLISH_N SET TASKID='" + taskId + "'WHERE PUBLISHFILEID ='" + plId + "'"); + } + if (UtilString.isNotEmpty(DBSql.getString(sql2))) { + count = DBSql.update( + "UPDATE BO_ACT_COE_PUBLISH_C SET TASKID='" + taskId + "'WHERE CHANGEDFILEIDNEW ='" + plId + "'"); + } + if (count != 0) { + DBSql.update("UPDATE APP_ACT_COE_PAL_PUBLISH_LIST SET TASKID='" + taskId + "'WHERE PALREPOSITORYID='" + + plId + "'"); + } + System.err.println("重新生成手册成功=====》" + count); + }else if ("4".equals(type)) { + // 修改流程文件的停用状态 + String updataSql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET ISSTOP = '" + state + "' WHERE ID = '" + plId + + "'"; + System.err.println("停用改设计=======>" + updataSql); + count = DBSql.update(updataSql); + PALRepositoryCache.getCache().reload(); + SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>"); + } + if (count > 0) { + /* + * TeamPermCache.getCache().reload(); TeamMemberPermCache.getCache().reload(); + * PublishHistoryCache.getCache().reload(); + * PublishUserGroupCache.getCache().reload(); + * PublishUserGroupPermCache.getCache().reload(); + * PublishUserGroupRoleCache.getCache().reload(); + * PALDesignerFileCache.getCache().reload(); + * PALDesignerFileDragModelCache.getCache().reload(); + * PALRepositoryRemoveCache.getCache().reload(); + * CoeDesignerShapeCache.getCache().reload(); + * DesignerShapeRelationCache.getCache().reload(); + * PALRepositoryPropertyCache.getCache().reload(); + * PALRepositoryAttributeCache.getCache().reload(); + * PALRepositoryShapeConfigCache.getCache().reload(); + * PALRepositoryShapeAttributeCache.getCache().reload(); + * CoeProcessLevelCorrelateCache.getCache().reload(); + * CoeDesignerImageCache.getCache().reload(); + */ + + ro.put("result", "ok"); + } else { + ro.put("result", "error"); + } + return ro; + } + + private String createOutputReport(PALRepositoryModel model, String wsId, String userId, String teamId, String uuid) { + String taskId = ""; + if (model.getMethodId().contains("process.")) { + taskId = PALRepositoryQueryAPIManager.getInstance().createOutputReportPr(wsId, userId, teamId, uuid); + JSONObject object = JSONObject.parseObject(taskId); + if ("ok".equals(object.getString("result"))) { + taskId = object.getJSONObject("data").getString("taskId"); + } + } else if ("data.form".equals(model.getMethodId())) { + taskId = PALRepositoryQueryAPIManager.getInstance().createOutputReportBd(wsId, userId, teamId, uuid); + JSONObject object = JSONObject.parseObject(taskId); + if ("ok".equals(object.getString("result"))) { + taskId = object.getJSONObject("data").getString("taskId"); + } + } else if ("control.policy".equals(model.getMethodId())) { + taskId = PALRepositoryQueryAPIManager.getInstance().createOutputReportZd(wsId, userId, teamId, uuid); + JSONObject object = JSONObject.parseObject(taskId); + if ("ok".equals(object.getString("result"))) { + taskId = object.getJSONObject("data").getString("taskId"); + } + } + return taskId; + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/ProcessEndAfterEvent.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/ProcessEndAfterEvent.java new file mode 100644 index 00000000..9499a013 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/ProcessEndAfterEvent.java @@ -0,0 +1,636 @@ +package com.awspaas.user.apps.app.event; + +import java.sql.Connection; +import java.sql.Timestamp; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang.StringUtils; +import org.dom4j.Document; +import org.dom4j.DocumentException; +import org.dom4j.DocumentHelper; +import org.dom4j.Element; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.bpmn.engine.core.delegate.ProcessExecutionContext; +import com.actionsoft.bpms.bpmn.engine.listener.ExecuteListener; +import com.actionsoft.bpms.bpmn.engine.listener.ExecuteListenerInterface; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.TaskInstance; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.org.model.UserModel; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UUIDGener; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.actionsoft.sdk.local.api.AppAPI; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.awspaas.user.apps.app.util.UtilUrl; + +/** + * 补充发送OA待阅 + * + * @author lihongyu + * @time 2022/11/4 + */ +@SuppressWarnings("all") +public class ProcessEndAfterEvent extends ExecuteListener implements ExecuteListenerInterface { + private String isSendOA = "true"; + + @Override + public String getDescription() { + return "任务完成后补充发送待阅"; + } + + @Override + public String getVersion() { + return "1.0"; + } + + @Override + public void execute(ProcessExecutionContext ext) throws Exception { + ProcessData(ext); + + } + + public void ProcessData(ProcessExecutionContext pec) throws Exception { + System.err.println("====补充推送========>"); + String procesInstId = pec.getProcessInstance().getId(); + BO byProcess = SDK.getBOAPI().getByProcess("BO_EU_PAL_PUBLIC_SUPPLEMENT", procesInstId); + String publshId = byProcess.getString("PUBLISHUSPROSSINSID"); + if (byProcess == null) { + return; + } + // 发布流程发布节点任务Id + String sql = "SELECT ID FROM WFH_TASK WHERE PROCESSINSTID = '" + publshId + + "' AND ACTIVITYDEFID = 'obj_c9e5a3144b200001b68cffa01ed0153e' "; + String taskInd = DBSql.getString(sql); + TaskInstance taskInst = SDK.getTaskAPI().getInstanceById(taskInd); + + BO publishBo = SDK.getBOAPI().getByProcess("BO_ACT_COE_PUBLISH", publshId); + // 发送岗位 + String send_scope_post = publishBo.getString("SEND_SCOPE_POST"); + // 发送组织 + String send_scope_org = publishBo.getString("SEND_SCOPE_ORG"); + + List bo_act_coe_publish_n = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N", true).addQuery("BINDID=", publshId) + .list(); + List bo_act_coe_publish_c = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_C", true).addQuery("BINDID=", publshId) + .list(); + List bo_act_coe_publish_s = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_S", true).addQuery("BINDID=", publshId) + .list(); + + // 获取文件版本ID + ArrayList vessionArr = new ArrayList(); + if (bo_act_coe_publish_n.size() > 0) { + for (BO bo : bo_act_coe_publish_n) { + String plId = bo.getString("PUBLISHFILEID"); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plId); + String versionId = palRepositoryModel.getVersionId(); + String name = palRepositoryModel.getName(); + String wsId = palRepositoryModel.getWsId(); + HashMap map = new HashMap(); + map.put("versionId", versionId); + map.put("name", name); + map.put("wsId", wsId); + vessionArr.add(map); + } + + } + if (bo_act_coe_publish_c.size() > 0) { + for (BO bo : bo_act_coe_publish_c) { + String plId = bo.getString("CHANGEDFILEIDNEW"); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plId); + String versionId = palRepositoryModel.getVersionId(); + String name = palRepositoryModel.getName(); + String wsId = palRepositoryModel.getWsId(); + HashMap map = new HashMap(); + map.put("versionId", versionId); + map.put("name", name); + map.put("wsId", wsId); + vessionArr.add(map); + } + + } + if (bo_act_coe_publish_s.size() > 0) { + for (BO bo : bo_act_coe_publish_s) { + String plId = bo.getString("STOPFILEID"); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plId); + String versionId = palRepositoryModel.getVersionId(); + String name = palRepositoryModel.getName(); + String wsId = palRepositoryModel.getWsId(); + HashMap map = new HashMap(); + map.put("versionId", versionId); + map.put("name", name); + map.put("wsId", wsId); + vessionArr.add(map); + } + + } + String org = ""; + if (vessionArr.size() > 0) { + String sqlM = "SELECT ORGPERM FROM BO_ACT_PUBLISH_PERM_SCOPE WHERE PALVERSIONID = '" + + vessionArr.get(0).get("versionId") + "'"; + org = DBSql.getString(sqlM); + } + + String post = ""; + if (vessionArr.size() > 0) { + String sqlM = "SELECT POSTPERM FROM BO_ACT_PUBLISH_PERM_SCOPE WHERE PALVERSIONID = '" + + vessionArr.get(0).get("versionId") + "'"; + post = DBSql.getString(sqlM); + } + + String level = ""; + if (vessionArr.size() > 0) { + String sqlM = "SELECT LEVELPERM FROM BO_ACT_PUBLISH_PERM_SCOPE WHERE PALVERSIONID = '" + + vessionArr.get(0).get("versionId") + "'"; + level = DBSql.getString(sqlM); + } + + String sendScope = ""; + if (vessionArr.size() > 0) { + String sqlM = "SELECT PERMTYPE FROM BO_ACT_PUBLISH_PERM_SCOPE WHERE PALVERSIONID = '" + + vessionArr.get(0).get("versionId") + "'"; + sendScope = DBSql.getString(sqlM); + } + String newOrg = ""; + String newPost = ""; + String newLevel = ""; + ArrayList arr = new ArrayList(); + StringBuffer postSb = new StringBuffer(); + // 按人员推送 + String fsUserIds = byProcess.getString("PUBLISHTOUSER"); + if (UtilString.isNotEmpty(fsUserIds)) { + String[] split = fsUserIds.split(","); + for (String uid : split) { + arr.add(uid); + UserModel user = SDK.getORGAPI().getUser(uid); + if (user != null) { + String positionNo = user.getPositionNo(); + postSb.append(positionNo).append(","); + } + } + + if (UtilString.isNotEmpty(post)) { + newPost = post + "," + postSb.toString(); + } else { + newPost = postSb.toString(); + } + System.err.println("补充推送岗位权限========》" + newPost); + } else { + // 按部门补充推送 + String depIds = byProcess.getString("PUBLISHTODEPT"); + if (UtilString.isNotEmpty(depIds)) { + if (UtilString.isNotEmpty(org)) { + newOrg = org + "," + depIds; + } else { + newOrg = depIds; + } + System.err.println("补充推送部门权限==========》" + newOrg); + if (UtilString.isNotEmpty(depIds)) { + String[] split = depIds.split(","); + for (String depId : split) { + getUserList(arr, depId); + } + } + } + // 按岗位推送 + String s_post = byProcess.getString("POSTPERM"); + if (UtilString.isNotEmpty(s_post)) { + if (UtilString.isNotEmpty(post)) { + newPost = post + "," + s_post; + } else { + newPost = s_post; + } + System.err.println("补充推送岗位权限==========》" + newOrg); + ArrayList sendPost = sendPost(s_post, arr, publshId); + arr = sendPost; + } + + // 按职级补充推送 + String s_level = byProcess.getString("LEVELPERM"); + if (UtilString.isNotEmpty(s_level)) { + if (UtilString.isNotEmpty(level)) { + newLevel = level + "," + s_level; + } else { + newLevel = s_level; + } + System.err.println("补充推送部门权限==========》" + newOrg); + ArrayList sendLevel = sendLevel(s_level, arr, publshId); + arr = sendLevel; + } + + } + + // 重新添加权限 + if(UtilString.isNotEmpty(newOrg)||UtilString.isNotEmpty(newOrg)||UtilString.isNotEmpty(newOrg)) { + List list = new ArrayList<>(); + for (Map map : vessionArr) { + BO bo = new BO(); + bo.set("PERMID", UUIDGener.getUUID()); + bo.set("WSID", map.get("wsId")); + bo.set("PALVERSIONID", map.get("versionId")); + bo.set("PALNAME", map.get("name")); + bo.set("PERMTYPE", sendScope); + bo.set("ORGPERM", "1".equals(sendScope) ? "" : newOrg); + bo.set("POSTPERM", "1".equals(sendScope) ? "" : newPost); + bo.set("LEVELPERM", "1".equals(sendScope) ? "" : newLevel); + list.add(bo); + String sqlG = "DELETE FROM BO_ACT_PUBLISH_PERM_SCOPE WHERE PALVERSIONID = '"+map.get("versionId")+"'"; + DBSql.update(sqlG); + } + if (list.size() > 0) { + SDK.getBOAPI().create("BO_ACT_PUBLISH_PERM_SCOPE", list, publshId, publishBo.getString("APPLYUSERID")); + SDK.getLogAPI().consoleInfo("[补充发送发布范围权限信息保存至范围权限表]更新成功"); + } + } + + + // 发布流程实例 + ProcessInstance publshInst = SDK.getProcessAPI().getInstanceById(publshId); + BO publishBO = SDK.getBOAPI().getByProcess("BO_ACT_COE_PUBLISH", publshId); + + System.err.println(publshInst.getTitle() + "_补充推送文件开始========>"); + Connection open = DBSql.open(); + // http://localhost:8089/portal/r/or?cmd=com.hy_client_bpm_form_main_page_open&oauthName=oauthLogin&processInstId=3505e654-9217-41cd-a31d-4971846b3219 + /** + * 当流程不等于终止的时候往下走 + */ + if (!"terminate".equals(pec.getProcessInstance().getControlState())) { + try { + + String portalUrl = SDK.getPortalAPI().getPortalUrl(); + String url = portalUrl + "/r/or?cmd=com.yili_process_page&oauthName=oauthLogin&processInstId=" + + publshId + "&taskInstId=" + taskInd; + String mobileurl = "https://bpm.yili.com:8088/portal" + + "/r/or?cmd=com.yili_process_page_phone&corpid=wwb0ae23173b140618&appAgentId=1000014&oauthName=wechat&processInstId=" + + publshId + "&taskInstId=" + taskInd; + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Timestamp endTime = publshInst.getStartTime(); + BO boActCoePublish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", publshId) + .addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + String not_url = "/w?cmd=com.yili_process_page&processInstId=" + publshId + "&taskInstId=" + taskInd; + + execute(pec, boActCoePublish.getString("APPLYUSERNAME"), boActCoePublish.getString("PROCESS_TITLE"), + not_url, boActCoePublish.getString("SEND_SCOPE_ORG"), boActCoePublish.getString("SEND_SCOP"), + boActCoePublish.getString("APPLYDATE"), publshId, boActCoePublish.getString("SEND_SCOPE_POST"), + boActCoePublish.getString("SEND_SCOPE_LEVEL"), "1"); + + JSONObject jsonObject = new JSONObject(new LinkedHashMap()); + jsonObject.put("action", "read"); + jsonObject.put("title", " " + "" + boActCoePublish.getString("PROCESS_TITLE") + ""); + jsonObject.put("dept", SDK.getORGAPI().getDepartmentByUser(taskInst.getTarget()).getNo());// SDK.getORGAPI().getDepartmentByUser(processExecutionContext.getProcessInstance().getCreateUser()).getNo() + String target = taskInst.getTarget(); + target = taskInst.getTarget(); + jsonObject.put("user", target); + // jsonObject.put("user",);//processExecutionContext.getProcessInstance().getCreateUser() + jsonObject.put("date", sdf.format(endTime)); + jsonObject.put("remark", boActCoePublish.getString("PROCESS_TITLE")); + jsonObject.put("status", "0"); + jsonObject.put("dataid", publshId); + jsonObject.put("pcurl", url); + jsonObject.put("mobileurl", mobileurl); + // list.add(1,"00352394"); + // list.add(2,"00352394"); + /** + * 推送待阅文件到OA + */ + if ("true".equals(isSendOA)) { + if (publishBO != null && publshInst != null) { + System.err.println(publshInst.getTitle() + "推送OA待阅执行开始====>"); + long startTime = System.currentTimeMillis(); + System.err.println(publshInst.getTitle() + "待发送人员数量====>" + arr.size()); + for (String uid : arr) { + try { + SendOARead(jsonObject, publshInst, uid); + } catch (Exception e) { + } + } + long endTimes = System.currentTimeMillis(); + // 存入日志 + createReadLog(publshInst, jsonObject, arr, startTime, endTimes); + System.err.println(publshInst.getTitle() + "补充推送OA待阅执行完毕====>" + "用时:" + + (endTimes - startTime) / 1000 / 60 + "分钟" + "_共推送:" + arr.size() + "人"); + } + + } + + } catch (Exception e) { + e.printStackTrace(); + } finally { + open.close(); + } + } + } + + // 发送岗位 + public ArrayList sendPost(String post, ArrayList userList, String processid) { + // 获取岗位 + if (StringUtils.isNotEmpty(post)) { + String posts[] = post.split(","); + // 取并集 + String postss = ""; + if (posts.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + postss = "'" + posts[0] + "'"; + } else { + postss = "'" + StringUtils.join(posts, "','") + "'"; + } + String sql = "select * from ORGUSER where POSITION_NO in (" + postss + ") and userno is not null"; + List maps1 = DBSql.getMaps(sql); + for (RowMap rowMap : maps1) { + String userId = rowMap.getString("USERID"); + if (!userList.contains(userId)) { + userList.add(userId); + } + + } + } + + return userList; + } + + // 发送职级 + public ArrayList sendLevel(String level, ArrayList userList, String processid) { + ArrayList userList_level = new ArrayList(); + // 获取职级 + if (StringUtils.isNotEmpty(level)) { + String ranks[] = level.split(","); + String rankss = ""; + if (ranks.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + rankss = "'" + ranks[0] + "'"; + } else { + rankss = "'" + StringUtils.join(ranks, "','") + "'"; + } + // 取交集 + String sql2 = "select * from ORGUSER where EXT2 in (" + rankss + ") and userno is not null"; + List maps2 = DBSql.getMaps(sql2); + for (RowMap rowMap : maps2) { + String userId = rowMap.getString("USERID"); + if (userList.contains(userId)) { + userList_level.add(userId); + } + + } + } + + return userList_level; + } + + public void getUserList(ArrayList arr, String departmentId) { + // 获取当前部门下人员 + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(departmentId); + for (UserModel userModel : userModelList) { + if (!userModel.isClosed()) { + String uid = userModel.getUID(); + if (!arr.contains(uid)) { + if (!"10033643".equals(uid)) { + // System.err.println("发送人员======>" + uid); } + arr.add(uid); + + } + + } + } + } + // 获取当前部门的子部门人员 + DepartmentModel departmentById = SDK.getORGAPI().getDepartmentById(departmentId); + if (departmentById.isExistSubModelOfCache()) { + getSubDepartments(arr, departmentById); + } + + } + + // 获取子部门人员 + public void getSubDepartments(ArrayList arr, DepartmentModel departmentById) { + if (!departmentById.isClosed()) { + List subDepartments = SDK.getORGAPI().getSubDepartments(departmentById.getId()); + for (DepartmentModel departmentModel : subDepartments) { + if (!departmentModel.isClosed()) { + String id = departmentModel.getId(); + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(id); + for (UserModel userModel : userModelList) { + if (!userModel.isClosed()) { + String uid = userModel.getUID(); + if (!arr.contains(uid)) { + if (!"10033643".equals(uid)) { + // System.err.println("发送人员======>" + uid); } + arr.add(uid); + } + // System.err.println(SDK.getProcessAPI().getInstanceById(processid) + + // "_发送人员======>" + uid); + + } + } + } + // 递归获取子部门下的子部门 + if (SDK.getORGAPI().isExistSubDepartment(id)) { + getSubDepartments(arr, SDK.getORGAPI().getDepartmentById(id)); + } + + } + + } + } + } + + /** + * 创建XPage页面上的待阅文件 + * + * @param processExecutionContext + * @param fileCreateName + * @param fileName + * @param fileurl + * @param readingScope_org + * @param isFullCompany + * @param fileCreateDate + * @param relationProcessinstId + * @param readingScope_post + * @param readingScope_level + * @param fileid + * @return + */ + public boolean execute(ProcessExecutionContext processExecutionContext, String fileCreateName, String fileName, + String fileurl, String readingScope_org, String isFullCompany, String fileCreateDate, + String relationProcessinstId, String readingScope_post, String readingScope_level, String fileid) { + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.awspaas.user.apps.docview/PushFileToXpage"; + // 参数定义列表 + Map params = new HashMap(); + // 发布人,不允许空值,必填 + params.put("fileCreateName", fileCreateName); + // 待阅文件标题名称,不允许空值,必填 + params.put("fileName", fileName); + // 阅读范围_组织,不允许空值,非必填 + params.put("readingScope_org", readingScope_org); + // 是否全公司可见,不允许空值,必填 + params.put("isFullCompany", isFullCompany); + // 待阅文件Url,不允许空值,必填 + params.put("fileurl", fileurl); + // 发布日期,不允许空值,必填 + params.put("fileCreateDate", fileCreateDate); + // 发布流程ID,不允许空值,必填 + params.put("relationProcessinstId", relationProcessinstId); + // 阅读范围_岗位,不允许空值,非必填 + params.put("readingScope_post", readingScope_post); + // 阅读范围_职级,不允许空值,非必填 + params.put("readingScope_level", readingScope_level); + // 待阅文件ID,多个逗号隔开,不允许空值,必填 + params.put("fileid", fileid); + AppAPI appAPI = SDK.getAppAPI(); + // 推送待阅文件到xpage门户 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("ros++++++++=====待阅》》》》》》》》》》" + ro); + return ro.isOk(); + } + + /** + * 发送OA待阅数据 + * + * @param jsonObject + * @param processInstance + * @param results + * @throws DocumentException + */ + public void SendOARead(JSONObject jsonObject, ProcessInstance processInstance, String userId) + throws DocumentException { + // System.err.println(processInstance.getTitle() + "开始发送:" + userId); + if ("".equals(userId) || UtilString.isEmpty(userId)) { + return; + } + jsonObject.put("userList", userId); + String xmlStr = "\n" + + " " + " " + " " + " " + + "" + " " + " " + + " " + ""; + // System.out.println("xmlStr>>>>>>>>" + xmlStr); + String readurl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "readurl"); + + String postSoap = UtilUrl.doPostSoap(readurl, xmlStr, ""); + Document document = DocumentHelper.parseText(postSoap); + Element rootElement = document.getRootElement(); + // System.out.println("rootElement>>>>>>" + rootElement); + Element result = rootElement.element("Body").element("serviceResponse").element("out"); + String resultString = result.getData().toString(); + JSONObject jsonObject1 = JSON.parseObject(resultString); + String datas = jsonObject1.getString("data"); + String status = jsonObject1.getString("status"); + // System.out.println("推送》》》》》》》》》》》" + status); + if ("false".equals(status)) { + System.out.println(processInstance.getTitle() + "待阅推送失败:" + userId); + try { + BO bo = new BO(); + bo.set("TITLE", processInstance.getTitle()); + bo.set("NAME", userId); + bo.set("DEPNAME", SDK.getORGAPI().getUser(userId).getDepartmentId()); + SDK.getBOAPI().create("BO_EU_READ_COUNT", bo, processInstance.getId(), processInstance.getCreateUser()); + } catch (Exception e) { + // TODO: handle exception + } + } else { + // System.out.println(processInstance.getTitle() + "待阅推送成功:" + userId); + JSONArray resultArray = JSONObject.parseArray(datas); + for (int j = 0; j < resultArray.size(); j++) { + JSONObject jsonObject2 = resultArray.getJSONObject(j); + String user = jsonObject2.get("user").toString(); + String dataid = jsonObject2.get("dataid").toString(); + BO bo = new BO(); + bo.set("TITLE", processInstance.getTitle()); + bo.set("PROCESSID", processInstance.getId()); + bo.set("USER_ID", user); + bo.set("USERDEP", SDK.getORGAPI().getUser(user).getDepartmentId()); + bo.set("DATAID", dataid); + bo.set("RESULT", status); + bo.set("SENDTYPE", "3"); + bo.set("READSTATE", "未读"); + bo.set("TYPE", "补充推送"); + SDK.getBOAPI().create("BO_ACT_DATAID", bo, processInstance.getId(), processInstance.getCreateUser()); + } + } + } + + /** + * 创建待阅日志 + * + * @param processExecutionContext + * @param jsonObject + * @param users + * @param startTime + */ + + public void createReadLog(ProcessInstance publshInst, JSONObject jsonObject, ArrayList arr, long startTime, + long endTimes) { + UserContext fromUID = UserContext.fromUID(publshInst.getCreateUser()); + BO bo_Read_log = new BO(); + bo_Read_log.set("USREID", fromUID.getUID()); + bo_Read_log.set("DEPID", fromUID.getDepartmentModel().getId()); + bo_Read_log.set("BUNAME", fromUID.getUserModel().getExt4()); + bo_Read_log.set("TITLE", "补充发送" + jsonObject.get("title")); + bo_Read_log.set("PROCESSID", publshInst.getId()); + bo_Read_log.set("SENDNUM", arr.size()); + + String sqly = "SELECT * FROM BO_ACT_DATAID WHERE PROCESSID = '" + publshInst.getId() + "' AND SENDTYPE = '3'"; + List mapsy = DBSql.getMaps(sqly); + bo_Read_log.set("SENDNUMSJ", mapsy.size()); + BO bo_act_coe_publishs = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true) + .addQuery("BINDID=", publshInst.getId()).addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + String send_scop = bo_act_coe_publishs.getString("SEND_SCOP"); + bo_Read_log.set("SEND_SCOP", ""); + String SEND_SCOPE_ORG = bo_act_coe_publishs.getString("SEND_SCOPE_ORG"); + if (UtilString.isNotEmpty(SEND_SCOPE_ORG)) { + String[] resulr = SEND_SCOPE_ORG.split(","); + bo_Read_log.set("SEND_SCOPE_ORGNUM", 0); + } + String SEND_SCOPE_POST = bo_act_coe_publishs.getString("SEND_SCOPE_POST"); + if (UtilString.isNotEmpty(SEND_SCOPE_POST)) { + String[] resulr = SEND_SCOPE_POST.split(","); + bo_Read_log.set("SEND_SCOPE_POST_NUM", 0); + } + String SEND_SCOPE_LEVEL = bo_act_coe_publishs.getString("SEND_SCOPE_LEVEL"); + if (UtilString.isNotEmpty(SEND_SCOPE_LEVEL)) { + String[] resulr = SEND_SCOPE_LEVEL.split(","); + bo_Read_log.set("SEND_SCOPE_LEVEL_NUM", 0); + } + + bo_Read_log.set("STARTTIMES", startTime); + bo_Read_log.set("ENDTIMES", endTimes); + bo_Read_log.set("TIMECOUNT", (endTimes - startTime) / 1000 + "秒"); + // 文件发布成功回执流程 + ProcessInstance processInst = SDK.getProcessAPI().createProcessInstance("obj_b4700f89a7a144c086d047de0cfe9531", + "admin", jsonObject.get("title") + "成功发布回执单"); + SDK.getBOAPI().create("BO_EU_PAL_PULBISH_SUCCESS", bo_Read_log, processInst, UserContext.fromUID("admin")); + TaskInstance taskInst = SDK.getProcessAPI().start(processInst).fetchActiveTasks().get(0); + SDK.getTaskAPI().completeTask(taskInst.getId(), "admin"); + + } + + // 创建推送日志 + public void createLog(ProcessInstance instanceById, String uids) { + BO bo = new BO();// BO_EU_PAL_SEND_LOG + bo.set("USREID", instanceById.getCreateUser()); + bo.set("TITLE", instanceById.getTitle()); + bo.set("SENDTIME", instanceById.getEndTime()); + bo.set("PROCESSID", instanceById.getId()); + bo.set("USERNAMES", uids); + bo.set("DEPID", UserContext.fromUID(uids).getDepartmentModel().getId()); + bo.set("POSTNAME", UserContext.fromUID(uids).getUserModel().getPositionName()); + bo.set("BUNAME", UserContext.fromUID(uids).getUserModel().getExt2()); + SDK.getBOAPI().createDataBO("BO_EU_PAL_SEND_LOG", bo, UserContext.fromUID("admin")); + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/PublishPALRepository.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/PublishPALRepository.java new file mode 100644 index 00000000..62b57de8 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/PublishPALRepository.java @@ -0,0 +1,84 @@ +package com.awspaas.user.apps.app.event; + +import com.actionsoft.apps.coe.pal.aslp.AslpUtil; +import com.actionsoft.apps.coe.pal.pal.manage.publish.PublishAPIManager; +import com.actionsoft.apps.coe.pal.pal.manage.publish.model.PublishHistoryModel; +import com.actionsoft.apps.coe.pal.pal.manage.publish.model.PublishListHistoryModel; +import com.actionsoft.apps.resource.interop.aslp.ASLP; +import com.actionsoft.apps.resource.interop.aslp.Meta; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.util.UtilString; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; + +import java.sql.Timestamp; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +/** + * @Description 发布指定范围内的流程,该API可以被外部流程调用,完成发布动作 + * @Created by sunlh + * @Date 2020-06-19 + */ +public class PublishPALRepository implements ASLP { + @Override + @Meta(parameter = {"name:'publishInfo',required:true,allowEmpty:false,desc:'发布描述信息,JSONObject格式,包括id、processInstId、wsId、userId、auditorId、publishDate、publishDesc、teamId、publishNew、publishChange、publishStop'","name:'publishList',required:true,allowEmpty:false,desc:'发布清单,JSONArray格式,包括id、palRepositoryId、actionType、publishDesc、taskId、publishDate'"}) + public ResponseObject call(Map params) { + ResponseObject checkParams = AslpUtil.isParamsEmpty(params); + if (checkParams.isErr()) { + return checkParams; + } + if (!params.containsKey("publishInfo")) { + return ResponseObject.newErrResponse().err("publishInfo参数不允许为空!"); + } + String publishInfo = params.get("publishInfo").toString(); + if (UtilString.isEmpty(publishInfo)) { + return ResponseObject.newErrResponse().err("publishInfo参数不允许为空!"); + } + if (!params.containsKey("publishList")) { + return ResponseObject.newErrResponse().err("publishList参数不允许为空!"); + } + String publishList = params.get("publishList").toString(); + if (UtilString.isEmpty(publishList)) { + return ResponseObject.newErrResponse().err("publishList参数不允许为空!"); + } + ResponseObject ro = ResponseObject.newOkResponse(); + try { + // 发布描述信息 + JSONObject publishObj = JSONObject.parseObject(publishInfo); + PublishHistoryModel historyModel = new PublishHistoryModel(); + historyModel.setId(publishObj.getString("id")); + historyModel.setProcessInstId(publishObj.getString("processInstId")); + historyModel.setWsId(publishObj.getString("wsId")); + historyModel.setUserId(publishObj.getString("userId")); + historyModel.setAuditorId(publishObj.getString("auditorId")); + historyModel.setPublishDate((Timestamp) publishObj.getTimestamp("publishDate")); + historyModel.setPublishDesc(publishObj.getString("publishDesc")); + historyModel.setTeamId(publishObj.getString("teamId")); + historyModel.setPublishNew(publishObj.getInteger("publishNew")); + historyModel.setPublishChange(publishObj.getInteger("publishChange")); + historyModel.setPublishStop(publishObj.getInteger("publishStop")); + // 发布清单 + JSONArray publishArr = JSONArray.parseArray(publishList); + List list = new ArrayList<>(); + for (int i = 0; i < publishArr.size(); i++) { + JSONObject object = publishArr.getJSONObject(i); + PublishListHistoryModel model = new PublishListHistoryModel(); + model.setId(object.getString("id")); + model.setPalRepositoryId(object.getString("palRepositoryId")); + model.setActionType(object.getString("actionType")); + model.setPublishDesc(object.getString("publishDesc")); + model.setTaskId(object.getString("taskId")); + model.setPublishDate((Timestamp) object.getTimestamp("publishDate")); + list.add(model); + } + String publishId = PublishAPIManager.getInstance().publishPALRepository(historyModel, list); + ro.put("result", publishId); + return ro; + } catch (Exception e) { + e.printStackTrace(); + return ResponseObject.newErrResponse(e + ""); + } + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/UpateFileStateController.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/UpateFileStateController.java new file mode 100644 index 00000000..5bbeb60a --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/UpateFileStateController.java @@ -0,0 +1,66 @@ +package com.awspaas.user.apps.app.event; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.actionsoft.apps.coe.pal.pal.repository.PALRepositoryQueryAPIManager; +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.server.bind.annotation.Controller; +import com.actionsoft.bpms.server.bind.annotation.Mapping; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.alibaba.fastjson.JSONObject; +/** + * 修改文件状态 + * @author lihongyu + * + */ +@Controller +public class UpateFileStateController { + private static Logger logger = LoggerFactory.getLogger(UpateFileStateController.class); + + // 修改文件发布状态 + @Mapping("com.awspaas.user.apps.app.controller.updatePalFileState_bak") + public ResponseObject checkIsSend(String sid, String plId, String state) { + ResponseObject ro = ResponseObject.newOkResponse(); + int count = 0; + String updataSql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET ISPUBLISH = '" + state + "' WHERE ID = '" + plId + + "'"; + count += DBSql.update(updataSql); + String sqlt = "UPDATE BO_EU_PAL_FILE1 SET FILESTATE = '" + state + "' WHERE FILEID = '" + plId + "'"; + DBSql.update(sqlt); + if (count > 0) { + ro.put("result", "ok"); + } else { + ro.put("result", "error"); + } + return ro; + } + + private String createOutputReport(PALRepositoryModel model, String wsId, String userId, String teamId, String uuid) { + String taskId = ""; + if (model.getMethodId().contains("process.")) { + taskId = PALRepositoryQueryAPIManager.getInstance().createOutputReportPr(wsId, userId, teamId, uuid); + JSONObject object = JSONObject.parseObject(taskId); + if ("ok".equals(object.getString("result"))) { + taskId = object.getJSONObject("data").getString("taskId"); + } + } else if ("data.form".equals(model.getMethodId())) { + taskId = PALRepositoryQueryAPIManager.getInstance().createOutputReportBd(wsId, userId, teamId, uuid); + JSONObject object = JSONObject.parseObject(taskId); + if ("ok".equals(object.getString("result"))) { + taskId = object.getJSONObject("data").getString("taskId"); + } + } else if ("control.policy".equals(model.getMethodId())) { + taskId = PALRepositoryQueryAPIManager.getInstance().createOutputReportZd(wsId, userId, teamId, uuid); + JSONObject object = JSONObject.parseObject(taskId); + if ("ok".equals(object.getString("result"))) { + taskId = object.getJSONObject("data").getString("taskId"); + } + } + return taskId; + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/ReadSendCountJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/ReadSendCountJob.java new file mode 100644 index 00000000..fc91b194 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/ReadSendCountJob.java @@ -0,0 +1,89 @@ +package com.awspaas.user.apps.app.integration.job; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.org.model.UserModel; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; + +/** + * 统计部门下的人员数量 + * + * @author Administrator + * + */ +public class ReadSendCountJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + String depIds = SDK.getJobAPI().getJobParameter(jobExecutionContext); + StringBuffer depNames = new StringBuffer(); + + + if(UtilString.isNotEmpty(depIds)) { + ArrayList arr = new ArrayList(); + //全集团 + if("1".equals(depIds)) { + List departmentsByCompanyId = SDK.getORGAPI().getDepartmentsByCompanyId(1, "8911e732-b42a-4556-853f-ad32761bcbee"); + for (DepartmentModel departmentModel : departmentsByCompanyId) { + getUserList(arr, departmentModel.getId()); + depNames.append(SDK.getORGAPI().getDepartmentById(departmentModel.getId()).getName()); + } + }else { + //具体部门 + String[] split = depIds.split(","); + for (String depId : split) { + getUserList(arr, depId); + depNames.append(SDK.getORGAPI().getDepartmentById(depId).getName()); + } + } + + System.err.println(depNames+"总人数=====>"+arr.size()); + } + + } + + public void getUserList(ArrayList arr, String departmentId) { + // 获取当前部门下人员 + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(departmentId); + for (UserModel userModel : userModelList) { + if(!userModel.isClosed()) { + arr.add(userModel.getUID()); + } + } + // 获取当前部门的子部门人员 + DepartmentModel departmentById = SDK.getORGAPI().getDepartmentById(departmentId); + if(departmentById.isExistSubModelOfCache()) { + getSubDepartments(arr, departmentById); + } + + + + } + //获取子部门人员 + public void getSubDepartments(ArrayList arr,DepartmentModel departmentById) { + if(!departmentById.isClosed()) { + List subDepartments = SDK.getORGAPI().getSubDepartments(departmentById.getId()); + for (DepartmentModel departmentModel : subDepartments) { + String id = departmentModel.getId(); + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(id); + for (UserModel userModel : userModelList) { + if(!userModel.isClosed()) { + arr.add(userModel.getUID()); + } + } + //递归获取子部门下的子部门 + if (SDK.getORGAPI().isExistSubDepartment(id)) { + getSubDepartments(arr,SDK.getORGAPI().getDepartmentById(id)); + } + } + + } + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/SendOAReadByTaskBo.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/SendOAReadByTaskBo.java new file mode 100644 index 00000000..561d2a09 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/SendOAReadByTaskBo.java @@ -0,0 +1,25 @@ +package com.awspaas.user.apps.app.integration.job; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.sdk.local.SDK; + +/** + * 这个是创建未发送待阅的人员合计 + */ +public class SendOAReadByTaskBo implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + String processinstid = SDK.getJobAPI().getJobParameter(jobExecutionContext); + ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(processinstid); + if (instanceById != null) { + System.out.println("手动推送OA待阅开始============》" + instanceById.getTitle()); + String taskid = SDK.getProcessAPI().getInstanceById(processinstid).getStartTaskInstId(); + new sendReadByDataid().execute(processinstid, taskid); + } + + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/SendReadBycontract.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/SendReadBycontract.java new file mode 100644 index 00000000..fe90b104 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/SendReadBycontract.java @@ -0,0 +1,121 @@ +package com.awspaas.user.apps.app.integration.job; + +import java.io.IOException; +import java.io.InputStream; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.List; + +import org.apache.commons.httpclient.HttpClient; +import org.apache.commons.httpclient.HttpException; +import org.apache.commons.httpclient.methods.PostMethod; +import org.apache.commons.httpclient.methods.RequestEntity; +import org.apache.commons.httpclient.methods.StringRequestEntity; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONObject; + +/** + * 以单个流程形式发送OA待阅 + */ +public class SendReadBycontract implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + + try { + readOAtask(); + } catch (HttpException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + } + + public void readOAtask() throws HttpException, IOException { + String slq = "select * from BO_ACT_DATAID where PROCESSID = 'b2c8c0c7-6104-46e4-a82f-f8bec084bc52' AND USER_ID in (select USER_ID from BO_ACT_DATAID where PROCESSID = 'b2c8c0c7-6104-46e4-a82f-f8bec084bc52' group by USER_ID having count (USER_ID) > 1)"; + List maps = DBSql.getMaps(slq); + System.err.println("开始处理重复待阅==============>"+maps.size()); + for (RowMap rowMap : maps) { + String dataId = rowMap.getString("DATAID"); + String processInstId = rowMap.getString("PROCESSID"); + String usercode = rowMap.getString("USER_ID"); + setUserLog(processInstId,usercode,"3"); + JSONObject jsonObject = new JSONObject(); + jsonObject.put("action", "read"); + // String s = httpClientUtil.SendPreview("http://10.119.22.207:80/services/service_lcglpt?wsdl", jsonObject); + jsonObject.put("dataid", dataId); + jsonObject.put("status","1"); + String xmlStr = "\n" + + " " + + " " + + " " + + " " + + "" + + " " + + " " + + " " + + ""; + //HttpClientUtil httpClientUtil = new HttpClientUtil(); + //System.out.println("HttpClient 发送SOAP请求"); + HttpClient client = new HttpClient(); + int timeout = 10000; + String readurl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "readurl"); + PostMethod postMethod = new PostMethod(readurl); + // 设置连接超时 + client.getHttpConnectionManager().getParams().setConnectionTimeout(timeout); + // 设置读取时间超时 + client.getHttpConnectionManager().getParams().setSoTimeout(timeout); + // 然后把Soap请求数据添加到PostMethod中 + RequestEntity requestEntity = new StringRequestEntity(xmlStr, "text/xml", "UTF-8"); + // 设置请求体 + postMethod.setRequestEntity(requestEntity); + int status = client.executeMethod(postMethod); + // 打印请求状态码 + //System.out.println("status:" + status); + // 获取响应体输入流 + //System.out.println("xmlstr=================" + xmlStr); + InputStream is = postMethod.getResponseBodyAsStream(); + //System.out.println("s=================+s" + new String(ByteStreams.toByteArray(is))); + ////System.out.println("s==============>>>>>>>>>>>"+s); + String nums = DBSql.getString("select READNUM from BO_EU_PAL_READ_LOG where PROCESSID = '" + processInstId + "'"); + if (UtilString.isNotEmpty(nums)){ + Integer read_num = Integer.valueOf(nums); + read_num+=1; + DBSql.update("update BO_EU_PAL_READ_LOG set READNUM = '"+read_num+"' where PROCESSID = '"+processInstId+"'"); + } + } + System.err.println("重复待阅处理结束==============>"+maps.size()); + } + + /** + * 用户阅读状态 + * @param userid + * @param logType + */ + public void setUserLog(String processInstId,String userid,String logType) { + System.err.println("用户登录记录存入日志========>"+userid+"_类型:"+logType); + if (UtilString.isNotEmpty(userid)) { + //待阅更新已读记录 + if("3".equals(logType)) { + String dateTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()); + RowMap map = DBSql.getMap("SELECT * FROM BO_ACT_DATAID WHERE PROCESSID = '"+processInstId+"' AND USER_ID = '"+userid+"' AND READSTATE = '已读'"); + if(null!=map) { + int readCount = map.getInt("READCOUNT")+1; + DBSql.update("UPDATE BO_ACT_DATAID SET READSTATE = '已读',READTIMES = '"+dateTime+"',READCOUNT = "+readCount+" WHERE PROCESSID = '"+processInstId+"' AND USER_ID = '"+userid+"'"); + }else { + DBSql.update("UPDATE BO_ACT_DATAID SET READSTATE = '已读',READTIMES = '"+dateTime+"',READCOUNT = 1 WHERE PROCESSID = '"+processInstId+"' AND USER_ID = '"+userid+"'"); + } + } + + } + } +} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/TestSendOARead.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/TestSendOARead.java new file mode 100644 index 00000000..fd94361f --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/TestSendOARead.java @@ -0,0 +1,635 @@ +package com.awspaas.user.apps.app.integration.job; + +import java.sql.Timestamp; +import java.text.SimpleDateFormat; +import java.util.LinkedHashMap; +import java.util.LinkedList; + +import org.dom4j.Document; +import org.dom4j.DocumentHelper; +import org.dom4j.Element; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.TaskInstance; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.awspaas.user.apps.app.util.UtilUrl; + +/** + * 测试发送待阅数据到10056870账户上,杨文军 + */ +public class TestSendOARead implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + String jobParameter = SDK.getJobAPI().getJobParameter(jobExecutionContext); + String taskid = jobParameter.split(",")[1]; + String processid = jobParameter.split(",")[0]; + ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(processid); + TaskInstance taskInstance = SDK.getTaskAPI().getInstanceById(taskid); + String wsId = ""; + JSONArray filed = new JSONArray(new LinkedList<>()); + String portalUrl = SDK.getPortalAPI().getPortalUrl(); + System.out.println("portal======>>>>"+portalUrl); + /*if (portalUrl.equals("http://10.114.11.135:8088/portal")){ + portalUrl = "http://bpm.yili.com:8088/portal/"; + }*/ + try { + + + String url = portalUrl + "/r/or?cmd=com.yili_process_page&oauthName=oauthLogin&processInstId=" + instanceById.getId() + "&taskInstId=" + taskInstance.getId(); + String mobileurl = "https://bpm.yili.com:8088/portal" + "/r/or?cmd=com.yili_process_page_phone&corpid=wwb0ae23173b140618&appAgentId=1000014&oauthName=wechat&processInstId=" + instanceById.getId() + "&taskInstId=" + taskInstance.getId(); + + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Timestamp endTime = instanceById.getStartTime(); + BO boActCoePublish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", instanceById.getId()).detail(); + + +//ProcessExecutionContext processExecutionContext,String fileCreateName,String fileName,String fileurl,String readingScope_org,String isFullCompany,String fileCreateDate,String relationProcessinstId,String readingScope_post,String readingScope_level,String fileid + String not_url = "/w?cmd=com.yili_process_page&processInstId=" + instanceById.getId() + "&taskInstId=" + taskInstance.getId(); + + + JSONObject jsonObject = new JSONObject(new LinkedHashMap()); + jsonObject.put("action", "read"); + jsonObject.put("title", " " + + "" + boActCoePublish.getString("PROCESS_TITLE") + ""); + System.out.println("部门庄户》》》》》》》" + SDK.getORGAPI().getDepartmentByUser(taskInstance.getTarget()).getNo()); + jsonObject.put("dept", SDK.getORGAPI().getDepartmentByUser(taskInstance.getTarget()).getNo());//SDK.getORGAPI().getDepartmentByUser(processExecutionContext.getProcessInstance().getCreateUser()).getNo() + String target = taskInstance.getTarget(); + target = taskInstance.getTarget(); + + System.out.println("当前账户======》》》》" + target); + + jsonObject.put("user", target); + + // jsonObject.put("user",);//processExecutionContext.getProcessInstance().getCreateUser() + jsonObject.put("date", sdf.format(endTime)); + jsonObject.put("remark", boActCoePublish.getString("PROCESS_TITLE")); + jsonObject.put("status", "0"); + jsonObject.put("dataid", instanceById.getId()); + jsonObject.put("pcurl", url); + jsonObject.put("mobileurl", mobileurl); + //list.add(1,"00352394"); + //list.add(2,"00352394"); + /* BO bo_act_coe_publish1 = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", instanceById.getId()).detail(); + String uid = ""; + String new_uid = ""; + if (bo_act_coe_publish1 != null) { + String da = bo_act_coe_publish1.getString("SEND_SCOP"); + + if (da.equals("1")) { + List select_userid_from_orguser = DBSql.getMaps("select USERID from ORGUSER WHERE CLOSED = '0'"); + + for (RowMap row : select_userid_from_orguser + ) { + BO boList = SDK.getBOAPI().query("BO_ACT_DATAID",true).addQuery("PROCESSID=",processid).addQuery("USER_ID=",row.getString("USERID")).detail(); + if (boList==null){ + DepartmentModel departmentModel = SDK.getORGAPI().getDepartmentByUser(row.getString("USERID")); + if(departmentModel.getId().equals("e79281b1-2f81-4895-b30e-9f96e9ad0e2c")||departmentModel.getId().equals("5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe")||departmentModel.getId().equals("a93a7f77-8b11-4261-8770-20b0cdfab315")||departmentModel.getId().equals("a93a7f77-8b11-4261-8770-20b0cdfab315")){ + + }else { + uid += row.getString("USERID") + ","; + } + } + } + } else { + List posts_list = new ArrayList(); + List org_list = new ArrayList(); + if (StringUtils.isNotEmpty(bo_act_coe_publish1.getString("SEND_SCOPE_ORG"))) { + String strs[] = bo_act_coe_publish1.getString("SEND_SCOPE_ORG").split(","); + org_list = Arrays.asList(strs); + } + + if (StringUtils.isNotEmpty(bo_act_coe_publish1.getString("SEND_SCOPE_POST"))) { + String posts[] = bo_act_coe_publish1.getString("SEND_SCOPE_POST").split(","); + posts_list = Arrays.asList(posts); + } + List ranks_list = new ArrayList(); + if (StringUtils.isNotEmpty(bo_act_coe_publish1.getString("SEND_SCOPE_LEVEL"))) { + String ranks[] = bo_act_coe_publish1.getString("SEND_SCOPE_LEVEL").split(","); + ranks_list = Arrays.asList(ranks); + } + + System.out.println("部门id》》》》》》》》》》》》》" + org_list); + System.out.println("posts_list》》》》》》》》》》》》》" + posts_list); + System.out.println("ranks_list》》》》》》》》》》》》》" + ranks_list); + if (org_list.size() != 0 && org_list != null) { + for (String depaartid : org_list + ) { + System.out.println("departid>>>>>>>>>>>>>" + depaartid); + DepartmentModel departmentModel = SDK.getORGAPI().getDepartmentById(depaartid); + boolean existSubModelOfCache = departmentModel.isExistSubModelOfCache(); + System.out.println("是否含有下级?????????????" + existSubModelOfCache); + //判断选中的是否有下级部门 + if (existSubModelOfCache) { + List maps = DBSql.getMaps("SELECT * FROM ORGDEPARTMENT WHERE PARENTDEPARTMENTID = '" + depaartid + "'"); + for (RowMap row : maps + ) { + String id = row.getString("ID"); + DepartmentModel model = SDK.getORGAPI().getDepartmentById(id); + + if (model.isExistSubModelOfCache()) { + //有下级部门的选中有下级部门 + List rowMapList = DBSql.getMaps("SELECT * FROM ORGDEPARTMENT WHERE PARENTDEPARTMENTID = '" + id + "'"); + for (RowMap wo : + rowMapList) { + String ids = wo.getString("ID"); + DepartmentModel model1 = SDK.getORGAPI().getDepartmentById(ids); + if (model1.isExistSubModelOfCache()) { + List rowMapLists = DBSql.getMaps("SELECT * FROM ORGDEPARTMENT WHERE PARENTDEPARTMENTID = '" + ids + "'"); + for (RowMap wsa : + rowMapLists) { + String wsaString = wsa.getString("ID"); + DepartmentModel model2 = SDK.getORGAPI().getDepartmentById(wsaString); + if (model2.isExistSubModelOfCache()) { + List rowMapList1 = DBSql.getMaps("SELECT * FROM ORGDEPARTMENT WHERE PARENTDEPARTMENTID = '" + wsaString + "'"); + for (RowMap rows : + rowMapList1) { + String rowsString = rows.getString("ID"); + DepartmentModel model3 = SDK.getORGAPI().getDepartmentById(rowsString); + if (model3.isExistSubModelOfCache()) { + List rowMapList2 = DBSql.getMaps("SELECT * FROM ORGDEPARTMENT WHERE PARENTDEPARTMENTID = '" + rowsString + "'"); + for (RowMap ormap : + rowMapList2) { + String rowsString1 = ormap.getString("ID"); + DepartmentModel model4 = SDK.getORGAPI().getDepartmentById(rowsString1); + if (model4.isExistSubModelOfCache()) { + List rowMaps = DBSql.getMaps("SELECT * FROM ORGDEPARTMENT WHERE PARENTDEPARTMENTID = '" + rowsString1 + "'"); + for (RowMap owmapr : + rowMaps) { + String row_id = owmapr.getString("ID"); + DepartmentModel model5 = SDK.getORGAPI().getDepartmentById(row_id); + if (model5.isExistSubModelOfCache()) { + List rowMapList3 = DBSql.getMaps("SELECT * FROM ORGDEPARTMENT WHERE PARENTDEPARTMENTID = '" + row_id + "'"); + for (RowMap owzmap : + rowMapList3) { + String idsa = owzmap.getString("ID"); + DepartmentModel model6 = SDK.getORGAPI().getDepartmentById(idsa); + if (model6.isExistSubModelOfCache()) { + + } else { + List allUsersByDepartments = SDK.getORGAPI().getAllUsersByDepartment(idsa); + for (UserModel user : allUsersByDepartments + ) { + if (posts_list.size() != 0 && ranks_list.size() != 0) { + if (posts_list.contains(user.getPositionNo()) && ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() != 0 && ranks_list.size() == 0) { + if (posts_list.contains(user.getPositionNo())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() == 0 && ranks_list.size() != 0) { + if (ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else { + uid += user.getUID() + ","; + } + } + } + } + } else { + List allUsersByDepartments = SDK.getORGAPI().getAllUsersByDepartment(row_id); + for (UserModel user : allUsersByDepartments + ) { + if (posts_list.size() != 0 && ranks_list.size() != 0) { + if (posts_list.contains(user.getPositionNo()) && ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() != 0 && ranks_list.size() == 0) { + if (posts_list.contains(user.getPositionNo())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() == 0 && ranks_list.size() != 0) { + if (ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else { + uid += user.getUID() + ","; + } + } + } + } + } else { + List allUsersByDepartments = SDK.getORGAPI().getAllUsersByDepartment(rowsString1); + for (UserModel user : allUsersByDepartments + ) { + if (posts_list.size() != 0 && ranks_list.size() != 0) { + if (posts_list.contains(user.getPositionNo()) && ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() != 0 && ranks_list.size() == 0) { + if (posts_list.contains(user.getPositionNo())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() == 0 && ranks_list.size() != 0) { + if (ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else { + uid += user.getUID() + ","; + } + } + } + } + } else { + List allUsersByDepartments = SDK.getORGAPI().getAllUsersByDepartment(rowsString); + for (UserModel user : allUsersByDepartments + ) { + if (posts_list.size() != 0 && ranks_list.size() != 0) { + if (posts_list.contains(user.getPositionNo()) && ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() != 0 && ranks_list.size() == 0) { + if (posts_list.contains(user.getPositionNo())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() == 0 && ranks_list.size() != 0) { + if (ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else { + uid += user.getUID() + ","; + } + } + } + } + } else { + List allUsersByDepartments = SDK.getORGAPI().getAllUsersByDepartment(wsaString); + for (UserModel user : allUsersByDepartments + ) { + if (posts_list.size() != 0 && ranks_list.size() != 0) { + if (posts_list.contains(user.getPositionNo()) && ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() != 0 && ranks_list.size() == 0) { + if (posts_list.contains(user.getPositionNo())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() == 0 && ranks_list.size() != 0) { + if (ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else { + uid += user.getUID() + ","; + } + } + } + } + } else { + List allUsersByDepartments = SDK.getORGAPI().getAllUsersByDepartment(ids); + for (UserModel user : allUsersByDepartments + ) { + if (posts_list.size() != 0 && ranks_list.size() != 0) { + if (posts_list.contains(user.getPositionNo()) && ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() != 0 && ranks_list.size() == 0) { + if (posts_list.contains(user.getPositionNo())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() == 0 && ranks_list.size() != 0) { + if (ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else { + uid += user.getUID() + ","; + } + } + } + } + } else { + List allUsersByDepartments = SDK.getORGAPI().getAllUsersByDepartment(id); + for (UserModel user : allUsersByDepartments + ) { + if (posts_list.size() != 0 && ranks_list.size() != 0) { + if (posts_list.contains(user.getPositionNo()) && ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() != 0 && ranks_list.size() == 0) { + if (posts_list.contains(user.getPositionNo())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() == 0 && ranks_list.size() != 0) { + if (ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else { + uid += user.getUID() + ","; + } + } + } + } + } else { + //选中的没有下级部门 + List allUsersByDepartment = SDK.getORGAPI().getAllUsersByDepartment(depaartid); + for (UserModel user : allUsersByDepartment + ) { + System.out.println("user.getExt2())???????????" + user.getExt2()); + System.out.println("posts_list》》》》》》》》》das" + (posts_list.size() != 0)); + System.out.println("123123》》》》》》》》》》" + (ranks_list.size() != 0)); + if (posts_list.size() != 0 && ranks_list.size() != 0) { + if (posts_list.contains(user.getPositionNo()) && ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() != 0 && ranks_list.size() == 0) { + if (posts_list.contains(user.getPositionNo())) { + + uid += user.getUID() + ","; + } + } else if (posts_list.size() == 0 && ranks_list.size() != 0) { + if (ranks_list.contains(user.getExt2())) { + + uid += user.getUID() + ","; + } + } else { + uid += user.getUID() + ","; + } + } + } + + } + } + if (org_list.size() == 0 || org_list == null) { + String posts = ""; + String levels = ""; + if (posts_list.size() != 0 && ranks_list.size() != 0) { + String[] post = bo_act_coe_publish1.getString("SEND_SCOPE_POST").split(","); + String[] level = bo_act_coe_publish1.getString("SEND_SCOPE_LEVEL").split(","); + if (post.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + posts = "'" + post[0] + "'"; + } else { + posts = "'" + StringUtils.join(post, "','") + "'"; + } + if (level.length == 1) { + levels = "'" + level[0] + "'"; + } else { + levels = "'" + StringUtils.join(level, "','") + "'"; + } + List maps = DBSql.getMaps("select USERID from ORGUSER where POSITION_NO in(" + posts + ") and EXT2 in (" + levels + ")"); + for (RowMap map : maps + ) { + uid += map.getString("USERID") + ","; + } + } else if (posts_list.size() != 0 && ranks_list.size() == 0) { + String[] post = bo_act_coe_publish1.getString("SEND_SCOPE_POST").split(","); + if (post.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + posts = "'" + post[0] + "'"; + } else { + posts = "'" + StringUtils.join(post, "','") + "'"; + } + List maps = DBSql.getMaps("select USERID from ORGUSER where POSITION_NO in(" + posts + ")"); + for (RowMap map : maps + ) { + uid += map.getString("USERID") + ","; + } + } else if (posts_list.size() == 0 && ranks_list.size() != 0) { + String[] level = bo_act_coe_publish1.getString("SEND_SCOPE_LEVEL").split(","); + + if (level.length == 1) { + levels = "'" + level[0] + "'"; + } else { + levels = "'" + StringUtils.join(level, "','") + "'"; + } + List maps = DBSql.getMaps("select USERID from ORGUSER where EXT2 in (" + levels + ")"); + for (RowMap map : maps + ) { + uid += map.getString("USERID") + ","; + } + } + + } + } + System.out.println("userid》》》》》》》》》》》》》》》》》》》" + uid); + if (StringUtils.isNotEmpty(uid + )) { + uid = uid.substring(0, uid.length() - 1); + String[] split = uid.split(","); + + List list = new ArrayList(Arrays.asList(split)); + + HashSet h = new HashSet(list); + list.clear(); + list.addAll(h); + for (String userid : list + ) { + + System.out.println("当前账户======》》》》" + userid); + // BO boEuOaReson = SDK.getBOAPI().query("BO_EU_OA_RESON", true).addQuery("WORKCODE=", userid).detail(); + // if (boEuOaReson!=null){ + new_uid += userid + ","; + // } + + } + } + } + + if (StringUtils.isNotEmpty(new_uid + )) { + new_uid = new_uid.substring(0, new_uid.length() - 1); + }*/ + + /*System.out.println("new_userid ==========>>>>>>>>>"+new_uid); + String[] users = new_uid.split(","); + int length = 300; + int ys = users.length%length; + if (ys==0) { + int size = users.length/length; + int flag = 0; + for (int i=0;i\n" + + " " + + " " + + " " + + " " + + ""+ + " " + + " " + + " " + + ""; + System.out.println("xmlStr>>>>>>>>"+xmlStr); + String postSoap = UtilUrl.doPostSoap("http://10.105.1.59:80/services/service_lcglpt", xmlStr, ""); + Document document = DocumentHelper.parseText(postSoap); + Element rootElement = document.getRootElement(); + System.out.println("rootElement>>>>>>"+rootElement); + Element result = rootElement.element("Body").element("serviceResponse").element("out"); + String resultString = result.getData().toString(); + JSONObject jsonObject1 = JSON.parseObject(resultString); + String datas = jsonObject1.getString("data"); + String status = jsonObject1.getString("status"); + System.out.println("状态是什么》》》》》》》》》》》"+status); + JSONArray resultArray = JSONObject.parseArray(datas); + for (int j=0;j\n" + + " " + + " " + + " " + + " " + + ""+ + " " + + " " + + " " + + ""; + System.out.println("xmlStr>>>>>>>>"+xmlStr); + String postSoap = UtilUrl.doPostSoap("http://10.105.1.59:80/services/service_lcglpt", xmlStr, ""); + Document document = DocumentHelper.parseText(postSoap); + Element rootElement = document.getRootElement(); + System.out.println("rootElement>>>>>>"+rootElement); + Element result = rootElement.element("Body").element("serviceResponse").element("out"); + String resultString = result.getData().toString(); + JSONObject jsonObject1 = JSON.parseObject(resultString); + String datas = jsonObject1.getString("data"); + String status = jsonObject1.getString("status"); + System.out.println("状态是什么》》》》》》》》》》》"+status); + JSONArray resultArray = JSONObject.parseArray(datas); + for (int j=0;j\n" + + " " + + " " + + " " + + " " + + ""+ + " " + + " " + + " " + + ""; + System.out.println("xmlStr>>>>>>>>"+xmlStr); + String postSoap = UtilUrl.doPostSoap("http://10.105.1.59:80/services/service_lcglpt", xmlStr, ""); + Document document = DocumentHelper.parseText(postSoap); + Element rootElement = document.getRootElement(); + System.out.println("rootElement>>>>>>"+rootElement); + Element result = rootElement.element("Body").element("serviceResponse").element("out"); + String resultString = result.getData().toString(); + JSONObject jsonObject1 = JSON.parseObject(resultString); + String datas = jsonObject1.getString("data"); + String status = jsonObject1.getString("status"); + System.out.println("状态是什么》》》》》》》》》》》"+status); + JSONArray resultArray = JSONObject.parseArray(datas); + for (int j=0;j\n" + + " " + + " " + + " " + + " " + + ""+ + " " + + " " + + " " + + ""; + System.out.println("xmlStr>>>>>>>>"+xmlStr); + String readurl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "readurl"); + + String postSoap = UtilUrl.doPostSoap(readurl, xmlStr, ""); + Document document = DocumentHelper.parseText(postSoap); + Element rootElement = document.getRootElement(); + System.out.println("rootElement>>>>>>"+rootElement); + Element result = rootElement.element("Body").element("serviceResponse").element("out"); + String resultString = result.getData().toString(); + JSONObject jsonObject1 = JSON.parseObject(resultString); + String datas = jsonObject1.getString("data"); + String status = jsonObject1.getString("status"); + System.out.println("状态是什么》》》》》》》》》》》"+status); + JSONArray resultArray = JSONObject.parseArray(datas); + for (int j=0;j>>>>job执行开始"); + SDK.getLogAPI().consoleInfo(">>>>>init岗位执行开始"); + long startTime = System.currentTimeMillis(); //获取开始时间 + initUser(); + long endTime = System.currentTimeMillis(); //获取结束时间 + System.out.println("程序运行时间:" + (endTime - startTime)/1000/60 + "min"); //输出程序运行时间 + SDK.getLogAPI().consoleInfo(">>>>>init岗位执行结束"); + SDK.getLogAPI().consoleInfo(">>>>>job执行结束"); + OrgCache.reloadOrgCahce(); + + } + + + /** + * 初始化岗位 + * + * @return + */ + public static String initUser() { + role_id = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "default_role_id"); + String url = "http://10.105.1.115:8081/MDM/ESB_MDM_ALL_QuyMdmInfoSelectSrv"; + // String url = "http://10.119.254.52:9001/MDM/ESB_MDM_ALL_QuyMdmInfoSelectSrv"; + // 加入分页 + int num = 0; + int count = 0; + int pageNum = 300;// 暂定320页 + int pageSize = 300;// 一页300条记录 + Connection conn = null; + try { + conn = DBSql.open(); + for (int i = 1; i <= pageNum; i++) { + System.out.println(">>>>>>>>>>>>>>>同步岗位第" + i + "页开始"); + // 增量同步,修改一个月之内的 + // System.err.println("---------------"+init_flag); + + //String whereStr = "NEFF_STATUS = 'I'\n"; + String whereStr = "N\n"; + if (init_flag) { + whereStr = " Y\n" + " \n" + + " LAST_UPDATE_TIME BETWEEN SYSDATE -1 AND SYSDATE "; + } + + String xmlData = "\n" + + " \n" + " \n" + " \n" + + " \n" + " \n" + + " \n" + " " + i + "\n" + + " \n" + " Y\n" + + " \n" + " " + pageSize + "\n" + + " \n" + " LCGLPT\n" + + " \n" + " V_GET_POSITION\n" + + " \n" + whereStr + " \n" + + " \n" + " \n" + ""; + String postSoap = UtilUrl.doPostSoap(url, xmlData, ""); + Document document = DocumentHelper.parseText(postSoap); + Element rootElement = document.getRootElement(); + Element result = rootElement.element("Body").element("getMdmInfoBySelectRequestResponse") + .element("return"); + // String pageSizes = result.element("pageSize").getData().toString(); + // System.err.println("pageSizes========"+pageSizes); + String resultString = result.element("resultJson").getData().toString(); + // String resultNum = result.element("totalRecord").getData().toString(); + JSONArray resultArray = JSONObject.parseArray(resultString); + count += resultArray.size(); + if (resultArray.size() > 0) { + SDK.getLogAPI().consoleInfo(">>>>>遍历岗位第" + i + "页数据:" + resultArray.size()); + int createUser = createPost(resultArray, conn); + num += createUser; + } else { + break; + } + } + } catch (Exception e) { + e.printStackTrace(); + } finally { + try { + conn.close(); + } catch (SQLException throwables) { + throwables.printStackTrace(); + } + } + + SDK.getLogAPI().consoleInfo("本次共同步岗位数据:" + num + "条"); + return ""; + } + + + + /** + * 新增或更新岗位 + * + * @param resultArray + * @param conn + */ + public static int createPost(JSONArray resultArray, Connection conn) { + int count = 0; + for (Object o : resultArray) { + JSONObject resultJson = JSONObject.parseObject(o.toString()); + String postId = resultJson.getString("POSITION_NBR");// 职位编码 + String sqt = "SELECT * FROM BO_EU_ORG_POSTS WHERE POSITION_NBR ='" + postId + "'"; + RowMap map = DBSql.getMap(sqt); + int createData = createData(resultJson, map); + if(createData>0) { + count++; + } + + } + return count; + + } + + public static int createData(JSONObject resultJson, RowMap map) { + ORGAPI orgapi = SDK.getORGAPI(); + BO bo = new BO(); + if(map!=null) { + bo= SDK.getBOAPI().get("BO_EU_ORG_POSTS", map.getString("ID")); + } + String outerId = resultJson.getString("DEPTID");// 部门id + String status = resultJson.getString("EFF_STATUS"); + String postId = resultJson.getString("POSITION_NBR");// 岗位ID + Map innerMap = resultJson.getInnerMap(); + String sql = "SELECT ID FROM ORGDEPARTMENT WHERE OUTERID = '" + outerId + "'"; + String deId = DBSql.getString(sql); + innerMap.remove("DEPTID"); + innerMap.put("OUTERID", outerId); + if(UtilString.isEmpty(status)) { + innerMap.put("STATUS", "空"); + System.err.println("更新岗位时使用状态为空===>" + postId+"__使用状态===>"+status); + }else { + innerMap.put("STATUS", status); + } + if (UtilString.isNotEmpty(deId)) { + innerMap.put("DEPTID", deId); + DepartmentModel departmentById = orgapi.getDepartmentById(deId); + if (null != departmentById) { + innerMap.put("DEPTNAME", departmentById.getName()); + String parentDepartmentId = departmentById.getParentDepartmentId(); + innerMap.put("DEPTPEID", parentDepartmentId); + if ("0".equals(parentDepartmentId)) { + innerMap.put("DEPTPENAME", "内蒙古伊利实业集团股份有限公司"); + } else { + innerMap.put("DEPTPENAME", orgapi.getDepartmentById(parentDepartmentId).getName()); + } + } + } + bo.setAll(innerMap); + if(map!=null) { + int update = SDK.getBOAPI().update("BO_EU_ORG_POSTS", bo); + if (update > 0) { + if ("A".equals(status)) { + //System.err.println("更新的岗位===>" + postId+"__使用状态===>"+status); + } else { + System.err.println("注销的岗位===>" + postId+"__使用状态===>"+status); + + } + } + return update; + }else { + int createDataBO = 0; + if("A".equals(status)) { + createDataBO = SDK.getBOAPI().createDataBO("BO_EU_ORG_POSTS", bo, UserContext.fromUID("admin")); + if(createDataBO>0) { + System.err.println("新增的岗位======>" + postId); + } + } + return createDataBO; + } + } + + /** + * 岗位是否存在 + * @return + */ + public static String getPosts(String postId, Connection conn){ + String selectUserSql = " SELECT ID FROM ORGROLE WHERE ROLENO = ? "; + String userId = DBSql.getString(conn, selectUserSql, new Object[]{postId}); + return userId; + + } + + + + /** + * 根据外部Id获取部门Id + * + * @return + */ + public static String getDeptIdByOuterId(String org_code, Connection conn) { + String selectDeptSql = " SELECT ID FROM ORGDEPARTMENT WHERE OUTERID = ? "; + String currentId = DBSql.getString(conn, selectDeptSql, new Object[]{org_code}); + return currentId; + } + + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/UpdateOaReadJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/UpdateOaReadJob.java new file mode 100644 index 00000000..1d201e08 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/UpdateOaReadJob.java @@ -0,0 +1,47 @@ +package com.awspaas.user.apps.app.integration.job; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONObject; +import com.awspaas.user.apps.app.util.UtilUrl; + +/** + * 手动更新OA待阅为已阅 + * + * + * @author Administrator + * + */ +public class UpdateOaReadJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + String dataid = SDK.getJobAPI().getJobParameter(jobExecutionContext); + String sql = "SELECT PROCESSID FROM BO_ACT_DATAID WHERE DATAID = '"+dataid+"'"; + String processInstId = DBSql.getString(sql); + JSONObject jsonObject = new JSONObject(); + jsonObject.put("status", "1"); + jsonObject.put("action", "read"); + jsonObject.put("dataid", dataid); + String xmlStr = "\n" + + " " + " " + " " + + " " + "" + " " + + " " + " " + ""; + int timeout = 10000; + String readurl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "readurl"); + String s = UtilUrl.doPostSoap(readurl, xmlStr, ""); + System.err.println(dataid+"_手动更新OA待阅=======>"+s); + String nums = DBSql.getString( + "select READNUM from BO_EU_PAL_READ_LOG where PROCESSID = '" + processInstId + "'"); + if (UtilString.isNotEmpty(nums)) { + Integer read_num = Integer.valueOf(nums); + read_num += 1; + DBSql.update("update BO_EU_PAL_READ_LOG set READNUM = '" + read_num + "' where PROCESSID = '" + + processInstId + "'"); + } + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/sendReadByDataid.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/sendReadByDataid.java new file mode 100644 index 00000000..32787e86 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/sendReadByDataid.java @@ -0,0 +1,1505 @@ +package com.awspaas.user.apps.app.integration.job; + +import java.sql.Timestamp; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; +import java.util.HashMap; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.apache.commons.lang.StringUtils; +import org.dom4j.Document; +import org.dom4j.DocumentException; +import org.dom4j.DocumentHelper; +import org.dom4j.Element; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.output.constant.OutputConst; +import com.actionsoft.apps.coe.pal.pal.output.dao.OutputTask; +import com.actionsoft.apps.coe.pal.pal.output.extend.OutputAppManager; +import com.actionsoft.apps.coe.pal.pal.output.extend.OutputAppProfile; +import com.actionsoft.apps.coe.pal.pal.output.model.OutputTaskModel; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.model.UpfileModel; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.web.UpfileWeb; +import com.actionsoft.apps.resource.plugin.profile.DCPluginProfile; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.bpmn.engine.core.delegate.ProcessExecutionContext; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.TaskInstance; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.login.constant.LoginConst; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.org.model.UserModel; +import com.actionsoft.bpms.server.SSOUtil; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.server.fs.DCContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.emm.util.AesUtil; +import com.actionsoft.exception.AWSException; +import com.actionsoft.sdk.local.SDK; +import com.actionsoft.sdk.local.api.AppAPI; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.awspaas.user.apps.app.util.DownloadUtil; +import com.awspaas.user.apps.app.util.HttpUtil; +import com.awspaas.user.apps.app.util.UtilUrl; +@SuppressWarnings("all") +public class sendReadByDataid { + private String isSendEHSQ = "false"; + private String isSendOA = "true"; + private String isSendKMS = "true"; + public void execute(String processid, String taskid) throws JobExecutionException { + ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(processid); + TaskInstance taskInstance = SDK.getTaskAPI().getInstanceById(taskid); + String wsId = ""; + JSONArray filed = new JSONArray(new LinkedList<>()); + String portalUrl = SDK.getPortalAPI().getPortalUrl(); + //System.out.println("portal======>>>>"+portalUrl); + /*if (portalUrl.equals("http://10.114.11.135:8088/portal")){ + portalUrl = "http://bpm.yili.com:8088/portal/"; + }*/ + try { + + String url = portalUrl + "/r/or?cmd=com.yili_process_page&oauthName=oauthLogin&processInstId=" + instanceById.getId() + "&taskInstId=" + taskInstance.getId(); + String mobileurl = "https://bpm.yili.com:8088/portal" + "/r/or?cmd=com.yili_process_page_phone&corpid=wwb0ae23173b140618&appAgentId=1000014&oauthName=wechat&processInstId=" + instanceById.getId() + "&taskInstId=" + taskInstance.getId(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Timestamp endTime = instanceById.getStartTime(); + BO boActCoePublish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", instanceById.getId()).addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + String not_url = "/w?cmd=com.yili_process_page&processInstId=" + instanceById.getId() + "&taskInstId=" + taskInstance.getId(); + JSONObject jsonObject = new JSONObject(new LinkedHashMap()); + jsonObject.put("action", "read"); + jsonObject.put("title", " " + + "" + boActCoePublish.getString("PROCESS_TITLE") + ""); + //System.out.println("部门庄户》》》》》》》" + SDK.getORGAPI().getDepartmentByUser(taskInstance.getTarget()).getNo()); + jsonObject.put("dept", SDK.getORGAPI().getDepartmentByUser(taskInstance.getTarget()).getNo());//SDK.getORGAPI().getDepartmentByUser(processExecutionContext.getProcessInstance().getCreateUser()).getNo() + String target = taskInstance.getTarget(); + target = taskInstance.getTarget(); + + //System.out.println("当前账户======》》》》" + target); + + jsonObject.put("user", target); + + // jsonObject.put("user",);//processExecutionContext.getProcessInstance().getCreateUser() + jsonObject.put("date", sdf.format(endTime)); + jsonObject.put("remark", boActCoePublish.getString("PROCESS_TITLE")); + jsonObject.put("status", "0"); + jsonObject.put("dataid", instanceById.getId()); + jsonObject.put("pcurl", url); + jsonObject.put("mobileurl", mobileurl); + //list.add(1,"00352394"); + //list.add(2,"00352394"); + BO bo_act_coe_publish1 = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", processid).addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + + /** + * 这块的判断主要是将组织,岗位,职级进行合并集进行相关的判断获取人员账户合集 + */ + //BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", instanceById.getId()).addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + //流程发布的新增发布 + List bo_act_coe_publish_n = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N", true).addQuery("BINDID=", instanceById.getId()).list(); + List bo_act_coe_publish_c = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_C", true).addQuery("BINDID=", instanceById.getId()).list(); + List bo_act_coe_publish_s = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_S", true).addQuery("BINDID=", instanceById.getId()).list(); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + + JSONArray jsonArray = new JSONArray(); + + + /** + * 推送待阅文件到OA + */ + if ("true".equals(isSendOA)) { + if (bo_act_coe_publish1 != null && instanceById != null) { + System.err.println(instanceById.getTitle() + "推送OA待阅执行开始====>"); + long startTime = System.currentTimeMillis(); + ArrayList sendList = new ArrayList(); + // 发送全集团 + if ("1".equals(bo_act_coe_publish1.getString("SEND_SCOP"))) { + // 系统人员 + ArrayList userList1 = new ArrayList(); + try { + userList1 = getUser(jsonObject, "5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe", "0", + instanceById.getId()); + } catch (Exception e) { + // TODO: handle exception + } + //System.err.println("系统人员=====>" + userList1); + // 项目开发人员 + ArrayList userList2 = new ArrayList(); + try { + userList2 = getUser(jsonObject, "e79281b1-2f81-4895-b30e-9f96e9ad0e2c", "0", + instanceById.getId()); + } catch (Exception e) { + // TODO: handle exception + } + //System.err.println("项目开发人员=====>" + userList2); + // 离退人员 + ArrayList userList3 = new ArrayList(); + try { + userList3 = getUser(jsonObject, "65048aee-157f-49f2-a2dc-5903dd26f519", "0", + instanceById.getId()); + } catch (Exception e) { + // TODO: handle exception + } + //System.err.println("离退人员=====>" + userList3); + List maps = DBSql.getMaps("SELECT * FROM ORGUSER WHERE CLOSED = '0'"); + for (RowMap rowMap : maps) { + String userId = rowMap.getString("USERID"); + // RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '" + // + instanceById.getId() + "' AND USER_ID = '" + userId + "'"); + if (!"10033643".equals(userId) && !userList1.contains(userId) + && !userList2.contains(userId) && !userList3.contains(userId)) { + sendList.add(userId); + } + } + } else { + // 发送组织岗位职级 + sendList = getSendList(instanceById, bo_act_coe_publish1, jsonObject); + + } + long countTime = System.currentTimeMillis(); + System.err.println(instanceById.getTitle() + "待发送人员数量====>" + sendList.size() + " 计算用时===>" + + (countTime - startTime) + "毫秒"); + + DBSql.update("DELETE FROM BO_EU_OASEND_LOST"); + int count = 0; + for (String user : sendList) { + count++; + boolean closed = SDK.getORGAPI().getUser(user).isClosed(); + RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '"+processid+"' AND USER_ID = '"+user+"'"); + System.err.println("======遍历第======>"+count); + if(!closed&&map==null) { + //System.err.println("======user======="+user); + BO bo = new BO(); + bo.set("TITLE", instanceById.getTitle()); + bo.set("USERID", user); + String departmentId = SDK.getORGAPI().getUser(user).getDepartmentId(); + DepartmentModel departmentById = SDK.getORGAPI().getDepartmentById(departmentId); + bo.set("DEPT",departmentById.getPathNameOfCache()); + SDK.getBOAPI().createDataBO("BO_EU_OASEND_LOST", bo, UserContext.fromUID("admin")); + //SendOARead(jsonObject, instanceById, user, "手动执行推送"); + } + + } + + // 二次推送 + + List List = DBSql.getMaps("SELECT NAME FROM BO_EU_READ_COUNT WHERE PROCESSID = '" + + instanceById.getId() + "' AND RESULT = '待处理'"); + if (List.size() != 0) { + System.err.println(instanceById.getTitle() + "批量推送失败后执行二次推送=======>" + List.size()); + for (RowMap rowMap : List) { + try { + ArrayList userList3 = new ArrayList(); + String userIds = rowMap.getString("NAME"); + System.err.println(instanceById.getTitle() + "二次推送账号=======>" + userList3); + //SendOARead(jsonObject, instanceById, userIds, "单个账号推送"); + } catch (Exception e) { // TODO: handle exception + } + } + } + + long endTimes = System.currentTimeMillis(); + // 存入日志 + createReadLog(instanceById, jsonObject, sendList, startTime, endTimes); + System.err.println(instanceById.getTitle() + "推送OA待阅执行完毕====>" + "用时:" + + (endTimes - startTime) / 1000 / 60 + "分钟"); + } + + } + + + + } catch (Exception e) { + e.printStackTrace(); + }/*finally { + AttrSynAslp(instanceById,wsId,filed); + }*/ + + } + /** + * 创建附件及文件 + * + * @param processExecutionContext + * @param bo_name + * @param userContext + * @param cardId + * @param fileid + */ + public void creadteFile(ProcessExecutionContext processExecutionContext, String bo_name, UserContext userContext, + String cardId, String fileid) { + /** + * 这个主要是负责对流程手册进行相关的文件的生成 + */ + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); +// aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/CreateFile"; + + if (StringUtils.isNotEmpty(cardId)) { + String sql_ext4 = "select * from APP_ACT_COE_PAL_REPOSITORY where EXT4 = '" + cardId + "'"; + RowMap map = DBSql.getMap(sql_ext4); + System.out.println("maps======>>>>>>>" + map); + System.out.println("fileid==》》》》" + fileid); + System.out.println("id==》》》》" + map.getString("ID")); + RowMap rowMap = DBSql + .getMap("SELECT * FROM " + bo_name + " where " + fileid + " '" + map.getString("ID") + "'"); + // BO bos = + // SDK.getBOAPI().query(bo_name,true).addQuery(fileid,"17e7d198-1656-4a2c-8912-a81850170be9").detail(); + if (rowMap != null) { + + if (StringUtils.isNotEmpty(rowMap.getString("TASKID"))) { + + OutputTaskModel model = new OutputTask().getTaskReportById(rowMap.getString("TASKID")); + if (model != null) { + System.out.println(",pdel============" + model); + System.out.println("123313123123123==========" + model.getProfileId()); + OutputAppProfile appProfile = OutputAppManager.getProfile(model.getProfileId()); + System.out.println("dajadfas======" + appProfile); + if (appProfile == null) { + throw new AWSException("Not Find OutputAppProfile! profileId=" + model.getProfileId()); + } + DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), + OutputConst.EXT_APP_DC_OUTPUT); + if (dcProfile == null) + throw new AWSException( + "Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT); + String sql_lever = ""; + if (bo_name.equals("BO_ACT_COE_PUBLISH_N")) { + sql_lever = "SELECT PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID = '" + + rowMap.getString("PUBLISHFILEID") + "'"; + + } else if (bo_name.equals("BO_ACT_COE_PUBLISH_C")) { + sql_lever = "SELECT PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID = '" + + rowMap.getString("CHANGEDFILEIDNEW") + "'"; + } + String lever = DBSql.getString(sql_lever); + System.out.println("版本号::::::::::::" + lever); + // lever = lever.substring(0,3); + if (lever.length() == 5 && lever.substring(4).equals("0")) { + lever.substring(0, 3); + } else if (lever.length() == 1) { + lever = lever + ".0"; + } + String filename = ""; + if (bo_name.equals("BO_ACT_COE_PUBLISH_N")) { + filename = rowMap.getString("PUBLISHFILENAME"); + } else if (bo_name.equals("BO_ACT_COE_PUBLISH_C")) { + filename = rowMap.getString("CHANGEDFILENAMENEW"); + } + DCContext dcContext = new DCContext(userContext, dcProfile, appProfile.getAppContext().getId(), + model.getWsId(), rowMap.getString("TASKID"), filename + "_" + lever + ".doc"); + // UtilFile file = new UtilFile(dcContext.getPath()); + + Map params = new HashMap(); +//知识ID,必填 + params.put("cardId", cardId); +//sid,必填 + params.put("sid", userContext.getSessionId()); + + params.put("dc", dcContext); + AppAPI appAPI = SDK.getAppAPI(); +//创建文件 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("流程手册的存入=================" + ro); + } + } + + } + String sql_A = "SELECT PLNAME FROM APP_ACT_COE_PAL_REPOSITORY where ID = '" + map.getString("ID") + + "' AND PLMETHODID != 'process.framework' AND PLMETHODID IN (select distinct PLMETHODID from APP_ACT_COE_PAL_REPOSITORY)"; + List rows = DBSql.getMaps(sql_A); + + for (RowMap bo : rows) { + + /** + * 这个是模型中的附件获取的并插入的数据信息,需要做修改 + */ + // 调用App + +// 参数定义列表 + Map paramss = new HashMap(); +//知识ID,必填 + paramss.put("cardId", cardId); +//sid,必填 + paramss.put("sid", userContext.getSessionId()); + + UpfileWeb upfileWeb = new UpfileWeb(userContext); + + String sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where PLMETHODID != 'process.framework' AND ID= '" + + map.getString("ID") + "'" + ")"; + List maps = DBSql.getMaps(sql_upfile); + for (RowMap row : maps) { + System.out.println("附件名称>>>>>>" + row.getString("FILENAME")); + if (!row.getString("FILENAME").contains(".xml")) { + UpfileModel upfileModel = new UpfileModel(); + upfileModel.setType(row.getString("FILETYPE")); + upfileModel.setFileName(row.getString("FILENAME")); + upfileModel.setPl_uuid(row.getString("PALREPOSITORYID")); + upfileModel.setShape_uuid(row.getString("SHAPEID")); + DCContext dcContexts = upfileWeb.getDCContext(upfileModel); + paramss.put("dc", dcContexts); + AppAPI appAPIs = SDK.getAppAPI(); + ResponseObject ros = appAPIs.callASLP(appAPIs.getAppContext(sourceAppId), aslp, paramss); + System.out.println("流程模型附件的生成=============" + ros); + } + } + +//DCContext对象,必填 + +//创建文件 + } + try { + + PublishKnow(processExecutionContext, userContext, cardId); + } catch (Exception e) { + e.printStackTrace(); + } + } + } + + /** + * 发布知识 + * + * @param processExecutionContext + * @param userContext + * @param id + */ + public void PublishKnow(ProcessExecutionContext processExecutionContext, UserContext userContext, String id) { + + String sql = "select EXT4 from APP_ACT_COE_PAL_REPOSITORY where id in (select PLPARENTID from APP_ACT_COE_PAL_REPOSITORY where EXT4 = '" + + id + "')"; + List maps = DBSql.getMaps(sql); + String ids = ""; + for (RowMap rowmap : maps) { + ids += rowmap.getString("EXT4") + ","; + } + String[] deptSplit_id = ids.split(","); + + JSONArray jsonArray = new JSONArray(); + for (String id_names : deptSplit_id) { + jsonArray.add(id_names); + } + // jsonObject.put(deptSplit_id); + id += ","; + String[] deptSplit_das = id.split(","); + JSONArray jsonArray_das = new JSONArray(); + for (String das : deptSplit_das) { + jsonArray_das.add(das); + } + // jsonObject.put(deptSplit_id); + + if (!jsonArray_das.isEmpty() && !jsonArray.isEmpty()) { + + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/PublishKnwl"; + // 参数定义列表 + Map params = new HashMap(); + //要发布到的维度ID的JSON数组字符串,必填 + params.put("dimensionIDArray", jsonArray.toString()); + //要发布的知识ID的JSON数组字符串,必填 + params.put("knwlIDArray", jsonArray_das.toString()); + //标签的JSON数组字符串,非必填 + + //sid,必填 + params.put("sid", userContext.getSessionId()); + AppAPI appAPI = SDK.getAppAPI(); + //发布知识 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + + System.out.println("知识发布============" + ro); + + } + + } + + /** + * 取消发布知识 + * + * @param processExecutionContext + * @param sid + * @param knwlId + * @return + */ + public boolean CancelPublishKnwl(ProcessExecutionContext processExecutionContext, String sid, String knwlId) { + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/CancelPublishKnwl"; + // 参数定义列表 + Map params = new HashMap(); + //sid,如果为空,则需要传createUser参数,非必填 + params.put("sid", sid); + //知识ID,必填 + params.put("knwlId", knwlId); + AppAPI appAPI = SDK.getAppAPI(); + //取消发布知识(全部维度) + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("取消发布的ro=====>>>>" + ro); + return ro.isOk(); + } + + /** + * 创建XPage页面上的待阅文件 + * + * @param processExecutionContext + * @param fileCreateName + * @param fileName + * @param fileurl + * @param readingScope_org + * @param isFullCompany + * @param fileCreateDate + * @param relationProcessinstId + * @param readingScope_post + * @param readingScope_level + * @param fileid + * @return + */ + public boolean execute(ProcessExecutionContext processExecutionContext, String fileCreateName, String fileName, + String fileurl, String readingScope_org, String isFullCompany, String fileCreateDate, + String relationProcessinstId, String readingScope_post, String readingScope_level, String fileid) { + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.awspaas.user.apps.docview/PushFileToXpage"; + // 参数定义列表 + Map params = new HashMap(); + //发布人,不允许空值,必填 + params.put("fileCreateName", fileCreateName); + //待阅文件标题名称,不允许空值,必填 + params.put("fileName", fileName); + //阅读范围_组织,不允许空值,非必填 + params.put("readingScope_org", readingScope_org); + //是否全公司可见,不允许空值,必填 + params.put("isFullCompany", isFullCompany); + //待阅文件Url,不允许空值,必填 + params.put("fileurl", fileurl); + //发布日期,不允许空值,必填 + params.put("fileCreateDate", fileCreateDate); + //发布流程ID,不允许空值,必填 + params.put("relationProcessinstId", relationProcessinstId); + //阅读范围_岗位,不允许空值,非必填 + params.put("readingScope_post", readingScope_post); + //阅读范围_职级,不允许空值,非必填 + params.put("readingScope_level", readingScope_level); + //待阅文件ID,多个逗号隔开,不允许空值,必填 + params.put("fileid", fileid); + AppAPI appAPI = SDK.getAppAPI(); + //推送待阅文件到xpage门户 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("ros++++++++=====待阅》》》》》》》》》》" + ro); + return ro.isOk(); + } + + /** + * 给知识授权 + * + * @param processExecutionContext + * @param jsonArray + * @param sid + * @param knwlId + * @return + */ + public boolean AddKnwlAC(ProcessExecutionContext processExecutionContext, JSONArray jsonArray, String sid, + String knwlId) { + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/AddKnwlAC"; + // 参数定义列表 + Map params = new HashMap(); + //[{"assignmentType":"department","assignmentId":"62196ff9-a26d-4be5-9480-3ef680886f63"},{"assignmentType":"user","assignmentId":"user1"}],必填 + params.put("acList", jsonArray); + //sid,如果为空,则需要传createUser参数,非必填 + params.put("sid", sid); + //知识ID,必填 + params.put("knwlId", knwlId); + AppAPI appAPI = SDK.getAppAPI(); + //给知识授权 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + return ro.isOk(); + } + + /** + * 柱军的ASLP + * + * @param processExecutionContext + * @param wsId + * @param fileId + * @return + */ + public boolean AttrSynAslp(ProcessExecutionContext processExecutionContext, String wsId, JSONArray fileId) { + System.out.println(""); + // 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); + // aslp服务地址 + String aslp = "aslp://com.awspaas.user.apps.yili.reportform/AttrSynAslp"; + // 参数定义列表 + Map params = new HashMap(); + //资产内容库id,必填 + params.put("wsId", wsId); + //文件id;json数组[id1,id2,id3],必填 + params.put("fileId", fileId); + AppAPI appAPI = SDK.getAppAPI(); + //增量同步数据 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("同步数据看板底表结果>>>>>>>>>>>>>" + ro); + return ro.isOk(); + } + + /** + * 发送OA待阅数据 + * + * @param jsonObject + * @param processInstance + * @param results + * @throws DocumentException + */ + public void SendOARead(JSONObject jsonObject, ProcessInstance processInstance, String userIds,String type) + throws DocumentException { + + String processInstId = processInstance.getId(); + // System.err.println(processInstance.getTitle() + "开始发送:" + userId); + if ("".equals(userIds) || UtilString.isEmpty(userIds)) { return; } + + jsonObject.put("userList", userIds); + String xmlStr = "\n" + + " " + " " + " " + " " + + "" + " " + " " + + " " + ""; + // System.out.println("xmlStr>>>>>>>>" + xmlStr); + String readurl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "readurl"); + String postSoap = UtilUrl.doPostSoap(readurl, xmlStr, ""); + Document document = DocumentHelper.parseText(postSoap); + Element rootElement = document.getRootElement(); + // System.out.println("rootElement>>>>>>" + rootElement); + Element result = rootElement.element("Body").element("serviceResponse").element("out"); + String resultString = result.getData().toString(); + JSONObject jsonObject1 = JSON.parseObject(resultString); + String datas = jsonObject1.getString("data"); + String status = jsonObject1.getString("status"); + // System.out.println("推送》》》》》》》》》》》" + status); + if ("false".equals(status)) { + System.out.println(processInstance.getTitle() + "待阅推送失败:" + userIds); + try { + BO bo = new BO(); + bo.set("TITLE", processInstance.getTitle()); + bo.set("NAME", userIds); + bo.set("TYPE", type); + bo.set("RESULT", "待处理"); + bo.set("PROCESSID", processInstId); + bo.set("DEPNAME", SDK.getORGAPI().getUser(userIds).getDepartmentId()); + SDK.getBOAPI().create("BO_EU_READ_COUNT", bo, processInstance.getId(), processInstance.getCreateUser()); + } catch (Exception e) { + // TODO: handle exception + } + + } else { + JSONArray resultArray = JSONObject.parseArray(datas); + //System.out.println(processInstance.getTitle() + "待阅推送成功:" + idList.size()+"人"); + for (int j = 0; j < resultArray.size(); j++) { + JSONObject jsonObject2 = resultArray.getJSONObject(j); + String user = jsonObject2.get("user").toString(); + String dataid = jsonObject2.get("dataid").toString(); + BO bo = new BO(); + bo.set("TITLE", processInstance.getTitle()); + bo.set("PROCESSID", processInstance.getId()); + bo.set("USER_ID", user); + bo.set("USERDEP", SDK.getORGAPI().getUser(user).getDepartmentId()); + bo.set("DATAID", dataid); + bo.set("RESULT", status); + bo.set("SENDTYPE", "1"); + bo.set("READSTATE", "未读"); + bo.set("TYPE", type); + SDK.getBOAPI().create("BO_ACT_DATAID", bo, processInstance.getId(), processInstance.getCreateUser()); + } + if("单个账号推送".equals(type)) { + DBSql.update("UPDATE BO_EU_READ_COUNT SET RESULT = '已重新推送' WHERE PROCESSID = '"+processInstId+"' AND NAME = '"+userIds+"'"); + } + } + } + + /** + * 发送EHSQ数据 + * + * @param jsonArray + * @return + * @throws Exception + */ + public String SendEHSQFile(JSONArray jsonArray) throws Exception { + System.out.println("===jsonArray===" + jsonArray); + /** + * 首先需要将传过来的参数进行加密操作,并设置 + */ + AesUtil aesUtil = new AesUtil(); + String system = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "system"); + String AES = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "AES"); + String EHSQUrl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "EHSQUrl"); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + String date = sdf.format(new Date()); + String s1 = date.replaceAll("-", "").replaceAll(" ", "").replaceAll(":", ""); + + System.out.println("时间>>>>>>>>>>>>" + s1); + String data = system + "##" + s1; + String encrypt = aesUtil.encrypt(data, AES); // 获取加密之后的秘钥 + JSONObject jsonObject = new JSONObject(new LinkedHashMap<>()); + jsonObject.put("system", system); + jsonObject.put("token", encrypt); + jsonObject.put("infos", jsonArray); + HttpUtil httpUtil = new HttpUtil(); + System.out.println("jsonobject>>>>>>>>>>>>>>>>>>>" + jsonObject); + String s = httpUtil.sendPost(jsonObject, EHSQUrl); + System.out.println("发送到EHSQ是否是正确的>>>>>>>>>" + s); + + return s; + } + public ArrayList getSendList(ProcessInstance instanceById, BO bo_act_coe_publish1, JSONObject jsonObject) { + String sendType = bo_act_coe_publish1.getString("SEND_SCOP"); + String org = bo_act_coe_publish1.getString("SEND_SCOPE_ORG"); + String post = bo_act_coe_publish1.getString("SEND_SCOPE_POST"); + String level = bo_act_coe_publish1.getString("SEND_SCOPE_LEVEL"); + ArrayList userList = new ArrayList<>(); + if ("1".equals(sendType)) { + //System.err.println("发送全集团=====>" + instanceById.getTitle()); + userList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, sendType); + + } else { + /** + * 先组织和职级取交集,然后再和岗位取并集 + */ + if (UtilString.isNotEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isNotEmpty(level)) { + //System.err.println("发送组织/岗位/职级=====>" + instanceById.getTitle()); + ArrayList sendOrgList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, + sendType); + ArrayList sendLevel = sendLevel(level, sendOrgList, instanceById, bo_act_coe_publish1, jsonObject); + userList = sendPost(post, sendLevel, instanceById, bo_act_coe_publish1, + jsonObject); + } + // 如果职级为空,组织/岗位取并集 + if (UtilString.isNotEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isEmpty(level)) { + //System.err.println("发送组织/岗位=====>" + instanceById.getTitle()); + ArrayList sendOrgList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, + sendType); + userList = sendPost(post, sendOrgList, instanceById, bo_act_coe_publish1, jsonObject); + } + // 如果岗位为空,组织/职级取交集 + if (UtilString.isNotEmpty(org) && UtilString.isEmpty(post) && UtilString.isNotEmpty(level)) { + //System.err.println("发送组织/职级=====>" + instanceById.getTitle()); + ArrayList sendOrgList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, + sendType); + userList = sendLevel(level, sendOrgList, instanceById, bo_act_coe_publish1, jsonObject); + } + + /** + * 组织为空 岗位和职级取并集 + */ + if (UtilString.isEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isNotEmpty(level)) { + //System.err.println("发送岗位/职级=====>" + instanceById.getTitle()); + ArrayList sendLevel2 = sendLevel2(level, userList, instanceById, bo_act_coe_publish1, jsonObject); + userList = sendPost(post, sendLevel2, instanceById, bo_act_coe_publish1, + jsonObject); + } + // 如果只有组织不为空 + if (UtilString.isNotEmpty(org) && UtilString.isEmpty(post) && UtilString.isEmpty(level)) { + //System.err.println("发送组织=====>" + instanceById.getTitle()); + userList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, sendType); + } + // 如果只有岗位不为空 + if (UtilString.isEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isEmpty(level)) { + //System.err.println("发送岗位=====>" + instanceById.getTitle()); + userList = sendPost(post, userList, instanceById, bo_act_coe_publish1, jsonObject); + } + // 如果只有职级不为空 + if (UtilString.isEmpty(org) && UtilString.isEmpty(post) && UtilString.isNotEmpty(level)) { + //System.err.println("发送职级=====>" + instanceById.getTitle()); + userList = sendLevel2(level, userList, instanceById, bo_act_coe_publish1, jsonObject); + } + + } + + return userList; + + } + // 发送组织 + public ArrayList sendOrg(String org, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject, String sendType) { + String processid = instanceById.getId(); + // 获取组织 + if (StringUtils.isNotEmpty(org) || "1".equals(sendType)) { + long startTime = System.currentTimeMillis(); + userList = getUser(jsonObject, org, sendType, processid); + long endTimes = System.currentTimeMillis(); + // System.out.println(instanceById.getTitle()+"_根据部门获取人员用时===>"+(endTimes-startTime)/1000); + } + + return userList; + } + + // 发送岗位 + public ArrayList sendPost(String post, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject) { + String processid = instanceById.getId(); + // 获取岗位 + if (StringUtils.isNotEmpty(post)) { + String posts[] = post.split(","); + // 取并集 + String postss = ""; + if (posts.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + postss = "'" + posts[0] + "'"; + } else { + postss = "'" + StringUtils.join(posts, "','") + "'"; + } + String sql = "select * from ORGUSER where POSITION_NO in (" + postss + ") and userno is not null"; + List maps1 = DBSql.getMaps(sql); + for (RowMap rowMap : maps1) { + String userId = rowMap.getString("USERID"); + if (!userList.contains(userId)) { + boolean closed = SDK.getORGAPI().getUser(userId).isClosed(); + if(!closed) { + userList.add(userId); + } + } + + } + } + + return userList; + } + + // 发送职级 + public ArrayList sendLevel(String level, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject) { + String processid = instanceById.getId(); + ArrayList userList_level = new ArrayList(); + // 获取职级 + if (StringUtils.isNotEmpty(level)) { + String ranks[] = level.split(","); + String rankss = ""; + if (ranks.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + rankss = "'" + ranks[0] + "'"; + } else { + rankss = "'" + StringUtils.join(ranks, "','") + "'"; + } + // 取交集 + String sql2 = "select * from ORGUSER where EXT2 in (" + rankss + ") and userno is not null"; + List maps2 = DBSql.getMaps(sql2); + for (RowMap rowMap : maps2) { + String userId = rowMap.getString("USERID"); + if (userList.contains(userId)) { + boolean closed = SDK.getORGAPI().getUser(userId).isClosed(); + if(!closed) { + userList_level.add(userId); + } + } + + } + } + + return userList_level; + } + + // 只发送职级 + public ArrayList sendLevel2(String level, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject) { + String processid = instanceById.getId(); + ArrayList userList_level = new ArrayList(); + // 获取职级 + if (StringUtils.isNotEmpty(level)) { + String ranks[] = level.split(","); + String rankss = ""; + if (ranks.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + rankss = "'" + ranks[0] + "'"; + } else { + rankss = "'" + StringUtils.join(ranks, "','") + "'"; + } + // 取交集 + String sql2 = "select * from ORGUSER where EXT2 in (" + rankss + ") and userno is not null"; + List maps2 = DBSql.getMaps(sql2); + for (RowMap rowMap : maps2) { + String userId = rowMap.getString("USERID"); + boolean closed = SDK.getORGAPI().getUser(userId).isClosed(); + if(!closed) { + userList_level.add(userId); + } + } + } + return userList_level; + } + + /** + * 根据部门id获取当前部门以及下级部门的人员信息 + * + * @param processid + * @return + */ + + public ArrayList getUser(JSONObject jsonObject, String depIds, String sendType, String processid) { + ArrayList arr = new ArrayList(); + ArrayList arr_test = new ArrayList(); + // 全集团 + if ("1".equals(sendType)) { + List departmentsByCompanyId = SDK.getORGAPI().getDepartmentsByCompanyId(1, + "8911e732-b42a-4556-853f-ad32761bcbee"); + for (DepartmentModel departmentModel : departmentsByCompanyId) { + String id = departmentModel.getId(); + // 查询未注销的部门并且去掉系统部门 + if (!departmentModel.isClosed() && !"5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe".equals(id) + && !"e79281b1-2f81-4895-b30e-9f96e9ad0e2c".equals(id) + && !"65048aee-157f-49f2-a2dc-5903dd26f519".equals(id)) { + getUserList(jsonObject, arr_test, arr, id, processid); + + } + } + } else { + if (UtilString.isNotEmpty(depIds)) { + String[] split = depIds.split(","); + for (String depId : split) { + getUserList(jsonObject, arr_test, arr, depId, processid); + } + } + } + + // System.err.println(SDK.getProcessAPI().getInstanceById(processid) + + // "_得到的总人数为:" + arr_test.size()); + // System.err.println(SDK.getProcessAPI().getInstanceById(processid) + + // "_得到的过滤后的人数为:" + arr.size()); + return arr; + } + + public void getUserList(JSONObject jsonObject, ArrayList arr_test, ArrayList arr, + String departmentId, String processid) { + // 获取当前部门下人员 + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(departmentId); + for (UserModel userModel : userModelList) { + if (!userModel.isClosed()) { + String uid = userModel.getUID(); + if (!arr.contains(uid)) { + if (!"10033643".equals(uid)) { + // System.err.println("发送人员======>" + uid); } + arr.add(uid); + + } + /* + * RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '" + * + processid + "' AND USER_ID = '" + uid + "'"); if (map == null) { + * //System.err.println("发送人员======>" + uid); } + */ + } + } + } + // 获取当前部门的子部门人员 + DepartmentModel departmentById = SDK.getORGAPI().getDepartmentById(departmentId); + if (departmentById.isExistSubModelOfCache()) { + getSubDepartments(jsonObject, arr_test, arr, departmentById, processid); + } + + } + + // 获取子部门人员 + public void getSubDepartments(JSONObject jsonObject, ArrayList arr_test, ArrayList arr, + DepartmentModel departmentById, String processid) { + if (!departmentById.isClosed()) { + List subDepartments = SDK.getORGAPI().getSubDepartments(departmentById.getId()); + for (DepartmentModel departmentModel : subDepartments) { + if (!departmentModel.isClosed()) { + String id = departmentModel.getId(); + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(id); + for (UserModel userModel : userModelList) { + if (!userModel.isClosed()) { + String uid = userModel.getUID(); + if (!arr.contains(uid)) { + if (!"10033643".equals(uid)) { + // System.err.println("发送人员======>" + uid); } + arr.add(uid); + } + // System.err.println(SDK.getProcessAPI().getInstanceById(processid) + + // "_发送人员======>" + uid); + + } + } + } + // 递归获取子部门下的子部门 + if (SDK.getORGAPI().isExistSubDepartment(id)) { + getSubDepartments(jsonObject, arr_test, arr, SDK.getORGAPI().getDepartmentById(id), processid); + } + + } + + } + } + } + + + + /** + * 创建线程发送待阅 + * + * @param list 人员集合 + * @param startTime 开始时间 + * @param jsonObject 发送的json串 + * @param processExecutionContext 流程数据 + */ + /* + * public void course(List list,long startTime,JSONObject + * jsonObject,ProcessExecutionContext processExecutionContext){ // + * 创建线程来实现为每300人为一个的线程跑待阅 ExecutorService service = + * Executors.newFixedThreadPool(4); service.execute(new Runnable() { + * + * @Override public void run() { int i=0; for (String[] resrt:list ) { + * + * if ((list.size()-1)==i){ long endTime = System.currentTimeMillis(); + * + * long time = endTime - startTime; long itmes = time/1000/60/60; BO + * bo_eu_pal_read_log = SDK.getBOAPI().query("BO_EU_PAL_READ_LOG", + * true).addQuery("PROCESSID = ", + * processExecutionContext.getProcessInstance().getId()).detail(); + * bo_eu_pal_read_log.set("ENDTIMES",endTime); + * bo_eu_pal_read_log.set("TIMECOUNT",itmes); + * SDK.getBOAPI().update("BO_EU_PAL_READ_LOG",bo_eu_pal_read_log); } try { + * SendOARead(jsonObject,processExecutionContext,resrt); } catch + * (DocumentException e) { e.printStackTrace(); } i++; } } }); } + */ + + /** + * 创建待阅日志 + * + * @param processExecutionContext + * @param jsonObject + * @param users + * @param startTime + */ + + public void createReadLog(ProcessInstance instanceById, JSONObject jsonObject, ArrayList arr, + long startTime,long endTimes) { + BO bo_Read_log = new BO(); + String createUser = instanceById.getCreateUser(); + UserContext fromUID = UserContext.fromUID(createUser); + bo_Read_log.set("USREID", createUser); + bo_Read_log.set("DEPID", fromUID.getDepartmentModel().getId()); + bo_Read_log.set("BUNAME", fromUID.getUserModel().getExt4()); + bo_Read_log.set("TITLE", jsonObject.get("title")); + bo_Read_log.set("PROCESSID", instanceById.getId()); + bo_Read_log.set("SENDNUM", arr.size()); + BO bo_act_coe_publishs = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true) + .addQuery("BINDID=",instanceById.getId()) + .addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + String send_scop = bo_act_coe_publishs.getString("SEND_SCOP"); + bo_Read_log.set("SEND_SCOP", send_scop); + String SEND_SCOPE_ORG = bo_act_coe_publishs.getString("SEND_SCOPE_ORG"); + if (UtilString.isNotEmpty(SEND_SCOPE_ORG)) { + String[] resulr = SEND_SCOPE_ORG.split(","); + bo_Read_log.set("SEND_SCOPE_ORGNUM", resulr.length); + } + String SEND_SCOPE_POST = bo_act_coe_publishs.getString("SEND_SCOPE_POST"); + if (UtilString.isNotEmpty(SEND_SCOPE_POST)) { + String[] resulr = SEND_SCOPE_POST.split(","); + bo_Read_log.set("SEND_SCOPE_POST_NUM", resulr.length); + } + String SEND_SCOPE_LEVEL = bo_act_coe_publishs.getString("SEND_SCOPE_LEVEL"); + if (UtilString.isNotEmpty(SEND_SCOPE_LEVEL)) { + String[] resulr = SEND_SCOPE_LEVEL.split(","); + bo_Read_log.set("SEND_SCOPE_LEVEL_NUM", resulr.length); + } + + bo_Read_log.set("STARTTIMES", startTime); + bo_Read_log.set("ENDTIMES", endTimes); + bo_Read_log.set("TIMECOUNT", (endTimes-startTime)/1000/60+"分钟"); + //文件发布成功回执流程 + ProcessInstance processInst = SDK.getProcessAPI().createProcessInstance("obj_b4700f89a7a144c086d047de0cfe9531", "admin", jsonObject.get("title")+"成功发布回执单"); + SDK.getBOAPI().create("BO_EU_PAL_PULBISH_SUCCESS", bo_Read_log, processInst,UserContext.fromUID("admin")); + TaskInstance taskInst = SDK.getProcessAPI().start(processInst).fetchActiveTasks().get(0); + //SDK.getTaskAPI().completeTask(taskInst.getId(), "admin"); + } + + /** + * 通过发布知识创建知识 + * + * @param bo 发布清单表数据 + * @param wsId 知识库id + * @param filed 文件集合JsonArray格式 + * @param processExecutionContext 流程数据 + * @param bo_act_coe_publish 发布表 + * @param uid 账户合计 + */ + public void createKmsByNew(BO bo, String wsId, JSONArray filed, ProcessExecutionContext processExecutionContext, + BO bo_act_coe_publish, String uid) { + { + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + wsId = model.getWsId(); + String publishfileid = bo.getString("PUBLISHFILEID"); + filed.add(publishfileid); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + if (StringUtils.isEmpty(map.getString("EXT4"))) { + // aslp服务地址 + String aslps_create = "aslp://com.actionsoft.apps.kms/CreateKnwl"; +// 参数定义列表 + Map params_create = new HashMap(); +//保密级别, 0: 普通 1:秘密 2:机密,必填 + params_create.put("securityLevel", 0); +//知识名称,必填 + + String level = ""; + + if (map.getString("PLVER").contains(".00")) { + String[] plvers = map.getString("PLVER").split("\\."); + plvers[1] = plvers[1].replaceAll("0", ""); + level = plvers[0] + "." + plvers[1]; + } else { + level = map.getString("PLVER"); + } + + params_create.put("knwlName", map.getString("PLNAME") + "V" + level); +//是否可以评论,必填 + params_create.put("isComment", true); +//是否可以评分,必填 + params_create.put("isRate", true); +//有效期:yyyy-MM-dd,非必填 + params_create.put("validDate", "2099-12-31"); +//只读控制,1:在线阅读和下载 0:在线阅读,必填 + params_create.put("onlineLevel", 1); +//知识创建人,某些特殊场景下,sid和createUser代表的用户并不一样,如果此参数为null,则使用sid代表的用户,非必填 + params_create.put("createUser", "admin"); +//知识内容,非必填 + params_create.put("cardContext", ""); +//sid,必填 + params_create.put("sid", processExecutionContext.getUserContext().getSessionId()); + AppAPI appAPI_create = SDK.getAppAPI(); +//创建知识 + ResponseObject ro_create = appAPI_create.callASLP( + appAPI_create.getAppContext(processExecutionContext.getProcessInstance().getAppId()), + aslps_create, params_create); + System.out.println("ro_create================" + ro_create); + String cardId = ((LinkedHashMap) ro_create.getData()).get("cardId").toString(); + JSONArray jsonArray1 = new JSONArray(); + if (bo_act_coe_publish.getString("SEND_SCOP").equals("0")) { + String departId = bo_act_coe_publish.getString("SEND_SCOPE_ORG"); + if (StringUtils.isNotEmpty(departId) + && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_LEVEL")) + && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_POST"))) { + String strs[] = departId.split(","); + for (String departmentid : strs) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", departmentid); + jsonArray1.add(jsonObjecta); + } + } else { + + String[] split = uid.split(","); + + List list = new ArrayList(Arrays.asList(split)); + + HashSet h = new HashSet(list); + list.clear(); + list.addAll(h); + + for (String user_id : list) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "user"); + jsonObjecta.put("assignmentId", user_id); + jsonArray1.add(jsonObjecta); + } + } + } else { + List select_id_from_orgdepartment = DBSql.getMaps("select ID from ORGDEPARTMENT"); + for (RowMap depaid : select_id_from_orgdepartment) { + String id = depaid.getString("ID"); + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", id); + jsonArray1.add(jsonObjecta); + } + } + + AddKnwlAC(processExecutionContext, jsonArray1, processExecutionContext.getUserContext().getSessionId(), + cardId); + + String update_sql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '" + cardId + "' WHERE " + + " PLCATEGORY = 'process'and PLMETHODID !='process.framework' " + + " and PLNAME not in ('流程架构图','测试用','GMY-截图用','sx批量测试'" + + " ,'8.2培训使用','用户练习使用','YX测试分部','yx测试人员','yx测试部','流程架构测试')" + + " and PLPARENTID not in ('63ff93c6-2f27-4851-a396-6830c428db2e'," + + " 'c84f497a-4de3-4404-86e8-cd5af71c3b47','94dabf55-b032-4316-a4c3-00b83763da09'," + + " '36ac7cdd-a361-4bd3-9511-c03c1b3627a4','84e534b4-e51a-4874-9ff1-8a0206d9e0c5'," + + " '98bd5917-7563-4b29-b775-815e91d9864c','f07da63c-3423-4c1e-ae75-b323c6a69093'," + + " '79cb4c35-d2f7-4c43-a7db-44038b557eac','7ad79a73-a497-417a-a5ec-d4c9fd45061c'," + + " '42c09260-c1d3-44b7-ac3d-f8280e04c294') and ID = '" + publishfileid + "'"; + int update = DBSql.update(update_sql); + System.out.println("更新id为:" + publishfileid + "版本为:的知识对应的资产库的EXT4的影响行数为" + update); + creadteFile(processExecutionContext, "BO_ACT_COE_PUBLISH_N", processExecutionContext.getUserContext(), + cardId, "PUBLISHFILEID = "); + } + } + } + + /** + * 发布生成kms知识 + * + * @param bo 更新发布清单表 + * @param wsId 知识库id + * @param filed 发布清单的发布id + * @param processExecutionContext 流程数据 + * @param bo_act_coe_publish 发布表 + * @param uid 账户集合 + */ + public void CreateKmsByupdate(BO bo, String wsId, JSONArray filed, ProcessExecutionContext processExecutionContext, + BO bo_act_coe_publish, String uid) { + { + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + wsId = model.getWsId(); + String publishfileid = bo.getString("CHANGEDFILEIDNEW"); + filed.add(publishfileid); + DBSql.update("update APP_ACT_COE_PAL_REPOSITORY set EXT4 = '' where id = '" + publishfileid + "'"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + if (StringUtils.isEmpty(map.getString("EXT4"))) { + // aslp服务地址 + String aslps_create = "aslp://com.actionsoft.apps.kms/CreateKnwl"; +// 参数定义列表 + Map params_create = new HashMap(); +//保密级别, 0: 普通 1:秘密 2:机密,必填 + params_create.put("securityLevel", 0); +//知识名称,必填 + String level = ""; + if (map != null) { + if (map.getString("PLVER").contains(".00")) { + String[] plvers = map.getString("PLVER").split("\\."); + plvers[1] = plvers[1].replaceAll("0", ""); + level = plvers[0] + "." + plvers[1]; + } else { + level = map.getString("PLVER"); + } + } + + params_create.put("knwlName", map.getString("PLNAME") + "V" + level); +//是否可以评论,必填 + params_create.put("isComment", true); +//是否可以评分,必填 + params_create.put("isRate", true); +//有效期:yyyy-MM-dd,非必填 + params_create.put("validDate", "2099-12-31"); +//只读控制,1:在线阅读和下载 0:在线阅读,必填 + params_create.put("onlineLevel", 1); +//知识创建人,某些特殊场景下,sid和createUser代表的用户并不一样,如果此参数为null,则使用sid代表的用户,非必填 + params_create.put("createUser", "admin"); +//知识内容,非必填 + params_create.put("cardContext", ""); +//sid,必填 + params_create.put("sid", processExecutionContext.getUserContext().getSessionId()); + AppAPI appAPI_create = SDK.getAppAPI(); +//创建知识 + ResponseObject ro_create = appAPI_create.callASLP( + appAPI_create.getAppContext(processExecutionContext.getProcessInstance().getAppId()), + aslps_create, params_create); + System.out.println("ro_create================" + ro_create); + String cardId = ((LinkedHashMap) ro_create.getData()).get("cardId").toString(); + JSONArray jsonArray1 = new JSONArray(); + if (bo_act_coe_publish.getString("SEND_SCOP").equals("0")) { + String departId = bo_act_coe_publish.getString("SEND_SCOPE_ORG"); + if (StringUtils.isNotEmpty(departId) + && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_LEVEL")) + && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_POST"))) { + String strs[] = departId.split(","); + for (String departmentid : strs) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", departmentid); + jsonArray1.add(jsonObjecta); + } + } else { + String[] split = uid.split(","); + + List list = new ArrayList(Arrays.asList(split)); + + HashSet h = new HashSet(list); + list.clear(); + list.addAll(h); + + for (String user_id : list) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "user"); + jsonObjecta.put("assignmentId", user_id); + jsonArray1.add(jsonObjecta); + } + } + + } else { + List select_id_from_orgdepartment = DBSql.getMaps("select ID from ORGDEPARTMENT"); + for (RowMap depaid : select_id_from_orgdepartment) { + String id = depaid.getString("ID"); + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", id); + jsonArray1.add(jsonObjecta); + } + } + AddKnwlAC(processExecutionContext, jsonArray1, processExecutionContext.getUserContext().getSessionId(), + cardId); + + String update_sql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '" + cardId + "' WHERE " + + " PLCATEGORY = 'process'and PLMETHODID !='process.framework' " + + " and PLNAME not in ('流程架构图','测试用','GMY-截图用','sx批量测试'" + + " ,'8.2培训使用','用户练习使用','YX测试分部','yx测试人员','yx测试部','流程架构测试')" + + " and PLPARENTID not in ('63ff93c6-2f27-4851-a396-6830c428db2e'," + + " 'c84f497a-4de3-4404-86e8-cd5af71c3b47','94dabf55-b032-4316-a4c3-00b83763da09'," + + " '36ac7cdd-a361-4bd3-9511-c03c1b3627a4','84e534b4-e51a-4874-9ff1-8a0206d9e0c5'," + + " '98bd5917-7563-4b29-b775-815e91d9864c','f07da63c-3423-4c1e-ae75-b323c6a69093'," + + " '79cb4c35-d2f7-4c43-a7db-44038b557eac','7ad79a73-a497-417a-a5ec-d4c9fd45061c'," + + " '42c09260-c1d3-44b7-ac3d-f8280e04c294') and ID = '" + publishfileid + "'"; + int update = DBSql.update(update_sql); + System.out.println("更新id为:" + publishfileid + "版本为:的知识对应的资产库的EXT4的影响行数为" + update); + creadteFile(processExecutionContext, "BO_ACT_COE_PUBLISH_C", processExecutionContext.getUserContext(), + cardId, " CHANGEDFILEIDNEW="); + } + // 将旧的知识取消发布或者移动到废止发布中 + String publishfileid_old = bo.getString("CHANGEFILEID"); + String sql_c = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid_old + "'"; + RowMap map1 = DBSql.getMap(sql_c); + if (StringUtils.isNotEmpty(map1.getString("EXT4"))) { + CancelPublishKnwl(processExecutionContext, processExecutionContext.getUserContext().getSessionId(), + map1.getString("EXT4")); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '' WHERE ID = '" + publishfileid_old + "'"); + } + } + } + + // 创建推送日志 + public void createLog(ProcessInstance instanceById, String uids) { + BO bo = new BO();// BO_EU_PAL_SEND_LOG + bo.set("USREID", instanceById.getCreateUser()); + bo.set("TITLE", instanceById.getTitle()); + bo.set("SENDTIME", instanceById.getEndTime()); + bo.set("PROCESSID", instanceById.getId()); + bo.set("USERNAMES", uids); + bo.set("DEPID", UserContext.fromUID(uids).getDepartmentModel().getId()); + bo.set("POSTNAME", UserContext.fromUID(uids).getUserModel().getPositionName()); + bo.set("BUNAME", UserContext.fromUID(uids).getUserModel().getExt2()); + SDK.getBOAPI().createDataBO("BO_EU_PAL_SEND_LOG", bo, UserContext.fromUID("admin")); + } + + public void sendEHSQ(ProcessExecutionContext processExecutionContext,List bo_act_coe_publish_n) { + for (BO bo : bo_act_coe_publish_n) { + DownloadUtil downloadUtil = new DownloadUtil(); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + JSONArray jsonArray_EHSQ = new JSONArray(); + JSONObject jsonObject_ehsq = new JSONObject(new LinkedHashMap<>()); + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + String wsId = model.getWsId(); + String publishfileid = bo.getString("PUBLISHFILEID"); + LinkedHashMap downloadurl = downloadUtil.outputReportDownload( + UserContext.fromUID(processExecutionContext.getProcessInstance().getCreateUser()), + bo.getString("TASKID"), publishfileid); + jsonObject_ehsq.put("fileid", bo.getString("TASKID")); + jsonObject_ehsq.put("filename", bo.getString("PUBLISHFILENAME")); + // jsonObject_ehsq.put("filecode",bo.getString("PUBLISH_NUMBER")); + jsonObject_ehsq.put("filecode", "123456"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + jsonObject_ehsq.put("version", map.getString("PLVER")); + jsonObject_ehsq.put("releasedate", simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("effectivedate", simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("authorcode", processExecutionContext.getTaskInstance().getTarget()); // jsonObject_ehsq.put("authorcode","00116465"); + jsonObject_ehsq.put("authorname", + UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getUserName()); + // jsonObject_ehsq.put("authorname","毛鹏程"); + jsonObject_ehsq.put("companycode", + UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()) + .getDepartmentModel().getNo()); + // jsonObject_ehsq.put("companycode","00000013"); + jsonObject_ehsq.put("authorcompany", + UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()) + .getDepartmentModel().getName()); // jsonObject_ehsq.put("authorcompany","总部质量管理部"); + // // + jsonObject_ehsq.put("releasescope", "总部质量管理部"); + BO bo1 = SDK.getBOAPI().query("BO_ACT_PUBLISH_PERM_SCOPE", true) + .addQuery("PALNAME=", bo.getString("PUBLISHFILENAME")).detail(); + if (bo1 != null) { + if (bo1.getString("PERMTYPE").equals("1")) { + } else { + + String departname = ""; + String orgperm = bo1.getString("ORGPERM"); + String dleass = ""; + String[] deptSplit = orgperm.split(","); + if (deptSplit.length == 1) { + dleass = "'" + deptSplit[0] + "'"; + } + dleass = "'" + StringUtils.join(deptSplit, "','") + "'"; + + List maps = DBSql + .getMaps("select DEPARTMENTNAME from ORGDEPARTMENT where ID in (" + dleass + ")"); + for (RowMap rowmas : maps) { + departname += rowmas.getString("DEPARTMENTNAME") + ";"; + } + jsonObject_ehsq.put("releasescope", "总部质量管理部"); + + } + } + + System.out.println("任务办理者>>>>>>>>>>>" + processExecutionContext.getTaskInstance().getTarget()); + String sessionId = new SSOUtil().registerClientSessionNoPassword( + processExecutionContext.getTaskInstance().getTarget(), LoginConst.DEFAULT_LANG, "localhost", + LoginConst.DEVICE_PC); + + System.out.println("办理者的sessionid>>>>>>>>>>>" + sessionId); + String downurl = downloadUtil.getzipURL(sessionId, bo.getString("TASKID"), + bo.getString("PUBLISHFILENAME")); + // jsonObject_ehsq.put("downloadurl","http://bpm.yili.com:8088/portal/r"+downurl.toString().substring(1)); + String recordfiles = ""; + String recordurls = ""; + Set keys = downloadurl.keySet(); + for (String key : keys) { + recordfiles += key + ";"; + String cent_url = downloadurl.get(key).substring(downloadurl.get(key).indexOf("/df"), + downloadurl.get(key).length()); + String fileDownurl = "http://bpm.yili.com:8088/portal/r" + cent_url; + recordurls += fileDownurl + ";"; + } + String new_name = ""; + String[] split = recordfiles.split(";"); + if (split.length > 0) { + + for (int i = 1; i < split.length; i++) { + new_name += split[i] + ";"; + } + } + + String new_url = ""; + String[] urls = recordurls.split(";"); + if (urls.length > 0) { + String loadurl = urls[0].replaceAll("&sid=null", "&sid=" + sessionId); + System.out.println("下载的地址是<<<<<<<<<<<<<<<<<<" + loadurl); + jsonObject_ehsq.put("downloadurl", loadurl); + for (int i = 1; i < urls.length; i++) { + String data_url = urls[i].replaceAll("&sid=null", "&sid=" + sessionId); + new_url += data_url + ";"; + } + } + jsonObject_ehsq.put("recordfiles", new_name); + jsonObject_ehsq.put("recordurls", new_url); + jsonArray_EHSQ.add(jsonObject_ehsq); + try { + SendEHSQFile(jsonArray_EHSQ); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + } + + public void updateEHSQ(ProcessExecutionContext processExecutionContext,List bo_act_coe_publish_c) { + DownloadUtil downloadUtil = new DownloadUtil(); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + for (BO bo : bo_act_coe_publish_c) { + JSONArray jsonArray_EHSQ = new JSONArray(); + JSONObject jsonObject_ehsq = new JSONObject(new LinkedHashMap<>()); + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + String wsId = model.getWsId(); + String publishfileid = bo.getString("CHANGEDFILEIDNEW"); + LinkedHashMap downloadurl = downloadUtil.outputReportDownload( + UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()), + bo.getString("TASKID"), publishfileid); + jsonObject_ehsq.put("fileid", bo.getString("TASKID")); + jsonObject_ehsq.put("filename", bo.getString("CHANGEDFILENAMENEW")); + // jsonObject_ehsq.put("filecode",bo.getString("CHANGE_NUMBER")); + jsonObject_ehsq.put("filecode", "123456"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + jsonObject_ehsq.put("verion", map.getString("PLVER")); + jsonObject_ehsq.put("releasedate", simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("effectivedate", simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("authorcode", processExecutionContext.getTaskInstance().getTarget()); + jsonObject_ehsq.put("authorname", + UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getUserName()); + jsonObject_ehsq.put("companycode", + UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()) + .getDepartmentModel().getNo()); + jsonObject_ehsq.put("authorcompany", + UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()) + .getDepartmentModel().getName()); + BO bo1 = SDK.getBOAPI().query("BO_ACT_PUBLISH_PERM_SCOPE", true) + .addQuery("PALNAME=", bo.getString("PUBLISHFILENAME")).detail(); + if (bo1 != null) { + if (bo1.getString("PERMTYPE").equals("1")) { + jsonObject_ehsq.put("releasescope", "内蒙古伊利实业集团股份有限公司"); + } else { + + String departname = ""; + String orgperm = bo1.getString("ORGPERM"); + String dleass = ""; + String[] deptSplit = orgperm.split(","); + if (deptSplit.length == 1) { + dleass = "'" + deptSplit[0] + "'"; + } + dleass = "'" + StringUtils.join(deptSplit, "','") + "'"; + + List maps = DBSql + .getMaps("select DEPARTMENTNAME from ORGDEPARTMENT where ID in (" + dleass + ")"); + for (RowMap rowmas : maps) { + departname += rowmas.getString("DEPARTMENTNAME") + ";"; + } + jsonObject_ehsq.put("releasescope", departname); + + } + } + + String sessionId = new SSOUtil().registerClientSessionNoPassword( + processExecutionContext.getTaskInstance().getTarget(), LoginConst.DEFAULT_LANG, "localhost", + LoginConst.DEVICE_PC); + + String downurl = downloadUtil.getzipURL(sessionId, bo.getString("TASKID"), + bo.getString("CHANGEDFILENAMENEW")); + String recordfiles = ""; + String recordurls = ""; + Set keys = downloadurl.keySet(); + for (String key : keys) { + recordfiles += key + ";"; + String cent_url = downloadurl.get(key).substring(downloadurl.get(key).indexOf("/df"), + downloadurl.get(key).length()); + String fileDownurl = "http://bpm.yili.com:8088/portal/r" + cent_url; + recordurls += fileDownurl + ";"; + } + String new_name = ""; + String[] split = recordfiles.split(";"); + if (split.length > 0) { + + for (int i = 1; i < split.length; i++) { + new_name += split[i] + ";"; + } + } + + String new_url = ""; + String[] urls = recordurls.split(";"); + if (urls.length > 0) { + String loadurl = urls[0].replaceAll("&sid=null", "&sid=" + sessionId); + System.out.println("下载的地址是<<<<<<<<<<<<<<<<<<" + loadurl); + jsonObject_ehsq.put("downloadurl", loadurl); + for (int i = 1; i < urls.length; i++) { + String data_url = urls[i].replaceAll("&sid=null", "&sid=" + sessionId); + new_url += data_url + ";"; + } + } + jsonObject_ehsq.put("recordfiles", new_name); + jsonObject_ehsq.put("recordurls", new_url); + jsonArray_EHSQ.add(jsonObject_ehsq); + try { + SendEHSQFile(jsonArray_EHSQ); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + } +} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/sendReadByDataid2.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/sendReadByDataid2.java new file mode 100644 index 00000000..91f700ad --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/sendReadByDataid2.java @@ -0,0 +1,1399 @@ +package com.awspaas.user.apps.app.integration.job; + +import java.sql.Timestamp; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; +import java.util.HashMap; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; + +import org.apache.commons.lang.StringUtils; +import org.dom4j.Document; +import org.dom4j.DocumentException; +import org.dom4j.DocumentHelper; +import org.dom4j.Element; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.output.constant.OutputConst; +import com.actionsoft.apps.coe.pal.pal.output.dao.OutputTask; +import com.actionsoft.apps.coe.pal.pal.output.extend.OutputAppManager; +import com.actionsoft.apps.coe.pal.pal.output.extend.OutputAppProfile; +import com.actionsoft.apps.coe.pal.pal.output.model.OutputTaskModel; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.model.UpfileModel; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.web.UpfileWeb; +import com.actionsoft.apps.resource.plugin.profile.DCPluginProfile; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.bpmn.engine.core.delegate.ProcessExecutionContext; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.TaskInstance; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.org.model.UserModel; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.server.fs.DCContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.emm.util.AesUtil; +import com.actionsoft.exception.AWSException; +import com.actionsoft.sdk.local.SDK; +import com.actionsoft.sdk.local.api.AppAPI; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.awspaas.user.apps.app.util.HttpUtil; +import com.awspaas.user.apps.app.util.UtilUrl; +@SuppressWarnings("all") +public class sendReadByDataid2 { + public void execute(String processid, String taskid) throws JobExecutionException { + ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(processid); + TaskInstance taskInstance = SDK.getTaskAPI().getInstanceById(taskid); + String wsId = ""; + JSONArray filed = new JSONArray(new LinkedList<>()); + String portalUrl = SDK.getPortalAPI().getPortalUrl(); + //System.out.println("portal======>>>>"+portalUrl); + /*if (portalUrl.equals("http://10.114.11.135:8088/portal")){ + portalUrl = "http://bpm.yili.com:8088/portal/"; + }*/ + try { + + String url = portalUrl + "/r/or?cmd=com.yili_process_page&oauthName=oauthLogin&processInstId=" + instanceById.getId() + "&taskInstId=" + taskInstance.getId(); + String mobileurl = "https://bpm.yili.com:8088/portal" + "/r/or?cmd=com.yili_process_page_phone&corpid=wwb0ae23173b140618&appAgentId=1000014&oauthName=wechat&processInstId=" + instanceById.getId() + "&taskInstId=" + taskInstance.getId(); + + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Timestamp endTime = instanceById.getStartTime(); + BO boActCoePublish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", instanceById.getId()).addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + + +//ProcessExecutionContext processExecutionContext,String fileCreateName,String fileName,String fileurl,String readingScope_org,String isFullCompany,String fileCreateDate,String relationProcessinstId,String readingScope_post,String readingScope_level,String fileid + String not_url = "/w?cmd=com.yili_process_page&processInstId=" + instanceById.getId() + "&taskInstId=" + taskInstance.getId(); + + + JSONObject jsonObject = new JSONObject(new LinkedHashMap()); + jsonObject.put("action", "read"); + jsonObject.put("title", " " + + "" + boActCoePublish.getString("PROCESS_TITLE") + ""); + //System.out.println("部门庄户》》》》》》》" + SDK.getORGAPI().getDepartmentByUser(taskInstance.getTarget()).getNo()); + jsonObject.put("dept", SDK.getORGAPI().getDepartmentByUser(taskInstance.getTarget()).getNo());//SDK.getORGAPI().getDepartmentByUser(processExecutionContext.getProcessInstance().getCreateUser()).getNo() + String target = taskInstance.getTarget(); + target = taskInstance.getTarget(); + + //System.out.println("当前账户======》》》》" + target); + + jsonObject.put("user", target); + + // jsonObject.put("user",);//processExecutionContext.getProcessInstance().getCreateUser() + jsonObject.put("date", sdf.format(endTime)); + jsonObject.put("remark", boActCoePublish.getString("PROCESS_TITLE")); + jsonObject.put("status", "0"); + jsonObject.put("dataid", instanceById.getId()); + jsonObject.put("pcurl", url); + jsonObject.put("mobileurl", mobileurl); + //list.add(1,"00352394"); + //list.add(2,"00352394"); + BO bo_act_coe_publish1 = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", processid).addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + String uid = ""; + String new_uid = ""; + /** + * 这块的判断主要是将组织,岗位,职级进行合并集进行相关的判断获取人员账户合集 + */ + + + if (bo_act_coe_publish1 != null) { + String sendType = bo_act_coe_publish1.getString("SEND_SCOP"); + + ArrayList userList = new ArrayList<>(); + ArrayList userList2 = new ArrayList(); + //获取组织 + String org = bo_act_coe_publish1.getString("SEND_SCOPE_ORG"); + if (StringUtils.isNotEmpty(org)||"1".equals(sendType)) { + long startTime = System.currentTimeMillis(); + userList = getUser(jsonObject,org,sendType, processid); + long endTimes = System.currentTimeMillis(); + System.out.println(instanceById.getTitle()+"_根据部门获取人员用时===>"+(endTimes-startTime)/1000); + } + //获取岗位 + String post = bo_act_coe_publish1.getString("SEND_SCOPE_POST"); + if (StringUtils.isNotEmpty(post)) { + String posts[] = post.split(","); + //取并集 + String postss = ""; + if (posts.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + postss = "'" + posts[0] + "'"; + } else { + postss = "'" + StringUtils.join(posts, "','") + "'"; + } + String sql = "select * from ORGUSER where POSITION_NO in (" + postss + ") and userno is not null"; + List maps1 = DBSql.getMaps(sql); + for (RowMap rowMap : maps1) { + String userId = rowMap.getString("USERID"); + RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '"+processid+"' AND USER_ID = '"+userId+"'"); + //BO boList = SDK.getBOAPI().query("BO_ACT_DATAID", true).addQuery("PROCESSID=", processid).addQuery("USER_ID=",userId).detail(); + if (!userList.contains(userId)&&map==null) { + userList.add(userId); + } + + } + } + //获取职级 + String level = bo_act_coe_publish1.getString("SEND_SCOPE_LEVEL"); + if (StringUtils.isNotEmpty(level)) { + String ranks[] = level.split(","); + String rankss = ""; + if (ranks.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + rankss = "'" + ranks[0] + "'"; + } else { + rankss = "'" + StringUtils.join(ranks, "','") + "'"; + } + //取交集 + String sql2 = "select * from ORGUSER where EXT2 in (" + rankss + ") and userno is not null"; + List maps2 = DBSql.getMaps(sql2); + for (RowMap rowMap : maps2) { + String userId = rowMap.getString("USERID"); + RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '"+processid+"' AND USER_ID = '"+userId+"'"); + //BO boList = SDK.getBOAPI().query("BO_ACT_DATAID", true).addQuery("PROCESSID=", processid).addQuery("USER_ID=",userId).detail(); + if (userList.contains(userId)&&map==null) { + userList2.add(userId); + } + + } + } + + if (StringUtils.isEmpty(level)) { + for (String uids : userList + ) { + uid += uids + ","; + + BO bo = new BO();//BO_EU_PAL_SEND_LOG + bo.set("USREID",instanceById.getCreateUser()); + bo.set("TITLE",instanceById.getTitle()); + bo.set("SENDTIME",instanceById.getEndTime()); + bo.set("PROCESSID",instanceById.getId()); + bo.set("USERNAMES",uids); + bo.set("DEPID",UserContext.fromUID(uids).getDepartmentModel().getId() + ); + bo.set("POSTNAME",UserContext.fromUID(uids).getUserModel().getPositionName() + ); + bo.set("BUNAME",UserContext.fromUID(uids).getUserModel().getExt2() + ); + SDK.getBOAPI().createDataBO("BO_EU_PAL_SEND_LOG",bo,UserContext.fromUID("admin")); + } + + + } else { + for (String uids : userList2 + ) { + uid += uids + ","; + BO bo = new BO();//BO_EU_PAL_SEND_LOG + bo.set("USREID",instanceById.getCreateUser()); + bo.set("TITLE",instanceById.getTitle()); + bo.set("SENDTIME",instanceById.getEndTime()); + bo.set("PROCESSID",instanceById.getId()); + bo.set("USERNAMES",uids); + bo.set("DEPID",UserContext.fromUID(uids).getDepartmentModel().getId() + ); + bo.set("POSTNAME",UserContext.fromUID(uids).getUserModel().getPositionName() + ); + bo.set("BUNAME",UserContext.fromUID(uids).getUserModel().getExt2() + ); + SDK.getBOAPI().createDataBO("BO_EU_PAL_SEND_LOG",bo,UserContext.fromUID("admin")); + } + } + //System.out.println("部门id》》》》》》》》》》》》》"+org_list ); + //System.out.println("posts_list》》》》》》》》》》》》》"+posts_list); + //System.out.println("ranks_list》》》》》》》》》》》》》"+ranks_list); + //System.out.println("部门数量》》》》》》》》》》》》》"+org_list.size() ); + //System.out.println("岗位数量》》》》》》》》》》》》》"+posts_list.size()); + //System.out.println("职级数量》》》》》》》》》》》》》"+ranks_list.size()); + + } + + + // //System.out.println("userid》》》》》》》》》》》》》》》》》》》"+uid); + if (StringUtils.isNotEmpty(uid + )) { + + uid = uid.substring(0, uid.length() - 1); + String[] split = uid.split(","); + + List list = new ArrayList(Arrays.asList(split)); + + HashSet h = new HashSet(list); + list.clear(); + list.addAll(h); + for (String userid : list + ) { + new_uid += userid + ","; + // //System.out.println("当前账户======》》》》"+userid); + // BO boEuOaReson = SDK.getBOAPI().query("BO_EU_OA_RESON", true).addQuery("WORKCODE=", userid).detail(); + // if (boEuOaReson!=null){ + /* BO bo = new BO(); + bo.set("USER_CODE",userid); + bo.set("USER_NAME",SDK.getORGAPI().getUser(userid).getUserName()); + UserContext userContext = UserContext.fromUID("admin"); + SDK.getBOAPI().createDataBO("BO_EU_YEUWS",bo,userContext);*/ + // } + + } + System.out.println("总推送人数>>>>>>>>>>>>" + list.size()); + } + + System.out.println("账户人员信息>>>>>>>>>>>>>" + new_uid); + + long startTime = System.currentTimeMillis(); +/** + * 对新的账户信息进行截取 + */ + if (StringUtils.isNotEmpty(new_uid + )) { + new_uid = new_uid.substring(0, new_uid.length() - 1); + } + /** + * 这块是对人员以300人为一个发送单位来实现进程的待阅发送 + */ + //System.out.println("new_userid ==========>>>>>>>>>"+new_uid); + String[] users = new_uid.split(","); + int length = 300; + int ys = users.length % length; + if (ys == 0) { + int size = users.length / length; + int flag = 0; + + List list = new LinkedList(); + + for (int i = 0; i < size; i++) { + String[] results; + results = Arrays.copyOfRange(users, flag, flag + 300); + list.add(results); + flag = flag + 300; + } + if(list.size()!=0) { + //corse(list, startTime, jsonObject, instanceById); + } + } else { + int size = users.length / length; + int flag = 0; + List list = new LinkedList(); + for (int i = 0; i < size; i++) { + String[] results; + results = Arrays.copyOfRange(users, flag, flag + 300); + list.add(results); + flag = flag + 300; + } + String[] redata; + redata = Arrays.copyOfRange(users, flag, flag + ys); + list.add(redata); + if(list.size()!=0) { + //corse(list, startTime, jsonObject, instanceById); + } + + + } + +/** + * 创建待阅日志 + */ + CreateReadLog(instanceById, jsonObject, users, startTime); + + BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", instanceById.getId()).addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + + + //流程发布的新增发布 + List bo_act_coe_publish_n = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N", true).addQuery("BINDID=", instanceById.getId()).list(); + List bo_act_coe_publish_c = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_C", true).addQuery("BINDID=", instanceById.getId()).list(); + List bo_act_coe_publish_s = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_S", true).addQuery("BINDID=", instanceById.getId()).list(); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + + JSONArray jsonArray = new JSONArray(); + + +/** + * 这里是去生成EHSQ相关数据 + */ + /* for (BO bo:bo_act_coe_publish_n + ) { + JSONArray jsonArray_EHSQ = new JSONArray(); + JSONObject jsonObject_ehsq = new JSONObject(new LinkedHashMap<>()); + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + wsId = model.getWsId(); + String publishfileid = bo.getString("PUBLISHFILEID"); + LinkedHashMap downloadurl = downloadUtil.outputReportDownload(UserContext.fromUID(processExecutionContext.getProcessInstance().getCreateUser()), bo.getString("TASKID"), publishfileid); + jsonObject_ehsq.put("fileid",bo.getString("TASKID")); + jsonObject_ehsq.put("filename",bo.getString("PUBLISHFILENAME")); + //jsonObject_ehsq.put("filecode",bo.getString("PUBLISH_NUMBER")); + jsonObject_ehsq.put("filecode","123456"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '"+publishfileid+"'"; + RowMap map = DBSql.getMap(sql_n); + jsonObject_ehsq.put("version",map.getString("PLVER")); + jsonObject_ehsq.put("releasedate",simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("effectivedate",simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("authorcode",processExecutionContext.getTaskInstance().getTarget()); + // jsonObject_ehsq.put("authorcode","00116465"); + jsonObject_ehsq.put("authorname",UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getUserName()); + //jsonObject_ehsq.put("authorname","毛鹏程"); + jsonObject_ehsq.put("companycode",UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getNo()); + //jsonObject_ehsq.put("companycode","00000013"); + jsonObject_ehsq.put("authorcompany",UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getName()); + //jsonObject_ehsq.put("authorcompany","总部质量管理部"); + // jsonObject_ehsq.put("releasescope","总部质量管理部"); + BO bo1 = SDK.getBOAPI().query("BO_ACT_PUBLISH_PERM_SCOPE", true).addQuery("PALNAME=", bo.getString("PUBLISHFILENAME")).detail(); + if (bo1!=null){ + if (bo1.getString("PERMTYPE").equals("1")){ + }else { + + String departname = ""; + String orgperm = bo1.getString("ORGPERM"); + String dleass = ""; + String[] deptSplit = orgperm.split(","); + if(deptSplit.length==1){ + dleass = "'"+deptSplit[0]+"'"; + } + dleass ="'"+ StringUtils.join(deptSplit, "','")+"'"; + + List maps = DBSql.getMaps("select DEPARTMENTNAME from ORGDEPARTMENT where ID in (" + dleass + ")"); + for (RowMap rowmas:maps + ) { + departname+=rowmas.getString("DEPARTMENTNAME")+";"; + } + jsonObject_ehsq.put("releasescope","总部质量管理部"); + + } + } + + System.out.println("任务办理者>>>>>>>>>>>"+processExecutionContext.getTaskInstance().getTarget()); + String sessionId = new SSOUtil().registerClientSessionNoPassword(processExecutionContext.getTaskInstance().getTarget(), LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC); + + System.out.println("办理者的sessionid>>>>>>>>>>>"+sessionId); + String downurl = downloadUtil.getzipURL(sessionId,bo.getString("TASKID"),bo.getString("PUBLISHFILENAME")); + //jsonObject_ehsq.put("downloadurl","http://bpm.yili.com:8088/portal/r"+downurl.toString().substring(1)); + + String recordfiles = ""; + String recordurls = ""; + Set keys = downloadurl.keySet(); + for ( String key : keys ) { + recordfiles+=key+";"; + String cent_url = downloadurl.get(key).substring(downloadurl.get(key).indexOf("/df"),downloadurl.get(key).length()); + String fileDownurl = "http://bpm.yili.com:8088/portal/r"+cent_url; + recordurls+=fileDownurl+";"; + } + String new_name = ""; + String[] split = recordfiles.split(";"); + if (split.length>0){ + + for (int i =1;i0){ + String loadurl = urls[0].replaceAll("&sid=null","&sid="+sessionId); + System.out.println("下载的地址是<<<<<<<<<<<<<<<<<<"+loadurl); + jsonObject_ehsq.put("downloadurl",loadurl); + for (int i =1;i()); + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + wsId = model.getWsId(); + String publishfileid = bo.getString("CHANGEDFILEIDNEW"); + LinkedHashMap downloadurl = downloadUtil.outputReportDownload(UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()), bo.getString("TASKID"), publishfileid); + jsonObject_ehsq.put("fileid",bo.getString("TASKID")); + jsonObject_ehsq.put("filename",bo.getString("CHANGEDFILENAMENEW")); + //jsonObject_ehsq.put("filecode",bo.getString("CHANGE_NUMBER")); + jsonObject_ehsq.put("filecode","123456"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '"+publishfileid+"'"; + RowMap map = DBSql.getMap(sql_n); + jsonObject_ehsq.put("verion",map.getString("PLVER")); + jsonObject_ehsq.put("releasedate",simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("effectivedate",simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("authorcode",processExecutionContext.getTaskInstance().getTarget()); + jsonObject_ehsq.put("authorname",UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getUserName()); + jsonObject_ehsq.put("companycode",UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getNo()); + jsonObject_ehsq.put("authorcompany",UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getName()); + BO bo1 = SDK.getBOAPI().query("BO_ACT_PUBLISH_PERM_SCOPE", true).addQuery("PALNAME=", bo.getString("PUBLISHFILENAME")).detail(); + if (bo1!=null){ + if (bo1.getString("PERMTYPE").equals("1")){ + jsonObject_ehsq.put("releasescope","内蒙古伊利实业集团股份有限公司"); + }else { + + String departname = ""; + String orgperm = bo1.getString("ORGPERM"); + String dleass = ""; + String[] deptSplit = orgperm.split(","); + if(deptSplit.length==1){ + dleass = "'"+deptSplit[0]+"'"; + } + dleass ="'"+ StringUtils.join(deptSplit, "','")+"'"; + + List maps = DBSql.getMaps("select DEPARTMENTNAME from ORGDEPARTMENT where ID in (" + dleass + ")"); + for (RowMap rowmas:maps + ) { + departname+=rowmas.getString("DEPARTMENTNAME")+";"; + } + jsonObject_ehsq.put("releasescope",departname); + + } + } + + String sessionId = new SSOUtil().registerClientSessionNoPassword(processExecutionContext.getTaskInstance().getTarget(), LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC); + + String downurl = downloadUtil.getzipURL(sessionId,bo.getString("TASKID"),bo.getString("CHANGEDFILENAMENEW")); + String recordfiles = ""; + String recordurls = ""; + Set keys = downloadurl.keySet(); + for ( String key : keys ) { + recordfiles+=key+";"; + String cent_url = downloadurl.get(key).substring(downloadurl.get(key).indexOf("/df"),downloadurl.get(key).length()); + String fileDownurl = "http://bpm.yili.com:8088/portal/r"+cent_url; + recordurls+=fileDownurl+";"; + } + String new_name = ""; + String[] split = recordfiles.split(";"); + if (split.length>0){ + + for (int i =1;i0){ + String loadurl = urls[0].replaceAll("&sid=null","&sid="+sessionId); + System.out.println("下载的地址是<<<<<<<<<<<<<<<<<<"+loadurl); + jsonObject_ehsq.put("downloadurl",loadurl); + for (int i =1;i>>>>>>" + map); + System.out.println("fileid==》》》》" + fileid); + System.out.println("id==》》》》" + map.getString("ID")); + RowMap rowMap = DBSql.getMap("SELECT * FROM " + bo_name + " where " + fileid + " '" + map.getString("ID") + "'"); + //BO bos = SDK.getBOAPI().query(bo_name,true).addQuery(fileid,"17e7d198-1656-4a2c-8912-a81850170be9").detail(); + if (rowMap != null) { + + if (StringUtils.isNotEmpty(rowMap.getString("TASKID"))) { + + OutputTaskModel model = new OutputTask().getTaskReportById(rowMap.getString("TASKID")); + if (model != null) { + System.out.println(",pdel============" + model); + System.out.println("123313123123123==========" + model.getProfileId()); + OutputAppProfile appProfile = OutputAppManager.getProfile(model.getProfileId()); + System.out.println("dajadfas======" + appProfile); + if (appProfile == null) { + throw new AWSException("Not Find OutputAppProfile! profileId=" + model.getProfileId()); + } + DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT); + if (dcProfile == null) + throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT); + String sql_lever = ""; + if (bo_name.equals("BO_ACT_COE_PUBLISH_N")) { + sql_lever = "SELECT PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID = '" + rowMap.getString("PUBLISHFILEID") + "'"; + + } else if (bo_name.equals("BO_ACT_COE_PUBLISH_C")) { + sql_lever = "SELECT PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID = '" + rowMap.getString("CHANGEDFILEIDNEW") + "'"; + } + String lever = DBSql.getString(sql_lever); + System.out.println("版本号::::::::::::" + lever); + //lever = lever.substring(0,3); + if (lever.length() == 5 && lever.substring(4).equals("0")) { + lever.substring(0, 3); + } else if (lever.length() == 1) { + lever = lever + ".0"; + } + String filename = ""; + if (bo_name.equals("BO_ACT_COE_PUBLISH_N")) { + filename = rowMap.getString("PUBLISHFILENAME"); + } else if (bo_name.equals("BO_ACT_COE_PUBLISH_C")) { + filename = rowMap.getString("CHANGEDFILENAMENEW"); + } + DCContext dcContext = new DCContext(userContext, dcProfile, appProfile.getAppContext().getId(), model.getWsId(), rowMap.getString("TASKID"), filename + "_" + lever + ".doc"); + //UtilFile file = new UtilFile(dcContext.getPath()); + + + Map params = new HashMap(); +//知识ID,必填 + params.put("cardId", cardId); +//sid,必填 + params.put("sid", userContext.getSessionId()); + + params.put("dc", dcContext); + AppAPI appAPI = SDK.getAppAPI(); +//创建文件 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("流程手册的存入=================" + ro); + } + } + + } + String sql_A = "SELECT PLNAME FROM APP_ACT_COE_PAL_REPOSITORY where ID = '" + map.getString("ID") + "' AND PLMETHODID != 'process.framework' AND PLMETHODID IN (select distinct PLMETHODID from APP_ACT_COE_PAL_REPOSITORY)"; + List rows = DBSql.getMaps(sql_A); + + for (RowMap bo : rows + ) { + + /** + * 这个是模型中的附件获取的并插入的数据信息,需要做修改 + */ + // 调用App + +// 参数定义列表 + Map paramss = new HashMap(); +//知识ID,必填 + paramss.put("cardId", cardId); +//sid,必填 + paramss.put("sid", userContext.getSessionId()); + + UpfileWeb upfileWeb = new UpfileWeb(userContext); + + + String sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where PLMETHODID != 'process.framework' AND ID= '" + map.getString("ID") + "'" + + ")"; + List maps = DBSql.getMaps(sql_upfile); + for (RowMap row : maps) { + System.out.println("附件名称>>>>>>" + row.getString("FILENAME")); + if (!row.getString("FILENAME").contains(".xml")) { + UpfileModel upfileModel = new UpfileModel(); + upfileModel.setType(row.getString("FILETYPE")); + upfileModel.setFileName(row.getString("FILENAME")); + upfileModel.setPl_uuid(row.getString("PALREPOSITORYID")); + upfileModel.setShape_uuid(row.getString("SHAPEID")); + DCContext dcContexts = upfileWeb.getDCContext(upfileModel); + paramss.put("dc", dcContexts); + AppAPI appAPIs = SDK.getAppAPI(); + ResponseObject ros = appAPIs.callASLP(appAPIs.getAppContext(sourceAppId), aslp, paramss); + System.out.println("流程模型附件的生成=============" + ros); + } + } + +//DCContext对象,必填 + +//创建文件 + } + try { + + PublishKnow(processInstance, userContext, cardId); + } catch (Exception e) { + e.printStackTrace(); + } + } + } + + + /** + * 发布知识 + * + * @param processInstance + * @param userContext + * @param id + */ + public void PublishKnow(ProcessInstance processInstance, UserContext userContext, String id) { + + String sql = "select EXT4 from APP_ACT_COE_PAL_REPOSITORY where id in (select PLPARENTID from APP_ACT_COE_PAL_REPOSITORY where EXT4 = '" + id + "')"; + List maps = DBSql.getMaps(sql); + String ids = ""; + for (RowMap rowmap : maps + ) { + ids += rowmap.getString("EXT4") + ","; + } + String[] deptSplit_id = ids.split(","); + + JSONArray jsonArray = new JSONArray(); + for (String id_names : deptSplit_id + ) { + jsonArray.add(id_names); + } + //jsonObject.put(deptSplit_id); + id += ","; + String[] deptSplit_das = id.split(","); + JSONArray jsonArray_das = new JSONArray(); + for (String das : deptSplit_das + ) { + jsonArray_das.add(das); + } + //jsonObject.put(deptSplit_id); + + if (!jsonArray_das.isEmpty() && !jsonArray.isEmpty()) { + + // 调用App + String sourceAppId = processInstance + .getAppId(); +// aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/PublishKnwl"; +// 参数定义列表 + Map params = new HashMap(); +//要发布到的维度ID的JSON数组字符串,必填 + params.put("dimensionIDArray", jsonArray.toString()); +//要发布的知识ID的JSON数组字符串,必填 + params.put("knwlIDArray", jsonArray_das.toString()); +//标签的JSON数组字符串,非必填 + +//sid,必填 + params.put("sid", userContext.getSessionId()); + AppAPI appAPI = SDK.getAppAPI(); +//发布知识 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + + System.out.println("知识发布============" + ro); + + } + + } + + /** + * 取消发布知识 + * + * @param processInstance + * @param sid + * @param knwlId + * @return + */ + public boolean CancelPublishKnwl(ProcessInstance processInstance, String sid, String knwlId) { +// 调用App + String sourceAppId = processInstance.getAppId(); +// aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/CancelPublishKnwl"; +// 参数定义列表 + Map params = new HashMap(); +//sid,如果为空,则需要传createUser参数,非必填 + params.put("sid", sid); +//知识ID,必填 + params.put("knwlId", knwlId); + AppAPI appAPI = SDK.getAppAPI(); +//取消发布知识(全部维度) + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("取消发布的ro=====>>>>" + ro); + return ro.isOk(); + } + + /** + * 创建XPage页面上的待阅 + * + * @param processExecutionContext + * @param fileCreateName + * @param fileName + * @param fileurl + * @param readingScope_org + * @param isFullCompany + * @param fileCreateDate + * @param relationProcessinstId + * @param readingScope_post + * @param readingScope_level + * @param fileid + * @return + */ + public boolean execute(ProcessExecutionContext processExecutionContext, String fileCreateName, String fileName, String fileurl, String readingScope_org, String isFullCompany, String fileCreateDate, String relationProcessinstId, String readingScope_post, String readingScope_level, String fileid) { +// 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); +// aslp服务地址 + String aslp = "aslp://com.awspaas.user.apps.docview/PushFileToXpage"; +// 参数定义列表 + Map params = new HashMap(); +//发布人,不允许空值,必填 + params.put("fileCreateName", fileCreateName); +//待阅文件标题名称,不允许空值,必填 + params.put("fileName", fileName); +//阅读范围_组织,不允许空值,非必填 + params.put("readingScope_org", readingScope_org); +//是否全公司可见,不允许空值,必填 + params.put("isFullCompany", isFullCompany); +//待阅文件Url,不允许空值,必填 + params.put("fileurl", fileurl); +//发布日期,不允许空值,必填 + params.put("fileCreateDate", fileCreateDate); +//发布流程ID,不允许空值,必填 + params.put("relationProcessinstId", relationProcessinstId); +//阅读范围_岗位,不允许空值,非必填 + params.put("readingScope_post", readingScope_post); +//阅读范围_职级,不允许空值,非必填 + params.put("readingScope_level", readingScope_level); +//待阅文件ID,多个逗号隔开,不允许空值,必填 + params.put("fileid", fileid); + AppAPI appAPI = SDK.getAppAPI(); +//推送待阅文件到xpage门户 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("ros++++++++=====待阅》》》》》》》》》》" + ro); + return ro.isOk(); + } + + + /** + * 给知识授权 + * + * @param processInstance + * @param jsonArray + * @param sid + * @param knwlId + * @return + */ + public boolean AddKnwlAC(ProcessInstance processInstance, JSONArray jsonArray, String sid, String knwlId) { +// 调用App + String sourceAppId = processInstance.getAppId(); +// aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/AddKnwlAC"; +// 参数定义列表 + Map params = new HashMap(); +//[{"assignmentType":"department","assignmentId":"62196ff9-a26d-4be5-9480-3ef680886f63"},{"assignmentType":"user","assignmentId":"user1"}],必填 + params.put("acList", jsonArray); +//sid,如果为空,则需要传createUser参数,非必填 + params.put("sid", sid); +//知识ID,必填 + params.put("knwlId", knwlId); + AppAPI appAPI = SDK.getAppAPI(); +//给知识授权 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + return ro.isOk(); + } + + + /** + * 柱军代码,不知道做什么用的 + * + * @param processInstance + * @param wsId + * @param fileId + * @return + */ + public boolean AttrSynAslp(ProcessInstance processInstance, String wsId, JSONArray fileId) { + System.out.println(""); + // 调用App + String sourceAppId = processInstance.getAppId(); +// aslp服务地址 + String aslp = "aslp://com.awspaas.user.apps.yili.reportform/AttrSynAslp"; +// 参数定义列表 + Map params = new HashMap(); +//资产内容库id,必填 + params.put("wsId", wsId); +//文件id;json数组[id1,id2,id3],必填 + params.put("fileId", fileId); + AppAPI appAPI = SDK.getAppAPI(); +//增量同步数据 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("ro>>>>>>>>>>>>>" + ro); + return ro.isOk(); + } + + /** + * 发送OA待阅数据 + * + * @param jsonObject + * @param processInstance + * @param results + * @throws DocumentException + */ + public void SendOARead(JSONObject jsonObject, ProcessInstance processInstance, String[] results) throws DocumentException { + + System.err.println("===推送人员====>"+results); + String userId = ""; + userId = StringUtils.join(results, ","); + if("".equals(userId)||UtilString.isEmpty(userId)) { + return; + } + jsonObject.put("userList", userId); + String xmlStr = "\n" + + " " + + " " + + " " + + " " + + "" + + " " + + " " + + " " + + ""; + System.out.println("xmlStr>>>>>>>>" + xmlStr); + String readurl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "readurl"); + + String postSoap = UtilUrl.doPostSoap(readurl, xmlStr, ""); + Document document = DocumentHelper.parseText(postSoap); + Element rootElement = document.getRootElement(); + System.out.println("rootElement>>>>>>" + rootElement); + Element result = rootElement.element("Body").element("serviceResponse").element("out"); + String resultString = result.getData().toString(); + JSONObject jsonObject1 = JSON.parseObject(resultString); + String datas = jsonObject1.getString("data"); + String status = jsonObject1.getString("status"); + System.out.println("状态是什么》》》》》》》》》》》" + status); + if("false".equals(status)) { + try { + BO bo = new BO(); + bo.set("TITLE", processInstance.getTitle()); + bo.set("NAME", userId); + bo.set("DEPNAME", SDK.getORGAPI().getUser(userId).getDepartmentId()); + SDK.getBOAPI().create("BO_EU_READ_COUNT", bo, processInstance.getId(), processInstance.getCreateUser()); + } catch (Exception e) { + // TODO: handle exception + } + }else { + System.out.println(processInstance.getTitle()+"待阅推送成功:" + userId); + } + JSONArray resultArray = JSONObject.parseArray(datas); + for (int j = 0; j < resultArray.size(); j++) { + JSONObject jsonObject2 = resultArray.getJSONObject(j); + String user = jsonObject2.get("user").toString(); + String dataid = jsonObject2.get("dataid").toString(); + BO bo = new BO(); + bo.set("TITLE", processInstance.getTitle()); + bo.set("PROCESSID", processInstance.getId()); + bo.set("USER_ID", user); + bo.set("DATAID", dataid); + bo.set("RESULT", status); + SDK.getBOAPI().create("BO_ACT_DATAID", bo, processInstance.getId(), processInstance.getCreateUser()); + } + } + + /** + * 发送EHSQ接口 + * + * @param jsonArray + * @return + * @throws Exception + */ + public String SendEHSQFile(JSONArray jsonArray) throws Exception { + System.out.println("===jsonArray===" + jsonArray); + /** + * 首先需要将传过来的参数进行加密操作,并设置 + */ + AesUtil aesUtil = new AesUtil(); + String system = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "system"); + String AES = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "AES"); + String EHSQUrl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "EHSQUrl"); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + String date = sdf.format(new Date()); + String s1 = date.replaceAll("-", "").replaceAll(" ", "").replaceAll(":", ""); + + System.out.println("时间>>>>>>>>>>>>" + s1); + String data = system + "##" + s1; + String encrypt = aesUtil.encrypt(data, AES); //获取加密之后的秘钥 + JSONObject jsonObject = new JSONObject(new LinkedHashMap<>()); + jsonObject.put("system", system); + jsonObject.put("token", encrypt); + jsonObject.put("infos", jsonArray); + HttpUtil httpUtil = new HttpUtil(); + System.out.println("jsonobject>>>>>>>>>>>>>>>>>>>" + jsonObject); + String s = httpUtil.sendPost(jsonObject, EHSQUrl); + System.out.println("发送到EHSQ是否是正确的>>>>>>>>>" + s); + + return s; + } + + /** + * 根据部门id获取当前部门以及下级部门的人员信息 + * + * @param processid + * @return + */ + + public ArrayList getUser( JSONObject jsonObject,String depIds, String sendType, String processid) { + System.err.println("sendType=====>"+sendType); + ArrayList arr = new ArrayList(); + ArrayList arr_test = new ArrayList(); + //全集团 + if ("1".equals(sendType)) { + List departmentsByCompanyId = SDK.getORGAPI().getDepartmentsByCompanyId(1, "8911e732-b42a-4556-853f-ad32761bcbee"); + for (DepartmentModel departmentModel : departmentsByCompanyId) { + String id = departmentModel.getId(); + if(!departmentModel.isClosed()&&!"e79281b1-2f81-4895-b30e-9f96e9ad0e2c".equals(id)&&!"5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe".equals(id)) { + System.err.println("==depName=====>"+departmentModel.getName()); + getUserList(jsonObject,arr_test,arr,id, processid); + + } + } + } /* + * else { if(UtilString.isNotEmpty(depIds)) { //具体部门 String[] split = + * depIds.split(","); for (String depId : split) { + * getUserList(jsonObject,arr_test,arr, depId, processid); } } } + */ + + + System.err.println(SDK.getProcessAPI().getInstanceById(processid)+"_得到的总人数为:"+arr_test.size()); + System.err.println(SDK.getProcessAPI().getInstanceById(processid)+"_得到的过滤后的人数为:"+arr.size()); + return arr; + } + + public void getUserList( JSONObject jsonObject,ArrayList arr_test,ArrayList arr, String departmentId, String processid) { + // 获取当前部门下人员 + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(departmentId); + for (UserModel userModel : userModelList) { + if (!userModel.isClosed()) { + String uid = userModel.getUID(); + if (!arr.contains(uid)) { + arr_test.add(uid); + RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '"+processid+"' AND USER_ID = '"+uid+"'"); + if (map == null) { + System.err.println("发送人员======>"+uid); + String[] users = uid.split(","); + List list = new LinkedList(); + list.add(users); + long startTime = System.currentTimeMillis(); + corse(list, startTime, jsonObject, SDK.getProcessAPI().getInstanceById(processid)); + arr.add(userModel.getUID()); + } + } + } + } + // 获取当前部门的子部门人员 + DepartmentModel departmentById = SDK.getORGAPI().getDepartmentById(departmentId); + if (departmentById.isExistSubModelOfCache()) { + getSubDepartments(jsonObject,arr_test,arr, departmentById, processid); + } + + } + + //获取子部门人员 + public void getSubDepartments(JSONObject jsonObject,ArrayList arr_test,ArrayList arr, DepartmentModel departmentById, String processid) { + if (!departmentById.isClosed()) { + List subDepartments = SDK.getORGAPI().getSubDepartments(departmentById.getId()); + for (DepartmentModel departmentModel : subDepartments) { + if(!departmentModel.isClosed()) { + String id = departmentModel.getId(); + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(id); + for (UserModel userModel : userModelList) { + if (!userModel.isClosed()) { + String uid = userModel.getUID(); + if (!arr.contains(uid)) { + arr_test.add(uid); + RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '"+processid+"' AND USER_ID = '"+uid+"'"); + if (map == null) { + String[] users = uid.split(","); + List list = new LinkedList(); + list.add(users); + long startTime = System.currentTimeMillis(); + corse(list, startTime, jsonObject, SDK.getProcessAPI().getInstanceById(processid)); + System.err.println(SDK.getProcessAPI().getInstanceById(processid)+"_发送人员======>"+uid); + //arr.add(uid); + } + } + } + } + //递归获取子部门下的子部门 + if (SDK.getORGAPI().isExistSubDepartment(id)) { + getSubDepartments(jsonObject,arr_test,arr,SDK.getORGAPI().getDepartmentById(id),processid); + } + + } + + } + } + } + + /** + * 创建更新的知识 + * + * @param bo + * @param wsId + * @param filed + * @param instanceById + * @param bo_act_coe_publish + * @param uid + */ + public void CreateKmsByUpdate(BO bo, String wsId, JSONArray filed, ProcessInstance instanceById, BO bo_act_coe_publish, String uid) { + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + wsId = model.getWsId(); + String publishfileid = bo.getString("CHANGEDFILEIDNEW"); + filed.add(publishfileid) + + + ; + DBSql.update("update APP_ACT_COE_PAL_REPOSITORY set EXT4 = '' where id = '" + publishfileid + "'"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + if (StringUtils.isEmpty(map.getString("EXT4"))) { + // aslp服务地址 + String aslps_create = "aslp://com.actionsoft.apps.kms/CreateKnwl"; +// 参数定义列表 + Map params_create = new HashMap(); +//保密级别, 0: 普通 1:秘密 2:机密,必填 + params_create.put("securityLevel", 0); +//知识名称,必填 + String level = ""; + if (map != null) { + if (map.getString("PLVER").contains(".00")) { + String[] plvers = map.getString("PLVER").split("\\."); + plvers[1] = plvers[1].replaceAll("0", ""); + level = plvers[0] + plvers[1]; + } else { + level = map.getString("PLVER"); + } + } + + + params_create.put("knwlName", map.getString("PLNAME") + "V" + level); +//是否可以评论,必填 + params_create.put("isComment", true); +//是否可以评分,必填 + params_create.put("isRate", true); +//有效期:yyyy-MM-dd,非必填 + params_create.put("validDate", "2099-12-31"); +//只读控制,1:在线阅读和下载 0:在线阅读,必填 + params_create.put("onlineLevel", 1); +//知识创建人,某些特殊场景下,sid和createUser代表的用户并不一样,如果此参数为null,则使用sid代表的用户,非必填 + params_create.put("createUser", "admin"); +//知识内容,非必填 + params_create.put("cardContext", ""); +//sid,必填 + params_create.put("sid", UserContext.fromUID(instanceById.getCreateUser()).getSessionId()); + AppAPI appAPI_create = SDK.getAppAPI(); +//创建知识 + ResponseObject ro_create = appAPI_create.callASLP(appAPI_create.getAppContext(instanceById.getAppId()), aslps_create, params_create); + System.out.println("ro_create================" + ro_create); + String cardId = ((LinkedHashMap) ro_create.getData()).get("cardId").toString(); + JSONArray jsonArray1 = new JSONArray(); + if (bo_act_coe_publish.getString("SEND_SCOP").equals("0")) { + String departId = bo_act_coe_publish.getString("SEND_SCOPE_ORG"); + if (StringUtils.isNotEmpty(departId) && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_LEVEL")) && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_POST"))) { + String strs[] = departId.split(","); + for (String departmentid : strs + ) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", departmentid); + jsonArray1.add(jsonObjecta); + } + } else { + String[] split = uid.split(","); + + List list = new ArrayList(Arrays.asList(split)); + + HashSet h = new HashSet(list); + list.clear(); + list.addAll(h); + + for (String user_id : list + ) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "user"); + jsonObjecta.put("assignmentId", user_id); + jsonArray1.add(jsonObjecta); + } + } + + } else { + List select_id_from_orgdepartment = DBSql.getMaps("select ID from ORGDEPARTMENT"); + for (RowMap depaid : + select_id_from_orgdepartment) { + String id = depaid.getString("ID"); + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", id); + jsonArray1.add(jsonObjecta); + } + } + AddKnwlAC(instanceById, jsonArray1, UserContext.fromUID(instanceById.getCreateUser()).getSessionId(), cardId); + + String update_sql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '" + cardId + "' WHERE " + + " PLCATEGORY = 'process'and PLMETHODID !='process.framework' " + + " and PLNAME not in ('流程架构图','测试用','GMY-截图用','sx批量测试'" + + " ,'8.2培训使用','用户练习使用','YX测试分部','yx测试人员','yx测试部','流程架构测试')" + + " and PLPARENTID not in ('63ff93c6-2f27-4851-a396-6830c428db2e'," + + " 'c84f497a-4de3-4404-86e8-cd5af71c3b47','94dabf55-b032-4316-a4c3-00b83763da09'," + + " '36ac7cdd-a361-4bd3-9511-c03c1b3627a4','84e534b4-e51a-4874-9ff1-8a0206d9e0c5'," + + " '98bd5917-7563-4b29-b775-815e91d9864c','f07da63c-3423-4c1e-ae75-b323c6a69093'," + + " '79cb4c35-d2f7-4c43-a7db-44038b557eac','7ad79a73-a497-417a-a5ec-d4c9fd45061c'," + + " '42c09260-c1d3-44b7-ac3d-f8280e04c294') and ID = '" + publishfileid + "'"; + int update = DBSql.update(update_sql); + System.out.println("更新id为:" + publishfileid + "版本为:的知识对应的资产库的EXT4的影响行数为" + update); + creadteFile(instanceById, "BO_ACT_COE_PUBLISH_C", UserContext.fromUID(instanceById.getCreateUser()), cardId, " CHANGEDFILEIDNEW="); + } + //将旧的知识取消发布或者移动到废止发布中 + String publishfileid_old = bo.getString("CHANGEFILEID"); + String sql_c = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid_old + "'"; + RowMap map1 = DBSql.getMap(sql_c); + if (StringUtils.isNotEmpty(map1.getString("EXT4"))) { + CancelPublishKnwl(instanceById, UserContext.fromUID(instanceById.getCreateUser()).getSessionId(), map1.getString("EXT4")); + DBSql.update( + "UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '' WHERE ID = '" + publishfileid_old + "'" + ); + } + } + + public void CreateKmsBynew(BO bo, String wsId, JSONArray filed, ProcessInstance instanceById, BO bo_act_coe_publish, String uid) { + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + wsId = model.getWsId(); + String publishfileid = bo.getString("PUBLISHFILEID"); + filed.add(publishfileid); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + if (StringUtils.isEmpty(map.getString("EXT4"))) { + // aslp服务地址 + String aslps_create = "aslp://com.actionsoft.apps.kms/CreateKnwl"; +// 参数定义列表 + Map params_create = new HashMap(); +//保密级别, 0: 普通 1:秘密 2:机密,必填 + params_create.put("securityLevel", 0); +//知识名称,必填 + + String level = ""; + + + if (map.getString("PLVER").contains(".00")) { + String[] plvers = map.getString("PLVER").split("\\."); + plvers[1] = plvers[1].replaceAll("0", ""); + level = plvers[0] + plvers[1]; + } else { + level = map.getString("PLVER"); + } + + params_create.put("knwlName", map.getString("PLNAME") + "V" + level); +//是否可以评论,必填 + params_create.put("isComment", true); +//是否可以评分,必填 + params_create.put("isRate", true); +//有效期:yyyy-MM-dd,非必填 + params_create.put("validDate", "2099-12-31"); +//只读控制,1:在线阅读和下载 0:在线阅读,必填 + params_create.put("onlineLevel", 1); +//知识创建人,某些特殊场景下,sid和createUser代表的用户并不一样,如果此参数为null,则使用sid代表的用户,非必填 + params_create.put("createUser", "admin"); +//知识内容,非必填 + params_create.put("cardContext", ""); +//sid,必填 + params_create.put("sid", UserContext.fromUID(instanceById.getCreateUser()).getSessionId()); + AppAPI appAPI_create = SDK.getAppAPI(); +//创建知识 + ResponseObject ro_create = appAPI_create.callASLP(appAPI_create.getAppContext(instanceById.getAppId()), aslps_create, params_create); + System.out.println("ro_create================" + ro_create); + String cardId = ((LinkedHashMap) ro_create.getData()).get("cardId").toString(); + JSONArray jsonArray1 = new JSONArray(); + if (bo_act_coe_publish.getString("SEND_SCOP").equals("0")) { + String departId = bo_act_coe_publish.getString("SEND_SCOPE_ORG"); + if (StringUtils.isNotEmpty(departId) && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_LEVEL")) && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_POST"))) { + String strs[] = departId.split(","); + for (String departmentid : strs + ) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", departmentid); + jsonArray1.add(jsonObjecta); + } + } else { + + String[] split = uid.split(","); + + List list = new ArrayList(Arrays.asList(split)); + + HashSet h = new HashSet(list); + list.clear(); + list.addAll(h); + + for (String user_id : list + ) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "user"); + jsonObjecta.put("assignmentId", user_id); + jsonArray1.add(jsonObjecta); + } + } + } else { + List select_id_from_orgdepartment = DBSql.getMaps("select ID from ORGDEPARTMENT"); + for (RowMap depaid : + select_id_from_orgdepartment) { + String id = depaid.getString("ID"); + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", id); + jsonArray1.add(jsonObjecta); + } + } + + + AddKnwlAC(instanceById, jsonArray1, UserContext.fromUID(instanceById.getCreateUser()).getSessionId(), cardId); + + String update_sql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '" + cardId + "' WHERE " + + " PLCATEGORY = 'process'and PLMETHODID !='process.framework' " + + " and PLNAME not in ('流程架构图','测试用','GMY-截图用','sx批量测试'" + + " ,'8.2培训使用','用户练习使用','YX测试分部','yx测试人员','yx测试部','流程架构测试')" + + " and PLPARENTID not in ('63ff93c6-2f27-4851-a396-6830c428db2e'," + + " 'c84f497a-4de3-4404-86e8-cd5af71c3b47','94dabf55-b032-4316-a4c3-00b83763da09'," + + " '36ac7cdd-a361-4bd3-9511-c03c1b3627a4','84e534b4-e51a-4874-9ff1-8a0206d9e0c5'," + + " '98bd5917-7563-4b29-b775-815e91d9864c','f07da63c-3423-4c1e-ae75-b323c6a69093'," + + " '79cb4c35-d2f7-4c43-a7db-44038b557eac','7ad79a73-a497-417a-a5ec-d4c9fd45061c'," + + " '42c09260-c1d3-44b7-ac3d-f8280e04c294') and ID = '" + publishfileid + "'"; + int update = DBSql.update(update_sql); + System.out.println("更新id为:" + publishfileid + "版本为:的知识对应的资产库的EXT4的影响行数为" + update); + creadteFile(instanceById, "BO_ACT_COE_PUBLISH_N", UserContext.fromUID(instanceById.getCreateUser()), cardId, "PUBLISHFILEID = "); + } + } + + /** + * 以线程进行发送待阅信息 + * + * @param list + * @param startTime + * @param jsonObject + * @param instanceById + */ + public void corse(List list, long startTime, JSONObject jsonObject, ProcessInstance instanceById) { + + int i = 0; + for (String[] resrt : list + ) { + if ((list.size() - 1) == i) { + long endTime = System.currentTimeMillis(); + + long time = endTime - startTime; + long itmes = time / 1000 / 60 / 60; + BO bo_eu_pal_read_log = SDK.getBOAPI().query("BO_EU_PAL_READ_LOG", true).addQuery("PROCESSID = ", instanceById.getId()).detail(); + bo_eu_pal_read_log.set("ENDTIMES", endTime); + bo_eu_pal_read_log.set("TIMECOUNT", itmes); + SDK.getBOAPI().update("BO_EU_PAL_READ_LOG", bo_eu_pal_read_log); + } + try { + SendOARead(jsonObject, instanceById, resrt); + } catch (DocumentException e) { + e.printStackTrace(); + } + i++; + } + + + // 创建线程来实现为每300人为一个的线程跑待阅 + /* + * ExecutorService service = Executors.newFixedThreadPool(1); + * service.execute(new Runnable() { + * + * @Override public void run() { + * + * } }); + */ + } + + /** + * 创建待阅日志信息 + * + * @param instanceById + * @param jsonObject + * @param users + * @param startTime + */ + public void CreateReadLog(ProcessInstance instanceById, JSONObject jsonObject, String[] users, long startTime) { + BO bo_Read_log = new BO(); + bo_Read_log.set("USREID", instanceById.getCreateUser()); + bo_Read_log.set("DEPID", UserContext.fromUID(instanceById.getCreateUser()).getDepartmentModel().getId()); + bo_Read_log.set("BUNAME", UserContext.fromUID(instanceById.getCreateUser()).getUserModel().getExt4()); + bo_Read_log.set("TITLE", jsonObject.get("title")); + bo_Read_log.set("PROCESSID", instanceById.getId()); + bo_Read_log.set("SENDNUM", users.length); + BO bo_act_coe_publishs = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", instanceById.getId()).addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + String send_scop = bo_act_coe_publishs.getString("SEND_SCOP"); + bo_Read_log.set("SEND_SCOP", send_scop); + String SEND_SCOPE_ORG = bo_act_coe_publishs.getString("SEND_SCOPE_ORG"); + if (UtilString.isNotEmpty(SEND_SCOPE_ORG)) { + String[] resulr = SEND_SCOPE_ORG.split(","); + bo_Read_log.set("SEND_SCOPE_ORGNUM", resulr.length); + } + String SEND_SCOPE_POST = bo_act_coe_publishs.getString("SEND_SCOPE_POST"); + if (UtilString.isNotEmpty(SEND_SCOPE_POST)) { + String[] resulr = SEND_SCOPE_POST.split(","); + bo_Read_log.set("SEND_SCOPE_POST_NUM", resulr.length); + } + String SEND_SCOPE_LEVEL = bo_act_coe_publishs.getString("SEND_SCOPE_LEVEL"); + if (UtilString.isNotEmpty(SEND_SCOPE_LEVEL)) { + String[] resulr = SEND_SCOPE_LEVEL.split(","); + bo_Read_log.set("SEND_SCOPE_LEVEL_NUM", resulr.length); + } + + bo_Read_log.set("STARTTIMES", startTime); + SDK.getBOAPI().createDataBO("BO_EU_PAL_READ_LOG", bo_Read_log, UserContext.fromUID(instanceById.getCreateUser())); + + } +} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/sendReadByDataid3.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/sendReadByDataid3.java new file mode 100644 index 00000000..3b475209 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/integration/job/sendReadByDataid3.java @@ -0,0 +1,1329 @@ +package com.awspaas.user.apps.app.integration.job; + +import java.sql.Timestamp; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; +import java.util.HashMap; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + +import org.apache.commons.lang.StringUtils; +import org.dom4j.Document; +import org.dom4j.DocumentException; +import org.dom4j.DocumentHelper; +import org.dom4j.Element; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.output.constant.OutputConst; +import com.actionsoft.apps.coe.pal.pal.output.dao.OutputTask; +import com.actionsoft.apps.coe.pal.pal.output.extend.OutputAppManager; +import com.actionsoft.apps.coe.pal.pal.output.extend.OutputAppProfile; +import com.actionsoft.apps.coe.pal.pal.output.model.OutputTaskModel; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.model.UpfileModel; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.web.UpfileWeb; +import com.actionsoft.apps.resource.plugin.profile.DCPluginProfile; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.bpmn.engine.core.delegate.ProcessExecutionContext; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.TaskInstance; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.org.model.UserModel; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.server.fs.DCContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.emm.util.AesUtil; +import com.actionsoft.exception.AWSException; +import com.actionsoft.sdk.local.SDK; +import com.actionsoft.sdk.local.api.AppAPI; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.awspaas.user.apps.app.util.HttpUtil; +import com.awspaas.user.apps.app.util.UtilUrl; +@SuppressWarnings("all") +public class sendReadByDataid3 { + public void execute(String processid, String taskid) throws JobExecutionException { + ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(processid); + TaskInstance taskInstance = SDK.getTaskAPI().getInstanceById(taskid); + String wsId = ""; + JSONArray filed = new JSONArray(new LinkedList<>()); + String portalUrl = SDK.getPortalAPI().getPortalUrl(); + //System.out.println("portal======>>>>"+portalUrl); + /*if (portalUrl.equals("http://10.114.11.135:8088/portal")){ + portalUrl = "http://bpm.yili.com:8088/portal/"; + }*/ + try { + + String url = portalUrl + "/r/or?cmd=com.yili_process_page&oauthName=oauthLogin&processInstId=" + instanceById.getId() + "&taskInstId=" + taskInstance.getId(); + String mobileurl = "https://bpm.yili.com:8088/portal" + "/r/or?cmd=com.yili_process_page_phone&corpid=wwb0ae23173b140618&appAgentId=1000014&oauthName=wechat&processInstId=" + instanceById.getId() + "&taskInstId=" + taskInstance.getId(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Timestamp endTime = instanceById.getStartTime(); + BO boActCoePublish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", instanceById.getId()).addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + String not_url = "/w?cmd=com.yili_process_page&processInstId=" + instanceById.getId() + "&taskInstId=" + taskInstance.getId(); + JSONObject jsonObject = new JSONObject(new LinkedHashMap()); + jsonObject.put("action", "read"); + jsonObject.put("title", " " + + "" + boActCoePublish.getString("PROCESS_TITLE") + ""); + //System.out.println("部门庄户》》》》》》》" + SDK.getORGAPI().getDepartmentByUser(taskInstance.getTarget()).getNo()); + jsonObject.put("dept", SDK.getORGAPI().getDepartmentByUser(taskInstance.getTarget()).getNo());//SDK.getORGAPI().getDepartmentByUser(processExecutionContext.getProcessInstance().getCreateUser()).getNo() + String target = taskInstance.getTarget(); + target = taskInstance.getTarget(); + + //System.out.println("当前账户======》》》》" + target); + + jsonObject.put("user", target); + + // jsonObject.put("user",);//processExecutionContext.getProcessInstance().getCreateUser() + jsonObject.put("date", sdf.format(endTime)); + jsonObject.put("remark", boActCoePublish.getString("PROCESS_TITLE")); + jsonObject.put("status", "0"); + jsonObject.put("dataid", instanceById.getId()); + jsonObject.put("pcurl", url); + jsonObject.put("mobileurl", mobileurl); + //list.add(1,"00352394"); + //list.add(2,"00352394"); + BO bo_act_coe_publish1 = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", processid).addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + + /** + * 这块的判断主要是将组织,岗位,职级进行合并集进行相关的判断获取人员账户合集 + */ + + if(bo_act_coe_publish1!=null&&instanceById!=null) { + ArrayList sendList = getSendList(instanceById, bo_act_coe_publish1, jsonObject); + System.err.println(instanceById.getTitle()+"待发送人员列表====>"+sendList); + for (String uid : sendList) { + createLog(instanceById, uid); + long startTime = System.currentTimeMillis(); + SendOARead(jsonObject, instanceById, uid); + //CreateReadLog(instanceById, jsonObject, users, startTime); + } + + } + + + //BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", instanceById.getId()).addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + //流程发布的新增发布 + List bo_act_coe_publish_n = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N", true).addQuery("BINDID=", instanceById.getId()).list(); + List bo_act_coe_publish_c = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_C", true).addQuery("BINDID=", instanceById.getId()).list(); + List bo_act_coe_publish_s = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_S", true).addQuery("BINDID=", instanceById.getId()).list(); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + + JSONArray jsonArray = new JSONArray(); + + +/** + * 这里是去生成EHSQ相关数据 + */ + /* for (BO bo:bo_act_coe_publish_n + ) { + JSONArray jsonArray_EHSQ = new JSONArray(); + JSONObject jsonObject_ehsq = new JSONObject(new LinkedHashMap<>()); + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + wsId = model.getWsId(); + String publishfileid = bo.getString("PUBLISHFILEID"); + LinkedHashMap downloadurl = downloadUtil.outputReportDownload(UserContext.fromUID(processExecutionContext.getProcessInstance().getCreateUser()), bo.getString("TASKID"), publishfileid); + jsonObject_ehsq.put("fileid",bo.getString("TASKID")); + jsonObject_ehsq.put("filename",bo.getString("PUBLISHFILENAME")); + //jsonObject_ehsq.put("filecode",bo.getString("PUBLISH_NUMBER")); + jsonObject_ehsq.put("filecode","123456"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '"+publishfileid+"'"; + RowMap map = DBSql.getMap(sql_n); + jsonObject_ehsq.put("version",map.getString("PLVER")); + jsonObject_ehsq.put("releasedate",simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("effectivedate",simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("authorcode",processExecutionContext.getTaskInstance().getTarget()); + // jsonObject_ehsq.put("authorcode","00116465"); + jsonObject_ehsq.put("authorname",UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getUserName()); + //jsonObject_ehsq.put("authorname","毛鹏程"); + jsonObject_ehsq.put("companycode",UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getNo()); + //jsonObject_ehsq.put("companycode","00000013"); + jsonObject_ehsq.put("authorcompany",UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getName()); + //jsonObject_ehsq.put("authorcompany","总部质量管理部"); + // jsonObject_ehsq.put("releasescope","总部质量管理部"); + BO bo1 = SDK.getBOAPI().query("BO_ACT_PUBLISH_PERM_SCOPE", true).addQuery("PALNAME=", bo.getString("PUBLISHFILENAME")).detail(); + if (bo1!=null){ + if (bo1.getString("PERMTYPE").equals("1")){ + }else { + + String departname = ""; + String orgperm = bo1.getString("ORGPERM"); + String dleass = ""; + String[] deptSplit = orgperm.split(","); + if(deptSplit.length==1){ + dleass = "'"+deptSplit[0]+"'"; + } + dleass ="'"+ StringUtils.join(deptSplit, "','")+"'"; + + List maps = DBSql.getMaps("select DEPARTMENTNAME from ORGDEPARTMENT where ID in (" + dleass + ")"); + for (RowMap rowmas:maps + ) { + departname+=rowmas.getString("DEPARTMENTNAME")+";"; + } + jsonObject_ehsq.put("releasescope","总部质量管理部"); + + } + } + + System.out.println("任务办理者>>>>>>>>>>>"+processExecutionContext.getTaskInstance().getTarget()); + String sessionId = new SSOUtil().registerClientSessionNoPassword(processExecutionContext.getTaskInstance().getTarget(), LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC); + + System.out.println("办理者的sessionid>>>>>>>>>>>"+sessionId); + String downurl = downloadUtil.getzipURL(sessionId,bo.getString("TASKID"),bo.getString("PUBLISHFILENAME")); + //jsonObject_ehsq.put("downloadurl","http://bpm.yili.com:8088/portal/r"+downurl.toString().substring(1)); + + String recordfiles = ""; + String recordurls = ""; + Set keys = downloadurl.keySet(); + for ( String key : keys ) { + recordfiles+=key+";"; + String cent_url = downloadurl.get(key).substring(downloadurl.get(key).indexOf("/df"),downloadurl.get(key).length()); + String fileDownurl = "http://bpm.yili.com:8088/portal/r"+cent_url; + recordurls+=fileDownurl+";"; + } + String new_name = ""; + String[] split = recordfiles.split(";"); + if (split.length>0){ + + for (int i =1;i0){ + String loadurl = urls[0].replaceAll("&sid=null","&sid="+sessionId); + System.out.println("下载的地址是<<<<<<<<<<<<<<<<<<"+loadurl); + jsonObject_ehsq.put("downloadurl",loadurl); + for (int i =1;i()); + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + wsId = model.getWsId(); + String publishfileid = bo.getString("CHANGEDFILEIDNEW"); + LinkedHashMap downloadurl = downloadUtil.outputReportDownload(UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()), bo.getString("TASKID"), publishfileid); + jsonObject_ehsq.put("fileid",bo.getString("TASKID")); + jsonObject_ehsq.put("filename",bo.getString("CHANGEDFILENAMENEW")); + //jsonObject_ehsq.put("filecode",bo.getString("CHANGE_NUMBER")); + jsonObject_ehsq.put("filecode","123456"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '"+publishfileid+"'"; + RowMap map = DBSql.getMap(sql_n); + jsonObject_ehsq.put("verion",map.getString("PLVER")); + jsonObject_ehsq.put("releasedate",simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("effectivedate",simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("authorcode",processExecutionContext.getTaskInstance().getTarget()); + jsonObject_ehsq.put("authorname",UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getUserName()); + jsonObject_ehsq.put("companycode",UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getNo()); + jsonObject_ehsq.put("authorcompany",UserContext.fromUID(processExecutionContext.getTaskInstance().getTarget()).getDepartmentModel().getName()); + BO bo1 = SDK.getBOAPI().query("BO_ACT_PUBLISH_PERM_SCOPE", true).addQuery("PALNAME=", bo.getString("PUBLISHFILENAME")).detail(); + if (bo1!=null){ + if (bo1.getString("PERMTYPE").equals("1")){ + jsonObject_ehsq.put("releasescope","内蒙古伊利实业集团股份有限公司"); + }else { + + String departname = ""; + String orgperm = bo1.getString("ORGPERM"); + String dleass = ""; + String[] deptSplit = orgperm.split(","); + if(deptSplit.length==1){ + dleass = "'"+deptSplit[0]+"'"; + } + dleass ="'"+ StringUtils.join(deptSplit, "','")+"'"; + + List maps = DBSql.getMaps("select DEPARTMENTNAME from ORGDEPARTMENT where ID in (" + dleass + ")"); + for (RowMap rowmas:maps + ) { + departname+=rowmas.getString("DEPARTMENTNAME")+";"; + } + jsonObject_ehsq.put("releasescope",departname); + + } + } + + String sessionId = new SSOUtil().registerClientSessionNoPassword(processExecutionContext.getTaskInstance().getTarget(), LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC); + + String downurl = downloadUtil.getzipURL(sessionId,bo.getString("TASKID"),bo.getString("CHANGEDFILENAMENEW")); + String recordfiles = ""; + String recordurls = ""; + Set keys = downloadurl.keySet(); + for ( String key : keys ) { + recordfiles+=key+";"; + String cent_url = downloadurl.get(key).substring(downloadurl.get(key).indexOf("/df"),downloadurl.get(key).length()); + String fileDownurl = "http://bpm.yili.com:8088/portal/r"+cent_url; + recordurls+=fileDownurl+";"; + } + String new_name = ""; + String[] split = recordfiles.split(";"); + if (split.length>0){ + + for (int i =1;i0){ + String loadurl = urls[0].replaceAll("&sid=null","&sid="+sessionId); + System.out.println("下载的地址是<<<<<<<<<<<<<<<<<<"+loadurl); + jsonObject_ehsq.put("downloadurl",loadurl); + for (int i =1;i>>>>>>" + map); + System.out.println("fileid==》》》》" + fileid); + System.out.println("id==》》》》" + map.getString("ID")); + RowMap rowMap = DBSql.getMap("SELECT * FROM " + bo_name + " where " + fileid + " '" + map.getString("ID") + "'"); + //BO bos = SDK.getBOAPI().query(bo_name,true).addQuery(fileid,"17e7d198-1656-4a2c-8912-a81850170be9").detail(); + if (rowMap != null) { + + if (StringUtils.isNotEmpty(rowMap.getString("TASKID"))) { + + OutputTaskModel model = new OutputTask().getTaskReportById(rowMap.getString("TASKID")); + if (model != null) { + System.out.println("pdel============" + model); + //System.out.println("123313123123123==========" + model.getProfileId()); + OutputAppProfile appProfile = OutputAppManager.getProfile(model.getProfileId()); + System.out.println("dajadfas======" + appProfile); + if (appProfile == null) { + throw new AWSException("Not Find OutputAppProfile! profileId=" + model.getProfileId()); + } + DCPluginProfile dcProfile = SDK.getDCAPI().getDCProfile(appProfile.getAppContext().getId(), OutputConst.EXT_APP_DC_OUTPUT); + if (dcProfile == null) + throw new AWSException("Not Find DCProfile! repositoryName=" + OutputConst.EXT_APP_DC_OUTPUT); + String sql_lever = ""; + if (bo_name.equals("BO_ACT_COE_PUBLISH_N")) { + sql_lever = "SELECT PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID = '" + rowMap.getString("PUBLISHFILEID") + "'"; + + } else if (bo_name.equals("BO_ACT_COE_PUBLISH_C")) { + sql_lever = "SELECT PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID = '" + rowMap.getString("CHANGEDFILEIDNEW") + "'"; + } + String lever = DBSql.getString(sql_lever); + System.out.println("版本号::::::::::::" + lever); + //lever = lever.substring(0,3); + if (lever.length() == 5 && lever.substring(4).equals("0")) { + lever.substring(0, 3); + } else if (lever.length() == 1) { + lever = lever + ".0"; + } + String filename = ""; + if (bo_name.equals("BO_ACT_COE_PUBLISH_N")) { + filename = rowMap.getString("PUBLISHFILENAME"); + } else if (bo_name.equals("BO_ACT_COE_PUBLISH_C")) { + filename = rowMap.getString("CHANGEDFILENAMENEW"); + } + DCContext dcContext = new DCContext(userContext, dcProfile, appProfile.getAppContext().getId(), model.getWsId(), rowMap.getString("TASKID"), filename + "_" + lever + ".doc"); + //UtilFile file = new UtilFile(dcContext.getPath()); + + + Map params = new HashMap(); +//知识ID,必填 + params.put("cardId", cardId); +//sid,必填 + params.put("sid", userContext.getSessionId()); + + params.put("dc", dcContext); + AppAPI appAPI = SDK.getAppAPI(); +//创建文件 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("流程手册的存入=================" + ro); + } + } + + } + String sql_A = "SELECT PLNAME FROM APP_ACT_COE_PAL_REPOSITORY where ID = '" + map.getString("ID") + "' AND PLMETHODID != 'process.framework' AND PLMETHODID IN (select distinct PLMETHODID from APP_ACT_COE_PAL_REPOSITORY)"; + List rows = DBSql.getMaps(sql_A); + + for (RowMap bo : rows + ) { + + /** + * 这个是模型中的附件获取的并插入的数据信息,需要做修改 + */ + // 调用App + +// 参数定义列表 + Map paramss = new HashMap(); +//知识ID,必填 + paramss.put("cardId", cardId); +//sid,必填 + paramss.put("sid", userContext.getSessionId()); + + UpfileWeb upfileWeb = new UpfileWeb(userContext); + + + String sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where PLMETHODID != 'process.framework' AND ID= '" + map.getString("ID") + "'" + + ")"; + List maps = DBSql.getMaps(sql_upfile); + for (RowMap row : maps) { + System.out.println("附件名称>>>>>>" + row.getString("FILENAME")); + if (!row.getString("FILENAME").contains(".xml")) { + UpfileModel upfileModel = new UpfileModel(); + upfileModel.setType(row.getString("FILETYPE")); + upfileModel.setFileName(row.getString("FILENAME")); + upfileModel.setPl_uuid(row.getString("PALREPOSITORYID")); + upfileModel.setShape_uuid(row.getString("SHAPEID")); + DCContext dcContexts = upfileWeb.getDCContext(upfileModel); + paramss.put("dc", dcContexts); + AppAPI appAPIs = SDK.getAppAPI(); + ResponseObject ros = appAPIs.callASLP(appAPIs.getAppContext(sourceAppId), aslp, paramss); + System.out.println("流程模型附件的生成=============" + ros); + } + } + +//DCContext对象,必填 + +//创建文件 + } + try { + + PublishKnow(processInstance, userContext, cardId); + } catch (Exception e) { + e.printStackTrace(); + } + } + } + + + /** + * 发布知识 + * + * @param processInstance + * @param userContext + * @param id + */ + public void PublishKnow(ProcessInstance processInstance, UserContext userContext, String id) { + + String sql = "select EXT4 from APP_ACT_COE_PAL_REPOSITORY where id in (select PLPARENTID from APP_ACT_COE_PAL_REPOSITORY where EXT4 = '" + id + "')"; + List maps = DBSql.getMaps(sql); + String ids = ""; + for (RowMap rowmap : maps + ) { + ids += rowmap.getString("EXT4") + ","; + } + String[] deptSplit_id = ids.split(","); + + JSONArray jsonArray = new JSONArray(); + for (String id_names : deptSplit_id + ) { + jsonArray.add(id_names); + } + //jsonObject.put(deptSplit_id); + id += ","; + String[] deptSplit_das = id.split(","); + JSONArray jsonArray_das = new JSONArray(); + for (String das : deptSplit_das + ) { + jsonArray_das.add(das); + } + //jsonObject.put(deptSplit_id); + + if (!jsonArray_das.isEmpty() && !jsonArray.isEmpty()) { + + // 调用App + String sourceAppId = processInstance + .getAppId(); +// aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/PublishKnwl"; +// 参数定义列表 + Map params = new HashMap(); +//要发布到的维度ID的JSON数组字符串,必填 + params.put("dimensionIDArray", jsonArray.toString()); +//要发布的知识ID的JSON数组字符串,必填 + params.put("knwlIDArray", jsonArray_das.toString()); +//标签的JSON数组字符串,非必填 + +//sid,必填 + params.put("sid", userContext.getSessionId()); + AppAPI appAPI = SDK.getAppAPI(); +//发布知识 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + + System.out.println("知识发布============" + ro); + + } + + } + + /** + * 取消发布知识 + * + * @param processInstance + * @param sid + * @param knwlId + * @return + */ + public boolean CancelPublishKnwl(ProcessInstance processInstance, String sid, String knwlId) { +// 调用App + String sourceAppId = processInstance.getAppId(); +// aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/CancelPublishKnwl"; +// 参数定义列表 + Map params = new HashMap(); +//sid,如果为空,则需要传createUser参数,非必填 + params.put("sid", sid); +//知识ID,必填 + params.put("knwlId", knwlId); + AppAPI appAPI = SDK.getAppAPI(); +//取消发布知识(全部维度) + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("取消发布的ro=====>>>>" + ro); + return ro.isOk(); + } + + /** + * 创建XPage页面上的待阅 + * + * @param processExecutionContext + * @param fileCreateName + * @param fileName + * @param fileurl + * @param readingScope_org + * @param isFullCompany + * @param fileCreateDate + * @param relationProcessinstId + * @param readingScope_post + * @param readingScope_level + * @param fileid + * @return + */ + public boolean execute(ProcessExecutionContext processExecutionContext, String fileCreateName, String fileName, String fileurl, String readingScope_org, String isFullCompany, String fileCreateDate, String relationProcessinstId, String readingScope_post, String readingScope_level, String fileid) { +// 调用App + String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); +// aslp服务地址 + String aslp = "aslp://com.awspaas.user.apps.docview/PushFileToXpage"; +// 参数定义列表 + Map params = new HashMap(); +//发布人,不允许空值,必填 + params.put("fileCreateName", fileCreateName); +//待阅文件标题名称,不允许空值,必填 + params.put("fileName", fileName); +//阅读范围_组织,不允许空值,非必填 + params.put("readingScope_org", readingScope_org); +//是否全公司可见,不允许空值,必填 + params.put("isFullCompany", isFullCompany); +//待阅文件Url,不允许空值,必填 + params.put("fileurl", fileurl); +//发布日期,不允许空值,必填 + params.put("fileCreateDate", fileCreateDate); +//发布流程ID,不允许空值,必填 + params.put("relationProcessinstId", relationProcessinstId); +//阅读范围_岗位,不允许空值,非必填 + params.put("readingScope_post", readingScope_post); +//阅读范围_职级,不允许空值,非必填 + params.put("readingScope_level", readingScope_level); +//待阅文件ID,多个逗号隔开,不允许空值,必填 + params.put("fileid", fileid); + AppAPI appAPI = SDK.getAppAPI(); +//推送待阅文件到xpage门户 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("ros++++++++=====待阅》》》》》》》》》》" + ro); + return ro.isOk(); + } + + + /** + * 给知识授权 + * + * @param processInstance + * @param jsonArray + * @param sid + * @param knwlId + * @return + */ + public boolean AddKnwlAC(ProcessInstance processInstance, JSONArray jsonArray, String sid, String knwlId) { +// 调用App + String sourceAppId = processInstance.getAppId(); +// aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.kms/AddKnwlAC"; +// 参数定义列表 + Map params = new HashMap(); +//[{"assignmentType":"department","assignmentId":"62196ff9-a26d-4be5-9480-3ef680886f63"},{"assignmentType":"user","assignmentId":"user1"}],必填 + params.put("acList", jsonArray); +//sid,如果为空,则需要传createUser参数,非必填 + params.put("sid", sid); +//知识ID,必填 + params.put("knwlId", knwlId); + AppAPI appAPI = SDK.getAppAPI(); +//给知识授权 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + return ro.isOk(); + } + + + /** + * 柱军代码,不知道做什么用的 + * + * @param processInstance + * @param wsId + * @param fileId + * @return + */ + public boolean AttrSynAslp(ProcessInstance processInstance, String wsId, JSONArray fileId) { + System.out.println(""); + // 调用App + String sourceAppId = processInstance.getAppId(); +// aslp服务地址 + String aslp = "aslp://com.awspaas.user.apps.yili.reportform/AttrSynAslp"; +// 参数定义列表 + Map params = new HashMap(); +//资产内容库id,必填 + params.put("wsId", wsId); +//文件id;json数组[id1,id2,id3],必填 + params.put("fileId", fileId); + AppAPI appAPI = SDK.getAppAPI(); +//增量同步数据 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + System.out.println("ro>>>>>>>>>>>>>" + ro); + return ro.isOk(); + } + + /** + * 发送OA待阅数据 + * + * @param jsonObject + * @param processInstance + * @param results + * @throws DocumentException + */ + public void SendOARead(JSONObject jsonObject, ProcessInstance processInstance, String userId) throws DocumentException { + System.err.println(processInstance.getTitle()+"开始发送:"+userId); + if("".equals(userId)||UtilString.isEmpty(userId)) { + return; + } + jsonObject.put("userList", userId); + String xmlStr = "\n" + + " " + + " " + + " " + + " " + + "" + + " " + + " " + + " " + + ""; + System.out.println("xmlStr>>>>>>>>" + xmlStr); + String readurl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "readurl"); + + String postSoap = UtilUrl.doPostSoap(readurl, xmlStr, ""); + Document document = DocumentHelper.parseText(postSoap); + Element rootElement = document.getRootElement(); + System.out.println("rootElement>>>>>>" + rootElement); + Element result = rootElement.element("Body").element("serviceResponse").element("out"); + String resultString = result.getData().toString(); + JSONObject jsonObject1 = JSON.parseObject(resultString); + String datas = jsonObject1.getString("data"); + String status = jsonObject1.getString("status"); + System.out.println("状态是什么》》》》》》》》》》》" + status); + if("false".equals(status)) { + System.out.println(processInstance.getTitle()+"待阅推送失败:" + userId); + try { + BO bo = new BO(); + bo.set("TITLE", processInstance.getTitle()); + bo.set("NAME", userId); + bo.set("DEPNAME", SDK.getORGAPI().getUser(userId).getDepartmentId()); + SDK.getBOAPI().create("BO_EU_READ_COUNT", bo, processInstance.getId(), processInstance.getCreateUser()); + } catch (Exception e) { + // TODO: handle exception + } + }else { + System.out.println(processInstance.getTitle()+"待阅推送成功:" + userId); + JSONArray resultArray = JSONObject.parseArray(datas); + for (int j = 0; j < resultArray.size(); j++) { + JSONObject jsonObject2 = resultArray.getJSONObject(j); + String user = jsonObject2.get("user").toString(); + String dataid = jsonObject2.get("dataid").toString(); + BO bo = new BO(); + bo.set("TITLE", processInstance.getTitle()); + bo.set("PROCESSID", processInstance.getId()); + bo.set("USER_ID", user); + bo.set("DATAID", dataid); + bo.set("RESULT", status); + SDK.getBOAPI().create("BO_ACT_DATAID", bo, processInstance.getId(), processInstance.getCreateUser()); + } + } + } + + /** + * 发送EHSQ接口 + * + * @param jsonArray + * @return + * @throws Exception + */ + public String SendEHSQFile(JSONArray jsonArray) throws Exception { + System.out.println("===jsonArray===" + jsonArray); + /** + * 首先需要将传过来的参数进行加密操作,并设置 + */ + AesUtil aesUtil = new AesUtil(); + String system = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "system"); + String AES = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "AES"); + String EHSQUrl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "EHSQUrl"); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + String date = sdf.format(new Date()); + String s1 = date.replaceAll("-", "").replaceAll(" ", "").replaceAll(":", ""); + + System.out.println("时间>>>>>>>>>>>>" + s1); + String data = system + "##" + s1; + String encrypt = aesUtil.encrypt(data, AES); //获取加密之后的秘钥 + JSONObject jsonObject = new JSONObject(new LinkedHashMap<>()); + jsonObject.put("system", system); + jsonObject.put("token", encrypt); + jsonObject.put("infos", jsonArray); + HttpUtil httpUtil = new HttpUtil(); + System.out.println("jsonobject>>>>>>>>>>>>>>>>>>>" + jsonObject); + String s = httpUtil.sendPost(jsonObject, EHSQUrl); + System.out.println("发送到EHSQ是否是正确的>>>>>>>>>" + s); + + return s; + } + + +public ArrayList getSendList(ProcessInstance instanceById,BO bo_act_coe_publish1,JSONObject jsonObject){ + + + String sendType = bo_act_coe_publish1.getString("SEND_SCOP"); + String org = bo_act_coe_publish1.getString("SEND_SCOPE_ORG"); + String post = bo_act_coe_publish1.getString("SEND_SCOPE_POST"); + String level = bo_act_coe_publish1.getString("SEND_SCOPE_LEVEL"); + ArrayList userList = new ArrayList<>(); + if("1".equals(sendType)) { + System.err.println("发送全集团=====>"+instanceById.getTitle()); + sendOrg(org,userList, instanceById, bo_act_coe_publish1, jsonObject,sendType); + }else { + //如果都不为空,组织/岗位取并集的结果同职级取交集 + if(UtilString.isNotEmpty(org)&&UtilString.isNotEmpty(post)&&UtilString.isNotEmpty(level)) { + System.err.println("发送组织/岗位/职级=====>"+instanceById.getTitle()); + sendOrg(org,userList,instanceById, bo_act_coe_publish1, jsonObject,sendType); + sendPost(post,userList,instanceById, bo_act_coe_publish1, jsonObject); + userList = sendLevel(level,userList,instanceById, bo_act_coe_publish1, jsonObject); + } + //如果职级为空,组织/岗位取并集 + if(UtilString.isNotEmpty(org)&&UtilString.isNotEmpty(post)&&UtilString.isEmpty(level)) { + System.err.println("发送组织/岗位=====>"+instanceById.getTitle()); + sendOrg(org,userList,instanceById, bo_act_coe_publish1, jsonObject,sendType); + sendPost(post,userList,instanceById, bo_act_coe_publish1, jsonObject); + } + //如果岗位为空,组织/职级取并集 + if(UtilString.isNotEmpty(org)&&UtilString.isEmpty(post)&&UtilString.isNotEmpty(level)) { + System.err.println("发送组织/职级=====>"+instanceById.getTitle()); + sendOrg(org,userList,instanceById, bo_act_coe_publish1, jsonObject,sendType); + userList = sendLevel(level,userList,instanceById, bo_act_coe_publish1, jsonObject); + } + + //如果组织为空,岗位/职级取交集 + if(UtilString.isEmpty(org)&&UtilString.isNotEmpty(post)&&UtilString.isNotEmpty(level)) { + System.err.println("发送岗位/职级=====>"+instanceById.getTitle()); + sendPost(post,userList,instanceById, bo_act_coe_publish1, jsonObject); + userList = sendLevel(level,userList,instanceById, bo_act_coe_publish1, jsonObject); + } + + } + + + return userList; + +} +//发送组织 +public ArrayList sendOrg(String org,ArrayList userList,ProcessInstance instanceById,BO bo_act_coe_publish1,JSONObject jsonObject,String sendType) { + String processid =instanceById.getId(); + //获取组织 + if (StringUtils.isNotEmpty(org)||"1".equals(sendType)) { + long startTime = System.currentTimeMillis(); + userList = getUser(jsonObject,org,sendType, processid); + long endTimes = System.currentTimeMillis(); + System.out.println(instanceById.getTitle()+"_根据部门获取人员用时===>"+(endTimes-startTime)/1000); + } + + return userList; + } + +//发送岗位 +public ArrayList sendPost(String post,ArrayList userList,ProcessInstance instanceById,BO bo_act_coe_publish1,JSONObject jsonObject) { + String processid =instanceById.getId(); + //获取岗位 + if (StringUtils.isNotEmpty(post)) { + String posts[] = post.split(","); + //取并集 + String postss = ""; + if (posts.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + postss = "'" + posts[0] + "'"; + } else { + postss = "'" + StringUtils.join(posts, "','") + "'"; + } + String sql = "select * from ORGUSER where POSITION_NO in (" + postss + ") and userno is not null"; + List maps1 = DBSql.getMaps(sql); + for (RowMap rowMap : maps1) { + String userId = rowMap.getString("USERID"); + RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '"+processid+"' AND USER_ID = '"+userId+"'"); + //BO boList = SDK.getBOAPI().query("BO_ACT_DATAID", true).addQuery("PROCESSID=", processid).addQuery("USER_ID=",userId).detail(); + if (!userList.contains(userId)&&map==null) { + userList.add(userId); + } + + } + } + + return userList; +} + +//发送职级 +public ArrayList sendLevel(String level,ArrayList userList,ProcessInstance instanceById,BO bo_act_coe_publish1,JSONObject jsonObject) { + String processid =instanceById.getId(); + ArrayList userList_level = new ArrayList(); + //获取职级 + if (StringUtils.isNotEmpty(level)) { + String ranks[] = level.split(","); + String rankss = ""; + if (ranks.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + rankss = "'" + ranks[0] + "'"; + } else { + rankss = "'" + StringUtils.join(ranks, "','") + "'"; + } + //取交集 + String sql2 = "select * from ORGUSER where EXT2 in (" + rankss + ") and userno is not null"; + List maps2 = DBSql.getMaps(sql2); + for (RowMap rowMap : maps2) { + String userId = rowMap.getString("USERID"); + RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '"+processid+"' AND USER_ID = '"+userId+"'"); + //BO boList = SDK.getBOAPI().query("BO_ACT_DATAID", true).addQuery("PROCESSID=", processid).addQuery("USER_ID=",userId).detail(); + if (userList.contains(userId)&&map==null) { + userList_level.add(userId); + } + + } + } + + return userList_level; +} + + + +/** + * 根据部门id获取当前部门以及下级部门的人员信息 + * + * @param processid + * @return + */ + +public ArrayList getUser(JSONObject jsonObject, String depIds, String sendType, String processid) { + ArrayList arr = new ArrayList(); + ArrayList arr_test = new ArrayList(); + // 全集团 + if ("1".equals(sendType)) { + List departmentsByCompanyId = SDK.getORGAPI().getDepartmentsByCompanyId(1, + "8911e732-b42a-4556-853f-ad32761bcbee"); + for (DepartmentModel departmentModel : departmentsByCompanyId) { + String id = departmentModel.getId(); + //查询未注销的部门并且去掉系统部门 + if (!departmentModel.isClosed() && !"e79281b1-2f81-4895-b30e-9f96e9ad0e2c".equals(id) + && !"5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe".equals(id)) { + getUserList(jsonObject, arr_test, arr, id, processid); + + } + } + } else { + if (UtilString.isNotEmpty(depIds)) { + String[] split = depIds.split(","); + for (String depId : split) { + getUserList(jsonObject, arr_test, arr, depId, processid); + } + } + } + + System.err.println(SDK.getProcessAPI().getInstanceById(processid) + "_得到的总人数为:" + arr_test.size()); + System.err.println(SDK.getProcessAPI().getInstanceById(processid) + "_得到的过滤后的人数为:" + arr.size()); + return arr; +} + + public void getUserList( JSONObject jsonObject,ArrayList arr_test,ArrayList arr, String departmentId, String processid) { + // 获取当前部门下人员 + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(departmentId); + for (UserModel userModel : userModelList) { + if (!userModel.isClosed()) { + String uid = userModel.getUID(); + if (!arr.contains(uid)) { + arr_test.add(uid); + RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '"+processid+"' AND USER_ID = '"+uid+"'"); + if (map == null) { + System.err.println("发送人员======>"+uid); + arr.add(userModel.getUID()); + } + } + } + } + // 获取当前部门的子部门人员 + DepartmentModel departmentById = SDK.getORGAPI().getDepartmentById(departmentId); + if (departmentById.isExistSubModelOfCache()) { + getSubDepartments(jsonObject,arr_test,arr, departmentById, processid); + } + + } + + //获取子部门人员 + public void getSubDepartments(JSONObject jsonObject,ArrayList arr_test,ArrayList arr, DepartmentModel departmentById, String processid) { + if (!departmentById.isClosed()) { + List subDepartments = SDK.getORGAPI().getSubDepartments(departmentById.getId()); + for (DepartmentModel departmentModel : subDepartments) { + if(!departmentModel.isClosed()) { + String id = departmentModel.getId(); + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(id); + for (UserModel userModel : userModelList) { + if (!userModel.isClosed()) { + String uid = userModel.getUID(); + if (!arr.contains(uid)) { + arr_test.add(uid); + RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '"+processid+"' AND USER_ID = '"+uid+"'"); + if (map == null) { + arr.add(uid); + System.err.println(SDK.getProcessAPI().getInstanceById(processid)+"_发送人员======>"+uid); + } + } + } + } + //递归获取子部门下的子部门 + if (SDK.getORGAPI().isExistSubDepartment(id)) { + getSubDepartments(jsonObject,arr_test,arr,SDK.getORGAPI().getDepartmentById(id),processid); + } + + } + + } + } + } + + /** + * 创建更新的知识 + * + * @param bo + * @param wsId + * @param filed + * @param instanceById + * @param bo_act_coe_publish + * @param uid + */ + public void CreateKmsByUpdate(BO bo, String wsId, JSONArray filed, ProcessInstance instanceById, BO bo_act_coe_publish, String uid) { + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + wsId = model.getWsId(); + String publishfileid = bo.getString("CHANGEDFILEIDNEW"); + filed.add(publishfileid) + + + ; + DBSql.update("update APP_ACT_COE_PAL_REPOSITORY set EXT4 = '' where id = '" + publishfileid + "'"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + if (StringUtils.isEmpty(map.getString("EXT4"))) { + // aslp服务地址 + String aslps_create = "aslp://com.actionsoft.apps.kms/CreateKnwl"; +// 参数定义列表 + Map params_create = new HashMap(); +//保密级别, 0: 普通 1:秘密 2:机密,必填 + params_create.put("securityLevel", 0); +//知识名称,必填 + String level = ""; + if (map != null) { + if (map.getString("PLVER").contains(".00")) { + String[] plvers = map.getString("PLVER").split("\\."); + plvers[1] = plvers[1].replaceAll("0", ""); + level = plvers[0] + plvers[1]; + } else { + level = map.getString("PLVER"); + } + } + + + params_create.put("knwlName", map.getString("PLNAME") + "V" + level); +//是否可以评论,必填 + params_create.put("isComment", true); +//是否可以评分,必填 + params_create.put("isRate", true); +//有效期:yyyy-MM-dd,非必填 + params_create.put("validDate", "2099-12-31"); +//只读控制,1:在线阅读和下载 0:在线阅读,必填 + params_create.put("onlineLevel", 1); +//知识创建人,某些特殊场景下,sid和createUser代表的用户并不一样,如果此参数为null,则使用sid代表的用户,非必填 + params_create.put("createUser", "admin"); +//知识内容,非必填 + params_create.put("cardContext", ""); +//sid,必填 + params_create.put("sid", UserContext.fromUID(instanceById.getCreateUser()).getSessionId()); + AppAPI appAPI_create = SDK.getAppAPI(); +//创建知识 + ResponseObject ro_create = appAPI_create.callASLP(appAPI_create.getAppContext(instanceById.getAppId()), aslps_create, params_create); + System.out.println("ro_create================" + ro_create); + String cardId = ((LinkedHashMap) ro_create.getData()).get("cardId").toString(); + JSONArray jsonArray1 = new JSONArray(); + if (bo_act_coe_publish.getString("SEND_SCOP").equals("0")) { + String departId = bo_act_coe_publish.getString("SEND_SCOPE_ORG"); + if (StringUtils.isNotEmpty(departId) && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_LEVEL")) && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_POST"))) { + String strs[] = departId.split(","); + for (String departmentid : strs + ) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", departmentid); + jsonArray1.add(jsonObjecta); + } + } else { + String[] split = uid.split(","); + + List list = new ArrayList(Arrays.asList(split)); + + HashSet h = new HashSet(list); + list.clear(); + list.addAll(h); + + for (String user_id : list + ) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "user"); + jsonObjecta.put("assignmentId", user_id); + jsonArray1.add(jsonObjecta); + } + } + + } else { + List select_id_from_orgdepartment = DBSql.getMaps("select ID from ORGDEPARTMENT"); + for (RowMap depaid : + select_id_from_orgdepartment) { + String id = depaid.getString("ID"); + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", id); + jsonArray1.add(jsonObjecta); + } + } + AddKnwlAC(instanceById, jsonArray1, UserContext.fromUID(instanceById.getCreateUser()).getSessionId(), cardId); + + String update_sql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '" + cardId + "' WHERE " + + " PLCATEGORY = 'process'and PLMETHODID !='process.framework' " + + " and PLNAME not in ('流程架构图','测试用','GMY-截图用','sx批量测试'" + + " ,'8.2培训使用','用户练习使用','YX测试分部','yx测试人员','yx测试部','流程架构测试')" + + " and PLPARENTID not in ('63ff93c6-2f27-4851-a396-6830c428db2e'," + + " 'c84f497a-4de3-4404-86e8-cd5af71c3b47','94dabf55-b032-4316-a4c3-00b83763da09'," + + " '36ac7cdd-a361-4bd3-9511-c03c1b3627a4','84e534b4-e51a-4874-9ff1-8a0206d9e0c5'," + + " '98bd5917-7563-4b29-b775-815e91d9864c','f07da63c-3423-4c1e-ae75-b323c6a69093'," + + " '79cb4c35-d2f7-4c43-a7db-44038b557eac','7ad79a73-a497-417a-a5ec-d4c9fd45061c'," + + " '42c09260-c1d3-44b7-ac3d-f8280e04c294') and ID = '" + publishfileid + "'"; + int update = DBSql.update(update_sql); + System.out.println("更新id为:" + publishfileid + "版本为:的知识对应的资产库的EXT4的影响行数为" + update); + creadteFile(instanceById, "BO_ACT_COE_PUBLISH_C", UserContext.fromUID(instanceById.getCreateUser()), cardId, " CHANGEDFILEIDNEW="); + } + //将旧的知识取消发布或者移动到废止发布中 + String publishfileid_old = bo.getString("CHANGEFILEID"); + String sql_c = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid_old + "'"; + RowMap map1 = DBSql.getMap(sql_c); + if (StringUtils.isNotEmpty(map1.getString("EXT4"))) { + CancelPublishKnwl(instanceById, UserContext.fromUID(instanceById.getCreateUser()).getSessionId(), map1.getString("EXT4")); + DBSql.update( + "UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '' WHERE ID = '" + publishfileid_old + "'" + ); + } + } + + public void CreateKmsBynew(BO bo, String wsId, JSONArray filed, ProcessInstance instanceById, BO bo_act_coe_publish, String uid) { + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + wsId = model.getWsId(); + String publishfileid = bo.getString("PUBLISHFILEID"); + filed.add(publishfileid); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + if (StringUtils.isEmpty(map.getString("EXT4"))) { + // aslp服务地址 + String aslps_create = "aslp://com.actionsoft.apps.kms/CreateKnwl"; +// 参数定义列表 + Map params_create = new HashMap(); +//保密级别, 0: 普通 1:秘密 2:机密,必填 + params_create.put("securityLevel", 0); +//知识名称,必填 + + String level = ""; + + + if (map.getString("PLVER").contains(".00")) { + String[] plvers = map.getString("PLVER").split("\\."); + plvers[1] = plvers[1].replaceAll("0", ""); + level = plvers[0] + plvers[1]; + } else { + level = map.getString("PLVER"); + } + + params_create.put("knwlName", map.getString("PLNAME") + "V" + level); +//是否可以评论,必填 + params_create.put("isComment", true); +//是否可以评分,必填 + params_create.put("isRate", true); +//有效期:yyyy-MM-dd,非必填 + params_create.put("validDate", "2099-12-31"); +//只读控制,1:在线阅读和下载 0:在线阅读,必填 + params_create.put("onlineLevel", 1); +//知识创建人,某些特殊场景下,sid和createUser代表的用户并不一样,如果此参数为null,则使用sid代表的用户,非必填 + params_create.put("createUser", "admin"); +//知识内容,非必填 + params_create.put("cardContext", ""); +//sid,必填 + params_create.put("sid", UserContext.fromUID(instanceById.getCreateUser()).getSessionId()); + AppAPI appAPI_create = SDK.getAppAPI(); +//创建知识 + ResponseObject ro_create = appAPI_create.callASLP(appAPI_create.getAppContext(instanceById.getAppId()), aslps_create, params_create); + System.out.println("ro_create================" + ro_create); + String cardId = ((LinkedHashMap) ro_create.getData()).get("cardId").toString(); + JSONArray jsonArray1 = new JSONArray(); + if (bo_act_coe_publish.getString("SEND_SCOP").equals("0")) { + String departId = bo_act_coe_publish.getString("SEND_SCOPE_ORG"); + if (StringUtils.isNotEmpty(departId) && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_LEVEL")) && StringUtils.isEmpty(bo_act_coe_publish.getString("SEND_SCOPE_POST"))) { + String strs[] = departId.split(","); + for (String departmentid : strs + ) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", departmentid); + jsonArray1.add(jsonObjecta); + } + } else { + + String[] split = uid.split(","); + + List list = new ArrayList(Arrays.asList(split)); + + HashSet h = new HashSet(list); + list.clear(); + list.addAll(h); + + for (String user_id : list + ) { + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "user"); + jsonObjecta.put("assignmentId", user_id); + jsonArray1.add(jsonObjecta); + } + } + } else { + List select_id_from_orgdepartment = DBSql.getMaps("select ID from ORGDEPARTMENT"); + for (RowMap depaid : + select_id_from_orgdepartment) { + String id = depaid.getString("ID"); + JSONObject jsonObjecta = new JSONObject(); + jsonObjecta.put("assignmentType", "department"); + jsonObjecta.put("assignmentId", id); + jsonArray1.add(jsonObjecta); + } + } + + + AddKnwlAC(instanceById, jsonArray1, UserContext.fromUID(instanceById.getCreateUser()).getSessionId(), cardId); + + String update_sql = "UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT4 = '" + cardId + "' WHERE " + + " PLCATEGORY = 'process'and PLMETHODID !='process.framework' " + + " and PLNAME not in ('流程架构图','测试用','GMY-截图用','sx批量测试'" + + " ,'8.2培训使用','用户练习使用','YX测试分部','yx测试人员','yx测试部','流程架构测试')" + + " and PLPARENTID not in ('63ff93c6-2f27-4851-a396-6830c428db2e'," + + " 'c84f497a-4de3-4404-86e8-cd5af71c3b47','94dabf55-b032-4316-a4c3-00b83763da09'," + + " '36ac7cdd-a361-4bd3-9511-c03c1b3627a4','84e534b4-e51a-4874-9ff1-8a0206d9e0c5'," + + " '98bd5917-7563-4b29-b775-815e91d9864c','f07da63c-3423-4c1e-ae75-b323c6a69093'," + + " '79cb4c35-d2f7-4c43-a7db-44038b557eac','7ad79a73-a497-417a-a5ec-d4c9fd45061c'," + + " '42c09260-c1d3-44b7-ac3d-f8280e04c294') and ID = '" + publishfileid + "'"; + int update = DBSql.update(update_sql); + System.out.println("更新id为:" + publishfileid + "版本为:的知识对应的资产库的EXT4的影响行数为" + update); + creadteFile(instanceById, "BO_ACT_COE_PUBLISH_N", UserContext.fromUID(instanceById.getCreateUser()), cardId, "PUBLISHFILEID = "); + } + } + + + + /** + * 以线程进行发送待阅信息 ,暂停使用 + * + * @param list + * @param startTime + * @param jsonObject + * @param instanceById + */ + public void corse_bak(List list, long startTime, JSONObject jsonObject, ProcessInstance instanceById) { + // 创建线程来实现为每300人为一个的线程跑待阅 + ExecutorService service = Executors.newFixedThreadPool(2); + service.execute(new Runnable() { + @Override + public void run() { + int i = 0; + for (String[] resrt : list + ) { + if ((list.size() - 1) == i) { + long endTime = System.currentTimeMillis(); + + long time = endTime - startTime; + long itmes = time / 1000 / 60 / 60; + BO bo_eu_pal_read_log = SDK.getBOAPI().query("BO_EU_PAL_READ_LOG", true).addQuery("PROCESSID = ", instanceById.getId()).detail(); + bo_eu_pal_read_log.set("ENDTIMES", endTime); + bo_eu_pal_read_log.set("TIMECOUNT", itmes); + SDK.getBOAPI().update("BO_EU_PAL_READ_LOG", bo_eu_pal_read_log); + } + i++; + } + } + }); + } + + /** + * 创建待阅日志信息 + * + * @param instanceById + * @param jsonObject + * @param users + * @param startTime + */ + public void CreateReadLog(ProcessInstance instanceById, JSONObject jsonObject, String[] users, long startTime) { + BO bo_Read_log = new BO(); + bo_Read_log.set("USREID", instanceById.getCreateUser()); + bo_Read_log.set("DEPID", UserContext.fromUID(instanceById.getCreateUser()).getDepartmentModel().getId()); + bo_Read_log.set("BUNAME", UserContext.fromUID(instanceById.getCreateUser()).getUserModel().getExt4()); + bo_Read_log.set("TITLE", jsonObject.get("title")); + bo_Read_log.set("PROCESSID", instanceById.getId()); + bo_Read_log.set("SENDNUM", users.length); + BO bo_act_coe_publishs = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", instanceById.getId()).addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + String send_scop = bo_act_coe_publishs.getString("SEND_SCOP"); + bo_Read_log.set("SEND_SCOP", send_scop); + String SEND_SCOPE_ORG = bo_act_coe_publishs.getString("SEND_SCOPE_ORG"); + if (UtilString.isNotEmpty(SEND_SCOPE_ORG)) { + String[] resulr = SEND_SCOPE_ORG.split(","); + bo_Read_log.set("SEND_SCOPE_ORGNUM", resulr.length); + } + String SEND_SCOPE_POST = bo_act_coe_publishs.getString("SEND_SCOPE_POST"); + if (UtilString.isNotEmpty(SEND_SCOPE_POST)) { + String[] resulr = SEND_SCOPE_POST.split(","); + bo_Read_log.set("SEND_SCOPE_POST_NUM", resulr.length); + } + String SEND_SCOPE_LEVEL = bo_act_coe_publishs.getString("SEND_SCOPE_LEVEL"); + if (UtilString.isNotEmpty(SEND_SCOPE_LEVEL)) { + String[] resulr = SEND_SCOPE_LEVEL.split(","); + bo_Read_log.set("SEND_SCOPE_LEVEL_NUM", resulr.length); + } + + bo_Read_log.set("STARTTIMES", startTime); + SDK.getBOAPI().createDataBO("BO_EU_PAL_READ_LOG", bo_Read_log, UserContext.fromUID(instanceById.getCreateUser())); + + } + + //创建推送日志 + public void createLog(ProcessInstance instanceById,String uids) { + BO bo = new BO();//BO_EU_PAL_SEND_LOG + bo.set("USREID",instanceById.getCreateUser()); + bo.set("TITLE",instanceById.getTitle()); + bo.set("SENDTIME",instanceById.getEndTime()); + bo.set("PROCESSID",instanceById.getId()); + bo.set("USERNAMES",uids); + bo.set("DEPID",UserContext.fromUID(uids).getDepartmentModel().getId() + ); + bo.set("POSTNAME",UserContext.fromUID(uids).getUserModel().getPositionName() + ); + bo.set("BUNAME",UserContext.fromUID(uids).getUserModel().getExt2() + ); + SDK.getBOAPI().createDataBO("BO_EU_PAL_SEND_LOG",bo,UserContext.fromUID("admin")); + } +} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/CreateOutputReportJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/CreateOutputReportJob.java new file mode 100644 index 00000000..12ad0846 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/CreateOutputReportJob.java @@ -0,0 +1,350 @@ +package com.awspaas.user.apps.app.job; + +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.PALRepositoryQueryAPIManager; +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.TaskInstance; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.org.model.UserModel; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.actionsoft.sdk.local.api.ORGAPI; +import com.alibaba.fastjson.JSONObject; +/** + * 批量重新生成手册 + * @author Administrator + * + */ +@SuppressWarnings("all") +public class CreateOutputReportJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + + String jobParameter = SDK.getJobAPI().getJobParameter(jobExecutionContext); + + + CARA4(); + //CARA4(); + //CARA2(); + + //批量发布文件 + //CARA7(); + + //获取用户登录时间 + //CARA8(); + + /* + * String sql = "SELECT * FROM BO_EU_OA_LOGIN"; + * + * List maps = DBSql.getMaps(sql); for (RowMap rowMap : maps) { String + * userId = rowMap.getString("USER_ID"); if(UtilString.isNotEmpty(userId)) { + * String createdate = rowMap.getString("CREATEDATE"); Date date = + * rowMap.getDate("CREATEDATE"); String time = createdate.substring(0,10); try { + * setUserLog2(userId, "1",time,date); } catch (Exception e) { // TODO: handle + * exception } + * + * } } + */ + + //setUserLog("admin", "1"); + + } + //统计用户登录日志 + public void CARA8() { + String sql = "select * from sys_session where USERID != 'admin'"; + List maps = DBSql.getMaps(sql); + System.err.println("=====用户登录数量=====>"+maps.size()); + ArrayList bolist = new ArrayList(); + for (RowMap rowMap : maps) { + + BO bo =new BO(); + String uid = rowMap.getString("USERID"); + UserModel user = SDK.getORGAPI().getUser(uid); + if(user!=null) { + if(UtilString.isNotEmpty(user.getPositionName())) { + bo.set("USERID", uid); + bo.set("USERDEP", user.getDepartmentId()); + bo.set("USERBU", user.getExt4()); + bo.set("USERPOST", user.getPositionName()); + bo.set("LOGTIME", rowMap.getDate("STARTTIME")); + bolist.add(bo); + } + } + } + SDK.getBOAPI().createDataBO("BO_EU_SYS_LOGIN_LOG", bolist, UserContext.fromUID("admin")); + } + + + + //获取批量发布表的数据批量发布文件 + public void CARA7() { + int updateNum = 0; + int createNum = 0; + String sql = "SELECT PLNAME FROM BO_EU_PAL_PLFB "; + List maps = DBSql.getMaps(sql); + System.err.println("批量发布文件数量为:"+maps.size()); + for (RowMap rowMap : maps) { + String plname = rowMap.getString("PLNAME"); + if(UtilString.isNotEmpty(plname)) { + String sqlr = "SELECT * FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME = '"+plname+"'"; + List maps2 = DBSql.getMaps(sql); + if(maps2.size()>1) { + System.err.println("有多个版本的文件==>"+plname); + } + + } + } + + + + } + + + + public void setUserLog2(String userid, String logType, String logTime, Date date) { + if (UtilString.isNotEmpty(userid)) { + BO bo = new BO(); + String slq = "SELECT ID,LOGINCOUNTS,LOGINUSERNAME,LOGINTIME FROM BO_EU_USER_LOGIN_LOG WHERE LOGINCOUNTS > 12"; + List maps = DBSql.getMaps(slq); + if (maps.size() != 0) { + // String sql = "UPDATE BO_EU_USER_LOGIN_LOG SET CREATEDATE = '"+date+"' WHERE + // LOGINUSERNAME = '"+userid+"' AND LOGINTIME = '"+logTime+"'"; + // DBSql.update(sql); + //System.err.println("用户登录时间更新日志========>" + maps.get(0).getString("LOGINUSERNAME")); + bo = SDK.getBOAPI().get("BO_EU_USER_LOGIN_LOG", maps.get(0).getString("ID")); + try { + if ( maps.get(0).getInt("LOGINCOUNTS")>10) { + bo.set("LOGINCOUNTS", 5); + } + SDK.getBOAPI().update("BO_EU_USER_LOGIN_LOG", bo); + + } catch (Exception e) { + // TODO: handle exception + } + // bo.set("LOGINCOUNTS", maps.get(0).getInt("LOGINCOUNTS")+3); + // bo.set("CREATEDATE", date); + + } else { + ORGAPI orgapi = SDK.getORGAPI(); + UserModel user = orgapi.getUser(userid); + DepartmentModel departmentByUser = orgapi.getDepartmentByUser(userid); + bo.set("LOGINUSERNAME", userid); + bo.set("USERBUNAME", user.getExt4()); + bo.set("USERPOST", user.getPositionName()); + bo.set("USERDEPTNAME", departmentByUser.getPathNameOfCache()); + bo.set("LOGINTIME", logTime); + bo.set("LOGINCOUNTS", 1); + bo.set("LOGTYPE", logType); + // System.err.println("用户登录记录存入日志========>"); + // SDK.getBOAPI().createDataBO("BO_EU_USER_LOGIN_LOG", bo, + // UserContext.fromUID("admin")); + } + } + } + + + public void setUserLog(String userid,String logType) { + if (UtilString.isNotEmpty(userid)) { + String logTime = new SimpleDateFormat("yyyy-MM-dd").format(new Date()); + BO bo = new BO(); + String slq = "SELECT ID,LOGINCOUNTS FROM BO_EU_USER_LOGIN_LOG WHERE LOGINUSERNAME = '"+userid+"' AND LOGINTIME = '"+logTime+"'"; + List maps = DBSql.getMaps(slq); + if(maps.size()!=0) { + bo = SDK.getBOAPI().get("BO_EU_USER_LOGIN_LOG", maps.get(0).getString("ID")); + bo.set("LOGINCOUNTS", maps.get(0).getInt("LOGINCOUNTS")+1); + SDK.getBOAPI().update("BO_EU_USER_LOGIN_LOG", bo); + }else { + ORGAPI orgapi = SDK.getORGAPI(); + UserModel user = orgapi.getUser(userid); + DepartmentModel departmentByUser = orgapi.getDepartmentByUser(userid); + bo.set("LOGINUSERNAME", userid); + bo.set("USERBUNAME",user.getExt4()); + bo.set("USERPOST",user.getPositionName()); + bo.set("USERDEPTNAME", departmentByUser.getPathNameOfCache()); + bo.set("LOGINTIME", logTime); + bo.set("LOGINCOUNTS", 1); + bo.set("LOGTYPE", logType); + System.err.println("用户登录记录存入日志========>"); + SDK.getBOAPI().createDataBO("BO_EU_USER_LOGIN_LOG", bo, UserContext.fromUID("admin")); + } + } + } + + + //获取转换失败表文件进行发布 + public void CARA4() { + int updateNum = 0; + int createNum = 0; + UserContext _uc = UserContext.fromUID("admin"); + ProcessInstance createProcessInstance = SDK.getProcessAPI().createProcessInstance("obj_7cb02971312c47febd508bdffa122614", "admin", "批量发布文件-"); + TaskInstance taskInst = SDK.getProcessAPI().start(createProcessInstance).fetchActiveTasks().get(0); + String sql = "SELECT ID AS PLID,PLNAME FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLPARENTID = 'e36d8b92-0c67-4f74-9fb5-d58fa15e484a'"; + BO bo = new BO(); + bo.set("OPTIONTYPE", "流程制度发布"); + bo.set("PROCESS_TITLE", "文件发布_批量发布"); + SDK.getBOAPI().create("BO_ACT_COE_PUBLISH", bo, createProcessInstance, _uc); + ArrayList boList = new ArrayList(); + BO subBo = null; + List maps = DBSql.getMaps(sql); + System.err.println("批量发布文件数量为:"+maps.size()); + for (RowMap rowMap : maps) { + subBo = new BO(); + String uuid = rowMap.getString("PLID"); + subBo.set("PUBLISTHTYPE", "N"); + subBo.set("PUBLISHFILENAME", rowMap.getString("PLNAME")); + subBo.set("PUBLISHDESC", "批量发布"); + subBo.set("PUBLISHFILEID", uuid); + PALRepositoryModel model = PALRepositoryCache.getCache().get(uuid); + String sqly = "UPDATE BO_ACT_COE_PUBLISH_N SET PUBLISHDESC ='待删除' WHERE PUBLISHFILEID = '"+uuid+"'"; + DBSql.update(sqly); + String taskId = "N"; + try { + System.err.println("批量转换模型名称=========>"+rowMap.getString("PLNAME")); + taskId = createOutputReport(model, "7d3ca852-a0bd-42e6-80b1-3dcea6f55083", "admin","", uuid); + System.err.println("批量转换模型名称=========>"+rowMap.getString("PLNAME")+"===>"+taskId); + } catch (Exception e) { + } + subBo.set("TASKID", taskId); + boList.add(subBo); + } + SDK.getBOAPI().create("BO_ACT_COE_PUBLISH_N", boList, createProcessInstance, _uc); + + + + } + //批量发布时,删除已发布记录 + public void CARA2() { + String sql1 = "SELECT PUBLISHFILEID FROM BO_ACT_COE_PUBLISH_N WHERE PUBLISHDESC = '批量发布'"; + List maps = DBSql.getMaps(sql1); + for (RowMap rowMap : maps) { + String uuid = rowMap.getString("PUBLISHFILEID"); + String sql2 = "SELECT PUBLISHFILEID FROM BO_ACT_COE_PUBLISH_N WHERE PUBLISHFILEID = '"+uuid+"' AND PUBLISHDESC ='待删除'"; + String uuid2 = DBSql.getString(sql2); + if(UtilString.isNotEmpty(uuid2)) { + String sql = "DELETE FROM BO_ACT_COE_PUBLISH_N WHERE PUBLISHFILEID = '"+uuid+"' AND PUBLISHDESC ='待删除'"; + int update = DBSql.update(sql1); + System.out.println("删除N表=======>"+update); + String sqls = "SELECT PLVERSIONID FROM App_Act_Coe_Pal_Repository WHERE ID = '"+uuid+"'"; + String versionId = DBSql.getString(sqls); + String sqlt = "DELETE FROM app_act_coe_pal_publish_list WHERE PALREPOSITORYID = '"+versionId+"' "; + int update2 = DBSql.update(sqlt); + System.out.println("删除List表=======>"+update2); + } + } + + + } + //获取批量发布表的数据批量发布文件 + public void CARA1() { + int updateNum = 0; + int createNum = 0; + UserContext _uc = UserContext.fromUID("admin"); + ProcessInstance createProcessInstance = SDK.getProcessAPI().createProcessInstance("obj_7cb02971312c47febd508bdffa122614", "admin", "批量发布文件-"); + TaskInstance taskInst = SDK.getProcessAPI().start(createProcessInstance).fetchActiveTasks().get(0); + //String sql = "SELECT PLID,PLNAME FROM BO_EU_PAL_OUTPUTREPORT WHERE RESULT != '手册转换成功!'"; + String sql = "SELECT PLNAME FROM BO_EU_PAL_PLFB "; + BO bo = new BO(); + bo.set("OPTIONTYPE", "流程制度发布"); + bo.set("PROCESS_TITLE", "文件发布_批量发布"); + SDK.getBOAPI().create("BO_ACT_COE_PUBLISH", bo, createProcessInstance, _uc); + ArrayList boList = new ArrayList(); + BO subBo = null; + List maps = DBSql.getMaps(sql); + System.err.println("批量发布文件数量为:"+maps.size()); + for (RowMap rowMap : maps) { + String plname = rowMap.getString("PLNAME"); + if(UtilString.isNotEmpty(plname)) { + PALRepositoryModel repositoryByName = getRepositoryByName("7d3ca852-a0bd-42e6-80b1-3dcea6f55083", plname.trim()); + + System.err.println("批量发布模型==========>"+repositoryByName); + //String sqls = "SELECT ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME = '"+plname+"'"; + //System.err.println("======sqls======="+sqls); + if(repositoryByName!=null) { + subBo = new BO(); + //String uuid = rowMap.getString("PLID"); + String uuid = repositoryByName.getId(); + subBo.set("PUBLISTHTYPE", "N"); + subBo.set("PUBLISHFILENAME", plname); + subBo.set("PUBLISHDESC", "批量发布"); + subBo.set("PUBLISHFILEID", uuid); + String sqly = "UPDATE BO_ACT_COE_PUBLISH_N SET PUBLISHDESC ='待删除' WHERE PUBLISHFILEID = '"+uuid+"'"; + DBSql.update(sqly); + String taskId = "N"; + try { + System.err.println("批量转换模型名称=========>"+rowMap.getString("PLNAME")); + taskId = createOutputReport(repositoryByName, "7d3ca852-a0bd-42e6-80b1-3dcea6f55083", "admin","", uuid); + System.err.println("批量转换模型名称=========>"+rowMap.getString("PLNAME")+"===>"+taskId); + } catch (Exception e) { + } + subBo.set("TASKID", taskId); + boList.add(subBo); + + } + } + } + SDK.getBOAPI().create("BO_ACT_COE_PUBLISH_N", boList, createProcessInstance, _uc); + + + + } + + /** + * 创建手册 + * @param model + * @param wsId + * @param userId + * @param teamId + * @param uuid + * @return + */ + private String createOutputReport(PALRepositoryModel model, String wsId, String userId, String teamId, String uuid) { + String taskId = ""; + if (model.getMethodId().contains("process.")) { + taskId = PALRepositoryQueryAPIManager.getInstance().createOutputReportPr(wsId, userId, teamId, uuid); + JSONObject object = JSONObject.parseObject(taskId); + if ("ok".equals(object.getString("result"))) { + taskId = object.getJSONObject("data").getString("taskId"); + } + } else if ("data.form".equals(model.getMethodId())) { + taskId = PALRepositoryQueryAPIManager.getInstance().createOutputReportBd(wsId, userId, teamId, uuid); + JSONObject object = JSONObject.parseObject(taskId); + if ("ok".equals(object.getString("result"))) { + taskId = object.getJSONObject("data").getString("taskId"); + } + } else if ("control.policy".equals(model.getMethodId())) { + taskId = PALRepositoryQueryAPIManager.getInstance().createOutputReportZd(wsId, userId, teamId, uuid); + JSONObject object = JSONObject.parseObject(taskId); + if ("ok".equals(object.getString("result"))) { + taskId = object.getJSONObject("data").getString("taskId"); + } + } + return taskId; + } + + public static PALRepositoryModel getRepositoryByName(String wsId, String repositoryName) { + List palRepositoryModels = CoeProcessLevelDaoFacotory.createCoeProcessLevel().getAllCoeProcessLevelByWsId(wsId); + for (PALRepositoryModel palRepositoryModel : palRepositoryModels) { + + if (palRepositoryModel.getName().equals(repositoryName)&&palRepositoryModel.isUse()) { + return palRepositoryModel; + } + } + return null; + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/CreateOutputReportJob2.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/CreateOutputReportJob2.java new file mode 100644 index 00000000..bc45da4c --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/CreateOutputReportJob2.java @@ -0,0 +1,280 @@ +package com.awspaas.user.apps.app.job; + +import java.util.List; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.designer.manage.CoeDesignerAPIManager; +import com.actionsoft.apps.coe.pal.pal.repository.designer.model.BaseModel; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UUIDGener; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONObject; +/** + * 模型统计 + * @author Administrator + * + */ +public class CreateOutputReportJob2 implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + //count1(); + count2(); + + } + + public void count2() { + + int count = 0; + String sqls = "DELETE FROM BO_EU_PAL_ERROR_FILE"; + DBSql.update(sqls); + String sql = "select ID from App_Act_Coe_Pal_Repository where PLCATEGORY = 'process'"; + // String sql = "select ID from App_Act_Coe_Pal_Repository where PLNAME = + // '测试文件测'"; + List maps = DBSql.getMaps(sql); + System.err.println("统计错误模型开始=====>"+maps.size()); + for (RowMap rowMap : maps) { + BO bo = new BO(); + try { + String id = rowMap.getString("ID"); + PALRepositoryModel model = PALRepositoryCache.getCache().get(id); + if (model != null) { + bo.set("PLNAME", model.getName()); + bo.set("PLID", model.getId()); + PALRepositoryModel prmodel = PALRepositoryCache.getCache().get(model.getParentId()); + if (prmodel != null) { + bo.set("FRAMEWORK", prmodel.getName()); + bo.set("CREATTIME", prmodel.getCreateDate()); + bo.set("UPDATETIME", prmodel.getModifyDate()); + } + bo.set("VERSION", model.getVersion()); + if(model.isPublish()) { + bo.set("ISPUBLISH","已发布"); + }else { + bo.set("ISPUBLISH","未发布"); + } + String methodId = model.getMethodId(); + if (methodId.contains("data")) { + bo.set("TYPE", "表单"); + countNum(bo, count, model); + }else if (methodId.contains("control.policy")) { + bo.set("TYPE", "制度"); + countNum(bo, count, model); + + }else if (methodId.contains("process")) { + bo.set("TYPE", "流程"); + countNum(bo, count, model); + } + + } + } catch (Exception e) { + /* + * String uuid = UUIDGener.getUUID(); bo.setId(uuid); bo.set("ERRORTYPE", + * "模型不存在"); count += SDK.getBOAPI().createDataBO("BO_EU_PAL_ERROR_FILE", bo, + * UserContext.fromUID("admin")); + */ + } + + } + } + + public void countNum(BO bo,int count,PALRepositoryModel model) { + String id = model.getId(); + CoeDesignerAPIManager instance = CoeDesignerAPIManager.getInstance(); + if (instance != null) { + BaseModel defineModel = null; + try { + defineModel = instance.getDefinition(id, 0); + + if (null == defineModel) { + String uuid = UUIDGener.getUUID(); + bo.setId(uuid); + bo.set("ERRORTYPE", "2"); + //count += SDK.getBOAPI().createDataBO("BO_EU_PAL_ERROR_FILE", bo, UserContext.fromUID("admin")); + } else { + String define = null; + //JSONObject elements = new JSONObject(); + try { + define = defineModel.getDefinition(); + JSONObject definition = JSONObject.parseObject(define); + //elements = definition.getJSONObject("elements"); + } catch (Exception e) { + System.err.println(model.getName()+"=====错误json=========>"+define); + System.err.println(model.getName()+"=====错误json=========>"+defineModel.getPath()); + System.err.println(model.getName()+"=====错误json=========>"+defineModel.getUUID()); + String uuid = UUIDGener.getUUID(); + bo.setId(uuid); + bo.set("ERRORTYPE", "3"); + count += SDK.getBOAPI().createDataBO("BO_EU_PAL_ERROR_FILE", bo, UserContext.fromUID("admin")); + String sqlt = "select ID from BO_EU_PAL_FILE_NULL_L WHERE PLNAME = '"+model.getName()+"'"; + String ID = DBSql.getString(sqlt); + if(UtilString.isNotEmpty(ID)) { + }else { + } + + } + + } + + } catch (Exception e) { + String uuid = UUIDGener.getUUID(); + bo.setId(uuid); + bo.set("ERRORTYPE", "1"); + count += SDK.getBOAPI().createDataBO("BO_EU_PAL_ERROR_FILE", bo, UserContext.fromUID("admin")); + } + + + + } + } + public void count1() { + int updateNum = 0; + int createNum = 0; + String sqls = "DELETE FROM BO_EU__PAL_NULL_L"; + DBSql.update(sqls); + String sqls2 = "DELETE FROM BO_EU_PAL_FILE_NULL_L"; + DBSql.update(sqls2); + // String sql = "select ID from App_Act_Coe_Pal_Repository where PUBLISHDATE < + // to_date('2022/10/5 9:46:18 ','yyyy-mm-dd hh24:mi:ss')"; + // String sql = "select ID from App_Act_Coe_Pal_Repository where PUBLISHDATE > + // '2022/7/5 9:46:18'"; + String sql = "select ID from App_Act_Coe_Pal_Repository "; + // String sql = "select ID from App_Act_Coe_Pal_Repository where PLNAME = + // '测试文件测'"; + List maps = DBSql.getMaps(sql); + for (RowMap rowMap : maps) { + String id = rowMap.getString("ID"); + PALRepositoryModel model = PALRepositoryCache.getCache().get(id); + // 查询对应绩效模型中数据模型进行填充数据 + + /* + * String s = "SELECT * FROM BO_ACT_BATCH_PUBLIS_N WHERE PLNAME = '" + + * model.getName() + "'"; if (UtilString.isNotEmpty(DBSql.getString(s))) { + * String updataSql = + * "UPDATE App_Act_Coe_Pal_Repository SET ISPUBLISH = 0 , PUBLISHDATE = null WHERE ID = '" + * + id + "'"; updateNum += DBSql.update(updataSql); + * System.err.println("刷新为设计的模型:" + model.getName()); + * + * } + */ + if (model != null) { + CoeDesignerAPIManager instance = CoeDesignerAPIManager.getInstance(); + if (instance != null) { + BaseModel defineModel = null; + try { + defineModel = instance.getDefinition(id, 0); + } catch (Exception e) { + System.out.println("有问题的模型=====>" + model.getName()); + } + if (null == defineModel) { + } else { + String define = defineModel.getDefinition(); + JSONObject definition = JSONObject.parseObject(define); + JSONObject elements = definition.getJSONObject("elements"); + if (elements.size() == 0) { + BO bo = new BO(); + BO bo2 = new BO(); + bo.set("PLNAME", model.getName()); + bo2.set("PLNAME", model.getName()); + PALRepositoryModel prmodel = PALRepositoryCache.getCache().get(model.getParentId()); + if (prmodel != null) { + bo.set("FRAMEWORK", prmodel.getName()); + bo2.set("FRAMEWORK", prmodel.getName()); + } + bo.set("VERSION", model.getVersion()); + bo2.set("VERSION", model.getVersion()); + if(model.isPublish()) { + bo.set("ISPUBLISH","已发布"); + bo2.set("ISPUBLISH","已发布"); + }else { + bo.set("ISPUBLISH","未发布"); + bo2.set("ISPUBLISH","未发布"); + } + String methodId = model.getMethodId(); + if (methodId.contains("data")) { + bo.set("TYPE", "表单"); + createNum += SDK.getBOAPI().createDataBO("BO_EU__PAL_NULL_L", bo, UserContext.fromUID("admin")); + String sqlt ="UPDATE BO_EU_PAL_FILE1 SET FILESTATE = 0 WHERE PLNAME = '"+model.getName()+"'"; + int a = DBSql.update(sqlt); + if(a!=0) { + bo2.set("TYPE", "表单"); + System.err.println("刷新为设计的模型:" +model.getName()); + updateNum += SDK.getBOAPI().createDataBO("BO_EU_PAL_FILE_NULL_L", bo2, UserContext.fromUID("admin")); + } + + } else if (methodId.contains("control.policy")) { + bo.set("TYPE", "制度"); + createNum += SDK.getBOAPI().createDataBO("BO_EU__PAL_NULL_L", bo, UserContext.fromUID("admin")); + String sqlt ="UPDATE BO_EU_PAL_FILE1 SET FILESTATE = 0 WHERE PLNAME = '"+model.getName()+"'"; + int a = DBSql.update(sqlt); + if(a!=0) { + bo2.set("TYPE", "制度"); + System.err.println("刷新为设计的模型:" +model.getName()); + updateNum += SDK.getBOAPI().createDataBO("BO_EU_PAL_FILE_NULL_L", bo2, UserContext.fromUID("admin")); + } + } else if (methodId.contains("process")) { + bo.set("TYPE", "流程"); + createNum += SDK.getBOAPI().createDataBO("BO_EU__PAL_NULL_L", bo, UserContext.fromUID("admin")); + String sqlt ="UPDATE BO_EU_PAL_FILE1 SET FILESTATE = 0 WHERE PLNAME = '"+model.getName()+"'"; + int a = DBSql.update(sqlt); + if(a!=0) { + bo2.set("TYPE", "流程"); + System.err.println("刷新为设计的模型:" +model.getName()); + updateNum += SDK.getBOAPI().createDataBO("BO_EU_PAL_FILE_NULL_L", bo2, UserContext.fromUID("admin")); + } + } + + + /* + * String updataSql = + * "UPDATE App_Act_Coe_Pal_Repository SET ISPUBLISH = 0 , PUBLISHDATE = null WHERE ID = '" + * + id + "'"; DBSql.update(updataSql); + */ + + + } + + } + } + + } + + } + + /* + * SDK.getLogAPI().consoleInfo("更新状态后刷新缓存开始===========>"); + * TeamPermCache.getCache().reload(); TeamMemberPermCache.getCache().reload(); + * PublishHistoryCache.getCache().reload(); + * PublishUserGroupCache.getCache().reload(); + * PublishUserGroupPermCache.getCache().reload(); + * PublishUserGroupRoleCache.getCache().reload(); + * PALDesignerFileCache.getCache().reload(); + * PALDesignerFileDragModelCache.getCache().reload(); + * PALRepositoryCache.getCache().reload(); + * PALRepositoryRemoveCache.getCache().reload(); + * CoeDesignerShapeCache.getCache().reload(); + * DesignerShapeRelationCache.getCache().reload(); + * PALRepositoryPropertyCache.getCache().reload(); + * PALRepositoryAttributeCache.getCache().reload(); + * PALRepositoryShapeConfigCache.getCache().reload(); + * PALRepositoryShapeAttributeCache.getCache().reload(); + * CoeProcessLevelCorrelateCache.getCache().reload(); + * CoeDesignerImageCache.getCache().reload(); + * SDK.getLogAPI().consoleInfo("更新状态后刷新缓存结束===========>"); + */ + + System.err.println("更新文件表数量:" + updateNum); + System.err.println("本次共查询到的模型:" + createNum); + } + + + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/CreateOutputReportJob3.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/CreateOutputReportJob3.java new file mode 100644 index 00000000..96a8032b --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/CreateOutputReportJob3.java @@ -0,0 +1,142 @@ +package com.awspaas.user.apps.app.job; + +import java.util.List; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.designer.manage.CoeDesignerAPIManager; +import com.actionsoft.apps.coe.pal.pal.repository.designer.model.BaseModel; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONObject; +import com.sun.org.apache.xalan.internal.xsltc.compiler.sym; +/** + * 批量修改文件发布状态 + * @author Administrator + * + */ +public class CreateOutputReportJob3 implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + + int updateNum = 0; + int createNum = 0; + String sqls = "DELETE FROM BO_EU__PAL_NULL_L"; + DBSql.update(sqls); + // String sql = "select ID from App_Act_Coe_Pal_Repository where PUBLISHDATE < + // to_date('2022/10/5 9:46:18 ','yyyy-mm-dd hh24:mi:ss')"; + // String sql = "select ID from App_Act_Coe_Pal_Repository where PUBLISHDATE > + // '2022/7/5 9:46:18'"; + //String sql = "select ID from App_Act_Coe_Pal_Repository "; + String sql = "select FRAMEWORK from BO_EU_PAL_NULL_FILE "; + // String sql = "select ID from App_Act_Coe_Pal_Repository where PLNAME = + // '测试文件测'"; + List maps = DBSql.getMaps(sql); + for (RowMap rowMap : maps) { + String name = rowMap.getString("FRAMEWORK"); + String sqss = "SELECT ID FROM App_Act_Coe_Pal_Repository WHERE PLNAME = '"+name+"'"; + String id = DBSql.getString(sqss); + PALRepositoryModel model = PALRepositoryCache.getCache().get(id); + // 查询对应绩效模型中数据模型进行填充数据 + + /* + * String s = "SELECT * FROM BO_ACT_BATCH_PUBLIS_N WHERE PLNAME = '" + + * model.getName() + "'"; if (UtilString.isNotEmpty(DBSql.getString(s))) { + * String updataSql = + * "UPDATE App_Act_Coe_Pal_Repository SET ISPUBLISH = 0 , PUBLISHDATE = null WHERE ID = '" + * + id + "'"; updateNum += DBSql.update(updataSql); + * System.err.println("刷新为设计的模型:" + model.getName()); + * + * } + */ + if (model != null) { + + BO bo = new BO(); + BO bo2 = new BO(); + bo.set("PLNAME", model.getName()); + bo2.set("PLNAME", model.getName()); + PALRepositoryModel prmodel = PALRepositoryCache.getCache().get(model.getParentId()); + if (prmodel != null) { + bo.set("FRAMEWORK", prmodel.getName()); + bo2.set("FRAMEWORK", prmodel.getName()); + } + bo.set("VERSION", model.getVersion()); + bo2.set("VERSION", model.getVersion()); + if(model.isPublish()) { + bo.set("ISPUBLISH","已发布"); + bo2.set("ISPUBLISH","已发布"); + }else { + bo.set("ISPUBLISH","未发布"); + bo2.set("ISPUBLISH","未发布"); + } + String methodId = model.getMethodId(); + if (methodId.contains("data")) { + bo.set("TYPE", "表单"); + bo2.set("TYPE", "表单"); + + String updataSql = "UPDATE App_Act_Coe_Pal_Repository SET ISPUBLISH = 0 , PUBLISHDATE = null WHERE ID = '"+ id + "'"; + DBSql.update(updataSql); + + createNum += SDK.getBOAPI().createDataBO("BO_EU__PAL_NULL_L", bo, UserContext.fromUID("admin")); + String sqlt ="UPDATE BO_EU_PAL_FILE1 SET FILESTATE = 0 WHERE PLNAME = '"+model.getName()+"'"; + int a = DBSql.update(sqlt); + if(a!=0) { + System.err.println("刷新为设计的模型:" +model.getName()); + updateNum += SDK.getBOAPI().createDataBO("BO_EU_PAL_FILE_NULL_L", bo2, UserContext.fromUID("admin")); + } + + } else if (methodId.contains("control.policy")) { + bo.set("TYPE", "制度"); + bo2.set("TYPE", "制度"); + String updataSql = "UPDATE App_Act_Coe_Pal_Repository SET ISPUBLISH = 0 , PUBLISHDATE = null WHERE ID = '"+ id + "'"; + DBSql.update(updataSql); + createNum += SDK.getBOAPI().createDataBO("BO_EU__PAL_NULL_L", bo, UserContext.fromUID("admin")); + String sqlt ="UPDATE BO_EU_PAL_FILE1 SET FILESTATE = 0 WHERE PLNAME = '"+model.getName()+"'"; + int a = DBSql.update(sqlt); + if(a!=0) { + System.err.println("刷新为设计的模型:" +model.getName()); + updateNum += SDK.getBOAPI().createDataBO("BO_EU_PAL_FILE_NULL_L", bo2, UserContext.fromUID("admin")); + } + } else if (methodId.contains("process")) { + bo.set("TYPE", "流程"); + bo2.set("TYPE", "流程"); + String updataSql = "UPDATE App_Act_Coe_Pal_Repository SET ISPUBLISH = 0 , PUBLISHDATE = null WHERE ID = '"+ id + "'"; + DBSql.update(updataSql); + createNum += SDK.getBOAPI().createDataBO("BO_EU__PAL_NULL_L", bo, UserContext.fromUID("admin")); + String sqlt ="UPDATE BO_EU_PAL_FILE1 SET FILESTATE = 0 WHERE PLNAME = '"+model.getName()+"'"; + int a = DBSql.update(sqlt); + if(a!=0) { + System.err.println("刷新为设计的模型:" +model.getName()); + updateNum += SDK.getBOAPI().createDataBO("BO_EU_PAL_FILE_NULL_L", bo2, UserContext.fromUID("admin")); + } + } + + + /* + * String updataSql = + * "UPDATE App_Act_Coe_Pal_Repository SET ISPUBLISH = 0 , PUBLISHDATE = null WHERE ID = '" + * + id + "'"; DBSql.update(updataSql); + */ + + + } + + + + } + System.err.println("更新文件表数量:" + updateNum); + System.err.println("本次共查询到的模型:" + createNum); + + } + + + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/NoPalFrameworkJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/NoPalFrameworkJob.java new file mode 100644 index 00000000..6234564c --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/NoPalFrameworkJob.java @@ -0,0 +1,274 @@ +package com.awspaas.user.apps.app.job; + +import java.io.IOException; +import java.io.InputStream; +import java.util.List; + +import org.apache.commons.httpclient.HttpClient; +import org.apache.commons.httpclient.methods.PostMethod; +import org.apache.commons.httpclient.methods.RequestEntity; +import org.apache.commons.httpclient.methods.StringRequestEntity; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory; +import com.actionsoft.apps.coe.pal.pal.repository.dao.PALRepositoryPropertyDao; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONObject; + +import jodd.http.HttpException; + +/** + * 批量刷新模型架构属性 + * @author Administrator + * + */ +public class NoPalFrameworkJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + + //sre(); + sre2(); + } + //更新架构层级错误 + public void sre2() { + int count = 0; + String slq = "SELECT * FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLMETHODID = 'process.framework'"; + List maps2 = DBSql.getMaps(slq); + for (RowMap rowMap : maps2) { + String plname = rowMap.getString("PLNAME"); + String plId = rowMap.getString("ID"); + String[] split = plname.split("\\."); + if(split.length>2) { + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '3',EXT5 = '1' WHERE ID = '"+plId+"'"); + }else{ + if(split.length>1) { + String ff = split[1]; + if(ff.contains("0")) { + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '1',EXT5 = '1' WHERE ID = '"+plId+"'"); + }else { + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '2',EXT5 = '1' WHERE ID = '"+plId+"'"); + } + } + } + /* + * String sql = + * "SELECT PLLEVEL FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLPARENTID = '"+plId+ + * "'"; String plLevel = DBSql.getString(sql); + * if(UtilString.isNotEmpty(plLevel)) { + * DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '"+(Integer. + * parseInt(plLevel)-1)+""+"' WHERE ID = '"+plId+"'"); }else { + * + * + * } + */ + + } + + + String sql = "SELECT PLLEVEL,ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLMETHODID = 'process.framework'"; + List maps = DBSql.getMaps(sql); + for (RowMap rowMap : maps) { + String id = rowMap.getString("ID"); + String level = rowMap.getString("PLLEVEL"); + //count+=DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '"+level+"' WHERE ID = '"+id+"'"); + count+=DBSql.update("UPDATE BO_EU_PAL_FRAME SET FRAMELEVEL = '"+level+"' WHERE FRAMEID = '"+id+"'"); + } + System.err.println("共刷新数据=====》"+count); + + + } + //刷新架构名称 + public void sre() { + List palRepositoryModels = CoeProcessLevelDaoFacotory.createCoeProcessLevel() + .getAllCoeProcessLevelByWsId("7d3ca852-a0bd-42e6-80b1-3dcea6f55083"); + for (PALRepositoryModel palRepositoryModel : palRepositoryModels) { + BO bo = new BO(); + + boolean isResul = true; + String name = palRepositoryModel.getName(); + String methodId = palRepositoryModel.getMethodId(); + String uuid = palRepositoryModel.getId(); + bo.set("PLNAME", name); + bo.set("PLID", uuid); + if (("process.epc".equals(methodId) || "control.policy".equals(methodId) + || "process.flowchart".equals(methodId))|| "data.form".equals(methodId)) { + try { + String frameworkName1 = ""; + //String frameworkName2 = ""; + //String frameworkName3 = ""; + // 获取一级架构名称 + String parentId1 = palRepositoryModel.getParentId(); + //String parentId2 = ""; + //String parentId3 = ""; + PALRepositoryModel parentMode1 = PALRepositoryCache.getCache().get(parentId1); + if (parentMode1 != null) { + frameworkName1 = parentMode1.getName(); + /* + * parentId2 = parentMode1.getParentId(); PALRepositoryModel parentMode2 = + * PALRepositoryCache.getCache().get(parentId2); if (parentMode2 != null) { + * frameworkName2 = parentMode2.getName(); parentId3 = + * parentMode2.getParentId(); PALRepositoryModel parentMode3 = + * PALRepositoryCache.getCache().get(parentId3); if (parentMode3 != null) { + * frameworkName3 = parentMode3.getName(); + * + * } } + */ + + } + /* + * String update = "UPDATE App_Act_Coe_Pal_Repository SET PLPARENTID = '" + + * maprightId + "' WHERE ID ='" + uuid + "'"; + */ + // int update2 = DBSql.update(update); + PALRepositoryPropertyDao propertyDao = new PALRepositoryPropertyDao(); + if (isResul) { + String name1 = frameworkName1.substring(frameworkName1.lastIndexOf(".") + 2).trim(); + // 设置三级架构名称 + bo.set("L3", name1); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L3", name1); + // 设置二级架构名称 + String sql2 = "SELECT PLPARENTID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + parentId1 + + "'"; + String prd2 = DBSql.getString(sql2); + String sqlp2 = "SELECT PLNAME,ID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + prd2 + "'"; + RowMap map2 = DBSql.getMap(sqlp2); + if (map2 != null) { + String uuid2 = map2.getString("ID"); + String plName2 = map2.getString("PLNAME"); + String name2 = plName2.substring(plName2.lastIndexOf(".") + 2).trim(); + bo.set("L2", name2); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L2", name2); + + // 设置一级架构名称 + String sql1 = "SELECT PLPARENTID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + uuid2 + + "'"; + String prd1 = DBSql.getString(sql1); + String sqlp1 = "SELECT PLNAME,ID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + prd1 + + "'"; + RowMap map1 = DBSql.getMap(sqlp1); + + if (map1 != null) { + String plName1 = map1.getString("PLNAME"); + String name3 = plName1.substring(plName1.lastIndexOf(".") + 2).trim(); + bo.set("L1", name3); + bo.set("LEVELS", "4"); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L1", name3); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '4' WHERE ID ='"+uuid+"' AND PLMETHODID != 'process.framework'"); + } else { + bo.set("L1", name1); + bo.set("L2", name2); + bo.set("L3", "/"); + bo.set("LEVELS", "3"); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '3' WHERE ID ='"+uuid+"' AND PLMETHODID != 'process.framework'"); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L3", "/"); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L1", name2); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L2", name1); + } + + } else { + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '2' WHERE ID ='"+uuid+"' AND PLMETHODID != 'process.framework'"); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L2", "/"); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L3", "/"); + bo.set("L1", name1); + bo.set("L2", "/"); + bo.set("L3", "/"); + bo.set("LEVELS", "2"); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L1", name1); + + } + + bo.set("RESULT", "成功"); + //System.err.println("============》"+palRepositoryModel.getName()); + } + } catch (Exception e) { + + bo.set("RESULT", "失败"); + //System.err.println("刷新架构异常文件======》"+palRepositoryModel.getName()); + // TODO: handle exception + }finally { + SDK.getBOAPI().createDataBO("BO_EU_PAL_RES_FRARMWORK", bo, UserContext.fromUID("admin")); + + } + + + + } + } + } + + public void resNo4() throws HttpException, IOException { + JSONObject jsonObject = new JSONObject(); + jsonObject.put("action", "read"); + String sql = "SELECT DATAID FROM BO_EU_OA_COUNT WHERE TITLE like '%关于发布《伊利集团展陈方案设计流程》的通知%' AND RESULT is null"; + List maps = DBSql.getMaps(sql); + System.err.println("====maps=====>"+maps.size()); + for (RowMap rowMap : maps) { + String dataId = rowMap.getString("DATAID"); + jsonObject.put("dataid", dataId); + jsonObject.put("status","1"); + String xmlStr = "\n" + + " " + + " " + + " " + + " " + + "" + + " " + + " " + + " " + + ""; + //HttpClientUtil httpClientUtil = new HttpClientUtil(); + //System.out.println("HttpClient 发送SOAP请求"); + HttpClient client = new HttpClient(); + int timeout = 10000; + String readurl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "readurl"); + PostMethod postMethod = new PostMethod(readurl); + // 设置连接超时 + client.getHttpConnectionManager().getParams().setConnectionTimeout(timeout); + // 设置读取时间超时 + client.getHttpConnectionManager().getParams().setSoTimeout(timeout); + // 然后把Soap请求数据添加到PostMethod中 + RequestEntity requestEntity = new StringRequestEntity(xmlStr, "text/xml", "UTF-8"); + // 设置请求体 + postMethod.setRequestEntity(requestEntity); + int status = client.executeMethod(postMethod); + + System.err.println("===更新已读结果=====》"+status); + // 打印请求状态码 + //System.out.println("status:" + status); + // 获取响应体输入流 + //System.out.println("xmlstr=================" + xmlStr); + InputStream is = postMethod.getResponseBodyAsStream(); + //System.out.println("s=================+s" + new String(ByteStreams.toByteArray(is))); + ////System.out.println("s==============>>>>>>>>>>>"+s); + + } + + + } + + + public void resNo3() { + int count = 0; + String sql = "SELECT DATAID FROM BO_ACT_DATAID WHERE TITLE like '%关于发布《伊利集团展陈方案设计流程》的通知%'"; + List maps = DBSql.getMaps(sql); + System.err.println("获取导的文件数量=====》"+maps.size()); + for (RowMap rowMap : maps) { + String dataId = rowMap.getString("DATAID"); + String sqls = "UPDATE BO_EU_OA_COUNT SET RESULT = '已推送' WHERE DATAID = '"+dataId+"'"; + count += DBSql.update(sqls); + } + System.out.println("总计同步数据======"+count); + } + + + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/NoRefreshJob2.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/NoRefreshJob2.java new file mode 100644 index 00000000..f4e40cb4 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/NoRefreshJob2.java @@ -0,0 +1,403 @@ +package com.awspaas.user.apps.app.job; + +import java.util.List; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory; +import com.actionsoft.apps.coe.pal.pal.repository.designer.manage.CoeDesignerAPIManager; +import com.actionsoft.apps.coe.pal.pal.repository.designer.model.BaseModel; +import com.actionsoft.apps.coe.pal.pal.repository.designer.no.epc.web.EpcGraphWeb; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +/** + * 批量执行编号格式刷 + * @author Administrator + * + */ +public class NoRefreshJob2 implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + + resNo3(); + + } + + + public void resNo3() { + int count = 0; + String sql = "SELECT DATAID FROM BO_ACT_DATAID WHERE TITLE like '%关于发布《伊利集团展陈方案设计流程》的通知%'"; + List maps = DBSql.getMaps(sql); + System.err.println("获取导的文件数量=====》"+maps.size()); + for (RowMap rowMap : maps) { + String dataId = rowMap.getString("DATAID"); + String sqls = "UPDATE BO_EU_OA_COUNT SET RESULT = '已推送' WHERE DATAID = '"+dataId+"'"; + count += DBSql.update(sqls); + } + System.out.println("总计同步数据======"+count); + } + + public void resNo2() { + int count = 0; + DBSql.update("DELETE FROM BO_EU_PAL_NOREFRESH"); + System.err.println("根据清单刷新编号开始=======》"); + String sql = "SELECT * FROM BO_EU_PAL_NOREFR"; + List maps = DBSql.getMaps(sql); + for (RowMap rowMap : maps) { + String sqls = "SELECT ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME = '" + rowMap.getString("PLNAME").trim() + + "'"; + String plId = DBSql.getString(sqls); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plId); + if(palRepositoryModel==null) { + continue; + } + + + String methodId = palRepositoryModel.getMethodId(); + if (("process.epc".equals(methodId) || "control.policy".equals(methodId) + || "process.flowchart".equals(methodId))) { + count++; + BO bo = new BO(); + try { + // 获取节点json + BaseModel defineModel = CoeDesignerAPIManager.getInstance() + .getDefinition(palRepositoryModel.getId(), 0); + if (defineModel == null) { + bo.set("RESULT", "模型为空"); + } else { + String define = defineModel.getDefinition(); + JSONObject definition = null; + JSONObject elements = null; + try { + + definition = JSONObject.parseObject(define); + elements = definition.getJSONObject("elements"); + } catch (Exception e) { + System.err.println("刷编号有问题的模型2========》"+palRepositoryModel.getName()); + // TODO: handle exception + } + + // 刷新后生成的编号 + EpcGraphWeb web = new EpcGraphWeb(UserContext.fromUID(palRepositoryModel.getCreateUser())); + String refreshDesignerNo = web.refreshDesignerNo(palRepositoryModel.getId()); + JSONObject refreshDesignerNoJson = JSONObject.parseObject(refreshDesignerNo); + JSONObject refreshDesignerNoJson2 = refreshDesignerNoJson.getJSONObject("data"); + JSONObject json = refreshDesignerNoJson2.getJSONObject("data"); + boolean istrd = false; + if (json.size() != 0) { + if (elements != null) { + for (String key : elements.keySet()) { + JSONObject shape1 = elements.getJSONObject(key); + String shapeName = shape1.getString("name"); + if ("item2".equals(shapeName) || "method_service_node".equals(shapeName) + || "method_approval_node3".equals(shapeName) + || "method_approval_node".equals(shapeName) + || "method_service_node4".equals(shapeName)||"decision".equals(shapeName)) { + + if("decision".equals(shapeName)) { + //System.err.println("有判定的模型===》"+palRepositoryModel.getName()+"===>"+shape1.getJSONArray("dataAttributes")); + } + JSONArray attributes = shape1.getJSONArray("dataAttributes") + .getJSONObject(0).getJSONArray("attributesJsonArray"); + if(attributes==null) { + attributes = shape1.getJSONArray("dataAttributes") + .getJSONObject(13).getJSONArray("attributesJsonArray"); + } + + for (int i = 0; i < attributes.size(); i++) { + if (attributes.getJSONObject(i).containsKey("id")) { + String getid = attributes.getJSONObject(i).getString("id"); + if (getid.equals("activity_number")) { + istrd = true; + + } + + } + } + + } + } + + } + // 把编号添加到对应的节点 + if (elements != null) { + for (String key : elements.keySet()) { + JSONObject shape1 = elements.getJSONObject(key); + String shapeName = shape1.getString("name"); + if ("item2".equals(shapeName) || "method_service_node".equals(shapeName) + || "method_approval_node3".equals(shapeName) + || "method_approval_node".equals(shapeName) + || "method_service_node4".equals(shapeName)||"decision".equals(shapeName)) { + // String shapeText = shape1.getString("text"); + JSONArray dataAttributes = shape1.getJSONArray("dataAttributes"); + // 判断是否有序号属性 + if (istrd) { + if (!dataAttributes.isEmpty() && dataAttributes.size() > 0) { + for (Object attribute : dataAttributes) { + JSONObject obj = (JSONObject) attribute; + if (obj.containsKey("attributesJsonArray")) { + JSONArray attributesJsonArray = obj + .getJSONArray("attributesJsonArray"); + for (int i = 0; i < attributesJsonArray.size(); i++) { + if (attributesJsonArray.getJSONObject(i) + .containsKey("id")) { + String getid = attributesJsonArray.getJSONObject(i) + .getString("id"); + if (getid.equals("activity_number")) { + attributesJsonArray.getJSONObject(i).replace("value", json.getString(key)); + } + + } + } + + } + } + } + + } else { + JSONArray attributet = shape1.getJSONArray("dataAttributes") + .getJSONObject(0).getJSONArray("attributesJsonArray"); + if(attributet==null) { + attributet = shape1.getJSONArray("dataAttributes") + .getJSONObject(13).getJSONArray("attributesJsonArray"); + } + JSONObject file_numberJson = new JSONObject(); + file_numberJson.put("ref", ""); + file_numberJson.put("readonly", false); + file_numberJson.put("scope", "*"); + file_numberJson.put("name", "序号"); + file_numberJson.put("id", "activity_number"); + file_numberJson.put("type", "string"); + file_numberJson.put("value", json.getString(key)); + file_numberJson.put("groupPath", "baseAttribute"); + file_numberJson.put("key", "activity_number"); + attributet.add(file_numberJson); + + } + } + } + // 保存文件 + defineModel.setDefinition(definition.toString()); + CoeDesignerAPIManager.getInstance().storeDefinition(defineModel);// Ado操作 + } + + bo.set("PLNAME", palRepositoryModel.getName()); + bo.set("PLID", palRepositoryModel.getId()); + PALRepositoryModel prmodel = PALRepositoryCache.getCache() + .get(palRepositoryModel.getParentId()); + if (prmodel != null) { + bo.set("FRAMEWORK", prmodel.getName()); + } + bo.set("VERSION", palRepositoryModel.getVersion()); + if (palRepositoryModel.isPublish()) { + bo.set("ISPUBLISH", "已发布"); + } else { + bo.set("ISPUBLISH", "未发布"); + } + if (methodId.contains("data")) { + bo.set("TYPE", "表单"); + } else if (methodId.contains("control.policy")) { + bo.set("TYPE", "制度"); + + } else if (methodId.contains("process")) { + bo.set("TYPE", "流程"); + } + // bo.set("RESULTSTR", refreshDesignerNo); + if (refreshDesignerNo != null && refreshDesignerNo.contains("ok")) { + bo.set("RESULT", "刷新成功"); + } else { + bo.set("RESULT", "刷新失败"); + } + SDK.getBOAPI().createDataBO("BO_EU_PAL_NOREFRESH", bo, UserContext.fromUID("admin")); + + }else { + System.err.println("刷编号有问题的模型1========》"+palRepositoryModel.getName()); + } + + } + } catch (Exception e) { + e.printStackTrace(); + // TODO: handle exception + } + + + + } + } + System.err.println("=====匹配到的模型数量为======="+count); + + } + + // + public void resNo1() { + List palRepositoryModels = CoeProcessLevelDaoFacotory.createCoeProcessLevel() + .getAllCoeProcessLevelByWsId("7d3ca852-a0bd-42e6-80b1-3dcea6f55083"); + + for (PALRepositoryModel palRepositoryModel : palRepositoryModels) { + String methodId = palRepositoryModel.getMethodId(); + if (("process.epc".equals(methodId) || "control.policy".equals(methodId) + || "process.flowchart".equals(methodId))) { + if ("process.flowchart".equals(methodId)) { + + BO bo = new BO(); + try { + // 获取节点json + BaseModel defineModel = CoeDesignerAPIManager.getInstance() + .getDefinition(palRepositoryModel.getId(), 0); + if (defineModel == null) { + bo.set("RESULT", "模型为空"); + } else { + String define = defineModel.getDefinition(); + JSONObject definition = null; + JSONObject elements = null; + try { + definition = JSONObject.parseObject(define); + elements = definition.getJSONObject("elements"); + } catch (Exception e) { + // TODO: handle exception + } + + // 刷新后生成的编号 + EpcGraphWeb web = new EpcGraphWeb(UserContext.fromUID(palRepositoryModel.getCreateUser())); + String refreshDesignerNo = web.refreshDesignerNo(palRepositoryModel.getId()); + JSONObject refreshDesignerNoJson = JSONObject.parseObject(refreshDesignerNo); + JSONObject refreshDesignerNoJson2 = refreshDesignerNoJson.getJSONObject("data"); + JSONObject json = refreshDesignerNoJson2.getJSONObject("data"); + + boolean istrd = false; + if (json.size() != 0) { + if (elements != null) { + for (String key : elements.keySet()) { + JSONObject shape1 = elements.getJSONObject(key); + String shapeName = shape1.getString("name"); + if ("item2".equals(shapeName)|| "method_service_node".equals(shapeName)|| "method_approval_node3".equals(shapeName)|| "method_approval_node".equals(shapeName)|| "method_service_node4".equals(shapeName)) { + JSONArray attributes = shape1.getJSONArray("dataAttributes") + .getJSONObject(0).getJSONArray("attributesJsonArray"); + + for (int i = 0; i < attributes.size(); i++) { + if (attributes.getJSONObject(i).containsKey("id")) { + String getid = attributes.getJSONObject(i).getString("id"); + if (getid.equals("activity_number")) { + istrd = true; + + } + + } + } + + } + } + + } + // 把编号添加到对应的节点 + if (elements != null) { + for (String key : elements.keySet()) { + JSONObject shape1 = elements.getJSONObject(key); + String shapeName = shape1.getString("name"); + if ("item2".equals(shapeName)|| "method_service_node".equals(shapeName)|| "method_approval_node3".equals(shapeName)|| "method_approval_node".equals(shapeName)|| "method_service_node4".equals(shapeName)) { + // String shapeText = shape1.getString("text"); + JSONArray dataAttributes = shape1.getJSONArray("dataAttributes"); + JSONArray attributet = shape1.getJSONArray("dataAttributes").getJSONObject(0) + .getJSONArray("attributesJsonArray"); + // 判断是否有序号属性 + if (istrd) { + if (!dataAttributes.isEmpty() && dataAttributes.size() > 0) { + for (Object attribute : dataAttributes) { + JSONObject obj = (JSONObject) attribute; + if (obj.containsKey("attributesJsonArray")) { + JSONArray attributesJsonArray = obj + .getJSONArray("attributesJsonArray"); + for (int i = 0; i < attributesJsonArray.size(); i++) { + if (attributesJsonArray.getJSONObject(i) + .containsKey("id")) { + String getid = attributesJsonArray.getJSONObject(i) + .getString("id"); + if (getid.equals("activity_number")) { + attributesJsonArray.getJSONObject(i) + .replace("value", json.getString(key)); + } + + } + } + + } + } + } + + }else { + JSONObject file_numberJson = new JSONObject(); + file_numberJson.put("ref", ""); + file_numberJson.put("readonly", false); + file_numberJson.put("scope", "*"); + file_numberJson.put("name", "序号"); + file_numberJson.put("id", "activity_number"); + file_numberJson.put("type", "string"); + file_numberJson.put("value", json.getString(key)); + file_numberJson.put("groupPath", "baseAttribute"); + file_numberJson.put("key", "activity_number"); + attributet.add(file_numberJson); + + } + } + } + // 保存文件 + defineModel.setDefinition(definition.toString()); + CoeDesignerAPIManager.getInstance().storeDefinition(defineModel);// Ado操作 + } + + bo.set("PLNAME", palRepositoryModel.getName()); + bo.set("PLID", palRepositoryModel.getId()); + PALRepositoryModel prmodel = PALRepositoryCache.getCache() + .get(palRepositoryModel.getParentId()); + if (prmodel != null) { + bo.set("FRAMEWORK", prmodel.getName()); + } + bo.set("VERSION", palRepositoryModel.getVersion()); + if (palRepositoryModel.isPublish()) { + bo.set("ISPUBLISH", "已发布"); + } else { + bo.set("ISPUBLISH", "未发布"); + } + if (methodId.contains("data")) { + bo.set("TYPE", "表单"); + } else if (methodId.contains("control.policy")) { + bo.set("TYPE", "制度"); + + } else if (methodId.contains("process")) { + bo.set("TYPE", "流程"); + } + // bo.set("RESULTSTR", refreshDesignerNo); + if (refreshDesignerNo != null && refreshDesignerNo.contains("ok")) { + bo.set("RESULT", "刷新成功"); + } else { + bo.set("RESULT", "刷新失败"); + } + + + SDK.getBOAPI().createDataBO("BO_EU_PAL_NOREFRESH", bo, UserContext.fromUID("admin")); + + }else { + System.err.println("刷编号有问题的模型========》"+palRepositoryModel.getName()); + } + + } + } catch (Exception e) { + // TODO: handle exception + } + + } + + } + } + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/NoRefreshJob3.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/NoRefreshJob3.java new file mode 100644 index 00000000..f0ad42a7 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/NoRefreshJob3.java @@ -0,0 +1,389 @@ +package com.awspaas.user.apps.app.job; + +import java.util.List; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory; +import com.actionsoft.apps.coe.pal.pal.repository.designer.manage.CoeDesignerAPIManager; +import com.actionsoft.apps.coe.pal.pal.repository.designer.model.BaseModel; +import com.actionsoft.apps.coe.pal.pal.repository.designer.no.epc.web.EpcGraphWeb; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +/** + * 批量执行编号格式刷 + * @author Administrator + * + */ +public class NoRefreshJob3 implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + + resNo2(); + + } + + + public void resNo2() { + int count = 0; + DBSql.update("DELETE FROM BO_EU_PAL_NOREFRESH"); + System.err.println("根据清单刷新编号开始=======》"); + String sql = "SELECT * FROM BO_EU_PAL_NOREFR"; + List maps = DBSql.getMaps(sql); + for (RowMap rowMap : maps) { + String sqls = "SELECT ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME = '" + rowMap.getString("PLNAME").trim() + + "'"; + String plId = DBSql.getString(sqls); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plId); + if(palRepositoryModel==null) { + continue; + } + + String methodId = palRepositoryModel.getMethodId(); + if (("process.epc".equals(methodId) || "control.policy".equals(methodId) + || "process.flowchart".equals(methodId))) { + count++; + BO bo = new BO(); + try { + // 获取节点json + BaseModel defineModel = CoeDesignerAPIManager.getInstance() + .getDefinition(palRepositoryModel.getId(), 0); + if (defineModel == null) { + bo.set("RESULT", "模型为空"); + } else { + String define = defineModel.getDefinition(); + JSONObject definition = null; + JSONObject elements = null; + try { + + definition = JSONObject.parseObject(define); + elements = definition.getJSONObject("elements"); + } catch (Exception e) { + System.err.println("刷编号有问题的模型2========》"+palRepositoryModel.getName()); + // TODO: handle exception + } + + // 刷新后生成的编号 + EpcGraphWeb web = new EpcGraphWeb(UserContext.fromUID(palRepositoryModel.getCreateUser())); + String refreshDesignerNo = web.refreshDesignerNo(palRepositoryModel.getId()); + JSONObject refreshDesignerNoJson = JSONObject.parseObject(refreshDesignerNo); + JSONObject refreshDesignerNoJson2 = refreshDesignerNoJson.getJSONObject("data"); + JSONObject json = refreshDesignerNoJson2.getJSONObject("data"); + boolean istrd = false; + if (json.size() != 0) { + if (elements != null) { + for (String key : elements.keySet()) { + JSONObject shape1 = elements.getJSONObject(key); + String shapeName = shape1.getString("name"); + if ("item2".equals(shapeName) || "method_service_node".equals(shapeName) + || "method_approval_node3".equals(shapeName) + || "method_approval_node".equals(shapeName) + || "method_service_node4".equals(shapeName)||"decision".equals(shapeName)) { + + if("decision".equals(shapeName)) { + //System.err.println("有判定的模型===》"+palRepositoryModel.getName()+"===>"+shape1.getJSONArray("dataAttributes")); + } + JSONArray attributes = shape1.getJSONArray("dataAttributes") + .getJSONObject(0).getJSONArray("attributesJsonArray"); + if(attributes==null) { + attributes = shape1.getJSONArray("dataAttributes") + .getJSONObject(13).getJSONArray("attributesJsonArray"); + } + + for (int i = 0; i < attributes.size(); i++) { + if (attributes.getJSONObject(i).containsKey("id")) { + String getid = attributes.getJSONObject(i).getString("id"); + if (getid.equals("activity_number")) { + istrd = true; + + } + + } + } + + } + } + + } + // 把编号添加到对应的节点 + if (elements != null) { + for (String key : elements.keySet()) { + JSONObject shape1 = elements.getJSONObject(key); + String shapeName = shape1.getString("name"); + if ("item2".equals(shapeName) || "method_service_node".equals(shapeName) + || "method_approval_node3".equals(shapeName) + || "method_approval_node".equals(shapeName) + || "method_service_node4".equals(shapeName)||"decision".equals(shapeName)) { + // String shapeText = shape1.getString("text"); + JSONArray dataAttributes = shape1.getJSONArray("dataAttributes"); + // 判断是否有序号属性 + if (istrd) { + if (!dataAttributes.isEmpty() && dataAttributes.size() > 0) { + for (Object attribute : dataAttributes) { + JSONObject obj = (JSONObject) attribute; + if (obj.containsKey("attributesJsonArray")) { + JSONArray attributesJsonArray = obj + .getJSONArray("attributesJsonArray"); + for (int i = 0; i < attributesJsonArray.size(); i++) { + if (attributesJsonArray.getJSONObject(i) + .containsKey("id")) { + String getid = attributesJsonArray.getJSONObject(i) + .getString("id"); + if (getid.equals("activity_number")) { + attributesJsonArray.getJSONObject(i).replace("value", json.getString(key)); + } + + } + } + + } + } + } + + } else { + JSONArray attributet = shape1.getJSONArray("dataAttributes") + .getJSONObject(0).getJSONArray("attributesJsonArray"); + if(attributet==null) { + attributet = shape1.getJSONArray("dataAttributes") + .getJSONObject(13).getJSONArray("attributesJsonArray"); + } + JSONObject file_numberJson = new JSONObject(); + file_numberJson.put("ref", ""); + file_numberJson.put("readonly", false); + file_numberJson.put("scope", "*"); + file_numberJson.put("name", "序号"); + file_numberJson.put("id", "activity_number"); + file_numberJson.put("type", "string"); + file_numberJson.put("value", json.getString(key)); + file_numberJson.put("groupPath", "baseAttribute"); + file_numberJson.put("key", "activity_number"); + attributet.add(file_numberJson); + + } + } + } + // 保存文件 + defineModel.setDefinition(definition.toString()); + CoeDesignerAPIManager.getInstance().storeDefinition(defineModel);// Ado操作 + } + + bo.set("PLNAME", palRepositoryModel.getName()); + bo.set("PLID", palRepositoryModel.getId()); + PALRepositoryModel prmodel = PALRepositoryCache.getCache() + .get(palRepositoryModel.getParentId()); + if (prmodel != null) { + bo.set("FRAMEWORK", prmodel.getName()); + } + bo.set("VERSION", palRepositoryModel.getVersion()); + if (palRepositoryModel.isPublish()) { + bo.set("ISPUBLISH", "已发布"); + } else { + bo.set("ISPUBLISH", "未发布"); + } + if (methodId.contains("data")) { + bo.set("TYPE", "表单"); + } else if (methodId.contains("control.policy")) { + bo.set("TYPE", "制度"); + + } else if (methodId.contains("process")) { + bo.set("TYPE", "流程"); + } + // bo.set("RESULTSTR", refreshDesignerNo); + if (refreshDesignerNo != null && refreshDesignerNo.contains("ok")) { + bo.set("RESULT", "刷新成功"); + } else { + bo.set("RESULT", "刷新失败"); + } + SDK.getBOAPI().createDataBO("BO_EU_PAL_NOREFRESH", bo, UserContext.fromUID("admin")); + + }else { + System.err.println("刷编号有问题的模型1========》"+palRepositoryModel.getName()); + } + + } + } catch (Exception e) { + e.printStackTrace(); + // TODO: handle exception + } + + + + } + } + System.err.println("=====匹配到的模型数量为======="+count); + + } + + // + public void resNo1() { + List palRepositoryModels = CoeProcessLevelDaoFacotory.createCoeProcessLevel() + .getAllCoeProcessLevelByWsId("7d3ca852-a0bd-42e6-80b1-3dcea6f55083"); + + for (PALRepositoryModel palRepositoryModel : palRepositoryModels) { + String methodId = palRepositoryModel.getMethodId(); + if (("process.epc".equals(methodId) || "control.policy".equals(methodId) + || "process.flowchart".equals(methodId))) { + if ("process.flowchart".equals(methodId)) { + + BO bo = new BO(); + try { + // 获取节点json + BaseModel defineModel = CoeDesignerAPIManager.getInstance() + .getDefinition(palRepositoryModel.getId(), 0); + if (defineModel == null) { + bo.set("RESULT", "模型为空"); + } else { + String define = defineModel.getDefinition(); + JSONObject definition = null; + JSONObject elements = null; + try { + definition = JSONObject.parseObject(define); + elements = definition.getJSONObject("elements"); + } catch (Exception e) { + // TODO: handle exception + } + + // 刷新后生成的编号 + EpcGraphWeb web = new EpcGraphWeb(UserContext.fromUID(palRepositoryModel.getCreateUser())); + String refreshDesignerNo = web.refreshDesignerNo(palRepositoryModel.getId()); + JSONObject refreshDesignerNoJson = JSONObject.parseObject(refreshDesignerNo); + JSONObject refreshDesignerNoJson2 = refreshDesignerNoJson.getJSONObject("data"); + JSONObject json = refreshDesignerNoJson2.getJSONObject("data"); + + boolean istrd = false; + if (json.size() != 0) { + if (elements != null) { + for (String key : elements.keySet()) { + JSONObject shape1 = elements.getJSONObject(key); + String shapeName = shape1.getString("name"); + if ("item2".equals(shapeName)|| "method_service_node".equals(shapeName)|| "method_approval_node3".equals(shapeName)|| "method_approval_node".equals(shapeName)|| "method_service_node4".equals(shapeName)) { + JSONArray attributes = shape1.getJSONArray("dataAttributes") + .getJSONObject(0).getJSONArray("attributesJsonArray"); + + for (int i = 0; i < attributes.size(); i++) { + if (attributes.getJSONObject(i).containsKey("id")) { + String getid = attributes.getJSONObject(i).getString("id"); + if (getid.equals("activity_number")) { + istrd = true; + + } + + } + } + + } + } + + } + // 把编号添加到对应的节点 + if (elements != null) { + for (String key : elements.keySet()) { + JSONObject shape1 = elements.getJSONObject(key); + String shapeName = shape1.getString("name"); + if ("item2".equals(shapeName)|| "method_service_node".equals(shapeName)|| "method_approval_node3".equals(shapeName)|| "method_approval_node".equals(shapeName)|| "method_service_node4".equals(shapeName)) { + // String shapeText = shape1.getString("text"); + JSONArray dataAttributes = shape1.getJSONArray("dataAttributes"); + JSONArray attributet = shape1.getJSONArray("dataAttributes").getJSONObject(0) + .getJSONArray("attributesJsonArray"); + // 判断是否有序号属性 + if (istrd) { + if (!dataAttributes.isEmpty() && dataAttributes.size() > 0) { + for (Object attribute : dataAttributes) { + JSONObject obj = (JSONObject) attribute; + if (obj.containsKey("attributesJsonArray")) { + JSONArray attributesJsonArray = obj + .getJSONArray("attributesJsonArray"); + for (int i = 0; i < attributesJsonArray.size(); i++) { + if (attributesJsonArray.getJSONObject(i) + .containsKey("id")) { + String getid = attributesJsonArray.getJSONObject(i) + .getString("id"); + if (getid.equals("activity_number")) { + attributesJsonArray.getJSONObject(i) + .replace("value", json.getString(key)); + } + + } + } + + } + } + } + + }else { + JSONObject file_numberJson = new JSONObject(); + file_numberJson.put("ref", ""); + file_numberJson.put("readonly", false); + file_numberJson.put("scope", "*"); + file_numberJson.put("name", "序号"); + file_numberJson.put("id", "activity_number"); + file_numberJson.put("type", "string"); + file_numberJson.put("value", json.getString(key)); + file_numberJson.put("groupPath", "baseAttribute"); + file_numberJson.put("key", "activity_number"); + attributet.add(file_numberJson); + + } + } + } + // 保存文件 + defineModel.setDefinition(definition.toString()); + CoeDesignerAPIManager.getInstance().storeDefinition(defineModel);// Ado操作 + } + + bo.set("PLNAME", palRepositoryModel.getName()); + bo.set("PLID", palRepositoryModel.getId()); + PALRepositoryModel prmodel = PALRepositoryCache.getCache() + .get(palRepositoryModel.getParentId()); + if (prmodel != null) { + bo.set("FRAMEWORK", prmodel.getName()); + } + bo.set("VERSION", palRepositoryModel.getVersion()); + if (palRepositoryModel.isPublish()) { + bo.set("ISPUBLISH", "已发布"); + } else { + bo.set("ISPUBLISH", "未发布"); + } + if (methodId.contains("data")) { + bo.set("TYPE", "表单"); + } else if (methodId.contains("control.policy")) { + bo.set("TYPE", "制度"); + + } else if (methodId.contains("process")) { + bo.set("TYPE", "流程"); + } + // bo.set("RESULTSTR", refreshDesignerNo); + if (refreshDesignerNo != null && refreshDesignerNo.contains("ok")) { + bo.set("RESULT", "刷新成功"); + } else { + bo.set("RESULT", "刷新失败"); + } + + + SDK.getBOAPI().createDataBO("BO_EU_PAL_NOREFRESH", bo, UserContext.fromUID("admin")); + + }else { + System.err.println("刷编号有问题的模型========》"+palRepositoryModel.getName()); + } + + } + } catch (Exception e) { + // TODO: handle exception + } + + } + + } + } + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/OAReadResultJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/OAReadResultJob.java new file mode 100644 index 00000000..909be077 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/OAReadResultJob.java @@ -0,0 +1,100 @@ +package com.awspaas.user.apps.app.job; + +import java.io.IOException; +import java.io.InputStream; +import java.util.List; + +import org.apache.commons.httpclient.HttpClient; +import org.apache.commons.httpclient.methods.PostMethod; +import org.apache.commons.httpclient.methods.RequestEntity; +import org.apache.commons.httpclient.methods.StringRequestEntity; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory; +import com.actionsoft.apps.coe.pal.pal.repository.dao.PALRepositoryPropertyDao; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONObject; + +import jodd.http.HttpException; + +/** + * 批量刷新OA未读待阅 + * @author Administrator + * + */ +public class OAReadResultJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + + try { + resNo4(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + + } + public void resNo4() throws HttpException, IOException { + JSONObject jsonObject = new JSONObject(); + jsonObject.put("action", "read"); + String sql = "SELECT DATAID FROM BO_EU_OA_COUNT WHERE TITLE like '%关于发布《伊利集团展陈方案设计流程》的通知%' AND RESULT is null"; + List maps = DBSql.getMaps(sql); + System.err.println("====maps=====>"+maps.size()); + for (RowMap rowMap : maps) { + String dataId = rowMap.getString("DATAID"); + jsonObject.put("dataid", dataId); + jsonObject.put("status","1"); + String xmlStr = "\n" + + " " + + " " + + " " + + " " + + "" + + " " + + " " + + " " + + ""; + //HttpClientUtil httpClientUtil = new HttpClientUtil(); + //System.out.println("HttpClient 发送SOAP请求"); + HttpClient client = new HttpClient(); + int timeout = 10000; + String readurl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "readurl"); + PostMethod postMethod = new PostMethod(readurl); + // 设置连接超时 + client.getHttpConnectionManager().getParams().setConnectionTimeout(timeout); + // 设置读取时间超时 + client.getHttpConnectionManager().getParams().setSoTimeout(timeout); + // 然后把Soap请求数据添加到PostMethod中 + RequestEntity requestEntity = new StringRequestEntity(xmlStr, "text/xml", "UTF-8"); + // 设置请求体 + postMethod.setRequestEntity(requestEntity); + int status = client.executeMethod(postMethod); + + System.err.println("===更新已读结果=====》"+status); + // 打印请求状态码 + //System.out.println("status:" + status); + // 获取响应体输入流 + //System.out.println("xmlstr=================" + xmlStr); + InputStream is = postMethod.getResponseBodyAsStream(); + //System.out.println("s=================+s" + new String(ByteStreams.toByteArray(is))); + ////System.out.println("s==============>>>>>>>>>>>"+s); + + } + + + } + + + + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/PALUtilJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/PALUtilJob.java new file mode 100644 index 00000000..b5c01a5d --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/PALUtilJob.java @@ -0,0 +1,95 @@ +package com.awspaas.user.apps.app.job; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.List; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.alibaba.fastjson.JSONObject; +/** + * 模型附件去重 + * @author Administrator + * + */ +public class PALUtilJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + + try { + setPalFilePublishDate(); + } catch (ParseException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + //更新看板文件底表发布日期 + public void setPalFilePublishDate() throws ParseException { + int num = 0; + String sql = "SELECT ID,PLNAME FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = 1 AND (PLMETHODID='process.epc' OR PLMETHODID='control.policy' OR PLMETHODID='process.flowchart')"; + List maps = DBSql.getMaps(sql); + + for (RowMap rowMap : maps) { + String plId = rowMap.getString("ID"); + String plName = rowMap.getString("ID"); + String pubishDate = getArrtValue(plId, "effective_date","data"); + System.err.println("文件名称===>"+plName+"===发布日期==>"+pubishDate); + if(UtilString.isEmpty(pubishDate)||pubishDate.contains("下")) { + pubishDate = getArrtValue(plId, "Drafted_and_revised_date","data"); + } + if(UtilString.isNotEmpty(pubishDate)) { + try { + if(pubishDate.contains("年")) { + Date date = new SimpleDateFormat("yyyy年MM月dd日").parse(pubishDate); + String time = new SimpleDateFormat("yyyy-MM-dd").format(date); + num+=DBSql.update("UPDATE BO_EU_PAL_FILE1 SET PUBDATETIME = '"+time+"' WHERE FILEID = '"+plId+"'"); + }else { + if(pubishDate.length()>10) { + pubishDate = pubishDate.substring(0,10); + } + num+=DBSql.update("UPDATE BO_EU_PAL_FILE1 SET PUBDATETIME = '"+pubishDate+"' WHERE FILEID = '"+plId+"'"); + } + } catch (Exception e) { + // TODO: handle exception + } + } + + } + System.err.println("本次刷新文件底表共同步数据=======>"+num); + + } + + // 获取属性 + public String getArrtValue(String plId, String ArrtKey, String type) { + String arrtValue = ""; + try { + String sql = "select PROPERTYVALUE from APP_ACT_COE_PAL_PROP where PLID = '" + plId + "' and PROPERTYID = '" + + ArrtKey + "'"; + String relatFileJson = DBSql.getString(sql); + if (UtilString.isNotEmpty(relatFileJson)) { + if ("json".equals(type)) { + JSONObject parseObject = JSONObject.parseObject(relatFileJson); + String fileNames = parseObject.getString("relationShapeText"); + if (UtilString.isNotEmpty(fileNames)) { + arrtValue = fileNames; + } + } else { + arrtValue = relatFileJson; + } + + } + } catch (Exception e) { + // TODO: handle exception + } + return arrtValue; + + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/PAlOnlinedocFileConvertJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/PAlOnlinedocFileConvertJob.java new file mode 100644 index 00000000..47cefad7 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/PAlOnlinedocFileConvertJob.java @@ -0,0 +1,245 @@ +package com.awspaas.user.apps.app.job; + +import java.io.File; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.output.OutputAPIManager; +import com.actionsoft.apps.coe.pal.pal.output.dao.OutputTask; +import com.actionsoft.apps.coe.pal.pal.output.extend.OutputAppManager; +import com.actionsoft.apps.coe.pal.pal.output.extend.OutputAppProfile; +import com.actionsoft.apps.coe.pal.pal.output.model.OutputTaskModel; +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.apps.resource.AppContext; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.SSOUtil; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.server.fs.DCContext; +import com.actionsoft.bpms.server.fs.dc.DCProfileManager; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilFile; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.actionsoft.sdk.local.api.AppAPI; +/** + * 文件批量转换 + * @author Administrator + * + */ +public class PAlOnlinedocFileConvertJob implements IJob { + private UserContext _uc; + + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + System.err.println("文件转换开始====>"); + // String sql = "select * from app_act_coe_pal_publish_list "; + String sql = "select ID,PLNAME from App_Act_Coe_Pal_Repository where ISPUBLISH ='1'"; + SSOUtil ssoUtil = new SSOUtil(); + String portalUrl = SDK.getPortalAPI().getPortalUrl(); + String session = ssoUtil.registerClientSessionNoPassword("admin", "cn", portalUrl, "pc"); + UserContext fromSessionId = UserContext.fromSessionId(session); + List maps = DBSql.getMaps(sql); + // ExecutorService service = Executors.newFixedThreadPool(4); + for (RowMap rowMap : maps) { + String plId = rowMap.getString("ID"); + String palname = rowMap.getString("PLNAME"); + + String sqls = "select taskId from (select * from BO_ACT_COE_PUBLISH_N where PUBLISHFILEID = '" + plId + + "' order by CREATEDATE desc) where rownum = 1"; + String taskId = DBSql.getString(sqls); + String sqld = "SELECT BINDID FROM BO_ACT_COE_PUBLISH_N WHERE TASKID = '" + taskId + "'"; + String bindid = DBSql.getString(sqld); + if (!"7964be16-dc8b-41b1-a10a-bc8a84885074".equals(bindid)) { + try { + if(UtilString.isNotEmpty(taskId)&&!taskId.contains("err")) { + outputReportPreview(fromSessionId, session, taskId, plId); + } + } catch (Exception e) { + // TODO: handle exception + } + } + + /* + * service.execute(new Runnable() { + * + * @Override public void run() { } }); + */ + + } + System.err.println("文件转换结束====>"); + } + + public void outputReportPreview(UserContext _uc, String session, String taskId, String palId) { + + String sqlt = "SELECT * FROM BO_EU_PAL_OUTPUTREPORT WHERE PLID = '" + palId + "' AND RESULT = '手册转换成功!'"; // + // String sqlt = "SELECT * FROM BO_EU_PAL_OUTPUTREPORT WHERE PLID = '" + palId + + // "'"; + RowMap maps = DBSql.getMap(sqlt); + if (maps != null) { + return; + } + + BO bo = new BO(); + String sql = "select * from App_Act_Coe_Pal_Repository where id = '" + palId + "' "; + RowMap map = DBSql.getMap(sql); + if (map != null) { + String ispulish = map.getString("ISPUBLISH"); + String palname = map.getString("PLNAME"); + String methodid = map.getString("PLMETHODID"); + String plparid = map.getString("PLPARENTID"); + if ("1".equals(ispulish)) { + // if ("control.policy".equals(methodid)) { + if ("control.policy".equals(methodid) || "data.form".equals(methodid) || "process.epc".equals(methodid) + || "process.flowchart".equals(methodid)) { + try { + bo.set("PLNAME", map.getString("PLNAME")); + bo.set("PLID", palId); + bo.set("TASKID", taskId); + PALRepositoryModel prmodel = PALRepositoryCache.getCache().get(plparid); + if (prmodel != null) { + bo.set("FRNAME", prmodel.getName()); + } + bo.set("PLVERSION", map.getString("PLVER")); + bo.set("PLMETHODID", map.getString("PLMETHODID")); + OutputTaskModel model = new OutputTask().getTaskReportById(taskId); + ResponseObject result = ResponseObject.newOkResponse(); + if (model != null) { + UtilFile file = OutputAPIManager.getInstance().getFilePath(model.getWsId(), taskId, + model.getProfileId()); + if (file.exists()) { + File[] fileList = file.listFiles(); + if (fileList.length > 0) { + File docFile = null; + for (File file2 : fileList) { + if (file2.isFile() && "doc".equals( + (file2.getName().substring(file2.getName().lastIndexOf(".") + 1)))) { + docFile = file2; + break; + } + } + if (docFile == null) { + bo.set("RESULT", "模型没有手册文件_1!"); + result = ResponseObject.newErrResponse("没有手册文件!"); + } + if (SDK.getAppAPI().isActive("com.actionsoft.apps.addons.onlinedoc")) { + OutputAppProfile appFile = OutputAppManager.getProfile(model.getProfileId()); + String sourceAppId = appFile.getAppContext().getId(); + String filename = docFile.getName(); + System.err.println("开始转换===>" + filename + "===>" + sourceAppId); + DCContext sourceDc = new DCContext(_uc, + DCProfileManager.getDCProfile(sourceAppId, "output"), sourceAppId, + model.getWsId(), taskId, filename); + /* + * Map aslpParams = new HashMap(); + * + * aslpParams.put("sid", _uc.getSessionId()); aslpParams.put("fileNameOriginal", + * filename); aslpParams.put("sourceDc", sourceDc); + * aslpParams.put("isShowDefaultToolbar", true); aslpParams.put("isShowBackbtn", + * false); aslpParams.put("isEncrypt", true); aslpParams.put("isCopy", true); + * aslpParams.put("isPrint", true); aslpParams.put("isDownload", true); AppAPI + * appAPI = SDK.getAppAPI(); ResponseObject responseObject = + * appAPI.callASLP(appAPI.getAppContext(sourceAppId), + * "aslp://com.actionsoft.apps.addons.onlinedoc/filePreview", aslpParams); + */ + + // 调用App + // aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.addons.onlinedoc/fileConvert"; + // 参数定义列表 + HashMap params = new HashMap(); + // PDF转图片处理选项。- 0代表只在需要时做转换;- 1代表打开即检查是否已转换成图片,如未处理,强制转换。默认0,非必填 + params.put("isPDFCovertPNG", "0"); + // 原文件DC,必填 + params.put("sourceDc", sourceDc); + // 文档是否允许复制。true为允许复制,转换结果为PDF格式文件;false为不可复制,转换结果为PNG格式文件(注意参数值为false时转换时间稍长),必填 + params.put("isCopy", true); + // sessionid,必填 + params.put("sid", session); + AppAPI appAPI = SDK.getAppAPI(); + // 调用转换服务.在预览之前提前进行转换,预览时直接打开转换后的文件 + String sourceId = "com.actionsoft.apps.coe.pal.publisher"; + AppContext appContext = appAPI.getAppContext(sourceId); + ResponseObject responseObject = appAPI.callASLP(appContext, aslp, params); + System.err.println("转换结果=======>" + responseObject); + if (responseObject != null) { + String results = responseObject.toString(); + if (UtilString.isNotEmpty(results)) { + if (results.contains("200")) { + bo.set("RESULT", "手册转换成功!"); + Map aslpParams = new HashMap(); + aslpParams.put("sid", _uc.getSessionId()); + aslpParams.put("fileNameOriginal", filename); + aslpParams.put("sourceDc", sourceDc); + aslpParams.put("isShowDefaultToolbar", true); + aslpParams.put("isShowBackbtn", false); + aslpParams.put("isEncrypt", true); + aslpParams.put("isCopy", true); + aslpParams.put("isPrint", true); + aslpParams.put("isDownload", true); + ResponseObject responseObjects = appAPI.callASLP( + appAPI.getAppContext(sourceAppId), + "aslp://com.actionsoft.apps.addons.onlinedoc/filePreview", + aslpParams); + + if (responseObjects != null) { + if (responseObjects.isOk()) { + String url = responseObjects.get("url").toString(); + bo.set("FILEURL", url.substring(url.indexOf("&cmd"))); + result = ResponseObject.newErrResponse("模型转换成功!"); + } else { + bo.set("FILEURL", "链接获取失败!"); + result = ResponseObject.newErrResponse("文档转换服务不可用,请联系管理员"); + } + } + } else { + bo.set("RESULT", "文件转换失败_1!"); + result = ResponseObject.newErrResponse("文档转换服务不可用,请联系管理员"); + } + } else { + bo.set("RESULT", "文件转换失败_2!"); + } + } else { + bo.set("RESULT", "文件转换失败_3!"); + } + + } else { + bo.set("RESULT", "文档转换服务不可用!"); + result = ResponseObject.newErrResponse("文档转换服务不可用,请联系管理员"); + } + } + } else { + bo.set("RESULT", "模型没有手册文件_2!"); + result = ResponseObject.newErrResponse("没有手册文件!"); + } + + } else { + bo.set("RESULT", "模型没有手册文件_3!"); + } + } catch (Exception e) { + bo.set("RESULT", "文件转换失败_4!"); + } finally { + String sqlT = "SELECT ID FROM BO_EU_PAL_OUTPUTREPORT WHERE PLID = '" + palId + "'"; + String Id = DBSql.getString(sqlT); + if (UtilString.isNotEmpty(Id)) { + bo.setId(Id); + SDK.getBOAPI().update("BO_EU_PAL_OUTPUTREPORT", bo); + } else { + SDK.getBOAPI().createDataBO("BO_EU_PAL_OUTPUTREPORT", bo, UserContext.fromUID("admin")); + } + } + } + + } + } + } + + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/PAlOnlinedocFileConvertJob2.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/PAlOnlinedocFileConvertJob2.java new file mode 100644 index 00000000..d114efd4 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/PAlOnlinedocFileConvertJob2.java @@ -0,0 +1,136 @@ +package com.awspaas.user.apps.app.job; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.dao.UpFileDao; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.model.UpfileModel; +import com.actionsoft.apps.resource.AppContext; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.server.fs.DCContext; +import com.actionsoft.bpms.server.fs.dc.DCProfileManager; +import com.actionsoft.sdk.local.SDK; +import com.actionsoft.sdk.local.api.AppAPI; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +/** + * 模型附件去重 + * @author Administrator + * + */ +public class PAlOnlinedocFileConvertJob2 implements IJob { + private UserContext _uc; + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + String jobParameter = SDK.getJobAPI().getJobParameter(jobExecutionContext); + List palRepositoryModels = CoeProcessLevelDaoFacotory.createCoeProcessLevel() + .getAllCoeProcessLevelByWsId(jobParameter); + for (PALRepositoryModel palRepositoryModel : palRepositoryModels) { + if (palRepositoryModel.isUse() && !"org.role".equals(palRepositoryModel.getMethodId())) { + // 文件或节点自身附件 + String methodId = palRepositoryModel.getMethodId(); + UpFileDao upFileDao = new UpFileDao(); + StringBuilder sqlWhere = new StringBuilder(); + sqlWhere.append(" and PALREPOSITORYID ='").append(palRepositoryModel.getId()).append("'"); + List fileList = upFileDao.search(sqlWhere.toString()); + if (fileList != null && fileList.size() > 0) + for (UpfileModel upfileModel : fileList) { + if (methodId.contains("data")) { + if ("s".equals(upfileModel.getType())) { + JSONObject jb = new JSONObject(); + String upfileId = upfileModel.getUuid(); + String shape_uuid = upfileModel.getShape_uuid(); + String upFileName = upfileModel.getFileName(); + jb.put("upfileId", upfileId); + jb.put("upFileName", upFileName); + String openUrl = ""; + ResponseObject ros = getUrl("s",jb, upfileModel); + JSONObject parseObject = JSON.parseObject(JSON.toJSONString(ros.getData())); + String url = parseObject.get("url").toString(); + if (url.contains(".xls")) + openUrl = url; + else + openUrl = SDK.getConfAPI().getPortalUrl() + "/r/" + url.replace("./", ""); + jb.put("openUrl", openUrl); + } + } else { + if ("f".equals(upfileModel.getType())) { + JSONObject jb = new JSONObject(); + String upfileId = upfileModel.getUuid(); + String upFileName = upfileModel.getFileName(); + jb.put("upfileId", upfileId); + jb.put("upFileName", upFileName); + String openUrl = ""; + ResponseObject ros = getUrl("f",jb,upfileModel); + JSONObject parseObject = JSON.parseObject(JSON.toJSONString(ros.getData())); + String url = parseObject.get("url").toString(); + if (url.contains(".xls")) + openUrl = url; + else + openUrl = SDK.getConfAPI().getPortalUrl() + "/r/" + url.replace("./", ""); + jb.put("openUrl", openUrl); + } + + } + + + + } + + + } + } + + } + + public ResponseObject getUrl(String type, JSONObject jb, UpfileModel upfileModel) { + String id = upfileModel.getPl_uuid(); + String upFileName = upfileModel.getFileName(); + System.err.println("--------调用预览服务----------"+upFileName); + String shape_uuid = upfileModel.getShape_uuid(); + String sourceAppId = "com.awspaas.user.apps.app20221008163300"; + DCContext sourceDc = null; + if("f".equals(type)) { + sourceDc = new DCContext(_uc, + DCProfileManager.getDCProfile(sourceAppId, "COE_Upfile"), sourceAppId, + "file", id, upFileName); + }else { + sourceDc = new DCContext(_uc, + DCProfileManager.getDCProfile(sourceAppId, "COE_Upfile"), sourceAppId, + id,shape_uuid, upFileName); + } + + String downUrl = SDK.getConfAPI().getPortalUrl() + "/r/" + + sourceDc.getDownloadURL().replace("./", ""); + jb.put("downUrl", downUrl); + + // 调用App + // aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.addons.onlinedoc/fileConvert"; + // 参数定义列表 + HashMap params = new HashMap(); + //PDF转图片处理选项。- 0代表只在需要时做转换;- 1代表打开即检查是否已转换成图片,如未处理,强制转换。默认0,非必填 + params.put("isPDFCovertPNG", 0); + //原文件DC,必填 + params.put("sourceDc", sourceDc); + //文档是否允许复制。true为允许复制,转换结果为PDF格式文件;false为不可复制,转换结果为PNG格式文件(注意参数值为false时转换时间稍长),必填 + params.put("isCopy", true); + //sessionid,必填 + params.put("sid", _uc.getSessionId()); + AppAPI appAPI = SDK.getAppAPI(); + //调用转换服务.在预览之前提前进行转换,预览时直接打开转换后的文件 + AppContext appContext = appAPI.getAppContext(sourceAppId); + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + return ro; + + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/ReactivateProcessJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/ReactivateProcessJob.java new file mode 100644 index 00000000..caf1f379 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/ReactivateProcessJob.java @@ -0,0 +1,34 @@ +package com.awspaas.user.apps.app.job; + +import java.util.List; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.sdk.local.SDK; +/** + * 重发 + * @author Administrator + * + */ +public class ReactivateProcessJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + String sql = "SELECT ID FROM WFC_PROCESS WHERE PROCESSTITLE LIKE '%文件批量发布%' and PROCESSTITLE not LIKE '%流程文件%'"; + List maps = DBSql.getMaps(sql); + for (RowMap rowMap : maps) { + String processInstId = rowMap.getString("ID"); + ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(processInstId); + if(instanceById.isEnd()) { + SDK.getProcessAPI().reactivateById(processInstId, "obj_c9e5a3144b200001b68cffa01ed0153e", false, "admin", "admin", "重发"); + System.err.println("复活的流程===>"+instanceById.getTitle()); + } + + } + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/ReadSendCountJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/ReadSendCountJob.java new file mode 100644 index 00000000..fef68d29 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/ReadSendCountJob.java @@ -0,0 +1,394 @@ +package com.awspaas.user.apps.app.job; + +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; + +import org.apache.commons.lang.StringUtils; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.org.model.UserModel; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UUIDGener; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONObject; + +/** + * 统计部门下的人员数量 + * + * @author Administrator + * + */ +@SuppressWarnings("all") +public class ReadSendCountJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + + + countSendOAFile(jobExecutionContext); + + } + + //查询发送oa的待阅情况 + public void countSendOAFile(JobExecutionContext jobExecutionContext) { + DBSql.update("DELETE FROM BO_EU_PAL_SEND_OA_COUNT"); + String depIds = SDK.getJobAPI().getJobParameter(jobExecutionContext); + String sqle = "SELECT * FROM WfC_PROCESS WHERE CREATEUSER != 'admin' and CONTROLSTATE = 'end' and PROCESSDEFID = 'obj_fb1c7a54b98b412187388c8bab407362'"; + List maps = DBSql.getMaps(sqle); + List premlist = new ArrayList<>(); + JSONObject jsonObject = new JSONObject(new LinkedHashMap()); + System.err.println("开始统计已发流程数据==>"+maps); + for (RowMap rowMap : maps) { + int num = 0; + String procesinstId = rowMap.getString("ID"); + ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(procesinstId); + String sqly ="SELECT * FROM BO_ACT_DATAID WHERE PROCESSID = '"+procesinstId+"'"; + List mapsy = DBSql.getMaps(sqly); + String sql = "SELECT * FROM BO_ACT_COE_PUBLISH WHERE BINDID = '" + procesinstId + "'"; + RowMap map = DBSql.getMap(sql); + String org = map.getString("SEND_SCOPE_ORG"); + String isSend = map.getString("SEND_SCOP"); + BO bo_act_coe_publish1 = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true) + .addQuery("BINDID=",procesinstId) + .addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + + ArrayList sendList = getSendList(instanceById, bo_act_coe_publish1,jsonObject); + BO bo = new BO(); + bo.set("TITLE", rowMap.getString("PROCESSTITLE")); + bo.set("NAME", instanceById.getCreateUser()); + bo.set("TIME", instanceById.getEndTime()); + bo.set("YGNUM", sendList.size()); + bo.set("SJNUM", mapsy.size()); + premlist.add(bo); + System.err.println("文件===>"+rowMap.getString("PROCESSTITLE")+"应该发送人数为:【"+num+"】,实际发送人数为【"+mapsy.size()+"】"); + + } + SDK.getBOAPI().createDataBO("BO_EU_PAL_SEND_OA_COUNT", premlist, UserContext.fromUID("admin")); + + } + + + //统计已发布但没有配置权限的模型 + public void countNoPremFile() { + String sqle = "SELECT * FROM WfC_PROCESS WHERE CREATEUSER != 'admin' and CONTROLSTATE = 'end' and PROCESSDEFID = 'obj_fb1c7a54b98b412187388c8bab407362'"; + List maps = DBSql.getMaps(sqle); + System.err.println("====>"+maps); + JSONObject jsonObject = new JSONObject(new LinkedHashMap()); + for (RowMap rowMap : maps) { + String procesinstId = rowMap.getString("ID"); + String org = ""; + String post = ""; + String level = ""; + String isSend = ""; + String sql = "SELECT * FROM BO_ACT_COE_PUBLISH WHERE BINDID = '" + procesinstId + "'"; + RowMap map = DBSql.getMap(sql); + if (map != null) { + org = map.getString("SEND_SCOPE_ORG"); + post = map.getString("SEND_SCOPE_POST"); + level = map.getString("SEND_SCOPE_LEVEL"); + isSend = map.getString("SEND_SCOP"); + } + + String sqly = "SELECT * FROM BO_ACT_COE_PUBLISH_N WHERE BINDID = '" + procesinstId + "'"; + List maps2 = DBSql.getMaps(sqly); + List premlist = new ArrayList<>(); + for (RowMap rowMap2 : maps2) { + String plname = rowMap2.getString("PUBLISHFILENAME"); + String sqls = "SELECT * FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME = '"+plname+"'"; + RowMap map3 = DBSql.getMap(sqls); + String sqlt = "SELECT * FROM BO_ACT_PUBLISH_PERM_SCOPE WHERE PALNAME = '" + plname + "'"; + RowMap map2 = DBSql.getMap(sqlt); + if (map2 != null) { + System.err.println("配置了权限的流程=======>" + plname); + } else { + System.err.println("没有配置权限的流程=======>" + plname); + BO bo = new BO(); + bo.set("PERMID", UUIDGener.getUUID()); + bo.set("WSID", map.getString("WSID")); + bo.set("PALVERSIONID", map3.getString("PLVERSIONID")); + bo.set("PALNAME", plname); + bo.set("PERMTYPE", isSend); + bo.set("ORGPERM", org); + bo.set("POSTPERM", post); + bo.set("LEVELPERM",level); + premlist.add(bo); + } + } + + SDK.getBOAPI().createDataBO("BO_EU_PUBLISH_PERM_SCOPE2", premlist, UserContext.fromUID("admin")); + + } + } + + + + + + public ArrayList getSendList(ProcessInstance instanceById, BO bo_act_coe_publish1, JSONObject jsonObject) { + String sendType = bo_act_coe_publish1.getString("SEND_SCOP"); + String org = bo_act_coe_publish1.getString("SEND_SCOPE_ORG"); + String post = bo_act_coe_publish1.getString("SEND_SCOPE_POST"); + String level = bo_act_coe_publish1.getString("SEND_SCOPE_LEVEL"); + ArrayList userList = new ArrayList<>(); + if ("1".equals(sendType)) { + System.err.println("发送全集团=====>" + instanceById.getTitle()); + userList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, sendType); + + } else { + // 如果都不为空,组织/岗位取并集的结果同职级取交集 + if (UtilString.isNotEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isNotEmpty(level)) { + System.err.println("发送组织/岗位/职级=====>" + instanceById.getTitle()); + ArrayList sendOrgList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, + sendType); + ArrayList sendPostList = sendPost(post, sendOrgList, instanceById, bo_act_coe_publish1, + jsonObject); + userList = sendLevel(level, sendPostList, instanceById, bo_act_coe_publish1, jsonObject); + } + // 如果职级为空,组织/岗位取并集 + if (UtilString.isNotEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isEmpty(level)) { + System.err.println("发送组织/岗位=====>" + instanceById.getTitle()); + ArrayList sendOrgList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, + sendType); + userList = sendPost(post, sendOrgList, instanceById, bo_act_coe_publish1, jsonObject); + } + // 如果岗位为空,组织/职级取交集 + if (UtilString.isNotEmpty(org) && UtilString.isEmpty(post) && UtilString.isNotEmpty(level)) { + System.err.println("发送组织/职级=====>" + instanceById.getTitle()); + ArrayList sendOrgList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject, + sendType); + userList = sendLevel(level, sendOrgList, instanceById, bo_act_coe_publish1, jsonObject); + } + + // 如果组织为空,岗位/职级取交集 + if (UtilString.isEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isNotEmpty(level)) { + System.err.println("发送岗位/职级=====>" + instanceById.getTitle()); + ArrayList sendPostList = sendPost(post, userList, instanceById, bo_act_coe_publish1, + jsonObject); + userList = sendLevel(level, sendPostList, instanceById, bo_act_coe_publish1, jsonObject); + } + // 如果只有组织不为空 + if (UtilString.isNotEmpty(org) && UtilString.isEmpty(post) && UtilString.isEmpty(level)) { + System.err.println("发送组织=====>" + instanceById.getTitle()); + userList = sendOrg(org, userList, instanceById, bo_act_coe_publish1, jsonObject,sendType); + } + // 如果只有岗位不为空 + if (UtilString.isEmpty(org) && UtilString.isNotEmpty(post) && UtilString.isEmpty(level)) { + System.err.println("发送岗位=====>" + instanceById.getTitle()); + userList = sendPost(post, userList, instanceById, bo_act_coe_publish1,jsonObject); + } + // 如果只有职级不为空 + if (UtilString.isEmpty(org) && UtilString.isEmpty(post) && UtilString.isNotEmpty(level)) { + System.err.println("发送职级=====>" + instanceById.getTitle()); + userList = sendLevel2(level, userList, instanceById, bo_act_coe_publish1, jsonObject); + } + + + } + + return userList; + + } + + // 发送组织 + public ArrayList sendOrg(String org, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject, String sendType) { + String processid = instanceById.getId(); + // 获取组织 + if (StringUtils.isNotEmpty(org) || "1".equals(sendType)) { + long startTime = System.currentTimeMillis(); + userList = getUser(jsonObject, org, sendType, processid); + long endTimes = System.currentTimeMillis(); + // System.out.println(instanceById.getTitle()+"_根据部门获取人员用时===>"+(endTimes-startTime)/1000); + } + + return userList; + } + + // 发送岗位 + public ArrayList sendPost(String post, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject) { + String processid = instanceById.getId(); + // 获取岗位 + if (StringUtils.isNotEmpty(post)) { + String posts[] = post.split(","); + // 取并集 + String postss = ""; + if (posts.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + postss = "'" + posts[0] + "'"; + } else { + postss = "'" + StringUtils.join(posts, "','") + "'"; + } + String sql = "select * from ORGUSER where POSITION_NO in (" + postss + ") and userno is not null"; + List maps1 = DBSql.getMaps(sql); + for (RowMap rowMap : maps1) { + String userId = rowMap.getString("USERID"); + if (!userList.contains(userId)) { + userList.add(userId); + } + + } + } + + return userList; + } + + // 发送职级 + public ArrayList sendLevel(String level, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject) { + String processid = instanceById.getId(); + ArrayList userList_level = new ArrayList(); + // 获取职级 + if (StringUtils.isNotEmpty(level)) { + String ranks[] = level.split(","); + String rankss = ""; + if (ranks.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + rankss = "'" + ranks[0] + "'"; + } else { + rankss = "'" + StringUtils.join(ranks, "','") + "'"; + } + // 取交集 + String sql2 = "select * from ORGUSER where EXT2 in (" + rankss + ") and userno is not null"; + List maps2 = DBSql.getMaps(sql2); + for (RowMap rowMap : maps2) { + String userId = rowMap.getString("USERID"); + if (userList.contains(userId)) { + userList_level.add(userId); + } + + } + } + + return userList_level; + } + + // 只发送职级 + public ArrayList sendLevel2(String level, ArrayList userList, ProcessInstance instanceById, + BO bo_act_coe_publish1, JSONObject jsonObject) { + String processid = instanceById.getId(); + ArrayList userList_level = new ArrayList(); + // 获取职级 + if (StringUtils.isNotEmpty(level)) { + String ranks[] = level.split(","); + String rankss = ""; + if (ranks.length == 1) { + // DBSql.getMap("select USERID from ORGUSER WHERE POSITION_NO IN "); + rankss = "'" + ranks[0] + "'"; + } else { + rankss = "'" + StringUtils.join(ranks, "','") + "'"; + } + // 取交集 + String sql2 = "select * from ORGUSER where EXT2 in (" + rankss + ") and userno is not null"; + List maps2 = DBSql.getMaps(sql2); + for (RowMap rowMap : maps2) { + String userId = rowMap.getString("USERID"); + userList_level.add(userId); + } + } + return userList_level; + } + + /** + * 根据部门id获取当前部门以及下级部门的人员信息 + * + * @param processid + * @return + */ + + public ArrayList getUser(JSONObject jsonObject, String depIds, String sendType, String processid) { + ArrayList arr = new ArrayList(); + ArrayList arr_test = new ArrayList(); + // 全集团 + if ("1".equals(sendType)) { + List departmentsByCompanyId = SDK.getORGAPI().getDepartmentsByCompanyId(1, + "8911e732-b42a-4556-853f-ad32761bcbee"); + for (DepartmentModel departmentModel : departmentsByCompanyId) { + String id = departmentModel.getId(); + // 查询未注销的部门并且去掉系统部门 + if (!departmentModel.isClosed() && !"e79281b1-2f81-4895-b30e-9f96e9ad0e2c".equals(id)) { + getUserList(jsonObject, arr_test, arr, id, processid); + + } + } + } else { + if (UtilString.isNotEmpty(depIds)) { + String[] split = depIds.split(","); + for (String depId : split) { + getUserList(jsonObject, arr_test, arr, depId, processid); + } + } + } + + // System.err.println(SDK.getProcessAPI().getInstanceById(processid) + + // "_得到的总人数为:" + arr_test.size()); + // System.err.println(SDK.getProcessAPI().getInstanceById(processid) + + // "_得到的过滤后的人数为:" + arr.size()); + return arr; + } + + public void getUserList(JSONObject jsonObject, ArrayList arr_test, ArrayList arr, + String departmentId, String processid) { + // 获取当前部门下人员 + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(departmentId); + for (UserModel userModel : userModelList) { + if (!userModel.isClosed()) { + String uid = userModel.getUID(); + if (!arr.contains(uid)) { + arr_test.add(uid); + arr.add(userModel.getUID()); + /* + * RowMap map = DBSql.getMap("SELECT ID FROM BO_ACT_DATAID WHERE PROCESSID = '" + * + processid + "' AND USER_ID = '" + uid + "'"); if (map == null) { + * //System.err.println("发送人员======>" + uid); } + */ + } + } + } + // 获取当前部门的子部门人员 + DepartmentModel departmentById = SDK.getORGAPI().getDepartmentById(departmentId); + if (departmentById.isExistSubModelOfCache()) { + getSubDepartments(jsonObject, arr_test, arr, departmentById, processid); + } + + } + + // 获取子部门人员 + public void getSubDepartments(JSONObject jsonObject, ArrayList arr_test, ArrayList arr, + DepartmentModel departmentById, String processid) { + if (!departmentById.isClosed()) { + List subDepartments = SDK.getORGAPI().getSubDepartments(departmentById.getId()); + for (DepartmentModel departmentModel : subDepartments) { + if (!departmentModel.isClosed()) { + String id = departmentModel.getId(); + List userModelList = SDK.getORGAPI().getAllUsersByDepartment(id); + for (UserModel userModel : userModelList) { + if (!userModel.isClosed()) { + String uid = userModel.getUID(); + if (!arr.contains(uid)) { + arr_test.add(uid); + arr.add(uid); + //System.err.println(SDK.getProcessAPI().getInstanceById(processid) + "_发送人员======>" + uid); + + } + } + } + // 递归获取子部门下的子部门 + if (SDK.getORGAPI().isExistSubDepartment(id)) { + getSubDepartments(jsonObject, arr_test, arr, SDK.getORGAPI().getDepartmentById(id), processid); + } + + } + + } + } + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/RefreshTaskIdJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/RefreshTaskIdJob.java new file mode 100644 index 00000000..ed8589bf --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/RefreshTaskIdJob.java @@ -0,0 +1,54 @@ +package com.awspaas.user.apps.app.job; + +import java.util.List; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +/** + * 生成手册后,taskid未添加到发布list表时刷 + * @author Administrator + * + */ +public class RefreshTaskIdJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + int updateNum = 0; + System.err.println("刷新TASKID开始===>"); + String sql = "select * from BO_ACT_COE_PUBLISH_C where createdate > to_date('2022/10/5 9:46:18 ','yyyy-mm-dd hh24:mi:ss')"; + List maps = DBSql.getMaps(sql); + for (RowMap rowMap : maps) { + PALRepositoryModel model = getRepositoryByName2("7d3ca852-a0bd-42e6-80b1-3dcea6f55083", rowMap.getString("PUBLISHFILENAME")); + String id = model.getId(); + if(UtilString.isNotEmpty(rowMap.getString("TASKID"))) { + if(rowMap.getString("TASKID").length()<=36) { + String sqls = "UPDATE app_act_coe_pal_publish_list SET TASKID = '"+rowMap.getString("TASKID")+"' WHERE PALREPOSITORYID = '"+id+"'"; + updateNum+=DBSql.update(sqls); + + }else { + System.err.println("TASKID长度超出36:"+rowMap.getString("TASKID")+"文件名称:"+model.getName()); + } + + } + } + + System.err.println("本次共刷新TASKID:"+updateNum); + + } + public static PALRepositoryModel getRepositoryByName2(String wsId, String repositoryName) { + List palRepositoryModels = CoeProcessLevelDaoFacotory.createCoeProcessLevel().getAllCoeProcessLevelByWsId(wsId); + for (PALRepositoryModel palRepositoryModel : palRepositoryModels) { + + if (palRepositoryModel.getName().equals(repositoryName)&&palRepositoryModel.isUse()&&!"org.role".equals(palRepositoryModel.getMethodId())) { + return palRepositoryModel; + } + } + return null; + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/RemoveDuplicationFileJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/RemoveDuplicationFileJob.java new file mode 100644 index 00000000..8a2a6f76 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/RemoveDuplicationFileJob.java @@ -0,0 +1,62 @@ +package com.awspaas.user.apps.app.job; + +import java.util.List; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.dao.UpFileDao; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.model.UpfileModel; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.util.DBSql; +/** + * 模型附件去重 + * @author Administrator + * + */ +public class RemoveDuplicationFileJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + + List palRepositoryModels = CoeProcessLevelDaoFacotory.createCoeProcessLevel() + .getAllCoeProcessLevelByWsId("7d3ca852-a0bd-42e6-80b1-3dcea6f55083"); + for (PALRepositoryModel palRepositoryModel : palRepositoryModels) { + if (palRepositoryModel.isUse() && !"org.role".equals(palRepositoryModel.getMethodId())) { + // 文件或节点自身附件 + UpFileDao upFileDao = new UpFileDao(); + StringBuilder sqlWhere = new StringBuilder(); + sqlWhere.append(" and PALREPOSITORYID ='").append(palRepositoryModel.getId()).append("'"); + List fileList = upFileDao.search(sqlWhere.toString()); + if (fileList != null && fileList.size() > 0) + for (UpfileModel upfileModel : fileList) + if ("f".equals(upfileModel.getType())) { + String upfileId = upfileModel.getUuid(); + String upFileName = upfileModel.getFileName(); + String sqlq = "SELECT * FROM APP_ACT_COE_PAL_UPFILE WHERE FILENAME ='" + upFileName + + "' AND PALREPOSITORYID = '" + palRepositoryModel.getId() + "'"; + List maps = DBSql.getMaps(sqlq); + if (maps.size() > 1) { + String sqlt = "SELECT * FROM ( SELECT P.ID FROM APP_ACT_COE_PAL_UPFILE P WHERE P.FILENAME ='" + + upFileName + "' AND P.PALREPOSITORYID = '" + palRepositoryModel.getId() + + "' ORDER BY P.CREATETIME DESC ) WHERE ROWNUM = 1 "; + String newFileId = DBSql.getString(sqlt); + // 删除已有文件 + StringBuffer sql = new StringBuffer(); + sql.append("delete from ").append(UpfileModel.DATABASE_ENTITY) + .append(" WHERE FILENAME = '" + upFileName + "' AND PALREPOSITORYID = '" + + palRepositoryModel.getId() + "' AND ID != '" + newFileId + "'"); + int update = DBSql.update(sql.toString()); + + } + + } + + } + } + + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/SelectPremJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/SelectPremJob.java new file mode 100644 index 00000000..9a17c862 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/SelectPremJob.java @@ -0,0 +1,90 @@ +package com.awspaas.user.apps.app.job; + +import java.util.List; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.sdk.local.SDK; +/** + * 模型附件去重 + * @author Administrator + * + */ +public class SelectPremJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + + List palRepositoryModels = CoeProcessLevelDaoFacotory.createCoeProcessLevel() + .getAllCoeProcessLevelByWsId("7d3ca852-a0bd-42e6-80b1-3dcea6f55083"); + for (PALRepositoryModel palRepositoryModel : palRepositoryModels) { + String methodId = palRepositoryModel.getMethodId(); + if (!palRepositoryModel.getName().contains("测试") && palRepositoryModel.isUse() + && ("process.epc".equals(methodId) || "control.policy".equals(methodId) + || "data.form".equals(methodId) || "process.flowchart".equals(methodId))) { + String versionId = palRepositoryModel.getVersionId(); + String sql = "SELECT * FROM BO_ACT_PUBLISH_PERM_SCOPE WHERE PALVERSIONID ='" + versionId + "'"; + RowMap map = DBSql.getMap(sql); + if (map == null) { + BO bo = new BO(); + bo.set("PALVERSIONID", versionId); + bo.set("PALNAME", palRepositoryModel.getName()); + int level = palRepositoryModel.getLevel(); + PALRepositoryModel prmodel = PALRepositoryCache.getCache().get(palRepositoryModel.getParentId()); + if (prmodel != null) { + String name = prmodel.getName(); + if (level == 2 || level == 5 || level == 6) { + if (name.contains("测试") || name.contains("练习")) { + continue; + } + } else if (level == 3) { + if (name.contains("测试") || name.contains("Test") || name.contains("培训")) { + continue; + } + } else if (level == 4) { + if (name.contains("测试") || name.contains("Test")) { + continue; + } + } + } + + if (prmodel != null) { + bo.set("FRNAME", prmodel.getName()); + } + bo.set("PALVERSIONID", versionId); + if ("process.epc".equals(methodId)) { + bo.set("FILETYPE", "流程模型"); + + } else if ("control.policy".equals(methodId)) { + bo.set("FILETYPE", "制度模型"); + + } else if ("data.form".equals(methodId)) { + bo.set("FILETYPE", "表单模型"); + + } else if ("process.flowchart".equals(methodId)) { + bo.set("FILETYPE", "泳道图模型"); + + } + if (palRepositoryModel.isPublish()) { + bo.set("IDPLUBSH", "已发布"); + } else { + bo.set("IDPLUBSH", "未发布"); + } + + SDK.getBOAPI().createDataBO("BO_EU_PUBLISH_SCOPE_IMPORT", bo, UserContext.fromUID("admin")); + } + + } + } + + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/UpdateKMSFileName.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/UpdateKMSFileName.java new file mode 100644 index 00000000..26a063d5 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/job/UpdateKMSFileName.java @@ -0,0 +1,55 @@ +package com.awspaas.user.apps.app.job; + +import java.util.List; + +import org.quartz.DisallowConcurrentExecution; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.util.DBSql; + +/** + * @author:lihongyu + * @create: 2022-11-03 11:32 + * @Description: 修改知识库错误版本号 + */ +@DisallowConcurrentExecution +public class UpdateKMSFileName implements IJob { + + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + int count =0; + long startTime = System.currentTimeMillis(); + /* + * String sql = "SELECT * FROM APP_ACT_KMS_CARD WHERE CARDNAME not like '%.%'"; + * List fileListMap = DBSql.getMaps(sql); for (RowMap fileRowMap : + * fileListMap) { String name = fileRowMap.getString("CARDNAME"); String id = + * fileRowMap.getString("ID"); String substring = + * name.substring(name.length()-1); String substring2 = + * name.substring(0,name.length()-1); String newName = substring2 + * +"."+substring; String sqlS = + * "UPDATE APP_ACT_KMS_CARD SET CARDNAME = '"+newName+"' where ID = '"+id+"'"; + * count+=DBSql.update(sqlS); } + */ + String sqls = "SELECT * FROM APP_ACT_KMS_CARD WHERE CARDNAME like '%.%'"; + List fileListMaps = DBSql.getMaps(sqls); + for (RowMap fileRowMap : fileListMaps) { + String name = fileRowMap.getString("CARDNAME"); + if(name.contains("V.")) { + String id = fileRowMap.getString("ID"); + String substring = name.substring(name.length()-1); + String substring2 = name.substring(0,name.length()-2); + String newName = substring2 +substring+".0"; + String sqlS = "UPDATE APP_ACT_KMS_CARD SET CARDNAME = '"+newName+"' where ID = '"+id+"'"; + count+=DBSql.update(sqlS); + } + + } + long endTime = System.currentTimeMillis(); + long time = endTime - startTime; + System.err.println("修改知识库文件名称:"+count+"个,用时" + time /1000/60/60+"秒"); + + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/oauth/OauthLogin.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/oauth/OauthLogin.java new file mode 100644 index 00000000..ab497a08 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/oauth/OauthLogin.java @@ -0,0 +1,62 @@ +package com.awspaas.user.apps.app.oauth; + +import java.io.IOException; + +import org.springframework.util.CollectionUtils; + +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.oauth.AbstractOauth; +import com.actionsoft.bpms.org.cache.UserCache; +import com.actionsoft.bpms.server.RequestParams; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.sdk.local.api.LogAPI; +import com.actionsoft.sdk.local.api.Logger; + +/** + * 第三方系统 跳转登陆BPM + * + * @author DengPeng + */ +public class OauthLogin extends AbstractOauth { + private Logger logger = LogAPI.getLogger(OauthLogin.class); + + /** + * 这个方法代表是否有登录授权页,返回的值取决于三方系统提供的 SSO 认证方式。一类认 证方式如 Oauth2.0 + * 认证,需要先跳转到三方系统的登录授权页面,授权成功后再跳转到调 用方指定的页面,这类认证方式下,hasOauthPage()方法需要返回 true。 + * 另外一类认证时不 需要跳转到登录授权页, 会直接传过来 ticket 或者 token 参数, hasOauthPage()方法需要返 回 false。 + * + * @return + */ + @Override + public boolean hasOauthPage() { + return false; + } + + /** + * 如果 hasOauthPage()方法返回的值是 false, 返回 null 即可。 如果 hasOauthPage()方法返回 的值是 + * true,则此处返回三方系统的登录授权页地址。 + * + * @param requestParams + * @return + */ + @Override + public String getOauthPage(RequestParams requestParams) { + return null; + } + @Override + public String validate(RequestParams params) throws IOException { + logger.info("单点登录验证---------"+params); + try { + String loginName = "admin"; + if (UserCache.getModel(loginName) != null) { + // 验证账号是否存在 + return loginName; + } + } catch (Exception e) { + logger.error("单点登录查找用户失败!", e); + } + return null; + } + + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/plugins/Plugins.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/plugins/Plugins.java new file mode 100644 index 00000000..5125859c --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/plugins/Plugins.java @@ -0,0 +1,26 @@ +package com.awspaas.user.apps.app.plugins; + +import java.util.ArrayList; +import java.util.List; + +import com.actionsoft.apps.listener.PluginListener; +import com.actionsoft.apps.resource.AppContext; +import com.actionsoft.apps.resource.plugin.profile.AWSPluginProfile; +import com.actionsoft.apps.resource.plugin.profile.OauthPluginProfile; +import com.awspaas.user.apps.app.oauth.OauthLogin; + +/** + * @author LHY + */ +public class Plugins implements PluginListener { + @Override + public List register(AppContext context) { + List list = new ArrayList<>(); + //注册外部系统跳转BPM系统 登陆插件 + list.add(new OauthPluginProfile("oauthLogin", OauthLogin.class.getName(), "")); + //注册监听器 + // list.add(new ProcessPublicEventPluginProfile(TaskCommentSendFSMsgListener.class.getName(), "发送飞书消息监听器")); + return list; + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/GetPalFileJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/GetPalFileJob.java new file mode 100644 index 00000000..5a8662aa --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/GetPalFileJob.java @@ -0,0 +1,62 @@ +package com.awspaas.user.apps.app.publis.job; + +import java.util.List; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.sdk.local.SDK; +/** + * pal文件统计 + * @author Administrator + * + */ +public class GetPalFileJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + String sql = "DELETE FROM BO_EU_PAL_FILE_COUNT"; + DBSql.update(sql); + String sqls = "SELECT * FROM APP_ACT_COE_PAL_REPOSITORY"; + List maps = DBSql.getMaps(sqls); + for (RowMap rowMap : maps) { + String methodId = rowMap.getString("PLMETHODID"); + if (("process.epc".equals(methodId) || "control.policy".equals(methodId) + || "process.flowchart".equals(methodId))) { + String plparentId = rowMap.getString("PLPARENTID"); + String plName = rowMap.getString("PLNAME"); + String plId = rowMap.getString("ID"); + PALRepositoryModel model = PALRepositoryCache.getCache().get(plId); + double version = model.getVersion(); + boolean publish = model.isPublish(); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(plparentId); + String plparName = palRepositoryModel.getName(); + if (palRepositoryModel != null) { + BO bo = new BO(); + bo.set("PLNAME", plName); + bo.set("PLNAME", plName); + bo.set("FRAMEWORK", plparName); + bo.set("VERSION", version); + bo.set("TYPE", methodId); + if(publish) { + bo.set("ISPUBLISH", 1); + }else { + bo.set("ISPUBLISH", 0); + } + SDK.getBOAPI().createDataBO("BO_EU_PAL_FILE_COUNT", bo, UserContext.fromUID("admin")); + } + + + } + + } + + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/SendEHSQJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/SendEHSQJob.java new file mode 100644 index 00000000..9c5030a6 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/SendEHSQJob.java @@ -0,0 +1,491 @@ +package com.awspaas.user.apps.app.publis.job; + +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Set; + +import org.apache.commons.lang.StringUtils; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.output.dao.OutputTask; +import com.actionsoft.apps.coe.pal.pal.output.model.OutputTaskModel; +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.login.constant.LoginConst; +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.SSOUtil; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.awspaas.user.apps.app.util.AesUtil; +import com.awspaas.user.apps.app.util.DownloadUtil; +import com.awspaas.user.apps.app.util.HttpUtil; +/** + * 批量补充发送EHSQ + * @author Administrator + * + */ +public class SendEHSQJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + int count = 0; + long start = System.currentTimeMillis(); + String isSendEHSQ = "true"; + + String sql = "select * from wfc_process where PROCESSDEFID = 'obj_fb1c7a54b98b412187388c8bab407362' and PROCESSTITLE like '%关于%' and CONTROLSTATE = 'end'"; + //String sql = "select * from wfc_process where id = '92f3808e-1352-47f1-a6c6-de0b6da8e765'"; + List maps = DBSql.getMaps(sql); + System.err.println("EHSQ待处理流程===>"+maps.size()); + for (RowMap rowMap : maps) { + String bindid = rowMap.getString("ID"); + ProcessInstance processInst = SDK.getProcessAPI().getInstanceById(bindid); + List bo_act_coe_publish_n_berfor = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N", true).addQuery("BINDID=", bindid).list(); + for (BO bo : bo_act_coe_publish_n_berfor) { + String plId = bo.getString("PUBLISHFILEID"); + String publish_number = bo.getString("PUBLISH_NUMBER"); + if(UtilString.isEmpty(publish_number)) { + String sqls = "select PROPERTYVALUE from APP_ACT_COE_PAL_PROP where PROPERTYNAME = '文件编码' and PLID = '"+plId+"'"; + bo.set("PUBLISH_NUMBER", DBSql.getString(sqls)); + SDK.getBOAPI().update("BO_ACT_COE_PUBLISH_N", bo); + } + } + List bo_act_coe_publish_c_berfor = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_C", true).addQuery("BINDID=", bindid).list(); + for (BO bo : bo_act_coe_publish_c_berfor) { + String plId = bo.getString("CHANGEDFILEIDNEW"); + String change_number = bo.getString("CHANGE_NUMBER"); + if(UtilString.isEmpty(change_number)) { + String sqls = "select PROPERTYVALUE from APP_ACT_COE_PAL_PROP where PROPERTYNAME = '文件编码' and PLID = '"+plId+"'"; + bo.set("CHANGE_NUMBER", DBSql.getString(sqls)); + SDK.getBOAPI().update("BO_ACT_COE_PUBLISH_C", bo); + } + } + List bo_act_coe_publish_n = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N", true).addQuery("BINDID=", bindid).list(); + List bo_act_coe_publish_c = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_C", true).addQuery("BINDID=", bindid).list(); + /** + * 推送到EHSQ + */ + boolean sendEhqs = true; + String createUser = processInst.getCreateUser(); + String depId =UserContext.fromUID(createUser).getDepartmentModel().getName(); + //获取EHSQ配置表判断是否发送 + String sqli = "SELECT * FROM BO_ACT_ACT_ESQ_SEND"; + List mapst = DBSql.getMaps(sqli); + for (RowMap rowMaps : mapst) { + String dempet = rowMaps.getString("DEMPET"); + String issend = rowMaps.getString("ISSEND"); + if(dempet!=null) { + if(dempet.equals(depId)&&"是".equals(issend)) { + sendEhqs = true; + }else { + List subDepartments = SDK.getORGAPI().getSubDepartments(dempet); + for (DepartmentModel departmentModel : subDepartments) { + String subDeartmentId = departmentModel.getId(); + if(subDeartmentId.equals(depId)&&"是".equals(issend)) { + sendEhqs = true; + } + } + + } + } + } + if(!sendEhqs) { + System.err.println("本次发文不推送EHSQ====>"+processInst.getTitle()); + } + if ("true".equals(isSendEHSQ)&&sendEhqs) { + try { + // 推送EHSQ + if(bo_act_coe_publish_n.size()>0) { + + sendEHSQ(processInst, bo_act_coe_publish_n); + } + // 更新EHSQ + if(bo_act_coe_publish_c.size()>0) { + updateEHSQ(processInst, bo_act_coe_publish_c); + } + } catch (Exception e) { + e.printStackTrace(); + } + } + } + + + + long end = System.currentTimeMillis(); + System.err.println("推送EHSQ完成==========>用时:"+(end-start)/1000+"秒"); + } + public void sendEHSQ(ProcessInstance processInst, List bo_act_coe_publish_n) { + String createUser = processInst.getCreateUser(); + UserContext uc = UserContext.fromUID(createUser); + for (BO bo : bo_act_coe_publish_n) { + + + DownloadUtil downloadUtil = new DownloadUtil(); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + JSONArray jsonArray_EHSQ = new JSONArray(); + JSONObject jsonObject_ehsq = new JSONObject(new LinkedHashMap<>()); + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + String wsId = model.getWsId(); + String publishfileid = bo.getString("PUBLISHFILEID"); + String sqll = "SELECT * FROM BO_EU_PAL_SEND_EHSQ_JOB WHERE PLID = '"+publishfileid+"' AND SENDRESULT LIKE '%200%'"; + RowMap map2 = DBSql.getMap(sqll); + if(map2!=null) { + continue; + } + System.err.println(processInst.getTitle()+"====1===>"+publishfileid+"====>"+map2); + LinkedHashMap downloadurl = downloadUtil.outputReportDownload( + UserContext.fromUID(processInst.getCreateUser()), + bo.getString("TASKID"), publishfileid); + jsonObject_ehsq.put("fileid", bo.getString("TASKID")); + String plName = bo.getString("PUBLISHFILENAME"); + jsonObject_ehsq.put("filename", plName); + String plNumer = bo.getString("PUBLISH_NUMBER"); + jsonObject_ehsq.put("filecode",plNumer); + //jsonObject_ehsq.put("filecode", "123456"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(publishfileid); + String level = ""; + if (map != null) { + String pver = map.getString("PLVER"); + if (UtilString.isNotEmpty(pver)) { + if (pver.contains(".00")) { + String levels = pver; + String[] plvers = levels.split("\\."); + plvers[1] = plvers[1].replaceAll("0", ""); + level = plvers[0] + "." + plvers[1]; + } else { + level = pver + ".0"; + } + } + } + jsonObject_ehsq.put("version", "V"+level); + BO byProcess = SDK.getBOAPI().getByProcess("BO_ACT_COE_PUBLISH", processInst.getId()); + String cdeDate = byProcess.getString("CHOICEEFFECTIVEDATE"); + if("1".equals(cdeDate)) { + System.err.println("======byProcess.getString(EFFECTIVEDATE)=========>"+byProcess.getString("EFFECTIVEDATE")); + jsonObject_ehsq.put("releasedate", byProcess.getString("EFFECTIVEDATE")); + jsonObject_ehsq.put("effectivedate", byProcess.getString("EFFECTIVEDATE")); + }else { + jsonObject_ehsq.put("releasedate", simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("effectivedate", simpleDateFormat.format(new Date())); + } + jsonObject_ehsq.put("authorcode", createUser); // jsonObject_ehsq.put("authorcode","00116465"); + jsonObject_ehsq.put("authorname",uc.getUserName()); + // jsonObject_ehsq.put("authorname","毛鹏程"); + jsonObject_ehsq.put("companycode", uc.getDepartmentModel().getNo()); + // jsonObject_ehsq.put("companycode","00000013"); + jsonObject_ehsq.put("authorcompany", uc.getDepartmentModel().getName()); // jsonObject_ehsq.put("authorcompany","总部质量管理部"); + //jsonObject_ehsq.put("releasescope", "总部质量管理部"); + BO bo1 = SDK.getBOAPI().query("BO_ACT_PUBLISH_PERM_SCOPE", true) + .addQuery("PALNAME=", bo.getString("PUBLISHFILENAME")).detail(); + if (bo1 != null) { + if (bo1.getString("PERMTYPE").equals("1")) { + jsonObject_ehsq.put("releasescope", "内蒙古伊利实业集团股份有限公司"); + } else { + + String departname = ""; + String orgperm = bo1.getString("ORGPERM"); + String dleass = ""; + String[] deptSplit = orgperm.split(","); + if (deptSplit.length == 1) { + dleass = "'" + deptSplit[0] + "'"; + } + dleass = "'" + StringUtils.join(deptSplit, "','") + "'"; + + List maps = DBSql + .getMaps("select DEPARTMENTNAME from ORGDEPARTMENT where ID in (" + dleass + ")"); + for (RowMap rowmas : maps) { + departname += rowmas.getString("DEPARTMENTNAME") + ";"; + } + if(UtilString.isNotEmpty(departname)&&departname.length()>500) { + String substring = departname.substring(0, 500); + departname = substring.substring(0,substring.lastIndexOf(";")); + } + jsonObject_ehsq.put("releasescope", departname); + + } + } + //System.err.println("推送====>"+processInst.getTitle()+"=========>"); + //System.out.println("任务办理者>>>>>>>>>>>" + processExecutionContext.getTaskInstance().getTarget()); + String sessionId = new SSOUtil().registerClientSessionNoPassword(createUser, LoginConst.DEFAULT_LANG, "localhost", + LoginConst.DEVICE_PC); + + //System.out.println("办理者的sessionid>>>>>>>>>>>" + sessionId); + String downurl = downloadUtil.getzipURL(sessionId, bo.getString("TASKID"), bo.getString("PUBLISHFILENAME")); + // jsonObject_ehsq.put("downloadurl","http://bpm.yili.com:8088/portal/r"+downurl.toString().substring(1)); + String recordfiles = ""; + String recordurls = ""; + Set keys = downloadurl.keySet(); + for (String key : keys) { + recordfiles += key + ";"; + String cent_url = downloadurl.get(key).substring(downloadurl.get(key).indexOf("/df"), + downloadurl.get(key).length()); + String fileDownurl = "http://bpm.yili.com:8088/portal/r" + cent_url; + recordurls += fileDownurl + ";"; + } + String new_name = ""; + String[] split = recordfiles.split(";"); + if (split.length > 0) { + + for (int i = 1; i < split.length; i++) { + new_name += split[i] + ";"; + } + } + + String new_url = ""; + String[] urls = recordurls.split(";"); + if (urls.length > 0) { + String loadurl = urls[0].replaceAll("&sid=null", "&sid=" + sessionId); + System.out.println("下载的地址是<<<<<<<<<<<<<<<<<<" + loadurl); + jsonObject_ehsq.put("downloadurl", loadurl); + for (int i = 1; i < urls.length; i++) { + String data_url = urls[i].replaceAll("&sid=null", "&sid=" + sessionId); + new_url += data_url + ";"; + } + } + jsonObject_ehsq.put("recordfiles", new_name); + jsonObject_ehsq.put("recordurls", new_url); + jsonArray_EHSQ.add(jsonObject_ehsq); + Date date = new Date(); + SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + String userName = uc.getUserName(); + try { + String sql = "SELECT ID FROM BO_EU_PAL_SEND_EHSQ_JOB WHERE PLID = '"+publishfileid+"' AND USERNAMES = '"+userName+"'"; + String id = DBSql.getString(sql); + String sendEHSQFile = SendEHSQFile(plName,jsonArray_EHSQ); + System.err.println("推送结果====>"+processInst.getTitle()+"=========>"+sendEHSQFile); + if(UtilString.isNotEmpty(id)) { + BO bos = SDK.getBOAPI().get("BO_EU_PAL_SEND_EHSQ_JOB", id); + updateSendLog(bos,userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "手动推送", sendEHSQFile); + }else { + createSendLog(userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "手动推送", sendEHSQFile); + } + } catch (Exception e) { + String sql = "SELECT ID FROM BO_EU_PAL_SEND_EHSQ_JOB WHERE PLID = '"+publishfileid+"' AND USERNAMES = '"+userName+"'"; + String id = DBSql.getString(sql); + if(UtilString.isNotEmpty(id)) { + BO bos = SDK.getBOAPI().get("BO_EU_PAL_SEND_EHSQ_JOB", id); + updateSendLog(bos,userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "手动推送", e.getMessage()); + }else { + createSendLog(userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "手动推送", e.getMessage()); + } + } + } + } + + public void createSendLog(String username,String userDempet,String plId,String plName,String plNumer,String sendTime,String sendType,String sendResult) { + BO bo = new BO(); + bo.set("PLID", plId); + bo.set("PLNAME", plName); + bo.set("PLNUMER", plNumer); + bo.set("SENDTIME", sendTime); + bo.set("SENDTYPE", sendType); + bo.set("SENDRESULT", sendResult); + bo.set("USERNAMES", username); + bo.set("USERDEMPET", userDempet); + SDK.getBOAPI().createDataBO("BO_EU_PAL_SEND_EHSQ_JOB", bo, UserContext.fromUID("admin")); + } + public void updateSendLog(BO bo,String username,String userDempet,String plId,String plName,String plNumer,String sendTime,String sendType,String sendResult) { + bo.set("PLNUMER", plNumer); + bo.set("SENDTIME", sendTime); + bo.set("SENDTYPE", sendType); + bo.set("SENDRESULT", sendResult); + SDK.getBOAPI().update("BO_EU_PAL_SEND_EHSQ_JOB", bo); + } + + public void updateEHSQ(ProcessInstance processInst, List bo_act_coe_publish_c) { + String createUser = processInst.getCreateUser(); + UserContext uc = UserContext.fromUID(createUser); + DownloadUtil downloadUtil = new DownloadUtil(); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + for (BO bo : bo_act_coe_publish_c) { + JSONArray jsonArray_EHSQ = new JSONArray(); + JSONObject jsonObject_ehsq = new JSONObject(new LinkedHashMap<>()); + OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID")); + String wsId = model.getWsId(); + String publishfileid = bo.getString("CHANGEDFILEIDNEW"); + String sqll = "SELECT * FROM BO_EU_PAL_SEND_EHSQ_JOB WHERE PLID = '"+publishfileid+"' AND SENDRESULT LIKE '%200%'"; + RowMap map2 = DBSql.getMap(sqll); + if(map2!=null) { + continue; + } + System.err.println(processInst.getTitle()+"====2===>"+publishfileid+"====>"+map2); + LinkedHashMap downloadurl = downloadUtil.outputReportDownload(UserContext.fromUID(createUser), bo.getString("TASKID"), + publishfileid); + String plName = bo.getString("CHANGEDFILENAMENEW"); + String plNumer = bo.getString("CHANGE_NUMBER"); + jsonObject_ehsq.put("fileid", bo.getString("TASKID")); + jsonObject_ehsq.put("filename", bo.getString("CHANGEDFILENAMENEW")); + jsonObject_ehsq.put("filecode",bo.getString("CHANGE_NUMBER")); + //jsonObject_ehsq.put("filecode", "123456"); + String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'"; + RowMap map = DBSql.getMap(sql_n); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(publishfileid); + + String level = ""; + if (map != null) { + String pver = map.getString("PLVER"); + if (UtilString.isNotEmpty(pver)) { + if (pver.contains(".00")) { + String levels = pver; + String[] plvers = levels.split("\\."); + plvers[1] = plvers[1].replaceAll("0", ""); + level = plvers[0] + "." + plvers[1]; + } else { + level = pver + ".0"; + } + } + } + jsonObject_ehsq.put("version", "V"+level); + BO byProcess = SDK.getBOAPI().getByProcess("BO_ACT_COE_PUBLISH", processInst.getId()); + String cdeDate = byProcess.getString("CHOICEEFFECTIVEDATE"); + if("1".equals(cdeDate)) { + jsonObject_ehsq.put("releasedate", byProcess.getString("EFFECTIVEDATE")); + jsonObject_ehsq.put("effectivedate", byProcess.getString("EFFECTIVEDATE")); + }else { + jsonObject_ehsq.put("releasedate", simpleDateFormat.format(new Date())); + jsonObject_ehsq.put("effectivedate", simpleDateFormat.format(new Date())); + } + jsonObject_ehsq.put("authorcode", createUser); + jsonObject_ehsq.put("authorname", + UserContext.fromUID(createUser).getUserName()); + jsonObject_ehsq.put("companycode", uc.getDepartmentModel().getNo()); + jsonObject_ehsq.put("authorcompany",uc.getDepartmentModel().getName()); + BO bo1 = SDK.getBOAPI().query("BO_ACT_PUBLISH_PERM_SCOPE", true) + .addQuery("PALNAME=", bo.getString("CHANGEDFILENAMENEW")).detail(); + if (bo1 != null) { + if (bo1.getString("PERMTYPE").equals("1")) { + jsonObject_ehsq.put("releasescope", "内蒙古伊利实业集团股份有限公司"); + } else { + + String departname = ""; + String orgperm = bo1.getString("ORGPERM"); + String dleass = ""; + String[] deptSplit = orgperm.split(","); + if (deptSplit.length == 1) { + dleass = "'" + deptSplit[0] + "'"; + } + dleass = "'" + StringUtils.join(deptSplit, "','") + "'"; + + List maps = DBSql + .getMaps("select DEPARTMENTNAME from ORGDEPARTMENT where ID in (" + dleass + ")"); + for (RowMap rowmas : maps) { + departname += rowmas.getString("DEPARTMENTNAME") + ";"; + } + if(UtilString.isNotEmpty(departname)&&departname.length()>500) { + String substring = departname.substring(0, 500); + departname = substring.substring(0,substring.lastIndexOf(";")); + } + jsonObject_ehsq.put("releasescope", departname); + + } + } + + String sessionId = new SSOUtil().registerClientSessionNoPassword(createUser, LoginConst.DEFAULT_LANG, "localhost", + LoginConst.DEVICE_PC); + + String downurl = downloadUtil.getzipURL(sessionId, bo.getString("TASKID"), + bo.getString("CHANGEDFILENAMENEW")); + String recordfiles = ""; + String recordurls = ""; + Set keys = downloadurl.keySet(); + for (String key : keys) { + recordfiles += key + ";"; + String cent_url = downloadurl.get(key).substring(downloadurl.get(key).indexOf("/df"), + downloadurl.get(key).length()); + String fileDownurl = "http://bpm.yili.com:8088/portal/r" + cent_url; + recordurls += fileDownurl + ";"; + } + String new_name = ""; + String[] split = recordfiles.split(";"); + if (split.length > 0) { + + for (int i = 1; i < split.length; i++) { + new_name += split[i] + ";"; + } + } + + String new_url = ""; + String[] urls = recordurls.split(";"); + if (urls.length > 0) { + String loadurl = urls[0].replaceAll("&sid=null", "&sid=" + sessionId); + //System.out.println("下载的地址是<<<<<<<<<<<<<<<<<<" + loadurl); + jsonObject_ehsq.put("downloadurl", loadurl); + for (int i = 1; i < urls.length; i++) { + String data_url = urls[i].replaceAll("&sid=null", "&sid=" + sessionId); + new_url += data_url + ";"; + } + } + jsonObject_ehsq.put("recordfiles", new_name); + jsonObject_ehsq.put("recordurls", new_url); + jsonArray_EHSQ.add(jsonObject_ehsq); + Date date = new Date(); + SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + System.err.println("重新推送EHSQ===>"+plName); + String userName = uc.getUserName(); + try { + String sql = "SELECT ID FROM BO_EU_PAL_SEND_EHSQ_JOB WHERE PLID = '"+publishfileid+"' AND USERNAMES = '"+userName+"'"; + String id = DBSql.getString(sql); + String sendEHSQFile = SendEHSQFile(plName,jsonArray_EHSQ); + if(UtilString.isNotEmpty(id)) { + BO bos = SDK.getBOAPI().get("BO_EU_PAL_SEND_EHSQ_JOB", id); + updateSendLog(bos,userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "手动推送更新", sendEHSQFile); + }else { + createSendLog(userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "手动推送更新", sendEHSQFile); + } + } catch (Exception e) { + String sql = "SELECT ID FROM BO_EU_PAL_SEND_EHSQ_JOB WHERE PLID = '"+publishfileid+"' AND USERNAMES = '"+userName+"'"; + String id = DBSql.getString(sql); + if(UtilString.isNotEmpty(id)) { + BO bos = SDK.getBOAPI().get("BO_EU_PAL_SEND_EHSQ_JOB", id); + updateSendLog(bos,userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "手动推送更新", e.getMessage()); + }else { + createSendLog(userName, uc.getDepartmentModel().getName(), publishfileid, plName, plNumer, dateFormat.format(date), "手动推送更新", e.getMessage()); + } + } + } + } + /** + * 发送EHSQ数据 + * + * @param jsonArray + * @return + * @throws Exception + */ + public String SendEHSQFile(String plName,JSONArray jsonArray) throws Exception { + /** + * 首先需要将传过来的参数进行加密操作,并设置 + */ + AesUtil aesUtil = new AesUtil(); + String system = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "system"); + String AES = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "AES"); + String EHSQUrl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "EHSQUrl"); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + String date = sdf.format(new Date()); + String s1 = date.replaceAll("-", "").replaceAll(" ", "").replaceAll(":", ""); + + //System.out.println("时间>>>>>>>>>>>>" + s1); + String data = system + "##" + s1; + String encrypt = aesUtil.encrypt(data, AES); // 获取加密之后的秘钥 + JSONObject jsonObject = new JSONObject(new LinkedHashMap<>()); + jsonObject.put("system", system); + jsonObject.put("token", encrypt); + jsonObject.put("infos", jsonArray); + HttpUtil httpUtil = new HttpUtil(); + //System.out.println(plName+"发送EHSQ参数>>>>>" + jsonObject); + String s = httpUtil.sendPost(jsonObject, EHSQUrl); + //System.out.println(plName+"发送EHSQ结果>>>>>" + s); + + return s; + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/SynFileStateJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/SynFileStateJob.java new file mode 100644 index 00000000..4e21c427 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/SynFileStateJob.java @@ -0,0 +1,54 @@ +package com.awspaas.user.apps.app.publis.job; + +import java.util.List; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +/** + * 定时刷新APP_ACT_COE_PAL_REPOSITORY表最新版本的标识EXT3,用于部门视图展示最新版本 + * @author Administrator + * + */ +public class SynFileStateJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + int count = 0; + long start = System.currentTimeMillis(); + System.err.println("刷新版本标识ID开始==========>"); + List palRepositoryModels = CoeProcessLevelDaoFacotory.createCoeProcessLevel() + .getAllCoeProcessLevelByWsId("7d3ca852-a0bd-42e6-80b1-3dcea6f55083"); + for (PALRepositoryModel palRepositoryModel : palRepositoryModels) { + // String methodId = palRepositoryModel.getMethodId(); + String id = palRepositoryModel.getId(); + String plVersionId = palRepositoryModel.getVersionId(); + String sqly = "SELECT ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLVERSIONID = '" + plVersionId + "'"; + List maps = DBSql.getMaps(sqly); + if (maps.size() > 1) { + + String sqlu = "SELECT ID FROM (SELECT ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLVERSIONID = '" + + plVersionId + "' AND ISPUBLISH ='1' ORDER BY PLVER DESC ) WHERE ROWNUM<2"; + String palId = DBSql.getString(sqlu); + if (UtilString.isNotEmpty(palId)) { + if (!id.equals(palId)) { + count += DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '0' WHERE ID = '"+id+"'"); + // continue; + } else { + count += DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET EXT5 = '1' WHERE ID = '"+id+"'"); + } + + } + } + + } + long end = System.currentTimeMillis(); + System.err.println("刷新版本标识ID结束==========>本次处理数据:" + count+"条,用时:"+(end-start)/1000+"秒"); + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/UpdateOaTaskJob.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/UpdateOaTaskJob.java new file mode 100644 index 00000000..86b8a9e9 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/publis/job/UpdateOaTaskJob.java @@ -0,0 +1,263 @@ +package com.awspaas.user.apps.app.publis.job; + +import java.io.IOException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.xml.soap.SOAPException; + +import org.apache.commons.lang3.StringUtils; +import org.dom4j.DocumentException; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.bpmn.engine.model.def.ProcessDefinition; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.HistoryTaskInstance; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.TaskInstance; +import com.actionsoft.bpms.commons.login.constant.LoginConst; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.SSOUtil; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.sdk.local.SDK; +import com.actionsoft.sdk.local.api.AppAPI; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.awspaas.user.apps.app.util.HttpClientUtils; +import com.awspaas.user.apps.app.util.UtilUrl; +import com.awspaas.user.apps.app.util.XmlDatasUtil; +/** + * 批量刷新oa归档状态 + * @author Administrator + * + */ +public class UpdateOaTaskJob implements IJob { + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + int count = 0; + long start = System.currentTimeMillis(); + List list = SDK.getHistoryTaskQueryAPI().processDefId("obj_fb1c7a54b98b412187388c8bab407362").list(); + for (HistoryTaskInstance historyTaskInstance : list) { + try { + count++; + System.err.println("批量刷新流程任务共"+list.size()+"条===>当前第:"+count+"条"); + String processInstId = historyTaskInstance.getProcessInstId(); + ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(processInstId); + if("end".equals(instanceById.getControlState())) { + String result = updatePending2(historyTaskInstance); + System.err.println("批量刷新流程"+historyTaskInstance.getTitle()+"===>"+result); + } + } catch (Exception e) { + System.err.println("批量刷新流程任务异常"+historyTaskInstance.getTitle()); + } + } + + long end = System.currentTimeMillis(); + System.err.println("刷新流程的历史任务完成=====>本次处理数据:" + count+"条,用时:"+(end-start)/1000+"秒"); + } + + /** + * 更新待办状态 + * + * @param taskInstance + * @param pec + */ + public String updatePending2(TaskInstance taskInstance) throws IOException, SOAPException, DocumentException { + if (taskInstance == null || "admin".equals(taskInstance.getTarget()) + || "active".equals(taskInstance.getControlState())) { + return ""; + } + + String processInstId = taskInstance.getProcessInstId(); + ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(processInstId); + if (instanceById == null) { + return ""; + } + + XmlDatasUtil xmlDatasUtil = new XmlDatasUtil(); + xmlDatasUtil.setExternal_system_ID("LCZD"); + + xmlDatasUtil.setOther_system_to_do_ID(taskInstance.getId()); + // System.out.println("instanceById>>>>>>>>"+instanceById); + BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true) + .addQuery("BINDID=", instanceById.getId()).detail(); + if (bo_act_coe_publish != null) { + xmlDatasUtil.setProcess_title(" 您有一条待办流程【" + bo_act_coe_publish.getString("PROCESS_TITLE") + "】,点击进行处理"); + } else { + xmlDatasUtil.setProcess_title(" 您有一条待办流程【" + instanceById.getTitle() + "】,点击进行处理"); + } + + // http://localhost:8089/portal/r/or?cmd=com.yili_form_page_open&processInstId=3505e654-9217-41cd-a31d-4971846b3219&taskInstId=8a71d75e-3ee0-43a2-a226-ecb01419319c&oauthName=oauthLogin&token=admin + String portalUrl = SDK.getPortalAPI().getPortalUrl(); + if (portalUrl.equals("http://10.114.11.135:8088/portal")) { + portalUrl = "https://bpm.yili.com:8088/portal/"; + } + + xmlDatasUtil.setPcurl("https://bpm.yili.com:8088/portal" + + "/r/or?cmd=com.yili_form_page_open&oauthName=oauthLogin&processInstId=" + instanceById.getId() + + "&taskInstId=" + taskInstance.getId() + "&openState=" + taskInstance.getState()); + xmlDatasUtil.setMobileurl("https://bpm.yili.com:8088/portal" + + "/r/or?cmd=com.yili_form_page_open&corpid=wwb0ae23173b140618&appAgentId=1000014&oauthName=wechat&processInstId=" + + instanceById.getId() + "&taskInstId=" + taskInstance.getId() + "&openState=" + + taskInstance.getState()); + + String target = taskInstance.getTarget(); + + // System.out.println("当前账户======》》》》"+target); + BO bo_eu_oa_reson = SDK.getBOAPI().query("BO_EU_OA_RESON", true).addQuery("WORKCODE=", target).detail(); + // System.out.println("bo>>>>>>>>>>>>>>"+bo_eu_oa_reson); + if (bo_eu_oa_reson != null) { + xmlDatasUtil.setTo_do_login_account(bo_eu_oa_reson.getString("LOGINID")); + } + SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");// 定义格式,不显示毫秒 + if (taskInstance.getBeginTime() != null) { + String str = df.format(taskInstance.getBeginTime()); + String substring = str.substring(str.indexOf(" "), str.length()); + xmlDatasUtil.setTo_do_creation_time(substring); + xmlDatasUtil.setTo_do_completion_time(df.format(taskInstance.getBeginTime()).substring( + df.format(taskInstance.getBeginTime()).indexOf(" "), + df.format(taskInstance.getBeginTime()).length())); + xmlDatasUtil.setCreatedate(str.substring(0, str.indexOf(" "))); + xmlDatasUtil.setDonedate(df.format(taskInstance.getBeginTime()).substring(0, + df.format(taskInstance.getBeginTime()).indexOf(" "))); + } else { + String str = df.format(new Date()); + String substring = str.substring(str.indexOf(" "), str.length()); + xmlDatasUtil.setTo_do_creation_time(substring); + xmlDatasUtil.setTo_do_completion_time(df.format(new Date()).substring(df.format(new Date()).indexOf(" "), + df.format(new Date()).length())); + xmlDatasUtil.setCreatedate(str.substring(0, str.indexOf(" "))); + xmlDatasUtil.setDonedate(df.format(new Date()).substring(0, df.format(new Date()).indexOf(" "))); + } + xmlDatasUtil.setTo_do_status("1"); + xmlDatasUtil.setTo_do_official_type("1"); + xmlDatasUtil.setViewtype("-2"); + String der = ""; + if (taskInstance.getReadTime() == null) { + der = df.format(new Date()); + } else { + der = df.format(taskInstance.getReadTime()); + } + xmlDatasUtil.setReceivedate(der.substring(0, der.indexOf(" "))); + xmlDatasUtil.setReceivetime(der.substring(der.indexOf(" "), der.length())); + xmlDatasUtil.setCurrentnodetype("1"); + if (instanceById != null) { + xmlDatasUtil.setRequestcode(instanceById.getId()); + xmlDatasUtil.setCurrentnodename(SDK.getRepositoryAPI() + .getProcessNode(instanceById.getProcessDefId(), taskInstance.getActivityDefId()).getName()); + // 调用App + String sourceAppId = instanceById.getAppId(); + // aslp服务地址 + String aslp = "aslp://com.actionsoft.apps.processtrends/processNodeInfoASLP"; + // 参数定义列表 + Map params = new HashMap(); + // 流程实例id,必填 + params.put("processInstId", instanceById.getId()); + // ,必填 + String sessionId = new SSOUtil().registerClientSessionNoPassword(taskInstance.getTarget(), + LoginConst.DEFAULT_LANG, "127.0.0.1", LoginConst.DEVICE_PC); + params.put("sid", sessionId); + AppAPI appAPI = SDK.getAppAPI(); + // 流程节点数据 + ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params); + String username = ""; + String userid = ""; + if (ro.isOk()) { + String data = ro.getData().toString(); + JSONObject jsonObject = JSONObject.parseObject(data); + JSONArray jsonArray = JSONArray.parseArray(jsonObject.getString("processBudgetModelList")); + if (!jsonArray.isEmpty()) { + for (int i = 0; i < jsonArray.size(); i++) { + String filename = jsonArray.getJSONObject(i).getString("executor"); + String userid2 = jsonArray.getJSONObject(i).getString("userid2"); + username += filename + " "; + userid += userid2 + " "; + } + } + } + xmlDatasUtil.setNooperator(username); + } + xmlDatasUtil.setWorkcode(""); + ProcessDefinition processDefinition = SDK.getRepositoryAPI() + .getProcessDefinition(instanceById.getProcessDefId()); + String processName = processDefinition.getName(); + xmlDatasUtil.setWorkflowname(processName); + if (bo_eu_oa_reson != null) { + xmlDatasUtil.setCreaterhrcode(bo_eu_oa_reson.getString("LOGINID")); + + } + + xmlDatasUtil.setCreaterworkcode(""); + HttpClientUtils httpClientUtil = new HttpClientUtils(); + String taskurl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "taskurl"); + String s = httpClientUtil.SendPend(taskurl, xmlDatasUtil); + // System.out.println("已办查看是否修改"); + BO bo = new BO(); + bo.set("OUTSYSID", xmlDatasUtil.getExternal_system_ID()); + bo.set("TODOID", xmlDatasUtil.getOther_system_to_do_ID()); + bo.set("CONTENT", xmlDatasUtil.getProcess_title()); + bo.set("PCURL", xmlDatasUtil.getPcurl()); + bo.set("MOBILEURL", xmlDatasUtil.getMobileurl()); + bo.set("HRCODE", xmlDatasUtil.getTo_do_login_account()); + bo.set("STATUS", xmlDatasUtil.getTo_do_status()); + bo.set("WFTYPE", xmlDatasUtil.getTo_do_official_type()); + bo.set("VIEWTYPE", xmlDatasUtil.getViewtype()); + bo.set("CREATEDATES", xmlDatasUtil.getCreatedate()); + bo.set("NEWCREATETIME", xmlDatasUtil.getTo_do_creation_time()); + bo.set("DONEDATE", xmlDatasUtil.getDonedate()); + bo.set("NEWDONETIME", xmlDatasUtil.getTo_do_status()); + bo.set("RECEIVEDATE", xmlDatasUtil.getReceivedate()); + bo.set("RECEIVETIME", xmlDatasUtil.getReceivetime()); + bo.set("CURRENTNODETYPE", xmlDatasUtil.getCurrentnodetype()); + bo.set("REQUESTCODE", xmlDatasUtil.getRequestcode()); + bo.set("CURRENTNODENAME", xmlDatasUtil.getCurrentnodename()); + bo.set("NOOPERATOR", xmlDatasUtil.getNooperator()); + bo.set("CREATERHRCODE", xmlDatasUtil.getCreaterhrcode()); + bo.set("WORKFLOWNAME", xmlDatasUtil.getWorkflowname()); + bo.set("OA_RESULT", s); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + bo.set("OA_DATE", sdf.format(new Date())); + if (taskInstance != null && StringUtils.isNotEmpty(taskInstance.getTarget())) { + SDK.getBOAPI().createDataBO("BO_EU_OA_MOBILEURL", bo, UserContext.fromUID(taskInstance.getTarget())); + } else { + SDK.getBOAPI().createDataBO("BO_EU_OA_MOBILEURL", bo, UserContext.fromUID("admin")); + } + + if (s.contains("success")) { + // System.out.println("发送待办任务完成,请去OA系统上查看是否传输完成"); + } else { + // System.out.println("发送待办任务失败,请联系管理员查看是否出现错误"); + // System.out.println("错误提示>>>>>>>>>>>>"+s); + BO bo_eu_faid_data = SDK.getBOAPI().query("BO_EU_FAID_DATA").addQuery("TASK_ID=", taskInstance.getId()) + .detail(); + if (bo_eu_faid_data == null) { + ProcessInstance processInstance = SDK.getProcessAPI() + .createProcessInstance("obj_ef1918ca1f9c46948f56bd5f77f4e646", "admin", "admin" + "失败更新待办"); + BO bo_faid = new BO(); + bo_faid.set("CHANGED", "2"); + bo_faid.set("TASK_ID", taskInstance.getId()); + if (instanceById != null) { + bo_faid.set("PROCESS_ID", instanceById.getId()); + } + UserContext userContext = UserContext.fromUID("admin"); + SDK.getBOAPI().create("BO_EU_FAID_DATA", bo_faid, processInstance, userContext); + SDK.getProcessAPI().start(processInstance); + } + } + + return s; + } + public void readOa(String taskId) throws Exception { + HttpClientUtils httpClientUtil = new HttpClientUtils(); + String taskurl= SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "taskurl"); + String s = httpClientUtil.readOa(taskurl, taskId); + //System.out.println("是否更新成已读了》》》》》》》》》》"+s); + } + + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/controller/SyncFrameData_job_Controller.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/controller/SyncFrameData_job_Controller.java new file mode 100644 index 00000000..2df7260d --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/controller/SyncFrameData_job_Controller.java @@ -0,0 +1,367 @@ +package com.awspaas.user.apps.app.reportform.controller; + +import java.sql.Timestamp; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.dao.CoeProcessLevelDaoFacotory; +import com.actionsoft.apps.coe.pal.pal.repository.dao.PALRepositoryPropertyDao; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.server.bind.annotation.Controller; +import com.actionsoft.bpms.server.bind.annotation.Mapping; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONObject; +import com.awspaas.user.apps.app.util.RepositoryAttribute; + +/* + * 更新架构表 + */ +@Controller +public class SyncFrameData_job_Controller { + @Mapping("com.awspaas.user.apps.app.reportform.controller.SyncFrameData_job_Controller") + public ResponseObject CheckUser(String sid,String fileName) { + ResponseObject ro = ResponseObject.newOkResponse(); + syncFileData(); + sre2(); + ro.put("reslut", "ok"); + return ro; + } + + @Mapping("com.awspaas.user.apps.app.reportform.controller.SyncFrameData_job_Controller_resul") + public ResponseObject CheckUser2(String sid,String fileName) { + System.err.println("刷新模型架构属性开始=============>"); + ResponseObject ro = ResponseObject.newOkResponse(); + sre(); + sre2(); + ro.put("reslut", "ok"); + return ro; + } + + + + //刷新架构名称 + public void sre() { + List palRepositoryModels = CoeProcessLevelDaoFacotory.createCoeProcessLevel() + .getAllCoeProcessLevelByWsId("7d3ca852-a0bd-42e6-80b1-3dcea6f55083"); + for (PALRepositoryModel palRepositoryModel : palRepositoryModels) { + BO bo = new BO(); + + boolean isResul = true; + String name = palRepositoryModel.getName(); + String methodId = palRepositoryModel.getMethodId(); + String uuid = palRepositoryModel.getId(); + bo.set("PLNAME", name); + bo.set("PLID", uuid); + if (("process.epc".equals(methodId) || "control.policy".equals(methodId) + || "process.flowchart".equals(methodId))|| "data.form".equals(methodId)) { + try { + String frameworkName1 = ""; + //String frameworkName2 = ""; + //String frameworkName3 = ""; + // 获取一级架构名称 + String parentId1 = palRepositoryModel.getParentId(); + //String parentId2 = ""; + //String parentId3 = ""; + PALRepositoryModel parentMode1 = PALRepositoryCache.getCache().get(parentId1); + if (parentMode1 != null) { + frameworkName1 = parentMode1.getName(); + /* + * parentId2 = parentMode1.getParentId(); PALRepositoryModel parentMode2 = + * PALRepositoryCache.getCache().get(parentId2); if (parentMode2 != null) { + * frameworkName2 = parentMode2.getName(); parentId3 = + * parentMode2.getParentId(); PALRepositoryModel parentMode3 = + * PALRepositoryCache.getCache().get(parentId3); if (parentMode3 != null) { + * frameworkName3 = parentMode3.getName(); + * + * } } + */ + + } + /* + * String update = "UPDATE App_Act_Coe_Pal_Repository SET PLPARENTID = '" + + * maprightId + "' WHERE ID ='" + uuid + "'"; + */ + // int update2 = DBSql.update(update); + PALRepositoryPropertyDao propertyDao = new PALRepositoryPropertyDao(); + if (isResul) { + String name1 = frameworkName1.substring(frameworkName1.lastIndexOf(".") + 2).trim(); + // 设置三级架构名称 + bo.set("L3", name1); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L3", name1); + // 设置二级架构名称 + String sql2 = "SELECT PLPARENTID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + parentId1 + + "'"; + String prd2 = DBSql.getString(sql2); + String sqlp2 = "SELECT PLNAME,ID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + prd2 + "'"; + RowMap map2 = DBSql.getMap(sqlp2); + if (map2 != null) { + String uuid2 = map2.getString("ID"); + String plName2 = map2.getString("PLNAME"); + String name2 = plName2.substring(plName2.lastIndexOf(".") + 2).trim(); + bo.set("L2", name2); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L2", name2); + + // 设置一级架构名称 + String sql1 = "SELECT PLPARENTID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + uuid2 + + "'"; + String prd1 = DBSql.getString(sql1); + String sqlp1 = "SELECT PLNAME,ID FROM App_Act_Coe_Pal_Repository WHERE ID ='" + prd1 + + "'"; + RowMap map1 = DBSql.getMap(sqlp1); + + if (map1 != null) { + String plName1 = map1.getString("PLNAME"); + String name3 = plName1.substring(plName1.lastIndexOf(".") + 2).trim(); + bo.set("L1", name3); + bo.set("LEVELS", "4"); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L1", name3); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '4' WHERE ID ='"+uuid+"' AND PLMETHODID != 'process.framework'"); + } else { + bo.set("L1", name1); + bo.set("L2", name2); + bo.set("L3", "/"); + bo.set("LEVELS", "3"); + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '3' WHERE ID ='"+uuid+"' AND PLMETHODID != 'process.framework'"); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L3", "/"); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L1", name2); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L2", name1); + } + + } else { + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '2' WHERE ID ='"+uuid+"' AND PLMETHODID != 'process.framework'"); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L2", "/"); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L3", "/"); + bo.set("L1", name1); + bo.set("L2", "/"); + bo.set("L3", "/"); + bo.set("LEVELS", "2"); + propertyDao.updatePropertyByPropertyId(uuid, "Process_Architecture_L1", name1); + + } + + bo.set("RESULT", "成功"); + //System.err.println("============》"+palRepositoryModel.getName()); + } + } catch (Exception e) { + + bo.set("RESULT", "失败"); + //System.err.println("刷新架构异常文件======》"+palRepositoryModel.getName()); + // TODO: handle exception + }finally { + + SDK.getBOAPI().createDataBO("BO_EU_PAL_RES_FRARMWORK", bo, UserContext.fromUID("admin")); + + } + + + + } + } + System.err.println("刷新模型架构属性结束=============>"); + } + + + //更新架构层级错误 + public void sre2() { + int count = 0; + String slq = "SELECT * FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLMETHODID = 'process.framework'"; + List maps2 = DBSql.getMaps(slq); + for (RowMap rowMap : maps2) { + String plname = rowMap.getString("PLNAME"); + String plId = rowMap.getString("ID"); + String[] split = plname.split("\\."); + if(split.length>2) { + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '3',EXT5 = '1' WHERE ID = '"+plId+"'"); + }else{ + if(split.length>1) { + String ff = split[1]; + if(ff.contains("0")) { + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '1',EXT5 = '1' WHERE ID = '"+plId+"'"); + }else { + DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '2',EXT5 = '1' WHERE ID = '"+plId+"'"); + } + } + } + /* + * String sql = + * "SELECT PLLEVEL FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLPARENTID = '"+plId+ + * "'"; String plLevel = DBSql.getString(sql); + * if(UtilString.isNotEmpty(plLevel)) { + * DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '"+(Integer. + * parseInt(plLevel)-1)+""+"' WHERE ID = '"+plId+"'"); }else { + * + * + * } + */ + + } + + + String sql = "SELECT PLLEVEL,ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLMETHODID = 'process.framework'"; + List maps = DBSql.getMaps(sql); + for (RowMap rowMap : maps) { + String id = rowMap.getString("ID"); + String level = rowMap.getString("PLLEVEL"); + //count+=DBSql.update("UPDATE APP_ACT_COE_PAL_REPOSITORY SET PLLEVEL = '"+level+"' WHERE ID = '"+id+"'"); + count+=DBSql.update("UPDATE BO_EU_PAL_FRAME SET FRAMELEVEL = '"+level+"' WHERE FRAMEID = '"+id+"'"); + } + System.err.println("共刷新数据=====》"+count); + + + } + public void syncFileData() { + SDK.getLogAPI().consoleInfo("同步架构表信息开始执行"); + long startTime = System.currentTimeMillis(); + Date nowDateJ = new Date(System.currentTimeMillis()); + SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + String format = sdf2.format(nowDateJ); + SDK.getLogAPI().consoleInfo("开始时间" + format); + String wsId = "7d3ca852-a0bd-42e6-80b1-3dcea6f55083"; + //总文件集合 + String process = "process"; + String org = "org"; + String data = "data"; + String itsystem = "itsystem"; + String control = "control"; + List palProcessList = new ArrayList<>(); + Set palProcessIds = new HashSet<>(); + List palOrgList = new ArrayList<>(); + Set palOrgIds = new HashSet<>(); + List palDataList = new ArrayList<>(); + Set palDataIds = new HashSet<>(); + List palItsystemList = new ArrayList<>(); + Set palItsystemIds = new HashSet<>(); + List palControlList = new ArrayList<>(); + Set palControlIds = new HashSet<>(); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, process, palProcessList, palProcessIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, org, palOrgList, palOrgIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, data, palDataList, palDataIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, itsystem, palItsystemList, palItsystemIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, control, palControlList, palControlIds); + //合并为文件总量list + List palTotalList = new ArrayList<>(); + palTotalList.addAll(palProcessList); + palTotalList.addAll(palOrgList); + palTotalList.addAll(palDataList); + palTotalList.addAll(palItsystemList); + palTotalList.addAll(palControlList); + SDK.getLogAPI().consoleInfo("process下文件数量:" + palProcessList.size()); + SDK.getLogAPI().consoleInfo("org下文件数量:" + palOrgList.size()); + SDK.getLogAPI().consoleInfo("data下文件数量:" + palDataList.size()); + SDK.getLogAPI().consoleInfo("itsystem下文件数量:" + palItsystemList.size()); + SDK.getLogAPI().consoleInfo("control下文件数量:" + palControlList.size()); + SDK.getLogAPI().consoleInfo("文件总数量:" + palTotalList.size()); + //过滤出角色文件 +/* List palRoleFileList = palOrgList.stream().filter(x -> x.getMethodId().equals("org.role")).collect(Collectors.toList()); + SDK.getLogAPI().consoleInfo("角色文件数量:" + palRoleFileList.size());*/ + + //初始化架构、文件、节点 old/new/del/fromDataID/dis list + ArrayList> oldFrameDataMaps = new ArrayList<>(); + ArrayList> newFrameDataMaps = new ArrayList<>(); + ArrayList> delFrameDataMaps = new ArrayList<>(); + ArrayList fromFrameDataIDMaps = new ArrayList<>(); + HashMap dataMap = new HashMap<>(); + //获取底表数据 + List frameIdList = DBSql.getList("SELECT FRAMEID FROM BO_EU_PAL_FRAME", String.class); + SDK.getLogAPI().consoleInfo("架构底表长度:" + frameIdList.size()); + //系统字段 + String uuId = SDK.getRuleAPI().executeAtScript("@uuid()"); + //遍历总文件集合 + for (PALRepositoryModel fileModel : palTotalList) { + String PLMETHODID = fileModel.getMethodId(); + String FILEID = fileModel.getId(); + String PLNAME = fileModel.getName(); + Timestamp MODIFYDATETIME = fileModel.getModifyDate(); + if (PLMETHODID.equals("process.framework")) { + //更新/新增架构 + Integer FRAMELEVEL = fileModel.getLevel(); + String FRAMETYPE = null; + String FRAMEPARENTID = fileModel.getParentId(); + Integer FRAMEORDERINDEX = fileModel.getOrderIndex(); + Map frameAttrs = new HashMap<>(); + try { + frameAttrs = new RepositoryAttribute().queryRepositoryAttributeById(FILEID); + } catch (Exception e) { + SDK.getLogAPI().consoleInfo("更新架构时文件ID" + FILEID + "数据异常"); + } + if (null != frameAttrs && !frameAttrs.isEmpty()) { + JSONObject Frame_type = frameAttrs.get("Frame_type"); + FRAMETYPE = Frame_type.getString("text"); + } + + fromFrameDataIDMaps.add(FILEID); + + if (frameIdList.contains(FILEID)) { + dataMap = new HashMap<>(); + nowDateJ = new Date(System.currentTimeMillis()); + Timestamp nowDateTime = new Timestamp(nowDateJ.getTime()); + dataMap.put("FRAMEID", FILEID); + dataMap.put("UPDATEDATE", nowDateTime); + dataMap.put("FRAMENAME", PLNAME); + dataMap.put("FRAMELEVEL", FRAMELEVEL); + dataMap.put("FRAMETYPE", FRAMETYPE); + dataMap.put("FRAMEPARENTID", FRAMEPARENTID); + dataMap.put("FRAMEORDERINDEX", FRAMEORDERINDEX); + dataMap.put("MODIFYDATETIME", MODIFYDATETIME); + oldFrameDataMaps.add(dataMap); + } else { + dataMap = new HashMap<>(); + uuId = SDK.getRuleAPI().executeAtScript("@uuid()"); + dataMap.put("uuId", uuId); + dataMap.put("FRAMEID", FILEID); + dataMap.put("FRAMENAME", PLNAME); + dataMap.put("FRAMELEVEL", FRAMELEVEL); + dataMap.put("FRAMETYPE", FRAMETYPE); + dataMap.put("FRAMEPARENTID", FRAMEPARENTID); + dataMap.put("FRAMEORDERINDEX", FRAMEORDERINDEX); + dataMap.put("MODIFYDATETIME", MODIFYDATETIME); + newFrameDataMaps.add(dataMap); + } + } else { + + } + } + + //执行批量新增、修改、删除 + if (null != frameIdList && !frameIdList.isEmpty()) { + for (String frameIdOfList : frameIdList) { + if (!fromFrameDataIDMaps.contains(frameIdOfList)) { + dataMap = new HashMap<>(); + dataMap.put("FRAMEID", frameIdOfList); + delFrameDataMaps.add(dataMap); + } + } + } + if (null != oldFrameDataMaps && !oldFrameDataMaps.isEmpty()) { + DBSql.batchUpdate("UPDATE BO_EU_PAL_FRAME SET" + + " FRAMENAME=:FRAMENAME, FRAMELEVEL=:FRAMELEVEL, FRAMETYPE=:FRAMETYPE, FRAMEPARENTID=:FRAMEPARENTID, FRAMEORDERINDEX=:FRAMEORDERINDEX, MODIFYDATETIME=:MODIFYDATETIME, UPDATEDATE=:UPDATEDATE WHERE FRAMEID=:FRAMEID", oldFrameDataMaps); + } + if (null != newFrameDataMaps && !newFrameDataMaps.isEmpty()) { + DBSql.batchUpdate("INSERT INTO BO_EU_PAL_FRAME(ID,FRAMEID,FRAMENAME,FRAMELEVEL,FRAMETYPE,FRAMEPARENTID,FRAMEORDERINDEX,MODIFYDATETIME) " + + " VALUES(:uuId, :FRAMEID, :FRAMENAME, :FRAMELEVEL, :FRAMETYPE, :FRAMEPARENTID, :FRAMEORDERINDEX, :MODIFYDATETIME)", newFrameDataMaps); + } + if (null != delFrameDataMaps && !delFrameDataMaps.isEmpty()) { + DBSql.batchUpdate("DELETE FROM BO_EU_PAL_FRAME WHERE FRAMEID=:FRAMEID", delFrameDataMaps); + } + SDK.getLogAPI().consoleInfo("新增架构" + newFrameDataMaps.size()); + SDK.getLogAPI().consoleInfo("修改架构" + oldFrameDataMaps.size()); + SDK.getLogAPI().consoleInfo("删除架构" + delFrameDataMaps.size()); + long endTime = System.currentTimeMillis(); + SDK.getLogAPI().consoleInfo("结束时间" + endTime); + SDK.getLogAPI().consoleInfo("运行时间" + (endTime - startTime)); + } + + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/controller/SyncNodeData_jo_Controller.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/controller/SyncNodeData_jo_Controller.java new file mode 100644 index 00000000..aa333da9 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/controller/SyncNodeData_jo_Controller.java @@ -0,0 +1,1630 @@ +package com.awspaas.user.apps.app.reportform.controller; + +import java.text.NumberFormat; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.time.Period; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryPropertyCache; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryPropertyModel; +import com.actionsoft.bpms.api.Utils; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.org.model.UserModel; +import com.actionsoft.bpms.server.RequestParams; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.server.bind.annotation.Controller; +import com.actionsoft.bpms.server.bind.annotation.Mapping; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.awspaas.user.apps.app.util.GetNodesUtil; +import com.awspaas.user.apps.app.util.TreeUtil; + +/* + * 批量发布文件是过滤掉不发布的文件 + */ +@Controller +public class SyncNodeData_jo_Controller { + @Mapping("com.awspaas.user.apps.app.reportform.controller.SyncNodeData_jo_Controller") + public JSONObject CheckUser(String sid,String fileName) { + JSONObject result = new JSONObject(); + syncNodeData(); + result.put("reslut", "ok"); + return result; + } + + public void syncNodeData() { + DBSql.update("delete from BO_EU_FILE_OPERATIONNODE"); + + /** + * 文件制度管理看板同步 + */ + try { + System.out.println("文件数量同步开始======>"); + deptFileCount(); + } catch (Exception e) { + System.out.println("===文件数量同步异常=>"+e.getMessage()); + } + try { + System.out.println("部门文件年度更新率同步开始======>"); + deptFileYearRenewRate(); + } catch (Exception e) { + System.out.println("===部门文件年度更新率同步异常=>"+e.getMessage()); + + } + try { + System.out.println("部门文件年度更新情况同步开始======>"); + deptFileYearRenewSituation(); + } catch (Exception e) { + System.out.println("===部门文件年度更新情况同步异常=>"+e.getMessage()); + } + try { + System.out.println("文件发布时间分布同步开始======>"); + filePubTimeDistribution(); + } catch (ParseException e) { + System.out.println("===文件发布时间分布同步异常=>"+e.getMessage()); + } + + + /** + * 流程连接度统计 + */ + processCONND(); + processCONNDDetail(); + + + /** + * 节点看板同步 + */ + nodeAnalysis(); + nodeAnalysisTerms(); + deptNodeAttrApproval(); + deptNodeAttrOperation(); + + + } + + //-------------------------------筛选条件--------------------------------- + + + /** + * @methodName: + * @param: + * @return: + * @description:流程连接度分析 + * @auther: Lizj + * @date: 2022/6/16 16:58 + */ + public String processCONND() { + JSONObject ro = new JSONObject(); + List fileRowMaps = DBSql.getMaps("SELECT FILEID,PUBDEPT,LEADPROCESS,REARPROCESS FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1' AND PLMETHODID='process.epc'"); + //查询流程前后置前后置情况 + Integer fileTotalNum = 0; + Integer prepostNum = 0; + Integer preNum = 0; + Integer postNum = 0; + Integer noprepostNum = 0; + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + + if (null != fileRowMaps && !fileRowMaps.isEmpty()) { + for (RowMap fileRowMap : fileRowMaps) { + fileTotalNum += 1; + String LEADPROCESS = fileRowMap.getString("LEADPROCESS"); + String REARPROCESS = fileRowMap.getString("REARPROCESS"); + if (LEADPROCESS.equals("1") && REARPROCESS.equals("1")) { + prepostNum += 1; + } + if (LEADPROCESS.equals("1") && REARPROCESS.equals("0")) { + preNum += 1; + } + if (LEADPROCESS.equals("0") && REARPROCESS.equals("1")) { + postNum += 1; + } + if (LEADPROCESS.equals("0") && REARPROCESS.equals("0")) { + noprepostNum += 1; + } + } + } + //前置后置、单前置、单后置、无前置后置数量占比 + String prepostRatio = null; + String preRatio = null; + String postRatio = null; + String noprepostRatio = null; + if (fileTotalNum!=0) { + prepostRatio = numberformat.format((float) prepostNum / (float) fileTotalNum * 100); + preRatio = numberformat.format((float) preNum / (float) fileTotalNum * 100); + postRatio = numberformat.format((float) postNum / (float) fileTotalNum * 100); + noprepostRatio = numberformat.format((float) noprepostNum / (float) fileTotalNum * 100); + } else { + prepostRatio = "0"; + preRatio = "0"; + postRatio = "0"; + noprepostRatio = "0"; + } + + ro.put("prepostRatio", prepostRatio); + ro.put("preRatio", preRatio); + ro.put("postRatio", postRatio); + ro.put("noprepostRatio", noprepostRatio); + Set keySet = ro.keySet(); + for (String name : keySet) { + BO bo = new BO(); + bo.set("TYPE", "流程连接度分析"); + bo.set("NAME", name); + bo.set("NODEDATA", ro.get(name)); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo,UserContext.fromUID("admin")); + } + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:事业部、职能部门流程连接度有前后置和无前后置占比 + * @auther: Lizj + * @date: 2022/6/20 10:56 + */ + public String processCONNDDetail() { + JSONObject ro = new JSONObject(); + ArrayList deptIDList = new ArrayList<>(); + JSONArray bdPrepostRatioMaps = new JSONArray(); + JSONArray bdNoprepostRatioMaps = new JSONArray(); + JSONArray fdPrepostRatioMaps = new JSONArray(); + JSONArray fdNoprepostRatioMaps = new JSONArray(); + JSONObject ratioMap = new JSONObject(); + //事业部和职能部门ID,名称 list + List fileRowMaps = DBSql.getMaps("SELECT FILEID,PUBDEPT,LEADPROCESS,REARPROCESS FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1' AND PLMETHODID='process.epc'"); + List BDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + + //文件总数量,有前后置流程数量、无前后置流程数量 + Integer fileTotalNum = 0; + Integer prepostNum = 0; + Integer noprepostNum = 0; + //有前后置占比、无前后置占比 + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + String prepostRatio = null; + String noprepostRatio = null; + + if (null!=BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + fileTotalNum = 0; + prepostNum = 0; + noprepostNum = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileTotalNum += 1; + String LEADPROCESS = fileRowMap.getString("LEADPROCESS"); + String REARPROCESS = fileRowMap.getString("REARPROCESS"); + if (LEADPROCESS.equals("1") && REARPROCESS.equals("1")) { + prepostNum += 1; + } + if (LEADPROCESS.equals("0") && REARPROCESS.equals("0")) { + noprepostNum += 1; + } + } + } + } + } + if (fileTotalNum!=0) { + prepostRatio = numberformat.format((float) prepostNum / (float) fileTotalNum * 100); + noprepostRatio = numberformat.format((float) noprepostNum / (float) fileTotalNum * 100); + } else { + prepostRatio = "0"; + noprepostRatio = "0"; + } + ratioMap = new JSONObject(); + ratioMap.put("deptID",bdDeptID); + ratioMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + ratioMap.put("ratio",prepostRatio); + bdPrepostRatioMaps.add(ratioMap); + ratioMap = new JSONObject(); + ratioMap.put("deptID",bdDeptID); + ratioMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + ratioMap.put("ratio",noprepostRatio); + bdNoprepostRatioMaps.add(ratioMap); + } + } + if (null!=FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + fileTotalNum = 0; + prepostNum = 0; + noprepostNum = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileTotalNum += 1; + String LEADPROCESS = fileRowMap.getString("LEADPROCESS"); + String REARPROCESS = fileRowMap.getString("REARPROCESS"); + if (LEADPROCESS.equals("1") && REARPROCESS.equals("1")) { + prepostNum += 1; + } + if (LEADPROCESS.equals("0") && REARPROCESS.equals("0")) { + noprepostNum += 1; + } + } + } + } + } + if (fileTotalNum!=0) { + prepostRatio = numberformat.format((float) prepostNum / (float) fileTotalNum * 100); + noprepostRatio = numberformat.format((float) noprepostNum / (float) fileTotalNum * 100); + } else { + prepostRatio = "0"; + noprepostRatio = "0"; + } + ratioMap = new JSONObject(); + ratioMap.put("deptID",fdDeptID); + ratioMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + ratioMap.put("ratio",prepostRatio); + fdPrepostRatioMaps.add(ratioMap); + ratioMap = new JSONObject(); + ratioMap.put("deptID",fdDeptID); + ratioMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + ratioMap.put("ratio",noprepostRatio); + fdNoprepostRatioMaps.add(ratioMap); + } + } + + ro.put("BDY", bdPrepostRatioMaps); + ro.put("BDN", bdNoprepostRatioMaps); + ro.put("FDY", fdPrepostRatioMaps); + ro.put("FDN", fdNoprepostRatioMaps); + Set keySet = ro.keySet(); + for (String name : keySet) { + BO bo = new BO(); + bo.set("TYPE", "流程连接度-前后置占比"); + bo.set("NAME", name); + bo.set("NODEDATA", ro.get(name)); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo,UserContext.fromUID("admin")); + } + return ro.toString(); + } + + + //-------------------------------筛选条件--------------------------------- + /** + * @methodName: + * @param: + * @return: + * @description:流程节点分析筛选条件:所属单位、所属领域 + * @auther: Lizj + * @date: 2022/7/15 15:56 + */ + public String nodeAnalysisTerms() { + long start = System.currentTimeMillis(); + HashMap ro = new HashMap(); + + //所属单位 + + List deptMaps = DBSql.getMaps("SELECT ID,PARENTDEPARTMENTID,DEPARTMENTNAME,LAYER,ORDERINDEX FROM ORGDEPARTMENT" + + " WHERE COMPANYID='8911e732-b42a-4556-853f-ad32761bcbee' AND CLOSED='0' AND ID not in ('5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe','e79281b1-2f81-4895-b30e-9f96e9ad0e2c','53d3076d-cd2d-4f5b-bacb-8e93273e9f44','9c795620-93c6-485c-b9fa-93536c988da8','12d42abb-a58f-411b-8c71-0a421a27eafc','65048aee-157f-49f2-a2dc-5903dd26f519')"); + //demo3 + //demo3 + //3e74f14d-852f-4f6f-a809-08a56697f103 + //本地 + //d7087d5b-ab29-4514-a7e7-79379f6842a2 + //正式 + //8911e732-b42a-4556-853f-ad32761bcbee + String nodeType = null; + ArrayList deptNodes = new ArrayList<>(); + for (RowMap deptMap : deptMaps) { + HashMap deptNode = new HashMap<>(); + nodeType = "dept"; + deptNode.put("ID",deptMap.getString("ID")); + deptNode.put("PARENTID",deptMap.getString("PARENTDEPARTMENTID")); + deptNode.put("name",deptMap.getString("DEPARTMENTNAME")); + deptNode.put("ORDERINDEX",deptMap.getString("ORDERINDEX")); + deptNode.put("TLEVEL",deptMap.getString("LAYER")); + deptNode.put("nodeType", nodeType); + deptNodes.add(deptNode); + } + List deptTreeNodes = TreeUtil.buildTree("1",deptNodes,"0","dept","3",null); + //所属领域 + ArrayList frameList = new ArrayList<>(); + ArrayList fieldMaps = new ArrayList<>(); + List L1Maps = DBSql.getMaps("SELECT FRAMEID,FRAMENAME,FRAMETYPE,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMELEVEL=1 AND FRAMETYPE IS NOT NULL "); + String hasRoot = "Y"; + if (null != L1Maps && !L1Maps.isEmpty()) { + for (RowMap l1Map : L1Maps) { + String L1ID = l1Map.getString("FRAMEID"); + frameList = new ArrayList<>(); + frameList = GetNodesUtil.getChildFrame(L1ID, hasRoot, frameList); + fieldMaps.addAll(frameList); + } + } + ArrayList fieldNodes = new ArrayList<>(); + for (Map fieldMap : fieldMaps) { + HashMap fieldNode = new HashMap<>(); + fieldNode.put("ID", String.valueOf(fieldMap.get("FRAMEID"))); + fieldNode.put("PARENTID", String.valueOf(fieldMap.get("FRAMEPARENTID"))); + fieldNode.put("name", String.valueOf(fieldMap.get("FRAMENAME"))); + fieldNode.put("ORDERINDEX", Integer.valueOf(String.valueOf(fieldMap.get("FRAMEORDERINDEX")))); + fieldNode.put("TLEVEL", Integer.valueOf(String.valueOf(fieldMap.get("FRAMELEVEL")))); + fieldNodes.add(fieldNode); + } + List fieldTreeNodes = TreeUtil.buildTree("1",fieldNodes, "process", null, null, null); + + + JSONObject deptJson = new JSONObject(); + JSONArray deptTreeNodesArry = new JSONArray(); + for (Map map : deptTreeNodes) { + Set keySet = map.keySet(); + for (Object object : keySet) { + String key = object.toString(); + String value = map.get(key).toString(); + deptJson.put(key, value); + } + deptTreeNodesArry.add(deptJson); + } + JSONObject fieldTreeNodesJson = new JSONObject(); + JSONArray fieldTreeNodesArry = new JSONArray(); + for (Map map : fieldTreeNodes) { + Set keySet = map.keySet(); + for (Object object : keySet) { + String key = object.toString(); + String value = map.get(key).toString(); + fieldTreeNodesJson.put(key, value); + } + fieldTreeNodesArry.add(fieldTreeNodesJson); + } + + //System.out.println("======部门Map=====>"+deptTreeNodes); + //System.out.println("======架构Map=====>"+fieldTreeNodes); + + + BO bo1 = new BO(); + bo1.set("TYPE", "节点分析筛选条件"); + bo1.set("NAME", "deptTreeNodes"); + bo1.set("NODEDATA", deptTreeNodes); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo1,UserContext.fromUID("admin")); + + BO bo2 = new BO(); + bo2.set("TYPE", "节点分析筛选条件"); + bo2.set("NAME", "fieldTreeNodes"); + bo2.set("NODEDATA", fieldTreeNodes); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo2,UserContext.fromUID("admin")); + + ro.put("deptTreeNodes", deptTreeNodes); + ro.put("fieldTreeNodes", fieldTreeNodes); + long end = System.currentTimeMillis(); + + + + System.out.println("======加载筛选框用时=====>"+(end-start)/1000); + return ro.toString(); + } + + + + //-------------------------------文件管理--------------------------------- + /** + * @methodName: + * @param: + * @return: + * @description:部门文件数量 + * @auther: Lizj + * @date: 2022/6/28 22:43 + */ + + public String deptFileCount() { + /*文件数量=当日生效文档总数*/ + ResponseObject ro = ResponseObject.newOkResponse(); + ArrayList deptIDList = new ArrayList<>(); + JSONObject deptFileCountMap = new JSONObject(); + JSONArray BDFileCountMaps = new JSONArray(); + JSONArray FDFileCountMaps = new JSONArray(); + Integer fileCount = 0; + //事业部和职能部门ID,名称 list + //List fileRowMaps = DBSql.getMaps("SELECT FILEID,PUBDEPT,PLPARENTID,PLMETHODID,POLICYTYPE,FILESTATE,VIEWCOUNT FROM BO_EU_PAL_FILE1 WHERE PLMETHODID='process.epc' OR PLMETHODID='process.flowchart' OR PLMETHODID='control.policy' OR PLMETHODID='data.form'"); + List fileRowMaps = DBSql.getMaps("SELECT ID AS FILEID,EXT6 AS PUBDEPT FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = '1' AND EXT5 = '1' AND PLMETHODID in ('process.epc','process.flowchart','control.policy','data.form')"); + List BDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + if (null!=BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + deptFileCountMap = new JSONObject(); + fileCount = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList.add(bdDeptID); + //deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + getDeptIdList(deptIDList, bdDeptID); + System.err.println("========deptIDList=========="+deptIDList); + //deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileCount += 1; + } + } + } + } + deptFileCountMap.put("deptID",bdDeptID); + deptFileCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptFileCountMap.put("fileCount",fileCount); + BDFileCountMaps.add(deptFileCountMap); + } + } + if (null!=FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + deptFileCountMap = new JSONObject(); + fileCount = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList.add(fdDeptID); + //deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + getDeptIdList(deptIDList, fdDeptID); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileCount += 1; + } + } + } + } + deptFileCountMap.put("deptID",fdDeptID); + deptFileCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptFileCountMap.put("fileCount",fileCount); + FDFileCountMaps.add(deptFileCountMap); + } + } + ro.put("BDFileCount",BDFileCountMaps); + ro.put("FDFileCount",FDFileCountMaps); + + + BO bo1 = new BO(); + bo1.set("TYPE", "部门文件数量"); + bo1.set("NAME", "BDFileCount"); + bo1.set("NODEDATA", BDFileCountMaps); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo1,UserContext.fromUID("admin")); + BO bo2 = new BO(); + bo2.set("TYPE", "部门文件数量"); + bo2.set("NAME", "FDFileCount"); + bo2.set("NODEDATA", FDFileCountMaps); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo2,UserContext.fromUID("admin")); + return ro.toString(); + } + + + public void getDeptIdList(ArrayList deptIDList,String departmentId) { + DepartmentModel departmentById = SDK.getORGAPI().getDepartmentById(departmentId); + if (departmentById.isExistSubModelOfCache()) { + if (!departmentById.isClosed()) { + List subDepartments = SDK.getORGAPI().getSubDepartments(departmentById.getId()); + for (DepartmentModel departmentModel : subDepartments) { + if (!departmentModel.isClosed()) { + String id = departmentModel.getId(); + deptIDList.add(id); + if (SDK.getORGAPI().isExistSubDepartment(id)) { + getDeptIdList(deptIDList,id); + } + + } + + } + } + } + + } + + /** + * @methodName: + * @param: + * @return: + * @description:部门文件年度更新率 + * @auther: Lizj + * @date: 2022/6/28 22:49 + */ + + public String deptFileYearRenewRate() { + /* 年度更新率=(某单位年度新增文件+年度修订文件)/某单位当前文件总数 */ + ResponseObject ro = ResponseObject.newOkResponse(); + JSONObject renewRateMap = new JSONObject(); + JSONArray BDRenewRateMaps = new JSONArray(); + JSONArray FDRenewRateMaps = new JSONArray(); + ArrayList deptIDList = new ArrayList<>(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Integer deptFileNum = 0; + Integer newFileNum = 0; + String renewRate = null; + // 获取当前年 + LocalDateTime nowDate = LocalDateTime.now(); + int nowYear = nowDate.getYear(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + // 事业部和职能部门ID,名称 list + // List fileRowMaps = DBSql.getMaps("SELECT + // FILEID,FILEVERSION,PUBDEPT,PUBDATETIME FROM BO_EU_PAL_FILE1 WHERE + // FILESTATE='1'"); + List fileRowMaps = DBSql.getMaps( + "SELECT ID AS FILEID,EXT6 AS PUBDEPT,PUBLISHDATE,EXT5 AS FILESTATE,PLMETHODID FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = '1' AND EXT5 = '1' AND PLMETHODID in ('process.epc','control.policy','process.flowchart','data.form')"); + List BDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + if (null != BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + renewRateMap = new JSONObject(); + deptFileNum = 0; + newFileNum = 0; + renewRate = null; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + deptFileNum += 1; + String publishDate = ""; + String plId = fileRowMap.getString("FILEID"); + String moethodId = fileRowMap.getString("PLMETHODID"); + List repositoryPropertyList = PALRepositoryPropertyCache + .getPropertyByPlId(plId); + if (repositoryPropertyList != null && repositoryPropertyList.size() > 0) { + for (PALRepositoryPropertyModel repositoryPropertyModel : repositoryPropertyList) { + if("data.form".equals(moethodId)) { + if ("form_effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + } + }else { + if ("effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + + } + } + } + } + if (UtilString.isNotEmpty(publishDate)) { + if (publishDate.contains("2022")) { + newFileNum += 1; + } + } + } + } + } + } + if (deptFileNum != 0) { + renewRate = numberformat.format((float) newFileNum / (float) deptFileNum * 100); + } else { + renewRate = "0"; + } + renewRateMap.put("deptID", bdDeptID); + renewRateMap.put("deptName", bdInfoMap.getString("ABBREVIATION")); + renewRateMap.put("renewRate", renewRate); + BDRenewRateMaps.add(renewRateMap); + } + } + if (null != FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + renewRateMap = new JSONObject(); + deptFileNum = 0; + newFileNum = 0; + renewRate = null; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + deptFileNum += 1; + String publishDate = ""; + String plId = fileRowMap.getString("FILEID"); + String moethodId = fileRowMap.getString("PLMETHODID"); + List repositoryPropertyList = PALRepositoryPropertyCache + .getPropertyByPlId(plId); + if (repositoryPropertyList != null && repositoryPropertyList.size() > 0) { + for (PALRepositoryPropertyModel repositoryPropertyModel : repositoryPropertyList) { + if("data.form".equals(moethodId)) { + if ("form_effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + } + }else { + if ("effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + + } + } + } + } + if (UtilString.isNotEmpty(publishDate)) { + if (publishDate.contains("2022")) { + newFileNum += 1; + } + } + } + } + } + } + if (deptFileNum != 0) { + renewRate = numberformat.format((float) newFileNum / (float) deptFileNum * 100); + } else { + renewRate = "0"; + } + renewRateMap.put("deptID", fdDeptID); + renewRateMap.put("deptName", fdInfoMap.getString("ABBREVIATION")); + renewRateMap.put("renewRate", renewRate); + FDRenewRateMaps.add(renewRateMap); + } + } + ro.put("BDRenewRate", BDRenewRateMaps); + ro.put("FDRenewRate", FDRenewRateMaps); + + BO bo1 = new BO(); + bo1.set("TYPE", "部门文件年度更新率"); + bo1.set("NAME", "BDRenewRate"); + bo1.set("NODEDATA", BDRenewRateMaps); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo1, UserContext.fromUID("admin")); + BO bo2 = new BO(); + bo2.set("TYPE", "部门文件年度更新率"); + bo2.set("NAME", "FDRenewRate"); + bo2.set("NODEDATA", FDRenewRateMaps); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo2, UserContext.fromUID("admin")); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:部门文件年度更新情况 + * @auther: Lizj + * @date: 2022/6/28 22:53 + */ + + public String deptFileYearRenewSituation() { + /* + * 1)新增数=某单位年度新增文件 一个版本是新增 + * 2)修订数=某单位年度修订文件 大于一个版本是修订 + * 3)废止数=某单位年度废止文件 停用 + */ + ResponseObject ro = ResponseObject.newOkResponse(); + JSONObject renewCountMap = new JSONObject(); + JSONArray BDRenewCountMaps = new JSONArray(); + JSONArray FDRenewCountMaps = new JSONArray(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Integer createCount = 0; + Integer updateCount = 0; + Integer abolishCount = 0; + ArrayList deptIDList = new ArrayList<>(); + // 获取当前年 + LocalDateTime nowDate = LocalDateTime.now(); + int nowYear = nowDate.getYear(); + // 事业部和职能部门ID,名称 list + //List fileRowMaps = DBSql.getMaps("SELECT FILEID,FILEVERSION,PUBDEPT,PUBDATETIME,FILESTATE FROM BO_EU_PAL_FILE1"); + List fileRowMaps = DBSql.getMaps("SELECT ID AS FILEID,EXT6 AS PUBDEPT,PUBLISHDATE,EXT5 AS FILESTATE,PLMETHODID FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = 1 AND EXT5 = '1' AND PLMETHODID in ('process.epc','control.policy','process.flowchart','data.form')"); + List BDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + if (null != BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + renewCountMap = new JSONObject(); + createCount = 0; + updateCount = 0; + abolishCount = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + try { + //deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + deptIDList.add(bdDeptID); + getDeptIdList(deptIDList, bdDeptID); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + //System.err.println("=======deptID======"+deptID); + //System.err.println("=======PUBDEPT========="+fileRowMap.getString("PUBDEPT")); + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + String fileId = fileRowMap.getString("FILEID"); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(fileId); + double version = palRepositoryModel.getVersion(); + String FILESTATE = fileRowMap.getString("FILESTATE"); + boolean stop = palRepositoryModel.isStop(); + String publishDate = ""; + String plId = fileRowMap.getString("FILEID"); + String moethodId = fileRowMap.getString("PLMETHODID"); + List repositoryPropertyList = PALRepositoryPropertyCache + .getPropertyByPlId(plId); + if (repositoryPropertyList != null && repositoryPropertyList.size() > 0) { + for (PALRepositoryPropertyModel repositoryPropertyModel : repositoryPropertyList) { + if("data.form".equals(moethodId)) { + if ("form_effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + } + }else { + if ("effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + + } + } + } + } + String versionId = palRepositoryModel.getVersionId(); + List verList = PALRepositoryCache.getByVersionId(versionId); + if(UtilString.isNotEmpty(publishDate)) { + if (publishDate.contains("2022")) { + if (("1.0".equals(version+"")||verList.size()==1)) { + createCount += 1; + } + if (!"1.0".equals(version+"")&&verList.size()>1) { + updateCount += 1; + } + if (stop) { + abolishCount += 1; + } + } + + } + + } + } + } + } + } catch (Exception e) { + // TODO: handle exception + } + renewCountMap.put("deptID", bdDeptID); + renewCountMap.put("deptName", bdInfoMap.getString("ABBREVIATION")); + renewCountMap.put("createCount", createCount); + renewCountMap.put("updateCount", updateCount); + renewCountMap.put("abolishCount", abolishCount); + BDRenewCountMaps.add(renewCountMap); + } + } + if (null != FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + renewCountMap = new JSONObject(); + createCount = 0; + updateCount = 0; + abolishCount = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + try { + deptIDList.add(fdDeptID); + getDeptIdList(deptIDList, fdDeptID); + //deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + String FILESTATE = fileRowMap.getString("FILESTATE"); + String publishDate = ""; + String plId = fileRowMap.getString("FILEID"); + String moethodId = fileRowMap.getString("PLMETHODID"); + List repositoryPropertyList = PALRepositoryPropertyCache + .getPropertyByPlId(plId); + if (repositoryPropertyList != null && repositoryPropertyList.size() > 0) { + for (PALRepositoryPropertyModel repositoryPropertyModel : repositoryPropertyList) { + if("data.form".equals(moethodId)) { + if ("form_effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + } + }else { + if ("effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + + } + } + } + } + String fileId = fileRowMap.getString("FILEID"); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(fileId); + double version = palRepositoryModel.getVersion(); + boolean stop = palRepositoryModel.isStop(); + String versionId = palRepositoryModel.getVersionId(); + List verList = PALRepositoryCache.getByVersionId(versionId); + if(UtilString.isNotEmpty(publishDate)) { + if (publishDate.contains("2022")) { + if (("1.0".equals(version+"")||verList.size()==1)) { + createCount += 1; + } + if (!"1.0".equals(version+"")&&verList.size()>1) { + updateCount += 1; + } + if (stop) { + abolishCount += 1; + } + } + + } + } + } + } + } + } catch (Exception e) { + // TODO: handle exception + } + renewCountMap.put("deptID", fdDeptID); + renewCountMap.put("deptName", fdInfoMap.getString("ABBREVIATION")); + renewCountMap.put("createCount", createCount); + renewCountMap.put("updateCount", updateCount); + renewCountMap.put("abolishCount", abolishCount); + FDRenewCountMaps.add(renewCountMap); + } + } + ro.put("BDRenewCount", BDRenewCountMaps); + ro.put("FDRenewCount", FDRenewCountMaps); + + BO bo1 = new BO(); + bo1.set("TYPE", "部门文件年度更新情况"); + bo1.set("NAME", "BDRenewCount"); + bo1.set("NODEDATA", BDRenewCountMaps); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo1,UserContext.fromUID("admin")); + BO bo2 = new BO(); + bo2.set("TYPE", "部门文件年度更新情况"); + bo2.set("NAME", "FDRenewCount"); + bo2.set("NODEDATA", FDRenewCountMaps); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo2,UserContext.fromUID("admin")); + + return ro.toString(); + } + + + + /** + * @methodName: + * @param: + * @return: + * @throws ParseException + * @description:文件发布时间分布 + * @auther: Lizj + * @date: 2022/6/28 22:57 + */ + public String filePubTimeDistribution() throws ParseException { + ResponseObject ro = ResponseObject.newOkResponse(); + List fileMaps = DBSql.getMaps("SELECT ID AS FILEID,PLMETHODID,EXT3 AS POLICYTYPE, EXT6 AS PUBDEPT,PUBLISHDATE AS PUBDATETIME,EXT5 AS FILESTATE,PLPARENTID FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = 1 AND ISSTOP =0 AND EXT5 = '1' AND PLMETHODID in ('process.epc','control.policy','process.flowchart','data.form')"); + // System.err.println("======文件发布时间同步======"+fileMaps.size()); + //List fileMaps = DBSql.getMaps("SELECT FILEID,PLMETHODID,POLICYTYPE,PUBDATETIME,PUBDEPT,PLPARENTID FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1' AND PUBDATETIME IS NOT NULL"); + LocalDate nowDate = LocalDate.now(); + //6个月内fileMaps + ArrayList month6InFileMaps = new ArrayList<>(); + //6个月~1年fileMaps + ArrayList year1InFileMaps = new ArrayList<>(); + //1年~2年fileMaps + ArrayList year2InFileMaps = new ArrayList<>(); + //2年~3年fileMaps + ArrayList year3InFileMaps = new ArrayList<>(); + //3年以上+fileMaps + ArrayList year3OutFileMaps = new ArrayList<>(); + + ArrayList fileCountMaps = new ArrayList<>(); + if (null!=fileMaps && fileMaps.isEmpty()==false) { + int count =0; + for (RowMap fileMap : fileMaps) { + try { + LocalDate PUBDATETIME = null; + String publishDate = ""; + String plId = fileMap.getString("FILEID"); + String moethodId = fileMap.getString("PLMETHODID"); + List repositoryPropertyList = PALRepositoryPropertyCache + .getPropertyByPlId(plId); + if (repositoryPropertyList != null && repositoryPropertyList.size() > 0) { + for (PALRepositoryPropertyModel repositoryPropertyModel : repositoryPropertyList) { + if("data.form".equals(moethodId)) { + if ("form_effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + } + }else { + if ("effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + + } + } + } + } + if(UtilString.isNotEmpty(publishDate)) { + if(publishDate.length()>11) { + publishDate = publishDate.substring(0, 10); + } + if(publishDate.contains("年")) { + //PUBDATETIME = LocalDate.parse(publishDate.substring(0,9), DateTimeFormatter.ofPattern("yyyy年MM月dd")); + }else if(publishDate.contains("-")) { + PUBDATETIME = LocalDate.parse(publishDate); + } + + } + if(PUBDATETIME==null) { + continue; + } + Period betweenDate = Period.between(PUBDATETIME, nowDate); + //System.err.println("========betweenDate============="+betweenDate.getMonths()); + if (betweenDate.getMonths()<6) { + month6InFileMaps.add(fileMap); + } + if (betweenDate.getMonths()>=6 && betweenDate.getYears()<1) { + year1InFileMaps.add(fileMap); + } + if(betweenDate.getYears()>=1 && betweenDate.getYears()<2) { + year2InFileMaps.add(fileMap); + } + if(betweenDate.getYears()>=2 && betweenDate.getYears()<3) { + year3InFileMaps.add(fileMap); + } + if(betweenDate.getYears()>=3) { + year3OutFileMaps.add(fileMap); + } + + + + } catch (Exception e) { + // TODO: handle exception + } + } + } else { + ro.ok("暂无文件"); + } + + Integer processFileCount = 0; + Integer policyFileCount = 0; + Integer guideFileCount = 0; + Integer formFileCount = 0; + Map fileCountMap = new LinkedHashMap<>(); + if (null!=month6InFileMaps && !month6InFileMaps.isEmpty()) { + for (RowMap month6InFileMap : month6InFileMaps) { + if (month6InFileMap.getString("PLMETHODID").equals("process.epc") || month6InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (month6InFileMap.getString("PLMETHODID").equals("control.policy") && (month6InFileMap.getString("POLICYTYPE").equals("regulation") || null==month6InFileMap.getString("POLICYTYPE") || month6InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (month6InFileMap.getString("PLMETHODID").equals("control.policy") && month6InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (month6InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap.put("timeSlot","【6个月内】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year1InFileMaps && !year1InFileMaps.isEmpty()) { + for (RowMap year1InFileMap : year1InFileMaps) { + if (year1InFileMap.getString("PLMETHODID").equals("process.epc") || year1InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year1InFileMap.getString("PLMETHODID").equals("control.policy") && (year1InFileMap.getString("POLICYTYPE").equals("regulation") || null==year1InFileMap.getString("POLICYTYPE") || year1InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year1InFileMap.getString("PLMETHODID").equals("control.policy") && year1InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year1InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【6个月~1年】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year2InFileMaps && !year2InFileMaps.isEmpty()) { + for (RowMap year2InFileMap : year2InFileMaps) { + if (year2InFileMap.getString("PLMETHODID").equals("process.epc") || year2InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year2InFileMap.getString("PLMETHODID").equals("control.policy") && (year2InFileMap.getString("POLICYTYPE").equals("regulation") || null==year2InFileMap.getString("POLICYTYPE") || year2InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year2InFileMap.getString("PLMETHODID").equals("control.policy") && year2InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year2InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【1年~2年】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year3InFileMaps && !year3InFileMaps.isEmpty()) { + for (RowMap year3InFileMap : year3InFileMaps) { + if (year3InFileMap.getString("PLMETHODID").equals("process.epc") || year3InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year3InFileMap.getString("PLMETHODID").equals("control.policy") && (year3InFileMap.getString("POLICYTYPE").equals("regulation") || null==year3InFileMap.getString("POLICYTYPE") || year3InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year3InFileMap.getString("PLMETHODID").equals("control.policy") && year3InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year3InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【2年~3年】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year3OutFileMaps && !year3OutFileMaps.isEmpty()) { + for (RowMap year3OutFileMap : year3OutFileMaps) { + if (year3OutFileMap.getString("PLMETHODID").equals("process.epc") || year3OutFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year3OutFileMap.getString("PLMETHODID").equals("control.policy") && (year3OutFileMap.getString("POLICYTYPE").equals("regulation") || null==year3OutFileMap.getString("POLICYTYPE") || year3OutFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year3OutFileMap.getString("PLMETHODID").equals("control.policy") && year3OutFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year3OutFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【3年以上】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + ro.put("fileCount",fileCountMaps); + + JSONObject fileCountMapJson = new JSONObject(); + JSONArray fileCountMapsArry = new JSONArray(); + for (Map map : fileCountMaps) { + Set keySet = map.keySet(); + for (Object object : keySet) { + String key = object.toString(); + String value = map.get(key).toString(); + fileCountMapJson.put(key, value); + } + fileCountMapsArry.add(fileCountMapJson); + } + + BO bo1 = new BO(); + bo1.set("TYPE", "文件发布时间分布"); + bo1.set("NAME", "fileCount"); + bo1.set("NODEDATA", fileCountMapsArry); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo1,UserContext.fromUID("admin")); + return ro.toString(); + } + + //-------------------------------节点分析---------------------------------- + + + /** + * @methodName: + * @param: + * @return: + * @description:流程节点分析 + * @auther: Lizj + * @date: 2022/7/15 15:57 + */ + public String nodeAnalysis() { + System.out.println("======流程节点分析======"); + HashMap ro = new HashMap(); + String unit = "all"; + String field = ""; + ArrayList deptIDList = new ArrayList<>(); + ArrayList fieldList = new ArrayList<>(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + List nodeRowMaps = DBSql.getMaps("SELECT BN.NODEID,BN.NODETYPE,BF.FILEID,BF.PLPARENTID,BF.PUBDEPT FROM BO_EU_PAL_FILENODE5 BN LEFT JOIN BO_EU_PAL_FILE1 BF ON BN.PLID=BF.FILEID WHERE BF.FILESTATE='1' AND BF.PLMETHODID in ('process.epc','process.flowchart')"); + ArrayList nodeHandleMaps = new ArrayList<>(); + if (null!=unit && !unit.equals("")) { + if("all".equals(unit)) { + for (RowMap fileRowMap : nodeRowMaps) { + nodeHandleMaps.add(fileRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(unit, deptIDList); + for (String deptID : deptIDList) { + for (RowMap fileMap : nodeRowMaps) { + if (fileMap.getString("PUBDEPT").contains(deptID)) { + nodeHandleMaps.add(fileMap); + } + } + } + + } + nodeRowMaps = nodeHandleMaps; + } + if (null!=field && !field.equals("")) { + if("all".equals(field)) { + for (RowMap fileRowMap : nodeRowMaps) { + nodeHandleMaps.add(fileRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap fileMap : nodeRowMaps) { + if (fileMap.getString("PLPARENTID").equals(fieldID)) { + nodeHandleMaps.add(fileMap); + } + } + } + } + nodeRowMaps = nodeHandleMaps; + } + + + + Integer nodeTotalNum = 0; + Integer approvalNodeNum = 0; + Integer operationNodeNum = 0; + Integer onlineNodeNum = 0; + Integer itsysNodeNum = 0; + String approvalRrationate = "0"; + String operationRate = "0"; + String onlineRate = "0"; + String itsysRate = "0"; + if (null!=nodeRowMaps && !nodeRowMaps.isEmpty()) { + nodeTotalNum = nodeRowMaps.size(); + System.out.println("========nodeRowMaps=========="+nodeRowMaps.size()); + approvalNodeNum = 0; + operationNodeNum = 0; + onlineNodeNum = 0; + itsysNodeNum = 0; + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node") || nodeRowMap.getString("NODETYPE").equals("method_service_node")) { + approvalNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3") || nodeRowMap.getString("NODETYPE").equals("method_service_node4")) { + operationNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node")) { + onlineNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3")) { + itsysNodeNum += 1; + } + } + + approvalRrationate = numberformat.format((float) approvalNodeNum / (float) nodeTotalNum * 100); + operationRate = numberformat.format((float) operationNodeNum / (float) nodeTotalNum * 100); + onlineRate = numberformat.format((float) onlineNodeNum / (float) approvalNodeNum * 100); + itsysRate = numberformat.format((float) itsysNodeNum / (float) operationNodeNum * 100); + + ro.put("nodeTotalNum",nodeTotalNum); + ro.put("approvalNodeNum",approvalNodeNum); + ro.put("approvalRrationate",approvalRrationate); + ro.put("onlineRate",onlineRate); + ro.put("operationNodeNum",operationNodeNum); + ro.put("operationRate",operationRate); + ro.put("itsysRate",itsysRate); + } else { + nodeTotalNum = 0; + approvalNodeNum = 0; + operationNodeNum = 0; + onlineNodeNum = 0; + itsysNodeNum = 0; + approvalRrationate = "0"; + operationRate = "0"; + onlineRate = "0"; + itsysRate = "0"; + ro.put("nodeTotalNum",nodeTotalNum); + ro.put("approvalNodeNum",approvalNodeNum); + ro.put("approvalRrationate",approvalRrationate); + ro.put("onlineRate",onlineRate); + ro.put("operationNodeNum",operationNodeNum); + ro.put("operationRate",operationRate); + ro.put("itsysRate",itsysRate); + } + Set keySet = ro.keySet(); + for (String name : keySet) { + BO bo = new BO(); + bo.set("TYPE", "流程节点总数"); + bo.set("NAME", name); + bo.set("NODEDATA", ro.get(name)); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo,UserContext.fromUID("admin")); + } + + return ro.toString(); + } + + + /** + * @methodName: + * @param: + * @return: + * @description:事业部/职能部门审批节点信息 + * @auther: Lizj + * @date: 2022/8/5 0:27 + */ + public String deptNodeAttrApproval() { + HashMap ro = new HashMap(); + String field = "all"; + ArrayList fieldList = new ArrayList<>(); + ArrayList deptIDList = new ArrayList<>(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + JSONObject deptNodeCountMap = new JSONObject(); + JSONArray BDApprovalNodeCountMaps = new JSONArray(); + JSONArray FDApprovalNodeCountMaps = new JSONArray(); + JSONArray BDApprovalNodeRateMaps = new JSONArray(); + JSONArray FDApprovalNodeRateMaps = new JSONArray(); + JSONArray BDApprovalOLNodeRateMaps = new JSONArray(); + JSONArray FDApprovalOLNodeRateMaps = new JSONArray(); + //事业部和职能部门ID,名称 list + List nodeRowMaps = DBSql.getMaps("SELECT BN.NODEID,BN.NODETYPE,BF.FILEID,BF.PLPARENTID,BF.PUBDEPT FROM BO_EU_PAL_FILENODE5 BN LEFT JOIN BO_EU_PAL_FILE1 BF ON BN.PLID=BF.FILEID WHERE BF.FILESTATE='1' AND BF.PLMETHODID in ('process.epc','process.flowchart')"); + ArrayList nodeHandleMaps = new ArrayList<>(); + List BDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + //审批节点数量、节点总数量、线上审批节点数量 + Integer nodeTotalNum = 0; + Integer approvalNodeNum = 0; + Integer approvalOLNodeNum = 0; + String approvalRate = "0"; + String approvalOLRate = "0"; + + if (null!=field && !field.equals("")) { + if("all".equals(field)) { + for (RowMap nodeRowMap : nodeRowMaps) { + nodeHandleMaps.add(nodeRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PLPARENTID").equals(fieldID)) { + nodeHandleMaps.add(nodeRowMap); + } + } + } + + } + nodeRowMaps = nodeHandleMaps; + } + + if (null!=BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + nodeTotalNum = 0; + approvalNodeNum = 0; + approvalOLNodeNum = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node") || nodeRowMap.getString("NODETYPE").equals("method_service_node")) { + approvalNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node")) { + approvalOLNodeNum += 1; + } + } + } + } + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalNodeNum",approvalNodeNum); + BDApprovalNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + approvalRate = numberformat.format((float) approvalNodeNum / (float) nodeTotalNum * 100); + } else { + approvalRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalRate",approvalRate); + BDApprovalNodeRateMaps.add(deptNodeCountMap); + if (approvalNodeNum!=0) { + approvalOLRate = numberformat.format((float) approvalOLNodeNum / (float) approvalNodeNum * 100); + } else { + approvalOLRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalOLRate",approvalOLRate); + BDApprovalOLNodeRateMaps.add(deptNodeCountMap); + } + } + if (null!=FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + nodeTotalNum = 0; + approvalNodeNum = 0; + approvalOLNodeNum = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node") || nodeRowMap.getString("NODETYPE").equals("method_service_node")) { + approvalNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node")) { + approvalOLNodeNum += 1; + } + } + } + } + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalNodeNum",approvalNodeNum); + FDApprovalNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + approvalRate = numberformat.format((float) approvalNodeNum / (float) nodeTotalNum * 100); + } else { + approvalRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalRate",approvalRate); + FDApprovalNodeRateMaps.add(deptNodeCountMap); + if (approvalNodeNum!=0) { + approvalOLRate = numberformat.format((float) approvalOLNodeNum / (float) approvalNodeNum * 100); + } else { + approvalOLRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalOLRate",approvalOLRate); + FDApprovalOLNodeRateMaps.add(deptNodeCountMap); + } + } + + ro.put("BDApprovalNodeCountMaps",BDApprovalNodeCountMaps); + ro.put("FDApprovalNodeCountMaps",FDApprovalNodeCountMaps); + ro.put("BDApprovalNodeRateMaps",BDApprovalNodeRateMaps); + ro.put("FDApprovalNodeRateMaps",FDApprovalNodeRateMaps); + ro.put("BDApprovalOLNodeRateMaps",BDApprovalOLNodeRateMaps); + ro.put("FDApprovalOLNodeRateMaps",FDApprovalOLNodeRateMaps); + + Set keySet = ro.keySet(); + for (String name : keySet) { + BO bo = new BO(); + bo.set("TYPE", "审批节点信息"); + bo.set("NAME", name); + bo.set("NODEDATA", ro.get(name).toString()); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo,UserContext.fromUID("admin")); + } + + + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:事业部/职能部门操作节点信息 + * @auther: Lizj + * @date: 2022/8/5 0:27 + */ + public String deptNodeAttrOperation() { + HashMap ro = new HashMap(); + String field = "all"; + ArrayList fieldList = new ArrayList<>(); + ArrayList deptIDList = new ArrayList<>(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + JSONObject deptNodeCountMap = new JSONObject(); + JSONArray BDOperationNodeCountMaps = new JSONArray(); + JSONArray FDOperationNodeCountMaps = new JSONArray(); + JSONArray BDOperationNodeRateMaps = new JSONArray(); + JSONArray FDOperationNodeRateMaps = new JSONArray(); + JSONArray BDOperationOLNodeRateMaps = new JSONArray(); + JSONArray FDOperationOLNodeRateMaps = new JSONArray(); + //事业部和职能部门ID,名称 list + List nodeRowMaps = DBSql.getMaps("SELECT BN.NODEID,BN.NODETYPE,BF.FILEID,BF.PLPARENTID,BF.PUBDEPT FROM BO_EU_PAL_FILENODE5 BN LEFT JOIN BO_EU_PAL_FILE1 BF ON BN.PLID=BF.FILEID WHERE BF.FILESTATE='1' AND BF.PLMETHODID in ('process.epc','process.flowchart')"); + ArrayList nodeHandleMaps = new ArrayList<>(); + List BDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + //审批节点数量、节点总数量、线上审批节点数量 + Integer nodeTotalNum = 0; + Integer operationNodeNum = 0; + Integer operationOLNodeNum = 0; + String operationNodeRate = "0"; + String operationOLNodeRate = "0"; + + if (null!=field && !field.equals("")) { + if("all".equals(field)) { + for (RowMap fileRowMap : nodeRowMaps) { + nodeHandleMaps.add(fileRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PLPARENTID").equals(fieldID)) { + nodeHandleMaps.add(nodeRowMap); + } + } + } + + } + nodeRowMaps = nodeHandleMaps; + } + + if (null!=BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + nodeTotalNum = 0; + operationNodeNum = 0; + operationOLNodeNum = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3") || nodeRowMap.getString("NODETYPE").equals("method_service_node4")) { + operationNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3")) { + operationOLNodeNum += 1; + } + } + } + } + } + + + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeNum",operationNodeNum); + BDOperationNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + operationNodeRate = numberformat.format((float) operationNodeNum / (float) nodeTotalNum * 100); + } else { + operationNodeRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeRate",operationNodeRate); + + + BDOperationNodeRateMaps.add(deptNodeCountMap); + if (operationNodeNum!=0) { + operationOLNodeRate = numberformat.format((float) operationOLNodeNum / (float) operationNodeNum * 100); + } else { + operationOLNodeRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationOLNodeRate",operationOLNodeRate); + BDOperationOLNodeRateMaps.add(deptNodeCountMap); + } + } + if (null!=FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + nodeTotalNum = 0; + operationNodeNum = 0; + operationOLNodeNum = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3") || nodeRowMap.getString("NODETYPE").equals("method_service_node4")) { + operationNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3")) { + operationOLNodeNum += 1; + } + } + } + } + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeNum",operationNodeNum); + + + FDOperationNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + operationNodeRate = numberformat.format((float) operationNodeNum / (float) nodeTotalNum * 100); + } else { + operationNodeRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeRate",operationNodeRate); + FDOperationNodeRateMaps.add(deptNodeCountMap); + if (operationNodeNum!=0) { + operationOLNodeRate = numberformat.format((float) operationOLNodeNum / (float) operationNodeNum * 100); + } else { + operationOLNodeRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationOLNodeRate",operationOLNodeRate); + FDOperationOLNodeRateMaps.add(deptNodeCountMap); + } + } + ro.put("BDOperationNodeCountMaps",BDOperationNodeCountMaps); + ro.put("FDOperationNodeCountMaps",FDOperationNodeCountMaps); + ro.put("BDOperationNodeRateMaps",BDOperationNodeRateMaps); + ro.put("FDOperationNodeRateMaps",FDOperationNodeRateMaps); + ro.put("BDOperationOLNodeRateMaps",BDOperationOLNodeRateMaps); + ro.put("FDOperationOLNodeRateMaps",FDOperationOLNodeRateMaps); + Set keySet = ro.keySet(); + for (String name : keySet) { + BO bo = new BO(); + bo.set("TYPE", "操作节点信息"); + bo.set("NAME", name); + bo.set("NODEDATA", ro.get(name)); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo,UserContext.fromUID("admin")); + } + + return ro.toString(); + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job.java new file mode 100644 index 00000000..7f280892 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job.java @@ -0,0 +1,345 @@ +package com.awspaas.user.apps.app.reportform.job; + +import java.sql.Timestamp; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.quartz.DisallowConcurrentExecution; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.designer.util.CoeDesignerUtil; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; + +/** + * @author:lihongyu + * @create: 2022-11-03 11:32 + * @Description: 全量同步文件 + */ +@DisallowConcurrentExecution +public class SyncData_job implements IJob { + + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + syncNodeData(); + + } + //同步节点数据到 BO_EU_PAL_FILENODE6 + public void syncNodeData() { + //DBSql.update("DELETE FROM BO_EU_NODESYN_EXCEPTION"); + //DBSql.update("DELETE FROM BO_EU_PAL_FILENODE6"); + HashMap dataMap = new HashMap<>(); + ArrayList fromNodeDataIDMaps = new ArrayList<>(); + ArrayList> oldNodeDataMaps = new ArrayList<>(); + ArrayList> newNodeDataMaps = new ArrayList<>(); + ArrayList> delNodeDataMaps = new ArrayList<>(); + String wsId = "7d3ca852-a0bd-42e6-80b1-3dcea6f55083"; + //总文件集合 + String process = "process"; + String org = "org"; + String data = "data"; + String itsystem = "itsystem"; + String control = "control"; + List palProcessList = new ArrayList<>(); + Set palProcessIds = new HashSet<>(); + List palOrgList = new ArrayList<>(); + Set palOrgIds = new HashSet<>(); + List palDataList = new ArrayList<>(); + Set palDataIds = new HashSet<>(); + List palItsystemList = new ArrayList<>(); + Set palItsystemIds = new HashSet<>(); + List palControlList = new ArrayList<>(); + Set palControlIds = new HashSet<>(); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, process, palProcessList, palProcessIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, org, palOrgList, palOrgIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, data, palDataList, palDataIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, itsystem, palItsystemList, palItsystemIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, control, palControlList, palControlIds); + //合并为文件总量list + List palTotalList = new ArrayList<>(); + palTotalList.addAll(palProcessList); + palTotalList.addAll(palOrgList); + palTotalList.addAll(palDataList); + palTotalList.addAll(palItsystemList); + palTotalList.addAll(palControlList); + SDK.getLogAPI().consoleInfo("process下文件数量:" + palProcessList.size()); + SDK.getLogAPI().consoleInfo("org下文件数量:" + palOrgList.size()); + SDK.getLogAPI().consoleInfo("data下文件数量:" + palDataList.size()); + SDK.getLogAPI().consoleInfo("itsystem下文件数量:" + palItsystemList.size()); + SDK.getLogAPI().consoleInfo("control下文件数量:" + palControlList.size()); + SDK.getLogAPI().consoleInfo("文件总数量:" + palTotalList.size()); + + long startTime = System.currentTimeMillis(); + List nodeIdList = DBSql.getList("SELECT NODEID FROM BO_EU_PAL_FILENODE6", String.class); + for (PALRepositoryModel fileModel : palTotalList) { + List> nodeElements = new ArrayList<>(); + String PLMETHODID = fileModel.getMethodId(); + String FILEID = fileModel.getId(); + String PLNAME = fileModel.getName(); + //String plRid = fileModel.getPlRid(); + /* + * if(!fileModel.isPublish()) { continue; } + */ + /* + * String sql = + * "SELECT ID FROM (SELECT * FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLRID = '" + * +plRid+"' AND ISPUBLISH ='1' ORDER BY PLVER DESC ) WHERE ROWNUM<2"; String + * palId = DBSql.getString(sql); if(UtilString.isNotEmpty(palId)) { + * if(!FILEID.equals(palId)) { + * SDK.getLogAPI().consoleInfo("同步数据发现旧版本文件名称:"+PLNAME+"——文件id:"+FILEID); String + * dsql = "DELETE FROM BO_EU_PAL_FILE1 WHERE FILEID = '"+FILEID+"'"; + * DBSql.update(dsql); continue; } } + */ + Timestamp MODIFYDATETIME = fileModel.getModifyDate(); + //更新/新增节点 + nodeElements = new ArrayList<>(); + if(PLMETHODID.equals("process.epc")||PLMETHODID.equals("process.flowchart")) { + try { + nodeElements = CoeDesignerUtil.getShapeMessageJson4(FILEID); + } catch (Exception e) { + SDK.getLogAPI().consoleInfo("获取节点属性过程中,"+"文件ID:"+PLNAME+"=======>获取节点形状属性异常"); + } + //System.err.println(PLNAME+"======nodeElements1=======>"+nodeElements); + } + //制度类型 + /* + * nodeElements = new ArrayList<>(); if (PLMETHODID.equals("control.policy")) { + * try { nodeElements = CoeDesignerUtil.getShapeMessageJson4(FILEID); } catch + * (Exception e) { SDK.getLogAPI().consoleInfo("获取制度类型过程中," + "文件ID:" + FILEID + + * "获取节点形状属性异常"); } + * //System.err.println(PLNAME+"======nodeElements2=======>"+nodeElements); } + */ + //同步角色岗位 + if (null != nodeElements && !nodeElements.isEmpty()) { + for (Map nodeElement : nodeElements) { + String NODETYPE = String.valueOf(nodeElement.get("type")); + if (NODETYPE.equals("method_approval_node") || NODETYPE.equals("method_service_node") || NODETYPE.equals("method_approval_node3") || NODETYPE.equals("method_service_node4")) { + //节点信息 + String NODEID = String.valueOf(nodeElement.get("id")); + String NODENAME = String.valueOf(nodeElement.get("name")); + //形状属性数组 + JSONArray attributesArray = JSON.parseArray(String.valueOf(nodeElement.get("attributes"))); + //形状属性:信息系统、活动序号、活动描述、角色、岗位 + String ITSYSVAL = ""; + String ACTIVITYNUMBER = ""; + String ACTIVITYDESC = ""; + String ROLE = ""; + String ROLENAME = ""; + String POST = ""; + String POSTNAME = ""; + if (null != attributesArray && !attributesArray.isEmpty()) { + for (Object attribute : attributesArray) { + JSONObject attributeJO = JSON.parseObject(String.valueOf(attribute)); + String SHAPEATTRKEY = attributeJO.getString("key"); + if (SHAPEATTRKEY.equals("information_systems")) { + ITSYSVAL = attributeJO.getString("value"); + } + if (SHAPEATTRKEY.equals("activity_number")) { + ACTIVITYNUMBER = attributeJO.getString("value"); + } + if (SHAPEATTRKEY.equals("activity_description")) { + ACTIVITYDESC = attributeJO.getString("value"); + } + if (SHAPEATTRKEY.equals("role")) { + String nodeRoleText = attributeJO.getString("value"); + ROLE = nodeRoleText; + if (null!=ROLE && !ROLE.equals("")) { + List roleFileRowMaps = new ArrayList<>(); + try { + roleFileRowMaps = DBSql.getMaps("SELECT RELATIONFILEID FROM APP_ACT_COE_PAL_SHAPE_RLAT WHERE FILEID='"+FILEID+"' AND ATTRID='role'"); + } catch (Exception e) { + SDK.getLogAPI().consoleInfo("获取流程节点角色属性关联文件时"+"文件名称:"+PLNAME+"___文件ID:"+FILEID+"___节点ID:"+NODEID+"异常"); + } + + if (null!=roleFileRowMaps && !roleFileRowMaps.isEmpty()) { + for (RowMap roleFileRowMap : roleFileRowMaps) { + String RELATIONFILEID = roleFileRowMap.getString("RELATIONFILEID"); + //角色文件属性 + List> roleShapes = new ArrayList<>(); + try { + roleShapes = CoeDesignerUtil.getShapeMessageJson4(RELATIONFILEID); + } catch (Exception e) { + + //SDK.getLogAPI().consoleInfo("获取关联角色文件属性"+"文件ID:"+RELATIONFILEID+"异常"); + } + if (null != roleShapes && !roleShapes.isEmpty()) { + for (Map roleShape : roleShapes) { + String roleFileNodeName = String.valueOf(roleShape.get("name")); + if (nodeRoleText.contains(roleFileNodeName)) { + //角色节点形状属性 + JSONArray roleShapeJA = null; + try { + roleShapeJA = JSONArray.parseArray(String.valueOf(roleShape.get("attributes"))); + } catch (Exception e) { + SDK.getLogAPI().consoleInfo("获取角色节点形状属性jsonArray"+"文件ID:"+RELATIONFILEID+"异常"); + } + if (null != roleShapeJA && !roleShapeJA.isEmpty()) { + for (Object roleShapeO : roleShapeJA) { + JSONObject roleShapeJO = JSON.parseObject(String.valueOf(roleShapeO)); + String roleShapeKey = roleShapeJO.getString("key"); + if (roleShapeKey.equals("post")) { + //SDK.getLogAPI().consoleInfo("角色岗位"+roleShapeJO.getString("value")); + POST = roleShapeJO.getString("value"); + } + if (roleShapeKey.equals("post_text")) { + //SDK.getLogAPI().consoleInfo("角色岗位文本"+roleShapeJO); + ROLENAME = roleShapeJO.getString("value"); + POSTNAME = roleShapeJO.getString("value"); + + } + } + } + } + } + } + } + } + } else { + for (Object attribute1 : attributesArray) { + JSONObject attributeJO1 = JSON.parseObject(String.valueOf(attribute1)); + String SHAPEATTRKEY1 = attributeJO1.getString("key"); + if (SHAPEATTRKEY1.equals("post")) { + POST = attributeJO1.getString("value"); + } + if (SHAPEATTRKEY1.equals("post_text")) { + POSTNAME = attributeJO1.getString("value"); + } + } + } + } + } + } + + fromNodeDataIDMaps.add(NODEID); + + if (nodeIdList.contains(NODEID)) { + dataMap = new HashMap<>(); + Date nowDateJ = new Date(System.currentTimeMillis()); + Timestamp nowDateTime = new Timestamp(nowDateJ.getTime()); + dataMap.put("UPDATEDATE", nowDateTime); + dataMap.put("NODENAME", NODENAME); + dataMap.put("NODETYPE", NODETYPE); + dataMap.put("PLNAME", PLNAME); + dataMap.put("NODECATEGORY", PLMETHODID); + dataMap.put("ITSYSVAL", ITSYSVAL); + dataMap.put("ACTIVITYNUMBER", ACTIVITYNUMBER); + dataMap.put("ACTIVITYDESC", ACTIVITYDESC); + dataMap.put("ROLE", ROLE); + dataMap.put("ROLENAME", ROLENAME); + dataMap.put("POST", POST); + dataMap.put("POSTNAME", POSTNAME); + dataMap.put("PLID", FILEID); + dataMap.put("NODEID", NODEID); + dataMap.put("MODIFYDATETIME", MODIFYDATETIME); + //System.err.println("更新节点信息===========>"+dataMap); + try { + DBSql.update("UPDATE BO_EU_PAL_FILENODE6 SET" + + " NODENAME=:NODENAME, NODETYPE=:NODETYPE, PLNAME=:PLNAME, NODECATEGORY=:NODECATEGORY, ITSYSVAL=:ITSYSVAL, " + + " ACTIVITYNUMBER=:ACTIVITYNUMBER, ACTIVITYDESC=:ACTIVITYDESC, ROLE=:ROLE, POST=:POST, ROLENAME=:ROLENAME, POSTNAME=:POSTNAME, MODIFYDATETIME=:MODIFYDATETIME, UPDATEDATE=:UPDATEDATE " + + " WHERE PLID=:PLID AND NODEID=:NODEID", dataMap); + } catch (Exception e) { + BO bo = new BO(); + bo.set("PLID", FILEID); + bo.set("PLNAME", PLNAME); + bo.set("NODEID", NODEID); + bo.set("NODENAME", NODENAME); + bo.set("INFORMATION", e.getMessage()); + SDK.getBOAPI().createDataBO("BO_EU_NODESYN_EXCEPTION", bo, UserContext.fromUID("admin")); + System.err.println("数据保存异常==========>"+e.getMessage()+"__活动描述:"+ACTIVITYDESC); + } + } else { + dataMap = new HashMap<>(); + String uuId = SDK.getRuleAPI().executeAtScript("@uuid()"); + dataMap.put("uuId", uuId); + dataMap.put("NODEID", NODEID); + dataMap.put("NODENAME", NODENAME); + dataMap.put("NODETYPE", NODETYPE); + dataMap.put("PLID", FILEID); + dataMap.put("PLNAME", PLNAME); + dataMap.put("NODECATEGORY", PLMETHODID); + dataMap.put("ITSYSVAL", ITSYSVAL); + dataMap.put("ACTIVITYNUMBER", ACTIVITYNUMBER); + dataMap.put("ACTIVITYDESC", ACTIVITYDESC); + dataMap.put("ROLE", ROLE); + dataMap.put("POST", POST); + dataMap.put("ROLENAME", ROLENAME); + dataMap.put("POSTNAME", POSTNAME); + dataMap.put("MODIFYDATETIME", MODIFYDATETIME); + + //System.err.println("同步节点信息===========>"+dataMap); + try { + DBSql.update("INSERT INTO BO_EU_PAL_FILENODE6" + + " (ID, NODEID, NODENAME, NODETYPE, PLID, PLNAME, NODECATEGORY, ITSYSVAL, ACTIVITYNUMBER, ACTIVITYDESC, ROLE, POST, ROLENAME, POSTNAME, MODIFYDATETIME) " + + " VALUES(:uuId, :NODEID, :NODENAME, :NODETYPE, :PLID, :PLNAME, :NODECATEGORY, :ITSYSVAL, :ACTIVITYNUMBER, :ACTIVITYDESC, :ROLE, :POST, :ROLENAME, :POSTNAME, :MODIFYDATETIME)", dataMap); + } catch (Exception e) { + BO bo = new BO(); + bo.set("PLID", FILEID); + bo.set("PLNAME", PLNAME); + bo.set("NODEID", NODEID); + bo.set("NODENAME", NODENAME); + bo.set("INFORMATION", e.getMessage()); + SDK.getBOAPI().createDataBO("BO_EU_NODESYN_EXCEPTION", bo, UserContext.fromUID("admin")); + System.err.println("数据保存异常==========>"+e.getMessage()+"__活动描述:"+ACTIVITYDESC); + } + + + //newNodeDataMaps.add(dataMap); + } + } + } + } + + } + //删除节点信息 + if (null != nodeIdList && !nodeIdList.isEmpty()) { + for (String nodeIdOfList : nodeIdList) { + if (!fromNodeDataIDMaps.contains(nodeIdOfList)) { + dataMap = new HashMap<>(); + dataMap.put("NODEID", nodeIdOfList); + //DBSql.update("DELETE FROM BO_EU_PAL_FILENODE6 WHERE NODEID=:NODEID", dataMap); + delNodeDataMaps.add(dataMap); + } + } + } + /* + * if (null != oldNodeDataMaps && !oldNodeDataMaps.isEmpty()) { + * DBSql.batchUpdate("UPDATE BO_EU_PAL_FILENODE6 SET" + + * " NODENAME=:NODENAME, NODETYPE=:NODETYPE, PLNAME=:PLNAME, NODECATEGORY=:NODECATEGORY, ITSYSVAL=:ITSYSVAL, " + * + + * " ACTIVITYNUMBER=:ACTIVITYNUMBER, ACTIVITYDESC=:ACTIVITYDESC, ROLE=:ROLE, POST=:POST, ROLENAME=:ROLENAME, POSTNAME=:POSTNAME, MODIFYDATETIME=:MODIFYDATETIME, UPDATEDATE=:UPDATEDATE " + * + " WHERE PLID=:PLID AND NODEID=:NODEID", oldNodeDataMaps); } if (null != + * newNodeDataMaps && !newNodeDataMaps.isEmpty()) { + * DBSql.batchUpdate("INSERT INTO BO_EU_PAL_FILENODE6" + + * " (ID, NODEID, NODENAME, NODETYPE, PLID, PLNAME, NODECATEGORY, ITSYSVAL, ACTIVITYNUMBER, ACTIVITYDESC, ROLE, POST, ROLENAME, POSTNAME, MODIFYDATETIME) " + * + + * " VALUES(:uuId, :NODEID, :NODENAME, :NODETYPE, :PLID, :PLNAME, :NODECATEGORY, :ITSYSVAL, :ACTIVITYNUMBER, :ACTIVITYDESC, :ROLE, :POST, :ROLENAME, :POSTNAME, :MODIFYDATETIME)" + * , newNodeDataMaps); } if (null != delNodeDataMaps && + * !delNodeDataMaps.isEmpty()) { + * DBSql.batchUpdate("DELETE FROM BO_EU_PAL_FILENODE6 WHERE NODEID=:NODEID", + * delNodeDataMaps); } + */ + SDK.getLogAPI().consoleInfo("新增节点" + newNodeDataMaps.size()); + SDK.getLogAPI().consoleInfo("修改节点" + oldNodeDataMaps.size()); + SDK.getLogAPI().consoleInfo("删除节点" + delNodeDataMaps.size()); + + long endTime = System.currentTimeMillis(); + SDK.getLogAPI().consoleInfo("结束时间" + endTime); + SDK.getLogAPI().consoleInfo("运行时间" + (endTime - startTime)); + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job2.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job2.java new file mode 100644 index 00000000..954d36e4 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job2.java @@ -0,0 +1,330 @@ +package com.awspaas.user.apps.app.reportform.job; + +import java.sql.Timestamp; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.quartz.DisallowConcurrentExecution; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.designer.util.CoeDesignerUtil; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; + +/** + * @author:lihongyu + * @create: 2022-11-03 11:32 + * @Description: 全量同步文件 + */ +@DisallowConcurrentExecution +public class SyncData_job2 implements IJob { + + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + syncNodeData(); + + } + //同步节点数据到 BO_EU_PAL_FILENODE6 + public void syncNodeData() { + DBSql.update("DELETE FROM BO_EU_PAL_FILENODE6"); + HashMap dataMap = new HashMap<>(); + ArrayList fromNodeDataIDMaps = new ArrayList<>(); + ArrayList> oldNodeDataMaps = new ArrayList<>(); + ArrayList> newNodeDataMaps = new ArrayList<>(); + ArrayList> delNodeDataMaps = new ArrayList<>(); + //String wsId = "7d3ca852-a0bd-42e6-80b1-3dcea6f55083"; + String wsId = "56409791-2c44-4f0e-85a9-146050053521"; + //总文件集合 + String process = "process"; + String org = "org"; + String data = "data"; + String itsystem = "itsystem"; + String control = "control"; + List palProcessList = new ArrayList<>(); + Set palProcessIds = new HashSet<>(); + List palOrgList = new ArrayList<>(); + Set palOrgIds = new HashSet<>(); + List palDataList = new ArrayList<>(); + Set palDataIds = new HashSet<>(); + List palItsystemList = new ArrayList<>(); + Set palItsystemIds = new HashSet<>(); + List palControlList = new ArrayList<>(); + Set palControlIds = new HashSet<>(); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, process, palProcessList, palProcessIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, org, palOrgList, palOrgIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, data, palDataList, palDataIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, itsystem, palItsystemList, palItsystemIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, control, palControlList, palControlIds); + //合并为文件总量list + List palTotalList = new ArrayList<>(); + palTotalList.addAll(palProcessList); + palTotalList.addAll(palOrgList); + palTotalList.addAll(palDataList); + palTotalList.addAll(palItsystemList); + palTotalList.addAll(palControlList); + SDK.getLogAPI().consoleInfo("process下文件数量:" + palProcessList.size()); + SDK.getLogAPI().consoleInfo("org下文件数量:" + palOrgList.size()); + SDK.getLogAPI().consoleInfo("data下文件数量:" + palDataList.size()); + SDK.getLogAPI().consoleInfo("itsystem下文件数量:" + palItsystemList.size()); + SDK.getLogAPI().consoleInfo("control下文件数量:" + palControlList.size()); + SDK.getLogAPI().consoleInfo("文件总数量:" + palTotalList.size()); + + long startTime = System.currentTimeMillis(); + List nodeIdList = DBSql.getList("SELECT NODEID FROM BO_EU_PAL_FILENODE6", String.class); + for (PALRepositoryModel fileModel : palTotalList) { + List> nodeElements = new ArrayList<>(); + String PLMETHODID = fileModel.getMethodId(); + String FILEID = fileModel.getId(); + String PLNAME = fileModel.getName(); + String plRid = fileModel.getPlRid(); + /* + * String sql = + * "SELECT ID FROM (SELECT * FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLRID = '" + * +plRid+"' AND ISPUBLISH ='1' ORDER BY PLVER DESC ) WHERE ROWNUM<2"; String + * palId = DBSql.getString(sql); if(UtilString.isNotEmpty(palId)) { + * if(!FILEID.equals(palId)) { + * SDK.getLogAPI().consoleInfo("同步数据发现旧版本文件名称:"+PLNAME+"——文件id:"+FILEID); String + * dsql = "DELETE FROM BO_EU_PAL_FILE1 WHERE FILEID = '"+FILEID+"'"; + * DBSql.update(dsql); continue; } } + */ + Timestamp MODIFYDATETIME = fileModel.getModifyDate(); + //更新/新增节点 + nodeElements = new ArrayList<>(); + if("72306ffe-1a2d-47ad-a426-3bdf102ddc25".equals(FILEID)) { + if(PLMETHODID.equals("process.epc")||PLMETHODID.equals("process.flowchart")) { + try { + nodeElements = CoeDesignerUtil.getShapeMessageJson4(FILEID); + } catch (Exception e) { + SDK.getLogAPI().consoleInfo("获取节点属性过程中,"+"文件ID:"+PLNAME+"=======>获取节点形状属性异常"); + } + //System.err.println(PLNAME+"======nodeElements1=======>"+nodeElements); + } + + //制度类型 + /* + * nodeElements = new ArrayList<>(); if (PLMETHODID.equals("control.policy")) { + * try { nodeElements = CoeDesignerUtil.getShapeMessageJson4(FILEID); } catch + * (Exception e) { SDK.getLogAPI().consoleInfo("获取制度类型过程中," + "文件ID:" + FILEID + + * "获取节点形状属性异常"); } + * //System.err.println(PLNAME+"======nodeElements2=======>"+nodeElements); } + */ + //同步角色岗位 + if (null != nodeElements && !nodeElements.isEmpty()) { + for (Map nodeElement : nodeElements) { + String NODETYPE = String.valueOf(nodeElement.get("type")); + if (NODETYPE.equals("method_approval_node") || NODETYPE.equals("method_service_node") || NODETYPE.equals("method_approval_node3") || NODETYPE.equals("method_service_node4")) { + //节点信息 + String NODEID = String.valueOf(nodeElement.get("id")); + String NODENAME = String.valueOf(nodeElement.get("name")); + //形状属性数组 + JSONArray attributesArray = JSON.parseArray(String.valueOf(nodeElement.get("attributes"))); + //形状属性:信息系统、活动序号、活动描述、角色、岗位 + String ITSYSVAL = ""; + String ACTIVITYNUMBER = ""; + String ACTIVITYDESC = ""; + String ROLE = ""; + String ROLENAME = ""; + String POST = ""; + String POSTNAME = ""; + if (null != attributesArray && !attributesArray.isEmpty()) { + for (Object attribute : attributesArray) { + JSONObject attributeJO = JSON.parseObject(String.valueOf(attribute)); + String SHAPEATTRKEY = attributeJO.getString("key"); + if (SHAPEATTRKEY.equals("information_systems")) { + ITSYSVAL = attributeJO.getString("value"); + } + if (SHAPEATTRKEY.equals("activity_number")) { + ACTIVITYNUMBER = attributeJO.getString("value"); + } + if (SHAPEATTRKEY.equals("activity_description")) { + ACTIVITYDESC = attributeJO.getString("value"); + } + if (SHAPEATTRKEY.equals("role")) { + String nodeRoleText = attributeJO.getString("value"); + ROLE = nodeRoleText; + if (null!=ROLE && !ROLE.equals("")) { + List roleFileRowMaps = new ArrayList<>(); + try { + roleFileRowMaps = DBSql.getMaps("SELECT RELATIONFILEID FROM APP_ACT_COE_PAL_SHAPE_RLAT WHERE FILEID='"+FILEID+"' AND ATTRID='role'"); + } catch (Exception e) { + SDK.getLogAPI().consoleInfo("获取流程节点角色属性关联文件时"+"文件名称:"+PLNAME+"___文件ID:"+FILEID+"___节点ID:"+NODEID+"异常"); + } + + if (null!=roleFileRowMaps && !roleFileRowMaps.isEmpty()) { + for (RowMap roleFileRowMap : roleFileRowMaps) { + String RELATIONFILEID = roleFileRowMap.getString("RELATIONFILEID"); + //角色文件属性 + List> roleShapes = new ArrayList<>(); + try { + roleShapes = CoeDesignerUtil.getShapeMessageJson4(RELATIONFILEID); + } catch (Exception e) { + + //SDK.getLogAPI().consoleInfo("获取关联角色文件属性"+"文件ID:"+RELATIONFILEID+"异常"); + } + System.err.println("=========roleShapes========>"+roleShapes); + if (null != roleShapes && !roleShapes.isEmpty()) { + for (Map roleShape : roleShapes) { + String roleFileNodeName = String.valueOf(roleShape.get("name")); + if (nodeRoleText.contains(roleFileNodeName)) { + //角色节点形状属性 + JSONArray roleShapeJA = null; + try { + roleShapeJA = JSONArray.parseArray(String.valueOf(roleShape.get("attributes"))); + } catch (Exception e) { + SDK.getLogAPI().consoleInfo("获取角色节点形状属性jsonArray"+"文件ID:"+RELATIONFILEID+"异常"); + } + if (null != roleShapeJA && !roleShapeJA.isEmpty()) { + for (Object roleShapeO : roleShapeJA) { + JSONObject roleShapeJO = JSON.parseObject(String.valueOf(roleShapeO)); + String roleShapeKey = roleShapeJO.getString("key"); + if (roleShapeKey.equals("post")) { + //SDK.getLogAPI().consoleInfo("角色岗位"+roleShapeJO.getString("value")); + POST = roleShapeJO.getString("value"); + System.err.println("POST=========>"+POST); + } + if (roleShapeKey.equals("post_text")) { + //SDK.getLogAPI().consoleInfo("角色岗位文本"+roleShapeJO); + ROLENAME = roleShapeJO.getString("value"); + POSTNAME = roleShapeJO.getString("value"); + + } + } + } + } + } + } + } + } + } else { + for (Object attribute1 : attributesArray) { + JSONObject attributeJO1 = JSON.parseObject(String.valueOf(attribute1)); + String SHAPEATTRKEY1 = attributeJO1.getString("key"); + if (SHAPEATTRKEY1.equals("post")) { + POST = attributeJO1.getString("value"); + } + if (SHAPEATTRKEY1.equals("post_text")) { + POSTNAME = attributeJO1.getString("value"); + } + } + } + } + } + } + + fromNodeDataIDMaps.add(NODEID); + + if (nodeIdList.contains(NODEID)) { + dataMap = new HashMap<>(); + Date nowDateJ = new Date(System.currentTimeMillis()); + Timestamp nowDateTime = new Timestamp(nowDateJ.getTime()); + dataMap.put("UPDATEDATE", nowDateTime); + dataMap.put("NODENAME", NODENAME); + dataMap.put("NODETYPE", NODETYPE); + dataMap.put("PLNAME", PLNAME); + dataMap.put("NODECATEGORY", PLMETHODID); + dataMap.put("ITSYSVAL", ITSYSVAL); + dataMap.put("ACTIVITYNUMBER", ACTIVITYNUMBER); + dataMap.put("ACTIVITYDESC", ACTIVITYDESC); + dataMap.put("ROLE", ROLE); + dataMap.put("ROLENAME", ROLENAME); + dataMap.put("POST", POST); + dataMap.put("POSTNAME", POSTNAME); + dataMap.put("PLID", FILEID); + dataMap.put("NODEID", NODEID); + dataMap.put("MODIFYDATETIME", MODIFYDATETIME); + //System.err.println("更新节点信息===========>"+dataMap); + oldNodeDataMaps.add(dataMap); + } else { + dataMap = new HashMap<>(); + String uuId = SDK.getRuleAPI().executeAtScript("@uuid()"); + dataMap.put("uuId", uuId); + dataMap.put("NODEID", NODEID); + dataMap.put("NODENAME", NODENAME); + dataMap.put("NODETYPE", NODETYPE); + dataMap.put("PLID", FILEID); + dataMap.put("PLNAME", PLNAME); + dataMap.put("NODECATEGORY", PLMETHODID); + dataMap.put("ITSYSVAL", ITSYSVAL); + dataMap.put("ACTIVITYNUMBER", ACTIVITYNUMBER); + dataMap.put("ACTIVITYDESC", ACTIVITYDESC); + dataMap.put("ROLE", ROLE); + dataMap.put("POST", POST); + dataMap.put("ROLENAME", ROLENAME); + dataMap.put("POSTNAME", POSTNAME); + dataMap.put("MODIFYDATETIME", MODIFYDATETIME); + //System.err.println("同步节点信息===========>"+dataMap); + try { + DBSql.update("INSERT INTO BO_EU_PAL_FILENODE6" + + " (ID, NODEID, NODENAME, NODETYPE, PLID, PLNAME, NODECATEGORY, ITSYSVAL, ACTIVITYNUMBER, ACTIVITYDESC, ROLE, POST, ROLENAME, POSTNAME, MODIFYDATETIME) " + + " VALUES(:uuId, :NODEID, :NODENAME, :NODETYPE, :PLID, :PLNAME, :NODECATEGORY, :ITSYSVAL, :ACTIVITYNUMBER, :ACTIVITYDESC, :ROLE, :POST, :ROLENAME, :POSTNAME, :MODIFYDATETIME)", dataMap); + } catch (Exception e) { + BO bo = new BO(); + bo.set("PLID", FILEID); + bo.set("PLNAME", PLNAME); + bo.set("NODEID", NODEID); + bo.set("NODENAME", NODENAME); + bo.set("INFORMATION", e.getMessage()); + SDK.getBOAPI().createDataBO("BO_EU_NODESYN_EXCEPTION", bo, UserContext.fromUID("admin")); + System.err.println("数据保存异常==========>"+e.getMessage()+"__活动描述:"+ACTIVITYDESC); + } + + + //newNodeDataMaps.add(dataMap); + } + } + } + } + } + } + + if (null != nodeIdList && !nodeIdList.isEmpty()) { + for (String nodeIdOfList : nodeIdList) { + if (!fromNodeDataIDMaps.contains(nodeIdOfList)) { + dataMap = new HashMap<>(); + dataMap.put("NODEID", nodeIdOfList); + delNodeDataMaps.add(dataMap); + } + } + } + /* + * if (null != oldNodeDataMaps && !oldNodeDataMaps.isEmpty()) { + * DBSql.batchUpdate("UPDATE BO_EU_PAL_FILENODE6 SET" + + * " NODENAME=:NODENAME, NODETYPE=:NODETYPE, PLNAME=:PLNAME, NODECATEGORY=:NODECATEGORY, ITSYSVAL=:ITSYSVAL, " + * + + * " ACTIVITYNUMBER=:ACTIVITYNUMBER, ACTIVITYDESC=:ACTIVITYDESC, ROLE=:ROLE, POST=:POST, ROLENAME=:ROLENAME, POSTNAME=:POSTNAME, MODIFYDATETIME=:MODIFYDATETIME, UPDATEDATE=:UPDATEDATE " + * + " WHERE PLID=:PLID AND NODEID=:NODEID", oldNodeDataMaps); } if (null != + * newNodeDataMaps && !newNodeDataMaps.isEmpty()) { + * DBSql.batchUpdate("INSERT INTO BO_EU_PAL_FILENODE6" + + * " (ID, NODEID, NODENAME, NODETYPE, PLID, PLNAME, NODECATEGORY, ITSYSVAL, ACTIVITYNUMBER, ACTIVITYDESC, ROLE, POST, ROLENAME, POSTNAME, MODIFYDATETIME) " + * + + * " VALUES(:uuId, :NODEID, :NODENAME, :NODETYPE, :PLID, :PLNAME, :NODECATEGORY, :ITSYSVAL, :ACTIVITYNUMBER, :ACTIVITYDESC, :ROLE, :POST, :ROLENAME, :POSTNAME, :MODIFYDATETIME)" + * , newNodeDataMaps); } if (null != delNodeDataMaps && + * !delNodeDataMaps.isEmpty()) { + * DBSql.batchUpdate("DELETE FROM BO_EU_PAL_FILENODE6 WHERE NODEID=:NODEID", + * delNodeDataMaps); } + */ + SDK.getLogAPI().consoleInfo("新增节点" + newNodeDataMaps.size()); + SDK.getLogAPI().consoleInfo("修改节点" + oldNodeDataMaps.size()); + SDK.getLogAPI().consoleInfo("删除节点" + delNodeDataMaps.size()); + + long endTime = System.currentTimeMillis(); + SDK.getLogAPI().consoleInfo("结束时间" + endTime); + SDK.getLogAPI().consoleInfo("运行时间" + (endTime - startTime)); + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job3.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job3.java new file mode 100644 index 00000000..7ab4b2e6 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job3.java @@ -0,0 +1,335 @@ +package com.awspaas.user.apps.app.reportform.job; + +import java.sql.Timestamp; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.quartz.DisallowConcurrentExecution; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.designer.util.CoeDesignerUtil; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; + +/** + * @author:lihongyu + * @create: 2022-11-03 11:32 + * @Description: 全量同步文件 + */ +@DisallowConcurrentExecution +public class SyncData_job3 implements IJob { + + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + syncNodeData(); + + } + //同步节点数据到 BO_EU_PAL_FILENODE6 + public void syncNodeData() { + DBSql.update("DELETE FROM BO_EU_PAL_FILENODE6"); + HashMap dataMap = new HashMap<>(); + ArrayList fromNodeDataIDMaps = new ArrayList<>(); + ArrayList> oldNodeDataMaps = new ArrayList<>(); + ArrayList> newNodeDataMaps = new ArrayList<>(); + ArrayList> delNodeDataMaps = new ArrayList<>(); + String wsId = "7d3ca852-a0bd-42e6-80b1-3dcea6f55083"; + //总文件集合 + String process = "process"; + String org = "org"; + String data = "data"; + String itsystem = "itsystem"; + String control = "control"; + List palProcessList = new ArrayList<>(); + Set palProcessIds = new HashSet<>(); + List palOrgList = new ArrayList<>(); + Set palOrgIds = new HashSet<>(); + List palDataList = new ArrayList<>(); + Set palDataIds = new HashSet<>(); + List palItsystemList = new ArrayList<>(); + Set palItsystemIds = new HashSet<>(); + List palControlList = new ArrayList<>(); + Set palControlIds = new HashSet<>(); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, process, palProcessList, palProcessIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, org, palOrgList, palOrgIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, data, palDataList, palDataIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, itsystem, palItsystemList, palItsystemIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, control, palControlList, palControlIds); + //合并为文件总量list + List palTotalList = new ArrayList<>(); + palTotalList.addAll(palProcessList); + palTotalList.addAll(palOrgList); + palTotalList.addAll(palDataList); + palTotalList.addAll(palItsystemList); + palTotalList.addAll(palControlList); + SDK.getLogAPI().consoleInfo("process下文件数量:" + palProcessList.size()); + SDK.getLogAPI().consoleInfo("org下文件数量:" + palOrgList.size()); + SDK.getLogAPI().consoleInfo("data下文件数量:" + palDataList.size()); + SDK.getLogAPI().consoleInfo("itsystem下文件数量:" + palItsystemList.size()); + SDK.getLogAPI().consoleInfo("control下文件数量:" + palControlList.size()); + SDK.getLogAPI().consoleInfo("文件总数量:" + palTotalList.size()); + + long startTime = System.currentTimeMillis(); + List nodeIdList = DBSql.getList("SELECT NODEID FROM BO_EU_PAL_FILENODE6", String.class); + for (PALRepositoryModel fileModel : palTotalList) { + List> nodeElements = new ArrayList<>(); + String PLMETHODID = fileModel.getMethodId(); + String FILEID = fileModel.getId(); + String PLNAME = fileModel.getName(); + String plRid = fileModel.getPlRid(); + /* + * String sql = + * "SELECT ID FROM (SELECT * FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLRID = '" + * +plRid+"' AND ISPUBLISH ='1' ORDER BY PLVER DESC ) WHERE ROWNUM<2"; String + * palId = DBSql.getString(sql); if(UtilString.isNotEmpty(palId)) { + * if(!FILEID.equals(palId)) { + * SDK.getLogAPI().consoleInfo("同步数据发现旧版本文件名称:"+PLNAME+"——文件id:"+FILEID); String + * dsql = "DELETE FROM BO_EU_PAL_FILE1 WHERE FILEID = '"+FILEID+"'"; + * DBSql.update(dsql); continue; } } + */ + Timestamp MODIFYDATETIME = fileModel.getModifyDate(); + //更新/新增节点 + nodeElements = new ArrayList<>(); + + if("7475bf99-9b75-4099-93c3-a3c1bc4fd19b".equals(FILEID)) { + if(PLMETHODID.equals("process.epc")||PLMETHODID.equals("process.flowchart")) { + try { + nodeElements = CoeDesignerUtil.getShapeMessageJson4(FILEID); + } catch (Exception e) { + SDK.getLogAPI().consoleInfo("获取节点属性过程中,"+"文件ID:"+PLNAME+"=======>获取节点形状属性异常"); + } + //System.err.println(PLNAME+"======nodeElements1=======>"+nodeElements); + } + + //制度类型 + /* + * nodeElements = new ArrayList<>(); if (PLMETHODID.equals("control.policy")) { + * try { nodeElements = CoeDesignerUtil.getShapeMessageJson4(FILEID); } catch + * (Exception e) { SDK.getLogAPI().consoleInfo("获取制度类型过程中," + "文件ID:" + FILEID + + * "获取节点形状属性异常"); } + * //System.err.println(PLNAME+"======nodeElements2=======>"+nodeElements); } + */ + //同步角色岗位 + if (null != nodeElements && !nodeElements.isEmpty()) { + for (Map nodeElement : nodeElements) { + String NODETYPE = String.valueOf(nodeElement.get("type")); + if (NODETYPE.equals("method_approval_node") || NODETYPE.equals("method_service_node") || NODETYPE.equals("method_approval_node3") || NODETYPE.equals("method_service_node4")) { + //节点信息 + String NODEID = String.valueOf(nodeElement.get("id")); + String NODENAME = String.valueOf(nodeElement.get("name")); + //形状属性数组 + JSONArray attributesArray = JSON.parseArray(String.valueOf(nodeElement.get("attributes"))); + //形状属性:信息系统、活动序号、活动描述、角色、岗位 + String ITSYSVAL = ""; + String ACTIVITYNUMBER = ""; + String ACTIVITYDESC = ""; + String ROLE = ""; + String ROLENAME = ""; + String POST = ""; + String POSTNAME = ""; + if (null != attributesArray && !attributesArray.isEmpty()) { + for (Object attribute : attributesArray) { + JSONObject attributeJO = JSON.parseObject(String.valueOf(attribute)); + String SHAPEATTRKEY = attributeJO.getString("key"); + if (SHAPEATTRKEY.equals("information_systems")) { + ITSYSVAL = attributeJO.getString("value"); + } + if (SHAPEATTRKEY.equals("activity_number")) { + ACTIVITYNUMBER = attributeJO.getString("value"); + } + if (SHAPEATTRKEY.equals("activity_description")) { + ACTIVITYDESC = attributeJO.getString("value"); + } + if (SHAPEATTRKEY.equals("role")) { + String nodeRoleText = attributeJO.getString("value"); + if(!"文件发起单位审核人员".equals(nodeRoleText)) { + break; + } + ROLE = nodeRoleText; + if (null!=ROLE && !ROLE.equals("")) { + List roleFileRowMaps = new ArrayList<>(); + try { + roleFileRowMaps = DBSql.getMaps("SELECT RELATIONFILEID FROM APP_ACT_COE_PAL_SHAPE_RLAT WHERE FILEID='"+FILEID+"' AND ATTRID='role'"); + } catch (Exception e) { + SDK.getLogAPI().consoleInfo("获取流程节点角色属性关联文件时"+"文件名称:"+PLNAME+"___文件ID:"+FILEID+"___节点ID:"+NODEID+"异常"); + } + + if (null!=roleFileRowMaps && !roleFileRowMaps.isEmpty()) { + for (RowMap roleFileRowMap : roleFileRowMaps) { + String RELATIONFILEID = roleFileRowMap.getString("RELATIONFILEID"); + //角色文件属性 + List> roleShapes = new ArrayList<>(); + try { + roleShapes = CoeDesignerUtil.getShapeMessageJson4(RELATIONFILEID); + } catch (Exception e) { + + //SDK.getLogAPI().consoleInfo("获取关联角色文件属性"+"文件ID:"+RELATIONFILEID+"异常"); + } + System.err.println("=========roleShapes========>"+roleShapes); + if (null != roleShapes && !roleShapes.isEmpty()) { + for (Map roleShape : roleShapes) { + String roleFileNodeName = String.valueOf(roleShape.get("name")); + if (nodeRoleText.contains(roleFileNodeName)) { + //角色节点形状属性 + JSONArray roleShapeJA = null; + try { + roleShapeJA = JSONArray.parseArray(String.valueOf(roleShape.get("attributes"))); + } catch (Exception e) { + SDK.getLogAPI().consoleInfo("获取角色节点形状属性jsonArray"+"文件ID:"+RELATIONFILEID+"异常"); + } + if (null != roleShapeJA && !roleShapeJA.isEmpty()) { + for (Object roleShapeO : roleShapeJA) { + JSONObject roleShapeJO = JSON.parseObject(String.valueOf(roleShapeO)); + String roleShapeKey = roleShapeJO.getString("key"); + if (roleShapeKey.equals("post")) { + //SDK.getLogAPI().consoleInfo("角色岗位"+roleShapeJO.getString("value")); + POST = roleShapeJO.getString("value"); + if("伊利集团流程制度类文件发布流程".equals(PLNAME)) { + System.err.println("POST=========>"+POST); + } + } + if (roleShapeKey.equals("post_text")) { + //SDK.getLogAPI().consoleInfo("角色岗位文本"+roleShapeJO); + ROLENAME = roleShapeJO.getString("value"); + POSTNAME = roleShapeJO.getString("value"); + + } + } + } + } + } + } + } + } + } else { + for (Object attribute1 : attributesArray) { + JSONObject attributeJO1 = JSON.parseObject(String.valueOf(attribute1)); + String SHAPEATTRKEY1 = attributeJO1.getString("key"); + if (SHAPEATTRKEY1.equals("post")) { + POST = attributeJO1.getString("value"); + } + if (SHAPEATTRKEY1.equals("post_text")) { + POSTNAME = attributeJO1.getString("value"); + } + } + } + } + } + } + + fromNodeDataIDMaps.add(NODEID); + + if (nodeIdList.contains(NODEID)) { + dataMap = new HashMap<>(); + Date nowDateJ = new Date(System.currentTimeMillis()); + Timestamp nowDateTime = new Timestamp(nowDateJ.getTime()); + dataMap.put("UPDATEDATE", nowDateTime); + dataMap.put("NODENAME", NODENAME); + dataMap.put("NODETYPE", NODETYPE); + dataMap.put("PLNAME", PLNAME); + dataMap.put("NODECATEGORY", PLMETHODID); + dataMap.put("ITSYSVAL", ITSYSVAL); + dataMap.put("ACTIVITYNUMBER", ACTIVITYNUMBER); + dataMap.put("ACTIVITYDESC", ACTIVITYDESC); + dataMap.put("ROLE", ROLE); + dataMap.put("ROLENAME", ROLENAME); + dataMap.put("POST", POST); + dataMap.put("POSTNAME", POSTNAME); + dataMap.put("PLID", FILEID); + dataMap.put("NODEID", NODEID); + dataMap.put("MODIFYDATETIME", MODIFYDATETIME); + //System.err.println("更新节点信息===========>"+dataMap); + oldNodeDataMaps.add(dataMap); + } else { + dataMap = new HashMap<>(); + String uuId = SDK.getRuleAPI().executeAtScript("@uuid()"); + dataMap.put("uuId", uuId); + dataMap.put("NODEID", NODEID); + dataMap.put("NODENAME", NODENAME); + dataMap.put("NODETYPE", NODETYPE); + dataMap.put("PLID", FILEID); + dataMap.put("PLNAME", PLNAME); + dataMap.put("NODECATEGORY", PLMETHODID); + dataMap.put("ITSYSVAL", ITSYSVAL); + dataMap.put("ACTIVITYNUMBER", ACTIVITYNUMBER); + dataMap.put("ACTIVITYDESC", ACTIVITYDESC); + dataMap.put("ROLE", ROLE); + dataMap.put("POST", POST); + dataMap.put("ROLENAME", ROLENAME); + dataMap.put("POSTNAME", POSTNAME); + dataMap.put("MODIFYDATETIME", MODIFYDATETIME); + //System.err.println("同步节点信息===========>"+dataMap); + try { + DBSql.update("INSERT INTO BO_EU_PAL_FILENODE6" + + " (ID, NODEID, NODENAME, NODETYPE, PLID, PLNAME, NODECATEGORY, ITSYSVAL, ACTIVITYNUMBER, ACTIVITYDESC, ROLE, POST, ROLENAME, POSTNAME, MODIFYDATETIME) " + + " VALUES(:uuId, :NODEID, :NODENAME, :NODETYPE, :PLID, :PLNAME, :NODECATEGORY, :ITSYSVAL, :ACTIVITYNUMBER, :ACTIVITYDESC, :ROLE, :POST, :ROLENAME, :POSTNAME, :MODIFYDATETIME)", dataMap); + } catch (Exception e) { + BO bo = new BO(); + bo.set("PLID", FILEID); + bo.set("PLNAME", PLNAME); + bo.set("NODEID", NODEID); + bo.set("NODENAME", NODENAME); + bo.set("INFORMATION", e.getMessage()); + SDK.getBOAPI().createDataBO("BO_EU_NODESYN_EXCEPTION", bo, UserContext.fromUID("admin")); + System.err.println("数据保存异常==========>"+e.getMessage()+"__活动描述:"+ACTIVITYDESC); + } + + + //newNodeDataMaps.add(dataMap); + } + } + } + } + } + } + + if (null != nodeIdList && !nodeIdList.isEmpty()) { + for (String nodeIdOfList : nodeIdList) { + if (!fromNodeDataIDMaps.contains(nodeIdOfList)) { + dataMap = new HashMap<>(); + dataMap.put("NODEID", nodeIdOfList); + delNodeDataMaps.add(dataMap); + } + } + } + /* + * if (null != oldNodeDataMaps && !oldNodeDataMaps.isEmpty()) { + * DBSql.batchUpdate("UPDATE BO_EU_PAL_FILENODE6 SET" + + * " NODENAME=:NODENAME, NODETYPE=:NODETYPE, PLNAME=:PLNAME, NODECATEGORY=:NODECATEGORY, ITSYSVAL=:ITSYSVAL, " + * + + * " ACTIVITYNUMBER=:ACTIVITYNUMBER, ACTIVITYDESC=:ACTIVITYDESC, ROLE=:ROLE, POST=:POST, ROLENAME=:ROLENAME, POSTNAME=:POSTNAME, MODIFYDATETIME=:MODIFYDATETIME, UPDATEDATE=:UPDATEDATE " + * + " WHERE PLID=:PLID AND NODEID=:NODEID", oldNodeDataMaps); } if (null != + * newNodeDataMaps && !newNodeDataMaps.isEmpty()) { + * DBSql.batchUpdate("INSERT INTO BO_EU_PAL_FILENODE6" + + * " (ID, NODEID, NODENAME, NODETYPE, PLID, PLNAME, NODECATEGORY, ITSYSVAL, ACTIVITYNUMBER, ACTIVITYDESC, ROLE, POST, ROLENAME, POSTNAME, MODIFYDATETIME) " + * + + * " VALUES(:uuId, :NODEID, :NODENAME, :NODETYPE, :PLID, :PLNAME, :NODECATEGORY, :ITSYSVAL, :ACTIVITYNUMBER, :ACTIVITYDESC, :ROLE, :POST, :ROLENAME, :POSTNAME, :MODIFYDATETIME)" + * , newNodeDataMaps); } if (null != delNodeDataMaps && + * !delNodeDataMaps.isEmpty()) { + * DBSql.batchUpdate("DELETE FROM BO_EU_PAL_FILENODE6 WHERE NODEID=:NODEID", + * delNodeDataMaps); } + */ + SDK.getLogAPI().consoleInfo("新增节点" + newNodeDataMaps.size()); + SDK.getLogAPI().consoleInfo("修改节点" + oldNodeDataMaps.size()); + SDK.getLogAPI().consoleInfo("删除节点" + delNodeDataMaps.size()); + + long endTime = System.currentTimeMillis(); + SDK.getLogAPI().consoleInfo("结束时间" + endTime); + SDK.getLogAPI().consoleInfo("运行时间" + (endTime - startTime)); + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job4.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job4.java new file mode 100644 index 00000000..3e04654c --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job4.java @@ -0,0 +1,307 @@ +package com.awspaas.user.apps.app.reportform.job; + +import java.sql.Timestamp; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.quartz.DisallowConcurrentExecution; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.designer.util.CoeDesignerUtil; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; + +/** + * @author:lihongyu + * @create: 2022-11-03 11:32 + * @Description: 全量同步文件 + */ +@DisallowConcurrentExecution +public class SyncData_job4 implements IJob { + + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + syncNodeData(); + + } + //同步节点数据到 BO_EU_PAL_FILENODE6 + public void syncNodeData() { + //DBSql.update("DELETE FROM BO_EU_NODESYN_EXCEPTION"); + DBSql.update("DELETE FROM BO_EU_PAL_FILENODE6"); + HashMap dataMap = new HashMap<>(); + ArrayList fromNodeDataIDMaps = new ArrayList<>(); + ArrayList> oldNodeDataMaps = new ArrayList<>(); + ArrayList> newNodeDataMaps = new ArrayList<>(); + ArrayList> delNodeDataMaps = new ArrayList<>(); + String wsId = "7d3ca852-a0bd-42e6-80b1-3dcea6f55083"; + //总文件集合 + String process = "process"; + String org = "org"; + String data = "data"; + String itsystem = "itsystem"; + String control = "control"; + List palProcessList = new ArrayList<>(); + Set palProcessIds = new HashSet<>(); + List palOrgList = new ArrayList<>(); + Set palOrgIds = new HashSet<>(); + List palDataList = new ArrayList<>(); + Set palDataIds = new HashSet<>(); + List palItsystemList = new ArrayList<>(); + Set palItsystemIds = new HashSet<>(); + List palControlList = new ArrayList<>(); + Set palControlIds = new HashSet<>(); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, process, palProcessList, palProcessIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, org, palOrgList, palOrgIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, data, palDataList, palDataIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, itsystem, palItsystemList, palItsystemIds); + PALRepositoryCache.getAllChildrenModelsByPid(wsId, control, palControlList, palControlIds); + //合并为文件总量list + List palTotalList = new ArrayList<>(); + palTotalList.addAll(palProcessList); + palTotalList.addAll(palOrgList); + palTotalList.addAll(palDataList); + palTotalList.addAll(palItsystemList); + palTotalList.addAll(palControlList); + SDK.getLogAPI().consoleInfo("process下文件数量:" + palProcessList.size()); + SDK.getLogAPI().consoleInfo("org下文件数量:" + palOrgList.size()); + SDK.getLogAPI().consoleInfo("data下文件数量:" + palDataList.size()); + SDK.getLogAPI().consoleInfo("itsystem下文件数量:" + palItsystemList.size()); + SDK.getLogAPI().consoleInfo("control下文件数量:" + palControlList.size()); + SDK.getLogAPI().consoleInfo("文件总数量:" + palTotalList.size()); + + long startTime = System.currentTimeMillis(); + List nodeIdList = DBSql.getList("SELECT NODEID FROM BO_EU_PAL_FILENODE6", String.class); + for (PALRepositoryModel fileModel : palTotalList) { + List> nodeElements = new ArrayList<>(); + String PLMETHODID = fileModel.getMethodId(); + String FILEID = fileModel.getId(); + String PLNAME = fileModel.getName(); + Timestamp MODIFYDATETIME = fileModel.getModifyDate(); + //更新/新增节点 + nodeElements = new ArrayList<>(); + if(PLMETHODID.equals("process.flowchart")) { + try { + nodeElements = CoeDesignerUtil.getShapeMessageJson4(FILEID); + } catch (Exception e) { + SDK.getLogAPI().consoleInfo("获取节点属性过程中,"+"文件ID:"+PLNAME+"=======>获取节点形状属性异常"); + } + //System.err.println(PLNAME+"======nodeElements1=======>"+nodeElements); + } + + //同步角色岗位 + if (null != nodeElements && !nodeElements.isEmpty()) { + for (Map nodeElement : nodeElements) { + String NODETYPE = String.valueOf(nodeElement.get("type")); + if (NODETYPE.equals("method_approval_node") || NODETYPE.equals("method_service_node") || NODETYPE.equals("method_approval_node3") || NODETYPE.equals("method_service_node4")) { + //节点信息 + String NODEID = String.valueOf(nodeElement.get("id")); + String NODENAME = String.valueOf(nodeElement.get("name")); + //形状属性数组 + JSONArray attributesArray = JSON.parseArray(String.valueOf(nodeElement.get("attributes"))); + //形状属性:信息系统、活动序号、活动描述、角色、岗位 + String ITSYSVAL = ""; + String ACTIVITYNUMBER = ""; + String ACTIVITYDESC = ""; + String ROLE = ""; + String ROLENAME = ""; + String POST = ""; + String POSTNAME = ""; + if (null != attributesArray && !attributesArray.isEmpty()) { + for (Object attribute : attributesArray) { + JSONObject attributeJO = JSON.parseObject(String.valueOf(attribute)); + String SHAPEATTRKEY = attributeJO.getString("key"); + if (SHAPEATTRKEY.equals("information_systems")) { + ITSYSVAL = attributeJO.getString("value"); + } + if (SHAPEATTRKEY.equals("activity_number")) { + ACTIVITYNUMBER = attributeJO.getString("value"); + } + if (SHAPEATTRKEY.equals("activity_description")) { + ACTIVITYDESC = attributeJO.getString("value"); + } + if (SHAPEATTRKEY.equals("role")) { + String nodeRoleText = attributeJO.getString("value"); + ROLE = nodeRoleText; + if (null!=ROLE && !ROLE.equals("")) { + List roleFileRowMaps = new ArrayList<>(); + try { + roleFileRowMaps = DBSql.getMaps("SELECT RELATIONFILEID FROM APP_ACT_COE_PAL_SHAPE_RLAT WHERE FILEID='"+FILEID+"' AND ATTRID='role'"); + } catch (Exception e) { + SDK.getLogAPI().consoleInfo("获取流程节点角色属性关联文件时"+"文件名称:"+PLNAME+"___文件ID:"+FILEID+"___节点ID:"+NODEID+"异常"); + } + + if (null!=roleFileRowMaps && !roleFileRowMaps.isEmpty()) { + for (RowMap roleFileRowMap : roleFileRowMaps) { + String RELATIONFILEID = roleFileRowMap.getString("RELATIONFILEID"); + //角色文件属性 + List> roleShapes = new ArrayList<>(); + try { + roleShapes = CoeDesignerUtil.getShapeMessageJson4(RELATIONFILEID); + } catch (Exception e) { + + //SDK.getLogAPI().consoleInfo("获取关联角色文件属性"+"文件ID:"+RELATIONFILEID+"异常"); + } + if (null != roleShapes && !roleShapes.isEmpty()) { + for (Map roleShape : roleShapes) { + String roleFileNodeName = String.valueOf(roleShape.get("name")); + if (nodeRoleText.contains(roleFileNodeName)) { + //角色节点形状属性 + JSONArray roleShapeJA = null; + try { + roleShapeJA = JSONArray.parseArray(String.valueOf(roleShape.get("attributes"))); + } catch (Exception e) { + SDK.getLogAPI().consoleInfo("获取角色节点形状属性jsonArray"+"文件ID:"+RELATIONFILEID+"异常"); + } + if (null != roleShapeJA && !roleShapeJA.isEmpty()) { + for (Object roleShapeO : roleShapeJA) { + JSONObject roleShapeJO = JSON.parseObject(String.valueOf(roleShapeO)); + String roleShapeKey = roleShapeJO.getString("key"); + if (roleShapeKey.equals("post")) { + //SDK.getLogAPI().consoleInfo("角色岗位"+roleShapeJO.getString("value")); + POST = roleShapeJO.getString("value"); + } + if (roleShapeKey.equals("post_text")) { + //SDK.getLogAPI().consoleInfo("角色岗位文本"+roleShapeJO); + ROLENAME = roleShapeJO.getString("value"); + POSTNAME = roleShapeJO.getString("value"); + + } + } + } + } + } + } + } + } + } else { + for (Object attribute1 : attributesArray) { + JSONObject attributeJO1 = JSON.parseObject(String.valueOf(attribute1)); + String SHAPEATTRKEY1 = attributeJO1.getString("key"); + if (SHAPEATTRKEY1.equals("post")) { + POST = attributeJO1.getString("value"); + } + if (SHAPEATTRKEY1.equals("post_text")) { + POSTNAME = attributeJO1.getString("value"); + } + } + } + } + } + } + + fromNodeDataIDMaps.add(NODEID); + + if (nodeIdList.contains(NODEID)) { + dataMap = new HashMap<>(); + Date nowDateJ = new Date(System.currentTimeMillis()); + Timestamp nowDateTime = new Timestamp(nowDateJ.getTime()); + dataMap.put("UPDATEDATE", nowDateTime); + dataMap.put("NODENAME", NODENAME); + dataMap.put("NODETYPE", NODETYPE); + dataMap.put("PLNAME", PLNAME); + dataMap.put("NODECATEGORY", PLMETHODID); + dataMap.put("ITSYSVAL", ITSYSVAL); + dataMap.put("ACTIVITYNUMBER", ACTIVITYNUMBER); + dataMap.put("ACTIVITYDESC", ACTIVITYDESC); + dataMap.put("ROLE", ROLE); + dataMap.put("ROLENAME", ROLENAME); + dataMap.put("POST", POST); + dataMap.put("POSTNAME", POSTNAME); + dataMap.put("PLID", FILEID); + dataMap.put("NODEID", NODEID); + dataMap.put("MODIFYDATETIME", MODIFYDATETIME); + //System.err.println("更新节点信息===========>"+dataMap); + try { + DBSql.update("UPDATE BO_EU_PAL_FILENODE6 SET" + + " NODENAME=:NODENAME, NODETYPE=:NODETYPE, PLNAME=:PLNAME, NODECATEGORY=:NODECATEGORY, ITSYSVAL=:ITSYSVAL, " + + " ACTIVITYNUMBER=:ACTIVITYNUMBER, ACTIVITYDESC=:ACTIVITYDESC, ROLE=:ROLE, POST=:POST, ROLENAME=:ROLENAME, POSTNAME=:POSTNAME, MODIFYDATETIME=:MODIFYDATETIME, UPDATEDATE=:UPDATEDATE " + + " WHERE PLID=:PLID AND NODEID=:NODEID", dataMap); + } catch (Exception e) { + BO bo = new BO(); + bo.set("PLID", FILEID); + bo.set("PLNAME", PLNAME); + bo.set("NODEID", NODEID); + bo.set("NODENAME", NODENAME); + bo.set("INFORMATION", e.getMessage()); + SDK.getBOAPI().createDataBO("BO_EU_NODESYN_EXCEPTION", bo, UserContext.fromUID("admin")); + System.err.println("数据保存异常==========>"+e.getMessage()+"__活动描述:"+ACTIVITYDESC); + } + } else { + dataMap = new HashMap<>(); + String uuId = SDK.getRuleAPI().executeAtScript("@uuid()"); + dataMap.put("uuId", uuId); + dataMap.put("NODEID", NODEID); + dataMap.put("NODENAME", NODENAME); + dataMap.put("NODETYPE", NODETYPE); + dataMap.put("PLID", FILEID); + dataMap.put("PLNAME", PLNAME); + dataMap.put("NODECATEGORY", PLMETHODID); + dataMap.put("ITSYSVAL", ITSYSVAL); + dataMap.put("ACTIVITYNUMBER", ACTIVITYNUMBER); + dataMap.put("ACTIVITYDESC", ACTIVITYDESC); + dataMap.put("ROLE", ROLE); + dataMap.put("POST", POST); + dataMap.put("ROLENAME", ROLENAME); + dataMap.put("POSTNAME", POSTNAME); + dataMap.put("MODIFYDATETIME", MODIFYDATETIME); + + //System.err.println("同步节点信息===========>"+dataMap); + try { + DBSql.update("INSERT INTO BO_EU_PAL_FILENODE6" + + " (ID, NODEID, NODENAME, NODETYPE, PLID, PLNAME, NODECATEGORY, ITSYSVAL, ACTIVITYNUMBER, ACTIVITYDESC, ROLE, POST, ROLENAME, POSTNAME, MODIFYDATETIME) " + + " VALUES(:uuId, :NODEID, :NODENAME, :NODETYPE, :PLID, :PLNAME, :NODECATEGORY, :ITSYSVAL, :ACTIVITYNUMBER, :ACTIVITYDESC, :ROLE, :POST, :ROLENAME, :POSTNAME, :MODIFYDATETIME)", dataMap); + } catch (Exception e) { + BO bo = new BO(); + bo.set("PLID", FILEID); + bo.set("PLNAME", PLNAME); + bo.set("NODEID", NODEID); + bo.set("NODENAME", NODENAME); + bo.set("INFORMATION", e.getMessage()); + SDK.getBOAPI().createDataBO("BO_EU_NODESYN_EXCEPTION", bo, UserContext.fromUID("admin")); + System.err.println("数据保存异常==========>"+e.getMessage()+"__活动描述:"+ACTIVITYDESC); + } + + + //newNodeDataMaps.add(dataMap); + } + } + } + } + + } + //删除节点信息 + if (null != nodeIdList && !nodeIdList.isEmpty()) { + for (String nodeIdOfList : nodeIdList) { + if (!fromNodeDataIDMaps.contains(nodeIdOfList)) { + dataMap = new HashMap<>(); + dataMap.put("NODEID", nodeIdOfList); + DBSql.update("DELETE FROM BO_EU_PAL_FILENODE6 WHERE NODEID=:NODEID", dataMap); + delNodeDataMaps.add(dataMap); + } + } + } + SDK.getLogAPI().consoleInfo("新增节点" + newNodeDataMaps.size()); + SDK.getLogAPI().consoleInfo("修改节点" + oldNodeDataMaps.size()); + SDK.getLogAPI().consoleInfo("删除节点" + delNodeDataMaps.size()); + + long endTime = System.currentTimeMillis(); + SDK.getLogAPI().consoleInfo("结束时间" + endTime); + SDK.getLogAPI().consoleInfo("运行时间" + (endTime - startTime)); + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job5.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job5.java new file mode 100644 index 00000000..564813c0 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncData_job5.java @@ -0,0 +1,1660 @@ +package com.awspaas.user.apps.app.reportform.job; + +import java.text.NumberFormat; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.time.Period; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryPropertyCache; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryPropertyModel; +import com.actionsoft.bpms.api.Utils; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.org.model.UserModel; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.RequestParams; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.server.bind.annotation.Controller; +import com.actionsoft.bpms.server.bind.annotation.Mapping; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.awspaas.user.apps.app.util.GetNodesUtil; +import com.awspaas.user.apps.app.util.TreeUtil; + +/* + * 批量发布文件是过滤掉不发布的文件 + */ +@Controller +public class SyncData_job5 implements IJob { + + + @Override + public void execute(JobExecutionContext arg0) throws JobExecutionException { + syncNodeData(); + + } + + public void syncNodeData() { + /** + * 文件制度管理看板同步 + */ + try { + System.out.println("文件数量同步开始======>"); + deptFileCount(); + } catch (Exception e) { + System.out.println("===文件数量同步异常=>"+e.getMessage()); + } + try { + System.out.println("部门文件年度更新率同步开始======>"); + deptFileYearRenewRate(); + } catch (Exception e) { + System.out.println("===部门文件年度更新率同步异常=>"+e.getMessage()); + + } + try { + System.out.println("部门文件年度更新情况同步开始======>"); + deptFileYearRenewSituation(); + } catch (Exception e) { + System.out.println("===部门文件年度更新情况同步异常=>"+e.getMessage()); + } + try { + System.out.println("文件发布时间分布同步开始======>"); + filePubTimeDistribution(); + } catch (ParseException e) { + System.out.println("===文件发布时间分布同步异常=>"+e.getMessage()); + } + + + /** + * 流程连接度统计 + */ + processCONND(); + processCONNDDetail(); + + + /** + * 节点看板同步 + */ + nodeAnalysis(); + nodeAnalysisTerms(); + deptNodeAttrApproval(); + deptNodeAttrOperation(); + + + } + + //-------------------------------筛选条件--------------------------------- + + + /** + * @methodName: + * @param: + * @return: + * @description:流程连接度分析 + * @auther: Lizj + * @date: 2022/6/16 16:58 + */ + public String processCONND() { + JSONObject ro = new JSONObject(); + List fileRowMaps = DBSql.getMaps("SELECT FILEID,PUBDEPT,LEADPROCESS,REARPROCESS FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1' AND PLMETHODID='process.epc'"); + //查询流程前后置前后置情况 + Integer fileTotalNum = 0; + Integer prepostNum = 0; + Integer preNum = 0; + Integer postNum = 0; + Integer noprepostNum = 0; + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + + if (null != fileRowMaps && !fileRowMaps.isEmpty()) { + for (RowMap fileRowMap : fileRowMaps) { + fileTotalNum += 1; + String LEADPROCESS = fileRowMap.getString("LEADPROCESS"); + String REARPROCESS = fileRowMap.getString("REARPROCESS"); + if (LEADPROCESS.equals("1") && REARPROCESS.equals("1")) { + prepostNum += 1; + } + if (LEADPROCESS.equals("1") && REARPROCESS.equals("0")) { + preNum += 1; + } + if (LEADPROCESS.equals("0") && REARPROCESS.equals("1")) { + postNum += 1; + } + if (LEADPROCESS.equals("0") && REARPROCESS.equals("0")) { + noprepostNum += 1; + } + } + } + //前置后置、单前置、单后置、无前置后置数量占比 + String prepostRatio = null; + String preRatio = null; + String postRatio = null; + String noprepostRatio = null; + if (fileTotalNum!=0) { + prepostRatio = numberformat.format((float) prepostNum / (float) fileTotalNum * 100); + preRatio = numberformat.format((float) preNum / (float) fileTotalNum * 100); + postRatio = numberformat.format((float) postNum / (float) fileTotalNum * 100); + noprepostRatio = numberformat.format((float) noprepostNum / (float) fileTotalNum * 100); + } else { + prepostRatio = "0"; + preRatio = "0"; + postRatio = "0"; + noprepostRatio = "0"; + } + + ro.put("prepostRatio", prepostRatio); + ro.put("preRatio", preRatio); + ro.put("postRatio", postRatio); + ro.put("noprepostRatio", noprepostRatio); + Set keySet = ro.keySet(); + for (String name : keySet) { + String boId = DBSql.getString("SELECT ID FROM BO_EU_FILE_OPERATIONNODE WHERE NAME = '"+name+"'"); + BO bo = new BO(); + bo.setId(boId); + bo.set("TYPE", "流程连接度分析"); + bo.set("NAME", name); + bo.set("NODEDATA", ro.get(name)); + SDK.getBOAPI().update("BO_EU_FILE_OPERATIONNODE", bo); + } + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:事业部、职能部门流程连接度有前后置和无前后置占比 + * @auther: Lizj + * @date: 2022/6/20 10:56 + */ + public String processCONNDDetail() { + JSONObject ro = new JSONObject(); + ArrayList deptIDList = new ArrayList<>(); + JSONArray bdPrepostRatioMaps = new JSONArray(); + JSONArray bdNoprepostRatioMaps = new JSONArray(); + JSONArray fdPrepostRatioMaps = new JSONArray(); + JSONArray fdNoprepostRatioMaps = new JSONArray(); + JSONObject ratioMap = new JSONObject(); + //事业部和职能部门ID,名称 list + List fileRowMaps = DBSql.getMaps("SELECT FILEID,PUBDEPT,LEADPROCESS,REARPROCESS FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1' AND PLMETHODID='process.epc'"); + List BDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + + //文件总数量,有前后置流程数量、无前后置流程数量 + Integer fileTotalNum = 0; + Integer prepostNum = 0; + Integer noprepostNum = 0; + //有前后置占比、无前后置占比 + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + String prepostRatio = null; + String noprepostRatio = null; + + if (null!=BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + fileTotalNum = 0; + prepostNum = 0; + noprepostNum = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileTotalNum += 1; + String LEADPROCESS = fileRowMap.getString("LEADPROCESS"); + String REARPROCESS = fileRowMap.getString("REARPROCESS"); + if (LEADPROCESS.equals("1") && REARPROCESS.equals("1")) { + prepostNum += 1; + } + if (LEADPROCESS.equals("0") && REARPROCESS.equals("0")) { + noprepostNum += 1; + } + } + } + } + } + if (fileTotalNum!=0) { + prepostRatio = numberformat.format((float) prepostNum / (float) fileTotalNum * 100); + noprepostRatio = numberformat.format((float) noprepostNum / (float) fileTotalNum * 100); + } else { + prepostRatio = "0"; + noprepostRatio = "0"; + } + ratioMap = new JSONObject(); + ratioMap.put("deptID",bdDeptID); + ratioMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + ratioMap.put("ratio",prepostRatio); + bdPrepostRatioMaps.add(ratioMap); + ratioMap = new JSONObject(); + ratioMap.put("deptID",bdDeptID); + ratioMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + ratioMap.put("ratio",noprepostRatio); + bdNoprepostRatioMaps.add(ratioMap); + } + } + if (null!=FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + fileTotalNum = 0; + prepostNum = 0; + noprepostNum = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileTotalNum += 1; + String LEADPROCESS = fileRowMap.getString("LEADPROCESS"); + String REARPROCESS = fileRowMap.getString("REARPROCESS"); + if (LEADPROCESS.equals("1") && REARPROCESS.equals("1")) { + prepostNum += 1; + } + if (LEADPROCESS.equals("0") && REARPROCESS.equals("0")) { + noprepostNum += 1; + } + } + } + } + } + if (fileTotalNum!=0) { + prepostRatio = numberformat.format((float) prepostNum / (float) fileTotalNum * 100); + noprepostRatio = numberformat.format((float) noprepostNum / (float) fileTotalNum * 100); + } else { + prepostRatio = "0"; + noprepostRatio = "0"; + } + ratioMap = new JSONObject(); + ratioMap.put("deptID",fdDeptID); + ratioMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + ratioMap.put("ratio",prepostRatio); + fdPrepostRatioMaps.add(ratioMap); + ratioMap = new JSONObject(); + ratioMap.put("deptID",fdDeptID); + ratioMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + ratioMap.put("ratio",noprepostRatio); + fdNoprepostRatioMaps.add(ratioMap); + } + } + + ro.put("BDY", bdPrepostRatioMaps); + ro.put("BDN", bdNoprepostRatioMaps); + ro.put("FDY", fdPrepostRatioMaps); + ro.put("FDN", fdNoprepostRatioMaps); + Set keySet = ro.keySet(); + for (String name : keySet) { + BO bo = new BO(); + String boId = DBSql.getString("SELECT ID FROM BO_EU_FILE_OPERATIONNODE WHERE NAME = '"+name+"'"); + bo.setId(boId); + bo.set("TYPE", "流程连接度-前后置占比"); + bo.set("NAME", name); + bo.set("NODEDATA", ro.get(name)); + SDK.getBOAPI().update("BO_EU_FILE_OPERATIONNODE", bo); + } + return ro.toString(); + } + + + //-------------------------------筛选条件--------------------------------- + /** + * @methodName: + * @param: + * @return: + * @description:流程节点分析筛选条件:所属单位、所属领域 + * @auther: Lizj + * @date: 2022/7/15 15:56 + */ + public String nodeAnalysisTerms() { + long start = System.currentTimeMillis(); + HashMap ro = new HashMap(); + + //所属单位 + + List deptMaps = DBSql.getMaps("SELECT ID,PARENTDEPARTMENTID,DEPARTMENTNAME,LAYER,ORDERINDEX FROM ORGDEPARTMENT" + + " WHERE COMPANYID='8911e732-b42a-4556-853f-ad32761bcbee' AND CLOSED='0' AND ID not in ('5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe','e79281b1-2f81-4895-b30e-9f96e9ad0e2c','53d3076d-cd2d-4f5b-bacb-8e93273e9f44','9c795620-93c6-485c-b9fa-93536c988da8','12d42abb-a58f-411b-8c71-0a421a27eafc','65048aee-157f-49f2-a2dc-5903dd26f519')"); + //demo3 + //demo3 + //3e74f14d-852f-4f6f-a809-08a56697f103 + //本地 + //d7087d5b-ab29-4514-a7e7-79379f6842a2 + //正式 + //8911e732-b42a-4556-853f-ad32761bcbee + String nodeType = null; + ArrayList deptNodes = new ArrayList<>(); + for (RowMap deptMap : deptMaps) { + HashMap deptNode = new HashMap<>(); + nodeType = "dept"; + deptNode.put("ID",deptMap.getString("ID")); + deptNode.put("PARENTID",deptMap.getString("PARENTDEPARTMENTID")); + deptNode.put("name",deptMap.getString("DEPARTMENTNAME")); + deptNode.put("ORDERINDEX",deptMap.getString("ORDERINDEX")); + deptNode.put("TLEVEL",deptMap.getString("LAYER")); + deptNode.put("nodeType", nodeType); + deptNodes.add(deptNode); + } + List deptTreeNodes = TreeUtil.buildTree("1",deptNodes,"0","dept","3",null); + //所属领域 + ArrayList frameList = new ArrayList<>(); + ArrayList fieldMaps = new ArrayList<>(); + List L1Maps = DBSql.getMaps("SELECT FRAMEID,FRAMENAME,FRAMETYPE,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMELEVEL=1 AND FRAMETYPE IS NOT NULL "); + String hasRoot = "Y"; + if (null != L1Maps && !L1Maps.isEmpty()) { + for (RowMap l1Map : L1Maps) { + String L1ID = l1Map.getString("FRAMEID"); + frameList = new ArrayList<>(); + frameList = GetNodesUtil.getChildFrame(L1ID, hasRoot, frameList); + fieldMaps.addAll(frameList); + } + } + ArrayList fieldNodes = new ArrayList<>(); + for (Map fieldMap : fieldMaps) { + HashMap fieldNode = new HashMap<>(); + fieldNode.put("ID", String.valueOf(fieldMap.get("FRAMEID"))); + fieldNode.put("PARENTID", String.valueOf(fieldMap.get("FRAMEPARENTID"))); + fieldNode.put("name", String.valueOf(fieldMap.get("FRAMENAME"))); + fieldNode.put("ORDERINDEX", Integer.valueOf(String.valueOf(fieldMap.get("FRAMEORDERINDEX")))); + fieldNode.put("TLEVEL", Integer.valueOf(String.valueOf(fieldMap.get("FRAMELEVEL")))); + fieldNodes.add(fieldNode); + } + List fieldTreeNodes = TreeUtil.buildTree("1",fieldNodes, "process", null, null, null); + + + JSONObject deptJson = new JSONObject(); + JSONArray deptTreeNodesArry = new JSONArray(); + for (Map map : deptTreeNodes) { + Set keySet = map.keySet(); + for (Object object : keySet) { + String key = object.toString(); + String value = map.get(key).toString(); + deptJson.put(key, value); + } + deptTreeNodesArry.add(deptJson); + } + JSONObject fieldTreeNodesJson = new JSONObject(); + JSONArray fieldTreeNodesArry = new JSONArray(); + for (Map map : fieldTreeNodes) { + Set keySet = map.keySet(); + for (Object object : keySet) { + String key = object.toString(); + String value = map.get(key).toString(); + fieldTreeNodesJson.put(key, value); + } + fieldTreeNodesArry.add(fieldTreeNodesJson); + } + + //System.out.println("======部门Map=====>"+deptTreeNodes); + //System.out.println("======架构Map=====>"+fieldTreeNodes); + + + BO bo1 = new BO(); + bo1.set("TYPE", "节点分析筛选条件"); + String boId = DBSql.getString("SELECT ID FROM BO_EU_FILE_OPERATIONNODE WHERE NAME = 'deptTreeNodes'"); + bo1.setId(boId); + bo1.set("NAME", "deptTreeNodes"); + bo1.set("NODEDATA", deptTreeNodes); + SDK.getBOAPI().update("BO_EU_FILE_OPERATIONNODE", bo1); + + BO bo2 = new BO(); + String boId2 = DBSql.getString("SELECT ID FROM BO_EU_FILE_OPERATIONNODE WHERE NAME = 'fieldTreeNodes'"); + bo2.setId(boId2); + bo2.set("TYPE", "节点分析筛选条件"); + bo2.set("NAME", "fieldTreeNodes"); + bo2.set("NODEDATA", fieldTreeNodes); + SDK.getBOAPI().update("BO_EU_FILE_OPERATIONNODE", bo2); + ro.put("deptTreeNodes", deptTreeNodes); + ro.put("fieldTreeNodes", fieldTreeNodes); + long end = System.currentTimeMillis(); + + System.out.println("======加载筛选框用时=====>"+(end-start)/1000); + return ro.toString(); + } + + + + //-------------------------------文件管理--------------------------------- + /** + * @methodName: + * @param: + * @return: + * @description:部门文件数量 + * @auther: Lizj + * @date: 2022/6/28 22:43 + */ + + public String deptFileCount() { + /*文件数量=当日生效文档总数*/ + ResponseObject ro = ResponseObject.newOkResponse(); + ArrayList deptIDList = new ArrayList<>(); + JSONObject deptFileCountMap = new JSONObject(); + JSONArray BDFileCountMaps = new JSONArray(); + JSONArray FDFileCountMaps = new JSONArray(); + Integer fileCount = 0; + //事业部和职能部门ID,名称 list + //List fileRowMaps = DBSql.getMaps("SELECT FILEID,PUBDEPT,PLPARENTID,PLMETHODID,POLICYTYPE,FILESTATE,VIEWCOUNT FROM BO_EU_PAL_FILE1 WHERE PLMETHODID='process.epc' OR PLMETHODID='process.flowchart' OR PLMETHODID='control.policy' OR PLMETHODID='data.form'"); + List fileRowMaps = DBSql.getMaps("SELECT ID AS FILEID,EXT6 AS PUBDEPT FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = '1' AND EXT5 = '1' AND PLMETHODID in ('process.epc','process.flowchart','control.policy','data.form')"); + List BDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + if (null!=BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + deptFileCountMap = new JSONObject(); + fileCount = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList.add(bdDeptID); + //deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + getDeptIdList(deptIDList, bdDeptID); + System.err.println("========deptIDList=========="+deptIDList); + //deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileCount += 1; + } + } + } + } + deptFileCountMap.put("deptID",bdDeptID); + deptFileCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptFileCountMap.put("fileCount",fileCount); + BDFileCountMaps.add(deptFileCountMap); + } + } + if (null!=FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + deptFileCountMap = new JSONObject(); + fileCount = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList.add(fdDeptID); + //deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + getDeptIdList(deptIDList, fdDeptID); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileCount += 1; + } + } + } + } + deptFileCountMap.put("deptID",fdDeptID); + deptFileCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptFileCountMap.put("fileCount",fileCount); + FDFileCountMaps.add(deptFileCountMap); + } + } + ro.put("BDFileCount",BDFileCountMaps); + ro.put("FDFileCount",FDFileCountMaps); + + + BO bo1 = new BO(); + String boId1 = DBSql.getString("SELECT ID FROM BO_EU_FILE_OPERATIONNODE WHERE NAME = 'BDFileCount'"); + bo1.setId(boId1); + bo1.set("TYPE", "部门文件数量"); + bo1.set("NAME", "BDFileCount"); + bo1.set("NODEDATA", BDFileCountMaps); + SDK.getBOAPI().update("BO_EU_FILE_OPERATIONNODE", bo1); + + BO bo2 = new BO(); + String boId2 = DBSql.getString("SELECT ID FROM BO_EU_FILE_OPERATIONNODE WHERE NAME = 'FDFileCount'"); + bo2.setId(boId2); + bo2.set("TYPE", "部门文件数量"); + bo2.set("NAME", "FDFileCount"); + bo2.set("NODEDATA", FDFileCountMaps); + SDK.getBOAPI().update("BO_EU_FILE_OPERATIONNODE", bo2); + return ro.toString(); + } + + + public void getDeptIdList(ArrayList deptIDList,String departmentId) { + DepartmentModel departmentById = SDK.getORGAPI().getDepartmentById(departmentId); + if (departmentById.isExistSubModelOfCache()) { + if (!departmentById.isClosed()) { + List subDepartments = SDK.getORGAPI().getSubDepartments(departmentById.getId()); + for (DepartmentModel departmentModel : subDepartments) { + if (!departmentModel.isClosed()) { + String id = departmentModel.getId(); + deptIDList.add(id); + if (SDK.getORGAPI().isExistSubDepartment(id)) { + getDeptIdList(deptIDList,id); + } + + } + + } + } + } + + } + + /** + * @methodName: + * @param: + * @return: + * @description:部门文件年度更新率 + * @auther: Lizj + * @date: 2022/6/28 22:49 + */ + + public String deptFileYearRenewRate() { + /* 年度更新率=(某单位年度新增文件+年度修订文件)/某单位当前文件总数 */ + ResponseObject ro = ResponseObject.newOkResponse(); + JSONObject renewRateMap = new JSONObject(); + JSONArray BDRenewRateMaps = new JSONArray(); + JSONArray FDRenewRateMaps = new JSONArray(); + ArrayList deptIDList = new ArrayList<>(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Integer deptFileNum = 0; + Integer newFileNum = 0; + String renewRate = null; + // 获取当前年 + LocalDateTime nowDate = LocalDateTime.now(); + int nowYear = nowDate.getYear(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + // 事业部和职能部门ID,名称 list + // List fileRowMaps = DBSql.getMaps("SELECT + // FILEID,FILEVERSION,PUBDEPT,PUBDATETIME FROM BO_EU_PAL_FILE1 WHERE + // FILESTATE='1'"); + List fileRowMaps = DBSql.getMaps( + "SELECT ID AS FILEID,EXT6 AS PUBDEPT,PUBLISHDATE,EXT5 AS FILESTATE,PLMETHODID FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = '1' AND EXT5 = '1' AND PLMETHODID in ('process.epc','control.policy','process.flowchart','data.form')"); + List BDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + if (null != BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + renewRateMap = new JSONObject(); + deptFileNum = 0; + newFileNum = 0; + renewRate = null; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + deptFileNum += 1; + String publishDate = ""; + String plId = fileRowMap.getString("FILEID"); + String moethodId = fileRowMap.getString("PLMETHODID"); + List repositoryPropertyList = PALRepositoryPropertyCache + .getPropertyByPlId(plId); + if (repositoryPropertyList != null && repositoryPropertyList.size() > 0) { + for (PALRepositoryPropertyModel repositoryPropertyModel : repositoryPropertyList) { + if("data.form".equals(moethodId)) { + if ("form_effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + } + }else { + if ("effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + + } + } + } + } + if (UtilString.isNotEmpty(publishDate)) { + if (publishDate.contains("2022")) { + newFileNum += 1; + } + } + } + } + } + } + if (deptFileNum != 0) { + renewRate = numberformat.format((float) newFileNum / (float) deptFileNum * 100); + } else { + renewRate = "0"; + } + renewRateMap.put("deptID", bdDeptID); + renewRateMap.put("deptName", bdInfoMap.getString("ABBREVIATION")); + renewRateMap.put("renewRate", renewRate); + BDRenewRateMaps.add(renewRateMap); + } + } + if (null != FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + renewRateMap = new JSONObject(); + deptFileNum = 0; + newFileNum = 0; + renewRate = null; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + deptFileNum += 1; + String publishDate = ""; + String plId = fileRowMap.getString("FILEID"); + String moethodId = fileRowMap.getString("PLMETHODID"); + List repositoryPropertyList = PALRepositoryPropertyCache + .getPropertyByPlId(plId); + if (repositoryPropertyList != null && repositoryPropertyList.size() > 0) { + for (PALRepositoryPropertyModel repositoryPropertyModel : repositoryPropertyList) { + if("data.form".equals(moethodId)) { + if ("form_effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + } + }else { + if ("effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + + } + } + } + } + if (UtilString.isNotEmpty(publishDate)) { + if (publishDate.contains("2022")) { + newFileNum += 1; + } + } + } + } + } + } + if (deptFileNum != 0) { + renewRate = numberformat.format((float) newFileNum / (float) deptFileNum * 100); + } else { + renewRate = "0"; + } + renewRateMap.put("deptID", fdDeptID); + renewRateMap.put("deptName", fdInfoMap.getString("ABBREVIATION")); + renewRateMap.put("renewRate", renewRate); + FDRenewRateMaps.add(renewRateMap); + } + } + ro.put("BDRenewRate", BDRenewRateMaps); + ro.put("FDRenewRate", FDRenewRateMaps); + + BO bo1 = new BO(); + String boId1 = DBSql.getString("SELECT ID FROM BO_EU_FILE_OPERATIONNODE WHERE NAME = 'BDRenewRate'"); + bo1.setId(boId1); + bo1.set("TYPE", "部门文件年度更新率"); + bo1.set("NAME", "BDRenewRate"); + bo1.set("NODEDATA", BDRenewRateMaps); + SDK.getBOAPI().update("BO_EU_FILE_OPERATIONNODE", bo1); + BO bo2 = new BO(); + String boId2 = DBSql.getString("SELECT ID FROM BO_EU_FILE_OPERATIONNODE WHERE NAME = 'FDRenewRate'"); + bo2.setId(boId2); + bo2.set("TYPE", "部门文件年度更新率"); + bo2.set("NAME", "FDRenewRate"); + bo2.set("NODEDATA", FDRenewRateMaps); + SDK.getBOAPI().update("BO_EU_FILE_OPERATIONNODE", bo2); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:部门文件年度更新情况 + * @auther: Lizj + * @date: 2022/6/28 22:53 + */ + + public String deptFileYearRenewSituation() { + /* + * 1)新增数=某单位年度新增文件 一个版本是新增 + * 2)修订数=某单位年度修订文件 大于一个版本是修订 + * 3)废止数=某单位年度废止文件 停用 + */ + ResponseObject ro = ResponseObject.newOkResponse(); + JSONObject renewCountMap = new JSONObject(); + JSONArray BDRenewCountMaps = new JSONArray(); + JSONArray FDRenewCountMaps = new JSONArray(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Integer createCount = 0; + Integer updateCount = 0; + Integer abolishCount = 0; + ArrayList deptIDList = new ArrayList<>(); + // 获取当前年 + LocalDateTime nowDate = LocalDateTime.now(); + int nowYear = nowDate.getYear(); + // 事业部和职能部门ID,名称 list + //List fileRowMaps = DBSql.getMaps("SELECT FILEID,FILEVERSION,PUBDEPT,PUBDATETIME,FILESTATE FROM BO_EU_PAL_FILE1"); + List fileRowMaps = DBSql.getMaps("SELECT ID AS FILEID,EXT6 AS PUBDEPT,PUBLISHDATE,EXT5 AS FILESTATE,PLMETHODID FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = 1 AND EXT5 = '1' AND PLMETHODID in ('process.epc','control.policy','process.flowchart','data.form')"); + List BDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + if (null != BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + renewCountMap = new JSONObject(); + createCount = 0; + updateCount = 0; + abolishCount = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + try { + //deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + deptIDList.add(bdDeptID); + getDeptIdList(deptIDList, bdDeptID); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + //System.err.println("=======deptID======"+deptID); + //System.err.println("=======PUBDEPT========="+fileRowMap.getString("PUBDEPT")); + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + String fileId = fileRowMap.getString("FILEID"); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(fileId); + double version = palRepositoryModel.getVersion(); + String FILESTATE = fileRowMap.getString("FILESTATE"); + boolean stop = palRepositoryModel.isStop(); + String publishDate = ""; + String plId = fileRowMap.getString("FILEID"); + String moethodId = fileRowMap.getString("PLMETHODID"); + List repositoryPropertyList = PALRepositoryPropertyCache + .getPropertyByPlId(plId); + if (repositoryPropertyList != null && repositoryPropertyList.size() > 0) { + for (PALRepositoryPropertyModel repositoryPropertyModel : repositoryPropertyList) { + if("data.form".equals(moethodId)) { + if ("form_effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + } + }else { + if ("effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + + } + } + } + } + String versionId = palRepositoryModel.getVersionId(); + List verList = PALRepositoryCache.getByVersionId(versionId); + if(UtilString.isNotEmpty(publishDate)) { + if (publishDate.contains("2022")) { + if (("1.0".equals(version+"")||verList.size()==1)) { + createCount += 1; + } + if (!"1.0".equals(version+"")&&verList.size()>1) { + updateCount += 1; + } + if (stop) { + abolishCount += 1; + } + } + + } + + } + } + } + } + } catch (Exception e) { + // TODO: handle exception + } + renewCountMap.put("deptID", bdDeptID); + renewCountMap.put("deptName", bdInfoMap.getString("ABBREVIATION")); + renewCountMap.put("createCount", createCount); + renewCountMap.put("updateCount", updateCount); + renewCountMap.put("abolishCount", abolishCount); + BDRenewCountMaps.add(renewCountMap); + } + } + if (null != FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + renewCountMap = new JSONObject(); + createCount = 0; + updateCount = 0; + abolishCount = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + try { + deptIDList.add(fdDeptID); + getDeptIdList(deptIDList, fdDeptID); + //deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + String FILESTATE = fileRowMap.getString("FILESTATE"); + String publishDate = ""; + String plId = fileRowMap.getString("FILEID"); + String moethodId = fileRowMap.getString("PLMETHODID"); + List repositoryPropertyList = PALRepositoryPropertyCache + .getPropertyByPlId(plId); + if (repositoryPropertyList != null && repositoryPropertyList.size() > 0) { + for (PALRepositoryPropertyModel repositoryPropertyModel : repositoryPropertyList) { + if("data.form".equals(moethodId)) { + if ("form_effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + } + }else { + if ("effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + + } + } + } + } + String fileId = fileRowMap.getString("FILEID"); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(fileId); + double version = palRepositoryModel.getVersion(); + boolean stop = palRepositoryModel.isStop(); + String versionId = palRepositoryModel.getVersionId(); + List verList = PALRepositoryCache.getByVersionId(versionId); + if(UtilString.isNotEmpty(publishDate)) { + if (publishDate.contains("2022")) { + if (("1.0".equals(version+"")||verList.size()==1)) { + createCount += 1; + } + if (!"1.0".equals(version+"")&&verList.size()>1) { + updateCount += 1; + } + if (stop) { + abolishCount += 1; + } + } + + } + } + } + } + } + } catch (Exception e) { + // TODO: handle exception + } + renewCountMap.put("deptID", fdDeptID); + renewCountMap.put("deptName", fdInfoMap.getString("ABBREVIATION")); + renewCountMap.put("createCount", createCount); + renewCountMap.put("updateCount", updateCount); + renewCountMap.put("abolishCount", abolishCount); + FDRenewCountMaps.add(renewCountMap); + } + } + ro.put("BDRenewCount", BDRenewCountMaps); + ro.put("FDRenewCount", FDRenewCountMaps); + + BO bo1 = new BO(); + String boId1 = DBSql.getString("SELECT ID FROM BO_EU_FILE_OPERATIONNODE WHERE NAME = 'BDRenewCount'"); + bo1.setId(boId1); + bo1.set("TYPE", "部门文件年度更新情况"); + bo1.set("NAME", "BDRenewCount"); + bo1.set("NODEDATA", BDRenewCountMaps); + SDK.getBOAPI().update("BO_EU_FILE_OPERATIONNODE", bo1); + + BO bo2 = new BO(); + String boId2 = DBSql.getString("SELECT ID FROM BO_EU_FILE_OPERATIONNODE WHERE NAME = 'FDRenewCount'"); + bo2.setId(boId2); + bo2.set("TYPE", "部门文件年度更新情况"); + bo2.set("NAME", "FDRenewCount"); + bo2.set("NODEDATA", FDRenewCountMaps); + SDK.getBOAPI().update("BO_EU_FILE_OPERATIONNODE", bo2); + return ro.toString(); + } + + + + /** + * @methodName: + * @param: + * @return: + * @throws ParseException + * @description:文件发布时间分布 + * @auther: Lizj + * @date: 2022/6/28 22:57 + */ + public String filePubTimeDistribution() throws ParseException { + ResponseObject ro = ResponseObject.newOkResponse(); + List fileMaps = DBSql.getMaps("SELECT ID AS FILEID,PLMETHODID,EXT3 AS POLICYTYPE, EXT6 AS PUBDEPT,PUBLISHDATE AS PUBDATETIME,EXT5 AS FILESTATE,PLPARENTID FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = 1 AND ISSTOP =0 AND EXT5 = '1' AND PLMETHODID in ('process.epc','control.policy','process.flowchart','data.form')"); + // System.err.println("======文件发布时间同步======"+fileMaps.size()); + //List fileMaps = DBSql.getMaps("SELECT FILEID,PLMETHODID,POLICYTYPE,PUBDATETIME,PUBDEPT,PLPARENTID FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1' AND PUBDATETIME IS NOT NULL"); + LocalDate nowDate = LocalDate.now(); + //6个月内fileMaps + ArrayList month6InFileMaps = new ArrayList<>(); + //6个月~1年fileMaps + ArrayList year1InFileMaps = new ArrayList<>(); + //1年~2年fileMaps + ArrayList year2InFileMaps = new ArrayList<>(); + //2年~3年fileMaps + ArrayList year3InFileMaps = new ArrayList<>(); + //3年以上+fileMaps + ArrayList year3OutFileMaps = new ArrayList<>(); + + ArrayList fileCountMaps = new ArrayList<>(); + if (null!=fileMaps && fileMaps.isEmpty()==false) { + int count =0; + for (RowMap fileMap : fileMaps) { + try { + LocalDate PUBDATETIME = null; + String publishDate = ""; + String plId = fileMap.getString("FILEID"); + String moethodId = fileMap.getString("PLMETHODID"); + List repositoryPropertyList = PALRepositoryPropertyCache + .getPropertyByPlId(plId); + if (repositoryPropertyList != null && repositoryPropertyList.size() > 0) { + for (PALRepositoryPropertyModel repositoryPropertyModel : repositoryPropertyList) { + if("data.form".equals(moethodId)) { + if ("form_effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + } + }else { + if ("effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + + } + } + } + } + if(UtilString.isNotEmpty(publishDate)) { + if(publishDate.length()>11) { + publishDate = publishDate.substring(0, 10); + } + if(publishDate.contains("年")) { + //PUBDATETIME = LocalDate.parse(publishDate.substring(0,9), DateTimeFormatter.ofPattern("yyyy年MM月dd")); + }else if(publishDate.contains("-")) { + PUBDATETIME = LocalDate.parse(publishDate); + } + + } + if(PUBDATETIME==null) { + continue; + } + Period betweenDate = Period.between(PUBDATETIME, nowDate); + //System.err.println("========betweenDate============="+betweenDate.getMonths()); + if (betweenDate.getMonths()<6) { + month6InFileMaps.add(fileMap); + } + if (betweenDate.getMonths()>=6 && betweenDate.getYears()<1) { + year1InFileMaps.add(fileMap); + } + if(betweenDate.getYears()>=1 && betweenDate.getYears()<2) { + year2InFileMaps.add(fileMap); + } + if(betweenDate.getYears()>=2 && betweenDate.getYears()<3) { + year3InFileMaps.add(fileMap); + } + if(betweenDate.getYears()>=3) { + year3OutFileMaps.add(fileMap); + } + + + + } catch (Exception e) { + // TODO: handle exception + } + } + } else { + ro.ok("暂无文件"); + } + + Integer processFileCount = 0; + Integer policyFileCount = 0; + Integer guideFileCount = 0; + Integer formFileCount = 0; + Map fileCountMap = new LinkedHashMap<>(); + if (null!=month6InFileMaps && !month6InFileMaps.isEmpty()) { + for (RowMap month6InFileMap : month6InFileMaps) { + if (month6InFileMap.getString("PLMETHODID").equals("process.epc") || month6InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (month6InFileMap.getString("PLMETHODID").equals("control.policy") && (month6InFileMap.getString("POLICYTYPE").equals("regulation") || null==month6InFileMap.getString("POLICYTYPE") || month6InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (month6InFileMap.getString("PLMETHODID").equals("control.policy") && month6InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (month6InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap.put("timeSlot","【6个月内】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year1InFileMaps && !year1InFileMaps.isEmpty()) { + for (RowMap year1InFileMap : year1InFileMaps) { + if (year1InFileMap.getString("PLMETHODID").equals("process.epc") || year1InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year1InFileMap.getString("PLMETHODID").equals("control.policy") && (year1InFileMap.getString("POLICYTYPE").equals("regulation") || null==year1InFileMap.getString("POLICYTYPE") || year1InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year1InFileMap.getString("PLMETHODID").equals("control.policy") && year1InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year1InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【6个月~1年】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year2InFileMaps && !year2InFileMaps.isEmpty()) { + for (RowMap year2InFileMap : year2InFileMaps) { + if (year2InFileMap.getString("PLMETHODID").equals("process.epc") || year2InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year2InFileMap.getString("PLMETHODID").equals("control.policy") && (year2InFileMap.getString("POLICYTYPE").equals("regulation") || null==year2InFileMap.getString("POLICYTYPE") || year2InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year2InFileMap.getString("PLMETHODID").equals("control.policy") && year2InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year2InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【1年~2年】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year3InFileMaps && !year3InFileMaps.isEmpty()) { + for (RowMap year3InFileMap : year3InFileMaps) { + if (year3InFileMap.getString("PLMETHODID").equals("process.epc") || year3InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year3InFileMap.getString("PLMETHODID").equals("control.policy") && (year3InFileMap.getString("POLICYTYPE").equals("regulation") || null==year3InFileMap.getString("POLICYTYPE") || year3InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year3InFileMap.getString("PLMETHODID").equals("control.policy") && year3InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year3InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【2年~3年】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year3OutFileMaps && !year3OutFileMaps.isEmpty()) { + for (RowMap year3OutFileMap : year3OutFileMaps) { + if (year3OutFileMap.getString("PLMETHODID").equals("process.epc") || year3OutFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year3OutFileMap.getString("PLMETHODID").equals("control.policy") && (year3OutFileMap.getString("POLICYTYPE").equals("regulation") || null==year3OutFileMap.getString("POLICYTYPE") || year3OutFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year3OutFileMap.getString("PLMETHODID").equals("control.policy") && year3OutFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year3OutFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【3年以上】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + ro.put("fileCount",fileCountMaps); + + JSONObject fileCountMapJson = new JSONObject(); + JSONArray fileCountMapsArry = new JSONArray(); + for (Map map : fileCountMaps) { + Set keySet = map.keySet(); + for (Object object : keySet) { + String key = object.toString(); + String value = map.get(key).toString(); + fileCountMapJson.put(key, value); + } + fileCountMapsArry.add(fileCountMapJson); + } + + BO bo1 = new BO(); + String boId1 = DBSql.getString("SELECT ID FROM BO_EU_FILE_OPERATIONNODE WHERE NAME = 'fileCount'"); + bo1.setId(boId1); + bo1.set("TYPE", "文件发布时间分布"); + bo1.set("NAME", "fileCount"); + bo1.set("NODEDATA", fileCountMapsArry); + SDK.getBOAPI().update("BO_EU_FILE_OPERATIONNODE", bo1); + return ro.toString(); + } + + //-------------------------------节点分析---------------------------------- + + + /** + * @methodName: + * @param: + * @return: + * @description:流程节点分析 + * @auther: Lizj + * @date: 2022/7/15 15:57 + */ + public String nodeAnalysis() { + System.out.println("======流程节点分析======"); + HashMap ro = new HashMap(); + String unit = "all"; + String field = ""; + ArrayList deptIDList = new ArrayList<>(); + ArrayList fieldList = new ArrayList<>(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + List nodeRowMaps = DBSql.getMaps("SELECT BN.NODEID,BN.NODETYPE,BF.FILEID,BF.PLPARENTID,BF.PUBDEPT FROM BO_EU_PAL_FILENODE5 BN LEFT JOIN BO_EU_PAL_FILE1 BF ON BN.PLID=BF.FILEID WHERE BF.FILESTATE='1' AND BF.PLMETHODID in ('process.epc','process.flowchart')"); + ArrayList nodeHandleMaps = new ArrayList<>(); + if (null!=unit && !unit.equals("")) { + if("all".equals(unit)) { + for (RowMap fileRowMap : nodeRowMaps) { + nodeHandleMaps.add(fileRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(unit, deptIDList); + for (String deptID : deptIDList) { + for (RowMap fileMap : nodeRowMaps) { + if (fileMap.getString("PUBDEPT").contains(deptID)) { + nodeHandleMaps.add(fileMap); + } + } + } + + } + nodeRowMaps = nodeHandleMaps; + } + if (null!=field && !field.equals("")) { + if("all".equals(field)) { + for (RowMap fileRowMap : nodeRowMaps) { + nodeHandleMaps.add(fileRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap fileMap : nodeRowMaps) { + if (fileMap.getString("PLPARENTID").equals(fieldID)) { + nodeHandleMaps.add(fileMap); + } + } + } + } + nodeRowMaps = nodeHandleMaps; + } + + + + Integer nodeTotalNum = 0; + Integer approvalNodeNum = 0; + Integer operationNodeNum = 0; + Integer onlineNodeNum = 0; + Integer itsysNodeNum = 0; + String approvalRrationate = "0"; + String operationRate = "0"; + String onlineRate = "0"; + String itsysRate = "0"; + if (null!=nodeRowMaps && !nodeRowMaps.isEmpty()) { + nodeTotalNum = nodeRowMaps.size(); + System.out.println("========nodeRowMaps=========="+nodeRowMaps.size()); + approvalNodeNum = 0; + operationNodeNum = 0; + onlineNodeNum = 0; + itsysNodeNum = 0; + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node") || nodeRowMap.getString("NODETYPE").equals("method_service_node")) { + approvalNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3") || nodeRowMap.getString("NODETYPE").equals("method_service_node4")) { + operationNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node")) { + onlineNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3")) { + itsysNodeNum += 1; + } + } + + approvalRrationate = numberformat.format((float) approvalNodeNum / (float) nodeTotalNum * 100); + operationRate = numberformat.format((float) operationNodeNum / (float) nodeTotalNum * 100); + onlineRate = numberformat.format((float) onlineNodeNum / (float) approvalNodeNum * 100); + itsysRate = numberformat.format((float) itsysNodeNum / (float) operationNodeNum * 100); + + ro.put("nodeTotalNum",nodeTotalNum); + ro.put("approvalNodeNum",approvalNodeNum); + ro.put("approvalRrationate",approvalRrationate); + ro.put("onlineRate",onlineRate); + ro.put("operationNodeNum",operationNodeNum); + ro.put("operationRate",operationRate); + ro.put("itsysRate",itsysRate); + } else { + nodeTotalNum = 0; + approvalNodeNum = 0; + operationNodeNum = 0; + onlineNodeNum = 0; + itsysNodeNum = 0; + approvalRrationate = "0"; + operationRate = "0"; + onlineRate = "0"; + itsysRate = "0"; + ro.put("nodeTotalNum",nodeTotalNum); + ro.put("approvalNodeNum",approvalNodeNum); + ro.put("approvalRrationate",approvalRrationate); + ro.put("onlineRate",onlineRate); + ro.put("operationNodeNum",operationNodeNum); + ro.put("operationRate",operationRate); + ro.put("itsysRate",itsysRate); + } + Set keySet = ro.keySet(); + for (String name : keySet) { + BO bo = new BO(); + String boId = DBSql.getString("SELECT ID FROM BO_EU_FILE_OPERATIONNODE WHERE NAME = '"+name+"'"); + bo.setId(boId); + bo.set("TYPE", "流程节点总数"); + bo.set("NAME", name); + bo.set("NODEDATA", ro.get(name)); + SDK.getBOAPI().update("BO_EU_FILE_OPERATIONNODE", bo); + } + + return ro.toString(); + } + + + /** + * @methodName: + * @param: + * @return: + * @description:事业部/职能部门审批节点信息 + * @auther: Lizj + * @date: 2022/8/5 0:27 + */ + public String deptNodeAttrApproval() { + HashMap ro = new HashMap(); + String field = "all"; + ArrayList fieldList = new ArrayList<>(); + ArrayList deptIDList = new ArrayList<>(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + JSONObject deptNodeCountMap = new JSONObject(); + JSONArray BDApprovalNodeCountMaps = new JSONArray(); + JSONArray FDApprovalNodeCountMaps = new JSONArray(); + JSONArray BDApprovalNodeRateMaps = new JSONArray(); + JSONArray FDApprovalNodeRateMaps = new JSONArray(); + JSONArray BDApprovalOLNodeRateMaps = new JSONArray(); + JSONArray FDApprovalOLNodeRateMaps = new JSONArray(); + //事业部和职能部门ID,名称 list + List nodeRowMaps = DBSql.getMaps("SELECT BN.NODEID,BN.NODETYPE,BF.FILEID,BF.PLPARENTID,BF.PUBDEPT FROM BO_EU_PAL_FILENODE5 BN LEFT JOIN BO_EU_PAL_FILE1 BF ON BN.PLID=BF.FILEID WHERE BF.FILESTATE='1' AND BF.PLMETHODID in ('process.epc','process.flowchart')"); + ArrayList nodeHandleMaps = new ArrayList<>(); + List BDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + //审批节点数量、节点总数量、线上审批节点数量 + Integer nodeTotalNum = 0; + Integer approvalNodeNum = 0; + Integer approvalOLNodeNum = 0; + String approvalRate = "0"; + String approvalOLRate = "0"; + + if (null!=field && !field.equals("")) { + if("all".equals(field)) { + for (RowMap nodeRowMap : nodeRowMaps) { + nodeHandleMaps.add(nodeRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PLPARENTID").equals(fieldID)) { + nodeHandleMaps.add(nodeRowMap); + } + } + } + + } + nodeRowMaps = nodeHandleMaps; + } + + if (null!=BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + nodeTotalNum = 0; + approvalNodeNum = 0; + approvalOLNodeNum = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node") || nodeRowMap.getString("NODETYPE").equals("method_service_node")) { + approvalNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node")) { + approvalOLNodeNum += 1; + } + } + } + } + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalNodeNum",approvalNodeNum); + BDApprovalNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + approvalRate = numberformat.format((float) approvalNodeNum / (float) nodeTotalNum * 100); + } else { + approvalRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalRate",approvalRate); + BDApprovalNodeRateMaps.add(deptNodeCountMap); + if (approvalNodeNum!=0) { + approvalOLRate = numberformat.format((float) approvalOLNodeNum / (float) approvalNodeNum * 100); + } else { + approvalOLRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalOLRate",approvalOLRate); + BDApprovalOLNodeRateMaps.add(deptNodeCountMap); + } + } + if (null!=FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + nodeTotalNum = 0; + approvalNodeNum = 0; + approvalOLNodeNum = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node") || nodeRowMap.getString("NODETYPE").equals("method_service_node")) { + approvalNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node")) { + approvalOLNodeNum += 1; + } + } + } + } + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalNodeNum",approvalNodeNum); + FDApprovalNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + approvalRate = numberformat.format((float) approvalNodeNum / (float) nodeTotalNum * 100); + } else { + approvalRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalRate",approvalRate); + FDApprovalNodeRateMaps.add(deptNodeCountMap); + if (approvalNodeNum!=0) { + approvalOLRate = numberformat.format((float) approvalOLNodeNum / (float) approvalNodeNum * 100); + } else { + approvalOLRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalOLRate",approvalOLRate); + FDApprovalOLNodeRateMaps.add(deptNodeCountMap); + } + } + + ro.put("BDApprovalNodeCountMaps",BDApprovalNodeCountMaps); + ro.put("FDApprovalNodeCountMaps",FDApprovalNodeCountMaps); + ro.put("BDApprovalNodeRateMaps",BDApprovalNodeRateMaps); + ro.put("FDApprovalNodeRateMaps",FDApprovalNodeRateMaps); + ro.put("BDApprovalOLNodeRateMaps",BDApprovalOLNodeRateMaps); + ro.put("FDApprovalOLNodeRateMaps",FDApprovalOLNodeRateMaps); + + Set keySet = ro.keySet(); + for (String name : keySet) { + BO bo = new BO(); + String boId = DBSql.getString("SELECT ID FROM BO_EU_FILE_OPERATIONNODE WHERE NAME = '"+name+"'"); + bo.setId(boId); + bo.set("TYPE", "审批节点信息"); + bo.set("NAME", name); + bo.set("NODEDATA", ro.get(name).toString()); + SDK.getBOAPI().update("BO_EU_FILE_OPERATIONNODE", bo); + } + + + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:事业部/职能部门操作节点信息 + * @auther: Lizj + * @date: 2022/8/5 0:27 + */ + public String deptNodeAttrOperation() { + HashMap ro = new HashMap(); + String field = "all"; + ArrayList fieldList = new ArrayList<>(); + ArrayList deptIDList = new ArrayList<>(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + JSONObject deptNodeCountMap = new JSONObject(); + JSONArray BDOperationNodeCountMaps = new JSONArray(); + JSONArray FDOperationNodeCountMaps = new JSONArray(); + JSONArray BDOperationNodeRateMaps = new JSONArray(); + JSONArray FDOperationNodeRateMaps = new JSONArray(); + JSONArray BDOperationOLNodeRateMaps = new JSONArray(); + JSONArray FDOperationOLNodeRateMaps = new JSONArray(); + //事业部和职能部门ID,名称 list + List nodeRowMaps = DBSql.getMaps("SELECT BN.NODEID,BN.NODETYPE,BF.FILEID,BF.PLPARENTID,BF.PUBDEPT FROM BO_EU_PAL_FILENODE5 BN LEFT JOIN BO_EU_PAL_FILE1 BF ON BN.PLID=BF.FILEID WHERE BF.FILESTATE='1' AND BF.PLMETHODID in ('process.epc','process.flowchart')"); + ArrayList nodeHandleMaps = new ArrayList<>(); + List BDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + //审批节点数量、节点总数量、线上审批节点数量 + Integer nodeTotalNum = 0; + Integer operationNodeNum = 0; + Integer operationOLNodeNum = 0; + String operationNodeRate = "0"; + String operationOLNodeRate = "0"; + + if (null!=field && !field.equals("")) { + if("all".equals(field)) { + for (RowMap fileRowMap : nodeRowMaps) { + nodeHandleMaps.add(fileRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PLPARENTID").equals(fieldID)) { + nodeHandleMaps.add(nodeRowMap); + } + } + } + + } + nodeRowMaps = nodeHandleMaps; + } + + if (null!=BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + nodeTotalNum = 0; + operationNodeNum = 0; + operationOLNodeNum = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3") || nodeRowMap.getString("NODETYPE").equals("method_service_node4")) { + operationNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3")) { + operationOLNodeNum += 1; + } + } + } + } + } + + + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeNum",operationNodeNum); + BDOperationNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + operationNodeRate = numberformat.format((float) operationNodeNum / (float) nodeTotalNum * 100); + } else { + operationNodeRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeRate",operationNodeRate); + + + BDOperationNodeRateMaps.add(deptNodeCountMap); + if (operationNodeNum!=0) { + operationOLNodeRate = numberformat.format((float) operationOLNodeNum / (float) operationNodeNum * 100); + } else { + operationOLNodeRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationOLNodeRate",operationOLNodeRate); + BDOperationOLNodeRateMaps.add(deptNodeCountMap); + } + } + if (null!=FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + nodeTotalNum = 0; + operationNodeNum = 0; + operationOLNodeNum = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3") || nodeRowMap.getString("NODETYPE").equals("method_service_node4")) { + operationNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3")) { + operationOLNodeNum += 1; + } + } + } + } + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeNum",operationNodeNum); + + + FDOperationNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + operationNodeRate = numberformat.format((float) operationNodeNum / (float) nodeTotalNum * 100); + } else { + operationNodeRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeRate",operationNodeRate); + FDOperationNodeRateMaps.add(deptNodeCountMap); + if (operationNodeNum!=0) { + operationOLNodeRate = numberformat.format((float) operationOLNodeNum / (float) operationNodeNum * 100); + } else { + operationOLNodeRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationOLNodeRate",operationOLNodeRate); + FDOperationOLNodeRateMaps.add(deptNodeCountMap); + } + } + ro.put("BDOperationNodeCountMaps",BDOperationNodeCountMaps); + ro.put("FDOperationNodeCountMaps",FDOperationNodeCountMaps); + ro.put("BDOperationNodeRateMaps",BDOperationNodeRateMaps); + ro.put("FDOperationNodeRateMaps",FDOperationNodeRateMaps); + ro.put("BDOperationOLNodeRateMaps",BDOperationOLNodeRateMaps); + ro.put("FDOperationOLNodeRateMaps",FDOperationOLNodeRateMaps); + Set keySet = ro.keySet(); + for (String name : keySet) { + BO bo = new BO(); + String boId = DBSql.getString("SELECT ID FROM BO_EU_FILE_OPERATIONNODE WHERE NAME = '"+name+"'"); + bo.setId(boId); + bo.set("TYPE", "操作节点信息"); + bo.set("NAME", name); + bo.set("NODEDATA", ro.get(name)); + SDK.getBOAPI().update("BO_EU_FILE_OPERATIONNODE", bo); + } + + return ro.toString(); + } + + + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncNodeData_job.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncNodeData_job.java new file mode 100644 index 00000000..7d7a0de3 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/reportform/job/SyncNodeData_job.java @@ -0,0 +1,1285 @@ +package com.awspaas.user.apps.app.reportform.job; + +import java.sql.Timestamp; +import java.text.NumberFormat; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.time.Period; +import java.time.format.DateTimeFormatter; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.quartz.DisallowConcurrentExecution; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.schedule.IJob; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.awspaas.user.apps.app.util.GetNodesUtil; +import com.awspaas.user.apps.app.util.TreeUtil; + +/** + * @author:lihongyu + * @create: 2022-11-03 11:32 + * @Description: 同步节点数量 + */ +@DisallowConcurrentExecution +public class SyncNodeData_job implements IJob { + + @Override + public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { + syncNodeData(); + + } + public void syncNodeData() { + DBSql.update("delete from BO_EU_FILE_OPERATIONNODE"); + + try { + System.out.println("文件数量同步开始======>"); + deptFileCount(); + } catch (Exception e) { + System.out.println("===文件数量同步异常=>"+e.getMessage()); + } + try { + System.out.println("部门文件年度更新率同步开始======>"); + deptFileYearRenewRate(); + } catch (Exception e) { + System.out.println("===部门文件年度更新率同步异常=>"+e.getMessage()); + + } + try { + System.out.println("部门文件年度更新情况同步开始======>"); + deptFileYearRenewSituation(); + } catch (Exception e) { + System.out.println("===部门文件年度更新情况同步异常=>"+e.getMessage()); + } + try { + System.out.println("文件发布时间分布同步开始======>"); + filePubTimeDistribution(); + } catch (ParseException e) { + System.out.println("===文件发布时间分布同步异常=>"+e.getMessage()); + } + + + nodeAnalysis(); + nodeAnalysisTerms(); + deptNodeAttrApproval(); + deptNodeAttrOperation(); + + + } + + //-------------------------------筛选条件--------------------------------- + /** + * @methodName: + * @param: + * @return: + * @description:流程节点分析筛选条件:所属单位、所属领域 + * @auther: Lizj + * @date: 2022/7/15 15:56 + */ + public String nodeAnalysisTerms() { + long start = System.currentTimeMillis(); + HashMap ro = new HashMap(); + + //所属单位 + + List deptMaps = DBSql.getMaps("SELECT ID,PARENTDEPARTMENTID,DEPARTMENTNAME,LAYER,ORDERINDEX FROM ORGDEPARTMENT" + + " WHERE COMPANYID='8911e732-b42a-4556-853f-ad32761bcbee' AND CLOSED='0' AND ID not in ('5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe','e79281b1-2f81-4895-b30e-9f96e9ad0e2c','53d3076d-cd2d-4f5b-bacb-8e93273e9f44','9c795620-93c6-485c-b9fa-93536c988da8','12d42abb-a58f-411b-8c71-0a421a27eafc','65048aee-157f-49f2-a2dc-5903dd26f519')"); + //demo3 + //demo3 + //3e74f14d-852f-4f6f-a809-08a56697f103 + //本地 + //d7087d5b-ab29-4514-a7e7-79379f6842a2 + //正式 + //8911e732-b42a-4556-853f-ad32761bcbee + String nodeType = null; + ArrayList deptNodes = new ArrayList<>(); + for (RowMap deptMap : deptMaps) { + HashMap deptNode = new HashMap<>(); + nodeType = "dept"; + deptNode.put("ID",deptMap.getString("ID")); + deptNode.put("PARENTID",deptMap.getString("PARENTDEPARTMENTID")); + deptNode.put("name",deptMap.getString("DEPARTMENTNAME")); + deptNode.put("ORDERINDEX",deptMap.getString("ORDERINDEX")); + deptNode.put("TLEVEL",deptMap.getString("LAYER")); + deptNode.put("nodeType", nodeType); + deptNodes.add(deptNode); + } + List deptTreeNodes = TreeUtil.buildTree("1",deptNodes,"0","dept","3",null); + //所属领域 + ArrayList frameList = new ArrayList<>(); + ArrayList fieldMaps = new ArrayList<>(); + List L1Maps = DBSql.getMaps("SELECT FRAMEID,FRAMENAME,FRAMETYPE,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMELEVEL=1 AND FRAMETYPE IS NOT NULL "); + String hasRoot = "Y"; + if (null != L1Maps && !L1Maps.isEmpty()) { + for (RowMap l1Map : L1Maps) { + String L1ID = l1Map.getString("FRAMEID"); + frameList = new ArrayList<>(); + frameList = GetNodesUtil.getChildFrame(L1ID, hasRoot, frameList); + fieldMaps.addAll(frameList); + } + } + ArrayList fieldNodes = new ArrayList<>(); + for (Map fieldMap : fieldMaps) { + HashMap fieldNode = new HashMap<>(); + fieldNode.put("ID", String.valueOf(fieldMap.get("FRAMEID"))); + fieldNode.put("PARENTID", String.valueOf(fieldMap.get("FRAMEPARENTID"))); + fieldNode.put("name", String.valueOf(fieldMap.get("FRAMENAME"))); + fieldNode.put("ORDERINDEX", Integer.valueOf(String.valueOf(fieldMap.get("FRAMEORDERINDEX")))); + fieldNode.put("TLEVEL", Integer.valueOf(String.valueOf(fieldMap.get("FRAMELEVEL")))); + fieldNodes.add(fieldNode); + } + List fieldTreeNodes = TreeUtil.buildTree("1",fieldNodes, "process", null, null, null); + + + JSONObject deptJson = new JSONObject(); + JSONArray deptTreeNodesArry = new JSONArray(); + for (Map map : deptTreeNodes) { + Set keySet = map.keySet(); + for (Object object : keySet) { + String key = object.toString(); + String value = map.get(key).toString(); + deptJson.put(key, value); + } + deptTreeNodesArry.add(deptJson); + } + JSONObject fieldTreeNodesJson = new JSONObject(); + JSONArray fieldTreeNodesArry = new JSONArray(); + for (Map map : fieldTreeNodes) { + Set keySet = map.keySet(); + for (Object object : keySet) { + String key = object.toString(); + String value = map.get(key).toString(); + fieldTreeNodesJson.put(key, value); + } + fieldTreeNodesArry.add(fieldTreeNodesJson); + } + + //System.out.println("======部门Map=====>"+deptTreeNodes); + //System.out.println("======架构Map=====>"+fieldTreeNodes); + + + BO bo1 = new BO(); + bo1.set("TYPE", "节点分析筛选条件"); + bo1.set("NAME", "deptTreeNodes"); + bo1.set("NODEDATA", deptTreeNodes); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo1,UserContext.fromUID("admin")); + + BO bo2 = new BO(); + bo2.set("TYPE", "节点分析筛选条件"); + bo2.set("NAME", "fieldTreeNodes"); + bo2.set("NODEDATA", fieldTreeNodes); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo2,UserContext.fromUID("admin")); + + ro.put("deptTreeNodes", deptTreeNodes); + ro.put("fieldTreeNodes", fieldTreeNodes); + long end = System.currentTimeMillis(); + + + + System.out.println("======加载筛选框用时=====>"+(end-start)/1000); + return ro.toString(); + } + + + + //-------------------------------文件管理--------------------------------- + /** + * @methodName: + * @param: + * @return: + * @description:部门文件数量 + * @auther: Lizj + * @date: 2022/6/28 22:43 + */ + + public String deptFileCount() { + /*文件数量=当日生效文档总数*/ + ResponseObject ro = ResponseObject.newOkResponse(); + ArrayList deptIDList = new ArrayList<>(); + JSONObject deptFileCountMap = new JSONObject(); + JSONArray BDFileCountMaps = new JSONArray(); + JSONArray FDFileCountMaps = new JSONArray(); + Integer fileCount = 0; + //事业部和职能部门ID,名称 list + List fileRowMaps = DBSql.getMaps("SELECT FILEID,PUBDEPT,PLPARENTID,PLMETHODID,POLICYTYPE,FILESTATE,VIEWCOUNT FROM BO_EU_PAL_FILE1 WHERE PLMETHODID='process.epc' OR PLMETHODID='process.flowchart' OR PLMETHODID='control.policy' OR PLMETHODID='data.form'"); + List BDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + if (null!=BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + deptFileCountMap = new JSONObject(); + fileCount = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileCount += 1; + } + } + } + } + deptFileCountMap.put("deptID",bdDeptID); + deptFileCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptFileCountMap.put("fileCount",fileCount); + BDFileCountMaps.add(deptFileCountMap); + } + } + if (null!=FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + deptFileCountMap = new JSONObject(); + fileCount = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileCount += 1; + } + } + } + } + deptFileCountMap.put("deptID",fdDeptID); + deptFileCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptFileCountMap.put("fileCount",fileCount); + FDFileCountMaps.add(deptFileCountMap); + } + } + ro.put("BDFileCount",BDFileCountMaps); + ro.put("FDFileCount",FDFileCountMaps); + + + BO bo1 = new BO(); + bo1.set("TYPE", "部门文件数量"); + bo1.set("NAME", "BDFileCount"); + bo1.set("NODEDATA", BDFileCountMaps); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo1,UserContext.fromUID("admin")); + BO bo2 = new BO(); + bo2.set("TYPE", "部门文件数量"); + bo2.set("NAME", "FDFileCount"); + bo2.set("NODEDATA", FDFileCountMaps); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo2,UserContext.fromUID("admin")); + return ro.toString(); + } + + + /** + * @methodName: + * @param: + * @return: + * @description:部门文件年度更新率 + * @auther: Lizj + * @date: 2022/6/28 22:49 + */ + + public String deptFileYearRenewRate() { + /* 年度更新率=(某单位年度新增文件+年度修订文件)/某单位当前文件总数 */ + ResponseObject ro = ResponseObject.newOkResponse(); + JSONObject renewRateMap = new JSONObject(); + JSONArray BDRenewRateMaps = new JSONArray(); + JSONArray FDRenewRateMaps = new JSONArray(); + ArrayList deptIDList = new ArrayList<>(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Integer deptFileNum = 0; + Integer newFileNum = 0; + String renewRate = null; + // 获取当前年 + LocalDateTime nowDate = LocalDateTime.now(); + int nowYear = nowDate.getYear(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + // 事业部和职能部门ID,名称 list + // List fileRowMaps = DBSql.getMaps("SELECT + // FILEID,FILEVERSION,PUBDEPT,PUBDATETIME FROM BO_EU_PAL_FILE1 WHERE + // FILESTATE='1'"); + List fileRowMaps = DBSql.getMaps("SELECT ID AS FILEID,EXT6 AS PUBDEPT,PUBLISHDATE,EXT5 AS FILESTATE FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = 1 AND (PLMETHODID='process.epc' OR PLMETHODID='control.policy' OR PLMETHODID='process.flowchart')"); + List BDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + if (null != BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + renewRateMap = new JSONObject(); + deptFileNum = 0; + newFileNum = 0; + renewRate = null; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + deptFileNum += 1; + String publishDate = fileRowMap.getString("PUBLISHDATE"); + if (UtilString.isNotEmpty(publishDate)) { + if (publishDate.contains("2022")) { + newFileNum += 1; + } + } + } + } + } + } + if (deptFileNum != 0) { + renewRate = numberformat.format((float) newFileNum / (float) deptFileNum * 100); + } else { + renewRate = "0"; + } + renewRateMap.put("deptID", bdDeptID); + renewRateMap.put("deptName", bdInfoMap.getString("ABBREVIATION")); + renewRateMap.put("renewRate", renewRate); + BDRenewRateMaps.add(renewRateMap); + } + } + if (null != FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + renewRateMap = new JSONObject(); + deptFileNum = 0; + newFileNum = 0; + renewRate = null; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + deptFileNum += 1; + String publishDate = fileRowMap.getString("PUBLISHDATE"); + if (UtilString.isNotEmpty(publishDate)) { + if (publishDate.contains("2022")) { + newFileNum += 1; + } + } + } + } + } + } + if (deptFileNum != 0) { + renewRate = numberformat.format((float) newFileNum / (float) deptFileNum * 100); + } else { + renewRate = "0"; + } + renewRateMap.put("deptID", fdDeptID); + renewRateMap.put("deptName", fdInfoMap.getString("ABBREVIATION")); + renewRateMap.put("renewRate", renewRate); + FDRenewRateMaps.add(renewRateMap); + } + } + ro.put("BDRenewRate", BDRenewRateMaps); + ro.put("FDRenewRate", FDRenewRateMaps); + + BO bo1 = new BO(); + bo1.set("TYPE", "部门文件年度更新率"); + bo1.set("NAME", "BDRenewRate"); + bo1.set("NODEDATA", BDRenewRateMaps); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo1, UserContext.fromUID("admin")); + BO bo2 = new BO(); + bo2.set("TYPE", "部门文件年度更新率"); + bo2.set("NAME", "FDRenewRate"); + bo2.set("NODEDATA", FDRenewRateMaps); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo2, UserContext.fromUID("admin")); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:部门文件年度更新情况 + * @auther: Lizj + * @date: 2022/6/28 22:53 + */ + + public String deptFileYearRenewSituation() { + /* + * 1)新增数=某单位年度新增文件 一个版本是新增 + * 2)修订数=某单位年度修订文件 大于一个版本是修订 + * 3)废止数=某单位年度废止文件 停用 + */ + ResponseObject ro = ResponseObject.newOkResponse(); + JSONObject renewCountMap = new JSONObject(); + JSONArray BDRenewCountMaps = new JSONArray(); + JSONArray FDRenewCountMaps = new JSONArray(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + Integer createCount = 0; + Integer updateCount = 0; + Integer abolishCount = 0; + ArrayList deptIDList = new ArrayList<>(); + // 获取当前年 + LocalDateTime nowDate = LocalDateTime.now(); + int nowYear = nowDate.getYear(); + // 事业部和职能部门ID,名称 list + //List fileRowMaps = DBSql.getMaps("SELECT FILEID,FILEVERSION,PUBDEPT,PUBDATETIME,FILESTATE FROM BO_EU_PAL_FILE1"); + List fileRowMaps = DBSql.getMaps("SELECT ID AS FILEID,EXT6 AS PUBDEPT,PUBLISHDATE,EXT5 AS FILESTATE FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = 1 AND (PLMETHODID='process.epc' OR PLMETHODID='control.policy' OR PLMETHODID='process.flowchart')"); + List BDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + if (null != BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + renewCountMap = new JSONObject(); + createCount = 0; + updateCount = 0; + abolishCount = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + try { + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + //System.err.println("=======deptID======"+deptID); + //System.err.println("=======PUBDEPT========="+fileRowMap.getString("PUBDEPT")); + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + String fileId = fileRowMap.getString("FILEID"); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(fileId); + double version = palRepositoryModel.getVersion(); + String FILESTATE = fileRowMap.getString("FILESTATE"); + boolean stop = palRepositoryModel.isStop(); + String publishDate = fileRowMap.getString("PUBLISHDATE"); + if(UtilString.isNotEmpty(publishDate)) { + if (publishDate.substring(0,4).equals((nowYear-1)+"")) { + if (FILESTATE.equals("1") && "1.0".equals(version+"")) { + createCount += 1; + } + if (FILESTATE.equals("1") && !"1.0".equals(version+"")) { + updateCount += 1; + } + if (stop) { + abolishCount += 1; + } + } + + } + + } + } + } + } + } catch (Exception e) { + // TODO: handle exception + } + renewCountMap.put("deptID", bdDeptID); + renewCountMap.put("deptName", bdInfoMap.getString("ABBREVIATION")); + renewCountMap.put("createCount", createCount); + renewCountMap.put("updateCount", updateCount); + renewCountMap.put("abolishCount", abolishCount); + BDRenewCountMaps.add(renewCountMap); + } + } + if (null != FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + renewCountMap = new JSONObject(); + createCount = 0; + updateCount = 0; + abolishCount = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + try { + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + String FILESTATE = fileRowMap.getString("FILESTATE"); + String publishDate = fileRowMap.getString("PUBLISHDATE"); + String fileId = fileRowMap.getString("FILEID"); + PALRepositoryModel palRepositoryModel = PALRepositoryCache.getCache().get(fileId); + double version = palRepositoryModel.getVersion(); + boolean stop = palRepositoryModel.isStop(); + if(UtilString.isNotEmpty(publishDate)) { + if (publishDate.substring(0,4).equals((nowYear-1)+"")) { + if (FILESTATE.equals("1") && "1.0".equals(version+"")) { + createCount += 1; + } + if (FILESTATE.equals("1") && !"1.0".equals(version+"")) { + updateCount += 1; + } + if (stop) { + abolishCount += 1; + } + } + + } + } + } + } + } + } catch (Exception e) { + // TODO: handle exception + } + renewCountMap.put("deptID", fdDeptID); + renewCountMap.put("deptName", fdInfoMap.getString("ABBREVIATION")); + renewCountMap.put("createCount", createCount); + renewCountMap.put("updateCount", updateCount); + renewCountMap.put("abolishCount", abolishCount); + FDRenewCountMaps.add(renewCountMap); + } + } + ro.put("BDRenewCount", BDRenewCountMaps); + ro.put("FDRenewCount", FDRenewCountMaps); + + BO bo1 = new BO(); + bo1.set("TYPE", "部门文件年度更新情况"); + bo1.set("NAME", "BDRenewCount"); + bo1.set("NODEDATA", BDRenewCountMaps); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo1,UserContext.fromUID("admin")); + BO bo2 = new BO(); + bo2.set("TYPE", "部门文件年度更新情况"); + bo2.set("NAME", "FDRenewCount"); + bo2.set("NODEDATA", FDRenewCountMaps); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo2,UserContext.fromUID("admin")); + + return ro.toString(); + } + + + + /** + * @methodName: + * @param: + * @return: + * @throws ParseException + * @description:文件发布时间分布 + * @auther: Lizj + * @date: 2022/6/28 22:57 + */ + public String filePubTimeDistribution() throws ParseException { + ResponseObject ro = ResponseObject.newOkResponse(); + List fileMaps = DBSql.getMaps("SELECT ID AS FILEID,PLMETHODID,EXT3 AS POLICYTYPE, EXT6 AS PUBDEPT,PUBLISHDATE AS PUBDATETIME,EXT5 AS FILESTATE,PLPARENTID FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = 1 AND ISSTOP =0 AND EXT5 = '1' AND (PLMETHODID='process.epc' OR PLMETHODID='control.policy' OR PLMETHODID='process.flowchart')"); + System.err.println("======文件发布时间同步======"+fileMaps.size()); + //List fileMaps = DBSql.getMaps("SELECT FILEID,PLMETHODID,POLICYTYPE,PUBDATETIME,PUBDEPT,PLPARENTID FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1' AND PUBDATETIME IS NOT NULL"); + LocalDate nowDate = LocalDate.now(); + //6个月内fileMaps + ArrayList month6InFileMaps = new ArrayList<>(); + //6个月~1年fileMaps + ArrayList year1InFileMaps = new ArrayList<>(); + //1年~2年fileMaps + ArrayList year2InFileMaps = new ArrayList<>(); + //2年~3年fileMaps + ArrayList year3InFileMaps = new ArrayList<>(); + //3年以上+fileMaps + ArrayList year3OutFileMaps = new ArrayList<>(); + + ArrayList fileCountMaps = new ArrayList<>(); + if (null!=fileMaps && fileMaps.isEmpty()==false) { + int count =0; + for (RowMap fileMap : fileMaps) { + try { + LocalDate PUBDATETIME = null; + String publishDate = fileMap.getString("PUBDATETIME"); + count++; + if(count<10) { + System.err.println("======publishDate========"+publishDate); + + } + if(UtilString.isNotEmpty(publishDate)) { + if(publishDate.length()>11) { + publishDate = publishDate.substring(0, 10); + } + if(publishDate.contains("年")) { + //PUBDATETIME = LocalDate.parse(publishDate.substring(0,9), DateTimeFormatter.ofPattern("yyyy年MM月dd")); + }else if(publishDate.contains("-")) { + PUBDATETIME = LocalDate.parse(publishDate); + } + + } + if(PUBDATETIME==null) { + continue; + } + Period betweenDate = Period.between(PUBDATETIME, nowDate); + + System.err.println("========betweenDate============="+betweenDate); + if (betweenDate.getMonths()<6) { + month6InFileMaps.add(fileMap); + } + if (betweenDate.getMonths()>=6 && betweenDate.getYears()<1) { + year1InFileMaps.add(fileMap); + } + if(betweenDate.getYears()>=1 && betweenDate.getYears()<2) { + year2InFileMaps.add(fileMap); + } + if(betweenDate.getYears()>=2 && betweenDate.getYears()<3) { + year3InFileMaps.add(fileMap); + } + if(betweenDate.getYears()>=3) { + year3OutFileMaps.add(fileMap); + } + + + + } catch (Exception e) { + // TODO: handle exception + } + } + } else { + ro.ok("暂无文件"); + } + + Integer processFileCount = 0; + Integer policyFileCount = 0; + Integer guideFileCount = 0; + Integer formFileCount = 0; + Map fileCountMap = new LinkedHashMap<>(); + if (null!=month6InFileMaps && !month6InFileMaps.isEmpty()) { + for (RowMap month6InFileMap : month6InFileMaps) { + if (month6InFileMap.getString("PLMETHODID").equals("process.epc") || month6InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (month6InFileMap.getString("PLMETHODID").equals("control.policy") && (month6InFileMap.getString("POLICYTYPE").equals("regulation") || null==month6InFileMap.getString("POLICYTYPE") || month6InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (month6InFileMap.getString("PLMETHODID").equals("control.policy") && month6InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (month6InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap.put("timeSlot","【6个月内】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year1InFileMaps && !year1InFileMaps.isEmpty()) { + for (RowMap year1InFileMap : year1InFileMaps) { + if (year1InFileMap.getString("PLMETHODID").equals("process.epc") || year1InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year1InFileMap.getString("PLMETHODID").equals("control.policy") && (year1InFileMap.getString("POLICYTYPE").equals("regulation") || null==year1InFileMap.getString("POLICYTYPE") || year1InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year1InFileMap.getString("PLMETHODID").equals("control.policy") && year1InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year1InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【6个月~1年】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year2InFileMaps && !year2InFileMaps.isEmpty()) { + for (RowMap year2InFileMap : year2InFileMaps) { + if (year2InFileMap.getString("PLMETHODID").equals("process.epc") || year2InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year2InFileMap.getString("PLMETHODID").equals("control.policy") && (year2InFileMap.getString("POLICYTYPE").equals("regulation") || null==year2InFileMap.getString("POLICYTYPE") || year2InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year2InFileMap.getString("PLMETHODID").equals("control.policy") && year2InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year2InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【1年~2年】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year3InFileMaps && !year3InFileMaps.isEmpty()) { + for (RowMap year3InFileMap : year3InFileMaps) { + if (year3InFileMap.getString("PLMETHODID").equals("process.epc") || year3InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year3InFileMap.getString("PLMETHODID").equals("control.policy") && (year3InFileMap.getString("POLICYTYPE").equals("regulation") || null==year3InFileMap.getString("POLICYTYPE") || year3InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year3InFileMap.getString("PLMETHODID").equals("control.policy") && year3InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year3InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【2年~3年】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year3OutFileMaps && !year3OutFileMaps.isEmpty()) { + for (RowMap year3OutFileMap : year3OutFileMaps) { + if (year3OutFileMap.getString("PLMETHODID").equals("process.epc") || year3OutFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year3OutFileMap.getString("PLMETHODID").equals("control.policy") && (year3OutFileMap.getString("POLICYTYPE").equals("regulation") || null==year3OutFileMap.getString("POLICYTYPE") || year3OutFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year3OutFileMap.getString("PLMETHODID").equals("control.policy") && year3OutFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year3OutFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【3年以上】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + ro.put("fileCount",fileCountMaps); + + JSONObject fileCountMapJson = new JSONObject(); + JSONArray fileCountMapsArry = new JSONArray(); + for (Map map : fileCountMaps) { + Set keySet = map.keySet(); + for (Object object : keySet) { + String key = object.toString(); + String value = map.get(key).toString(); + fileCountMapJson.put(key, value); + } + fileCountMapsArry.add(fileCountMapJson); + } + + BO bo1 = new BO(); + bo1.set("TYPE", "文件发布时间分布"); + bo1.set("NAME", "fileCount"); + bo1.set("NODEDATA", fileCountMapsArry); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo1,UserContext.fromUID("admin")); + return ro.toString(); + } + + //-------------------------------节点分析---------------------------------- + + + /** + * @methodName: + * @param: + * @return: + * @description:流程节点分析 + * @auther: Lizj + * @date: 2022/7/15 15:57 + */ + public String nodeAnalysis() { + System.out.println("======流程节点分析======"); + HashMap ro = new HashMap(); + String unit = "all"; + String field = ""; + ArrayList deptIDList = new ArrayList<>(); + ArrayList fieldList = new ArrayList<>(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + List nodeRowMaps = DBSql.getMaps("SELECT BN.NODEID,BN.NODETYPE,BF.FILEID,BF.PLPARENTID,BF.PUBDEPT FROM BO_EU_PAL_FILENODE5 BN LEFT JOIN BO_EU_PAL_FILE1 BF ON BN.PLID=BF.FILEID WHERE BF.FILESTATE='1' AND BF.PLMETHODID in ('process.epc','process.flowchart')"); + ArrayList nodeHandleMaps = new ArrayList<>(); + if (null!=unit && !unit.equals("")) { + if("all".equals(unit)) { + for (RowMap fileRowMap : nodeRowMaps) { + nodeHandleMaps.add(fileRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(unit, deptIDList); + for (String deptID : deptIDList) { + for (RowMap fileMap : nodeRowMaps) { + if (fileMap.getString("PUBDEPT").contains(deptID)) { + nodeHandleMaps.add(fileMap); + } + } + } + + } + nodeRowMaps = nodeHandleMaps; + } + if (null!=field && !field.equals("")) { + if("all".equals(field)) { + for (RowMap fileRowMap : nodeRowMaps) { + nodeHandleMaps.add(fileRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap fileMap : nodeRowMaps) { + if (fileMap.getString("PLPARENTID").equals(fieldID)) { + nodeHandleMaps.add(fileMap); + } + } + } + } + nodeRowMaps = nodeHandleMaps; + } + + + + Integer nodeTotalNum = 0; + Integer approvalNodeNum = 0; + Integer operationNodeNum = 0; + Integer onlineNodeNum = 0; + Integer itsysNodeNum = 0; + String approvalRrationate = "0"; + String operationRate = "0"; + String onlineRate = "0"; + String itsysRate = "0"; + if (null!=nodeRowMaps && !nodeRowMaps.isEmpty()) { + nodeTotalNum = nodeRowMaps.size(); + System.out.println("========nodeRowMaps=========="+nodeRowMaps.size()); + approvalNodeNum = 0; + operationNodeNum = 0; + onlineNodeNum = 0; + itsysNodeNum = 0; + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node") || nodeRowMap.getString("NODETYPE").equals("method_service_node")) { + approvalNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3") || nodeRowMap.getString("NODETYPE").equals("method_service_node4")) { + operationNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node")) { + onlineNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3")) { + itsysNodeNum += 1; + } + } + + approvalRrationate = numberformat.format((float) approvalNodeNum / (float) nodeTotalNum * 100); + operationRate = numberformat.format((float) operationNodeNum / (float) nodeTotalNum * 100); + onlineRate = numberformat.format((float) onlineNodeNum / (float) approvalNodeNum * 100); + itsysRate = numberformat.format((float) itsysNodeNum / (float) operationNodeNum * 100); + + ro.put("nodeTotalNum",nodeTotalNum); + ro.put("approvalNodeNum",approvalNodeNum); + ro.put("approvalRrationate",approvalRrationate); + ro.put("onlineRate",onlineRate); + ro.put("operationNodeNum",operationNodeNum); + ro.put("operationRate",operationRate); + ro.put("itsysRate",itsysRate); + } else { + nodeTotalNum = 0; + approvalNodeNum = 0; + operationNodeNum = 0; + onlineNodeNum = 0; + itsysNodeNum = 0; + approvalRrationate = "0"; + operationRate = "0"; + onlineRate = "0"; + itsysRate = "0"; + ro.put("nodeTotalNum",nodeTotalNum); + ro.put("approvalNodeNum",approvalNodeNum); + ro.put("approvalRrationate",approvalRrationate); + ro.put("onlineRate",onlineRate); + ro.put("operationNodeNum",operationNodeNum); + ro.put("operationRate",operationRate); + ro.put("itsysRate",itsysRate); + } + Set keySet = ro.keySet(); + for (String name : keySet) { + BO bo = new BO(); + bo.set("TYPE", "流程节点总数"); + bo.set("NAME", name); + bo.set("NODEDATA", ro.get(name)); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo,UserContext.fromUID("admin")); + } + + return ro.toString(); + } + + + /** + * @methodName: + * @param: + * @return: + * @description:事业部/职能部门审批节点信息 + * @auther: Lizj + * @date: 2022/8/5 0:27 + */ + public String deptNodeAttrApproval() { + HashMap ro = new HashMap(); + String field = "all"; + ArrayList fieldList = new ArrayList<>(); + ArrayList deptIDList = new ArrayList<>(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + JSONObject deptNodeCountMap = new JSONObject(); + JSONArray BDApprovalNodeCountMaps = new JSONArray(); + JSONArray FDApprovalNodeCountMaps = new JSONArray(); + JSONArray BDApprovalNodeRateMaps = new JSONArray(); + JSONArray FDApprovalNodeRateMaps = new JSONArray(); + JSONArray BDApprovalOLNodeRateMaps = new JSONArray(); + JSONArray FDApprovalOLNodeRateMaps = new JSONArray(); + //事业部和职能部门ID,名称 list + List nodeRowMaps = DBSql.getMaps("SELECT BN.NODEID,BN.NODETYPE,BF.FILEID,BF.PLPARENTID,BF.PUBDEPT FROM BO_EU_PAL_FILENODE5 BN LEFT JOIN BO_EU_PAL_FILE1 BF ON BN.PLID=BF.FILEID WHERE BF.FILESTATE='1' AND BF.PLMETHODID in ('process.epc','process.flowchart')"); + ArrayList nodeHandleMaps = new ArrayList<>(); + List BDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + //审批节点数量、节点总数量、线上审批节点数量 + Integer nodeTotalNum = 0; + Integer approvalNodeNum = 0; + Integer approvalOLNodeNum = 0; + String approvalRate = "0"; + String approvalOLRate = "0"; + + if (null!=field && !field.equals("")) { + if("all".equals(field)) { + for (RowMap nodeRowMap : nodeRowMaps) { + nodeHandleMaps.add(nodeRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PLPARENTID").equals(fieldID)) { + nodeHandleMaps.add(nodeRowMap); + } + } + } + + } + nodeRowMaps = nodeHandleMaps; + } + + if (null!=BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + nodeTotalNum = 0; + approvalNodeNum = 0; + approvalOLNodeNum = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node") || nodeRowMap.getString("NODETYPE").equals("method_service_node")) { + approvalNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node")) { + approvalOLNodeNum += 1; + } + } + } + } + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalNodeNum",approvalNodeNum); + BDApprovalNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + approvalRate = numberformat.format((float) approvalNodeNum / (float) nodeTotalNum * 100); + } else { + approvalRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalRate",approvalRate); + BDApprovalNodeRateMaps.add(deptNodeCountMap); + if (approvalNodeNum!=0) { + approvalOLRate = numberformat.format((float) approvalOLNodeNum / (float) approvalNodeNum * 100); + } else { + approvalOLRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalOLRate",approvalOLRate); + BDApprovalOLNodeRateMaps.add(deptNodeCountMap); + } + } + if (null!=FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + nodeTotalNum = 0; + approvalNodeNum = 0; + approvalOLNodeNum = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node") || nodeRowMap.getString("NODETYPE").equals("method_service_node")) { + approvalNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node")) { + approvalOLNodeNum += 1; + } + } + } + } + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalNodeNum",approvalNodeNum); + FDApprovalNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + approvalRate = numberformat.format((float) approvalNodeNum / (float) nodeTotalNum * 100); + } else { + approvalRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalRate",approvalRate); + FDApprovalNodeRateMaps.add(deptNodeCountMap); + if (approvalNodeNum!=0) { + approvalOLRate = numberformat.format((float) approvalOLNodeNum / (float) approvalNodeNum * 100); + } else { + approvalOLRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalOLRate",approvalOLRate); + FDApprovalOLNodeRateMaps.add(deptNodeCountMap); + } + } + + ro.put("BDApprovalNodeCountMaps",BDApprovalNodeCountMaps); + ro.put("FDApprovalNodeCountMaps",FDApprovalNodeCountMaps); + ro.put("BDApprovalNodeRateMaps",BDApprovalNodeRateMaps); + ro.put("FDApprovalNodeRateMaps",FDApprovalNodeRateMaps); + ro.put("BDApprovalOLNodeRateMaps",BDApprovalOLNodeRateMaps); + ro.put("FDApprovalOLNodeRateMaps",FDApprovalOLNodeRateMaps); + + Set keySet = ro.keySet(); + for (String name : keySet) { + BO bo = new BO(); + bo.set("TYPE", "审批节点信息"); + bo.set("NAME", name); + bo.set("NODEDATA", ro.get(name).toString()); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo,UserContext.fromUID("admin")); + } + + + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:事业部/职能部门操作节点信息 + * @auther: Lizj + * @date: 2022/8/5 0:27 + */ + public String deptNodeAttrOperation() { + HashMap ro = new HashMap(); + String field = "all"; + ArrayList fieldList = new ArrayList<>(); + ArrayList deptIDList = new ArrayList<>(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + JSONObject deptNodeCountMap = new JSONObject(); + JSONArray BDOperationNodeCountMaps = new JSONArray(); + JSONArray FDOperationNodeCountMaps = new JSONArray(); + JSONArray BDOperationNodeRateMaps = new JSONArray(); + JSONArray FDOperationNodeRateMaps = new JSONArray(); + JSONArray BDOperationOLNodeRateMaps = new JSONArray(); + JSONArray FDOperationOLNodeRateMaps = new JSONArray(); + //事业部和职能部门ID,名称 list + List nodeRowMaps = DBSql.getMaps("SELECT BN.NODEID,BN.NODETYPE,BF.FILEID,BF.PLPARENTID,BF.PUBDEPT FROM BO_EU_PAL_FILENODE5 BN LEFT JOIN BO_EU_PAL_FILE1 BF ON BN.PLID=BF.FILEID WHERE BF.FILESTATE='1' AND BF.PLMETHODID in ('process.epc','process.flowchart')"); + ArrayList nodeHandleMaps = new ArrayList<>(); + List BDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + //审批节点数量、节点总数量、线上审批节点数量 + Integer nodeTotalNum = 0; + Integer operationNodeNum = 0; + Integer operationOLNodeNum = 0; + String operationNodeRate = "0"; + String operationOLNodeRate = "0"; + + if (null!=field && !field.equals("")) { + if("all".equals(field)) { + for (RowMap fileRowMap : nodeRowMaps) { + nodeHandleMaps.add(fileRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PLPARENTID").equals(fieldID)) { + nodeHandleMaps.add(nodeRowMap); + } + } + } + + } + nodeRowMaps = nodeHandleMaps; + } + + if (null!=BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + nodeTotalNum = 0; + operationNodeNum = 0; + operationOLNodeNum = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3") || nodeRowMap.getString("NODETYPE").equals("method_service_node4")) { + operationNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3")) { + operationOLNodeNum += 1; + } + } + } + } + } + + + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeNum",operationNodeNum); + BDOperationNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + operationNodeRate = numberformat.format((float) operationNodeNum / (float) nodeTotalNum * 100); + } else { + operationNodeRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeRate",operationNodeRate); + + + BDOperationNodeRateMaps.add(deptNodeCountMap); + if (operationNodeNum!=0) { + operationOLNodeRate = numberformat.format((float) operationOLNodeNum / (float) operationNodeNum * 100); + } else { + operationOLNodeRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationOLNodeRate",operationOLNodeRate); + BDOperationOLNodeRateMaps.add(deptNodeCountMap); + } + } + if (null!=FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + nodeTotalNum = 0; + operationNodeNum = 0; + operationOLNodeNum = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3") || nodeRowMap.getString("NODETYPE").equals("method_service_node4")) { + operationNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3")) { + operationOLNodeNum += 1; + } + } + } + } + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeNum",operationNodeNum); + + + FDOperationNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + operationNodeRate = numberformat.format((float) operationNodeNum / (float) nodeTotalNum * 100); + } else { + operationNodeRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeRate",operationNodeRate); + FDOperationNodeRateMaps.add(deptNodeCountMap); + if (operationNodeNum!=0) { + operationOLNodeRate = numberformat.format((float) operationOLNodeNum / (float) operationNodeNum * 100); + } else { + operationOLNodeRate = "0"; + } + deptNodeCountMap = new JSONObject(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationOLNodeRate",operationOLNodeRate); + FDOperationOLNodeRateMaps.add(deptNodeCountMap); + } + } + ro.put("BDOperationNodeCountMaps",BDOperationNodeCountMaps); + ro.put("FDOperationNodeCountMaps",FDOperationNodeCountMaps); + ro.put("BDOperationNodeRateMaps",BDOperationNodeRateMaps); + ro.put("FDOperationNodeRateMaps",FDOperationNodeRateMaps); + ro.put("BDOperationOLNodeRateMaps",BDOperationOLNodeRateMaps); + ro.put("FDOperationOLNodeRateMaps",FDOperationOLNodeRateMaps); + Set keySet = ro.keySet(); + for (String name : keySet) { + BO bo = new BO(); + bo.set("TYPE", "操作节点信息"); + bo.set("NAME", name); + bo.set("NODEDATA", ro.get(name)); + SDK.getBOAPI().createDataBO("BO_EU_FILE_OPERATIONNODE", bo,UserContext.fromUID("admin")); + } + + return ro.toString(); + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/test/ExtractImages.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/test/ExtractImages.java new file mode 100644 index 00000000..b5b5f3a9 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/test/ExtractImages.java @@ -0,0 +1,169 @@ +/** + * + */ +package com.awspaas.user.apps.app.test; + +import java.awt.image.BufferedImage; +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + +import javax.imageio.ImageIO; + +import org.apache.commons.lang.StringUtils; + +import com.spire.doc.Document; +import com.spire.doc.documents.DocumentObjectType; +import com.spire.doc.fields.DocPicture; +import com.spire.doc.interfaces.ICompositeObject; +import com.spire.doc.interfaces.IDocumentObject; +/** + * @author Administrator + * + */ +public class ExtractImages { + private static final IDocumentObject Header_Footer = null; + public static void main(String[] args) throws IOException { + long start = System.currentTimeMillis(); + // ExecutorService cachedThreadPool = Executors.newCachedThreadPool(3); + + ArrayList sendList = new ArrayList(); + sendList.add("1234556"); + sendList.add("1234556"); + String userIds = StringUtils.join(sendList, ","); + System.err.println("=========>"+userIds); + + ArrayList sendList2 = new ArrayList(); + + for (int i = 0; i < 1000; i++) { + sendList.add(i + ""); + } + List idList = null; + int listSize = sendList.size(); + int toIndex = 200; + boolean shutdown = false; + for (int i = 0; i < sendList.size(); i += 200) { + if (i + 200 > listSize) { + toIndex = listSize - i; + } + idList = sendList.subList(i, i + toIndex); + ExecutorService cachedThreadPool = Executors.newFixedThreadPool(30); + // 开启一个线程 + cachedThreadPool.execute(new Runnable() { + + @Override + public void run() { + for (int k = 1; k < 20; k++) { + //System.out.println("执行业务操作……"); + } + + } + }); + // 以下是等线程池的全部线程执行结束后,会自动执行。 + + cachedThreadPool.shutdown(); + while (true) { + if (cachedThreadPool.isTerminated()) { + long time = System.currentTimeMillis() - start; + //System.out.println("程序结束了,总耗时:" + time + " ms(毫秒)!\n" +toIndex); + break; + } + } + + } + + // System.err.println("=========="+shutdown); + // System.err.println("=========="+toIndex); + + /* + * String name = "特殊天气安全作业指导书V.1"; String substring = + * name.substring(name.length()-1); String substring2 = + * name.substring(0,name.length()-2); String newName = substring2 + * +substring+".0"; System.err.println(newName); + */ + } + + + + + + public static void getTxt() throws IOException { + //加载Word文档 + Document document = new Document(); + document.loadFromFile("C:\\Users\\Administrator\\Desktop\\伊利集团资金余额管理实施细则.doc"); + + //获取文档中的文本保存为String + String text=document.getText(); + + //将String写入Txt文件 + writeStringToTxt(text,"D:ExtractedText.txt"); + + } + + public static void getPuces() throws IOException { + //加载Word文档 + Document document = new Document(); + document.loadFromFile("C:\\Users\\Administrator\\Desktop\\伊利集团资金余额管理实施细则.doc"); + + //创建Queue对象 + Queue nodes = new LinkedList(); + nodes.add(document); + + //创建List对象 + List images = new ArrayList(); + + //遍历文档中的子对象 + while (nodes.size() > 0) { + ICompositeObject node = (ICompositeObject) nodes.poll(); + for (int i = 0; i < node.getChildObjects().getCount(); i++) { + IDocumentObject child = node.getChildObjects().get(i); + if (child instanceof ICompositeObject) { + nodes.add((ICompositeObject) child); + //获取图片并添加到List + + System.err.println("===child.getDocumentObjectType()===>"+child.getDocumentObjectType()); + if (child.getDocumentObjectType() == DocumentObjectType.Picture) { + DocPicture picture = (DocPicture) child; + images.add(picture.getImage()); + System.err.println("8888888888888"); + } + if (child.getDocumentObjectType() == DocumentObjectType.Header_Footer) { + System.err.println("8888888888888"); + } + } + } + } + + //将图片保存为PNG格式文件 + for (int i = 0; i < images.size(); i++) { + File file = new File(String.format("D:测试.png", i)); + ImageIO.write(images.get(i), "PNG", file); + } + } + + + + + public static void writeStringToTxt(String content, String txtFileName) throws IOException { + + FileWriter fWriter= new FileWriter(txtFileName,true); + try { + fWriter.write(content); + }catch(IOException ex){ + ex.printStackTrace(); + }finally{ + try{ + fWriter.flush(); + fWriter.close(); + } catch (IOException ex) { + ex.printStackTrace(); + } + } + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/AesUtil.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/AesUtil.java new file mode 100644 index 00000000..5541017c --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/AesUtil.java @@ -0,0 +1,90 @@ +package com.awspaas.user.apps.app.util; + +import java.net.URLEncoder; +import java.security.Key; +import java.security.SecureRandom; + +import javax.crypto.Cipher; +import javax.crypto.KeyGenerator; + +import sun.misc.BASE64Decoder; +import sun.misc.BASE64Encoder; + +/** + * AES加密解密工具类 + * + * @author M-Y + */ +public class AesUtil { + + public static String DES = "AES"; // optional value AES/DES/DESede + + public static String CIPHER_ALGORITHM = "AES"; // optional value + // AES/DES/DESede + + public Key getKey(String strKey) { + try { + if (strKey == null) { + strKey = ""; + } + KeyGenerator _generator = KeyGenerator.getInstance("AES"); + SecureRandom secureRandom = SecureRandom.getInstance("SHA1PRNG"); + secureRandom.setSeed(strKey.getBytes()); + _generator.init(128, secureRandom); + return _generator.generateKey(); + } catch (Exception e) { + throw new RuntimeException(" 初始化密钥出现异常 "); + } + } + + public String encrypt(String data, String key) throws Exception { + SecureRandom sr = new SecureRandom(); + Key secureKey = getKey(key); + Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); + cipher.init(Cipher.ENCRYPT_MODE, secureKey, sr); + byte[] bt = cipher.doFinal(data.getBytes()); + String strS = new BASE64Encoder().encode(bt); + return strS; + } + + public String decrypt(String message, String key) { + try { + SecureRandom sr = new SecureRandom(); + Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); + Key secureKey = getKey(key); + cipher.init(Cipher.DECRYPT_MODE, secureKey, sr); + byte[] res = new BASE64Decoder().decodeBuffer(message); + res = cipher.doFinal(res); + return new String(res); + } catch (Exception e) { + e.printStackTrace(); + } + return null; + } + + public String DecryptedMsg(String message, String key) throws Exception, Exception { + String Msg1 = encrypt(message, key); + System.out.println("message is :" + Msg1); + String encryptMsg1 = URLEncoder.encode(encrypt(message, key), "UTF-8"); + System.out.println("encrypted message is :" + encryptMsg1); + return encryptMsg1; + + } + + public static void main(String[] args) throws Exception { + String data = "AUDIT##202210181611"; + String key = "auditY809kUih23"; + String url = "http://10.60.143.183:8088/portal/r/df?groupValue=7d3ca852-a0bd-42e6-80b1-3dcea6f55083&fileValue=d1135309-e376-4ec6-bd27-51947abe26ea&sid=null&repositoryName=output&appId=com.actionsoft.apps.coe.pal.output.pr&attachment=true&fileName=%E5%B9%BF%E5%91%8A%E5%88%9B%E6%84%8F%E7%94%9F%E6%88%90%E6%B5%81%E7%A8%8B_1.0.doc&lastModified=1666352134000"; + String str1 = url.substring(0, url.indexOf("/df")); + + System.out.println("str1>"+str1); + //String encryptMsg1 = AesUtil.encrypt(data, key); + //System.out.println("加密后:" + encryptMsg1); + /*message = "YPS5F%2F%2BVmdbVj0iuxrSINw%3D%3D"; + System.out.println("解密后:" + AesUtil.decrypt(URLDecoder.decode(message), key));*/ + } + + + + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/CheckUtil.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/CheckUtil.java new file mode 100644 index 00000000..70a63aa2 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/CheckUtil.java @@ -0,0 +1,28 @@ +package com.awspaas.user.apps.app.util; + +import java.text.DateFormat; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * @author:Lizj + * @create: 2022-07-18 17:36 + * @Description: 校验元素是否合法 + */ +public class CheckUtil { + public static boolean isDate(String date) { + DateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); + // 使用严格的解析 + sdf.setLenient(false); + try { + sdf.parse(date); + } catch (ParseException e) { + return false; + } + return true; + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/DownloadUtil.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/DownloadUtil.java new file mode 100644 index 00000000..3452434a --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/DownloadUtil.java @@ -0,0 +1,142 @@ +package com.awspaas.user.apps.app.util; + +import java.io.File; +import java.util.LinkedHashMap; +import java.util.List; + +import com.actionsoft.apps.coe.pal.pal.output.OutputAPIManager; +import com.actionsoft.apps.coe.pal.pal.output.dao.OutputTask; +import com.actionsoft.apps.coe.pal.pal.output.model.OutputTaskModel; +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.model.UpfileModel; +import com.actionsoft.apps.coe.pal.pal.repository.upfile.web.UpfileWeb; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.server.fs.DCContext; +import com.actionsoft.bpms.server.fs.dc.DCProfileManager; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UUIDGener; +import com.actionsoft.bpms.util.UtilFile; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONObject; + +public class DownloadUtil { + + /** + * 流程手册下载 + * @param _uc + * @param taskId + * @return + */ + public LinkedHashMap outputReportDownload(UserContext _uc, String taskId, String ruuid) { + LinkedHashMap map = new LinkedHashMap<>(); + OutputTaskModel model = new OutputTask().getTaskReportById(taskId); + ResponseObject result = ResponseObject.newOkResponse(); + if (model != null) { + try { + UtilFile file = OutputAPIManager.getInstance().getFilePath(model.getWsId(), taskId, model.getProfileId()); + if (file.exists()) { + File[] fileList = file.listFiles(); + if (fileList.length > 0) { + File docFile = null; + for (File file2 : fileList) { + if (file2.isFile() && "doc".equals((file2.getName().substring(file2.getName().lastIndexOf(".") + 1)))) { + docFile = file2; + break; + } + } + if (docFile == null) { + // return ResponseObject.newErrResponse("没有找到文件").toString(); + } + + PALRepositoryModel plmodel = PALRepositoryCache.getCache().get(ruuid); + if(plmodel!=null) { + String sourceAppId = "com.actionsoft.apps.coe.pal.output.pr"; + String methodId = plmodel.getMethodId(); + if(methodId.contains("control")) { + sourceAppId = "com.awspaas.user.apps.coe.pal.output.zd"; + }else if(methodId.contains("data")) { + sourceAppId = "com.awspaas.user.apps.coe.pal.output.bd"; + } + String filename = docFile.getName(); + DCContext sourceDc = new DCContext(_uc, DCProfileManager.getDCProfile(sourceAppId, "output"), sourceAppId, model.getWsId(), taskId, filename); + String downUrl= SDK.getConfAPI().getPortalUrl() + "/r/" + sourceDc.getDownloadURL().replace("./", ""); + // result.put("url",downUrl); + map.put(filename,downUrl); + } + String sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '"+ruuid+ "')"; + String fileType = "select PLMETHODID from APP_ACT_COE_PAL_REPOSITORY where ID='"+ruuid+"'"; + if("control.policy".equals(DBSql.getString(fileType))) { + sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '"+ruuid+ "') and FILETYPE != 's' "; + } + List maps = DBSql.getMaps(sql_upfile); + UpfileWeb upfileWeb = new UpfileWeb(_uc); + int count = 0; + for (RowMap row : maps) { + if(count>5) { + break; + } + String fileName = row.getString("FILENAME"); + if(UtilString.isNotEmpty(fileName)&&!fileName.contains(".xml")) { + UpfileModel upfileModel = new UpfileModel(); + upfileModel.setType(row.getString("FILETYPE")); + upfileModel.setFileName(row.getString("FILENAME")); + upfileModel.setPl_uuid(row.getString("PALREPOSITORYID")); + upfileModel.setShape_uuid(row.getString("SHAPEID")); + DCContext dcContexts = upfileWeb.getDCContext(upfileModel); + String downUrl= SDK.getConfAPI().getPortalUrl() + "/r/" + dcContexts.getDownloadURL().replace("./", ""); + map.put(row.getString("FILENAME"),downUrl); + count++; + } + } + + } + }else{ + result = ResponseObject.newErrResponse("没有可预览文件"); + } + } catch (Exception e) { + e.printStackTrace(); + // return ResponseObject.newErrResponse().toString(); + } + } + return map; + } + + + public String getzipURL(String sid,String taskId,String title){ + System.out.println("taskid》》》》》》》》》》"+taskId); + System.out.println("fileName》》》》》》》》》》"+title); + String reportDownloadURL = ""; + UserContext me = UserContext.fromSessionId(sid); + OutputTaskModel model = new OutputTask().getTaskReportById(taskId); + JSONObject result = new JSONObject(); + if (model != null) { + //三员管理,步骤横表下载重新生成手册 + + String taskName = model.getTaskName(); + if ("步骤横表".equals(taskName)){ + // 重新设置生成id,与用户id + String uuid = UUIDGener.getUUID(); + model.setUserId(me.getUID()); + + // 重新生成手册文件 + OutputAPIManager.getInstance().reGennerReport(me,model,uuid); + + // 重新构建手册下载URL + taskId = uuid; + } + + try { + reportDownloadURL = OutputDCFileProcessor.getReportDownloadURL(model.getWsId(), taskId, model.getProfileId(), me, title+model.getTaskName()); + } catch (Exception e) { + + e.printStackTrace(); + } + } + return reportDownloadURL; + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/GetNodesUtil.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/GetNodesUtil.java new file mode 100644 index 00000000..c0085e7c --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/GetNodesUtil.java @@ -0,0 +1,118 @@ +package com.awspaas.user.apps.app.util; + +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.sdk.local.SDK; + +import java.sql.Connection; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +/** + * @author:Lizj + * @create: 2022-06-27 22:35 + * @Description: 获取子节点工具类 + */ +public class GetNodesUtil { + + /** + * @methodName: + * @param: + * @return: + * @description:获取L1下子架构 + * @auther: Lizj + * @date: 2022/6/22 22:30 + */ + public static ArrayList getChildFrame(String frameID, String hasRoot, ArrayList frameList) { + Object[] sqlParams = new Object[]{}; + sqlParams = new Object[]{frameID}; + RowMap frameRowMap = DBSql.getMap("SELECT FRAMEID,FRAMENAME,FRAMELEVEL,FRAMEPARENTID,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMEID=?", sqlParams); + String FRAMELEVEL = frameRowMap.getString("FRAMELEVEL"); + if (hasRoot.equals("Y")) { + frameList.add(frameRowMap); + } else { + if (!FRAMELEVEL.equals("1")) { + frameList.add(frameRowMap); + } + } + Integer FRAMENUM = DBSql.getInt("SELECT COUNT(*) AS FRAMENUM FROM BO_EU_PAL_FRAME WHERE FRAMEPARENTID=?", sqlParams); + if (FRAMENUM>0) { + List subFrameMaps = DBSql.getMaps("SELECT FRAMEID,FRAMENAME,FRAMELEVEL,FRAMEPARENTID,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMEPARENTID=?", sqlParams); + for (RowMap subFrameMap : subFrameMaps) { + frameID = subFrameMap.getString("FRAMEID"); + getChildFrame(frameID,hasRoot,frameList); + } + } + return frameList; + } + + /** + * @methodName: + * @param: + * @return: + * @description:获取所有子部门 + * @auther: Lizj + * @date: 2022/6/27 22:41 + */ + public static ArrayList getChildDept(String deptID,ArrayList deptIDList) { + deptIDList.add(deptID); + Object[] sqlParams = new Object[]{}; + sqlParams = new Object[]{deptID}; + List subDeptMaps = DBSql.getMaps("SELECT ID FROM ORGDEPARTMENT WHERE PARENTDEPARTMENTID=?",sqlParams); + if (null!=subDeptMaps && !subDeptMaps.isEmpty()) { + for (RowMap subDeptMap : subDeptMaps) { + deptID = subDeptMap.getString("ID"); + getChildDept(deptID,deptIDList); + } + } + return deptIDList; + } + + /** + * @methodName: + * @param: + * @return: + * @description:获取父架构 + * @auther: Lizj + * @date: 2022/8/4 17:38 + */ + public static List getParentFrame(String fileID, List fileIDMaps) { + Object[] sqlParams = new Object[]{}; + sqlParams = new Object[]{fileID}; + RowMap parentFile = DBSql.getMap("SELECT FRAMEID,FRAMENAME,FRAMELEVEL,FRAMEPARENTID,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMEID=?", sqlParams); + if (null!=parentFile && !parentFile.isEmpty()) { + if (parentFile.getInt("FRAMELEVEL")<=3) { + fileIDMaps.add(parentFile); + if (parentFile.getInt("FRAMELEVEL")>1) { + fileID = parentFile.getString("FRAMEPARENTID"); + getParentFrame(fileID, fileIDMaps); + } + } + } + return fileIDMaps; + } + + /** + * @methodName: + * @param: + * @return: + * @description:获取父部门 + * @auther: Lizj + * @date: 2022/8/4 17:39 + */ + public static String getParentDept(String deptID, Integer toDeptLevel) { + Object[] sqlParams = new Object[]{}; + sqlParams = new Object[]{deptID}; + RowMap parentDept = DBSql.getMap("SELECT ID,PARENTDEPARTMENTID,LAYER FROM ORGDEPARTMENT WHERE ID=?", sqlParams); + if (null != parentDept && !parentDept.isEmpty()) { + if (parentDept.getInt("LAYER") > toDeptLevel) { + deptID = parentDept.getString("PARENTDEPARTMENTID"); + getParentDept(deptID, toDeptLevel); + } else if(parentDept.getInt("LAYER") == toDeptLevel) { + return deptID; + } + } + return deptID; + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/HttpClientUtils.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/HttpClientUtils.java new file mode 100644 index 00000000..1613b88f --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/HttpClientUtils.java @@ -0,0 +1,124 @@ +package com.awspaas.user.apps.app.util; + +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.UnsupportedEncodingException; + +import org.apache.commons.httpclient.HttpClient; +import org.apache.commons.httpclient.methods.InputStreamRequestEntity; +import org.apache.commons.httpclient.methods.PostMethod; +import org.apache.commons.httpclient.methods.RequestEntity; + +public class HttpClientUtils { + + + + public String SendPend(String url, XmlDatasUtil xmlDatasUtil) throws IOException { + String result = "true"; + StringBuffer sendSoapString = new StringBuffer(); + String xmlStr = "\n" + + " \n" + + " \n" + + " \n" + + " \n" + + "\n" + + "\n" + + " \n" + + " "+ xmlDatasUtil.getExternal_system_ID() +"\n" + + " "+ xmlDatasUtil.getOther_system_to_do_ID() +"\n" + + " "+ xmlDatasUtil.getProcess_title() +"\n" + + " "+ xmlDatasUtil.getPcurl() + "\n" + + " "+ xmlDatasUtil.getMobileurl() +"\n" + + " "+ xmlDatasUtil.getTo_do_login_account() +"\n" + + " "+ xmlDatasUtil.getTo_do_creation_time() +"\n" + + " "+ xmlDatasUtil.getTo_do_completion_time() +"\n" + + " "+ xmlDatasUtil.getTo_do_status() +"\n" + + " "+ xmlDatasUtil.getTo_do_official_type() +"\n" + + " "+ xmlDatasUtil.getViewtype() +"\n" + + " "+ xmlDatasUtil.getCreatedate() +"\n" + + " "+ xmlDatasUtil.getDonedate() +"\n" + + " "+ xmlDatasUtil.getReceivedate() +"\n" + + " " + xmlDatasUtil.getReceivetime() +"\n" + + " "+ xmlDatasUtil.getCurrentnodetype() +"\n" + + " "+ xmlDatasUtil.getRequestcode() +"\n" + + " "+ xmlDatasUtil.getCurrentnodename() +"\n" + + " "+ xmlDatasUtil.getNooperator() +"\n" + + " "+ xmlDatasUtil.getWorkcode() +"\n" + + " "+ xmlDatasUtil.getWorkflowname() +"\n" + + " "+ xmlDatasUtil.getCreaterhrcode() +"\n" + + " "+ xmlDatasUtil.getCreaterworkcode() +"\n" + + " \n" + + "\n" + + "]]>\n" + + "\n" + + " \n" + + " \n" + + ""; + + System.out.println("xmlstr================"+xmlStr); + String postSoap = UtilUrl.doPostSoap(url, xmlStr, ""); + + return postSoap; + } + + + public String readOa(String url, String taskid) throws IOException { + String result = "true"; + StringBuffer sendSoapString = new StringBuffer(); + String xmlStr = "\n" + + " \n" + + " \n" + + " \n" + + " LCZD\n" + + " "+taskid+"\n" + + " \n" + + " \n" + + ""; + + System.out.println("xmlstr================"+xmlStr); + String postSoap = UtilUrl.doPostSoap(url, xmlStr, ""); + + return postSoap; + } + + + + + public String SendPreview(String url, String xmlStr) { + String result = "true"; + + + PostMethod postMethod = new PostMethod(url); + StringBuffer soapRequestData = new StringBuffer(xmlStr); + byte[] b = (byte[])null; + + try { + b = soapRequestData.toString().getBytes("utf-8"); + } catch (UnsupportedEncodingException var16) { + var16.printStackTrace(); + } + + InputStream is = new ByteArrayInputStream(b, 0, b.length); + RequestEntity re = new InputStreamRequestEntity(is, (long)b.length, "text/xml; charset=utf-8"); + postMethod.setRequestEntity(re); + HttpClient httpClient = new HttpClient(); + httpClient.setConnectionTimeout(500000000); + httpClient.setTimeout(500000000); + + try { + int statusCode = httpClient.executeMethod(postMethod); + if (statusCode == 200) { + String soapResponseData = postMethod.getResponseBodyAsString(); + return soapResponseData.indexOf("Success") == -1 ? "fail" : result; + } else { + return "error:[" + statusCode + "]!"; + } + } catch (Exception var15) { + var15.printStackTrace(); + return "Exception:[" + var15 + "]!"; + } + } + +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/HttpUtil.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/HttpUtil.java new file mode 100644 index 00000000..0e410577 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/HttpUtil.java @@ -0,0 +1,64 @@ +package com.awspaas.user.apps.app.util; + +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import org.apache.http.HttpResponse; +import org.apache.http.HttpStatus; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.entity.StringEntity; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClients; +import org.apache.http.message.BasicHeader; +import org.apache.http.protocol.HTTP; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import java.io.BufferedReader; +import java.io.InputStream; +import java.io.InputStreamReader; +/** + * http请求⼯具 + * @Author wangcy + */ +public class HttpUtil { + private static final Logger logger = LoggerFactory.getLogger(HttpUtil.class); + /** + * 发送post请求 + * @param json + * @param URL + * @return + */ + public String sendPost(JSONObject json,String URL) { + CloseableHttpClient client = HttpClients.createDefault(); + HttpPost post = new HttpPost(URL); + post.setHeader("Content-Type", "application/json"); + //post.addHeader("Authorization", "Basic YWRtaW46"); + String result; + try { + StringEntity s = new StringEntity(json.toString(), "utf-8"); + s.setContentType(new BasicHeader(HTTP.CONTENT_TYPE, + "application/json")); + post.setEntity(s); +// 发送请求 + HttpResponse httpResponse = client.execute(post); +// 获取响应输⼊流 + InputStream inStream = httpResponse.getEntity().getContent(); + BufferedReader reader = new BufferedReader(new InputStreamReader( + inStream, "utf-8")); + StringBuilder strber = new StringBuilder(); + String line; + while ((line = reader.readLine()) != null) + strber.append(line + "\n"); + inStream.close(); + result = strber.toString(); + if (httpResponse.getStatusLine().getStatusCode() == HttpStatus.SC_OK) { + System.out.println("请求服务器成功,做相应处理"); + } else { + System.out.println("请求服务端失败"); + } + } catch (Exception e) { + logger.error("请求异常:"+e.getMessage()); + throw new RuntimeException(e); + } + return result; + } +} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/OutputDCFileProcessor.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/OutputDCFileProcessor.java new file mode 100644 index 00000000..aea9f64d --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/OutputDCFileProcessor.java @@ -0,0 +1,145 @@ +package com.awspaas.user.apps.app.util; + +import com.actionsoft.apps.coe.pal.constant.CoEConstant; +import com.actionsoft.apps.coe.pal.log.CoEOpLogAPI; +import com.actionsoft.apps.coe.pal.log.CoEOpLogConst; +import com.actionsoft.apps.coe.pal.pal.output.OutputAPIManager; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.server.fs.AbstFileProcessor; +import com.actionsoft.bpms.server.fs.DCContext; +import com.actionsoft.bpms.server.fs.FileProcessorListener; +import com.actionsoft.bpms.server.fs.dc.DCProfileManager; +import com.actionsoft.bpms.server.fs.dc.DCUtil; +import com.actionsoft.bpms.util.UtilFile; +import com.actionsoft.sdk.local.SDK; +import com.actionsoft.sdk.local.api.AppAPI; + +import java.io.File; +import java.util.HashMap; +import java.util.Map; + +/** + * 这块主要是将手册以及相关的附件的代码 + */ +public class OutputDCFileProcessor extends AbstFileProcessor implements FileProcessorListener { + public OutputDCFileProcessor() { + } + + /** + * 得到报告文件 + * + * @param wsId 资产库id + * @param id 任务Id + * @param profileId 报告生成器扩展App的配置Id + * @throws Exception + */ + public static String getReportDownloadURL(String wsId, String id, String profileId, UserContext _uc, String taskName) throws Exception { + UtilFile file = OutputAPIManager.getInstance().getFilePath(wsId, id, profileId); + if (file.exists()) { + //String josnStr = OutputAPIManager.getInstance().getWizardJsonData(wsId, id, profileId); + // JSONObject jsonObj = JSONObject.fromObject(josnStr); + DCContext dcContext = null; + DCUtil.getInstance(); + if (taskName.contains("流程")){ + dcContext = DCUtil.createTempFileContext("com.actionsoft.apps.coe.pal.output.pr", "output", id, "zip"); + }else if (taskName.contains("表单")){ + dcContext = DCUtil.createTempFileContext("com.awspaas.user.apps.coe.pal.output.bd", "output", id, "zip"); + }else if (taskName.contains("制度")){ + dcContext = DCUtil.createTempFileContext("com.awspaas.user.apps.coe.pal.output.zd", "output", id, "zip"); + } + dcContext.setFileName(taskName+ ".zip"); + File ff = new File(dcContext.getFilePath()); + // UtilFile.zipCompress(file.getPath(), ff, "doc"); +// UtilFile.zipCompressExcludeName(file.getPath(), ff, "txt,**/*.log"); + UtilFile.zipCompressExcludeName(file.getPath(), ff, "log,**/config.txt"); + dcContext.setSession(_uc); + // 操作行为日志记录 + if (SDK.getAppAPI().getPropertyBooleanValue(CoEConstant.APP_ID, "IS_RECORD_OP_LOG", false)) { + CoEOpLogAPI.auditOkOp(_uc, CoEOpLogConst.MODULE_CATEGORY_APPCENTER, CoEOpLogConst.OP_DOWNLOAD, CoEOpLogConst.INFO_OUTPUT_DOWNLOAD); + } + return dcContext.getDownloadURL(); + } + return ""; + } + + public static String doPreviewReport(String wsId, String id, String profileId, UserContext _uc) throws Exception { + UtilFile file = OutputAPIManager.getInstance().getFilePath(wsId, id, profileId); + ResponseObject result = ResponseObject.newOkResponse(); + if (file.exists()) { + File[] fileList = file.listFiles(); + if (fileList.length > 0) { + File docFile = null; + File[] var8 = fileList; + int var9 = fileList.length; + + for(int var10 = 0; var10 < var9; ++var10) { + File file2 = var8[var10]; + if (file2.isFile() && "doc".equals(file2.getName().substring(file2.getName().lastIndexOf(".") + 1))) { + docFile = file2; + break; + } + } + + if (docFile == null) { + return ResponseObject.newErrResponse("没有找到文件").toString(); + } + + if (SDK.getAppAPI().isActive("com.actionsoft.apps.addons.onlinedoc")) { + String sourceAppId = "com.actionsoft.apps.coe.pal.output.pr"; + String filename = docFile.getName(); + DCContext sourceDc = new DCContext(_uc, DCProfileManager.getDCProfile(sourceAppId, "output"), sourceAppId, wsId, id, filename); + Map aslpParams = new HashMap(); + aslpParams.put("sid", _uc.getSessionId()); + aslpParams.put("fileNameOriginal", filename); + aslpParams.put("sourceDc", sourceDc); + aslpParams.put("isShowDefaultToolbar", "false"); + aslpParams.put("isEncrypt", true); + aslpParams.put("isCopy", "true"); + aslpParams.put("isPrint", "false"); + aslpParams.put("isDownload", "false"); + AppAPI appAPI = SDK.getAppAPI(); + ResponseObject responseObject = appAPI.callASLP(appAPI.getAppContext(sourceAppId), "aslp://com.actionsoft.apps.addons.onlinedoc/filePreview", aslpParams); + if (responseObject != null) { + if (responseObject.isOk()) { + String url = responseObject.get("url").toString(); + result.put("url", url); + result.put("filename", filename); + if (SDK.getAppAPI().getPropertyBooleanValue("com.actionsoft.apps.coe.pal", "IS_RECORD_OP_LOG", false)) { + CoEOpLogAPI.auditOkOp(_uc, "PAL应用中心", "access", "访问报告手册文档"); + } + } else { + result = ResponseObject.newErrResponse("文档转换服务不可用,请联系管理员"); + } + } + } else { + result = ResponseObject.newErrResponse("文档转换服务不可用,请联系管理员"); + } + } + } else { + result = ResponseObject.newErrResponse("没有可预览文件"); + } + + return result.toString(); + } + + public static String getReportLogDownloadURL(String wsId, String id, String profileId, UserContext _uc, String taskName) throws Exception { + UtilFile file = OutputAPIManager.getInstance().getFilePath(wsId, id, profileId); + if (file.exists()) { + DCContext dcContext = null; + DCUtil.getInstance(); + dcContext = DCUtil.createTempFileContext("com.actionsoft.apps.coe.pal.output.pr", "output", id, "zip"); + dcContext.setFileName("log.zip"); + File ff = new File(dcContext.getFilePath()); + UtilFile.zipCompress(file.getPath(), ff, "log"); + dcContext.setSession(_uc); + if (SDK.getAppAPI().getPropertyBooleanValue("com.actionsoft.apps.coe.pal", "IS_RECORD_OP_LOG", false)) { + CoEOpLogAPI.auditOkOp(_uc, "PAL应用中心", "download", "下载报告手册文档日志"); + } + + return dcContext.getDownloadURL(); + } else { + return ""; + } + } +} \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/PreviewDataUtil.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/PreviewDataUtil.java new file mode 100644 index 00000000..70d7bdcc --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/PreviewDataUtil.java @@ -0,0 +1,106 @@ +package com.awspaas.user.apps.app.util; + +import java.util.List; + +public class PreviewDataUtil { + + String action; //固定值"read" + String title; //标题 + String dept;//发布机构(部门编码) + String user; //发布人(员工编码) + String date; //发布日期 yyyy-MM-dd + String remark;//备注 + String status;//发布状态 0未读、1已读 + String pcurl;//PC端链接地址 + String mobileurl;//移动端链接地址 + String dataid;//未读更新为已读时必填 + List userList;//接收人 string数组 + + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getDept() { + return dept; + } + + public void setDept(String dept) { + this.dept = dept; + } + + public String getUser() { + return user; + } + + public void setUser(String user) { + this.user = user; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getPcurl() { + return pcurl; + } + + public void setPcurl(String pcurl) { + this.pcurl = pcurl; + } + + public String getMobileurl() { + return mobileurl; + } + + public void setMobileurl(String mobileurl) { + this.mobileurl = mobileurl; + } + + public String getDataid() { + return dataid; + } + + public void setDataid(String dataid) { + this.dataid = dataid; + } + + public List getUserList() { + return userList; + } + + public void setUserList(List userList) { + this.userList = userList; + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/RepositoryAttribute.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/RepositoryAttribute.java new file mode 100644 index 00000000..12e12900 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/RepositoryAttribute.java @@ -0,0 +1,369 @@ +package com.awspaas.user.apps.app.util; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.apache.tools.ant.util.StringUtils; + +import com.actionsoft.apps.coe.pal.pal.method.model.PALMethodAttributeModel; +import com.actionsoft.apps.coe.pal.pal.repository.PALRepositoryAPIManager; +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryPropertyCache; +import com.actionsoft.apps.coe.pal.pal.repository.designer.CoeDesignerShapeAPIManager; +import com.actionsoft.apps.coe.pal.pal.repository.designer.relation.cache.DesignerShapeRelationCache; +import com.actionsoft.apps.coe.pal.pal.repository.designer.relation.model.DesignerShapeRelationModel; +import com.actionsoft.apps.coe.pal.pal.repository.designer.util.ShapeUtil; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryPropertyModel; +import com.actionsoft.bpms.org.model.DepartmentModel; +import com.actionsoft.bpms.org.model.RoleModel; +import com.actionsoft.bpms.org.model.UserModel; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; + +public class RepositoryAttribute { + /** + * 根据模型ID查询所有文件扩展属性 + * + * @param uuid + * @return + */ + public Map queryRepositoryAttributeById(String uuid) { + Map result = new HashMap<>(); + PALRepositoryModel plModel = PALRepositoryCache.getCache().get(uuid); + // 获取所有文件属性 + List methodAttrModels = PALRepositoryAPIManager.getInstance().getValidAndUseAttributeModels(plModel.getWsId(), plModel.getMethodId()); + if (methodAttrModels != null && methodAttrModels.size() > 0) { + Map attributeModelMap = new HashMap<>(); + Map sortAttrMap = new HashMap<>(); + if (methodAttrModels != null) { + int sort = 0; + for (PALMethodAttributeModel attr : methodAttrModels) { + attributeModelMap.put(attr.getKey(), attr); + sortAttrMap.put(attr.getKey(), ++sort); + } + } + List propertys = PALRepositoryPropertyCache.getPropertyByPlId(plModel.getId()); + // 排序 + // propertys.sort((p1, p2) -> (sortAttrMap.containsKey(p1.getPropertyId()) ? sortAttrMap.get(p1.getPropertyId()) : 0) - (sortAttrMap.containsKey(p2.getPropertyId()) ? sortAttrMap.get(p2.getPropertyId()) : 0)); + + for (PALRepositoryPropertyModel property : propertys) { + String id = property.getPropertyId(); + if (!attributeModelMap.containsKey(id) || !attributeModelMap.get(id).getUse()) { + continue; + } + PALMethodAttributeModel attributeModel = attributeModelMap.get(id); + // 记录结果集 + JSONObject attrObj = new JSONObject(); + attrObj.put("ref", attributeModel.getRef());// ref + attrObj.put("type", attributeModel.getType());// 类型 relation string ... + attrObj.put("attrId", attributeModel.getKey());// 属性key + attrObj.put("attrTitle", attributeModel.getNewTitle());// 属性标题 + attrObj.put("text", "");// 属性内容单行文本 + attrObj.put("value", new JSONArray());// 属性内容集,relation或awsorg类型时存储对应的json数据 + String inputValue = property.getPropertyValue(); + if ("relation".equals(attributeModel.getType())) { + List inputValueList = new ArrayList<>(); + List list = DesignerShapeRelationCache.getListByAttrId(plModel.getId(), "", attributeModel.getKey()); + if (list != null && list.size() > 0) { + // 判断是否有重复数据,进行重复过滤 + Set tempStrs = new HashSet<>(); + List tempList = new ArrayList<>(); + for (int i = 0; i < list.size(); i++) { + DesignerShapeRelationModel model = list.get(i); + String str = model.getFileId() + model.getShapeId() + model.getAttrId() + model.getRelationFileId() + model.getRelationShapeId(); + if (!tempStrs.contains(str)) { + tempList.add(model); + tempStrs.add(str); + } + } + list = tempList; + for (int i = 0; i < list.size(); i++) { + DesignerShapeRelationModel model = list.get(i); + JSONObject refObj = JSONObject.parseObject(attributeModel.getRef()); + String relationTyp = refObj.containsKey("type") ? refObj.getString("type") : "shape"; + if ("file".equals(relationTyp)) {// 关联的模型文件 + if (model.getRelationFileId().length() < 36) { + continue; + } + List list2 = PALRepositoryCache.getByVersionId(plModel.getWsId(), model.getRelationFileId()); + for (PALRepositoryModel model2 : list2) { + if (model2.isUse()) { + inputValueList.add(model2.getName()); + JSONObject tmp = new JSONObject(); + tmp.put("fileId", model2.getId()); + tmp.put("name", model2.getName()); + tmp.put("isFile", true); + attrObj.getJSONArray("value").add(tmp); + break; + } + } + } else { + inputValueList.add(model.getRelationShapeText()); + JSONObject tmp = new JSONObject(); + tmp.put("fileId", model.getRelationFileId()); + tmp.put("shapeId", model.getRelationShapeId()); + tmp.put("name", model.getRelationShapeText()); + tmp.put("isFile", false); + attrObj.getJSONArray("value").add(tmp); + } + } + } + inputValue = StringUtils.join(inputValueList, ","); + } + // 关联bpm组织架构 + if ("awsorg".equals(attributeModel.getType())) { + List list = DesignerShapeRelationCache.getListByAttrId(plModel.getId(), "", attributeModel.getKey()); + List deptValList = new ArrayList<>(); + List positionValList = new ArrayList<>(); + List roleValList = new ArrayList<>(); + List userValList = new ArrayList<>(); + if (list != null && list.size() > 0) { + Set filter = new HashSet();// 去重记录 + list.sort((m1, m2) -> { + return m1.getId().compareTo(m2.getId()); + }); + for (DesignerShapeRelationModel model : list) { + if ("00000000-0000-0000-0000-000000000000".equals(model.getRelationFileId()) && "00000000-0000-0000-0000-000000000000".equals(model.getRelationShapeId())) { + JSONObject object = JSONObject.parseObject(model.getRelationShapeText()); + boolean flag = false; + // 查询最新名称 + if ("department".equals(object.getString("type"))) { + DepartmentModel dept = SDK.getORGAPI().getDepartmentById(object.getString("id")); + if (dept != null && !filter.contains(dept.getId())) { + deptValList.add(dept.getName()); + filter.add(dept.getId()); + flag = true; + } + } + if ("position".equals(object.getString("type"))) {// 岗位,先用角色代替 + RoleModel role = SDK.getORGAPI().getRoleById(object.getString("id")); + if (role != null && !filter.contains(role.getId())) { + positionValList.add(role.getName()); + filter.add(role.getId()); + flag = true; + } + } + if ("user".equals(object.getString("type"))) { + UserModel user = SDK.getORGAPI().getUser(object.getString("id")); + if (user != null && !filter.contains(user.getUID())) { + userValList.add(user.getUserName()); + filter.add(user.getUID()); + flag = true; + } + } + if ("role".equals(object.getString("type"))) { + RoleModel role = SDK.getORGAPI().getRoleById(object.getString("id")); + if (role != null && !filter.contains(role.getId())) { + roleValList.add(role.getName()); + filter.add(role.getId()); + flag = true; + } + } + if (flag) { + attrObj.getJSONArray("value").add(object); + } + } + } + } + // 数据组合 + deptValList.addAll(positionValList); + deptValList.addAll(roleValList); + deptValList.addAll(userValList); + inputValue = StringUtils.join(deptValList, ","); + + } + inputValue = inputValue.replaceAll("'", "'"); + inputValue = inputValue.replaceAll("\"", """); + attrObj.put("text", inputValue); + result.put(attributeModel.getKey(), attrObj); + } + } + return result; + } + + + /** + * 根据模型和形状查询所有形状扩展属性 + * + * @param uuid + * @param shapeId + * @param shapeObject 当前节点的定义json,可以通过PALRepositoryQueryAPIManager.getInstance().getProcessDefinition获取string--》转换JSONObject--》获取elements--》elements.getJSONObject(shapeId)得到 + * @return + */ + private Map queryRepositoryShapeAttributeById(String uuid, String shapeId, JSONObject shapeObject) { + Map result = new HashMap<>(); + PALRepositoryModel model = PALRepositoryCache.getCache().get(uuid); + String methodId = model.getMethodId(); + String wsId = model.getWsId(); + JSONObject dataAttributes = ShapeUtil.getCustom(shapeObject.getJSONArray("dataAttributes")); + JSONArray attributesJsonArray = dataAttributes.containsKey("attributesJsonArray") ? dataAttributes.getJSONArray("attributesJsonArray") : new JSONArray(); //扩展属性 + // 查询属性数据集合 + Map attrDataMap = new HashMap<>(); + for (Object obj : attributesJsonArray) { + if (obj == null) { + continue; //删除的节点不存在 + } + JSONObject jsonObj = (JSONObject) obj; + if (!jsonObj.containsKey("groupPath") || UtilString.isEmpty(jsonObj.getString("groupPath"))) { + continue; //排除组 + } + if (!jsonObj.containsKey("type") || UtilString.isEmpty(jsonObj.getString("type"))) { + continue; //排除无type的 + } + attrDataMap.put(jsonObj.getString("key"), jsonObj); + } + // 获取形状的属性配置(有效且使用中) + List methodAttrModels = CoeDesignerShapeAPIManager.getInstance().getValidAndUseAttributeModels(wsId, methodId, shapeObject.getString("name"), methodId); + for (PALMethodAttributeModel attributeModel : methodAttrModels) { + // 记录结果集 + JSONObject attrObj = new JSONObject(); + attrObj.put("ref", attributeModel.getRef());// ref + attrObj.put("type", attributeModel.getType());// 类型 relation string ... + attrObj.put("attrId", attributeModel.getKey());// 属性key + attrObj.put("attrTitle", attributeModel.getNewTitle());// 属性标题 + attrObj.put("text", "");// 属性内容单行文本 + attrObj.put("value", new JSONArray());// 属性内容集,relation或awsorg类型时存储对应的json数据 + + String key = attributeModel.getKey(); + String attrValue = ""; + if (attrDataMap.containsKey(key)) { + JSONObject jsonObj = attrDataMap.get(key); + String type = attributeModel.getType(); + if ("string".equals(type)) { + attrValue = jsonObj.containsKey("value") ? jsonObj.getString("value") : ""; + } else if ("number".equals(type)) { + attrValue = jsonObj.containsKey("value") ? jsonObj.getString("value") : ""; + } else if ("textarea".equals(type)) { + attrValue = jsonObj.containsKey("value") ? jsonObj.getString("value") : ""; + } else if ("boolean".equals(type)) { + attrValue = jsonObj.containsKey("value") ? jsonObj.getString("value") : ""; + } else if ("select".equals(type)) { + attrValue = jsonObj.containsKey("value") ? jsonObj.getString("value") : ""; + } else if ("select_m".equals(type)) { + attrValue = jsonObj.containsKey("value") ? jsonObj.getString("value") : ""; + String[] values = attrValue.split(","); + List valueList = new ArrayList<>(); + for (int i = 0; i < values.length; i++) { + if (!UtilString.isEmpty(values[i])) { + valueList.add(values[i]); + } + } + attrValue = StringUtils.join(valueList, ","); + } else if ("relation".equals(type)) { + List inputValues = new ArrayList<>(); + JSONObject refObj = JSONObject.parseObject(attributeModel.getRef()); + String relationType = refObj.containsKey("type") ? refObj.getString("type") : "shape"; + List list = DesignerShapeRelationCache.getListByAttrId(uuid, shapeId, key); + if (list != null && list.size() > 0) { + // 判断是否有重复数据,进行重复过滤 + Set tempStrs = new HashSet<>(); + List tempList = new ArrayList<>(); + for (int i = 0; i < list.size(); i++) { + DesignerShapeRelationModel relationModel = list.get(i); + String str = relationModel.getFileId() + relationModel.getShapeId() + relationModel.getAttrId() + relationModel.getRelationFileId() + relationModel.getRelationShapeId(); + if (!tempStrs.contains(str)) { + tempList.add(relationModel); + tempStrs.add(str); + } + } + list = tempList; + for (int i = 0; i < list.size(); i++) { + DesignerShapeRelationModel relationModel = list.get(i); + if ("file".equals(relationType)) {// 文件属性 + String versionId = UtilString.isEmpty(relationModel.getRelationShapeId()) ? relationModel.getRelationFileId() : relationModel.getRelationShapeId(); + if (!UtilString.isEmpty(versionId)) { + List list2 = PALRepositoryCache.getByVersionId(wsId, versionId); + for (PALRepositoryModel model2 : list2) { + if (model2.isUse()) { + inputValues.add(model2.getName()); + JSONObject tmp = new JSONObject(); + tmp.put("fileId", model2.getId()); + tmp.put("name", model2.getName()); + tmp.put("isFile", true); + attrObj.getJSONArray("value").add(tmp); + break; + } + } + } + } else {// 形状属性 + inputValues.add(relationModel.getRelationShapeText()); + JSONObject tmp = new JSONObject(); + tmp.put("fileId", relationModel.getRelationFileId()); + tmp.put("shapeId", relationModel.getRelationShapeId()); + tmp.put("name", relationModel.getRelationShapeText()); + tmp.put("isFile", false); + attrObj.getJSONArray("value").add(tmp); + } + } + } + attrValue = StringUtils.join(inputValues, ","); + } else if ("awsorg".equals(type)) {// 关联bpm组织架构 + List list = DesignerShapeRelationCache.getListByAttrId(uuid, shapeId, key); + List awsOrgResultList = new ArrayList<>(); + List deptValueList = new ArrayList<>(); + List positionValueList = new ArrayList<>(); + List userValueList = new ArrayList<>(); + List roleValueList = new ArrayList<>(); + if (list != null && list.size() > 0) { + for (DesignerShapeRelationModel relationModel : list) { + JSONObject object = JSONObject.parseObject(relationModel.getRelationShapeText()); + String orgType = object.getString("type"); + String keyId = object.getString("id"); + boolean flag = false; + if ("department".equals(orgType)) {// 部门 + DepartmentModel deptModel = SDK.getORGAPI().getDepartmentById(keyId); + if (deptModel != null) { + deptValueList.add(deptModel.getName()); + flag = true; + } + } + if ("position".equals(orgType)) {// 岗位 + RoleModel roleModel = SDK.getORGAPI().getRoleById(keyId); + if (roleModel != null) { + positionValueList.add(roleModel.getName()); + flag = true; + } + } + if ("user".equals(orgType)) {// 人员 + UserModel userModel = SDK.getORGAPI().getUser(keyId); + if (userModel != null) { + userValueList.add(userModel.getUserName()); + flag = true; + } + } + if ("role".equals(orgType)) {// 角色 + RoleModel roleModel = SDK.getORGAPI().getRoleById(keyId); + if (roleModel != null) { + roleValueList.add(roleModel.getName()); + flag = true; + } + } + if (flag) { + attrObj.getJSONArray("value").add(object); + } + } + } + awsOrgResultList.addAll(deptValueList); + awsOrgResultList.addAll(positionValueList); + awsOrgResultList.addAll(roleValueList); + awsOrgResultList.addAll(userValueList); + attrValue = StringUtils.join(awsOrgResultList, ","); + } else { + attrValue = jsonObj.containsKey("value") ? jsonObj.getString("value") : ""; + } + } + attrValue = attrValue.replaceAll("'", "'"); + attrValue = attrValue.replaceAll("\"", """); + attrObj.put("text", attrValue); + result.put(attributeModel.getKey(), attrObj); + } + return result; + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/TreeUtil.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/TreeUtil.java new file mode 100644 index 00000000..f0b77406 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/TreeUtil.java @@ -0,0 +1,108 @@ +package com.awspaas.user.apps.app.util; + +import org.apache.commons.collections.CollectionUtils; + +import java.util.*; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +/** + * @author:Lizj + * @create: 2022-06-24 17:28 + * @Description: 树形工具类 + */ +public class TreeUtil { + + //建立树形结构 + //rootSign 根节点标识 + //tLevel 节点层级,用于指定展示层数 + //nodeType 节点类型,用于多数据类型合并 + public static List buildTree(String type,List nodeMaps,String rootSign,String rootNodeType,String tLevel,String nodeType){ + List treeNodes =new ArrayList<>(); + if("1".equals(type)) { + HashMap deptNode = new HashMap<>(); + nodeType = "dept"; + deptNode.put("ID","all"); + deptNode.put("PARENTID","0"); + deptNode.put("name","全部"); + deptNode.put("ORDERINDEX","1"); + deptNode.put("TLEVEL",""); + deptNode.put("nodeType", "dept"); + treeNodes.add(deptNode); + } + for (Map treeNode : getRootNode(nodeMaps,rootSign,rootNodeType)) { + treeNode = buildChildTree(treeNode,nodeMaps,tLevel,nodeType); + treeNodes.add(treeNode); + } + // 子节点进行排序 + List treeNodesSort = Optional.ofNullable(treeNodes) + .map(List::stream) + .orElseGet(Stream::empty) + .sorted(Comparator.comparing(treeNode->Integer.valueOf(treeNode.get("ORDERINDEX").toString()))) + .collect(Collectors.toList()); + return treeNodesSort; + } + //递归,建立子树形结构 + private static Map buildChildTree(Map pNode, List nodeMaps, String tLevel, String nodeType){ + List childNodes =new ArrayList<>(); + if (null == tLevel || tLevel.equals("")) { + for (Map nodeMap : nodeMaps) { + if (nodeMap.get("PARENTID").equals(pNode.get("ID"))) { + childNodes.add(buildChildTree(nodeMap,nodeMaps,tLevel,nodeType)); + } + } + if(CollectionUtils.isNotEmpty(childNodes)){ + List childNodesSort = Optional.ofNullable(childNodes) + .map(List::stream) + .orElseGet(Stream::empty) + .sorted(Comparator.comparing(childNodesOrigin->Integer.valueOf(childNodesOrigin.get("ORDERINDEX").toString()))) + .collect(Collectors.toList()); + pNode.put("children",childNodesSort); + } + } else { + for (Map nodeMap : nodeMaps) { + if (Integer.valueOf(tLevel)>=Integer.valueOf(String.valueOf(nodeMap.get("TLEVEL")))) { + if (nodeMap.get("PARENTID").equals(pNode.get("ID"))) { + childNodes.add(buildChildTree(nodeMap,nodeMaps,tLevel,nodeType)); + } + } + if (Integer.valueOf(tLevel) childNodesSort = Optional.ofNullable(childNodes) + .map(List::stream) + .orElseGet(Stream::empty) + .sorted(Comparator.comparing(childNodesOrigin->Integer.valueOf(childNodesOrigin.get("ORDERINDEX").toString()))) + .collect(Collectors.toList()); + pNode.put("children",childNodesSort); + } + } + return pNode; + } + //获取根节点 + private static List getRootNode(List nodeMaps,String rootSign,String rootNodeType) { + List rootNodes =new ArrayList<>(); + for (Map nodeMap : nodeMaps) { + if (null!=rootSign && !rootSign.equals("")) { + if (null!=rootNodeType && !rootNodeType.equals("")) { + if (nodeMap.get("PARENTID").equals(rootSign) && nodeMap.get("nodeType").equals(rootNodeType)) { + rootNodes.add(nodeMap); + } + } else { + if (nodeMap.get("PARENTID").equals(rootSign)) { + rootNodes.add(nodeMap); + } + } + } else { + if (nodeMap.get("nodeType").equals(rootNodeType)) { + rootNodes.add(nodeMap); + } + } + } + return rootNodes; + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/UtilUrl.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/UtilUrl.java new file mode 100644 index 00000000..0cfcc042 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/UtilUrl.java @@ -0,0 +1,51 @@ +package com.awspaas.user.apps.app.util; + +import org.apache.http.HttpEntity; +import org.apache.http.client.config.RequestConfig; +import org.apache.http.client.methods.CloseableHttpResponse; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.entity.StringEntity; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClientBuilder; +import org.apache.http.util.EntityUtils; +import java.nio.charset.Charset; + +/** + * @PackageName: com.awspaas.user.apps.yili.integration.util + * @ClassName: UtilUrl + * @author: yujh + * @date: 2022/5/18 21:41 + */ +public class UtilUrl { + + //使用SOAP1.1发送消息 + public static String doPostSoap(String postUrl, String soapXml, String soapAction) { + String retStr = ""; + // 创建HttpClientBuilder + HttpClientBuilder httpClientBuilder = HttpClientBuilder.create(); + // HttpClient + CloseableHttpClient closeableHttpClient = httpClientBuilder.build(); + HttpPost httpPost = new HttpPost(postUrl); + // 设置请求和传输超时时间 + RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(600000) + .setConnectTimeout(600000).build(); + httpPost.setConfig(requestConfig); + try { + httpPost.setHeader("Content-Type", "text/xml;charset=UTF-8"); + httpPost.setHeader("SOAPAction", soapAction); + StringEntity data = new StringEntity(soapXml, Charset.forName("UTF-8")); + httpPost.setEntity(data); + CloseableHttpResponse response = closeableHttpClient.execute(httpPost); + HttpEntity httpEntity = response.getEntity(); + if (httpEntity != null) { + // 打印响应内容 + retStr = EntityUtils.toString(httpEntity, "UTF-8"); + } + // 释放资源 + closeableHttpClient.close(); + } catch (Exception e) { + e.printStackTrace(); + } + return retStr; + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/UtilUrls.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/UtilUrls.java new file mode 100644 index 00000000..d60a57b4 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/UtilUrls.java @@ -0,0 +1,52 @@ +package com.awspaas.user.apps.app.util; + +import org.apache.http.HttpEntity; +import org.apache.http.client.config.RequestConfig; +import org.apache.http.client.methods.CloseableHttpResponse; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.entity.StringEntity; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClientBuilder; +import org.apache.http.util.EntityUtils; + +import java.nio.charset.Charset; + +/** + * @PackageName: com.awspaas.user.apps.yili.integration.util + * @ClassName: UtilUrl + * @author: yujh + * @date: 2022/5/18 21:41 + */ +public class UtilUrls { + + //使用SOAP1.1发送消息 + public static String doPostSoap(String postUrl, String soapXml, String soapAction) { + String retStr = ""; + // 创建HttpClientBuilder + HttpClientBuilder httpClientBuilder = HttpClientBuilder.create(); + // HttpClient + CloseableHttpClient closeableHttpClient = httpClientBuilder.build(); + HttpPost httpPost = new HttpPost(postUrl); + // 设置请求和传输超时时间 + RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(999999999) + .setConnectTimeout(999999999).build(); + httpPost.setConfig(requestConfig); + try { + httpPost.setHeader("Content-Type", "text/xml;charset=UTF-8"); + httpPost.setHeader("SOAPAction", soapAction); + StringEntity data = new StringEntity(soapXml, Charset.forName("UTF-8")); + httpPost.setEntity(data); + CloseableHttpResponse response = closeableHttpClient.execute(httpPost); + HttpEntity httpEntity = response.getEntity(); + if (httpEntity != null) { + // 打印响应内容 + retStr = EntityUtils.toString(httpEntity, "UTF-8"); + } + // 释放资源 + closeableHttpClient.close(); + } catch (Exception e) { + e.printStackTrace(); + } + return retStr; + } +} diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/XmlDatasUtil.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/XmlDatasUtil.java new file mode 100644 index 00000000..da3e6a07 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/util/XmlDatasUtil.java @@ -0,0 +1,240 @@ +package com.awspaas.user.apps.app.util; + +/** + * @author wangchengye + * @description + * @createtime 2022-07-09 15:54 + * @updateAndOther + */ +public class XmlDatasUtil { + // 外部系统ID + private String External_system_ID; + // 其他系统待办ID + private String Other_system_to_do_ID; + // 流程标题 + private String Process_title; + //// pc端的url地址 + private String pcurl; + // s手机端的url地址 + private String mobileurl; + // 待办人的登录账号 + private String To_do_login_account; +//待办创建时间 + private String To_do_creation_time; + //// 待办办结时间 + private String To_do_completion_time; + // 待办状态 + private String To_do_status; +//公文类型的待办 + private String To_do_official_type; + // 已读类型 + private String viewtype; + // 创建日期 + private String createdate; + // 待办办结日期 + private String donedate; + // 待办接收日期 + private String receivedate; + // 待办接收时间 + private String receivetime; + // 当前节点是否已经归档 + private String currentnodetype; + // 流程编号 + private String requestcode; + // 当前节点 + private String currentnodename; + // 未操作者 + private String nooperator; + // 待办人员工作工号 + private String workcode; + // 工作流程编号 + private String workflowname; + // 流程创建人员登录账号 + private String createrhrcode; + // 流程创建人员工号 + private String createrworkcode; + + public String getExternal_system_ID() { + return External_system_ID; + } + + public void setExternal_system_ID(String external_system_ID) { + External_system_ID = external_system_ID; + } + + public String getOther_system_to_do_ID() { + return Other_system_to_do_ID; + } + + public void setOther_system_to_do_ID(String other_system_to_do_ID) { + Other_system_to_do_ID = other_system_to_do_ID; + } + + public String getProcess_title() { + return Process_title; + } + + public void setProcess_title(String process_title) { + Process_title = process_title; + } + + public String getPcurl() { + return pcurl; + } + + public void setPcurl(String pcurl) { + this.pcurl = pcurl; + } + + public String getMobileurl() { + return mobileurl; + } + + public void setMobileurl(String mobileurl) { + this.mobileurl = mobileurl; + } + + public String getTo_do_login_account() { + return To_do_login_account; + } + + public void setTo_do_login_account(String to_do_login_account) { + To_do_login_account = to_do_login_account; + } + + public String getTo_do_creation_time() { + return To_do_creation_time; + } + + public void setTo_do_creation_time(String to_do_creation_time) { + To_do_creation_time = to_do_creation_time; + } + + public String getTo_do_completion_time() { + return To_do_completion_time; + } + + public void setTo_do_completion_time(String to_do_completion_time) { + To_do_completion_time = to_do_completion_time; + } + + public String getTo_do_status() { + return To_do_status; + } + + public void setTo_do_status(String to_do_status) { + To_do_status = to_do_status; + } + + public String getTo_do_official_type() { + return To_do_official_type; + } + + public void setTo_do_official_type(String to_do_official_type) { + To_do_official_type = to_do_official_type; + } + + public String getViewtype() { + return viewtype; + } + + public void setViewtype(String viewtype) { + this.viewtype = viewtype; + } + + public String getCreatedate() { + return createdate; + } + + public void setCreatedate(String createdate) { + this.createdate = createdate; + } + + public String getDonedate() { + return donedate; + } + + public void setDonedate(String donedate) { + this.donedate = donedate; + } + + public String getReceivedate() { + return receivedate; + } + + public void setReceivedate(String receivedate) { + this.receivedate = receivedate; + } + + public String getReceivetime() { + return receivetime; + } + + public void setReceivetime(String receivetime) { + this.receivetime = receivetime; + } + + public String getCurrentnodetype() { + return currentnodetype; + } + + public void setCurrentnodetype(String currentnodetype) { + this.currentnodetype = currentnodetype; + } + + public String getRequestcode() { + return requestcode; + } + + public void setRequestcode(String requestcode) { + this.requestcode = requestcode; + } + + public String getCurrentnodename() { + return currentnodename; + } + + public void setCurrentnodename(String currentnodename) { + this.currentnodename = currentnodename; + } + + public String getNooperator() { + return nooperator; + } + + public void setNooperator(String nooperator) { + this.nooperator = nooperator; + } + + public String getWorkcode() { + return workcode; + } + + public void setWorkcode(String workcode) { + this.workcode = workcode; + } + + public String getWorkflowname() { + return workflowname; + } + + public void setWorkflowname(String workflowname) { + this.workflowname = workflowname; + } + + public String getCreaterhrcode() { + return createrhrcode; + } + + public void setCreaterhrcode(String createrhrcode) { + this.createrhrcode = createrhrcode; + } + + public String getCreaterworkcode() { + return createrworkcode; + } + + public void setCreaterworkcode(String createrworkcode) { + this.createrworkcode = createrworkcode; + } +} diff --git a/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-发布成功回执单.htm b/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-发布成功回执单.htm new file mode 100644 index 00000000..335159be --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-发布成功回执单.htm @@ -0,0 +1,106 @@ + + + + + + 发布成功回执单 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+
+ + + + + + + + + + + + +
发布成功回执单
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[#TITLE]
[#USREID][#BUNAME]
       注:发送全集团时,由于人数比较多,发送时间长,过程中系统人员可能有变动,最终接收人数以实发人数为准。
[#SENDNUM][#SENDNUMSJ]
[#STARTTIMES][#ENDTIMES]
[#TIMECOUNT]  
[#SEND_SCOP][#SEND_SCOPE_ORGNUM]
[#SEND_SCOPE_POST_NUM][#SEND_SCOPE_LEVEL_NUM]
+
DW视图窗口
+
+
[#Actionsoft]
+
+
+ + + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-发布成功回执单_m.htm b/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-发布成功回执单_m.htm new file mode 100644 index 00000000..5ba8df75 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-发布成功回执单_m.htm @@ -0,0 +1,101 @@ + + + + + + 发布成功回执单 + + + + + [#AWSImport] + [#AWSUIImport] + + + + + + +
+
+ + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[#TITLE]
[#USREID]
[#BUNAME]
注:
1.发送全集团时,由于人数比较多,发送时间长,过程中系统人员可能有变动,最终接收人数以实发人数为准。
2.接收人员列表和阅读状态支持查看和导出,请登录电脑端回执单页面操作。
[#SENDNUM]
[#SENDNUMSJ]
[#STARTTIMES]
[#ENDTIMES]
[#TIMECOUNT]
[#SEND_SCOP]
[#SEND_SCOPE_ORGNUM]
[#SEND_SCOPE_POST_NUM]
[#SEND_SCOPE_LEVEL_NUM]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-测试表单.htm b/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-测试表单.htm new file mode 100644 index 00000000..c7663bd0 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-测试表单.htm @@ -0,0 +1,66 @@ + + + + + + 测试表单 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+
+ + + + + + + + + + + + +
测试表单
+ + + + + + + + + + + + + + + + + + + +
[#TEST1]
[#TEST2]
[#TEST3]
[#TEST4]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-测试表单_m.htm b/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-测试表单_m.htm new file mode 100644 index 00000000..c39fd142 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-测试表单_m.htm @@ -0,0 +1,55 @@ + + + + + + + 测试表单 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + + + +
[#TEST1]
[#TEST2]
[#TEST3]
[#TEST4]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-补充发送OA待阅.htm b/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-补充发送OA待阅.htm new file mode 100644 index 00000000..d64f8c63 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-补充发送OA待阅.htm @@ -0,0 +1,68 @@ + + + + + + 补充发送OA待阅 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+
+ + + + + + + + + + + + +
补充发送OA待阅
+ + + + + + + + + + + + + + + + + + + + + +
[#PUBLISHUSERNAME][#PUBLISHUSERTIME]
需要补发的流程[#PUBLISHUSPROSSINSID]
[#PUBLISHTOUSER]
[#REASON]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-补充发送OA待阅_m.htm b/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-补充发送OA待阅_m.htm new file mode 100644 index 00000000..169d5f52 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/待办待阅-补充发送OA待阅_m.htm @@ -0,0 +1,55 @@ + + + + + + + 补充发送OA待阅 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + + + +
[#PUBLISHID]
[#PUBLISHNAME]
[#PUBLISHUSERNAME]
[#PUBLISHTOUSER]
[#PUBLISHUSPROSSINSID]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL文件批量发布.htm b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL文件批量发布.htm new file mode 100644 index 00000000..c7a30290 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL文件批量发布.htm @@ -0,0 +1,66 @@ + + + + + + PAL文件批量发布 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+
+ + + + + + + + + + + + +
PAL文件批量发布
+ + + + + + + + + + + + + + + + + + + +
[#FRAMEWORKNAME]
[#PLNAME]
[#ISPUBLISH]
[#PLID]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL文件批量发布_m.htm b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL文件批量发布_m.htm new file mode 100644 index 00000000..6747455c --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL文件批量发布_m.htm @@ -0,0 +1,55 @@ + + + + + + + PAL文件批量发布 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + + + +
[#FRAMEWORKNAME]
[#PLNAME]
[#ISPUBLISH]
[#PLID]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL架构替换.htm b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL架构替换.htm new file mode 100644 index 00000000..d25b5790 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL架构替换.htm @@ -0,0 +1,70 @@ + + + + + + PAL架构替换 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+
+ + + + + + + + + + + + +
PAL架构替换
+ + + + + + + + + + + + + + + + + + + + + + + +
[#PALNAME]
[#ERRORFRAMEWORK]
[#CORRECTFRAMEWORK]
[#PAID]
[#RESULT]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL架构替换_m.htm b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL架构替换_m.htm new file mode 100644 index 00000000..52ac095d --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-PAL架构替换_m.htm @@ -0,0 +1,55 @@ + + + + + + + PAL架构替换 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + + + +
[#PALNAME]
[#ERRORFRAMEWORK]
[#CORRECTFRAMEWORK]
[#PAID]
[#RESULT]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量刷新编号.htm b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量刷新编号.htm new file mode 100644 index 00000000..8dceb730 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量刷新编号.htm @@ -0,0 +1,58 @@ + + + + + + 批量刷新编号 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+
+ + + + + + + + + + + + +
批量刷新编号
+ + + + + + + + + + + +
[#PLNAME]
[#PLID]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量刷新编号_m.htm b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量刷新编号_m.htm new file mode 100644 index 00000000..96fd1aa3 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量刷新编号_m.htm @@ -0,0 +1,55 @@ + + + + + + + 批量刷新编号 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + + + +
[#PLNAME]
[#PLID]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量发布时不发布的文件过滤.htm b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量发布时不发布的文件过滤.htm new file mode 100644 index 00000000..1a1f2f13 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量发布时不发布的文件过滤.htm @@ -0,0 +1,66 @@ + + + + + + 批量发布时不发布的文件过滤 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+
+ + + + + + + + + + + + +
批量发布时不发布的文件过滤
+ + + + + + + + + + + + + + + + + + + +
[#FRAMEWORKNAME]
[#PLNAME]
[#ISPUBLISH]
[#PLID]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量发布时不发布的文件过滤_m.htm b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量发布时不发布的文件过滤_m.htm new file mode 100644 index 00000000..370b17a6 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-批量发布时不发布的文件过滤_m.htm @@ -0,0 +1,55 @@ + + + + + + + 批量发布时不发布的文件过滤 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + + + +
[#FRAMEWORKNAME]
[#PLNAME]
[#ISPUBLISH]
[#PLID]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/文件处理-文件状态修改.htm b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-文件状态修改.htm new file mode 100644 index 00000000..42f28537 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-文件状态修改.htm @@ -0,0 +1,63 @@ + + + + + + 文件状态修改 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+
+ + + + + + + + + + + + +
文件状态修改
+ + + + + + + + + + + + + + +
[#USERNAME]
[#CREATETIME]
+
[#Grid1]
+
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/文件处理-文件状态修改_m.htm b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-文件状态修改_m.htm new file mode 100644 index 00000000..1789954c --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-文件状态修改_m.htm @@ -0,0 +1,55 @@ + + + + + + + 文件状态修改 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + + + +
[#USERNAME]
[#CREATETIME]
[#Grid1]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/文件处理-空文件.htm b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-空文件.htm new file mode 100644 index 00000000..bba7c81c --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-空文件.htm @@ -0,0 +1,51 @@ + + + + + + + 空文件 + + + + + + + [#AWSImport] + [#AWSUIImport] + + + + +
+
+ + + + + + + + + + +
空文件
+ + + + + +
[#PLNAME]
[#FRAMEWORK]
[#VERSION]
[#TYPE]
[#ISPUBLISH]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/文件处理-空文件_m.htm b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-空文件_m.htm new file mode 100644 index 00000000..91cab9a2 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/文件处理-空文件_m.htm @@ -0,0 +1,55 @@ + + + + + + + 空文件 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + + + +
[#PLNAME]
[#FRAMEWORK]
[#VERSION]
[#TYPE]
[#ISPUBLISH]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/权限处理-阅览权限导入.htm b/com.awspaas.user.apps.app20221008163300/template/form/权限处理-阅览权限导入.htm new file mode 100644 index 00000000..490bda30 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/权限处理-阅览权限导入.htm @@ -0,0 +1,86 @@ + + + + + + 阅览权限导入 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+
+ + + + + + + + + + + + +
阅览权限导入
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[#PALNAME]
[#ORGPERM]
[#POSTPERM]
[#LEVELPERM]
[#LEVELFAIL]
[#POSTFAIL]
[#ORGFAIL]
[#RESULT]
[#SEND_SCOP]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.app20221008163300/template/form/权限处理-阅览权限导入_m.htm b/com.awspaas.user.apps.app20221008163300/template/form/权限处理-阅览权限导入_m.htm new file mode 100644 index 00000000..50977c71 --- /dev/null +++ b/com.awspaas.user.apps.app20221008163300/template/form/权限处理-阅览权限导入_m.htm @@ -0,0 +1,55 @@ + + + + + + + 阅览权限导入 + + + + + + [#AWSImport] + [#AWSUIImport] + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + + + +
[#PALNAME]
[#ORGPERM]
[#POSTPERM]
[#LEVELPERM]
[#LEVELFAIL]
[#POSTFAIL]
[#ORGFAIL]
[#RESULT]
[#SEND_SCOP]
+
[#Actionsoft]
+
+
+ + \ No newline at end of file diff --git a/com.awspaas.user.apps.coe.pal.output.bd/.classpath b/com.awspaas.user.apps.coe.pal.output.bd/.classpath new file mode 100644 index 00000000..fd84b1dd --- /dev/null +++ b/com.awspaas.user.apps.coe.pal.output.bd/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/com.awspaas.user.apps.coe.pal.output.bd/.project b/com.awspaas.user.apps.coe.pal.output.bd/.project new file mode 100644 index 00000000..af6bbf8b --- /dev/null +++ b/com.awspaas.user.apps.coe.pal.output.bd/.project @@ -0,0 +1,17 @@ + + + com.awspaas.user.apps.coe.pal.output.bd + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/com.awspaas.user.apps.coe.pal.output.zd/.classpath b/com.awspaas.user.apps.coe.pal.output.zd/.classpath new file mode 100644 index 00000000..9b29cba1 --- /dev/null +++ b/com.awspaas.user.apps.coe.pal.output.zd/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/com.awspaas.user.apps.coe.pal.output.zd/.project b/com.awspaas.user.apps.coe.pal.output.zd/.project new file mode 100644 index 00000000..8c91bd12 --- /dev/null +++ b/com.awspaas.user.apps.coe.pal.output.zd/.project @@ -0,0 +1,17 @@ + + + com.awspaas.user.apps.coe.pal.output.zd + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/com.awspaas.user.apps.docview/src/com/awspaas/user/apps/docview/DocumentsToReadController.java b/com.awspaas.user.apps.docview/src/com/awspaas/user/apps/docview/DocumentsToReadController.java index b39a1c3b..ea9f7b1a 100644 --- a/com.awspaas.user.apps.docview/src/com/awspaas/user/apps/docview/DocumentsToReadController.java +++ b/com.awspaas.user.apps.docview/src/com/awspaas/user/apps/docview/DocumentsToReadController.java @@ -394,6 +394,7 @@ public class DocumentsToReadController { String id = split[0]; String fileName = split[1]; String uid = UserContext.fromSessionId(sid).getUID(); + System.err.println("阅读文件===========》"+uid); String sql = "SELECT * FROM BO_EU_PAL_RECORD WHERE FILEID = ? AND READFILENAME = ?"; RowMap map = DBSql.getMap(sql, new Object[] { id, uid }); int num = 0; diff --git a/com.awspaas.user.apps.yili.integration/src/com/awspaas/user/apps/integration/oa/OaPendComponent.java b/com.awspaas.user.apps.yili.integration/src/com/awspaas/user/apps/integration/oa/OaPendComponent.java index 69f42fb6..a0d72522 100644 --- a/com.awspaas.user.apps.yili.integration/src/com/awspaas/user/apps/integration/oa/OaPendComponent.java +++ b/com.awspaas.user.apps.yili.integration/src/com/awspaas/user/apps/integration/oa/OaPendComponent.java @@ -1,50 +1,46 @@ package com.awspaas.user.apps.integration.oa; -import java.io.ByteArrayInputStream; import java.io.IOException; import java.sql.Timestamp; import java.text.SimpleDateFormat; -import java.util.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; + +import javax.xml.soap.SOAPException; -import com.actionsoft.bpms.bo.engine.BO; -import com.actionsoft.bpms.bpmn.engine.ProcessAPIManager; -import com.actionsoft.bpms.bpmn.engine.core.context.TaskBehaviorContextImpl; -import com.actionsoft.bpms.bpmn.engine.model.run.TaskCommentModel; -import com.actionsoft.bpms.bpmn.engine.model.run.delegate.HistoryTaskInstance; -import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; -import com.actionsoft.bpms.commons.login.constant.LoginConst; -import com.actionsoft.bpms.commons.mvc.view.ResponseObject; -import com.actionsoft.bpms.server.SSOUtil; -import com.actionsoft.bpms.server.UserContext; -import com.actionsoft.sdk.local.api.AppAPI; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; -import com.awspaas.user.apps.integration.XmlDatasUtil; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.lang3.StringUtils; import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.DocumentHelper; import org.dom4j.Element; -import org.dom4j.xpath.DefaultXPath; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.bpmn.engine.ProcessAPIManager; import com.actionsoft.bpms.bpmn.engine.core.delegate.ProcessExecutionContext; +import com.actionsoft.bpms.bpmn.engine.model.run.TaskCommentModel; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.HistoryTaskInstance; +import com.actionsoft.bpms.bpmn.engine.model.run.delegate.ProcessInstance; import com.actionsoft.bpms.bpmn.engine.model.run.delegate.TaskInstance; -import com.actionsoft.bpms.org.cache.UserCache; -import com.actionsoft.bpms.org.model.UserModel; +import com.actionsoft.bpms.commons.login.constant.LoginConst; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.server.SSOUtil; +import com.actionsoft.bpms.server.UserContext; import com.actionsoft.exception.BPMNError; import com.actionsoft.sdk.local.SDK; +import com.actionsoft.sdk.local.api.AppAPI; import com.actionsoft.sdk.local.api.NotificationAPI; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; +import com.awspaas.user.apps.integration.XmlDatasUtil; import com.awspaas.user.apps.integration.util.HttpClientUtils; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; - -import javax.xml.soap.*; /** * @author lihyyu @@ -151,7 +147,7 @@ public class OaPendComponent { XmlDatasUtil xmlDatasUtil = new XmlDatasUtil(); xmlDatasUtil.setExternal_system_ID("LCZD"); xmlDatasUtil.setOther_system_to_do_ID(taskInstance.getId()); - BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", pec.getProcessInstance().getId()).detail(); + BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", pec.getProcessInstance().getId()).addQuery("PROCESS_TITLE is not null",null).detail(); if (!pec.getProcessInstance().getParentTaskInstId().equals("00000000-0000-0000-0000-000000000000")){ if (bo_act_coe_publish!=null){ String title = bo_act_coe_publish.getString("PROCESS_TITLE"); @@ -182,6 +178,8 @@ public class OaPendComponent { //System.out.println("bo>>>>>>>>>>"+bo_eu_oa_reson); if (bo_eu_oa_reson!=null){ xmlDatasUtil.setTo_do_login_account(bo_eu_oa_reson.getString("LOGINID")); + }else { + xmlDatasUtil.setTo_do_login_account(target); } SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//定义格式,不显示毫秒 String str = df.format(taskInstance.getBeginTime()); @@ -261,11 +259,10 @@ public class OaPendComponent { if (bo_eu_oa_reson!=null){ xmlDatasUtil.setCreaterhrcode(bo_eu_oa_reson.getString("LOGINID")); + }else { + xmlDatasUtil.setCreaterhrcode(target); } xmlDatasUtil.setCreaterworkcode(""); - - - HttpClientUtils httpClientUtil = new HttpClientUtils(); String taskurl= SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "taskurl"); @@ -385,7 +382,7 @@ public class OaPendComponent { if(pec.getProcessInstance()!=null){ String actionName = getActionName(taskInstance); if (actionName.equals("传阅")){ - BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", pec.getProcessInstance().getId()).detail(); + BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", pec.getProcessInstance().getId()).addQuery("PROCESS_TITLE is not null",null).detail(); if (bo_act_coe_publish!=null){ String title = bo_act_coe_publish.getString("PROCESS_TITLE"); if(title.contains("&")) { @@ -399,7 +396,7 @@ public class OaPendComponent { }else { - BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", pec.getProcessInstance().getId()).detail(); + BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", pec.getProcessInstance().getId()).addQuery("PROCESS_TITLE is not null",null).detail(); if (bo_act_coe_publish!=null){ String title = bo_act_coe_publish.getString("PROCESS_TITLE"); if(title.contains("&")) { @@ -435,6 +432,8 @@ public class OaPendComponent { //System.out.println("bo>>>>>>>>>>>>>>"+bo_eu_oa_reson); if (bo_eu_oa_reson!=null){ xmlDatasUtil.setTo_do_login_account(bo_eu_oa_reson.getString("LOGINID")); + }else { + xmlDatasUtil.setTo_do_login_account(target); } SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//定义格式,不显示毫秒 if (taskInstance.getBeginTime()!=null){ @@ -479,7 +478,7 @@ public class OaPendComponent { System.err.println(pec.getProcessInstance().getTitle()+"_当前流程的历史任务========>"+list); for (HistoryTaskInstance historyTaskInstance : list) { try { - //updatePending2(historyTaskInstance, pec); + updatePending2(historyTaskInstance, pec); } catch (Exception e) { // TODO: handle exception } @@ -550,20 +549,14 @@ public class OaPendComponent { if (bo_eu_oa_reson!=null){ xmlDatasUtil.setCreaterhrcode(bo_eu_oa_reson.getString("LOGINID")); - - + }else { + xmlDatasUtil.setCreaterhrcode(target); } - xmlDatasUtil.setCreaterworkcode(""); HttpClientUtils httpClientUtil = new HttpClientUtils(); String taskurl= SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "taskurl"); - String s = httpClientUtil.SendPend(taskurl, xmlDatasUtil); - //System.out.println("已办查看是否修改"); - - - BO bo = new BO(); bo.set("OUTSYSID",xmlDatasUtil.getExternal_system_ID()); bo.set("TODOID",xmlDatasUtil.getOther_system_to_do_ID()); @@ -653,7 +646,7 @@ public class OaPendComponent { if(pec.getProcessInstance()!=null){ String actionName = getActionName(taskInstance); if (actionName.equals("传阅")){ - BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", pec.getProcessInstance().getId()).detail(); + BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", pec.getProcessInstance().getId()).addQuery("PROCESS_TITLE is not null",null).detail(); if (bo_act_coe_publish!=null){ String title = bo_act_coe_publish.getString("PROCESS_TITLE"); if(title.contains("&")) { @@ -665,7 +658,7 @@ public class OaPendComponent { xmlDatasUtil.setProcess_title(" 您有一条传阅流程【"+pec.getProcessInstance().getTitle()+"】,点击进行处理"); } }else { - BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", pec.getProcessInstance().getId()).detail(); + BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", pec.getProcessInstance().getId()).addQuery("PROCESS_TITLE is not null",null).detail(); if (bo_act_coe_publish!=null){ String title = bo_act_coe_publish.getString("PROCESS_TITLE"); if(title.contains("&")) { @@ -803,9 +796,6 @@ public class OaPendComponent { String s = httpClientUtil.SendPend(taskurl, xmlDatasUtil); //System.out.println("已办查看是否修改"); - - - BO bo = new BO(); bo.set("OUTSYSID",xmlDatasUtil.getExternal_system_ID()); bo.set("TODOID",xmlDatasUtil.getOther_system_to_do_ID()); @@ -854,7 +844,7 @@ public class OaPendComponent { String status = statusElement.getData().toString(); String message = messageElement.getData().toString(); if (status.equals("success")){ - System.out.println("更新待办成功===>"+pec.getProcessInstance().getTitle()+"===>"+taskInstance.getTarget()+"====>"+status+"===>"+message); + //System.out.println("更新待办成功===>"+pec.getProcessInstance().getTitle()+"===>"+taskInstance.getTarget()+"====>"+status+"===>"+message); }else { System.out.println("更新待办失败===>"+pec.getProcessInstance().getTitle()+"===>"+taskInstance.getTarget()+"====>"+status+"===>"+message); } diff --git a/com.awspaas.user.apps.yili.integration/src/com/awspaas/user/apps/integration/oauth/TaskController.java b/com.awspaas.user.apps.yili.integration/src/com/awspaas/user/apps/integration/oauth/TaskController.java index 0eb9d75c..13d8e293 100644 --- a/com.awspaas.user.apps.yili.integration/src/com/awspaas/user/apps/integration/oauth/TaskController.java +++ b/com.awspaas.user.apps.yili.integration/src/com/awspaas/user/apps/integration/oauth/TaskController.java @@ -11,6 +11,7 @@ import java.nio.charset.StandardCharsets; import java.sql.Connection; import java.sql.SQLException; import java.text.SimpleDateFormat; +import java.time.LocalDate; import java.util.*; import com.actionsoft.apps.coe.pal.constant.CoEConstant; @@ -45,6 +46,7 @@ import com.actionsoft.bpms.util.DBSql; import com.actionsoft.bpms.util.UUIDGener; import com.actionsoft.bpms.util.UtilString; import com.actionsoft.exception.AWSException; +import com.actionsoft.exception.AWSQuotaException; import com.actionsoft.sdk.local.SDK; import com.actionsoft.sdk.local.api.AppAPI; import com.actionsoft.sdk.local.api.ORGAPI; @@ -222,347 +224,493 @@ public class TaskController { ////System.out.println("输出表单==========="+formPage); return formPage; } + + //pc端待阅 + @Mapping("com.yili_process_page") + public String processTest(UserContext me, RequestParams params) throws IOException, SQLException { + // System.out.println("params>>>>>>>>>>>>"+params.toString()); + // System.out.println("UserContext>>>>>>>>>>>>"+me.getUID()); + String userMobile = me.getDeviceType(); + String html = "index_web.html"; + Connection conn = DBSql.open(); + ArrayList isNumberAscArray = new ArrayList(); + Map map = new LinkedHashMap(); + try { + JSONArray jsonArray = new JSONArray(); + String sid = me.getSessionId(); + String processInstId = params.get("processInstId"); + String taskInstId = params.get("taskInstId"); + ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(processInstId); + try { + // 记录门户待阅 + setRecord(me.getUID(), processInstId, instanceById.getTitle()); + // 用户打开阅览界面日志 + setUserLog(processInstId, me.getUID(), "3"); - @Mapping("com.yili_process_page") - public String processTest(UserContext me, RequestParams params) throws IOException, SQLException { - //System.out.println("params>>>>>>>>>>>>"+params.toString()); - //System.out.println("UserContext>>>>>>>>>>>>"+me.getUID()); - String userMobile = me.getDeviceType(); - String html = "index_web.html"; - Connection conn = DBSql.open(); - - Map map = new LinkedHashMap(); - try { - JSONArray jsonArray = new JSONArray(); - - //UserContext uc = UserContext.fromSessionId(sid); - String sid = me.getSessionId(); - String processInstId = params.get("processInstId"); - String taskInstId = params.get("taskInstId"); - try { - //用户打开阅览界面日志 - setUserLog(processInstId,me.getUID(),"3"); - } catch (Exception e) { - } - String usercode = "admin"; - if (UtilString.isNotEmpty(params.get("usercode"))) { - usercode = params.get("usercode"); - } - map.put("sid", sid); - - - List list = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N", true).addQuery("BINDID=", processInstId).orderByCreated().asc().list(); - List lists = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_C", true).addQuery("BINDID=", processInstId).orderByCreated().asc().list(); - List list_stop = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_S", true).addQuery("BINDID=", processInstId).orderByCreated().asc().list(); - int num = 1; - //发布 - if (list.size()>0) { - //System.out.println("这个是更新的架构数据"); - for (BO bo : list) { - //System.out.println("开始时间》》》》》》》" + System.currentTimeMillis()); - JSONObject jsonObject = new JSONObject(); - String is_not_publish_sql = "SELECT id,PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID ='" + bo.get("PUBLISHFILEID") + "'"; - RowMap Row_maps_is_not_publish = DBSql.getMap(conn, is_not_publish_sql); - String id = bo.getString("TASKID"); - jsonObject.put("title", bo.get("PUBLISHFILENAME")); - jsonObject.put("link", SDK.getPortalAPI().getPortalUrl() + "/r/w?cmd=com.actionsoft.apps.coe.pal.publisher_publish_file_open&uuid=" + Row_maps_is_not_publish.getString("id") + "&sid=" + sid); - jsonObject.put("size", ""); - // jsonObject.put("id", num); - jsonObject.put("taskId", id); - jsonObject.put("id", bo.getString("PUBLISHFILEID")); - jsonArray.add(jsonObject); - - - String sql_upfile ="select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '"+bo.getString("PUBLISHFILEID")+"'" + ") ORDER BY FILENAME ASC"; - String methodId = DBSql.getString("select PLMETHODID from APP_ACT_COE_PAL_REPOSITORY where ID= '"+bo.getString("PUBLISHFILEID")+"'"); - if(UtilString.isNotEmpty(methodId)) { - if(methodId.equals("control.policy")) { - sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '"+bo.getString("PUBLISHFILEID")+"') AND FILETYPE = 'f' ORDER BY FILENAME ASC"; - } - } - //String sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '"+bo.getString("PUBLISHFILEID")+"') AND FILETYPE = 'f'"; - List maps = DBSql.getMaps(conn,sql_upfile); - UserContext userContext = UserContext.fromSessionId(sid); - UpfileWeb upfileWeb = new UpfileWeb(userContext); - - for (RowMap row : maps) { - UpfileModel upfileModel = new UpfileModel(); - upfileModel.setType(row.getString("FILETYPE")); - upfileModel.setFileName(row.getString("FILENAME")); - upfileModel.setPl_uuid(row.getString("PALREPOSITORYID")); - upfileModel.setShape_uuid(row.getString("SHAPEID")); - DCContext dcContexts = upfileWeb.getDCContext(upfileModel); - Map params_previews = new HashMap(); - //文档是否允许下载,必填 - params_previews.put("isDownload", true); - //显示文件名,必填 - params_previews.put("fileNameOriginal", row.getString("FILENAME")); - //PDF转图片处理选项。- 0代表只在需要时做转换;- 1代表打开即检查是否已转换成图片,如未处理,强制转换。默认0,非必填 - params_previews.put("isPDFCovertPNG", 0); - //groupJson参数,用于表单附件OfficeOnline服务预览回传文件流,非必填 - params_previews.put("extParams", ""); - //文档是否允许打印,必填 - params_previews.put("isPrint", true); - //是否显示顶部工具栏的返回按钮,默认显示,非必填 - params_previews.put("isShowBackbtn", ""); - //原文件DC,必填 - params_previews.put("sourceDc", dcContexts); - //是否显示默认预览工具栏,必填 - params_previews.put("isShowDefaultToolbar", true); - //文档是否允许复制。true为允许复制,转换结果为PDF格式文件;false为不可复制,转换结果为PNG格式文件(注意参数值为false时转换时间稍长),必填 - params_previews.put("isCopy", true); - //sessionid,必填 - params_previews.put("sid", sid); - //文档是否加密,必填 - params_previews.put("isEncrypt", false); - AppAPI appAPIs = SDK.getAppAPI(); - //文档预览 - ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(processInstId); - String sourceAppId = instanceById.getAppId(); - String aslp = "aslp://com.actionsoft.apps.addons.onlinedoc/filePreview"; - ResponseObject ros = appAPIs.callASLP(appAPIs.getAppContext(sourceAppId), aslp, params_previews); - JSONObject jsonObject1 = new JSONObject(); - jsonObject1.put("title",row.getString("FILENAME")); - String base_url = "https://bpm.yili.com:8088/portal/r"; - if (row.getString("FILENAME").toString().contains(".xls")||row.getString("FILENAME").toString().contains(".xlsx")){ - jsonObject1.put("link",ros.get("url").toString().substring(0)); - }else { - jsonObject1.put("link",base_url+ros.get("url").toString().substring(1)); - } - // jsonObject1.put("size","12k"); - jsonArray.add(jsonObject1); - } - num++; - - } - } - - /** - * 当发布和变更为空时,显示作废的文件 - */ - if(list.size()==0&&lists.size()==0) { - if (list_stop.size()>0) { - //System.out.println("这个是作废的架构数据"); - for (BO bo : list_stop) { - //System.out.println("开始时间》》》》》》》" + System.currentTimeMillis()); - JSONObject jsonObject = new JSONObject(); - String is_not_publish_sql = "SELECT id,PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID ='" + bo.get("STOPFILEID") + "'"; - RowMap Row_maps_is_not_publish = DBSql.getMap(conn, is_not_publish_sql); - String id = bo.getString("TASKID"); - jsonObject.put("title", bo.get("STOPFILENAME")); - jsonObject.put("link", SDK.getPortalAPI().getPortalUrl() + "/r/w?cmd=com.actionsoft.apps.coe.pal.publisher_publish_file_open&uuid=" + Row_maps_is_not_publish.getString("id") + "&sid=" + sid); - jsonObject.put("size", ""); - jsonObject.put("id", bo.getString("STOPFILEID")); - jsonObject.put("taskId", id); - jsonArray.add(jsonObject); - - String sql_upfile ="select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '"+bo.getString("STOPFILEID")+"'" + ") ORDER BY FILENAME ASC"; - String methodId = DBSql.getString("select PLMETHODID from APP_ACT_COE_PAL_REPOSITORY where ID= '"+bo.getString("STOPFILEID")+"'"); - if(UtilString.isNotEmpty(methodId)) { - if(methodId.equals("control.policy")) { - sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '"+bo.getString("STOPFILEID")+"') AND FILETYPE = 'f' ORDER BY FILENAME ASC"; - } - } - //String sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '"+bo.getString("PUBLISHFILEID")+"') AND FILETYPE = 'f'"; - List maps = DBSql.getMaps(conn,sql_upfile); - UserContext userContext = UserContext.fromSessionId(sid); - UpfileWeb upfileWeb = new UpfileWeb(userContext); - - for (RowMap row : maps) { - UpfileModel upfileModel = new UpfileModel(); - upfileModel.setType(row.getString("FILETYPE")); - upfileModel.setFileName(row.getString("FILENAME")); - upfileModel.setPl_uuid(row.getString("PALREPOSITORYID")); - upfileModel.setShape_uuid(row.getString("SHAPEID")); - DCContext dcContexts = upfileWeb.getDCContext(upfileModel); - Map params_previews = new HashMap(); - //文档是否允许下载,必填 - params_previews.put("isDownload", true); - //显示文件名,必填 - params_previews.put("fileNameOriginal", row.getString("FILENAME")); - //PDF转图片处理选项。- 0代表只在需要时做转换;- 1代表打开即检查是否已转换成图片,如未处理,强制转换。默认0,非必填 - params_previews.put("isPDFCovertPNG", 0); - //groupJson参数,用于表单附件OfficeOnline服务预览回传文件流,非必填 - params_previews.put("extParams", ""); - //文档是否允许打印,必填 - params_previews.put("isPrint", true); - //是否显示顶部工具栏的返回按钮,默认显示,非必填 - params_previews.put("isShowBackbtn", ""); - //原文件DC,必填 - params_previews.put("sourceDc", dcContexts); - //是否显示默认预览工具栏,必填 - params_previews.put("isShowDefaultToolbar", true); - //文档是否允许复制。true为允许复制,转换结果为PDF格式文件;false为不可复制,转换结果为PNG格式文件(注意参数值为false时转换时间稍长),必填 - params_previews.put("isCopy", true); - //sessionid,必填 - params_previews.put("sid", sid); - //文档是否加密,必填 - params_previews.put("isEncrypt", false); - AppAPI appAPIs = SDK.getAppAPI(); - //文档预览 - ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(processInstId); - String sourceAppId = instanceById.getAppId(); - String aslp = "aslp://com.actionsoft.apps.addons.onlinedoc/filePreview"; - ResponseObject ros = appAPIs.callASLP(appAPIs.getAppContext(sourceAppId), aslp, params_previews); - JSONObject jsonObject1 = new JSONObject(); - jsonObject1.put("title",row.getString("FILENAME")); - String base_url = "https://bpm.yili.com:8088/portal/r"; - if (row.getString("FILENAME").toString().contains(".xls")||row.getString("FILENAME").toString().contains(".xlsx")){ - jsonObject1.put("link",ros.get("url").toString().substring(0)); - }else { - jsonObject1.put("link",base_url+ros.get("url").toString().substring(1)); - } - // jsonObject1.put("size","12k"); - jsonArray.add(jsonObject1); - } - num++; - - } - } - - } - //变更 - if(lists.size()>0) { - for (BO bo : lists) { - //System.out.println("这个是更新文件的架构"); - //System.out.println("开始时间》》》》》》》" + System.currentTimeMillis()); - JSONObject jsonObject = new JSONObject(); - String is_not_publish_sql = "SELECT id,PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID ='" + bo.get("CHANGEDFILEIDNEW") + "'"; - RowMap Row_maps_is_not_publish = DBSql.getMap(conn, is_not_publish_sql); - String id = bo.getString("TASKID"); - jsonObject.put("title", bo.get("CHANGEDFILENAMENEW")); - jsonObject.put("link", SDK.getPortalAPI().getPortalUrl() + "/r/w?cmd=com.actionsoft.apps.coe.pal.publisher_publish_file_open&uuid=" + Row_maps_is_not_publish.getString("id") + "&sid=" + sid); - jsonObject.put("size", ""); - jsonObject.put("id", bo.get("CHANGEDFILEIDNEW")); - jsonObject.put("taskId", id); - jsonArray.add(jsonObject); - - String sql_upfile ="select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '"+bo.get("CHANGEDFILEIDNEW")+"'" + ") ORDER BY FILENAME ASC"; - String methodId = DBSql.getString("select PLMETHODID from APP_ACT_COE_PAL_REPOSITORY where ID= '"+bo.getString("CHANGEDFILEIDNEW")+"'"); - if(UtilString.isNotEmpty(methodId)) { - if(methodId.equals("control.policy")) { - sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '"+bo.get("CHANGEDFILEIDNEW")+"') AND FILETYPE = 'f' ORDER BY FILENAME ASC"; - } - } - //String sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '"+bo.getString("PUBLISHFILEID")+"') AND FILETYPE = 'f'"; - List maps = DBSql.getMaps(conn,sql_upfile); - UserContext userContext = UserContext.fromSessionId(sid); - UpfileWeb upfileWeb = new UpfileWeb(userContext); - - for (RowMap row : maps) { - UpfileModel upfileModel = new UpfileModel(); - upfileModel.setType(row.getString("FILETYPE")); - upfileModel.setFileName(row.getString("FILENAME")); - upfileModel.setPl_uuid(row.getString("PALREPOSITORYID")); - upfileModel.setShape_uuid(row.getString("SHAPEID")); - DCContext dcContexts = upfileWeb.getDCContext(upfileModel); - Map params_previews = new HashMap(); - //文档是否允许下载,必填 - params_previews.put("isDownload", true); - //显示文件名,必填 - params_previews.put("fileNameOriginal", row.getString("FILENAME")); - //PDF转图片处理选项。- 0代表只在需要时做转换;- 1代表打开即检查是否已转换成图片,如未处理,强制转换。默认0,非必填 - params_previews.put("isPDFCovertPNG", 0); - //groupJson参数,用于表单附件OfficeOnline服务预览回传文件流,非必填 - params_previews.put("extParams", ""); - //文档是否允许打印,必填 - params_previews.put("isPrint", true); - //是否显示顶部工具栏的返回按钮,默认显示,非必填 - params_previews.put("isShowBackbtn", ""); - //原文件DC,必填 - params_previews.put("sourceDc", dcContexts); - //是否显示默认预览工具栏,必填 - params_previews.put("isShowDefaultToolbar", true); - //文档是否允许复制。true为允许复制,转换结果为PDF格式文件;false为不可复制,转换结果为PNG格式文件(注意参数值为false时转换时间稍长),必填 - params_previews.put("isCopy", true); - //sessionid,必填 - params_previews.put("sid", sid); - //文档是否加密,必填 - params_previews.put("isEncrypt", false); - AppAPI appAPIs = SDK.getAppAPI(); - //文档预览 - ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(processInstId); - String sourceAppId = instanceById.getAppId(); - String aslp = "aslp://com.actionsoft.apps.addons.onlinedoc/filePreview"; - ResponseObject ros = appAPIs.callASLP(appAPIs.getAppContext(sourceAppId), aslp, params_previews); - JSONObject jsonObject1 = new JSONObject(); - jsonObject1.put("title",row.getString("FILENAME")); - String base_url = "https://bpm.yili.com:8088/portal/r"; - if (row.getString("FILENAME").toString().contains(".xls")||row.getString("FILENAME").toString().contains(".xlsx")){ - jsonObject1.put("link",ros.get("url").toString().substring(0)); - }else { - jsonObject1.put("link",base_url+ros.get("url").toString().substring(1)); - } - // jsonObject1.put("size","12k"); - jsonArray.add(jsonObject1); - } - - - num++; - - } - } - - String substring = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", processInstId).addQuery("OPTIONTYPE IS NOT NULL",null).detail().getString("RELEASE_INSTRUCTIONS"); - BO bo_act_coe_publishs = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", processInstId).addQuery("OPTIONTYPE IS NOT NULL",null).detail(); - - //} - map.put("subString",substring); - map.put("ProcessTile",bo_act_coe_publishs.getString("PROCESS_TITLE")); - map.put("processInstId",processInstId); - map.put("sid",sid); - //System.out.println("jsonArray=====>>>>>>>>>"+jsonArray); - map.put("jsonlist",jsonArray); - - String portalUrl = SDK.getPortalAPI().getPortalUrl(); - String url = portalUrl + "/r/or?cmd=com.yili_process_page&processInstId=" + processInstId + "&taskInstId=" + taskInstId; - HttpClientUtils httpClientUtil = new HttpClientUtils(); - // String s = httpClientUtil.SendPreview("http://10.119.22.207:80/services/service_lcglpt?wsdl", jsonObject); - ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(processInstId); - BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", processInstId).addQuery("OPTIONTYPE IS NOT NULL",null).detail(); - List bo_act_dataid = SDK.getBOAPI().query("BO_ACT_DATAID", true).addQuery("PROCESSID=", processInstId).addQuery("USER_ID=", usercode).list(); - if (bo_act_dataid.size()>0) { - for (BO bo : bo_act_dataid) { - JSONObject jsonObject = new JSONObject(); - jsonObject.put("action", "read"); - jsonObject.put("status","1"); - jsonObject.put("dataid", bo.getString("DATAID")); - String xmlStr = "\n" + - " " + - " " + - " " + - " " + - "" + - " " + - " " + - " " + - ""; - HttpClient client = new HttpClient(); - int timeout = 10000; - String readurl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "readurl"); - String s = UtilUrl.doPostSoap(readurl, xmlStr, ""); - //System.err.println(instanceById.getTitle()+"OA待阅PC端阅读返回=======>"+s); - String nums = DBSql.getString("select READNUM from BO_EU_PAL_READ_LOG where PROCESSID = '" + processInstId + "'"); - if (UtilString.isNotEmpty(nums)){ - Integer read_num = Integer.valueOf(nums); - read_num+=1; - DBSql.update("update BO_EU_PAL_READ_LOG set READNUM = '"+read_num+"' where PROCESSID = '"+processInstId+"'"); - } + } catch (Exception e) { } - - } - //} - }catch (Exception e){ - e.printStackTrace(); - }finally { - conn.close(); - } - return HtmlPageTemplate.merge("com.awspaas.user.apps.yili.integration",html, map); - } + String usercode = "admin"; + if (UtilString.isNotEmpty(params.get("usercode"))) { + usercode = params.get("usercode"); + } + map.put("sid", sid); + List list = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N", true).addQuery("BINDID=", processInstId) + .orderByCreated().asc().list(); + List lists = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_C", true).addQuery("BINDID=", processInstId) + .orderByCreated().asc().list(); + List list_stop = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_S", true).addQuery("BINDID=", processInstId) + .orderByCreated().asc().list(); + int num = 1; + // 发布 + if (list.size() > 0) { + // System.out.println("这个是更新的架构数据"); + for (BO bo : list) { + // System.out.println("开始时间》》》》》》》" + System.currentTimeMillis()); + JSONObject jsonObject = new JSONObject(); + String is_not_publish_sql = "SELECT id,PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID ='" + + bo.get("PUBLISHFILEID") + "'"; + RowMap Row_maps_is_not_publish = DBSql.getMap(conn, is_not_publish_sql); + String id = bo.getString("TASKID"); + jsonObject.put("title", bo.get("PUBLISHFILENAME")); + jsonObject.put("file_number",0); + jsonObject.put("link", + SDK.getPortalAPI().getPortalUrl() + + "/r/w?cmd=com.actionsoft.apps.coe.pal.publisher_publish_file_open&uuid=" + + Row_maps_is_not_publish.getString("id") + "&sid=" + sid); + jsonObject.put("size", ""); + // jsonObject.put("id", num); + jsonObject.put("taskId", id); + jsonObject.put("id", bo.getString("PUBLISHFILEID")); + jsonArray.add(jsonObject); + String sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '" + + bo.getString("PUBLISHFILEID") + "'" + ") ORDER BY FILENAME ASC"; + String methodId = DBSql.getString("select PLMETHODID from APP_ACT_COE_PAL_REPOSITORY where ID= '" + + bo.getString("PUBLISHFILEID") + "'"); + if (UtilString.isNotEmpty(methodId)) { + if (methodId.equals("control.policy")) { + sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '" + + bo.getString("PUBLISHFILEID") + "') AND FILETYPE = 'f' ORDER BY FILENAME ASC"; + } + } + // String sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where + // palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= + // '"+bo.getString("PUBLISHFILEID")+"') AND FILETYPE = 'f'"; + List maps = DBSql.getMaps(conn, sql_upfile); + UserContext userContext = UserContext.fromSessionId(sid); + UpfileWeb upfileWeb = new UpfileWeb(userContext); + + for (RowMap row : maps) { + UpfileModel upfileModel = new UpfileModel(); + upfileModel.setType(row.getString("FILETYPE")); + upfileModel.setFileName(row.getString("FILENAME")); + upfileModel.setPl_uuid(row.getString("PALREPOSITORYID")); + upfileModel.setShape_uuid(row.getString("SHAPEID")); + DCContext dcContexts = upfileWeb.getDCContext(upfileModel); + Map params_previews = new HashMap(); + // 文档是否允许下载,必填 + params_previews.put("isDownload", true); + // 显示文件名,必填 + params_previews.put("fileNameOriginal", row.getString("FILENAME")); + // PDF转图片处理选项。- 0代表只在需要时做转换;- 1代表打开即检查是否已转换成图片,如未处理,强制转换。默认0,非必填 + params_previews.put("isPDFCovertPNG", 0); + // groupJson参数,用于表单附件OfficeOnline服务预览回传文件流,非必填 + params_previews.put("extParams", ""); + // 文档是否允许打印,必填 + params_previews.put("isPrint", true); + // 是否显示顶部工具栏的返回按钮,默认显示,非必填 + params_previews.put("isShowBackbtn", ""); + // 原文件DC,必填 + params_previews.put("sourceDc", dcContexts); + // 是否显示默认预览工具栏,必填 + params_previews.put("isShowDefaultToolbar", true); + // 文档是否允许复制。true为允许复制,转换结果为PDF格式文件;false为不可复制,转换结果为PNG格式文件(注意参数值为false时转换时间稍长),必填 + params_previews.put("isCopy", true); + // sessionid,必填 + params_previews.put("sid", sid); + // 文档是否加密,必填 + params_previews.put("isEncrypt", false); + AppAPI appAPIs = SDK.getAppAPI(); + // 文档预览 + String sourceAppId = instanceById.getAppId(); + String aslp = "aslp://com.actionsoft.apps.addons.onlinedoc/filePreview"; + ResponseObject ros = appAPIs.callASLP(appAPIs.getAppContext(sourceAppId), aslp, + params_previews); + JSONObject jsonObject1 = new JSONObject(); + //按照附件编号排序 + String fileNamel= row.getString("FILENAME"); + if(UtilString.isNotEmpty(fileNamel)&&fileNamel.contains("附件")&&fileNamel.length()>2&&(fileNamel.contains(":")||fileNamel.contains(":"))) { + if(fileNamel.indexOf("附件")==0) { + int indexOf2 = 3; + if(fileNamel.contains(":")) { + indexOf2 = fileNamel.indexOf(":"); + }else if(fileNamel.contains(":")) { + indexOf2 = fileNamel.indexOf(":"); + } + String numberStr = fileNamel.substring(2,indexOf2); + if(isNumeric(numberStr)&&!"".equals(numberStr)) { + isNumberAscArray.add("true"); + int fileNumber = Integer.parseInt(numberStr); + jsonObject1.put("file_number", fileNumber); + }else { + isNumberAscArray.add("false"); + } + }else { + isNumberAscArray.add("false"); + } + + }else { + isNumberAscArray.add("false"); + } + jsonObject1.put("title", row.getString("FILENAME")); + String base_url = "https://bpm.yili.com:8088/portal/r"; + if (row.getString("FILENAME").toString().contains(".xls") + || row.getString("FILENAME").toString().contains(".xlsx")) { + jsonObject1.put("link", ros.get("url").toString().substring(0)); + } else { + jsonObject1.put("link", base_url + ros.get("url").toString().substring(1)); + } + // jsonObject1.put("size","12k"); + jsonArray.add(jsonObject1); + } + num++; + + } + } + + /** + * 当发布和变更为空时,显示作废的文件 + */ + if (list.size() == 0 && lists.size() == 0) { + if (list_stop.size() > 0) { + // System.out.println("这个是作废的架构数据"); + for (BO bo : list_stop) { + // System.out.println("开始时间》》》》》》》" + System.currentTimeMillis()); + JSONObject jsonObject = new JSONObject(); + String is_not_publish_sql = "SELECT id,PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID ='" + + bo.get("STOPFILEID") + "'"; + RowMap Row_maps_is_not_publish = DBSql.getMap(conn, is_not_publish_sql); + String id = bo.getString("TASKID"); + jsonObject.put("title", bo.get("STOPFILENAME")); + jsonObject.put("file_number",0); + jsonObject.put("link", + SDK.getPortalAPI().getPortalUrl() + + "/r/w?cmd=com.actionsoft.apps.coe.pal.publisher_publish_file_open&uuid=" + + Row_maps_is_not_publish.getString("id") + "&sid=" + sid); + jsonObject.put("size", ""); + jsonObject.put("id", bo.getString("STOPFILEID")); + jsonObject.put("taskId", id); + jsonArray.add(jsonObject); + + String sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '" + + bo.getString("STOPFILEID") + "'" + ") ORDER BY FILENAME ASC"; + String methodId = DBSql + .getString("select PLMETHODID from APP_ACT_COE_PAL_REPOSITORY where ID= '" + + bo.getString("STOPFILEID") + "'"); + if (UtilString.isNotEmpty(methodId)) { + if (methodId.equals("control.policy")) { + sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '" + + bo.getString("STOPFILEID") + "') AND FILETYPE = 'f' ORDER BY FILENAME ASC"; + } + } + // String sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where + // palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= + // '"+bo.getString("PUBLISHFILEID")+"') AND FILETYPE = 'f'"; + List maps = DBSql.getMaps(conn, sql_upfile); + UserContext userContext = UserContext.fromSessionId(sid); + UpfileWeb upfileWeb = new UpfileWeb(userContext); + + for (RowMap row : maps) { + UpfileModel upfileModel = new UpfileModel(); + upfileModel.setType(row.getString("FILETYPE")); + upfileModel.setFileName(row.getString("FILENAME")); + upfileModel.setPl_uuid(row.getString("PALREPOSITORYID")); + upfileModel.setShape_uuid(row.getString("SHAPEID")); + DCContext dcContexts = upfileWeb.getDCContext(upfileModel); + Map params_previews = new HashMap(); + // 文档是否允许下载,必填 + params_previews.put("isDownload", true); + // 显示文件名,必填 + params_previews.put("fileNameOriginal", row.getString("FILENAME")); + // PDF转图片处理选项。- 0代表只在需要时做转换;- 1代表打开即检查是否已转换成图片,如未处理,强制转换。默认0,非必填 + params_previews.put("isPDFCovertPNG", 0); + // groupJson参数,用于表单附件OfficeOnline服务预览回传文件流,非必填 + params_previews.put("extParams", ""); + // 文档是否允许打印,必填 + params_previews.put("isPrint", true); + // 是否显示顶部工具栏的返回按钮,默认显示,非必填 + params_previews.put("isShowBackbtn", ""); + // 原文件DC,必填 + params_previews.put("sourceDc", dcContexts); + // 是否显示默认预览工具栏,必填 + params_previews.put("isShowDefaultToolbar", true); + // 文档是否允许复制。true为允许复制,转换结果为PDF格式文件;false为不可复制,转换结果为PNG格式文件(注意参数值为false时转换时间稍长),必填 + params_previews.put("isCopy", true); + // sessionid,必填 + params_previews.put("sid", sid); + // 文档是否加密,必填 + params_previews.put("isEncrypt", false); + AppAPI appAPIs = SDK.getAppAPI(); + // 文档预览 + String sourceAppId = instanceById.getAppId(); + String aslp = "aslp://com.actionsoft.apps.addons.onlinedoc/filePreview"; + ResponseObject ros = appAPIs.callASLP(appAPIs.getAppContext(sourceAppId), aslp, + params_previews); + JSONObject jsonObject1 = new JSONObject(); + //按照附件编号排序 + String fileNamel= row.getString("FILENAME"); + if(UtilString.isNotEmpty(fileNamel)&&fileNamel.contains("附件")&&fileNamel.length()>2&&(fileNamel.contains(":")||fileNamel.contains(":"))) { + if(fileNamel.indexOf("附件")==0) { + int indexOf2 = 3; + if(fileNamel.contains(":")) { + indexOf2 = fileNamel.indexOf(":"); + }else if(fileNamel.contains(":")) { + indexOf2 = fileNamel.indexOf(":"); + } + String numberStr = fileNamel.substring(2,indexOf2); + if(isNumeric(numberStr)&&!"".equals(numberStr)) { + isNumberAscArray.add("true"); + int fileNumber = Integer.parseInt(numberStr); + jsonObject1.put("file_number", fileNumber); + }else { + isNumberAscArray.add("false"); + } + }else { + isNumberAscArray.add("false"); + } + + }else { + isNumberAscArray.add("false"); + } + jsonObject1.put("title", row.getString("FILENAME")); + String base_url = "https://bpm.yili.com:8088/portal/r"; + if (row.getString("FILENAME").toString().contains(".xls") + || row.getString("FILENAME").toString().contains(".xlsx")) { + jsonObject1.put("link", ros.get("url").toString().substring(0)); + } else { + jsonObject1.put("link", base_url + ros.get("url").toString().substring(1)); + } + // jsonObject1.put("size","12k"); + jsonArray.add(jsonObject1); + } + num++; + + } + } + + } + // 变更 + if (lists.size() > 0) { + for (BO bo : lists) { + // System.out.println("这个是更新文件的架构"); + // System.out.println("开始时间》》》》》》》" + System.currentTimeMillis()); + JSONObject jsonObject = new JSONObject(); + String is_not_publish_sql = "SELECT id,PLVER FROM APP_ACT_COE_PAL_REPOSITORY WHERE ID ='" + + bo.get("CHANGEDFILEIDNEW") + "'"; + RowMap Row_maps_is_not_publish = DBSql.getMap(conn, is_not_publish_sql); + String id = bo.getString("TASKID"); + jsonObject.put("title", bo.get("CHANGEDFILENAMENEW")); + jsonObject.put("file_number",0); + jsonObject.put("link", + SDK.getPortalAPI().getPortalUrl() + + "/r/w?cmd=com.actionsoft.apps.coe.pal.publisher_publish_file_open&uuid=" + + Row_maps_is_not_publish.getString("id") + "&sid=" + sid); + jsonObject.put("size", ""); + jsonObject.put("id", bo.get("CHANGEDFILEIDNEW")); + jsonObject.put("taskId", id); + jsonArray.add(jsonObject); + + String sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '" + + bo.get("CHANGEDFILEIDNEW") + "'" + ") ORDER BY FILENAME ASC"; + String methodId = DBSql.getString("select PLMETHODID from APP_ACT_COE_PAL_REPOSITORY where ID= '" + + bo.getString("CHANGEDFILEIDNEW") + "'"); + if (UtilString.isNotEmpty(methodId)) { + if (methodId.equals("control.policy")) { + sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= '" + + bo.get("CHANGEDFILEIDNEW") + "') AND FILETYPE = 'f' ORDER BY FILENAME ASC"; + } + } + // String sql_upfile = "select * from APP_ACT_COE_PAL_UPFILE where + // palrepositoryid in (select ID from APP_ACT_COE_PAL_REPOSITORY where ID= + // '"+bo.getString("PUBLISHFILEID")+"') AND FILETYPE = 'f'"; + List maps = DBSql.getMaps(conn, sql_upfile); + UserContext userContext = UserContext.fromSessionId(sid); + UpfileWeb upfileWeb = new UpfileWeb(userContext); + + for (RowMap row : maps) { + UpfileModel upfileModel = new UpfileModel(); + upfileModel.setType(row.getString("FILETYPE")); + upfileModel.setFileName(row.getString("FILENAME")); + upfileModel.setPl_uuid(row.getString("PALREPOSITORYID")); + upfileModel.setShape_uuid(row.getString("SHAPEID")); + DCContext dcContexts = upfileWeb.getDCContext(upfileModel); + Map params_previews = new HashMap(); + // 文档是否允许下载,必填 + params_previews.put("isDownload", true); + // 显示文件名,必填 + params_previews.put("fileNameOriginal", row.getString("FILENAME")); + // PDF转图片处理选项。- 0代表只在需要时做转换;- 1代表打开即检查是否已转换成图片,如未处理,强制转换。默认0,非必填 + params_previews.put("isPDFCovertPNG", 0); + // groupJson参数,用于表单附件OfficeOnline服务预览回传文件流,非必填 + params_previews.put("extParams", ""); + // 文档是否允许打印,必填 + params_previews.put("isPrint", true); + // 是否显示顶部工具栏的返回按钮,默认显示,非必填 + params_previews.put("isShowBackbtn", ""); + // 原文件DC,必填 + params_previews.put("sourceDc", dcContexts); + // 是否显示默认预览工具栏,必填 + params_previews.put("isShowDefaultToolbar", true); + // 文档是否允许复制。true为允许复制,转换结果为PDF格式文件;false为不可复制,转换结果为PNG格式文件(注意参数值为false时转换时间稍长),必填 + params_previews.put("isCopy", true); + // sessionid,必填 + params_previews.put("sid", sid); + // 文档是否加密,必填 + params_previews.put("isEncrypt", false); + AppAPI appAPIs = SDK.getAppAPI(); + // 文档预览 + String sourceAppId = instanceById.getAppId(); + String aslp = "aslp://com.actionsoft.apps.addons.onlinedoc/filePreview"; + ResponseObject ros = appAPIs.callASLP(appAPIs.getAppContext(sourceAppId), aslp, + params_previews); + JSONObject jsonObject1 = new JSONObject(); + //按照附件编号排序 + String fileNamel= row.getString("FILENAME"); + if(UtilString.isNotEmpty(fileNamel)&&fileNamel.contains("附件")&&fileNamel.length()>2&&(fileNamel.contains(":")||fileNamel.contains(":"))) { + if(fileNamel.indexOf("附件")==0) { + int indexOf2 = 3; + if(fileNamel.contains(":")) { + indexOf2 = fileNamel.indexOf(":"); + }else if(fileNamel.contains(":")) { + indexOf2 = fileNamel.indexOf(":"); + } + String numberStr = fileNamel.substring(2,indexOf2); + if(isNumeric(numberStr)&&!"".equals(numberStr)) { + isNumberAscArray.add("true"); + int fileNumber = Integer.parseInt(numberStr); + jsonObject1.put("file_number", fileNumber); + }else { + isNumberAscArray.add("false"); + } + }else { + isNumberAscArray.add("false"); + } + + }else { + isNumberAscArray.add("false"); + } + jsonObject1.put("title", row.getString("FILENAME")); + String base_url = "https://bpm.yili.com:8088/portal/r"; + if (row.getString("FILENAME").toString().contains(".xls") + || row.getString("FILENAME").toString().contains(".xlsx")) { + jsonObject1.put("link", ros.get("url").toString().substring(0)); + } else { + jsonObject1.put("link", base_url + ros.get("url").toString().substring(1)); + } + // jsonObject1.put("size","12k"); + jsonArray.add(jsonObject1); + } + + num++; + + } + } + + String substring = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", processInstId) + .addQuery("OPTIONTYPE IS NOT NULL", null).detail().getString("RELEASE_INSTRUCTIONS"); + BO bo_act_coe_publishs = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", processInstId) + .addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + + // } + map.put("subString", substring); + map.put("ProcessTile", bo_act_coe_publishs.getString("PROCESS_TITLE")); + map.put("processInstId", processInstId); + map.put("sid", sid); + // System.out.println("jsonArray=====>>>>>>>>>"+jsonArray); + boolean contains = isNumberAscArray.contains("false"); + if(!contains) { + try { + jsonArray.sort(Comparator.comparing(obj -> ((JSONObject) obj).getInteger("file_number"))); + } catch (Exception e) { + throw new AWSQuotaException("附件格式请以:《附件1:XXXXXX》格式命名"); + } + } + map.put("jsonlist", jsonArray); + + String portalUrl = SDK.getPortalAPI().getPortalUrl(); + String url = portalUrl + "/r/or?cmd=com.yili_process_page&processInstId=" + processInstId + "&taskInstId=" + + taskInstId; + HttpClientUtils httpClientUtil = new HttpClientUtils(); + // String s = + // httpClientUtil.SendPreview("http://10.119.22.207:80/services/service_lcglpt?wsdl", + // jsonObject); + BO bo_act_coe_publish = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH", true).addQuery("BINDID=", processInstId) + .addQuery("OPTIONTYPE IS NOT NULL", null).detail(); + List bo_act_dataid = SDK.getBOAPI().query("BO_ACT_DATAID", true).addQuery("PROCESSID=", processInstId) + .addQuery("USER_ID=", usercode).list(); + if (bo_act_dataid.size() > 0) { + for (BO bo : bo_act_dataid) { + JSONObject jsonObject = new JSONObject(); + jsonObject.put("action", "read"); + jsonObject.put("status", "1"); + jsonObject.put("dataid", bo.getString("DATAID")); + String xmlStr = "\n" + + " " + " " + " " + + " " + "" + " " + + " " + " " + ""; + HttpClient client = new HttpClient(); + int timeout = 10000; + String readurl = SDK.getAppAPI().getProperty("com.awspaas.user.apps.yili.integration", "readurl"); + String s = UtilUrl.doPostSoap(readurl, xmlStr, ""); + // System.err.println(instanceById.getTitle()+"OA待阅PC端阅读返回=======>"+s); + String nums = DBSql.getString( + "select READNUM from BO_EU_PAL_READ_LOG where PROCESSID = '" + processInstId + "'"); + if (UtilString.isNotEmpty(nums)) { + Integer read_num = Integer.valueOf(nums); + read_num += 1; + DBSql.update("update BO_EU_PAL_READ_LOG set READNUM = '" + read_num + "' where PROCESSID = '" + + processInstId + "'"); + } + } + + } + // } + } catch (Exception e) { + e.printStackTrace(); + } finally { + conn.close(); + } + return HtmlPageTemplate.merge("com.awspaas.user.apps.yili.integration", html, map); + } + + //门户待阅同步更新 + public String setRecord(String uid, String id,String fileName) { + String sql = "SELECT * FROM BO_EU_PAL_RECORD WHERE FILEID = ? AND READFILENAME = ?"; + RowMap map = DBSql.getMap(sql, new Object[] { id, uid }); + int num = 0; + if (null != map) { + String readCount = map.getString("READFILECOUNT"); + int count = Integer.parseInt(readCount) + 1; + String s = "UPDATE BO_EU_PAL_RECORD SET READFILECOUNT = ? WHERE FILEID = ? AND READFILENAME = ?"; + num = DBSql.update(s, new Object[] { count, id, uid }); + } else { + BO bo = new BO(); + bo.set("FILEID", id); + bo.set("FILENAME", fileName); + bo.set("READFILENAME", uid); + bo.set("READFILETIME", LocalDate.now()); + bo.set("READFILECOUNT", "1"); + num = SDK.getBOAPI().createDataBO("BO_EU_PAL_RECORD", bo, UserContext.fromUID(uid)); + } + + return num + ""; + } + + @Mapping("com.yili_process_page_phone") public String processPhone(UserContext me, RequestParams params) throws SQLException { + ArrayList isNumberAscArray = new ArrayList(); String userMobile = me.getDeviceType(); Connection conn = DBSql.open(); JSONArray jsonArray = new JSONArray(); @@ -574,8 +722,10 @@ public class TaskController { String sid = me.getSessionId(); String processInstId = params.get("processInstId"); String taskInstId = params.get("taskInstId"); - + ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(processInstId); try { + //记录门户待阅 + setRecord(me.getUID(), processInstId,instanceById.getTitle()); // 用户打开阅览界面日志 setUserLog(processInstId, me.getUID(), "3"); @@ -586,7 +736,7 @@ public class TaskController { usercode = me.getUID(); } StringBuffer sb = new StringBuffer(); - ProcessInstance instanceById = SDK.getProcessAPI().getInstanceById(processInstId); + String sourceAppId = instanceById.getAppId(); // aslp服务地址 String aslp = "aslp://com.actionsoft.apps.addons.onlinedoc/filePreview"; @@ -675,6 +825,7 @@ public class TaskController { JSONObject jsonObjects = new JSONObject(); jsonObjects.put("title", bo.get("PUBLISHFILENAME")); + jsonObjects.put("file_number",0); jsonObjects.put("link", "https://bpm.yili.com:8088/portal/r" + ro.get("url").toString().substring(1)); // jsonObjects.put("size","12k"); @@ -697,7 +848,7 @@ public class TaskController { List maps = DBSql.getMaps(conn, sql_upfile); UserContext userContext = UserContext.fromSessionId(sid); UpfileWeb upfileWeb = new UpfileWeb(userContext); - + for (RowMap row : maps) { UpfileModel upfileModel = new UpfileModel(); upfileModel.setType(row.getString("FILETYPE")); @@ -734,6 +885,32 @@ public class TaskController { params_previews); JSONObject jsonObject1 = new JSONObject(); + + //按照附件编号排序 + String fileNamel= row.getString("FILENAME"); + if(UtilString.isNotEmpty(fileNamel)&&fileNamel.contains("附件")&&fileNamel.length()>2&&(fileNamel.contains(":")||fileNamel.contains(":"))) { + if(fileNamel.indexOf("附件")==0) { + int indexOf2 = 3; + if(fileNamel.contains(":")) { + indexOf2 = fileNamel.indexOf(":"); + }else if(fileNamel.contains(":")) { + indexOf2 = fileNamel.indexOf(":"); + } + String numberStr = fileNamel.substring(2,indexOf2); + if(isNumeric(numberStr)&&!"".equals(numberStr)) { + isNumberAscArray.add("true"); + int fileNumber = Integer.parseInt(numberStr); + jsonObject1.put("file_number", fileNumber); + }else { + isNumberAscArray.add("false"); + } + }else { + isNumberAscArray.add("false"); + } + + }else { + isNumberAscArray.add("false"); + } jsonObject1.put("title", row.getString("FILENAME")); String base_url = "https://bpm.yili.com:8088/portal/r"; if (row.getString("FILENAME").toString().contains(".xls") @@ -742,7 +919,6 @@ public class TaskController { } else { jsonObject1.put("link", base_url + ros.get("url").toString().substring(1)); } - // jsonObject1.put("size","12k"); jsonArray.add(jsonObject1); num++; @@ -829,6 +1005,7 @@ public class TaskController { JSONObject jsonObjects = new JSONObject(); jsonObjects.put("title", bo.get("STOPFILENAME")); + jsonObjects.put("file_number",0); jsonObjects.put("link", "https://bpm.yili.com:8088/portal/r" + ro.get("url").toString().substring(1)); // jsonObjects.put("size","12k"); @@ -894,6 +1071,31 @@ public class TaskController { params_previews); JSONObject jsonObject1 = new JSONObject(); + //按照附件编号排序 + String fileNamel= row.getString("FILENAME"); + if(UtilString.isNotEmpty(fileNamel)&&fileNamel.contains("附件")&&fileNamel.length()>2&&(fileNamel.contains(":")||fileNamel.contains(":"))) { + if(fileNamel.indexOf("附件")==0) { + int indexOf2 = 3; + if(fileNamel.contains(":")) { + indexOf2 = fileNamel.indexOf(":"); + }else if(fileNamel.contains(":")) { + indexOf2 = fileNamel.indexOf(":"); + } + String numberStr = fileNamel.substring(2,indexOf2); + if(isNumeric(numberStr)&&!"".equals(numberStr)) { + isNumberAscArray.add("true"); + int fileNumber = Integer.parseInt(numberStr); + jsonObject1.put("file_number", fileNumber); + }else { + isNumberAscArray.add("false"); + } + }else { + isNumberAscArray.add("false"); + } + + }else { + isNumberAscArray.add("false"); + } jsonObject1.put("title", row.getString("FILENAME")); String base_url = "https://bpm.yili.com:8088/portal/r"; if (row.getString("FILENAME").toString().contains(".xls") @@ -985,6 +1187,7 @@ public class TaskController { JSONObject jsonObjects = new JSONObject(); jsonObjects.put("title", bo.get("CHANGEDFILENAMENEW")); + jsonObjects.put("file_number",0); jsonObjects.put("link", "https://bpm.yili.com:8088/portal/r" + ro.get("url").toString().substring(1)); // jsonObjects.put("size","12k"); @@ -1043,6 +1246,31 @@ public class TaskController { params_previews); JSONObject jsonObject1 = new JSONObject(); + //按照附件编号排序 + String fileNamel= row.getString("FILENAME"); + if(UtilString.isNotEmpty(fileNamel)&&fileNamel.contains("附件")&&fileNamel.length()>2&&(fileNamel.contains(":")||fileNamel.contains(":"))) { + if(fileNamel.indexOf("附件")==0) { + int indexOf2 = 3; + if(fileNamel.contains(":")) { + indexOf2 = fileNamel.indexOf(":"); + }else if(fileNamel.contains(":")) { + indexOf2 = fileNamel.indexOf(":"); + } + String numberStr = fileNamel.substring(2,indexOf2); + if(isNumeric(numberStr)&&!"".equals(numberStr)) { + isNumberAscArray.add("true"); + int fileNumber = Integer.parseInt(numberStr); + jsonObject1.put("file_number", fileNumber); + }else { + isNumberAscArray.add("false"); + } + }else { + isNumberAscArray.add("false"); + } + + }else { + isNumberAscArray.add("false"); + } jsonObject1.put("title", row.getString("FILENAME")); if (row.getString("FILENAME").contains(".xlsx") || row.getString("FILENAME").contains(".xls")) { jsonObject1.put("link", ros.get("url").toString().substring(0)); @@ -1066,6 +1294,15 @@ public class TaskController { map.put("ProcessTile", bo_act_coe_publish.getString("PROCESS_TITLE")); map.put("processInstId", processInstId); map.put("sid", sid); + boolean contains = isNumberAscArray.contains("false"); + if(!contains) { + try { + jsonArray.sort(Comparator.comparing(obj -> ((JSONObject) obj).getInteger("file_number"))); + } catch (Exception e) { + throw new AWSQuotaException("附件格式请以:《附件1:XXXXXX》格式命名"); + } + } + /////////// // System.out.println("jsonArray=====>>>>>>>>>"+jsonArray); map.put("jsonlist", jsonArray); // DBSql.close(conn); @@ -1176,7 +1413,14 @@ public class TaskController { return str2.toString(); } - + public static boolean isNumeric(String str) { + for (int i = str.length(); --i >= 0;) { + int chr = str.charAt(i); + if (chr < 48 || chr > 57) + return false; + } + return true; + } diff --git a/com.awspaas.user.apps.yili.integration/src/com/awspaas/user/apps/integration/util/AesUtil.java b/com.awspaas.user.apps.yili.integration/src/com/awspaas/user/apps/integration/util/AesUtil.java index 4549d776..c7c96b3d 100644 --- a/com.awspaas.user.apps.yili.integration/src/com/awspaas/user/apps/integration/util/AesUtil.java +++ b/com.awspaas.user.apps.yili.integration/src/com/awspaas/user/apps/integration/util/AesUtil.java @@ -7,8 +7,9 @@ import java.security.SecureRandom; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; -import sun.misc.BASE64Decoder; -import sun.misc.BASE64Encoder; +import jpack.util.BASE64Decoder; +import jpack.util.BASE64Encoder; + /** * AES加密解密工具类 diff --git a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/DataViewService.java b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/DataViewService.java index e3a367cd..b3760712 100644 --- a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/DataViewService.java +++ b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/DataViewService.java @@ -1090,12 +1090,12 @@ public class DataViewService extends ActionWeb { String[] arr = replace.split(","); for (int i = 0; i < arr.length; i++) { if (arr.length == 1) { - sbu.append("'").append(arr[i]).append("'"); + sbu.append("'").append(arr[i].trim()).append("'"); } else { if (i == arr.length - 1) { - sbu.append("'").append(arr[i]).append("'"); + sbu.append("'").append(arr[i].trim()).append("'"); } else { - sbu.append("'").append(arr[i]).append("'").append(","); + sbu.append("'").append(arr[i].trim()).append("'").append(","); } } @@ -1109,23 +1109,23 @@ public class DataViewService extends ActionWeb { } else { if (UtilString.isNotEmpty(deptString) && json.size() < 450) { - if (deptString.contains(",")) { + if (deptString.contains("[")) { StringBuffer sbu = new StringBuffer(); net.sf.json.JSONArray jsonArry = net.sf.json.JSONArray.fromObject(deptString); for (int i = 0; i < jsonArry.size(); i++) { if (jsonArry.size() == 1) { - sbu.append("'").append(jsonArry.getString(i)).append("'"); + sbu.append("'").append(jsonArry.getString(i).trim()).append("'"); } else { if (i == jsonArry.size() - 1) { - sbu.append("'").append(jsonArry.getString(i)).append("'"); + sbu.append("'").append(jsonArry.getString(i).trim()).append("'"); } else { - sbu.append("'").append(jsonArry.getString(i)).append("'").append(","); + sbu.append("'").append(jsonArry.getString(i).trim()).append("'").append(","); } } } - sqlParm = sbu.toString(); + sqlParm = sbu.toString().trim(); } else { sqlParm = "'" + deptString.replace("[", "").replace("]", "") + "'"; } @@ -1137,7 +1137,7 @@ public class DataViewService extends ActionWeb { List maps = null; if (json.size() < 450) { String sqltt = "SELECT ID AS FILEID,PLNAME,PLPARENTID,PLMETHODID,PLLEVEL,PLVERSIONID,PLORDERINDEX,EXT3 as POLICYTYPE FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = 1 AND EXT5 = '1' AND EXT6 IN (" - + sqlParm + ") AND PLMETHODID in ('process.epc','control.policy','process.flowchart')"; + +sqlParm+ ") AND PLMETHODID in ('process.epc','control.policy','process.flowchart')"; maps = DBSql.getMaps(sqltt); } else { String sqltt = "SELECT ID AS FILEID,PLNAME,PLPARENTID,PLMETHODID,PLLEVEL,PLVERSIONID,PLORDERINDEX,EXT3 as POLICYTYPE FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = 1 AND ISSTOP =0 AND EXT5 = '1' AND EXT6 IS NOT NULL AND PLMETHODID in ('process.epc','control.policy','process.flowchart')"; diff --git a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/FileManagementService3.java b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/FileManagementService3.java new file mode 100644 index 00000000..6388ae12 --- /dev/null +++ b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/FileManagementService3.java @@ -0,0 +1,1282 @@ +package com.awspaas.user.apps.yili.reportform.service; + +import java.sql.Timestamp; +import java.text.NumberFormat; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.time.Period; +import java.time.format.DateTimeFormatter; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.mvc.view.ActionWeb; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.server.RequestParams; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.alibaba.fastjson.JSONObject; +import com.awspaas.user.apps.yili.reportform.util.GetNodesUtil; +import com.awspaas.user.apps.yili.reportform.util.TreeUtil; + +/** + * @author:Lizj + * @create: 2022-06-27 09:41 + * @Description: 文件管理看板 + */ +public class FileManagementService3 extends ActionWeb { + + UserContext _uc; + + public FileManagementService3(UserContext uc) { + super(uc); + _uc = uc; + } + + /** + * @methodName: + * @param: + * @return: + * @description:流程制度类文件总数 + * @auther: Lizj + * @date: 2022/6/27 9:48 + */ + public String fileTotal(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + Integer fileTotal = 0; + Integer processFile = 0; + Integer policyFile = 0; + Integer guideFile = 0; + Integer formFile = 0; + HashMap fileSortMap = new HashMap<>(); + //List fileRowMaps = DBSql.getMaps( "SELECT FILEID,PLMETHODID,POLICYTYPE FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1'"); + List fileRowMaps = DBSql.getMaps( "SELECT FILEID,PLMETHODID,POLICYTYPE FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1'"); + if (null!=fileRowMaps && !fileRowMaps.isEmpty()) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PLMETHODID").equals("process.epc") || fileRowMap.getString("PLMETHODID").equals("process.flowchart")) { + fileTotal += 1; + processFile += 1; + } else if (fileRowMap.getString("PLMETHODID").equals("control.policy") && (fileRowMap.getString("POLICYTYPE").equals("regulation") || null==fileRowMap.getString("POLICYTYPE") || fileRowMap.getString("POLICYTYPE").equals(""))) { + fileTotal += 1; + policyFile += 1; + } else if (fileRowMap.getString("PLMETHODID").equals("control.policy") && fileRowMap.getString("POLICYTYPE").equals("I/O_L4")) { + fileTotal += 1; + guideFile += 1; + } else if (fileRowMap.getString("PLMETHODID").equals("data.form")) { + fileTotal += 1; + formFile += 1; + } + } + } + ro.put("fileTotal",fileTotal); + fileSortMap.put("processFile",processFile); + fileSortMap.put("policyFile",policyFile); + fileSortMap.put("guideFile",guideFile); + fileSortMap.put("formFile",formFile); + ro.put("fileSort",fileSortMap); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:制度管理看板筛选条件 文件类型、发布单位、所属领域 + * @auther: Lizj + * @date: 2022/6/27 16:07 + */ + public String queryTerms5(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + /*“文件类型”筛选框:流程(包括过程链图和泳道图),制度(包括制度模型中的制度),操作指导(包括制度模型中的操作指导),表单/模板(包括表单模型)*/ + //文件类型 + HashMap fileType = new HashMap<>(); + ArrayList fileTypes = new ArrayList<>(); + fileType = new HashMap(); + fileType.put("termsKey","totalFile"); + fileType.put("termsVal","全部"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey","processFile"); + fileType.put("termsVal","流程"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey","policyFile"); + fileType.put("termsVal","制度"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey","guideFile"); + fileType.put("termsVal","操作指导"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey","formFile"); + fileType.put("termsVal","表单/模板"); + fileTypes.add(fileType); + ro.put("fileTypes",fileTypes); + //发布单位 + List deptMaps = DBSql.getMaps("SELECT ID,PARENTDEPARTMENTID,DEPARTMENTNAME,LAYER,ORDERINDEX FROM ORGDEPARTMENT" + + " WHERE COMPANYID='8911e732-b42a-4556-853f-ad32761bcbee' AND CLOSED='0' AND ID not in ('5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe','e79281b1-2f81-4895-b30e-9f96e9ad0e2c','53d3076d-cd2d-4f5b-bacb-8e93273e9f44','9c795620-93c6-485c-b9fa-93536c988da8','12d42abb-a58f-411b-8c71-0a421a27eafc','65048aee-157f-49f2-a2dc-5903dd26f519')"); + //demo3 + //3e74f14d-852f-4f6f-a809-08a56697f103 + //本地 + //d7087d5b-ab29-4514-a7e7-79379f6842a2 + //正式 + //8911e732-b42a-4556-853f-ad32761bcbee + String nodeType = null; + ArrayList deptNodes = new ArrayList<>(); + for (RowMap deptMap : deptMaps) { + HashMap deptNode = new HashMap<>(); + nodeType = "dept"; + deptNode.put("ID",deptMap.getString("ID")); + deptNode.put("PARENTID",deptMap.getString("PARENTDEPARTMENTID")); + deptNode.put("name",deptMap.getString("DEPARTMENTNAME")); + deptNode.put("ORDERINDEX",deptMap.getString("ORDERINDEX")); + deptNode.put("TLEVEL",deptMap.getString("LAYER")); + deptNode.put("nodeType", nodeType); + deptNodes.add(deptNode); + } + List deptTreeNodes = TreeUtil.buildTree("1",deptNodes,"0","dept","3",null); + //所属领域 + ArrayList frameList = new ArrayList<>(); + ArrayList fieldMaps = new ArrayList<>(); + List L1Maps = DBSql.getMaps("SELECT FRAMEID,FRAMENAME,FRAMETYPE,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMELEVEL=1 AND FRAMETYPE IS NOT NULL "); + String hasRoot = "Y"; + if (null != L1Maps && !L1Maps.isEmpty()) { + for (RowMap l1Map : L1Maps) { + String L1ID = l1Map.getString("FRAMEID"); + frameList = new ArrayList<>(); + frameList = GetNodesUtil.getChildFrame(L1ID, hasRoot, frameList); + fieldMaps.addAll(frameList); + } + } + ArrayList fieldNodes = new ArrayList<>(); + for (Map fieldMap : fieldMaps) { + HashMap fieldNode = new HashMap<>(); + fieldNode.put("ID", String.valueOf(fieldMap.get("FRAMEID"))); + fieldNode.put("PARENTID", String.valueOf(fieldMap.get("FRAMEPARENTID"))); + fieldNode.put("name", String.valueOf(fieldMap.get("FRAMENAME"))); + fieldNode.put("ORDERINDEX", Integer.valueOf(String.valueOf(fieldMap.get("FRAMEORDERINDEX")))); + fieldNode.put("TLEVEL", Integer.valueOf(String.valueOf(fieldMap.get("FRAMELEVEL")))); + fieldNodes.add(fieldNode); + } + List fieldTreeNodes = TreeUtil.buildTree("1",fieldNodes, "process", null, null, null); + ro.put("deptTreeNodes",deptTreeNodes); + ro.put("fieldTreeNodes",fieldTreeNodes); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:制度管理看板 + * @auther: Lizj + * @date: 2022/6/27 16:52 + */ + public String fileStatistics(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + String fileType = params.get("fileType"); + String unit = params.get("unit"); + String field = params.get("field"); + ArrayList deptIDList = new ArrayList<>(); + ArrayList fieldList = new ArrayList<>(); + List fileRowMaps = DBSql.getMaps("SELECT FILEID,PUBDEPT,PLPARENTID,PLMETHODID,POLICYTYPE,FILESTATE,VIEWCOUNT FROM BO_EU_PAL_FILE1 WHERE PLMETHODID='process.epc' OR PLMETHODID='process.flowchart' OR PLMETHODID='control.policy' OR PLMETHODID='data.form'"); + ArrayList fileHandleMaps = new ArrayList<>(); + if (null!=fileType && !fileType.equals("")) { + fileHandleMaps = new ArrayList<>(); + if (fileType.equals("totalFile")||fileType.equals("all")) { + for (RowMap fileRowMap : fileRowMaps) { + fileHandleMaps.add(fileRowMap); + + } + } + if (fileType.equals("processFile")) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PLMETHODID").equals("process.epc") || fileRowMap.getString("PLMETHODID").equals("process.flowchart")) { + fileHandleMaps.add(fileRowMap); + } + } + } + if (fileType.equals("policyFile")) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PLMETHODID").equals("control.policy") && (fileRowMap.getString("POLICYTYPE").equals("regulation") || null==fileRowMap.getString("POLICYTYPE") || fileRowMap.getString("POLICYTYPE").equals(""))) { + fileHandleMaps.add(fileRowMap); + } + } + } + if (fileType.equals("guideFile")) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PLMETHODID").equals("control.policy") && fileRowMap.getString("POLICYTYPE").equals("I/O_L4")) { + fileHandleMaps.add(fileRowMap); + } + } + } + if (fileType.equals("formFile")) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PLMETHODID").equals("data.form")) { + fileHandleMaps.add(fileRowMap); + } + } + } + fileRowMaps = fileHandleMaps; + } + if (null!=unit && !unit.equals("")) { + if("all".equals(unit)) { + for (RowMap fileRowMap : fileRowMaps) { + fileHandleMaps.add(fileRowMap); + } + }else { + fileHandleMaps = new ArrayList<>(); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(unit, deptIDList); + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileHandleMaps.add(fileRowMap); + } + } + } + + } + fileRowMaps = fileHandleMaps; + } + if (null!=field && !field.equals("")) { + + if("all".equals(field)) { + for (RowMap fileRowMap : fileRowMaps) { + fileHandleMaps.add(fileRowMap); + } + }else { + fileHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PLPARENTID").equals(fieldID)) { + fileHandleMaps.add(fileRowMap); + } + } + } + + } + fileRowMaps = fileHandleMaps; + } + //文件状态:已发布、审批中、已失效 查阅总数 + Integer publishedCount = 0; + Integer inApprovalCount = 0; + Integer expiredCount = 0; + Integer consultCount = 0; + String sql = "SELECT count(*) FROM BO_EU_USER_LOGIN_LOG WHERE LOGTYPE = '3'"; + String count = DBSql.getString(sql); + + /* + * ExecutorService service = Executors.newFixedThreadPool(1); + * service.execute(new Runnable() { + * + * @Override public void run() { } }); + */ + + if (null!=fileRowMaps && fileRowMaps.isEmpty()==false) { + for (RowMap fileRowMap : fileRowMaps) { + String fileState = fileRowMap.getString("FILESTATE"); + Integer VIEWCOUNT = fileRowMap.getInt("VIEWCOUNT"); + if (fileState.equals("1")) { + publishedCount += 1; + } + if (fileState.equals("2")) { + inApprovalCount += 1; + } + if (fileState.equals("3")) { + expiredCount += 1; + } + consultCount += VIEWCOUNT; + } + ro.put("publishedCount",publishedCount); + ro.put("inApprovalCount",inApprovalCount); + ro.put("expiredCount",expiredCount); + ro.put("consultCount",count); + } else { + ro.ok("暂无文件"); + publishedCount = 0; + inApprovalCount = 0; + expiredCount = 0; + consultCount = 0; + ro.put("publishedCount",publishedCount); + ro.put("inApprovalCount",inApprovalCount); + ro.put("expiredCount",expiredCount); + ro.put("consultCount",consultCount); + } + return ro.toString(); + } + + + + //获取属性 + public String getArrtValue(String plId,String ArrtKey,String type) { + String arrtValue = ""; + try { + String sql = "select PROPERTYVALUE from APP_ACT_COE_PAL_PROP where PLID = '"+plId+"' and PROPERTYID = '"+ArrtKey+"'"; + String relatFileJson = DBSql.getString(sql); + if(UtilString.isNotEmpty(relatFileJson)) { + JSONObject parseObject = JSONObject.parseObject(relatFileJson); + String fileNames = parseObject.getString("relationShapeText"); + if(UtilString.isNotEmpty(fileNames)) { + arrtValue = fileNames; + } + + } + } catch (Exception e) { + // TODO: handle exception + } + return arrtValue; + + } + + /** + * @methodName: + * @param: + * @return: + * @description:部门文件数量 + * @auther: Lizj + * @date: 2022/6/28 22:43 + */ + public String deptFileCount(UserContext uc, RequestParams params,List fileRowMaps) { + /*文件数量=当日生效文档总数*/ + ResponseObject ro = ResponseObject.newOkResponse(); + HashMap deptFileCountMap = new HashMap<>(); + ArrayList deptIDList = new ArrayList<>(); + ArrayList BDFileCountMaps = new ArrayList<>(); + ArrayList FDFileCountMaps = new ArrayList<>(); + Integer fileCount = 0; + //事业部和职能部门ID,名称 list + List BDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + if (null!=BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + deptFileCountMap = new HashMap(); + fileCount = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileCount += 1; + } + } + } + } + deptFileCountMap.put("deptID",bdDeptID); + deptFileCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptFileCountMap.put("fileCount",fileCount); + BDFileCountMaps.add(deptFileCountMap); + } + } + if (null!=FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + deptFileCountMap = new HashMap(); + fileCount = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileCount += 1; + } + } + } + } + deptFileCountMap.put("deptID",fdDeptID); + deptFileCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptFileCountMap.put("fileCount",fileCount); + FDFileCountMaps.add(deptFileCountMap); + } + } + ro.put("BDFileCount",BDFileCountMaps); + ro.put("FDFileCount",FDFileCountMaps); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:部门文件年度更新率 + * @auther: Lizj + * @date: 2022/6/28 22:49 + */ + + public String deptFileYearRenewRate(UserContext uc, RequestParams params,List fileRowMaps) { + /* 年度更新率=(某单位年度新增文件+年度修订文件)/某单位当前文件总数 */ + ResponseObject ro = ResponseObject.newOkResponse(); + HashMap renewRateMap = new HashMap<>(); + ArrayList BDRenewRateMaps = new ArrayList<>(); + ArrayList FDRenewRateMaps = new ArrayList<>(); + ArrayList deptIDList = new ArrayList<>(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Integer deptFileNum = 0; + Integer newFileNum = 0; + String renewRate = null; + // 获取当前年 + LocalDateTime nowDate = LocalDateTime.now(); + int nowYear = nowDate.getYear(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + // 事业部和职能部门ID,名称 list + // List fileRowMaps = DBSql.getMaps("SELECT + // FILEID,FILEVERSION,PUBDEPT,PUBDATETIME FROM BO_EU_PAL_FILE1 WHERE + // FILESTATE='1'"); + List BDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + if (null != BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + renewRateMap = new HashMap(); + deptFileNum = 0; + newFileNum = 0; + renewRate = null; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + deptFileNum += 1; + String publishDate = fileRowMap.getString("PUBDATETIME"); + if (UtilString.isNotEmpty(publishDate)) { + if (publishDate.contains("2022")) { + newFileNum += 1; + } + } + /* + * Timestamp PUBDATETIME = fileRowMap.getTimestamp("PUBDATETIME"); String + * FILEVERSION = fileRowMap.getString("FILEVERSION"); String pubdatetimeString= + * sdf.format(PUBDATETIME); LocalDate pubDate = + * LocalDate.parse(pubdatetimeString, + * DateTimeFormatter.ofPattern("yyyy-MM-dd")); if (pubDate.getYear()==nowYear) { + * newFileNum += 1; } + */ + } + } + } + } + if (deptFileNum != 0) { + renewRate = numberformat.format((float) newFileNum / (float) deptFileNum * 100); + } else { + renewRate = "0"; + } + renewRateMap.put("deptID", bdDeptID); + renewRateMap.put("deptName", bdInfoMap.getString("ABBREVIATION")); + renewRateMap.put("renewRate", renewRate); + BDRenewRateMaps.add(renewRateMap); + } + } + if (null != FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + renewRateMap = new HashMap(); + deptFileNum = 0; + newFileNum = 0; + renewRate = null; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + deptFileNum += 1; + String publishDate = fileRowMap.getString("PUBDATETIME"); + if (UtilString.isNotEmpty(publishDate)) { + if (publishDate.contains("2022")) { + newFileNum += 1; + } + } + /* + * Timestamp PUBDATETIME = fileRowMap.getTimestamp("PUBDATETIME"); String + * FILEVERSION = fileRowMap.getString("FILEVERSION"); String pubdatetimeString= + * sdf.format(PUBDATETIME); LocalDate pubDate = + * LocalDate.parse(pubdatetimeString, + * DateTimeFormatter.ofPattern("yyyy-MM-dd")); if (pubDate.getYear()==nowYear) { + * newFileNum += 1; } + */ + } + } + } + } + if (deptFileNum != 0) { + renewRate = numberformat.format((float) newFileNum / (float) deptFileNum * 100); + } else { + renewRate = "0"; + } + renewRateMap.put("deptID", fdDeptID); + renewRateMap.put("deptName", fdInfoMap.getString("ABBREVIATION")); + renewRateMap.put("renewRate", renewRate); + FDRenewRateMaps.add(renewRateMap); + } + } + ro.put("BDRenewRate", BDRenewRateMaps); + ro.put("FDRenewRate", FDRenewRateMaps); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:部门文件年度更新情况 + * @auther: Lizj + * @date: 2022/6/28 22:53 + */ + public String deptFileYearRenewSituation(UserContext uc, RequestParams params) { + /* + * 1)新增数=某单位年度新增文件 一个版本是新增 + * 2)修订数=某单位年度修订文件 大于一个版本是修订 + * 3)废止数=某单位年度废止文件 停用 + */ + ResponseObject ro = ResponseObject.newOkResponse(); + HashMap renewCountMap = new HashMap<>(); + ArrayList BDRenewCountMaps = new ArrayList<>(); + ArrayList FDRenewCountMaps = new ArrayList<>(); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Integer createCount = 0; + Integer updateCount = 0; + Integer abolishCount = 0; + ArrayList deptIDList = new ArrayList<>(); + // 获取当前年 + LocalDateTime nowDate = LocalDateTime.now(); + int nowYear = nowDate.getYear(); + // 事业部和职能部门ID,名称 list + List fileRowMaps = DBSql + .getMaps("SELECT FILEID,FILEVERSION,PUBDEPT,PUBDATETIME,FILESTATE FROM BO_EU_PAL_FILE1"); + List BDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps( + "SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + if (null != BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + renewCountMap = new HashMap(); + createCount = 0; + updateCount = 0; + abolishCount = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + try { + + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + String FILESTATE = fileRowMap.getString("FILESTATE"); + String FILEVERSION = fileRowMap.getString("FILEVERSION"); + String publishDate = fileRowMap.getString("PUBDATETIME"); + if (UtilString.isNotEmpty(publishDate)) { + if (publishDate.contains("2022")) { + if (FILESTATE.equals("1") && FILEVERSION.equals("1.0")) { + createCount += 1; + } + if (FILESTATE.equals("1") && !FILEVERSION.equals("1.0")) { + updateCount += 1; + } + if (FILESTATE.equals("3")) { + abolishCount += 1; + } + } + } + + Timestamp PUBDATETIME = fileRowMap.getTimestamp("PUBDATETIME"); + String pubdatetimeString = sdf.format(PUBDATETIME); + LocalDate pubDate = LocalDate.parse(pubdatetimeString, + DateTimeFormatter.ofPattern("yyyy-MM-dd")); + + if (pubDate.getYear() == nowYear) { + if (FILESTATE.equals("1") && FILEVERSION.equals("1.0")) { + createCount += 1; + } + if (FILESTATE.equals("1") && !FILEVERSION.equals("1.0")) { + updateCount += 1; + } + if (FILESTATE.equals("3")) { + abolishCount += 1; + } + } + + } + } + } + } + } catch (Exception e) { + // TODO: handle exception + } + renewCountMap.put("deptID", bdDeptID); + renewCountMap.put("deptName", bdInfoMap.getString("ABBREVIATION")); + renewCountMap.put("createCount", createCount); + renewCountMap.put("updateCount", updateCount); + renewCountMap.put("abolishCount", abolishCount); + BDRenewCountMaps.add(renewCountMap); + } + } + if (null != FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + renewCountMap = new HashMap(); + createCount = 0; + updateCount = 0; + abolishCount = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + try { + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null != deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + String FILESTATE = fileRowMap.getString("FILESTATE"); + String FILEVERSION = fileRowMap.getString("FILEVERSION"); + String publishDate = fileRowMap.getString("PUBDATETIME"); + if (UtilString.isNotEmpty(publishDate)) { + if (publishDate.contains("2022")) { + if (FILESTATE.equals("1") && FILEVERSION.equals("1.0")) { + createCount += 1; + } + if (FILESTATE.equals("1") && !FILEVERSION.equals("1.0")) { + updateCount += 1; + } + if (FILESTATE.equals("3")) { + abolishCount += 1; + } + } + } + } + } + } + } + } catch (Exception e) { + // TODO: handle exception + } + renewCountMap.put("deptID", fdDeptID); + renewCountMap.put("deptName", fdInfoMap.getString("ABBREVIATION")); + renewCountMap.put("createCount", createCount); + renewCountMap.put("updateCount", updateCount); + renewCountMap.put("abolishCount", abolishCount); + FDRenewCountMaps.add(renewCountMap); + } + } + ro.put("BDRenewCount", BDRenewCountMaps); + ro.put("FDRenewCount", FDRenewCountMaps); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:文件发布时间分布筛选条件:发布单位、所属领域 + * @auther: Lizj + * @date: 2022/6/28 22:54 + */ + public String queryTerms6(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + //发布单位 + List deptMaps = DBSql.getMaps("SELECT ID,PARENTDEPARTMENTID,DEPARTMENTNAME,LAYER,ORDERINDEX FROM ORGDEPARTMENT" + + " WHERE COMPANYID='8911e732-b42a-4556-853f-ad32761bcbee' AND CLOSED='0' AND ID not in ('5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe','e79281b1-2f81-4895-b30e-9f96e9ad0e2c','53d3076d-cd2d-4f5b-bacb-8e93273e9f44','9c795620-93c6-485c-b9fa-93536c988da8','12d42abb-a58f-411b-8c71-0a421a27eafc','65048aee-157f-49f2-a2dc-5903dd26f519')"); + //demo3 + //3e74f14d-852f-4f6f-a809-08a56697f103 + //本地 + //d7087d5b-ab29-4514-a7e7-79379f6842a2 + //正式 + //8911e732-b42a-4556-853f-ad32761bcbee + String nodeType = null; + ArrayList deptNodes = new ArrayList<>(); + for (RowMap deptMap : deptMaps) { + HashMap deptNode = new HashMap<>(); + nodeType = "dept"; + deptNode.put("ID",deptMap.getString("ID")); + deptNode.put("PARENTID",deptMap.getString("PARENTDEPARTMENTID")); + deptNode.put("name",deptMap.getString("DEPARTMENTNAME")); + deptNode.put("ORDERINDEX",deptMap.getString("ORDERINDEX")); + deptNode.put("TLEVEL",deptMap.getString("LAYER")); + deptNode.put("nodeType", nodeType); + deptNodes.add(deptNode); + } + List deptTreeNodes = TreeUtil.buildTree("1",deptNodes,"0","dept","3",null); + //所属领域 + ArrayList frameList = new ArrayList<>(); + ArrayList fieldMaps = new ArrayList<>(); + List L1Maps = DBSql.getMaps("SELECT FRAMEID,FRAMENAME,FRAMETYPE,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMELEVEL=1 AND FRAMETYPE IS NOT NULL "); + String hasRoot = "Y"; + if (null != L1Maps && !L1Maps.isEmpty()) { + for (RowMap l1Map : L1Maps) { + String L1ID = l1Map.getString("FRAMEID"); + frameList = new ArrayList<>(); + frameList = GetNodesUtil.getChildFrame(L1ID, hasRoot, frameList); + fieldMaps.addAll(frameList); + } + } + ArrayList fieldNodes = new ArrayList<>(); + for (Map fieldMap : fieldMaps) { + HashMap fieldNode = new HashMap<>(); + fieldNode.put("ID", String.valueOf(fieldMap.get("FRAMEID"))); + fieldNode.put("PARENTID", String.valueOf(fieldMap.get("FRAMEPARENTID"))); + fieldNode.put("name", String.valueOf(fieldMap.get("FRAMENAME"))); + fieldNode.put("ORDERINDEX", Integer.valueOf(String.valueOf(fieldMap.get("FRAMEORDERINDEX")))); + fieldNode.put("TLEVEL", Integer.valueOf(String.valueOf(fieldMap.get("FRAMELEVEL")))); + fieldNodes.add(fieldNode); + } + List fieldTreeNodes = TreeUtil.buildTree("1",fieldNodes, "process", null, null, null); + ro.put("deptTreeNodes",deptTreeNodes); + ro.put("fieldTreeNodes",fieldTreeNodes); + return ro.toString(); + } + /** + * @methodName: + * @param: + * @return: + * @throws ParseException + * @description:文件发布时间分布 + * @auther: Lizj + * @date: 2022/6/28 22:57 + */ + public String filePubTimeDistribution(UserContext uc, RequestParams params) throws ParseException { + ResponseObject ro = ResponseObject.newOkResponse(); + String unit = params.get("unit"); + String field = params.get("field"); + ArrayList deptIDList = new ArrayList<>(); + ArrayList fieldList = new ArrayList<>(); + List fileMaps = DBSql.getMaps("SELECT FILEID,PLMETHODID,POLICYTYPE,PUBDATETIME,PUBDEPT,PLPARENTID FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1' AND PUBDATETIME IS NOT NULL"); + ArrayList fileHandleMaps = new ArrayList<>(); + + if (null!=unit && !unit.equals("")) { + if("all".equals(unit)) { + for (RowMap fileRowMap : fileMaps) { + fileHandleMaps.add(fileRowMap); + } + }else { + fileHandleMaps = new ArrayList<>(); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(unit, deptIDList); + for (String deptID : deptIDList) { + for (RowMap fileMap : fileMaps) { + if (fileMap.getString("PUBDEPT").contains(deptID)) { + fileHandleMaps.add(fileMap); + } + } + } + + } + fileMaps = fileHandleMaps; + } + if (null!=field && !field.equals("")) { + if("all".equals(field)) { + for (RowMap fileRowMap : fileMaps) { + fileHandleMaps.add(fileRowMap); + } + }else { + fileHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap fileMap : fileMaps) { + if (fileMap.getString("PLPARENTID").equals(fieldID)) { + fileHandleMaps.add(fileMap); + } + } + } + } + fileMaps = fileHandleMaps; + } + LocalDate nowDate = LocalDate.now(); + + + + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + //6个月内fileMaps + ArrayList month6InFileMaps = new ArrayList<>(); + //6个月~1年fileMaps + ArrayList year1InFileMaps = new ArrayList<>(); + //1年~2年fileMaps + ArrayList year2InFileMaps = new ArrayList<>(); + //2年~3年fileMaps + ArrayList year3InFileMaps = new ArrayList<>(); + //3年以上+fileMaps + ArrayList year3OutFileMaps = new ArrayList<>(); + + ArrayList fileCountMaps = new ArrayList<>(); + if (null!=fileMaps && fileMaps.isEmpty()==false) { + for (RowMap fileMap : fileMaps) { + try { + LocalDate PUBDATETIME = null; + String publishDate = fileMap.getString("PUBDATETIME"); + if(UtilString.isNotEmpty(publishDate)) { + if(publishDate.length()>11) { + publishDate = publishDate.substring(0, 10); + } + if(publishDate.contains("年")) { + //PUBDATETIME = LocalDate.parse(publishDate.substring(0,9), DateTimeFormatter.ofPattern("yyyy年MM月dd")); + }else if(publishDate.contains("-")) { + PUBDATETIME = LocalDate.parse(publishDate); + } + + } + if(PUBDATETIME==null) { + continue; + } + Period betweenDate = Period.between(PUBDATETIME, nowDate); + if (betweenDate.getMonths()<6) { + month6InFileMaps.add(fileMap); + } + if (betweenDate.getMonths()>=6 && betweenDate.getYears()<1) { + year1InFileMaps.add(fileMap); + } + if(betweenDate.getYears()>=1 && betweenDate.getYears()<2) { + year2InFileMaps.add(fileMap); + } + if(betweenDate.getYears()>=2 && betweenDate.getYears()<3) { + year3InFileMaps.add(fileMap); + } + if(betweenDate.getYears()>=3) { + year3OutFileMaps.add(fileMap); + } + + } catch (Exception e) { + // TODO: handle exception + } + } + } else { + ro.ok("暂无文件"); + } + + Integer processFileCount = 0; + Integer policyFileCount = 0; + Integer guideFileCount = 0; + Integer formFileCount = 0; + Map fileCountMap = new LinkedHashMap<>(); + if (null!=month6InFileMaps && !month6InFileMaps.isEmpty()) { + for (RowMap month6InFileMap : month6InFileMaps) { + if (month6InFileMap.getString("PLMETHODID").equals("process.epc") || month6InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (month6InFileMap.getString("PLMETHODID").equals("control.policy") && (month6InFileMap.getString("POLICYTYPE").equals("regulation") || null==month6InFileMap.getString("POLICYTYPE") || month6InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (month6InFileMap.getString("PLMETHODID").equals("control.policy") && month6InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (month6InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap.put("timeSlot","【6个月内】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year1InFileMaps && !year1InFileMaps.isEmpty()) { + for (RowMap year1InFileMap : year1InFileMaps) { + if (year1InFileMap.getString("PLMETHODID").equals("process.epc") || year1InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year1InFileMap.getString("PLMETHODID").equals("control.policy") && (year1InFileMap.getString("POLICYTYPE").equals("regulation") || null==year1InFileMap.getString("POLICYTYPE") || year1InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year1InFileMap.getString("PLMETHODID").equals("control.policy") && year1InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year1InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【6个月~1年】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year2InFileMaps && !year2InFileMaps.isEmpty()) { + for (RowMap year2InFileMap : year2InFileMaps) { + if (year2InFileMap.getString("PLMETHODID").equals("process.epc") || year2InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year2InFileMap.getString("PLMETHODID").equals("control.policy") && (year2InFileMap.getString("POLICYTYPE").equals("regulation") || null==year2InFileMap.getString("POLICYTYPE") || year2InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year2InFileMap.getString("PLMETHODID").equals("control.policy") && year2InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year2InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【1年~2年】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year3InFileMaps && !year3InFileMaps.isEmpty()) { + for (RowMap year3InFileMap : year3InFileMaps) { + if (year3InFileMap.getString("PLMETHODID").equals("process.epc") || year3InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year3InFileMap.getString("PLMETHODID").equals("control.policy") && (year3InFileMap.getString("POLICYTYPE").equals("regulation") || null==year3InFileMap.getString("POLICYTYPE") || year3InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year3InFileMap.getString("PLMETHODID").equals("control.policy") && year3InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year3InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【2年~3年】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year3OutFileMaps && !year3OutFileMaps.isEmpty()) { + for (RowMap year3OutFileMap : year3OutFileMaps) { + if (year3OutFileMap.getString("PLMETHODID").equals("process.epc") || year3OutFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year3OutFileMap.getString("PLMETHODID").equals("control.policy") && (year3OutFileMap.getString("POLICYTYPE").equals("regulation") || null==year3OutFileMap.getString("POLICYTYPE") || year3OutFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year3OutFileMap.getString("PLMETHODID").equals("control.policy") && year3OutFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year3OutFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【3年以上】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + ro.put("fileCount",fileCountMaps); + + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:引用情况分析筛选条件:发布单位、所属领域、文件类型 + * @auther: Lizj + * @date: 2022/6/28 23:00 + */ + public String queryTerms7(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + //发布单位 + List deptMaps = DBSql.getMaps("SELECT ID,PARENTDEPARTMENTID,DEPARTMENTNAME,LAYER,ORDERINDEX FROM ORGDEPARTMENT" + + " WHERE COMPANYID='8911e732-b42a-4556-853f-ad32761bcbee' AND CLOSED='0' AND ID not in ('5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe','e79281b1-2f81-4895-b30e-9f96e9ad0e2c','53d3076d-cd2d-4f5b-bacb-8e93273e9f44','9c795620-93c6-485c-b9fa-93536c988da8','12d42abb-a58f-411b-8c71-0a421a27eafc','65048aee-157f-49f2-a2dc-5903dd26f519')"); + //demo3 + //3e74f14d-852f-4f6f-a809-08a56697f103 + //本地 + //d7087d5b-ab29-4514-a7e7-79379f6842a2 + //正式 + //8911e732-b42a-4556-853f-ad32761bcbee + String nodeType = null; + ArrayList deptNodes = new ArrayList<>(); + for (RowMap deptMap : deptMaps) { + HashMap deptNode = new HashMap<>(); + nodeType = "dept"; + deptNode.put("ID",deptMap.getString("ID")); + deptNode.put("PARENTID",deptMap.getString("PARENTDEPARTMENTID")); + deptNode.put("name",deptMap.getString("DEPARTMENTNAME")); + deptNode.put("ORDERINDEX",deptMap.getString("ORDERINDEX")); + deptNode.put("TLEVEL",deptMap.getString("LAYER")); + deptNode.put("nodeType", nodeType); + deptNodes.add(deptNode); + } + List deptTreeNodes = TreeUtil.buildTree("1",deptNodes,"0","dept","3",null); + //所属领域 + ArrayList frameList = new ArrayList<>(); + ArrayList fieldMaps = new ArrayList<>(); + List L1Maps = DBSql.getMaps("SELECT FRAMEID,FRAMENAME,FRAMETYPE,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMELEVEL=1 AND FRAMETYPE IS NOT NULL "); + String hasRoot = "Y"; + if (null != L1Maps && !L1Maps.isEmpty()) { + for (RowMap l1Map : L1Maps) { + String L1ID = l1Map.getString("FRAMEID"); + frameList = new ArrayList<>(); + frameList = GetNodesUtil.getChildFrame(L1ID, hasRoot, frameList); + fieldMaps.addAll(frameList); + } + } + ArrayList fieldNodes = new ArrayList<>(); + for (Map fieldMap : fieldMaps) { + HashMap fieldNode = new HashMap<>(); + fieldNode.put("ID", String.valueOf(fieldMap.get("FRAMEID"))); + fieldNode.put("PARENTID", String.valueOf(fieldMap.get("FRAMEPARENTID"))); + fieldNode.put("name", String.valueOf(fieldMap.get("FRAMENAME"))); + fieldNode.put("ORDERINDEX", Integer.valueOf(String.valueOf(fieldMap.get("FRAMEORDERINDEX")))); + fieldNode.put("TLEVEL", Integer.valueOf(String.valueOf(fieldMap.get("FRAMELEVEL")))); + fieldNodes.add(fieldNode); + } + List fieldTreeNodes = TreeUtil.buildTree("1",fieldNodes, "process", null, null, null); + ro.put("deptTreeNodes",deptTreeNodes); + ro.put("fieldTreeNodes",fieldTreeNodes); + //文件类型 + HashMap fileType = new HashMap<>(); + ArrayList fileTypes = new ArrayList<>(); + fileType = new HashMap(); + fileType.put("termsKey", "totalFile"); + fileType.put("termsVal", "全部"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey", "processFile"); + fileType.put("termsVal", "流程"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey", "policyFile"); + fileType.put("termsVal", "制度"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey", "guideFile"); + fileType.put("termsVal", "操作指导"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey", "formFile"); + fileType.put("termsVal", "表单/模板"); + fileTypes.add(fileType); + ro.put("fileTypes", fileTypes); + + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:引用情况分析 + * @auther: Lizj + * @date: 2022/6/28 23:03 + */ + public String citationAnalysis(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + String unit = params.get("unit"); + String field = params.get("field"); + String fileType = params.get("fileType"); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + ArrayList deptIDList = new ArrayList<>(); + ArrayList fieldList = new ArrayList<>(); + List fileRowMaps = DBSql.getMaps("SELECT FILEID,PLPARENTID,PLMETHODID,POLICYTYPE,PLPARENTID,PUBDEPT,MODIFYDATETIME,RELEVANTFILE,SUPPORTFILE FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1'"); + List fileRowMaps1 = fileRowMaps; + ArrayList fileHandleMaps = new ArrayList<>(); + if (null!=fileType && !fileType.equals("")) { + fileHandleMaps = new ArrayList<>(); + if (fileType.equals("totalFile")||fileType.equals("all")) { + for (RowMap fileRowMap1 : fileRowMaps1) { + fileHandleMaps.add(fileRowMap1); + } + } + if (fileType.equals("processFile")) { + for (RowMap fileRowMap1 : fileRowMaps1) { + if (fileRowMap1.getString("PLMETHODID").equals("process.epc") || fileRowMap1.getString("PLMETHODID").equals("process.flowchart")) { + fileHandleMaps.add(fileRowMap1); + } + } + } + if (fileType.equals("policyFile")) { + for (RowMap fileRowMap1 : fileRowMaps1) { + if (fileRowMap1.getString("PLMETHODID").equals("control.policy") && (fileRowMap1.getString("POLICYTYPE").equals("regulation") || null==fileRowMap1.getString("POLICYTYPE") || fileRowMap1.getString("POLICYTYPE").equals(""))) { + fileHandleMaps.add(fileRowMap1); + } + } + } + if (fileType.equals("guideFile")) { + for (RowMap fileRowMap1 : fileRowMaps1) { + if (fileRowMap1.getString("PLMETHODID").equals("control.policy") && fileRowMap1.getString("POLICYTYPE").equals("I/O_L4")) { + fileHandleMaps.add(fileRowMap1); + } + } + } + if (fileType.equals("formFile")) { + for (RowMap fileRowMap1 : fileRowMaps1) { + if (fileRowMap1.getString("PLMETHODID").equals("data.form")) { + fileHandleMaps.add(fileRowMap1); + } + } + } + fileRowMaps1 = fileHandleMaps; + } + if (null!=unit && !unit.equals("")) { + if("all".equals(unit)) { + for (RowMap fileRowMap1 : fileRowMaps1) { + fileHandleMaps.add(fileRowMap1); + } + }else { + fileHandleMaps = new ArrayList<>(); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(unit, deptIDList); + for (String deptID : deptIDList) { + for (RowMap fileRowMap1 : fileRowMaps1) { + if (fileRowMap1.getString("PUBDEPT").contains(deptID)) { + fileHandleMaps.add(fileRowMap1); + } + } + } + + } + fileRowMaps1 = fileHandleMaps; + } + if (null!=field && !field.equals("")) { + fileHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap fileRowMap1 : fileRowMaps1) { + if (fileRowMap1.getString("PLPARENTID").equals(fieldID)) { + fileHandleMaps.add(fileRowMap1); + } + } + } + fileRowMaps1 = fileHandleMaps; + } + + /*1)文件引用率=某范围中文件出现在其他文件的“相关文件”“支持文件”字段的次数总和/所有文件总数 + 2)平均被引用次数=某范围中文件出现在其他文件的“相关文件”“支持文件”字段的次数总和/对应范围的文件总数 + 3)本月新增引用次数=本月某范围中文件出现在其他文件的“相关文件”“支持文件”字段的次数总和 减去 上月某范围中文件出现在其他文件的“相关文件”“支持文件”字段的次数总和*/ + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + Integer appearNum = 0; + Integer fileTotalNum = fileRowMaps.size(); + Integer fileRageNum = fileRowMaps1.size(); + Integer lastNum = 0; + Integer nowNum = 0; + LinkedHashMap quoteDetail = new LinkedHashMap<>(); + String quoteRate = "0"; + String quoteAvg = "0"; + Integer quoteAdded = 0; + String quoteAddedString = "0"; + //本月、上月 + LocalDate nowDate = LocalDate.now(); + int nowMonth = nowDate.getMonthValue(); + int lastMonth = nowDate.minusMonths(1).getMonthValue(); + if ((null==fileType || fileType.equals("")) && (null==unit || unit.equals("")) && (null==field || field.equals(""))) { + appearNum = DBSql.getInt("SELECT COUNTOFGROUP AS appearNum FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='appearNum' AND GROUPIDEXT1='total'", "appearNum"); + lastNum = DBSql.getInt("SELECT COUNTOFGROUP AS lastNum FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='lastNum' AND GROUPIDEXT1='total'", "lastNum"); + nowNum = DBSql.getInt("SELECT COUNTOFGROUP AS nowNum FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='nowNum' AND GROUPIDEXT1='total'", "nowNum"); + if (fileTotalNum!=0) { + quoteRate = numberformat.format((float) appearNum / (float) fileTotalNum * 100); + } else { + quoteRate = "0"; + } + if (fileRageNum!=0) { + quoteAvg = numberformat.format((float) appearNum / (float) fileRageNum); + } else { + quoteAvg ="0"; + } + quoteAdded = nowNum - lastNum; + + if (quoteAdded>=100) { + quoteAddedString = numberformat.format((float) quoteAdded / 10); + } else if (quoteAdded>=1000) { + quoteAddedString = numberformat.format((float) quoteAdded / 100); + } else if (quoteAdded>=10000) { + quoteAddedString = numberformat.format((float) quoteAdded / 1000); + } + quoteDetail = new LinkedHashMap<>(); + quoteDetail.put("quoteAvg",quoteAvg); + quoteDetail.put("quoteAdded",quoteAddedString); + ro.put("quoteRate", quoteRate); + ro.put("quoteDetail", quoteDetail); + return ro.toString(); + } + if (null!=fileRowMaps1 && fileRowMaps1.isEmpty()==false) { + for (RowMap fileRowMap1 : fileRowMaps1) { + String FILEID = fileRowMap1.getString("FILEID"); + for (RowMap fileRowMap : fileRowMaps) { + String RELEVANTFILE = fileRowMap.getString("RELEVANTFILE"); + String SUPPORTFILE = fileRowMap.getString("SUPPORTFILE"); + if (null!=RELEVANTFILE && !RELEVANTFILE.equals("")) { + if (RELEVANTFILE.contains(FILEID)) { + appearNum += 1; + } + } + if (null!=SUPPORTFILE && !SUPPORTFILE.equals("")) { + if (SUPPORTFILE.contains(FILEID)) { + appearNum += 1; + } + } + Timestamp MODIFYDATETIME = fileRowMap.getTimestamp("MODIFYDATETIME"); + String modifyTimeString= sdf.format(MODIFYDATETIME); + LocalDateTime modifyDatetime = LocalDateTime.parse(modifyTimeString, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); + if (modifyDatetime.getMonthValue()<=nowMonth) { + if (null!=RELEVANTFILE && !RELEVANTFILE.equals("")) { + if (RELEVANTFILE.contains(FILEID)) { + nowNum += 1; + } + } + if (null!=SUPPORTFILE && !SUPPORTFILE.equals("")) { + if (SUPPORTFILE.contains(FILEID)) { + nowNum += 1; + } + } + } + if (modifyDatetime.getMonthValue()<=lastMonth) { + if (null!=RELEVANTFILE && !RELEVANTFILE.equals("")) { + if (RELEVANTFILE.contains(FILEID)) { + lastNum += 1; + } + } + if (null!=SUPPORTFILE && !SUPPORTFILE.equals("")) { + if (SUPPORTFILE.contains(FILEID)) { + lastNum += 1; + } + } + } + } + } + quoteRate = numberformat.format((float) appearNum / (float) fileTotalNum * 100); + quoteAvg = numberformat.format((float) appearNum / (float) fileRageNum); + quoteAdded = nowNum - lastNum; + quoteDetail = new LinkedHashMap<>(); + quoteDetail.put("quoteAvg",quoteAvg); + quoteDetail.put("quoteAdded",quoteAdded); + ro.put("quoteRate", quoteRate); + ro.put("quoteDetail", quoteDetail); + return ro.toString(); + } else { + ro.ok("暂无文件"); + quoteDetail = new LinkedHashMap<>(); + quoteDetail.put("quoteAvg","0"); + quoteDetail.put("quoteAdded",0); + ro.put("quoteRate", "0"); + ro.put("quoteDetail", quoteDetail); + return ro.toString(); + } + } + +} diff --git a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/FileManagementService4.java b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/FileManagementService4.java new file mode 100644 index 00000000..49b4a324 --- /dev/null +++ b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/FileManagementService4.java @@ -0,0 +1,1128 @@ +package com.awspaas.user.apps.yili.reportform.service; + +import java.sql.Timestamp; +import java.text.NumberFormat; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.time.Period; +import java.time.format.DateTimeFormatter; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryPropertyCache; +import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryPropertyModel; +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.mvc.view.ActionWeb; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.server.RequestParams; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.alibaba.fastjson.JSONObject; +import com.awspaas.user.apps.yili.reportform.util.GetNodesUtil; +import com.awspaas.user.apps.yili.reportform.util.TreeUtil; + +/** + * @author:Lizj + * @create: 2022-06-27 09:41 + * @Description: 文件管理看板 + */ +public class FileManagementService4 extends ActionWeb { + + UserContext _uc; + + public FileManagementService4(UserContext uc) { + super(uc); + _uc = uc; + } + + /** + * @methodName: + * @param: + * @return: + * @description:流程制度类文件总数 + * @auther: Lizj + * @date: 2022/6/27 9:48 + */ + public String fileTotal(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + Integer fileTotal = 0; + Integer processFile = 0; + Integer policyFile = 0; + Integer guideFile = 0; + Integer formFile = 0; + HashMap fileSortMap = new HashMap<>(); + //List fileRowMaps = DBSql.getMaps( "SELECT FILEID,PLMETHODID,POLICYTYPE FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1'"); + List fileRowMaps = DBSql.getMaps("SELECT ID AS FILEID,EXT6 AS PUBDEPT,PLMETHODID,EXT5 AS FILESTATE,EXT3 AS POLICYTYPE FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = '1' AND EXT5 = '1' AND PLMETHODID in ('process.epc','process.flowchart','control.policy','data.form')"); + //List fileRowMaps = DBSql.getMaps( "SELECT FILEID,PLMETHODID,POLICYTYPE FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1'"); + if (null!=fileRowMaps && !fileRowMaps.isEmpty()) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PLMETHODID").equals("process.epc") || fileRowMap.getString("PLMETHODID").equals("process.flowchart")) { + fileTotal += 1; + processFile += 1; + } else if (fileRowMap.getString("PLMETHODID").equals("control.policy")) { + if("I/O_L4".equals(fileRowMap.getString("POLICYTYPE"))) { + guideFile += 1; + }else { + policyFile += 1; + + } + fileTotal += 1; + }else if (fileRowMap.getString("PLMETHODID").equals("data.form")) { + fileTotal += 1; + formFile += 1; + } + } + } + ro.put("fileTotal",fileTotal); + fileSortMap.put("processFile",processFile); + fileSortMap.put("policyFile",policyFile); + fileSortMap.put("guideFile",guideFile); + fileSortMap.put("formFile",formFile); + ro.put("fileSort",fileSortMap); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:制度管理看板筛选条件 文件类型、发布单位、所属领域 + * @auther: Lizj + * @date: 2022/6/27 16:07 + */ + public String queryTerms5(UserContext uc, RequestParams params) { + System.err.println("========queryTerms5======="); + ResponseObject ro = ResponseObject.newOkResponse(); + /*“文件类型”筛选框:流程(包括过程链图和泳道图),制度(包括制度模型中的制度),操作指导(包括制度模型中的操作指导),表单/模板(包括表单模型)*/ + //文件类型 + HashMap fileType = new HashMap<>(); + ArrayList fileTypes = new ArrayList<>(); + fileType = new HashMap(); + fileType.put("termsKey","totalFile"); + fileType.put("termsVal","全部"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey","processFile"); + fileType.put("termsVal","流程"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey","policyFile"); + fileType.put("termsVal","制度"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey","guideFile"); + fileType.put("termsVal","操作指导"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey","formFile"); + fileType.put("termsVal","表单/模板"); + fileTypes.add(fileType); + ro.put("fileTypes",fileTypes); + //发布单位 + List deptMaps = DBSql.getMaps("SELECT ID,PARENTDEPARTMENTID,DEPARTMENTNAME,LAYER,ORDERINDEX FROM ORGDEPARTMENT" + + " WHERE COMPANYID='8911e732-b42a-4556-853f-ad32761bcbee' AND CLOSED='0' AND ID not in ('5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe','e79281b1-2f81-4895-b30e-9f96e9ad0e2c','53d3076d-cd2d-4f5b-bacb-8e93273e9f44','9c795620-93c6-485c-b9fa-93536c988da8','12d42abb-a58f-411b-8c71-0a421a27eafc','65048aee-157f-49f2-a2dc-5903dd26f519')"); + //demo3 + //3e74f14d-852f-4f6f-a809-08a56697f103 + //本地 + //d7087d5b-ab29-4514-a7e7-79379f6842a2 + //正式 + //8911e732-b42a-4556-853f-ad32761bcbee + String nodeType = null; + ArrayList deptNodes = new ArrayList<>(); + for (RowMap deptMap : deptMaps) { + HashMap deptNode = new HashMap<>(); + nodeType = "dept"; + deptNode.put("ID",deptMap.getString("ID")); + deptNode.put("PARENTID",deptMap.getString("PARENTDEPARTMENTID")); + deptNode.put("name",deptMap.getString("DEPARTMENTNAME")); + deptNode.put("ORDERINDEX",deptMap.getString("ORDERINDEX")); + deptNode.put("TLEVEL",deptMap.getString("LAYER")); + deptNode.put("nodeType", nodeType); + deptNodes.add(deptNode); + } + List deptTreeNodes = TreeUtil.buildTree("1",deptNodes,"0","dept","3",null); + //所属领域 + ArrayList frameList = new ArrayList<>(); + ArrayList fieldMaps = new ArrayList<>(); + List L1Maps = DBSql.getMaps("SELECT FRAMEID,FRAMENAME,FRAMETYPE,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMELEVEL=1 AND FRAMETYPE IS NOT NULL "); + String hasRoot = "Y"; + if (null != L1Maps && !L1Maps.isEmpty()) { + for (RowMap l1Map : L1Maps) { + String L1ID = l1Map.getString("FRAMEID"); + frameList = new ArrayList<>(); + frameList = GetNodesUtil.getChildFrame(L1ID, hasRoot, frameList); + fieldMaps.addAll(frameList); + } + } + System.err.println("========fieldMaps========="+fieldMaps); + ArrayList fieldNodes = new ArrayList<>(); + for (Map fieldMap : fieldMaps) { + HashMap fieldNode = new HashMap<>(); + fieldNode.put("ID", String.valueOf(fieldMap.get("FRAMEID"))); + fieldNode.put("PARENTID", String.valueOf(fieldMap.get("FRAMEPARENTID"))); + fieldNode.put("name", String.valueOf(fieldMap.get("FRAMENAME"))); + fieldNode.put("ORDERINDEX", Integer.valueOf(String.valueOf(fieldMap.get("FRAMEORDERINDEX")))); + fieldNode.put("TLEVEL", Integer.valueOf(String.valueOf(fieldMap.get("FRAMELEVEL")))); + fieldNodes.add(fieldNode); + } + List fieldTreeNodes = TreeUtil.buildTree("1",fieldNodes, "process", null, null, null); + ro.put("deptTreeNodes",deptTreeNodes); + ro.put("fieldTreeNodes",fieldTreeNodes); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:制度管理看板 + * @auther: Lizj + * @date: 2022/6/27 16:52 + */ + public String fileStatistics(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + String fileType = params.get("fileType"); + String unit = params.get("unit"); + String field = params.get("field"); + System.err.println("=====field1=======>"+field); + System.err.println("=====unit1=======>"+unit); + System.err.println("=====fileType1=======>"+fileType); + if((UtilString.isNotEmpty(fileType)&&"all".equals(unit))||UtilString.isNotEmpty(fileType)&&"all".equals(field)) { + unit = ""; + field = ""; + } + if((UtilString.isNotEmpty(unit)&&"all".equals(fileType))||UtilString.isNotEmpty(unit)&&"all".equals(field)) { + fileType = ""; + field = ""; + } + if((UtilString.isNotEmpty(field)&&"all".equals(fileType))||UtilString.isNotEmpty(field)&&"all".equals(unit)) { + fileType = ""; + unit = ""; + } + System.err.println("=====field2=======>"+field); + System.err.println("=====unit2=======>"+unit); + System.err.println("=====fileType2=======>"+fileType); + + ArrayList deptIDList = new ArrayList<>(); + ArrayList fieldList = new ArrayList<>(); + // List fileRowMaps = DBSql.getMaps("SELECT ID AS FILEID,EXT6 AS + // PUBDEPT,PLPARENTID,PLMETHODID,EXT3 AS POLICYTYPE,EXT5 AS + // FILESTATE,ISSTOP,ISAPPROVAL FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = + // '1' AND EXT5 = '1' AND PLMETHODID in + // ('process.epc','process.flowchart','control.policy','data.form')"); + List fileRowMaps = DBSql.getMaps( + "SELECT ID AS FILEID,EXT6 AS PUBDEPT,PLPARENTID,PLMETHODID,EXT3 AS POLICYTYPE,EXT5 AS FILESTATE,ISSTOP,ISAPPROVAL,ISPUBLISH FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLMETHODID in ('process.epc','process.flowchart','control.policy','data.form')"); + // List fileRowMaps = DBSql.getMaps("SELECT + // FILEID,PUBDEPT,PLPARENTID,PLMETHODID,POLICYTYPE,FILESTATE,VIEWCOUNT FROM + // BO_EU_PAL_FILE1 WHERE PLMETHODID='process.epc' OR + // PLMETHODID='process.flowchart' OR PLMETHODID='control.policy' OR + // PLMETHODID='data.form'"); + ArrayList fileHandleMaps = new ArrayList<>(); + if (null != fileType && !fileType.equals("")) { + fileHandleMaps = new ArrayList<>(); + if (fileType.equals("totalFile") || fileType.equals("all")) { + for (RowMap fileRowMap : fileRowMaps) { + if ("1".equals(fileRowMap.getString("FILESTATE"))) { + fileHandleMaps.add(fileRowMap); + } + + } + } + if (fileType.equals("processFile")) { + for (RowMap fileRowMap : fileRowMaps) { + if ("1".equals(fileRowMap.getString("ISPUBLISH")) && "1".equals(fileRowMap.getString("FILESTATE")) + && fileRowMap.getString("PLMETHODID").equals("process.epc") + || fileRowMap.getString("PLMETHODID").equals("process.flowchart")) { + fileHandleMaps.add(fileRowMap); + } + } + } + if (fileType.equals("policyFile")) { + for (RowMap fileRowMap : fileRowMaps) { + if ("1".equals(fileRowMap.getString("ISPUBLISH")) && "1".equals(fileRowMap.getString("FILESTATE")) + && fileRowMap.getString("PLMETHODID").equals("control.policy") + && !fileRowMap.getString("POLICYTYPE").equals("I/O_L4")) { + fileHandleMaps.add(fileRowMap); + } + } + } + if (fileType.equals("guideFile")) { + for (RowMap fileRowMap : fileRowMaps) { + if ("1".equals(fileRowMap.getString("ISPUBLISH")) && "1".equals(fileRowMap.getString("FILESTATE")) + && fileRowMap.getString("POLICYTYPE").equals("I/O_L4")) { + fileHandleMaps.add(fileRowMap); + } + } + } + if (fileType.equals("formFile")) { + for (RowMap fileRowMap : fileRowMaps) { + if ("1".equals(fileRowMap.getString("ISPUBLISH")) && "1".equals(fileRowMap.getString("FILESTATE")) + && fileRowMap.getString("PLMETHODID").equals("data.form")) { + fileHandleMaps.add(fileRowMap); + } + } + } + fileRowMaps = fileHandleMaps; + } + String sql = "SELECT count(*) FROM BO_EU_USER_LOGIN_LOG WHERE LOGTYPE = '3'"; + String count = DBSql.getString(sql); + if (null != unit && !unit.equals("")) { + if ("all".equals(unit)) { + for (RowMap fileRowMap : fileRowMaps) { + fileHandleMaps.add(fileRowMap); + } + } else { + String name = SDK.getORGAPI().getDepartmentById(unit).getName(); + String sql2 = "SELECT count(*) FROM BO_EU_USER_LOGIN_LOG WHERE instr(USERDEPTNAME,'" + name + "')>0 "; + count = DBSql.getString(sql2); + fileHandleMaps = new ArrayList<>(); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(unit, deptIDList); + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileHandleMaps.add(fileRowMap); + } + } + } + + } + fileRowMaps = fileHandleMaps; + } + if (null != field && !field.equals("")) { + + if ("all".equals(field)) { + for (RowMap fileRowMap : fileRowMaps) { + fileHandleMaps.add(fileRowMap); + } + } else { + fileHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field, "", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PLPARENTID").equals(fieldID)) { + fileHandleMaps.add(fileRowMap); + } + } + } + + } + fileRowMaps = fileHandleMaps; + } + // 文件状态:已发布、审批中、已失效 查阅总数 + Integer publishedCount = 0; + Integer inApprovalCount = 0; + Integer expiredCount = 0; + Integer consultCount = 0; + + /* + * ExecutorService service = Executors.newFixedThreadPool(1); + * service.execute(new Runnable() { + * + * @Override public void run() { } }); + */ + + if (null != fileRowMaps && fileRowMaps.isEmpty() == false) { + for (RowMap fileRowMap : fileRowMaps) { + String isStop = fileRowMap.getString("ISSTOP"); + String isPublish = fileRowMap.getString("FILESTATE"); + String isAppoval = fileRowMap.getString("ISAPPROVAL"); + String publis = fileRowMap.getString("ISPUBLISH"); + if ("1".equals(publis) && "1".equals(isPublish)) { + publishedCount += 1; + } + if ("1".equals(isAppoval)) { + inApprovalCount++; + } + if ("1".equals(isStop)) { + expiredCount += 1; + } + + } + + if (UtilString.isNotEmpty(fileType)) { + if (fileType.equals("processFile")) { + expiredCount = Integer.parseInt(DBSql.getString( + "SELECT count(*) FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISSTOP ='1' AND PLMETHODID in ('process.epc','process.flowchart')")); + } + if (fileType.equals("policyFile")) { + expiredCount = Integer.parseInt(DBSql.getString( + "SELECT count(*) FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISSTOP ='1' AND EXT3 != 'I/O_L4' AND PLMETHODID ='control.policy'")); + } + if (fileType.equals("guideFile")) { + expiredCount = Integer.parseInt(DBSql.getString( + "SELECT count(*) FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISSTOP ='1' AND EXT3 = 'I/O_L4' AND PLMETHODID ='control.policy'")); + } + if (fileType.equals("formFile")) { + expiredCount = Integer.parseInt(DBSql.getString( + "SELECT count(*) FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISSTOP ='1' AND PLMETHODID ='data.form'")); + } + if(fileType.equals("totalFile")) { + expiredCount = Integer.parseInt(DBSql.getString( + "SELECT count(*) FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISSTOP ='1'")); + } + } + if (UtilString.isNotEmpty(fileType)) { + if (fileType.equals("processFile")) { + inApprovalCount = Integer.parseInt(DBSql.getString( + "SELECT count(*) FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISAPPROVAL ='1' AND PLMETHODID in ('process.epc','process.flowchart')")); + } + if (fileType.equals("policyFile")) { + inApprovalCount = Integer.parseInt(DBSql.getString( + "SELECT count(*) FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISAPPROVAL ='1' AND EXT3 != 'I/O_L4' AND PLMETHODID ='control.policy'")); + } + if (fileType.equals("guideFile")) { + inApprovalCount = Integer.parseInt(DBSql.getString( + "SELECT count(*) FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISAPPROVAL ='1' AND EXT3 = 'I/O_L4' AND PLMETHODID ='control.policy'")); + } + if (fileType.equals("formFile")) { + inApprovalCount = Integer.parseInt(DBSql.getString( + "SELECT count(*) FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISAPPROVAL ='1' AND PLMETHODID ='data.form'")); + } + if(fileType.equals("totalFile")) { + inApprovalCount = Integer.parseInt(DBSql.getString( + "SELECT count(*) FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISAPPROVAL ='1'")); + } + + } + ro.put("publishedCount", publishedCount); + ro.put("inApprovalCount", inApprovalCount); + ro.put("expiredCount", expiredCount); + ro.put("consultCount", count); + } else { + ro.ok("暂无文件"); + publishedCount = 0; + inApprovalCount = 0; + expiredCount = 0; + consultCount = 0; + ro.put("publishedCount", publishedCount); + ro.put("inApprovalCount", inApprovalCount); + ro.put("expiredCount", expiredCount); + ro.put("consultCount", consultCount); + } + return ro.toString(); + } + + + + //获取属性 + public String getArrtValue(String plId,String ArrtKey,String type) { + String arrtValue = ""; + try { + String sql = "select PROPERTYVALUE from APP_ACT_COE_PAL_PROP where PLID = '"+plId+"' and PROPERTYID = '"+ArrtKey+"'"; + String relatFileJson = DBSql.getString(sql); + if(UtilString.isNotEmpty(relatFileJson)) { + JSONObject parseObject = JSONObject.parseObject(relatFileJson); + String fileNames = parseObject.getString("relationShapeText"); + if(UtilString.isNotEmpty(fileNames)) { + arrtValue = fileNames; + } + + } + } catch (Exception e) { + // TODO: handle exception + } + return arrtValue; + + } + + /** + * @methodName: + * @param: + * @return: + * @description:部门文件数量 + * @auther: Lizj + * @date: 2022/6/28 22:43 + */ + public String deptFileCount(UserContext uc, RequestParams params, List fileRowMaps) { + /* 文件数量=当日生效文档总数 */ + ResponseObject ro = ResponseObject.newOkResponse(); + List list = SDK.getBOAPI().query("BO_EU_FILE_OPERATIONNODE").addQuery("TYPE = ", "部门文件数量").list(); + for (BO bo : list) { + ro.put(bo.getString("NAME"), bo.getString("NODEDATA")); + + } + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:部门文件年度更新率 + * @auther: Lizj + * @date: 2022/6/28 22:49 + */ + + public String deptFileYearRenewRate(UserContext uc, RequestParams params,List fileRowMaps) { + /* 年度更新率=(某单位年度新增文件+年度修订文件)/某单位当前文件总数 */ + ResponseObject ro = ResponseObject.newOkResponse(); + List list = SDK.getBOAPI().query("BO_EU_FILE_OPERATIONNODE").addQuery("TYPE = ", "部门文件年度更新率").list(); + for (BO bo : list) { + ro.put(bo.getString("NAME"), bo.getString("NODEDATA")); + + } + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:部门文件年度更新情况 + * @auther: Lizj + * @date: 2022/6/28 22:53 + */ + public String deptFileYearRenewSituation(UserContext uc, RequestParams params) { + /* + * 1)新增数=某单位年度新增文件 一个版本是新增 + * 2)修订数=某单位年度修订文件 大于一个版本是修订 + * 3)废止数=某单位年度废止文件 停用 + */ + ResponseObject ro = ResponseObject.newOkResponse(); + List list = SDK.getBOAPI().query("BO_EU_FILE_OPERATIONNODE").addQuery("TYPE = ", "部门文件年度更新情况").list(); + for (BO bo : list) { + ro.put(bo.getString("NAME"), bo.getString("NODEDATA")); + + } + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:文件发布时间分布筛选条件:发布单位、所属领域 + * @auther: Lizj + * @date: 2022/6/28 22:54 + */ + public String queryTerms6(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + //发布单位 + List deptMaps = DBSql.getMaps("SELECT ID,PARENTDEPARTMENTID,DEPARTMENTNAME,LAYER,ORDERINDEX FROM ORGDEPARTMENT" + + " WHERE COMPANYID='8911e732-b42a-4556-853f-ad32761bcbee' AND CLOSED='0' AND ID not in ('5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe','e79281b1-2f81-4895-b30e-9f96e9ad0e2c','53d3076d-cd2d-4f5b-bacb-8e93273e9f44','9c795620-93c6-485c-b9fa-93536c988da8','12d42abb-a58f-411b-8c71-0a421a27eafc','65048aee-157f-49f2-a2dc-5903dd26f519')"); + //demo3 + //3e74f14d-852f-4f6f-a809-08a56697f103 + //本地 + //d7087d5b-ab29-4514-a7e7-79379f6842a2 + //正式 + //8911e732-b42a-4556-853f-ad32761bcbee + String nodeType = null; + ArrayList deptNodes = new ArrayList<>(); + for (RowMap deptMap : deptMaps) { + HashMap deptNode = new HashMap<>(); + nodeType = "dept"; + deptNode.put("ID",deptMap.getString("ID")); + deptNode.put("PARENTID",deptMap.getString("PARENTDEPARTMENTID")); + deptNode.put("name",deptMap.getString("DEPARTMENTNAME")); + deptNode.put("ORDERINDEX",deptMap.getString("ORDERINDEX")); + deptNode.put("TLEVEL",deptMap.getString("LAYER")); + deptNode.put("nodeType", nodeType); + deptNodes.add(deptNode); + } + List deptTreeNodes = TreeUtil.buildTree("1",deptNodes,"0","dept","3",null); + //所属领域 + ArrayList frameList = new ArrayList<>(); + ArrayList fieldMaps = new ArrayList<>(); + List L1Maps = DBSql.getMaps("SELECT FRAMEID,FRAMENAME,FRAMETYPE,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMELEVEL=1 AND FRAMETYPE IS NOT NULL "); + String hasRoot = "Y"; + if (null != L1Maps && !L1Maps.isEmpty()) { + for (RowMap l1Map : L1Maps) { + String L1ID = l1Map.getString("FRAMEID"); + frameList = new ArrayList<>(); + frameList = GetNodesUtil.getChildFrame(L1ID, hasRoot, frameList); + fieldMaps.addAll(frameList); + } + } + ArrayList fieldNodes = new ArrayList<>(); + for (Map fieldMap : fieldMaps) { + HashMap fieldNode = new HashMap<>(); + fieldNode.put("ID", String.valueOf(fieldMap.get("FRAMEID"))); + fieldNode.put("PARENTID", String.valueOf(fieldMap.get("FRAMEPARENTID"))); + fieldNode.put("name", String.valueOf(fieldMap.get("FRAMENAME"))); + fieldNode.put("ORDERINDEX", Integer.valueOf(String.valueOf(fieldMap.get("FRAMEORDERINDEX")))); + fieldNode.put("TLEVEL", Integer.valueOf(String.valueOf(fieldMap.get("FRAMELEVEL")))); + fieldNodes.add(fieldNode); + } + List fieldTreeNodes = TreeUtil.buildTree("1",fieldNodes, "process", null, null, null); + ro.put("deptTreeNodes",deptTreeNodes); + ro.put("fieldTreeNodes",fieldTreeNodes); + return ro.toString(); + } + /** + * @methodName: + * @param: + * @return: + * @throws ParseException + * @description:文件发布时间分布 + * @auther: Lizj + * @date: 2022/6/28 22:57 + */ + public String filePubTimeDistribution(UserContext uc, RequestParams params) throws ParseException { + ResponseObject ro = ResponseObject.newOkResponse(); + String unit = params.get("unit"); + String field = params.get("field"); + ArrayList deptIDList = new ArrayList<>(); + ArrayList fieldList = new ArrayList<>(); + List fileMaps = DBSql.getMaps("SELECT ID AS FILEID,PLMETHODID,EXT3 AS POLICYTYPE, EXT6 AS PUBDEPT,PUBLISHDATE AS PUBDATETIME,EXT5 AS FILESTATE,PLPARENTID FROM APP_ACT_COE_PAL_REPOSITORY WHERE ISPUBLISH = 1 AND ISSTOP =0 AND EXT5 = '1' AND PLMETHODID in ('process.epc','control.policy','process.flowchart','data.form')"); + // List fileMaps = DBSql.getMaps("SELECT FILEID,PLMETHODID,POLICYTYPE,PUBDATETIME,PUBDEPT,PLPARENTID FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1'"); + ArrayList fileHandleMaps = new ArrayList<>(); + // if(UtilString.isEmpty(unit)||UtilString.isEmpty(field)) { + + if (UtilString.isNotEmpty(unit)) { + if("all".equals(unit)) { + for (RowMap fileRowMap : fileMaps) { + fileHandleMaps.add(fileRowMap); + } + }else { + fileHandleMaps = new ArrayList<>(); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(unit, deptIDList); + for (String deptID : deptIDList) { + for (RowMap fileMap : fileMaps) { + if (fileMap.getString("PUBDEPT").contains(deptID)) { + fileHandleMaps.add(fileMap); + } + } + } + + } + fileMaps = fileHandleMaps; + } + if (UtilString.isNotEmpty(field)) { + if("all".equals(field)) { + for (RowMap fileRowMap : fileMaps) { + fileHandleMaps.add(fileRowMap); + } + }else { + fileHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap fileMap : fileMaps) { + if (fileMap.getString("PLPARENTID").equals(fieldID)) { + fileHandleMaps.add(fileMap); + } + } + } + } + fileMaps = fileHandleMaps; + } + LocalDate nowDate = LocalDate.now(); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); + //6个月内fileMaps + ArrayList month6InFileMaps = new ArrayList<>(); + //6个月~1年fileMaps + ArrayList year1InFileMaps = new ArrayList<>(); + //1年~2年fileMaps + ArrayList year2InFileMaps = new ArrayList<>(); + //2年~3年fileMaps + ArrayList year3InFileMaps = new ArrayList<>(); + //3年以上+fileMaps + ArrayList year3OutFileMaps = new ArrayList<>(); + + ArrayList fileCountMaps = new ArrayList<>(); + if (null!=fileMaps && fileMaps.isEmpty()==false) { + for (RowMap fileMap : fileMaps) { + try { + LocalDate PUBDATETIME = null; + String publishDate = ""; + String plId = fileMap.getString("FILEID"); + String moethodId = fileMap.getString("PLMETHODID"); + List repositoryPropertyList = PALRepositoryPropertyCache + .getPropertyByPlId(plId); + if (repositoryPropertyList != null && repositoryPropertyList.size() > 0) { + for (PALRepositoryPropertyModel repositoryPropertyModel : repositoryPropertyList) { + if("data.form".equals(moethodId)) { + if ("form_effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + } + }else { + if ("effective_date".equals(repositoryPropertyModel.getPropertyId())) { + publishDate = repositoryPropertyModel.getPropertyValue(); + + } + } + } + } + + if(UtilString.isNotEmpty(publishDate)) { + if(publishDate.length()>11) { + publishDate = publishDate.substring(0, 10); + } + if(publishDate.contains("年")) { + //PUBDATETIME = LocalDate.parse(publishDate.substring(0,9), DateTimeFormatter.ofPattern("yyyy年MM月dd")); + }else if(publishDate.contains("-")) { + PUBDATETIME = LocalDate.parse(publishDate); + } + + } + if(PUBDATETIME==null) { + continue; + } + Period betweenDate = Period.between(PUBDATETIME, nowDate); + if (betweenDate.getMonths()<6) { + month6InFileMaps.add(fileMap); + } + if (betweenDate.getMonths()>=6 && betweenDate.getYears()<1) { + year1InFileMaps.add(fileMap); + } + if(betweenDate.getYears()>=1 && betweenDate.getYears()<2) { + year2InFileMaps.add(fileMap); + } + if(betweenDate.getYears()>=2 && betweenDate.getYears()<3) { + year3InFileMaps.add(fileMap); + } + if(betweenDate.getYears()>=3) { + year3OutFileMaps.add(fileMap); + } + + } catch (Exception e) { + // TODO: handle exception + } + } + } else { + ro.ok("暂无文件"); + } + + Integer processFileCount = 0; + Integer policyFileCount = 0; + Integer guideFileCount = 0; + Integer formFileCount = 0; + Map fileCountMap = new LinkedHashMap<>(); + if (null!=month6InFileMaps && !month6InFileMaps.isEmpty()) { + for (RowMap month6InFileMap : month6InFileMaps) { + if (month6InFileMap.getString("PLMETHODID").equals("process.epc") || month6InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (month6InFileMap.getString("PLMETHODID").equals("control.policy") && (month6InFileMap.getString("POLICYTYPE").equals("regulation") || null==month6InFileMap.getString("POLICYTYPE") || month6InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (month6InFileMap.getString("PLMETHODID").equals("control.policy") && month6InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (month6InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap.put("timeSlot","【6个月内】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year1InFileMaps && !year1InFileMaps.isEmpty()) { + for (RowMap year1InFileMap : year1InFileMaps) { + if (year1InFileMap.getString("PLMETHODID").equals("process.epc") || year1InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year1InFileMap.getString("PLMETHODID").equals("control.policy") && (year1InFileMap.getString("POLICYTYPE").equals("regulation") || null==year1InFileMap.getString("POLICYTYPE") || year1InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year1InFileMap.getString("PLMETHODID").equals("control.policy") && year1InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year1InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【6个月~1年】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year2InFileMaps && !year2InFileMaps.isEmpty()) { + for (RowMap year2InFileMap : year2InFileMaps) { + if (year2InFileMap.getString("PLMETHODID").equals("process.epc") || year2InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year2InFileMap.getString("PLMETHODID").equals("control.policy") && (year2InFileMap.getString("POLICYTYPE").equals("regulation") || null==year2InFileMap.getString("POLICYTYPE") || year2InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year2InFileMap.getString("PLMETHODID").equals("control.policy") && year2InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year2InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【1年~2年】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year3InFileMaps && !year3InFileMaps.isEmpty()) { + for (RowMap year3InFileMap : year3InFileMaps) { + if (year3InFileMap.getString("PLMETHODID").equals("process.epc") || year3InFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year3InFileMap.getString("PLMETHODID").equals("control.policy") && (year3InFileMap.getString("POLICYTYPE").equals("regulation") || null==year3InFileMap.getString("POLICYTYPE") || year3InFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year3InFileMap.getString("PLMETHODID").equals("control.policy") && year3InFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year3InFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【2年~3年】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + processFileCount = 0; + policyFileCount = 0; + guideFileCount = 0; + formFileCount = 0; + if (null!=year3OutFileMaps && !year3OutFileMaps.isEmpty()) { + for (RowMap year3OutFileMap : year3OutFileMaps) { + if (year3OutFileMap.getString("PLMETHODID").equals("process.epc") || year3OutFileMap.getString("PLMETHODID").equals("process.flowchart")) { + processFileCount += 1; + } else if (year3OutFileMap.getString("PLMETHODID").equals("control.policy") && (year3OutFileMap.getString("POLICYTYPE").equals("regulation") || null==year3OutFileMap.getString("POLICYTYPE") || year3OutFileMap.getString("POLICYTYPE").equals(""))) { + policyFileCount += 1; + } else if (year3OutFileMap.getString("PLMETHODID").equals("control.policy") && year3OutFileMap.getString("POLICYTYPE").equals("I/O_L4")) { + guideFileCount += 1; + } else if (year3OutFileMap.getString("PLMETHODID").equals("data.form")) { + formFileCount += 1; + } + } + } + fileCountMap = new LinkedHashMap(); + fileCountMap.put("timeSlot","【3年以上】"); + fileCountMap.put("processFileCount",processFileCount); + fileCountMap.put("policyFileCount",policyFileCount); + fileCountMap.put("guideFileCount",guideFileCount); + fileCountMap.put("formFileCount",formFileCount); + fileCountMaps.add(fileCountMap); + + ro.put("fileCount",fileCountMaps); + /*}else { + List list = SDK.getBOAPI().query("BO_EU_FILE_OPERATIONNODE").addQuery("TYPE = ", "文件发布时间分布").list(); + for (BO bo : list) { + ro.put(bo.getString("NAME"), bo.getString("NODEDATA")); + + } + }*/ + + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:引用情况分析筛选条件:发布单位、所属领域、文件类型 + * @auther: Lizj + * @date: 2022/6/28 23:00 + */ + public String queryTerms7(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + //发布单位 + List deptMaps = DBSql.getMaps("SELECT ID,PARENTDEPARTMENTID,DEPARTMENTNAME,LAYER,ORDERINDEX FROM ORGDEPARTMENT" + + " WHERE COMPANYID='8911e732-b42a-4556-853f-ad32761bcbee' AND CLOSED='0' AND ID not in ('5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe','e79281b1-2f81-4895-b30e-9f96e9ad0e2c','53d3076d-cd2d-4f5b-bacb-8e93273e9f44','9c795620-93c6-485c-b9fa-93536c988da8','12d42abb-a58f-411b-8c71-0a421a27eafc','65048aee-157f-49f2-a2dc-5903dd26f519')"); + //demo3 + //3e74f14d-852f-4f6f-a809-08a56697f103 + //本地 + //d7087d5b-ab29-4514-a7e7-79379f6842a2 + //正式 + //8911e732-b42a-4556-853f-ad32761bcbee + String nodeType = null; + ArrayList deptNodes = new ArrayList<>(); + for (RowMap deptMap : deptMaps) { + HashMap deptNode = new HashMap<>(); + nodeType = "dept"; + deptNode.put("ID",deptMap.getString("ID")); + deptNode.put("PARENTID",deptMap.getString("PARENTDEPARTMENTID")); + deptNode.put("name",deptMap.getString("DEPARTMENTNAME")); + deptNode.put("ORDERINDEX",deptMap.getString("ORDERINDEX")); + deptNode.put("TLEVEL",deptMap.getString("LAYER")); + deptNode.put("nodeType", nodeType); + deptNodes.add(deptNode); + } + List deptTreeNodes = TreeUtil.buildTree("1",deptNodes,"0","dept","3",null); + //所属领域 + ArrayList frameList = new ArrayList<>(); + ArrayList fieldMaps = new ArrayList<>(); + List L1Maps = DBSql.getMaps("SELECT FRAMEID,FRAMENAME,FRAMETYPE,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMELEVEL=1 AND FRAMETYPE IS NOT NULL "); + String hasRoot = "Y"; + if (null != L1Maps && !L1Maps.isEmpty()) { + for (RowMap l1Map : L1Maps) { + String L1ID = l1Map.getString("FRAMEID"); + frameList = new ArrayList<>(); + frameList = GetNodesUtil.getChildFrame(L1ID, hasRoot, frameList); + fieldMaps.addAll(frameList); + } + } + ArrayList fieldNodes = new ArrayList<>(); + for (Map fieldMap : fieldMaps) { + HashMap fieldNode = new HashMap<>(); + fieldNode.put("ID", String.valueOf(fieldMap.get("FRAMEID"))); + fieldNode.put("PARENTID", String.valueOf(fieldMap.get("FRAMEPARENTID"))); + fieldNode.put("name", String.valueOf(fieldMap.get("FRAMENAME"))); + fieldNode.put("ORDERINDEX", Integer.valueOf(String.valueOf(fieldMap.get("FRAMEORDERINDEX")))); + fieldNode.put("TLEVEL", Integer.valueOf(String.valueOf(fieldMap.get("FRAMELEVEL")))); + fieldNodes.add(fieldNode); + } + List fieldTreeNodes = TreeUtil.buildTree("1",fieldNodes, "process", null, null, null); + ro.put("deptTreeNodes",deptTreeNodes); + ro.put("fieldTreeNodes",fieldTreeNodes); + //文件类型 + HashMap fileType = new HashMap<>(); + ArrayList fileTypes = new ArrayList<>(); + fileType = new HashMap(); + fileType.put("termsKey", "totalFile"); + fileType.put("termsVal", "全部"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey", "processFile"); + fileType.put("termsVal", "流程"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey", "policyFile"); + fileType.put("termsVal", "制度"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey", "guideFile"); + fileType.put("termsVal", "操作指导"); + fileTypes.add(fileType); + fileType = new HashMap(); + fileType.put("termsKey", "formFile"); + fileType.put("termsVal", "表单/模板"); + fileTypes.add(fileType); + ro.put("fileTypes", fileTypes); + + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:引用情况分析 + * @auther: Lizj + * @date: 2022/6/28 23:03 + */ + public String citationAnalysis(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + String unit = params.get("unit"); + String field = params.get("field"); + String fileType = params.get("fileType"); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + ArrayList deptIDList = new ArrayList<>(); + ArrayList fieldList = new ArrayList<>(); + List fileRowMaps = DBSql.getMaps("SELECT FILEID,PLPARENTID,PLMETHODID,POLICYTYPE,PLPARENTID,PUBDEPT,MODIFYDATETIME,RELEVANTFILE,SUPPORTFILE FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1'"); + List fileRowMaps1 = fileRowMaps; + ArrayList fileHandleMaps = new ArrayList<>(); + if (null!=fileType && !fileType.equals("")) { + fileHandleMaps = new ArrayList<>(); + if (fileType.equals("totalFile")||fileType.equals("all")) { + for (RowMap fileRowMap1 : fileRowMaps1) { + fileHandleMaps.add(fileRowMap1); + } + } + if (fileType.equals("processFile")) { + for (RowMap fileRowMap1 : fileRowMaps1) { + if (fileRowMap1.getString("PLMETHODID").equals("process.epc") || fileRowMap1.getString("PLMETHODID").equals("process.flowchart")) { + fileHandleMaps.add(fileRowMap1); + } + } + } + if (fileType.equals("policyFile")) { + for (RowMap fileRowMap1 : fileRowMaps1) { + if (fileRowMap1.getString("PLMETHODID").equals("control.policy") && (fileRowMap1.getString("POLICYTYPE").equals("regulation") || null==fileRowMap1.getString("POLICYTYPE") || fileRowMap1.getString("POLICYTYPE").equals(""))) { + fileHandleMaps.add(fileRowMap1); + } + } + } + if (fileType.equals("guideFile")) { + for (RowMap fileRowMap1 : fileRowMaps1) { + if (fileRowMap1.getString("PLMETHODID").equals("control.policy") && fileRowMap1.getString("POLICYTYPE").equals("I/O_L4")) { + fileHandleMaps.add(fileRowMap1); + } + } + } + if (fileType.equals("formFile")) { + for (RowMap fileRowMap1 : fileRowMaps1) { + if (fileRowMap1.getString("PLMETHODID").equals("data.form")) { + fileHandleMaps.add(fileRowMap1); + } + } + } + fileRowMaps1 = fileHandleMaps; + } + if (null!=unit && !unit.equals("")) { + if("all".equals(unit)) { + for (RowMap fileRowMap1 : fileRowMaps1) { + fileHandleMaps.add(fileRowMap1); + } + }else { + fileHandleMaps = new ArrayList<>(); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(unit, deptIDList); + for (String deptID : deptIDList) { + for (RowMap fileRowMap1 : fileRowMaps1) { + if (fileRowMap1.getString("PUBDEPT").contains(deptID)) { + fileHandleMaps.add(fileRowMap1); + } + } + } + + } + fileRowMaps1 = fileHandleMaps; + } + if (null!=field && !field.equals("")) { + fileHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap fileRowMap1 : fileRowMaps1) { + if (fileRowMap1.getString("PLPARENTID").equals(fieldID)) { + fileHandleMaps.add(fileRowMap1); + } + } + } + fileRowMaps1 = fileHandleMaps; + } + + /*1)文件引用率=某范围中文件出现在其他文件的“相关文件”“支持文件”字段的次数总和/所有文件总数 + 2)平均被引用次数=某范围中文件出现在其他文件的“相关文件”“支持文件”字段的次数总和/对应范围的文件总数 + 3)本月新增引用次数=本月某范围中文件出现在其他文件的“相关文件”“支持文件”字段的次数总和 减去 上月某范围中文件出现在其他文件的“相关文件”“支持文件”字段的次数总和*/ + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + Integer appearNum = 0; + Integer fileTotalNum = fileRowMaps.size(); + Integer fileRageNum = fileRowMaps1.size(); + Integer lastNum = 0; + Integer nowNum = 0; + LinkedHashMap quoteDetail = new LinkedHashMap<>(); + String quoteRate = "0"; + String quoteAvg = "0"; + Integer quoteAdded = 0; + String quoteAddedString = "0"; + //本月、上月 + LocalDate nowDate = LocalDate.now(); + int nowMonth = nowDate.getMonthValue(); + int lastMonth = nowDate.minusMonths(1).getMonthValue(); + if ((null==fileType || fileType.equals("")) && (null==unit || unit.equals("")) && (null==field || field.equals(""))) { + appearNum = DBSql.getInt("SELECT COUNTOFGROUP AS appearNum FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='appearNum' AND GROUPIDEXT1='total'", "appearNum"); + lastNum = DBSql.getInt("SELECT COUNTOFGROUP AS lastNum FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='lastNum' AND GROUPIDEXT1='total'", "lastNum"); + nowNum = DBSql.getInt("SELECT COUNTOFGROUP AS nowNum FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='nowNum' AND GROUPIDEXT1='total'", "nowNum"); + if (fileTotalNum!=0) { + quoteRate = numberformat.format((float) appearNum / (float) fileTotalNum * 100); + } else { + quoteRate = "0"; + } + if (fileRageNum!=0) { + quoteAvg = numberformat.format((float) appearNum / (float) fileRageNum); + } else { + quoteAvg ="0"; + } + quoteAdded = nowNum - lastNum; + + if (quoteAdded>=100) { + quoteAddedString = numberformat.format((float) quoteAdded / 10); + } else if (quoteAdded>=1000) { + quoteAddedString = numberformat.format((float) quoteAdded / 100); + } else if (quoteAdded>=10000) { + quoteAddedString = numberformat.format((float) quoteAdded / 1000); + } + quoteDetail = new LinkedHashMap<>(); + quoteDetail.put("quoteAvg",quoteAvg); + quoteDetail.put("quoteAdded",quoteAddedString); + ro.put("quoteRate", quoteRate); + ro.put("quoteDetail", quoteDetail); + return ro.toString(); + } + if (null!=fileRowMaps1 && fileRowMaps1.isEmpty()==false) { + for (RowMap fileRowMap1 : fileRowMaps1) { + String FILEID = fileRowMap1.getString("FILEID"); + for (RowMap fileRowMap : fileRowMaps) { + String RELEVANTFILE = fileRowMap.getString("RELEVANTFILE"); + String SUPPORTFILE = fileRowMap.getString("SUPPORTFILE"); + if (null!=RELEVANTFILE && !RELEVANTFILE.equals("")) { + if (RELEVANTFILE.contains(FILEID)) { + appearNum += 1; + } + } + if (null!=SUPPORTFILE && !SUPPORTFILE.equals("")) { + if (SUPPORTFILE.contains(FILEID)) { + appearNum += 1; + } + } + Timestamp MODIFYDATETIME = fileRowMap.getTimestamp("MODIFYDATETIME"); + String modifyTimeString= sdf.format(MODIFYDATETIME); + LocalDateTime modifyDatetime = LocalDateTime.parse(modifyTimeString, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); + if (modifyDatetime.getMonthValue()<=nowMonth) { + if (null!=RELEVANTFILE && !RELEVANTFILE.equals("")) { + if (RELEVANTFILE.contains(FILEID)) { + nowNum += 1; + } + } + if (null!=SUPPORTFILE && !SUPPORTFILE.equals("")) { + if (SUPPORTFILE.contains(FILEID)) { + nowNum += 1; + } + } + } + if (modifyDatetime.getMonthValue()<=lastMonth) { + if (null!=RELEVANTFILE && !RELEVANTFILE.equals("")) { + if (RELEVANTFILE.contains(FILEID)) { + lastNum += 1; + } + } + if (null!=SUPPORTFILE && !SUPPORTFILE.equals("")) { + if (SUPPORTFILE.contains(FILEID)) { + lastNum += 1; + } + } + } + } + } + quoteRate = numberformat.format((float) appearNum / (float) fileTotalNum * 100); + quoteAvg = numberformat.format((float) appearNum / (float) fileRageNum); + quoteAdded = nowNum - lastNum; + quoteDetail = new LinkedHashMap<>(); + quoteDetail.put("quoteAvg",quoteAvg); + quoteDetail.put("quoteAdded",quoteAdded); + ro.put("quoteRate", quoteRate); + ro.put("quoteDetail", quoteDetail); + return ro.toString(); + } else { + ro.ok("暂无文件"); + quoteDetail = new LinkedHashMap<>(); + quoteDetail.put("quoteAvg","0"); + quoteDetail.put("quoteAdded",0); + ro.put("quoteRate", "0"); + ro.put("quoteDetail", quoteDetail); + return ro.toString(); + } + } + +} diff --git a/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/ProcessPubService2.java b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/ProcessPubService2.java new file mode 100644 index 00000000..f9055fbe --- /dev/null +++ b/com.awspaas.user.apps.yili.reportform/src/com/awspaas/user/apps/yili/reportform/service/ProcessPubService2.java @@ -0,0 +1,1896 @@ +package com.awspaas.user.apps.yili.reportform.service; + +import java.text.NumberFormat; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.TreeMap; +import java.util.stream.Collectors; + +import com.actionsoft.bpms.bo.engine.BO; +import com.actionsoft.bpms.commons.database.RowMap; +import com.actionsoft.bpms.commons.mvc.view.ActionWeb; +import com.actionsoft.bpms.commons.mvc.view.ResponseObject; +import com.actionsoft.bpms.org.model.UserModel; +import com.actionsoft.bpms.server.RequestParams; +import com.actionsoft.bpms.server.UserContext; +import com.actionsoft.bpms.util.DBSql; +import com.actionsoft.bpms.util.UtilString; +import com.actionsoft.sdk.local.SDK; +import com.awspaas.user.apps.yili.reportform.util.GetNodesUtil; +import com.awspaas.user.apps.yili.reportform.util.TreeUtil; + +import net.sf.json.JSONObject; + + +/** + * @author:Lizj + * @create: 2022-06-14 10:32 + * @Description: 流程发布平台-流程管理看板 + */ +public class ProcessPubService2 extends ActionWeb { + + + private static final String Map = null; + UserContext _uc; + + public ProcessPubService2(UserContext uc) { + super(uc); + _uc = uc; + } + + /** + * @methodName: + * @param: + * @return: + * @description:流程制度覆盖率总量 + * @auther: Lizj + * @date: 2022/6/15 11:20 + */ + public String processTotalCount(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + //流程、制度总数、覆盖率 + Integer bpmn2TotalNum = DBSql.getInt("SELECT COUNTOFGROUP AS bpmn2TotalNum FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='bpmn2TotalNum'", "bpmn2TotalNum"); + Integer policyTotalNum = DBSql.getInt("SELECT COUNTOFGROUP AS policyTotalNum FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='policyTotalNum'", "policyTotalNum"); + String coverageTotal = DBSql.getString("SELECT COUNTOFGROUP AS coverageTotal FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='coveragePoCTotal'", "coverageTotal"); + ro.put("bpmn2TotalNum", bpmn2TotalNum); + ro.put("policyTotalNum", policyTotalNum); + ro.put("coverage", coverageTotal); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:表格部分下拉查询条件 + * @auther: Lizj + * @date: 2022/6/15 22:20 + */ + public String queryTerms1(UserContext uc, RequestParams params) { + /*文件/要素类型:流程制度、绩效、系统*/ + ResponseObject ro = ResponseObject.newOkResponse(); + HashMap termsMap = new HashMap<>(); + ArrayList termsMaps = new ArrayList<>(); + termsMap.put("termsKey", "process"); + termsMap.put("termsVal", "流程制度"); + termsMaps.add(termsMap); + termsMap = new HashMap(); + termsMap.put("termsKey", "achievements"); + termsMap.put("termsVal", "绩效"); + termsMaps.add(termsMap); + termsMap = new HashMap(); + termsMap.put("termsKey", "systemnode"); + termsMap.put("termsVal", "系统"); + termsMaps.add(termsMap); + ro.put("terms1", termsMaps); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:流程管理看板表格数据 + * @auther: Lizj + * @date: 2022/6/15 11:16 + */ + public String processList(UserContext uc, RequestParams params) { +/* 流程制度覆盖率=单L1下有流程或制度的L2和L3架构个数/单L1下L2和L3架构总数 + + 末级流程绩效覆盖率=单L1下末级流程中已经设计流程绩效指标的个数/单L1末级流程总数 + + 信息系统节点覆盖率=单L1下末级流程活动节点中系统类型节点数/单L1活动节点总数*/ + ResponseObject ro = ResponseObject.newOkResponse(); + //定义返回数据 + HashMap originalMap = new HashMap<>(); + ArrayList originalMaps = new ArrayList<>(); + ArrayList returnDataMaps = new ArrayList<>(); + String terms = params.get("terms"); + List L1Maps = DBSql.getMaps("SELECT FRAMEID,FRAMENAME,FRAMETYPE,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMELEVEL=1 AND FRAMETYPE IS NOT NULL ORDER BY TO_NUMBER(FRAMEORDERINDEX) ASC"); + if (terms == null || terms.equals("")) { + //默认展示 + String[] headtop = {"", "", "流程(个)", "制度(个)", "覆盖率(%)"}; + List l2ol3BPMN2NUMSUMMaps = DBSql.getMaps("SELECT GROUPIDEXT1,COUNTOFGROUP FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='l2ol3BPMN2NUMSUM'"); + List l2ol3POLICYNUMSUMMaps = DBSql.getMaps("SELECT GROUPIDEXT1,COUNTOFGROUP FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='l2ol3POLICYNUMSUM'"); + List coveragePoCMaps = DBSql.getMaps("SELECT GROUPIDEXT1,COUNTOFGROUP FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='coveragePoC'"); + if (null != L1Maps && !L1Maps.isEmpty()) { + for (RowMap l1Map : L1Maps) { + String FRAMEID = l1Map.getString("FRAMEID"); + String FRAMENAME = l1Map.getString("FRAMENAME"); + String FRAMETYPE = l1Map.getString("FRAMETYPE"); + Integer FRAMEORDERINDEX = l1Map.getInt("FRAMEORDERINDEX"); + Integer l2ol3BPMN2NUMSUM = 0; + Integer l2ol3POLICYNUMSUM = 0; + String coveragePoC = null; + if (null != l2ol3BPMN2NUMSUMMaps && !l2ol3BPMN2NUMSUMMaps.isEmpty()) { + for (RowMap l2ol3BPMN2NUMSUMMap : l2ol3BPMN2NUMSUMMaps) { + if (FRAMEID.equals(l2ol3BPMN2NUMSUMMap.getString("GROUPIDEXT1"))) { + l2ol3BPMN2NUMSUM = l2ol3BPMN2NUMSUMMap.getInt("COUNTOFGROUP"); + } + } + } + if (null != l2ol3POLICYNUMSUMMaps && !l2ol3POLICYNUMSUMMaps.isEmpty()) { + for (RowMap l2ol3POLICYNUMSUMMap : l2ol3POLICYNUMSUMMaps) { + if (FRAMEID.equals(l2ol3POLICYNUMSUMMap.getString("GROUPIDEXT1"))) { + l2ol3POLICYNUMSUM = l2ol3POLICYNUMSUMMap.getInt("COUNTOFGROUP"); + } + } + } + if (null != coveragePoCMaps && !coveragePoCMaps.isEmpty()) { + for (RowMap coveragePoCMap : coveragePoCMaps) { + if (FRAMEID.equals(coveragePoCMap.getString("GROUPIDEXT1"))) { + coveragePoC = coveragePoCMap.getString("COUNTOFGROUP"); + } + } + } + originalMap = new HashMap<>(); + originalMap.put("PLNAME", FRAMENAME); + originalMap.put("l2ol3BPMN2NUM", l2ol3BPMN2NUMSUM); + originalMap.put("l2ol3POLICYNUM", l2ol3POLICYNUMSUM); + originalMap.put("coverage", coveragePoC); + originalMap.put("groupID", FRAMETYPE); + originalMaps.add(originalMap); + } + } + Map> dataGroup = originalMaps.stream(). + collect(Collectors.groupingBy(original -> "group" + original.get("groupID").toString(), TreeMap::new, Collectors.toList())); + for (String groupID : dataGroup.keySet()) { + List dataMapstoGroupID = dataGroup.get(groupID); + HashMap column1Map = new HashMap<>(); + HashMap column2Map = new HashMap<>(); + HashMap column3Map = new HashMap<>(); + HashMap column4Map = new HashMap<>(); + ArrayList column1Maps = new ArrayList<>(); + ArrayList column2Maps = new ArrayList<>(); + ArrayList column3Maps = new ArrayList<>(); + ArrayList column4Maps = new ArrayList<>(); + HashMap returnDataMap = new HashMap<>(); + for (Map dataMap : dataMapstoGroupID) { + column1Map = new HashMap(); + column1Map.put("name", dataMap.get("PLNAME")); + column1Maps.add(column1Map); + column2Map = new HashMap(); + column2Map.put("name", dataMap.get("l2ol3BPMN2NUM")); + column2Maps.add(column2Map); + column3Map = new HashMap(); + column3Map.put("name", dataMap.get("l2ol3POLICYNUM")); + column3Maps.add(column3Map); + column4Map = new HashMap(); + column4Map.put("name", dataMap.get("coverage")); + column4Maps.add(column4Map); + if (dataMap.get("groupID").equals("1")) { + returnDataMap.put("leftname", "战略类流程"); + } else if (dataMap.get("groupID").equals("2")) { + returnDataMap.put("leftname", "运营类流程"); + } else if (dataMap.get("groupID").equals("3")) { + returnDataMap.put("leftname", "支持类流程"); + } + } + returnDataMap.put("secondcont", column1Maps); + returnDataMap.put("l2ol3BPMN2NUM", column2Maps); + returnDataMap.put("l2ol3POLICYNUM", column3Maps); + returnDataMap.put("coverage", column4Maps); + returnDataMaps.add(returnDataMap); + } + ro.put("headtop", headtop); + ro.put("content", returnDataMaps); + } else if (terms.equals("process")) { + //流程制度 + String[] headtop = {"", "", "流程(个)", "制度(个)", "覆盖率(%)"}; + List l2ol3BPMN2NUMSUMMaps = DBSql.getMaps("SELECT GROUPIDEXT1,COUNTOFGROUP FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='l2ol3BPMN2NUMSUM'"); + List l2ol3POLICYNUMSUMMaps = DBSql.getMaps("SELECT GROUPIDEXT1,COUNTOFGROUP FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='l2ol3POLICYNUMSUM'"); + List coveragePoCMaps = DBSql.getMaps("SELECT GROUPIDEXT1,COUNTOFGROUP FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='coveragePoC'"); + if (null != L1Maps && !L1Maps.isEmpty()) { + for (RowMap l1Map : L1Maps) { + String FRAMEID = l1Map.getString("FRAMEID"); + String FRAMENAME = l1Map.getString("FRAMENAME"); + String FRAMETYPE = l1Map.getString("FRAMETYPE"); + Integer FRAMEORDERINDEX = l1Map.getInt("FRAMEORDERINDEX"); + Integer l2ol3BPMN2NUMSUM = 0; + Integer l2ol3POLICYNUMSUM = 0; + String coveragePoC = null; + if (null != l2ol3BPMN2NUMSUMMaps && !l2ol3BPMN2NUMSUMMaps.isEmpty()) { + for (RowMap l2ol3BPMN2NUMSUMMap : l2ol3BPMN2NUMSUMMaps) { + if (FRAMEID.equals(l2ol3BPMN2NUMSUMMap.getString("GROUPIDEXT1"))) { + l2ol3BPMN2NUMSUM = l2ol3BPMN2NUMSUMMap.getInt("COUNTOFGROUP"); + } + } + } + if (null != l2ol3POLICYNUMSUMMaps && !l2ol3POLICYNUMSUMMaps.isEmpty()) { + for (RowMap l2ol3POLICYNUMSUMMap : l2ol3POLICYNUMSUMMaps) { + if (FRAMEID.equals(l2ol3POLICYNUMSUMMap.getString("GROUPIDEXT1"))) { + l2ol3POLICYNUMSUM = l2ol3POLICYNUMSUMMap.getInt("COUNTOFGROUP"); + } + } + } + if (null != coveragePoCMaps && !coveragePoCMaps.isEmpty()) { + for (RowMap coveragePoCMap : coveragePoCMaps) { + if (FRAMEID.equals(coveragePoCMap.getString("GROUPIDEXT1"))) { + coveragePoC = coveragePoCMap.getString("COUNTOFGROUP"); + } + } + } + originalMap = new HashMap<>(); + originalMap.put("PLNAME", FRAMENAME); + originalMap.put("l2ol3BPMN2NUM", l2ol3BPMN2NUMSUM); + originalMap.put("l2ol3POLICYNUM", l2ol3POLICYNUMSUM); + originalMap.put("coverage", coveragePoC); + originalMap.put("groupID", FRAMETYPE); + originalMaps.add(originalMap); + } + } + Map> dataGroup = originalMaps.stream(). + collect(Collectors.groupingBy(original -> "group" + original.get("groupID").toString(), TreeMap::new, Collectors.toList())); + for (String groupID : dataGroup.keySet()) { + List dataMapstoGroupID = dataGroup.get(groupID); + HashMap column1Map = new HashMap<>(); + HashMap column2Map = new HashMap<>(); + HashMap column3Map = new HashMap<>(); + HashMap column4Map = new HashMap<>(); + ArrayList column1Maps = new ArrayList<>(); + ArrayList column2Maps = new ArrayList<>(); + ArrayList column3Maps = new ArrayList<>(); + ArrayList column4Maps = new ArrayList<>(); + HashMap returnDataMap = new HashMap<>(); + for (Map dataMap : dataMapstoGroupID) { + column1Map = new HashMap(); + column1Map.put("name", dataMap.get("PLNAME")); + column1Maps.add(column1Map); + column2Map = new HashMap(); + column2Map.put("name", dataMap.get("l2ol3BPMN2NUM")); + column2Maps.add(column2Map); + column3Map = new HashMap(); + column3Map.put("name", dataMap.get("l2ol3POLICYNUM")); + column3Maps.add(column3Map); + column4Map = new HashMap(); + column4Map.put("name", dataMap.get("coverage")); + column4Maps.add(column4Map); + if (dataMap.get("groupID").equals("1")) { + returnDataMap.put("leftname", "战略类流程"); + } else if (dataMap.get("groupID").equals("2")) { + returnDataMap.put("leftname", "运营类流程"); + } else if (dataMap.get("groupID").equals("3")) { + returnDataMap.put("leftname", "支持类流程"); + } + } + returnDataMap.put("secondcont", column1Maps); + returnDataMap.put("l2ol3BPMN2NUM", column2Maps); + returnDataMap.put("l2ol3POLICYNUM", column3Maps); + returnDataMap.put("coverage", column4Maps); + returnDataMaps.add(returnDataMap); + } + ro.put("headtop", headtop); + ro.put("content", returnDataMaps); + }else if (terms.equals("achievements")) { + //末级流程绩效 + String[] headtop = {"","","末级流程绩效(个)","覆盖率(%)"}; + List ACVNUMMaps = DBSql.getMaps("SELECT GROUPIDEXT1,COUNTOFGROUP FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='ACVNUM'"); + List coverageAVCMaps = DBSql.getMaps("SELECT GROUPIDEXT1,COUNTOFGROUP FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='coverageAVC'"); + if (null != L1Maps && !L1Maps.isEmpty()) { + for (RowMap l1Map : L1Maps) { + String FRAMEID = l1Map.getString("FRAMEID"); + String FRAMENAME = l1Map.getString("FRAMENAME"); + String FRAMETYPE = l1Map.getString("FRAMETYPE"); + Integer FRAMEORDERINDEX = l1Map.getInt("FRAMEORDERINDEX"); + Integer ACVNUM = 0; + String coverageAVC = null; + if (null != ACVNUMMaps && !ACVNUMMaps.isEmpty()) { + for (RowMap ACVNUMMap : ACVNUMMaps) { + if (FRAMEID.equals(ACVNUMMap.getString("GROUPIDEXT1"))) { + ACVNUM = ACVNUMMap.getInt("COUNTOFGROUP"); + } + } + } + if (null != coverageAVCMaps && !coverageAVCMaps.isEmpty()) { + for (RowMap coverageAVCMap : coverageAVCMaps) { + if (FRAMEID.equals(coverageAVCMap.getString("GROUPIDEXT1"))) { + coverageAVC = coverageAVCMap.getString("COUNTOFGROUP"); + } + } + } + originalMap = new HashMap<>(); + originalMap.put("PLNAME", FRAMENAME); + originalMap.put("ACVNUM", ACVNUM); + originalMap.put("coverage", coverageAVC); + originalMap.put("groupID", FRAMETYPE); + originalMaps.add(originalMap); + } + } + Map> dataGroup = originalMaps.stream(). + collect(Collectors.groupingBy(original->"group"+original.get("groupID").toString(),TreeMap::new, Collectors.toList())); + for (String groupID : dataGroup.keySet()) { + List dataMapstoGroupID = dataGroup.get(groupID); + HashMap column1Map = new HashMap<>(); + HashMap column2Map = new HashMap<>(); + HashMap column3Map = new HashMap<>(); + ArrayList column1Maps = new ArrayList<>(); + ArrayList column2Maps = new ArrayList<>(); + ArrayList column3Maps = new ArrayList<>(); + HashMap returnDataMap = new HashMap<>(); + for (Map dataMap : dataMapstoGroupID) { + column1Map = new HashMap(); + column1Map.put("name",dataMap.get("PLNAME")); + column1Maps.add(column1Map); + column2Map = new HashMap(); + column2Map.put("name",dataMap.get("ACVNUM")); + column2Maps.add(column2Map); + column3Map = new HashMap(); + column3Map.put("name",dataMap.get("coverage")); + column3Maps.add(column3Map); + if (dataMap.get("groupID").equals("1")) { + returnDataMap.put("leftname","战略类流程"); + } else if (dataMap.get("groupID").equals("2")) { + returnDataMap.put("leftname","运营类流程"); + } else if (dataMap.get("groupID").equals("3")) { + returnDataMap.put("leftname","支持类流程"); + } + } + returnDataMap.put("secondcont",column1Maps); + returnDataMap.put("ACVNUM",column2Maps); + returnDataMap.put("coverage",column3Maps); + returnDataMaps.add(returnDataMap); + } + ro.put("headtop",headtop); + ro.put("content",returnDataMaps); + } else if(terms.equals("systemnode")) { + //信息系统节点 + String[] headtop = {"","","信息系统节点(个)","覆盖率(%)"}; + List SYSNUMMaps = DBSql.getMaps("SELECT GROUPIDEXT1,COUNTOFGROUP FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='SYSNUM'"); + List coverageSYSMaps = DBSql.getMaps("SELECT GROUPIDEXT1,COUNTOFGROUP FROM BO_EU_PAL_FILE_GROUPCOUNT WHERE GROUPIDMAIN='coverageSYS'"); + if (null != L1Maps && !L1Maps.isEmpty()) { + for (RowMap l1Map : L1Maps) { + String FRAMEID = l1Map.getString("FRAMEID"); + String FRAMENAME = l1Map.getString("FRAMENAME"); + String FRAMETYPE = l1Map.getString("FRAMETYPE"); + Integer FRAMEORDERINDEX = l1Map.getInt("FRAMEORDERINDEX"); + Integer SYSNUM = 0; + String coverageSYS = null; + if (null != SYSNUMMaps && !SYSNUMMaps.isEmpty()) { + for (RowMap SYSNUMMap : SYSNUMMaps) { + if (FRAMEID.equals(SYSNUMMap.getString("GROUPIDEXT1"))) { + SYSNUM = SYSNUMMap.getInt("COUNTOFGROUP"); + } + } + } + if (null != coverageSYSMaps && !coverageSYSMaps.isEmpty()) { + for (RowMap coverageSYSMap : coverageSYSMaps) { + if (FRAMEID.equals(coverageSYSMap.getString("GROUPIDEXT1"))) { + coverageSYS = coverageSYSMap.getString("COUNTOFGROUP"); + } + } + } + originalMap = new HashMap<>(); + originalMap.put("PLNAME", FRAMENAME); + originalMap.put("SYSNUM", SYSNUM); + originalMap.put("coverage", coverageSYS); + originalMap.put("groupID", FRAMETYPE); + originalMaps.add(originalMap); + } + } + Map> dataGroup = originalMaps.stream(). + collect(Collectors.groupingBy(original->"group"+original.get("groupID").toString(),TreeMap::new, Collectors.toList())); + for (String groupID : dataGroup.keySet()) { + List dataMapstoGroupID = dataGroup.get(groupID); + HashMap column1Map = new HashMap<>(); + HashMap column2Map = new HashMap<>(); + HashMap column3Map = new HashMap<>(); + ArrayList column1Maps = new ArrayList<>(); + ArrayList column2Maps = new ArrayList<>(); + ArrayList column3Maps = new ArrayList<>(); + HashMap returnDataMap = new HashMap<>(); + for (Map dataMap : dataMapstoGroupID) { + column1Map = new HashMap(); + column1Map.put("name",dataMap.get("PLNAME")); + column1Maps.add(column1Map); + column2Map = new HashMap(); + column2Map.put("name",dataMap.get("SYSNUM")); + column2Maps.add(column2Map); + column3Map = new HashMap(); + column3Map.put("name",dataMap.get("coverage")); + column3Maps.add(column3Map); + if (dataMap.get("groupID").equals("1")) { + returnDataMap.put("leftname","战略类流程"); + } else if (dataMap.get("groupID").equals("2")) { + returnDataMap.put("leftname","运营类流程"); + } else if (dataMap.get("groupID").equals("3")) { + returnDataMap.put("leftname","支持类流程"); + } + } + returnDataMap.put("secondcont",column1Maps); + returnDataMap.put("SYSNUM",column2Maps); + returnDataMap.put("coverage",column3Maps); + returnDataMaps.add(returnDataMap); + } + ro.put("headtop",headtop); + ro.put("content",returnDataMaps); + } + return ro.toString(); +} + + + /** + * @methodName: + * @param: + * @return: + * @description:流程连接度分析筛选条件:所属单位、所属领域 + * @auther: Lizj + * @date: 2022/6/17 22:39 + */ + public String queryTerms2(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + //所属单位 + List deptMaps = DBSql.getMaps("SELECT ID,PARENTDEPARTMENTID,DEPARTMENTNAME,LAYER,ORDERINDEX FROM ORGDEPARTMENT" + + " WHERE COMPANYID='8911e732-b42a-4556-853f-ad32761bcbee' AND CLOSED='0' AND ID not in ('5bc3a2dc-3bd2-4376-bcc3-5612e28e55fe','e79281b1-2f81-4895-b30e-9f96e9ad0e2c','53d3076d-cd2d-4f5b-bacb-8e93273e9f44','9c795620-93c6-485c-b9fa-93536c988da8','12d42abb-a58f-411b-8c71-0a421a27eafc','65048aee-157f-49f2-a2dc-5903dd26f519')"); + //demo3 + //demo3 + //3e74f14d-852f-4f6f-a809-08a56697f103 + //本地 + //d7087d5b-ab29-4514-a7e7-79379f6842a2 + //正式 + //8911e732-b42a-4556-853f-ad32761bcbee + String nodeType = null; + ArrayList deptNodes = new ArrayList<>(); + for (RowMap deptMap : deptMaps) { + HashMap deptNode = new HashMap<>(); + nodeType = "dept"; + deptNode.put("ID",deptMap.getString("ID")); + deptNode.put("PARENTID",deptMap.getString("PARENTDEPARTMENTID")); + deptNode.put("name",deptMap.getString("DEPARTMENTNAME")); + deptNode.put("ORDERINDEX",deptMap.getString("ORDERINDEX")); + deptNode.put("TLEVEL",deptMap.getString("LAYER")); + deptNode.put("nodeType", nodeType); + deptNodes.add(deptNode); + } + List deptTreeNodes = TreeUtil.buildTree("1",deptNodes,"0","dept","3",null); + //所属领域 + ArrayList frameList = new ArrayList<>(); + ArrayList fieldMaps = new ArrayList<>(); + List L1Maps = DBSql.getMaps("SELECT FRAMEID,FRAMENAME,FRAMETYPE,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMELEVEL=1 AND FRAMETYPE IS NOT NULL "); + String hasRoot = "Y"; + if (null != L1Maps && !L1Maps.isEmpty()) { + for (RowMap l1Map : L1Maps) { + String L1ID = l1Map.getString("FRAMEID"); + frameList = new ArrayList<>(); + frameList = GetNodesUtil.getChildFrame(L1ID, hasRoot, frameList); + fieldMaps.addAll(frameList); + } + } + ArrayList fieldNodes = new ArrayList<>(); + for (Map fieldMap : fieldMaps) { + HashMap fieldNode = new HashMap<>(); + fieldNode.put("ID", String.valueOf(fieldMap.get("FRAMEID"))); + fieldNode.put("PARENTID", String.valueOf(fieldMap.get("FRAMEPARENTID"))); + fieldNode.put("name", String.valueOf(fieldMap.get("FRAMENAME"))); + fieldNode.put("ORDERINDEX", Integer.valueOf(String.valueOf(fieldMap.get("FRAMEORDERINDEX")))); + fieldNode.put("TLEVEL", Integer.valueOf(String.valueOf(fieldMap.get("FRAMELEVEL")))); + fieldNodes.add(fieldNode); + } + List fieldTreeNodes = TreeUtil.buildTree("1",fieldNodes, "process", null, null, null); + ro.put("deptTreeNodes", deptTreeNodes); + ro.put("fieldTreeNodes", fieldTreeNodes); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:流程连接度分析 + * @auther: Lizj + * @date: 2022/6/16 16:58 + */ + public String processCONND(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + String unit = params.get("unit"); + String field = params.get("field"); + //获取文件list + ArrayList deptIDList = new ArrayList<>(); + ArrayList fieldList = new ArrayList<>(); + List fileRowMaps = DBSql.getMaps("SELECT FILEID,PUBDEPT,LEADPROCESS,REARPROCESS FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1' AND PLMETHODID='process.epc'"); + ArrayList fileHandleMaps = new ArrayList<>(); + + if (null!=unit && !unit.equals("")) { + fileHandleMaps = new ArrayList<>(); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(unit, deptIDList); + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileHandleMaps.add(fileRowMap); + } + } + } + fileRowMaps = fileHandleMaps; + } + if (null!=field && !field.equals("")) { + fileHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PLPARENTID").equals(fieldID)) { + fileHandleMaps.add(fileRowMap); + } + } + } + fileRowMaps = fileHandleMaps; + } + + //查询流程前后置前后置情况 + Integer fileTotalNum = 0; + Integer prepostNum = 0; + Integer preNum = 0; + Integer postNum = 0; + Integer noprepostNum = 0; + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + + if (null != fileRowMaps && !fileRowMaps.isEmpty()) { + for (RowMap fileRowMap : fileRowMaps) { + fileTotalNum += 1; + String LEADPROCESS = fileRowMap.getString("LEADPROCESS"); + String REARPROCESS = fileRowMap.getString("REARPROCESS"); + if (LEADPROCESS.equals("1") && REARPROCESS.equals("1")) { + prepostNum += 1; + } + if (LEADPROCESS.equals("1") && REARPROCESS.equals("0")) { + preNum += 1; + } + if (LEADPROCESS.equals("0") && REARPROCESS.equals("1")) { + postNum += 1; + } + if (LEADPROCESS.equals("0") && REARPROCESS.equals("0")) { + noprepostNum += 1; + } + } + } + //前置后置、单前置、单后置、无前置后置数量占比 + String prepostRatio = null; + String preRatio = null; + String postRatio = null; + String noprepostRatio = null; + if (fileTotalNum!=0) { + prepostRatio = numberformat.format((float) prepostNum / (float) fileTotalNum * 100); + preRatio = numberformat.format((float) preNum / (float) fileTotalNum * 100); + postRatio = numberformat.format((float) postNum / (float) fileTotalNum * 100); + noprepostRatio = numberformat.format((float) noprepostNum / (float) fileTotalNum * 100); + } else { + prepostRatio = "0"; + preRatio = "0"; + postRatio = "0"; + noprepostRatio = "0"; + } + + ro.put("prepostRatio", prepostRatio); + ro.put("preRatio", preRatio); + ro.put("postRatio", postRatio); + ro.put("noprepostRatio", noprepostRatio); + + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:事业部、职能部门流程连接度有前后置和无前后置占比 + * @auther: Lizj + * @date: 2022/6/20 10:56 + */ + public String processCONNDDetail(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + ArrayList deptIDList = new ArrayList<>(); + ArrayList bdPrepostRatioMaps = new ArrayList<>(); + ArrayList bdNoprepostRatioMaps = new ArrayList<>(); + ArrayList fdPrepostRatioMaps = new ArrayList<>(); + ArrayList fdNoprepostRatioMaps = new ArrayList<>(); + HashMap ratioMap = new HashMap<>(); + //事业部和职能部门ID,名称 list + List fileRowMaps = DBSql.getMaps("SELECT FILEID,PUBDEPT,LEADPROCESS,REARPROCESS FROM BO_EU_PAL_FILE1 WHERE FILESTATE='1' AND PLMETHODID='process.epc'"); + List BDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + + //文件总数量,有前后置流程数量、无前后置流程数量 + Integer fileTotalNum = 0; + Integer prepostNum = 0; + Integer noprepostNum = 0; + //有前后置占比、无前后置占比 + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + String prepostRatio = null; + String noprepostRatio = null; + + if (null!=BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + fileTotalNum = 0; + prepostNum = 0; + noprepostNum = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileTotalNum += 1; + String LEADPROCESS = fileRowMap.getString("LEADPROCESS"); + String REARPROCESS = fileRowMap.getString("REARPROCESS"); + if (LEADPROCESS.equals("1") && REARPROCESS.equals("1")) { + prepostNum += 1; + } + if (LEADPROCESS.equals("0") && REARPROCESS.equals("0")) { + noprepostNum += 1; + } + } + } + } + } + if (fileTotalNum!=0) { + prepostRatio = numberformat.format((float) prepostNum / (float) fileTotalNum * 100); + noprepostRatio = numberformat.format((float) noprepostNum / (float) fileTotalNum * 100); + } else { + prepostRatio = "0"; + noprepostRatio = "0"; + } + ratioMap = new HashMap<>(); + ratioMap.put("deptID",bdDeptID); + ratioMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + ratioMap.put("ratio",prepostRatio); + bdPrepostRatioMaps.add(ratioMap); + ratioMap = new HashMap<>(); + ratioMap.put("deptID",bdDeptID); + ratioMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + ratioMap.put("ratio",noprepostRatio); + bdNoprepostRatioMaps.add(ratioMap); + } + } + if (null!=FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + fileTotalNum = 0; + prepostNum = 0; + noprepostNum = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap fileRowMap : fileRowMaps) { + if (fileRowMap.getString("PUBDEPT").contains(deptID)) { + fileTotalNum += 1; + String LEADPROCESS = fileRowMap.getString("LEADPROCESS"); + String REARPROCESS = fileRowMap.getString("REARPROCESS"); + if (LEADPROCESS.equals("1") && REARPROCESS.equals("1")) { + prepostNum += 1; + } + if (LEADPROCESS.equals("0") && REARPROCESS.equals("0")) { + noprepostNum += 1; + } + } + } + } + } + if (fileTotalNum!=0) { + prepostRatio = numberformat.format((float) prepostNum / (float) fileTotalNum * 100); + noprepostRatio = numberformat.format((float) noprepostNum / (float) fileTotalNum * 100); + } else { + prepostRatio = "0"; + noprepostRatio = "0"; + } + ratioMap = new HashMap<>(); + ratioMap.put("deptID",fdDeptID); + ratioMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + ratioMap.put("ratio",prepostRatio); + fdPrepostRatioMaps.add(ratioMap); + ratioMap = new HashMap<>(); + ratioMap.put("deptID",fdDeptID); + ratioMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + ratioMap.put("ratio",noprepostRatio); + fdNoprepostRatioMaps.add(ratioMap); + } + } + + ro.put("BDY", bdPrepostRatioMaps); + ro.put("BDN", bdNoprepostRatioMaps); + ro.put("FDY", fdPrepostRatioMaps); + ro.put("FDN", fdNoprepostRatioMaps); + + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:流程评论 + * @auther: Lizj + * @date: 2022/6/20 16:39 + */ + public String processComment(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + ArrayList commentMapsOfField = new ArrayList<>(); + ArrayList commentMapsOfDept = new ArrayList<>(); + HashMap commentMap = new HashMap<>(); + List fieldMaps = DBSql.getMaps("SELECT GROUPIDEXT2,FRAMENAME,COUNTOFGROUP FROM (SELECT FG.GROUPIDEXT2,PF.FRAMENAME,FG.COUNTOFGROUP FROM BO_EU_PAL_FILE_GROUPCOUNT FG LEFT JOIN BO_EU_PAL_FRAME PF ON FG.GROUPIDEXT2=PF.FRAMEID WHERE GROUPIDMAIN='reply' AND GROUPIDEXT1='frame' ORDER BY TO_NUMBER(FG.COUNTOFGROUP) DESC) TEMP WHERE ROWNUM<=5"); + List deptMaps = DBSql.getMaps("SELECT FG.GROUPIDEXT2,DA.ABBREVIATION,FG.COUNTOFGROUP FROM BO_EU_PAL_FILE_GROUPCOUNT FG LEFT JOIN BO_EU_DEPT_ABBREVIATION DA ON FG.GROUPIDEXT2=DA.DEPTID WHERE GROUPIDMAIN='reply' AND GROUPIDEXT1='dept' ORDER BY TO_NUMBER(FG.COUNTOFGROUP) DESC"); + if (null!=fieldMaps && !fieldMaps.isEmpty()) { + for (RowMap fieldMap : fieldMaps) { + String fieldID = fieldMap.getString("GROUPIDEXT2"); + String fieldName = fieldMap.getString("FRAMENAME"); + Integer commentCount = fieldMap.getInt("COUNTOFGROUP"); + commentMap = new HashMap(); + commentMap.put("fieldID", fieldID); + commentMap.put("fieldName", fieldName); + commentMap.put("commentCount", commentCount); + commentMapsOfField.add(commentMap); + } + } + if (null!=deptMaps && !deptMaps.isEmpty()) { + for (RowMap deptMap : deptMaps) { + String deptID = deptMap.getString("GROUPIDEXT2"); + String deptName = deptMap.getString("ABBREVIATION"); + Integer commentCount = deptMap.getInt("COUNTOFGROUP"); + commentMap = new HashMap(); + commentMap.put("deptID", deptID); + commentMap.put("deptName", deptName); + commentMap.put("commentCount", commentCount); + commentMapsOfDept.add(commentMap); + } + } +/* Collections.sort(commentMapsOfField, (map1, map2) -> { + Integer value1 = (Integer) map1.get("commentCount"); + Integer value2 = (Integer) map2.get("commentCount"); + return value2.compareTo(value1); + }); + Collections.sort(commentMapsOfDept, (map1, map2) -> { + Integer value1 = (Integer) map1.get("commentCount"); + Integer value2 = (Integer) map2.get("commentCount"); + return value2.compareTo(value1); + });*/ + + ro.put("commentOfField", commentMapsOfField); + ro.put("commentOfDept", commentMapsOfDept); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:流程成熟度筛选条件 所属领域、评估周期 + * @auther: Lizj + * @date: 2022/6/20 22:23 + */ + public String queryTerms3(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + ArrayList paramFieldMaps = new ArrayList<>(); + ArrayList paramCycleMaps = new ArrayList<>(); + HashMap paramFieldMap = new HashMap<>(); + HashMap paramCycleMap = new HashMap<>(); + List fieldMaps = DBSql.getMaps("SELECT DISTINCT MF.FIELDTARGET AS FIELDTARGETKEY,BF.FRAMENAME AS FIELDTARGETVAL,BF.FRAMEORDERINDEX FROM BO_EU_MATURITY_FIELD MF" + + " LEFT JOIN BO_EU_PAL_FRAME BF ON MF.FIELDTARGET=BF.FRAMEID" + + " ORDER BY TO_NUMBER(BF.FRAMEORDERINDEX) ASC"); + for (RowMap fieldMap : fieldMaps) { + paramFieldMap = new HashMap(); + String FIELDTARGETKEY = fieldMap.getString("FIELDTARGETKEY"); + String FIELDTARGETVAL = fieldMap.getString("FIELDTARGETVAL"); + if (FIELDTARGETKEY.equals("MATURITYTOTAL")) { + paramFieldMap.put("termsKey", FIELDTARGETKEY); + paramFieldMap.put("termsVal", "公司级"); + } else if (FIELDTARGETKEY.equals("NL")) { + paramFieldMap.put("termsKey", FIELDTARGETKEY); + paramFieldMap.put("termsVal", "奶酪"); + } else if (FIELDTARGETKEY.equals("LY")) { + paramFieldMap.put("termsKey", FIELDTARGETKEY); + paramFieldMap.put("termsVal", "冷饮"); + } else if (FIELDTARGETKEY.equals("SN")) { + paramFieldMap.put("termsKey", FIELDTARGETKEY); + paramFieldMap.put("termsVal", "酸奶"); + } else if (FIELDTARGETKEY.equals("NF")) { + paramFieldMap.put("termsKey", FIELDTARGETKEY); + paramFieldMap.put("termsVal", "奶粉"); + } else if (FIELDTARGETKEY.equals("GY")) { + paramFieldMap.put("termsKey", FIELDTARGETKEY); + paramFieldMap.put("termsVal", "国际业务"); + } else { + paramFieldMap.put("termsKey", FIELDTARGETKEY); + paramFieldMap.put("termsVal", FIELDTARGETVAL); + } + paramFieldMaps.add(paramFieldMap); + } + List cycleMaps = DBSql.getMaps("SELECT DISTINCT ASSESSCYCLE FROM BO_EU_MATURITY_FIELD"); + for (RowMap cycleMap : cycleMaps) { + paramCycleMap = new HashMap(); + paramCycleMap.put("termsKey", cycleMap.get("ASSESSCYCLE")); + paramCycleMap.put("termsVal", cycleMap.get("ASSESSCYCLE")); + paramCycleMaps.add(paramCycleMap); + } + ro.put("paramFieldMaps", paramFieldMaps); + ro.put("paramCycleMaps", paramCycleMaps); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:流程成熟度雷达图和评分明细 + * @auther: Lizj + * @date: 2022/6/21 23:04 + */ + public String processMaturity(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + String field = params.get("field"); + String cycle = params.get("cycle"); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + ArrayList MDDataMaps = new ArrayList<>(); + HashMap MFDataMap = new HashMap<>(); + HashMap MDDataMap = new HashMap<>(); + if ((field == null || field.equals("")) && (cycle == null || cycle.equals(""))) { + RowMap defaultMFMap = DBSql.getMap("SELECT MF.BINDID,MF.FIELDTARGET AS FIELDTARGETKEY,BF.FRAMENAME AS FIELDTARGETVAL,MF.MRLEVELSCORE,MF.ASSESSSCORE,MF.ASSESSDATE,MF.ASSESSMEMBER FROM BO_EU_MATURITY_FIELD MF" + + " LEFT JOIN BO_EU_PAL_FRAME BF ON MF.FIELDTARGET=BF.FRAMEID" + + " WHERE MF.FIELDTARGET='MATURITYTOTAL'"); + if (null != defaultMFMap && defaultMFMap.isEmpty() == false) { + String BINDID = defaultMFMap.getString("BINDID"); + List defaultMDMaps = DBSql.getMaps("SELECT MT.TARGETKEY,MT.TARGETVAL,MD.REFERENCEELE,MD.TARGETSCORE,MD.SCOREEVI FROM BO_EU_MATURITY_DETAIL MD" + + " LEFT JOIN BO_EU_MATURITY_TARGET MT ON MD.TARGETVAL=MT.TARGETKEY" + + " WHERE MD.BINDID='" + BINDID + "'" + + " ORDER BY TARGETKEY ASC"); + if (null != defaultMDMaps && defaultMDMaps.isEmpty() == false) { + String FIELDTARGETKEY = defaultMFMap.getString("FIELDTARGETKEY"); + String FIELDTARGETVAL = defaultMFMap.getString("FIELDTARGETVAL"); + String MRLEVELSCORE = defaultMFMap.getString("MRLEVELSCORE"); + String ASSESSSCOREORIGIN = defaultMFMap.getString("ASSESSSCORE"); + String ASSESSDATE = defaultMFMap.getString("ASSESSDATE"); + StringBuilder ASSESSMEMBER = new StringBuilder(); + String AMUidOrigin = defaultMFMap.getString("ASSESSMEMBER"); + if (null != AMUidOrigin && !AMUidOrigin.equals("")) { + String[] AMUids = AMUidOrigin.split(","); + ArrayList AMNames = new ArrayList<>(); + for (String amUid : AMUids) { + UserModel AMUser = SDK.getORGAPI().getUser(amUid); + if (null != AMUser) { + String AMName = AMUser.getUserName(); + AMNames.add(AMName); + } + } + for (String amName : AMNames) { + ASSESSMEMBER.append("," + amName); + } + } + String ASSESSSCORE = ""; + if (null != ASSESSSCOREORIGIN && !ASSESSSCOREORIGIN.equals("")) { + ASSESSSCORE = numberformat.format(Float.parseFloat(ASSESSSCOREORIGIN)); + } + MFDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + MFDataMap.put("FIELDTARGETVAL", FIELDTARGETVAL); + MFDataMap.put("MRLEVELSCORE", MRLEVELSCORE); + MFDataMap.put("ASSESSSCORE", ASSESSSCORE); + MFDataMap.put("ASSESSDATE", ASSESSDATE); + MFDataMap.put("ASSESSMEMBER", ASSESSMEMBER); + for (RowMap defaultMDMap : defaultMDMaps) { + String TARGETKEY = defaultMDMap.getString("TARGETKEY"); + String TARGETVAL = defaultMDMap.getString("TARGETVAL"); + String REFERENCEELEORIGIN = defaultMDMap.getString("REFERENCEELE"); + String TARGETSCOREORIGIN = defaultMDMap.getString("TARGETSCORE"); + String SCOREEVIORIGIN = defaultMDMap.getString("SCOREEVI"); + String REFERENCEELE = ""; + String TARGETSCORE = ""; + String SCOREEVI = ""; + if (null != REFERENCEELEORIGIN && !REFERENCEELEORIGIN.equals("")) { + REFERENCEELE = REFERENCEELEORIGIN.replaceAll("__eol__", "\n"); + } + if (null != TARGETSCOREORIGIN && !TARGETSCOREORIGIN.equals("")) { + TARGETSCORE = TARGETSCOREORIGIN.replaceAll("__eol__", ""); + TARGETSCORE = numberformat.format(Float.parseFloat(TARGETSCORE)); + } + if (null != SCOREEVIORIGIN && !SCOREEVIORIGIN.equals("")) { + SCOREEVI = SCOREEVIORIGIN.replaceAll("__eol__", "\n"); + } + MDDataMap = new HashMap(); + MDDataMap.put("TARGETKEY", TARGETKEY); + MDDataMap.put("TARGETVAL", TARGETVAL); + MDDataMap.put("REFERENCEELE", REFERENCEELE); + MDDataMap.put("TARGETSCORE", TARGETSCORE); + MDDataMap.put("SCOREEVI", SCOREEVI); + MDDataMaps.add(MDDataMap); + } + ro.put("MFDataMap", MFDataMap); + ro.put("MDDataMaps", MDDataMaps); + } else { + ro.info("暂无评分明细"); + } + } else { + ro.info("暂无评估记录"); + } + } else if ((field != null && !field.equals("")) && (cycle == null || cycle.equals(""))) { + ro.err("请指定【评估周期】"); + } else if ((field == null || field.equals("")) && (cycle != null && !cycle.equals(""))) { + ro.err("请指定【所属领域】"); + } else { + RowMap MFMap = DBSql.getMap("SELECT MF.BINDID,MF.FIELDTARGET AS FIELDTARGETKEY,BF.FRAMENAME AS FIELDTARGETVAL,MF.MRLEVELSCORE,MF.ASSESSSCORE,MF.ASSESSDATE,MF.ASSESSMEMBER FROM BO_EU_MATURITY_FIELD MF" + + " LEFT JOIN BO_EU_PAL_FRAME BF ON MF.FIELDTARGET=BF.FRAMEID" + + " WHERE MF.FIELDTARGET='" + field + "' AND MF.ASSESSCYCLE='" + cycle + "'"); + if (null != MFMap && MFMap.isEmpty() == false) { + String BINDID = MFMap.getString("BINDID"); + List MDMaps = DBSql.getMaps("SELECT MT.TARGETKEY,MT.TARGETVAL,MD.REFERENCEELE,MD.TARGETSCORE,MD.SCOREEVI FROM BO_EU_MATURITY_DETAIL MD" + + " LEFT JOIN BO_EU_MATURITY_TARGET MT ON MD.TARGETVAL=MT.TARGETKEY" + + " WHERE MD.BINDID='" + BINDID + "'" + + " ORDER BY TARGETKEY ASC"); + if (null != MDMaps && MDMaps.isEmpty() == false) { + String FIELDTARGETKEY = MFMap.getString("FIELDTARGETKEY"); + String FIELDTARGETVAL = MFMap.getString("FIELDTARGETVAL"); + String MRLEVELSCORE = MFMap.getString("MRLEVELSCORE"); + String ASSESSSCOREORIGIN = MFMap.getString("ASSESSSCORE"); + String ASSESSDATE = MFMap.getString("ASSESSDATE"); + StringBuilder ASSESSMEMBER = new StringBuilder(); + String AMUidOrigin = MFMap.getString("ASSESSMEMBER"); + if (null != AMUidOrigin && !AMUidOrigin.equals("")) { + String[] AMUids = AMUidOrigin.split(","); + ArrayList AMNames = new ArrayList<>(); + for (String amUid : AMUids) { + UserModel AMUser = SDK.getORGAPI().getUser(amUid); + if (null != AMUser) { + String AMName = AMUser.getUserName(); + AMNames.add(AMName); + } + } + for (String amName : AMNames) { + ASSESSMEMBER.append("," + amName); + } + } + String ASSESSSCORE = ""; + if (null != ASSESSSCOREORIGIN && !ASSESSSCOREORIGIN.equals("")) { + ASSESSSCORE = numberformat.format(Float.parseFloat(ASSESSSCOREORIGIN)); + } + MFDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + MFDataMap.put("FIELDTARGETVAL", FIELDTARGETVAL); + MFDataMap.put("MRLEVELSCORE", MRLEVELSCORE); + MFDataMap.put("ASSESSSCORE", ASSESSSCORE); + MFDataMap.put("ASSESSDATE", ASSESSDATE); + MFDataMap.put("ASSESSMEMBER", ASSESSMEMBER); + for (RowMap MDMap : MDMaps) { + String TARGETKEY = MDMap.getString("TARGETKEY"); + String TARGETVAL = MDMap.getString("TARGETVAL"); + String REFERENCEELEORIGIN = MDMap.getString("REFERENCEELE"); + String TARGETSCOREORIGIN = MDMap.getString("TARGETSCORE"); + String SCOREEVIORIGIN = MDMap.getString("SCOREEVI"); + String REFERENCEELE = ""; + String TARGETSCORE = ""; + String SCOREEVI = ""; + if (null != REFERENCEELEORIGIN && !REFERENCEELEORIGIN.equals("")) { + REFERENCEELE = REFERENCEELEORIGIN.replaceAll("__eol__", "\n"); + } + if (null != TARGETSCOREORIGIN && !TARGETSCOREORIGIN.equals("")) { + TARGETSCORE = TARGETSCOREORIGIN.replaceAll("__eol__", ""); + TARGETSCORE = numberformat.format(Float.parseFloat(TARGETSCORE)); + } + if (null != SCOREEVIORIGIN && !SCOREEVIORIGIN.equals("")) { + SCOREEVI = SCOREEVIORIGIN.replaceAll("__eol__", "\n"); + } + MDDataMap = new HashMap(); + MDDataMap.put("TARGETKEY", TARGETKEY); + MDDataMap.put("TARGETVAL", TARGETVAL); + MDDataMap.put("REFERENCEELE", REFERENCEELE); + MDDataMap.put("TARGETSCORE", TARGETSCORE); + MDDataMap.put("SCOREEVI", SCOREEVI); + MDDataMaps.add(MDDataMap); + } + ro.put("MFDataMap", MFDataMap); + ro.put("MDDataMaps", MDDataMaps); + } else { + ro.info("暂无评分明细"); + } + } else { + ro.info("暂无评估记录"); + } + } + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:成熟度目标达成率 + * @auther: Lizj + * @date: 2022/6/23 20:14 + */ + /* public String maturityReachRate(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(0); + HashMap BDRateMap = new HashMap<>(); + HashMap rateMap = new HashMap<>(); + ArrayList BDRateMaps = new ArrayList<>(); + ArrayList rateMaps = new ArrayList<>(); + HashMap totalRateMap = new HashMap<>(); + ArrayList totalRateMaps = new ArrayList<>(); + //Integer nowYear = 2021; + Integer nowYear = LocalDate.now().getYear(); + List BDFrameMaps = DBSql.getMaps("SELECT MF.FIELDTARGET AS FIELDTARGETKEY,BF.FRAMENAME AS FIELDTARGETVAL,MF.FINISHRATIO FROM BO_EU_MATURITY_FIELD MF" + + " LEFT JOIN BO_EU_PAL_FRAME BF ON MF.FIELDTARGET=BF.FRAMEID" + + " WHERE MF.FINISHRATIO IS NOT NULL AND MF.ASSESSCYCLE='"+nowYear+"'" + + " AND BF.FRAMENAME IS NULL AND MF.FIELDTARGET!='GY'"); + Integer BDREACHCOUNT = DBSql.getInt("SELECT COUNT(*) AS BDREACHCOUNT FROM BO_EU_MATURITY_FIELD MF" + + " LEFT JOIN BO_EU_PAL_FRAME BF ON MF.FIELDTARGET=BF.FRAMEID" + + " WHERE MF.FINISHRATIO IS NOT NULL AND MF.ASSESSCYCLE='"+nowYear+"'" + + " AND BF.FRAMENAME IS NULL AND MF.FIELDTARGET!='GY'" + + " AND TO_NUMBER(REPLACE(MF.FINISHRATIO,'%'))/100 >= 1","BDREACHCOUNT"); + Integer BDFRAMECOUNT = DBSql.getInt("SELECT COUNT(*) AS BDFRAMECOUNT FROM BO_EU_MATURITY_FIELD MF" + + " LEFT JOIN BO_EU_PAL_FRAME BF ON MF.FIELDTARGET=BF.FRAMEID" + + " WHERE MF.FINISHRATIO IS NOT NULL AND MF.ASSESSCYCLE='"+nowYear+"'" + + " AND BF.FRAMENAME IS NULL AND MF.FIELDTARGET!='GY'", "BDFRAMECOUNT"); + List frameMaps = DBSql.getMaps("SELECT MF.FIELDTARGET AS FIELDTARGETKEY,BF.FRAMENAME AS FIELDTARGETVAL,MF.FINISHRATIO FROM BO_EU_MATURITY_FIELD MF" + + " LEFT JOIN BO_EU_PAL_FRAME BF ON MF.FIELDTARGET=BF.FRAMEID" + + " WHERE MF.FINISHRATIO IS NOT NULL AND MF.ASSESSCYCLE='"+nowYear+"'" + + " AND (BF.FRAMENAME IS NOT NULL OR MF.FIELDTARGET='GY')" + + " ORDER BY TO_NUMBER(BF.FRAMEORDERINDEX) ASC,MF.UPDATEDATE ASC"); + Integer REACHCOUNT = DBSql.getInt("SELECT COUNT(*) AS REACHCOUNT" + + " FROM BO_EU_MATURITY_FIELD MF" + + " LEFT JOIN BO_EU_PAL_FRAME BF ON MF.FIELDTARGET=BF.FRAMEID" + + " WHERE MF.FINISHRATIO IS NOT NULL AND MF.ASSESSCYCLE='"+nowYear+"'" + + " AND (BF.FRAMENAME IS NOT NULL OR MF.FIELDTARGET='GY')" + + " AND TO_NUMBER(REPLACE(MF.FINISHRATIO,'%'))/100 >= 1","REACHCOUNT"); + Integer FRAMECOUNT = DBSql.getInt("SELECT COUNT(*) AS FRAMECOUNT FROM BO_EU_MATURITY_FIELD MF" + + " LEFT JOIN BO_EU_PAL_FRAME BF ON MF.FIELDTARGET=BF.FRAMEID" + + " WHERE MF.FINISHRATIO IS NOT NULL AND MF.ASSESSCYCLE='"+nowYear+"'" + + " AND (BF.FRAMENAME IS NOT NULL OR MF.FIELDTARGET='GY')", "FRAMECOUNT"); + if(null!=BDFrameMaps && !BDFrameMaps.isEmpty()) { + for (RowMap bdFrameMap : BDFrameMaps) { + BDRateMap = new HashMap(); + String FIELDTARGETKEY = bdFrameMap.getString("FIELDTARGETKEY"); + String FIELDTARGETVAL = bdFrameMap.getString("FIELDTARGETVAL"); + String FINISHRATIO = bdFrameMap.getString("FINISHRATIO"); + FINISHRATIO = numberformat.format(Float.parseFloat(FINISHRATIO) * 100); + if (FIELDTARGETKEY.equals("NL")) { + BDRateMap.put("FIELDTARGETKEY",FIELDTARGETKEY); + BDRateMap.put("FIELDTARGETVAL","奶酪"); + BDRateMap.put("FINISHRATIO",FINISHRATIO); + } + if (FIELDTARGETKEY.equals("LY")) { + BDRateMap.put("FIELDTARGETKEY",FIELDTARGETKEY); + BDRateMap.put("FIELDTARGETVAL","冷饮"); + BDRateMap.put("FINISHRATIO",FINISHRATIO); + } + if (FIELDTARGETKEY.equals("SN")) { + BDRateMap.put("FIELDTARGETKEY",FIELDTARGETKEY); + BDRateMap.put("FIELDTARGETVAL","酸奶"); + BDRateMap.put("FINISHRATIO",FINISHRATIO); + } + if (FIELDTARGETKEY.equals("NF")) { + BDRateMap.put("FIELDTARGETKEY",FIELDTARGETKEY); + BDRateMap.put("FIELDTARGETVAL","奶粉"); + BDRateMap.put("FINISHRATIO",FINISHRATIO); + } + BDRateMaps.add(BDRateMap); + } + } + if (null!=frameMaps && !frameMaps.isEmpty()) { + for (RowMap frameMap : frameMaps) { + rateMap = new HashMap(); + String FIELDTARGETKEY = frameMap.getString("FIELDTARGETKEY"); + String FIELDTARGETVAL = frameMap.getString("FIELDTARGETVAL"); + String FINISHRATIO = frameMap.getString("FINISHRATIO"); + FINISHRATIO = numberformat.format(Float.parseFloat(FINISHRATIO) * 100); + if (FIELDTARGETKEY.equals("GY")) { + rateMap.put("FIELDTARGETKEY",FIELDTARGETKEY); + rateMap.put("FIELDTARGETVAL","国际业务"); + rateMap.put("FINISHRATIO",FINISHRATIO); + } else { + rateMap.put("FIELDTARGETKEY",FIELDTARGETKEY); + rateMap.put("FIELDTARGETVAL",FIELDTARGETVAL); + rateMap.put("FINISHRATIO",FINISHRATIO); + } + rateMaps.add(rateMap); + } + } + String BDTotalRate = numberformat.format((float) BDREACHCOUNT / (float) BDFRAMECOUNT * 100); + String otherTotalRate = numberformat.format((float) REACHCOUNT / (float) FRAMECOUNT * 100); + totalRateMap = new HashMap(); + totalRateMap.put("totalRate",BDTotalRate); + totalRateMap.put("rateMaps",BDRateMaps); + totalRateMaps.add(totalRateMap); + totalRateMap = new HashMap(); + totalRateMap.put("totalRate",otherTotalRate); + totalRateMap.put("rateMaps",rateMaps); + totalRateMaps.add(totalRateMap); + ro.put("totalRateMaps",totalRateMaps); + return ro.toString(); + }*/ + + /** + * @methodName: + * @param: + * @return: + * @description:领域成熟度情况查询条件:评估维度 + * @auther: Lizj + * @date: 2022/6/23 20:18 + */ + public String queryTerms4(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + ArrayList paramELDSMaps = new ArrayList<>(); + HashMap paramELDSMap = new HashMap<>(); + List ELDSMaps = DBSql.getMaps("SELECT TARGETKEY,TARGETVAL FROM BO_EU_MATURITY_TARGET"); + paramELDSMap = new HashMap(); + paramELDSMap.put("termsKey", "total"); + paramELDSMap.put("termsVal", "全部"); + paramELDSMaps.add(paramELDSMap); + for (RowMap ELDSMap : ELDSMaps) { + paramELDSMap = new HashMap(); + paramELDSMap.put("termsKey", ELDSMap.getString("TARGETKEY")); + paramELDSMap.put("termsVal", ELDSMap.getString("TARGETVAL")); + paramELDSMaps.add(paramELDSMap); + } + ro.put("paramELDSMaps", paramELDSMaps); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:领域成熟度情况 + * @auther: Lizj + * @date: 2022/6/23 20:21 + */ + public String maturityField(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(1); + HashMap fieldDataMap = new HashMap<>(); + ArrayList fieldDataMaps = new ArrayList<>(); + //测试用固定年份,之后用下边@公式 + Integer nowYear = 2021; + //Integer nowYear = LocalDate.now().getYear(); + String ELDSKey = params.get("ELDSKey"); + if (null == ELDSKey || ELDSKey.equals("") || ELDSKey.equals("total")) { + List defaultMaturityMaps = DBSql.getMaps("SELECT MF.BINDID,MF.FIELDTARGET AS FIELDTARGETKEY,BF.FRAMENAME AS FIELDTARGETVAL,MF.ASSESSSCORE,MF.AIMVALUE,BF.FRAMEORDERINDEX FROM BO_EU_MATURITY_FIELD MF" + + " LEFT JOIN BO_EU_PAL_FRAME BF ON MF.FIELDTARGET=BF.FRAMEID" + + " WHERE MF.ASSESSCYCLE='" + nowYear + "'" + + " ORDER BY TO_NUMBER(BF.FRAMEORDERINDEX) ASC,MF.UPDATEDATE ASC"); + if (null != defaultMaturityMaps && defaultMaturityMaps.isEmpty() == false) { + for (RowMap defaultMaturityMap : defaultMaturityMaps) { + fieldDataMap = new HashMap(); + String FIELDTARGETKEY = defaultMaturityMap.getString("FIELDTARGETKEY"); + String FIELDTARGETVAL = defaultMaturityMap.getString("FIELDTARGETVAL"); + String ASSESSSCORE = defaultMaturityMap.getString("ASSESSSCORE"); + if (null != ASSESSSCORE && !ASSESSSCORE.equals("")) { + ASSESSSCORE = numberformat.format(Float.parseFloat(ASSESSSCORE)); + } + String AIMVALUE = defaultMaturityMap.getString("AIMVALUE"); + if (null != AIMVALUE && !AIMVALUE.equals("")) { + AIMVALUE = numberformat.format(Float.parseFloat(AIMVALUE)); + } + if (FIELDTARGETKEY.equals("MATURITYTOTAL")) { + fieldDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + fieldDataMap.put("FIELDTARGETVAL", "公司级"); + fieldDataMap.put("ASSESSSCORE", ASSESSSCORE); + fieldDataMap.put("AIMVALUE", AIMVALUE); + } else if (FIELDTARGETKEY.equals("GY")) { + fieldDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + fieldDataMap.put("FIELDTARGETVAL", "国际业务"); + fieldDataMap.put("ASSESSSCORE", ASSESSSCORE); + fieldDataMap.put("AIMVALUE", AIMVALUE); + } else if (FIELDTARGETKEY.equals("SN")) { + fieldDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + fieldDataMap.put("FIELDTARGETVAL", "酸奶"); + fieldDataMap.put("ASSESSSCORE", ASSESSSCORE); + fieldDataMap.put("AIMVALUE", AIMVALUE); + } else if (FIELDTARGETKEY.equals("NL")) { + fieldDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + fieldDataMap.put("FIELDTARGETVAL", "奶酪"); + fieldDataMap.put("ASSESSSCORE", ASSESSSCORE); + fieldDataMap.put("AIMVALUE", AIMVALUE); + } else if (FIELDTARGETKEY.equals("LY")) { + fieldDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + fieldDataMap.put("FIELDTARGETVAL", "冷饮"); + fieldDataMap.put("ASSESSSCORE", ASSESSSCORE); + fieldDataMap.put("AIMVALUE", AIMVALUE); + } else if (FIELDTARGETKEY.equals("NF")) { + fieldDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + fieldDataMap.put("FIELDTARGETVAL", "奶粉"); + fieldDataMap.put("ASSESSSCORE", ASSESSSCORE); + fieldDataMap.put("AIMVALUE", AIMVALUE); + } else { + fieldDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + fieldDataMap.put("FIELDTARGETVAL", FIELDTARGETVAL); + fieldDataMap.put("ASSESSSCORE", ASSESSSCORE); + fieldDataMap.put("AIMVALUE", AIMVALUE); + } + fieldDataMaps.add(fieldDataMap); + } +/* Map map1 = fieldDataMaps.get(0); + Map map2 = fieldDataMaps.get(3); + fieldDataMaps.set(0,map2); + fieldDataMaps.set(3,map1);*/ + ro.put("fieldDataMaps", fieldDataMaps); + } else { + ro.info("暂无评估记录"); + } + } else { + List targetMaturityMaps = DBSql.getMaps("SELECT MF.BINDID,MF.FIELDTARGET AS FIELDTARGETKEY,BF.FRAMENAME AS FIELDTARGETVAL,MF.ASSESSSCORE,MF.AIMVALUE,MT.TARGETKEY,MT.TARGETVAL,MD.TARGETSCORE,BF.FRAMEORDERINDEX FROM BO_EU_MATURITY_FIELD MF" + + " LEFT JOIN BO_EU_PAL_FRAME BF ON MF.FIELDTARGET=BF.FRAMEID" + + " INNER JOIN BO_EU_MATURITY_DETAIL MD ON MF.BINDID=MD.BINDID" + + " LEFT JOIN BO_EU_MATURITY_TARGET MT ON MD.TARGETVAL=MT.TARGETKEY" + + " WHERE MF.ASSESSCYCLE='" + nowYear + "'" + + " AND MD.TARGETVAL='" + ELDSKey + "'" + + " ORDER BY TO_NUMBER(BF.FRAMEORDERINDEX) ASC,MF.UPDATEDATE ASC"); + if (null != targetMaturityMaps && targetMaturityMaps.isEmpty() == false) { + for (RowMap targetMaturityMap : targetMaturityMaps) { + fieldDataMap = new HashMap(); + String FIELDTARGETKEY = targetMaturityMap.getString("FIELDTARGETKEY"); + String FIELDTARGETVAL = targetMaturityMap.getString("FIELDTARGETVAL"); + String TARGETSCORE = targetMaturityMap.getString("TARGETSCORE"); + if (null != TARGETSCORE && !TARGETSCORE.equals("")) { + TARGETSCORE = TARGETSCORE.replaceAll("__eol__", ""); + TARGETSCORE = numberformat.format(Float.parseFloat(TARGETSCORE)); + } + String AIMVALUE = targetMaturityMap.getString("AIMVALUE"); + if (null != AIMVALUE && !AIMVALUE.equals("")) { + AIMVALUE = numberformat.format(Float.parseFloat(AIMVALUE)); + } + if (FIELDTARGETKEY.equals("MATURITYTOTAL")) { + fieldDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + fieldDataMap.put("FIELDTARGETVAL", "公司级"); + fieldDataMap.put("TARGETSCORE", TARGETSCORE); + fieldDataMap.put("AIMVALUE", AIMVALUE); + } else if (FIELDTARGETKEY.equals("GY")) { + fieldDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + fieldDataMap.put("FIELDTARGETVAL", "国际业务"); + fieldDataMap.put("TARGETSCORE", TARGETSCORE); + fieldDataMap.put("AIMVALUE", AIMVALUE); + } else if (FIELDTARGETKEY.equals("SN")) { + fieldDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + fieldDataMap.put("FIELDTARGETVAL", "酸奶"); + fieldDataMap.put("TARGETSCORE", TARGETSCORE); + fieldDataMap.put("AIMVALUE", AIMVALUE); + } else if (FIELDTARGETKEY.equals("NL")) { + fieldDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + fieldDataMap.put("FIELDTARGETVAL", "奶酪"); + fieldDataMap.put("TARGETSCORE", TARGETSCORE); + fieldDataMap.put("AIMVALUE", AIMVALUE); + } else if (FIELDTARGETKEY.equals("LY")) { + fieldDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + fieldDataMap.put("FIELDTARGETVAL", "冷饮"); + fieldDataMap.put("TARGETSCORE", TARGETSCORE); + fieldDataMap.put("AIMVALUE", AIMVALUE); + } else if (FIELDTARGETKEY.equals("NF")) { + fieldDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + fieldDataMap.put("FIELDTARGETVAL", "奶粉"); + fieldDataMap.put("TARGETSCORE", TARGETSCORE); + fieldDataMap.put("AIMVALUE", AIMVALUE); + } else { + fieldDataMap.put("FIELDTARGETKEY", FIELDTARGETKEY); + fieldDataMap.put("FIELDTARGETVAL", FIELDTARGETVAL); + fieldDataMap.put("TARGETSCORE", TARGETSCORE); + fieldDataMap.put("AIMVALUE", AIMVALUE); + } + fieldDataMaps.add(fieldDataMap); + } +/* Map map1 = fieldDataMaps.get(0); + Map map2 = fieldDataMaps.get(1); + fieldDataMaps.set(0,map2); + fieldDataMaps.set(1,map1);*/ + ro.put("fieldDataMaps", fieldDataMaps); + } else { + ro.info("暂无评估记录"); + } + } + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:流程系统分布图 + * @auther: Lizj + * @date: 2022/6/24 15:33 + */ + public String sysDistribution(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + HashMap sysDistributionmap = new HashMap<>(); + ArrayList sysDistributionmaps = new ArrayList<>(); + List systemMaps = DBSql.getMaps("SELECT ITSYSVAL,COUNT(*)SYSNUM FROM BO_EU_PAL_FILENODE5 WHERE ITSYSVAL IS NOT NULL GROUP BY ITSYSVAL"); + for (RowMap systemMap : systemMaps) { + sysDistributionmap = new HashMap(); + sysDistributionmap.put("systemName", systemMap.getString("ITSYSVAL")); + sysDistributionmap.put("systemCount", systemMap.getInt("SYSNUM")); + sysDistributionmaps.add(sysDistributionmap); + } + ro.put("sysDistribution", sysDistributionmaps); + return ro.toString(); + } + + + /** + * @methodName: + * @param: + * @return: + * @description:流程节点分析筛选条件:所属单位、所属领域 + * @auther: Lizj + * @date: 2022/7/15 15:56 + */ + public String nodeAnalysisTerms(UserContext uc, RequestParams params) { + long start = System.currentTimeMillis(); + ResponseObject ro = ResponseObject.newOkResponse(); + List list = SDK.getBOAPI().query("BO_EU_FILE_OPERATIONNODE").addQuery("TYPE = ", "节点分析筛选条件").list(); + for (BO bo : list) { + String data = bo.getString("NODEDATA"); + ArrayList arr =new ArrayList(); + HashMap map = new HashMap(); + net.sf.json.JSONArray jsonArry = net.sf.json.JSONArray.fromObject(data); + for (int i = 0; i < jsonArry.size(); i++) { + JSONObject fromObject = JSONObject.fromObject(jsonArry.get(i)); + Iterator iterator = fromObject.keys(); + while(iterator.hasNext()) { + String key = (String) iterator.next(); + map.put(key, fromObject.getString(key)); + } + arr.add(map); + } + + System.out.println("================>"+arr); + String name = bo.getString("NAME"); + ro.put(name,arr); + } + long end = System.currentTimeMillis(); + System.out.println("======加载筛选框用时=====>"+(end-start)/1000); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:流程节点分析 + * @auther: Lizj + * @date: 2022/7/15 15:57 + */ + public String nodeAnalysis(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + String unit = params.get("unit"); + String field = params.get("field"); + ArrayList deptIDList = new ArrayList<>(); + ArrayList fieldList = new ArrayList<>(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + List nodeRowMaps = DBSql.getMaps("SELECT BN.NODEID,BN.NODETYPE,BF.FILEID,BF.PLPARENTID,BF.PUBDEPT FROM BO_EU_PAL_FILENODE5 BN LEFT JOIN BO_EU_PAL_FILE1 BF ON BN.PLID=BF.FILEID WHERE BF.FILESTATE='1' AND BF.PLMETHODID in ('process.epc','process.flowchart')"); + ArrayList nodeHandleMaps = new ArrayList<>(); + + if(UtilString.isNotEmpty(unit)||UtilString.isNotEmpty(field)) { + if (null!=unit && !unit.equals("")) { + if("all".equals(unit)) { + for (RowMap fileRowMap : nodeRowMaps) { + nodeHandleMaps.add(fileRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(unit, deptIDList); + for (String deptID : deptIDList) { + for (RowMap fileMap : nodeRowMaps) { + if (fileMap.getString("PUBDEPT").contains(deptID)) { + nodeHandleMaps.add(fileMap); + } + } + } + + } + nodeRowMaps = nodeHandleMaps; + } + if (null!=field && !field.equals("")) { + if("all".equals(field)) { + for (RowMap fileRowMap : nodeRowMaps) { + nodeHandleMaps.add(fileRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap fileMap : nodeRowMaps) { + if (fileMap.getString("PLPARENTID").equals(fieldID)) { + nodeHandleMaps.add(fileMap); + } + } + } + } + nodeRowMaps = nodeHandleMaps; + } + + + + Integer nodeTotalNum = 0; + Integer approvalNodeNum = 0; + Integer operationNodeNum = 0; + Integer onlineNodeNum = 0; + Integer itsysNodeNum = 0; + String approvalRrationate = "0"; + String operationRate = "0"; + String onlineRate = "0"; + String itsysRate = "0"; + if (null!=nodeRowMaps && !nodeRowMaps.isEmpty()) { + nodeTotalNum = nodeRowMaps.size(); + approvalNodeNum = 0; + operationNodeNum = 0; + onlineNodeNum = 0; + itsysNodeNum = 0; + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node") || nodeRowMap.getString("NODETYPE").equals("method_service_node")) { + approvalNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3") || nodeRowMap.getString("NODETYPE").equals("method_service_node4")) { + operationNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node")) { + onlineNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3")) { + itsysNodeNum += 1; + } + } + + approvalRrationate = numberformat.format((float) approvalNodeNum / (float) nodeTotalNum * 100); + operationRate = numberformat.format((float) operationNodeNum / (float) nodeTotalNum * 100); + onlineRate = numberformat.format((float) onlineNodeNum / (float) approvalNodeNum * 100); + itsysRate = numberformat.format((float) itsysNodeNum / (float) operationNodeNum * 100); + ro.put("nodeTotalNum",nodeTotalNum); + ro.put("approvalNodeNum",approvalNodeNum); + ro.put("approvalRrationate",approvalRrationate); + ro.put("onlineRate",onlineRate); + ro.put("operationNodeNum",operationNodeNum); + ro.put("operationRate",operationRate); + ro.put("itsysRate",itsysRate); + } else { + nodeTotalNum = 0; + approvalNodeNum = 0; + operationNodeNum = 0; + onlineNodeNum = 0; + itsysNodeNum = 0; + approvalRrationate = "0"; + operationRate = "0"; + onlineRate = "0"; + itsysRate = "0"; + ro.ok("暂无节点"); + ro.put("nodeTotalNum",nodeTotalNum); + ro.put("approvalNodeNum",approvalNodeNum); + ro.put("approvalRrationate",approvalRrationate); + ro.put("onlineRate",onlineRate); + ro.put("operationNodeNum",operationNodeNum); + ro.put("operationRate",operationRate); + ro.put("itsysRate",itsysRate); + } + }else { + List list = SDK.getBOAPI().query("BO_EU_FILE_OPERATIONNODE").addQuery("TYPE = ", "流程节点总数").list(); + for (BO bo : list) { + String data = bo.getString("NODEDATA"); + String name = bo.getString("NAME"); + if("operationNodeNum".equals(name)||"approvalNodeNum".equals(name)||"nodeTotalNum".equals(name)) { + ro.put(name,Integer.parseInt(data)); + }else { + ro.put(name,data); + + } + } + + } + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:事业部/职能部门节点信息筛选条件:所属领域 + * @auther: Lizj + * @date: 2022/8/5 0:21 + */ + public String deptNodeAttrTerms(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + //所属领域 + ArrayList frameList = new ArrayList<>(); + ArrayList fieldMaps = new ArrayList<>(); + List L1Maps = DBSql.getMaps("SELECT FRAMEID,FRAMENAME,FRAMETYPE,FRAMEORDERINDEX FROM BO_EU_PAL_FRAME WHERE FRAMELEVEL=1 AND FRAMETYPE IS NOT NULL "); + String hasRoot = "Y"; + if (null != L1Maps && !L1Maps.isEmpty()) { + for (RowMap l1Map : L1Maps) { + String L1ID = l1Map.getString("FRAMEID"); + frameList = new ArrayList<>(); + frameList = GetNodesUtil.getChildFrame(L1ID, hasRoot, frameList); + fieldMaps.addAll(frameList); + } + } + ArrayList fieldNodes = new ArrayList<>(); + for (Map fieldMap : fieldMaps) { + HashMap fieldNode = new HashMap<>(); + fieldNode.put("ID", String.valueOf(fieldMap.get("FRAMEID"))); + fieldNode.put("PARENTID", String.valueOf(fieldMap.get("FRAMEPARENTID"))); + fieldNode.put("name", String.valueOf(fieldMap.get("FRAMENAME"))); + fieldNode.put("ORDERINDEX", Integer.valueOf(String.valueOf(fieldMap.get("FRAMEORDERINDEX")))); + fieldNode.put("TLEVEL", Integer.valueOf(String.valueOf(fieldMap.get("FRAMELEVEL")))); + fieldNodes.add(fieldNode); + } + List fieldTreeNodes = TreeUtil.buildTree("1",fieldNodes, "process", null, null, null); + ro.put("fieldTreeNodes", fieldTreeNodes); + return ro.toString(); + } + + /** + * @methodName: + * @param: + * @return: + * @description:事业部/职能部门审批节点信息 + * @auther: Lizj + * @date: 2022/8/5 0:27 + */ + public String deptNodeAttrApproval(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + String field = params.get("field"); + ArrayList fieldList = new ArrayList<>(); + ArrayList deptIDList = new ArrayList<>(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + HashMap deptNodeCountMap = new HashMap<>(); + ArrayList BDApprovalNodeCountMaps = new ArrayList<>(); + ArrayList FDApprovalNodeCountMaps = new ArrayList<>(); + ArrayList BDApprovalNodeRateMaps = new ArrayList<>(); + ArrayList FDApprovalNodeRateMaps = new ArrayList<>(); + ArrayList BDApprovalOLNodeRateMaps = new ArrayList<>(); + ArrayList FDApprovalOLNodeRateMaps = new ArrayList<>(); + //事业部和职能部门ID,名称 list + List nodeRowMaps = DBSql.getMaps("SELECT BN.NODEID,BN.NODETYPE,BF.FILEID,BF.PLPARENTID,BF.PUBDEPT FROM BO_EU_PAL_FILENODE5 BN LEFT JOIN BO_EU_PAL_FILE1 BF ON BN.PLID=BF.FILEID WHERE BF.FILESTATE='1' AND BF.PLMETHODID in ('process.epc','process.flowchart')"); + ArrayList nodeHandleMaps = new ArrayList<>(); + List BDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + //审批节点数量、节点总数量、线上审批节点数量 + Integer nodeTotalNum = 0; + Integer approvalNodeNum = 0; + Integer approvalOLNodeNum = 0; + String approvalRate = "0"; + String approvalOLRate = "0"; + if(UtilString.isNotEmpty(field)) { + if (null!=field && !field.equals("")) { + if("all".equals(field)) { + for (RowMap nodeRowMap : nodeRowMaps) { + nodeHandleMaps.add(nodeRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PLPARENTID").equals(fieldID)) { + nodeHandleMaps.add(nodeRowMap); + } + } + } + + } + nodeRowMaps = nodeHandleMaps; + } + + if (null!=BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + nodeTotalNum = 0; + approvalNodeNum = 0; + approvalOLNodeNum = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node") || nodeRowMap.getString("NODETYPE").equals("method_service_node")) { + approvalNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node")) { + approvalOLNodeNum += 1; + } + } + } + } + } + deptNodeCountMap = new HashMap<>(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalNodeNum",approvalNodeNum); + BDApprovalNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + approvalRate = numberformat.format((float) approvalNodeNum / (float) nodeTotalNum * 100); + } else { + approvalRate = "0"; + } + deptNodeCountMap = new HashMap<>(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalRate",approvalRate); + BDApprovalNodeRateMaps.add(deptNodeCountMap); + if (approvalNodeNum!=0) { + approvalOLRate = numberformat.format((float) approvalOLNodeNum / (float) approvalNodeNum * 100); + } else { + approvalOLRate = "0"; + } + deptNodeCountMap = new HashMap<>(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalOLRate",approvalOLRate); + BDApprovalOLNodeRateMaps.add(deptNodeCountMap); + } + } + if (null!=FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + nodeTotalNum = 0; + approvalNodeNum = 0; + approvalOLNodeNum = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node") || nodeRowMap.getString("NODETYPE").equals("method_service_node")) { + approvalNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node")) { + approvalOLNodeNum += 1; + } + } + } + } + } + deptNodeCountMap = new HashMap<>(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalNodeNum",approvalNodeNum); + FDApprovalNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + approvalRate = numberformat.format((float) approvalNodeNum / (float) nodeTotalNum * 100); + } else { + approvalRate = "0"; + } + deptNodeCountMap = new HashMap<>(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalRate",approvalRate); + FDApprovalNodeRateMaps.add(deptNodeCountMap); + if (approvalNodeNum!=0) { + approvalOLRate = numberformat.format((float) approvalOLNodeNum / (float) approvalNodeNum * 100); + } else { + approvalOLRate = "0"; + } + deptNodeCountMap = new HashMap<>(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("approvalOLRate",approvalOLRate); + FDApprovalOLNodeRateMaps.add(deptNodeCountMap); + } + } + ro.put("BDApprovalNodeCountMaps",BDApprovalNodeCountMaps); + ro.put("FDApprovalNodeCountMaps",FDApprovalNodeCountMaps); + ro.put("BDApprovalNodeRateMaps",BDApprovalNodeRateMaps); + ro.put("FDApprovalNodeRateMaps",FDApprovalNodeRateMaps); + ro.put("BDApprovalOLNodeRateMaps",BDApprovalOLNodeRateMaps); + ro.put("FDApprovalOLNodeRateMaps",FDApprovalOLNodeRateMaps); + }else { + List list = SDK.getBOAPI().query("BO_EU_FILE_OPERATIONNODE").addQuery("TYPE = ", "审批节点信息").list(); + for (BO bo : list) { + ro.put(bo.getString("NAME"),bo.getString("NODEDATA")); + + } + } + + return ro.toString(); + } + /** + * @methodName: + * @param: + * @return: + * @description:事业部/职能部门操作节点信息 + * @auther: Lizj + * @date: 2022/8/5 0:27 + */ + public String deptNodeAttrOperation(UserContext uc, RequestParams params) { + ResponseObject ro = ResponseObject.newOkResponse(); + String field = params.get("field"); + ArrayList fieldList = new ArrayList<>(); + ArrayList deptIDList = new ArrayList<>(); + NumberFormat numberformat = NumberFormat.getInstance(); + numberformat.setMaximumFractionDigits(2); + HashMap deptNodeCountMap = new HashMap<>(); + ArrayList BDOperationNodeCountMaps = new ArrayList<>(); + ArrayList FDOperationNodeCountMaps = new ArrayList<>(); + ArrayList BDOperationNodeRateMaps = new ArrayList<>(); + ArrayList FDOperationNodeRateMaps = new ArrayList<>(); + ArrayList BDOperationOLNodeRateMaps = new ArrayList<>(); + ArrayList FDOperationOLNodeRateMaps = new ArrayList<>(); + //事业部和职能部门ID,名称 list + List nodeRowMaps = DBSql.getMaps("SELECT BN.NODEID,BN.NODETYPE,BF.FILEID,BF.PLPARENTID,BF.PUBDEPT FROM BO_EU_PAL_FILENODE5 BN LEFT JOIN BO_EU_PAL_FILE1 BF ON BN.PLID=BF.FILEID WHERE BF.FILESTATE='1' AND BF.PLMETHODID in ('process.epc','process.flowchart')"); + ArrayList nodeHandleMaps = new ArrayList<>(); + List BDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='BD'"); + List FDInfoMaps = DBSql.getMaps("SELECT DEPTID,DEPTNAME,ABBREVIATION,DEPTTYPE FROM BO_EU_DEPT_ABBREVIATION WHERE DEPTTYPE='FD'"); + //审批节点数量、节点总数量、线上审批节点数量 + Integer nodeTotalNum = 0; + Integer operationNodeNum = 0; + Integer operationOLNodeNum = 0; + String operationNodeRate = "0"; + String operationOLNodeRate = "0"; + if(UtilString.isNotEmpty(field)) { + if (null!=field && !field.equals("")) { + if("all".equals(field)) { + for (RowMap fileRowMap : nodeRowMaps) { + nodeHandleMaps.add(fileRowMap); + } + }else { + nodeHandleMaps = new ArrayList<>(); + fieldList = new ArrayList(); + fieldList = GetNodesUtil.getChildFrame(field,"", fieldList); + for (Map fieldMap : fieldList) { + String fieldID = String.valueOf(fieldMap.get("FRAMEID")); + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PLPARENTID").equals(fieldID)) { + nodeHandleMaps.add(nodeRowMap); + } + } + } + + } + nodeRowMaps = nodeHandleMaps; + } + + if (null!=BDInfoMaps && !BDInfoMaps.isEmpty()) { + for (RowMap bdInfoMap : BDInfoMaps) { + nodeTotalNum = 0; + operationNodeNum = 0; + operationOLNodeNum = 0; + String bdDeptID = bdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(bdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3") || nodeRowMap.getString("NODETYPE").equals("method_service_node4")) { + operationNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3")) { + operationOLNodeNum += 1; + } + } + } + } + } + deptNodeCountMap = new HashMap<>(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeNum",operationNodeNum); + BDOperationNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + operationNodeRate = numberformat.format((float) operationNodeNum / (float) nodeTotalNum * 100); + } else { + operationNodeRate = "0"; + } + deptNodeCountMap = new HashMap<>(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeRate",operationNodeRate); + BDOperationNodeRateMaps.add(deptNodeCountMap); + if (operationNodeNum!=0) { + operationOLNodeRate = numberformat.format((float) operationOLNodeNum / (float) operationNodeNum * 100); + } else { + operationOLNodeRate = "0"; + } + deptNodeCountMap = new HashMap<>(); + deptNodeCountMap.put("deptID",bdDeptID); + deptNodeCountMap.put("deptName",bdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationOLNodeRate",operationOLNodeRate); + BDOperationOLNodeRateMaps.add(deptNodeCountMap); + } + } + if (null!=FDInfoMaps && !FDInfoMaps.isEmpty()) { + for (RowMap fdInfoMap : FDInfoMaps) { + nodeTotalNum = 0; + operationNodeNum = 0; + operationOLNodeNum = 0; + String fdDeptID = fdInfoMap.getString("DEPTID"); + deptIDList = new ArrayList(); + deptIDList = GetNodesUtil.getChildDept(fdDeptID, deptIDList); + if (null!=deptIDList && !deptIDList.isEmpty()) { + for (String deptID : deptIDList) { + for (RowMap nodeRowMap : nodeRowMaps) { + if (nodeRowMap.getString("PUBDEPT").contains(deptID)) { + nodeTotalNum += 1; + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3") || nodeRowMap.getString("NODETYPE").equals("method_service_node4")) { + operationNodeNum += 1; + } + if (nodeRowMap.getString("NODETYPE").equals("method_approval_node3")) { + operationOLNodeNum += 1; + } + } + } + } + } + deptNodeCountMap = new HashMap<>(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeNum",operationNodeNum); + FDOperationNodeCountMaps.add(deptNodeCountMap); + if (nodeTotalNum!=0) { + operationNodeRate = numberformat.format((float) operationNodeNum / (float) nodeTotalNum * 100); + } else { + operationNodeRate = "0"; + } + deptNodeCountMap = new HashMap<>(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationNodeRate",operationNodeRate); + FDOperationNodeRateMaps.add(deptNodeCountMap); + if (operationNodeNum!=0) { + operationOLNodeRate = numberformat.format((float) operationOLNodeNum / (float) operationNodeNum * 100); + } else { + operationOLNodeRate = "0"; + } + deptNodeCountMap = new HashMap<>(); + deptNodeCountMap.put("deptID",fdDeptID); + deptNodeCountMap.put("deptName",fdInfoMap.getString("ABBREVIATION")); + deptNodeCountMap.put("operationOLNodeRate",operationOLNodeRate); + FDOperationOLNodeRateMaps.add(deptNodeCountMap); + } + } + + ro.put("BDOperationNodeCountMaps",BDOperationNodeCountMaps); + ro.put("FDOperationNodeCountMaps",FDOperationNodeCountMaps); + ro.put("BDOperationNodeRateMaps",BDOperationNodeRateMaps); + ro.put("FDOperationNodeRateMaps",FDOperationNodeRateMaps); + ro.put("BDOperationOLNodeRateMaps",BDOperationOLNodeRateMaps); + ro.put("FDOperationOLNodeRateMaps",FDOperationOLNodeRateMaps); + }else { + List list = SDK.getBOAPI().query("BO_EU_FILE_OPERATIONNODE").addQuery("TYPE = ", "操作节点信息").list(); + for (BO bo : list) { + ro.put(bo.getString("NAME"),bo.getString("NODEDATA")); + + } + + } + + + + + return ro.toString(); + } + +} \ No newline at end of file