Browse Source

考勤模块改造

chenzhfa 3 years ago
parent
commit
7fb9213fcf
100 changed files with 25590 additions and 0 deletions
  1. 22 0
      hrkq/.classpath
  2. 7 0
      hrkq/META-INF/module.xml
  3. 9 0
      hrkq/hrkq/META-INF/P_MonthOtTimeVO.upm
  4. 1 0
      hrkq/hrkq/META-INF/hrkq.json
  5. 1 0
      hrkq/hrkq/META-INF/hrkq51557271.json
  6. 1 0
      hrkq/hrkq/META-INF/hrkqCloud.json
  7. 201 0
      hrkq/hrkq/METADATA/monthottime.bmf
  8. BIN
      hrkq/hrkq/resources/lang/simpchn/app_60201072/60201072.properties
  9. BIN
      hrkq/hrkq/resources/lang/simpchn/appcode/hrkq_60201072_app_register.properties
  10. BIN
      hrkq/hrkq/resources/lang/simpchn/appcode/hrkq_60201072_button_register.properties
  11. BIN
      hrkq/hrkq/resources/lang/simpchn/appcode/hrkq_60201072_page.properties
  12. BIN
      hrkq/hrkq/resources/lang/simpchn/appmenucode/hrkq_60201072_menucode.properties
  13. BIN
      hrkq/hrkq/resources/lang/simpchn/funcode/hrkq_60201072_module.properties
  14. BIN
      hrkq/hrkq/resources/lang/simpchn/hrkq_hrkq001_0/hrkq.properties
  15. BIN
      hrkq/hrkq/resources/lang/simpchn/hrkq_hrkq002_0/hrkq.properties
  16. BIN
      hrkq/hrkq/resources/lang/simpchn/hrkq_hrkq003_0/hrkq_Hrkq.properties
  17. 486 0
      hrkq/hrkq/script/billtype/bd_billtype/bd_billtype_6QBB/001.sql
  18. 486 0
      hrkq/hrkq/script/billtype/bd_billtype/bd_billtype_6QBO/001.sql
  19. 486 0
      hrkq/hrkq/script/billtype/bd_billtype/bd_billtype_6QOT/001.sql
  20. 168 0
      hrkq/hrkq/script/business/pub_bcr_nbcr/pub_bcr_nbcr_6QBB/001.sql
  21. 168 0
      hrkq/hrkq/script/business/pub_bcr_nbcr/pub_bcr_nbcr_6QBO/001.sql
  22. 168 0
      hrkq/hrkq/script/business/pub_bcr_nbcr/pub_bcr_nbcr_6QOT/001.sql
  23. 539 0
      hrkq/hrkq/script/business/pub_page_templet/60201070/001.sql
  24. 466 0
      hrkq/hrkq/script/business/pub_page_templet/60201071/001.sql
  25. 466 0
      hrkq/hrkq/script/business/pub_page_templet/60201072/001.sql
  26. 19 0
      hrkq/hrkq/script/business/sm_appregister/602010/001.sql
  27. 144 0
      hrkq/hrkq/script/business/sm_appregister/60201070/002.sql
  28. 144 0
      hrkq/hrkq/script/business/sm_appregister/60201071/002.sql
  29. 144 0
      hrkq/hrkq/script/business/sm_appregister/60201072/002.sql
  30. 10 0
      hrkq/hrkq/script/conf/initdata/items-60201070.json
  31. 10 0
      hrkq/hrkq/script/conf/initdata/items-60201071.json
  32. 10 0
      hrkq/hrkq/script/conf/initdata/items-60201072.json
  33. 4 0
      hrkq/hrkq/script/systemtype/dap_dapsystem/dap_dapsystem60/001.sql
  34. 32 0
      hrkq/hrkq/script/template/60201070/appPage.json
  35. 336 0
      hrkq/hrkq/script/template/60201070/appbutton.json
  36. 43 0
      hrkq/hrkq/script/template/60201070/appmenu.json
  37. 27 0
      hrkq/hrkq/script/template/60201070/appregister.json
  38. 158 0
      hrkq/hrkq/script/template/60201070/area.json
  39. 86 0
      hrkq/hrkq/script/template/60201070/billaction.json
  40. 21 0
      hrkq/hrkq/script/template/60201070/billcodebase.json
  41. 38 0
      hrkq/hrkq/script/template/60201070/billcodeelem.json
  42. 14 0
      hrkq/hrkq/script/template/60201070/billcoderule.json
  43. 28 0
      hrkq/hrkq/script/template/60201070/billtype.json
  44. 68 0
      hrkq/hrkq/script/template/60201070/busiclass.json
  45. 9 0
      hrkq/hrkq/script/template/60201070/createcorp.json
  46. 3797 0
      hrkq/hrkq/script/template/60201070/formproperty.json
  47. 44 0
      hrkq/hrkq/script/template/60201070/pagetemple.json
  48. 1363 0
      hrkq/hrkq/script/template/60201070/queryproperty.json
  49. 539 0
      hrkq/hrkq/script/template/60201070/sql001/001.sql
  50. 486 0
      hrkq/hrkq/script/template/60201070/sql002/001.sql
  51. 168 0
      hrkq/hrkq/script/template/60201070/sql003/001.sql
  52. 32 0
      hrkq/hrkq/script/template/60201071/appPage.json
  53. 336 0
      hrkq/hrkq/script/template/60201071/appbutton.json
  54. 43 0
      hrkq/hrkq/script/template/60201071/appmenu.json
  55. 27 0
      hrkq/hrkq/script/template/60201071/appregister.json
  56. 158 0
      hrkq/hrkq/script/template/60201071/area.json
  57. 86 0
      hrkq/hrkq/script/template/60201071/billaction.json
  58. 21 0
      hrkq/hrkq/script/template/60201071/billcodebase.json
  59. 38 0
      hrkq/hrkq/script/template/60201071/billcodeelem.json
  60. 14 0
      hrkq/hrkq/script/template/60201071/billcoderule.json
  61. 28 0
      hrkq/hrkq/script/template/60201071/billtype.json
  62. 68 0
      hrkq/hrkq/script/template/60201071/busiclass.json
  63. 9 0
      hrkq/hrkq/script/template/60201071/createcorp.json
  64. 3919 0
      hrkq/hrkq/script/template/60201071/formproperty.json
  65. 44 0
      hrkq/hrkq/script/template/60201071/pagetemple.json
  66. 48 0
      hrkq/hrkq/script/template/60201071/queryproperty.json
  67. 466 0
      hrkq/hrkq/script/template/60201071/sql001/001.sql
  68. 486 0
      hrkq/hrkq/script/template/60201071/sql002/001.sql
  69. 168 0
      hrkq/hrkq/script/template/60201071/sql003/001.sql
  70. 32 0
      hrkq/hrkq/script/template/60201072/appPage.json
  71. 336 0
      hrkq/hrkq/script/template/60201072/appbutton.json
  72. 43 0
      hrkq/hrkq/script/template/60201072/appmenu.json
  73. 27 0
      hrkq/hrkq/script/template/60201072/appregister.json
  74. 158 0
      hrkq/hrkq/script/template/60201072/area.json
  75. 86 0
      hrkq/hrkq/script/template/60201072/billaction.json
  76. 21 0
      hrkq/hrkq/script/template/60201072/billcodebase.json
  77. 38 0
      hrkq/hrkq/script/template/60201072/billcodeelem.json
  78. 14 0
      hrkq/hrkq/script/template/60201072/billcoderule.json
  79. 28 0
      hrkq/hrkq/script/template/60201072/billtype.json
  80. 68 0
      hrkq/hrkq/script/template/60201072/busiclass.json
  81. 9 0
      hrkq/hrkq/script/template/60201072/createcorp.json
  82. 3919 0
      hrkq/hrkq/script/template/60201072/formproperty.json
  83. 44 0
      hrkq/hrkq/script/template/60201072/pagetemple.json
  84. 48 0
      hrkq/hrkq/script/template/60201072/queryproperty.json
  85. 466 0
      hrkq/hrkq/script/template/60201072/sql001/001.sql
  86. 486 0
      hrkq/hrkq/script/template/60201072/sql002/001.sql
  87. 168 0
      hrkq/hrkq/script/template/60201072/sql003/001.sql
  88. 100 0
      hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOAppQueryCardAction.java
  89. 240 0
      hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOAppQueryListAction.java
  90. 190 0
      hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOCheckSaveAction.java
  91. 292 0
      hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOCommitAction.java
  92. 433 0
      hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOCommonSaveAction.java
  93. 62 0
      hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVODefaultAction.java
  94. 129 0
      hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVODeleteAction.java
  95. 20 0
      hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOPrintAction.java
  96. 111 0
      hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOQueryByPksAction.java
  97. 98 0
      hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOQueryCardAction.java
  98. 252 0
      hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOQueryListAction.java
  99. 264 0
      hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOSaveAction.java
  100. 0 0
      hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOUnCommitAction.java

+ 22 - 0
hrkq/.classpath

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="hrkq/classes" path="hrkq/src/public"/>
+	<classpathentry kind="src" output="hrkq/classes" path="hrkq/src/client"/>
+	<classpathentry kind="src" output="hrkq/classes" path="hrkq/src/private"/>
+	<classpathentry kind="src" output="hrkq/classes" path="hrkq/resources"/>
+	<classpathentry kind="src" output="hrkq/classes" path="hrkq/src/test"/>
+	<classpathentry kind="lib" path="D:/SDK/lombok.jar"/>
+	<classpathentry kind="src" output="out/resources" path="resources"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="nc.uap.mde.library.container/Ant_Library"/>
+	<classpathentry kind="con" path="nc.uap.mde.library.container/Product_Common_Library"/>
+	<classpathentry kind="con" path="nc.uap.mde.library.container/Middleware_Library"/>
+	<classpathentry kind="con" path="nc.uap.mde.library.container/Framework_Library"/>
+	<classpathentry kind="con" path="nc.uap.mde.library.container/Module_Public_Library"/>
+	<classpathentry kind="con" path="nc.uap.mde.library.container/Module_Client_Library"/>
+	<classpathentry kind="con" path="nc.uap.mde.library.container/Module_Private_Library"/>
+	<classpathentry kind="con" path="nc.uap.mde.library.container/Module_Lang_Library"/>
+	<classpathentry kind="con" path="nc.uap.mde.library.container/Generated_EJB"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/ncchr"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>

+ 7 - 0
hrkq/META-INF/module.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="gb2312"?>
+<module name="hrkq">
+    <public>
+    </public>
+    <private>
+    </private>
+</module>

+ 9 - 0
hrkq/hrkq/META-INF/P_MonthOtTimeVO.upm

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding='gb2312'?>
+<module name="hrkq">
+  <public>
+        <component remote="true" singleton="true"  tx="CMT">
+          <interface>nccloud.itf.hrkq.hrkq.IMonthottimevoMaintain</interface>
+          <implementation>nccloud.impl.hrkq.hrkq.MonthottimevoMaintainImpl</implementation>
+        </component>
+  </public> 
+</module> 

+ 1 - 0
hrkq/hrkq/META-INF/hrkq.json

@@ -0,0 +1 @@
+51557271,

File diff suppressed because it is too large
+ 1 - 0
hrkq/hrkq/META-INF/hrkq51557271.json


File diff suppressed because it is too large
+ 1 - 0
hrkq/hrkq/META-INF/hrkqCloud.json


File diff suppressed because it is too large
+ 201 - 0
hrkq/hrkq/METADATA/monthottime.bmf


BIN
hrkq/hrkq/resources/lang/simpchn/app_60201072/60201072.properties


BIN
hrkq/hrkq/resources/lang/simpchn/appcode/hrkq_60201072_app_register.properties


BIN
hrkq/hrkq/resources/lang/simpchn/appcode/hrkq_60201072_button_register.properties


BIN
hrkq/hrkq/resources/lang/simpchn/appcode/hrkq_60201072_page.properties


BIN
hrkq/hrkq/resources/lang/simpchn/appmenucode/hrkq_60201072_menucode.properties


BIN
hrkq/hrkq/resources/lang/simpchn/funcode/hrkq_60201072_module.properties


BIN
hrkq/hrkq/resources/lang/simpchn/hrkq_hrkq001_0/hrkq.properties


BIN
hrkq/hrkq/resources/lang/simpchn/hrkq_hrkq002_0/hrkq.properties


BIN
hrkq/hrkq/resources/lang/simpchn/hrkq_hrkq003_0/hrkq_Hrkq.properties


+ 486 - 0
hrkq/hrkq/script/billtype/bd_billtype/bd_billtype_6QBB/001.sql

@@ -0,0 +1,486 @@
+INSERT INTO bd_billtype (
+        pk_billtypeid,
+        accountclass,
+        billcoderule,
+        billstyle,
+        billtypename,
+        canextendtransaction,
+        checkclassname,
+        classname,
+        comp,
+        component,
+        datafinderclz,
+        def1,
+        def2,
+        def3,
+        dr,
+        emendenumclass,
+        forwardbilltype,
+        isaccount,
+        isapprovebill,
+        isbizflowbill,
+        iseditableproperty,
+        isenablebutton,
+        isenabletranstypebcr,
+        islightbill,
+        islock,
+        isrejectuneditableproperty,
+        isroot,
+        issupportmobile,
+        istransaction,
+        isworkflowcanautoapprove,
+        ncbrcode,
+        nodecode,
+        parentbilltype,
+        pk_billtypecode,
+        pk_group,
+        pk_org,
+        referclassname,
+        systemcode,
+        transtype_class,
+        ts,
+        webnodecode,
+        wherestring
+)
+VALUES
+        (
+                '0001ZZZZDDC1AA69596F',
+                NULL,
+                '~',
+                NULL,
+                '本月加班申请',
+                'Y',
+                NULL,
+                NULL,
+                NULL,
+                'batchovertime',
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                'Y',
+                'Y',
+                'N',
+                'N',
+                'N',
+                'N',
+                NULL,
+                NULL,
+                NULL,
+                'N',
+                'Y',
+                'N',
+                'N',
+                '~',
+                '60201070',
+                '~',
+                '6QBB',
+                '~',
+                'GLOBLE00000000000000',
+                NULL,
+                'HRKQ',
+                NULL,
+                '2021-09-09 16:12:38',
+                '~',
+                NULL
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZFF3C9363E089',
+                11,
+                '~',
+                '2',
+                NULL,
+                'APPROVE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                NULL,
+                '~',
+                '2021-09-09 16:12:38'
+        );
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZCC5A82CDD5AB',
+                30,
+                '~',
+                '3',
+                NULL,
+                'DELETE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                NULL,
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ65C52F5C533B',
+                10,
+                '~',
+                '1',
+                NULL,
+                'SAVE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                NULL,
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZB943A261DC23',
+                31,
+                '~',
+                '1',
+                NULL,
+                'SAVEBASE',
+                'Y',
+                'N',
+                NULL,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                NULL,
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO PUB_BILLACTION (
+        PK_BILLACTION,
+        ACTION_TYPE,
+        ACTIONNOTE,
+        ACTIONSTYLE,
+        ACTIONSTYLEREMARK,
+        ACTIONTYPE,
+        CONSTRICTFLAG,
+        CONTROLFLAG,
+        DR,
+        FINISHFLAG,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PUSHFLAG,
+        SHOWHINT,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZ796B04CFF878',
+                12,
+                '~',
+                '3',
+                NULL,
+                'UNAPPROVE',
+                'N',
+                'N',
+                NULL,
+                'Y',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                NULL,
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO PUB_BILLACTION (
+        PK_BILLACTION,
+        ACTION_TYPE,
+        ACTIONNOTE,
+        ACTIONSTYLE,
+        ACTIONSTYLEREMARK,
+        ACTIONTYPE,
+        CONSTRICTFLAG,
+        CONTROLFLAG,
+        DR,
+        FINISHFLAG,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PUSHFLAG,
+        SHOWHINT,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZ4F9647014E84',
+                13,
+                '~',
+                '3',
+                NULL,
+                'UNSAVEBILL',
+                'N',
+                'Y',
+                NULL,
+                'Y',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                NULL,
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ97BB9B6898FE',
+                'SAVE',
+                'N_6QBB_SAVE',
+                0,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                '~',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZD88D8D49BF2C',
+                'APPROVE',
+                'N_6QBB_APPROVE',
+                0,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                '~',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZAF50710BFF86',
+                'UNSAVEBILL',
+                'N_6QBB_UNSAVEBILL',
+                0,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                '~',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ2D6DDB48D7FD',
+                'UNAPPROVE',
+                'N_6QBB_UNAPPROVE',
+                0,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                '~',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZEF5FFF9FCBE2',
+                'DELETE',
+                'N_6QBB_DELETE',
+                0,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                '~',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO PUB_BUSICLASS (
+        PK_BUSICLASS,
+        ACTIONTYPE,
+        CLASSNAME,
+        DR,
+        ISBEFORE,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PK_BUSINESSTYPE,
+        PK_GROUP,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZFC09D0132E21',
+                'SAVEBASE',
+                'N_6QBB_SAVEBASE',
+                0,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                '~',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+go

+ 486 - 0
hrkq/hrkq/script/billtype/bd_billtype/bd_billtype_6QBO/001.sql

@@ -0,0 +1,486 @@
+INSERT INTO bd_billtype (
+        pk_billtypeid,
+        accountclass,
+        billcoderule,
+        billstyle,
+        billtypename,
+        canextendtransaction,
+        checkclassname,
+        classname,
+        comp,
+        component,
+        datafinderclz,
+        def1,
+        def2,
+        def3,
+        dr,
+        emendenumclass,
+        forwardbilltype,
+        isaccount,
+        isapprovebill,
+        isbizflowbill,
+        iseditableproperty,
+        isenablebutton,
+        isenabletranstypebcr,
+        islightbill,
+        islock,
+        isrejectuneditableproperty,
+        isroot,
+        issupportmobile,
+        istransaction,
+        isworkflowcanautoapprove,
+        ncbrcode,
+        nodecode,
+        parentbilltype,
+        pk_billtypecode,
+        pk_group,
+        pk_org,
+        referclassname,
+        systemcode,
+        transtype_class,
+        ts,
+        webnodecode,
+        wherestring
+)
+VALUES
+        (
+                '0001ZZZZ3315A1630967',
+                NULL,
+                '~',
+                NULL,
+                '本月加班申请',
+                'Y',
+                NULL,
+                NULL,
+                NULL,
+                'monthottime',
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                'Y',
+                'Y',
+                'N',
+                'N',
+                'N',
+                'N',
+                NULL,
+                NULL,
+                NULL,
+                'N',
+                'Y',
+                'N',
+                'N',
+                '~',
+                '60201071',
+                '~',
+                '6QBO',
+                '~',
+                'GLOBLE00000000000000',
+                NULL,
+                'HRKQ',
+                NULL,
+                '2021-09-10 08:38:11',
+                '~',
+                NULL
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ9B620984C3D1',
+                11,
+                '~',
+                '2',
+                NULL,
+                'APPROVE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                NULL,
+                '~',
+                '2021-09-10 08:38:11'
+        );
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZC27925BE1A0A',
+                30,
+                '~',
+                '3',
+                NULL,
+                'DELETE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                NULL,
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZB38B4DA00C56',
+                10,
+                '~',
+                '1',
+                NULL,
+                'SAVE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                NULL,
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ2FD9B8A496A8',
+                31,
+                '~',
+                '1',
+                NULL,
+                'SAVEBASE',
+                'Y',
+                'N',
+                NULL,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                NULL,
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO PUB_BILLACTION (
+        PK_BILLACTION,
+        ACTION_TYPE,
+        ACTIONNOTE,
+        ACTIONSTYLE,
+        ACTIONSTYLEREMARK,
+        ACTIONTYPE,
+        CONSTRICTFLAG,
+        CONTROLFLAG,
+        DR,
+        FINISHFLAG,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PUSHFLAG,
+        SHOWHINT,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZ2C7CCAEEC159',
+                12,
+                '~',
+                '3',
+                NULL,
+                'UNAPPROVE',
+                'N',
+                'N',
+                NULL,
+                'Y',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                NULL,
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO PUB_BILLACTION (
+        PK_BILLACTION,
+        ACTION_TYPE,
+        ACTIONNOTE,
+        ACTIONSTYLE,
+        ACTIONSTYLEREMARK,
+        ACTIONTYPE,
+        CONSTRICTFLAG,
+        CONTROLFLAG,
+        DR,
+        FINISHFLAG,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PUSHFLAG,
+        SHOWHINT,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZ2D534DB50E60',
+                13,
+                '~',
+                '3',
+                NULL,
+                'UNSAVEBILL',
+                'N',
+                'Y',
+                NULL,
+                'Y',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                NULL,
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ63772BB420C1',
+                'SAVE',
+                'N_6QBO_SAVE',
+                0,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                '~',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZE08DED139B6F',
+                'APPROVE',
+                'N_6QBO_APPROVE',
+                0,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                '~',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ8992703115D1',
+                'UNSAVEBILL',
+                'N_6QBO_UNSAVEBILL',
+                0,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                '~',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ394E3948E528',
+                'UNAPPROVE',
+                'N_6QBO_UNAPPROVE',
+                0,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                '~',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZCFCC0F40896B',
+                'DELETE',
+                'N_6QBO_DELETE',
+                0,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                '~',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO PUB_BUSICLASS (
+        PK_BUSICLASS,
+        ACTIONTYPE,
+        CLASSNAME,
+        DR,
+        ISBEFORE,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PK_BUSINESSTYPE,
+        PK_GROUP,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZ561CDA507C68',
+                'SAVEBASE',
+                'N_6QBO_SAVEBASE',
+                0,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                '~',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+go

+ 486 - 0
hrkq/hrkq/script/billtype/bd_billtype/bd_billtype_6QOT/001.sql

@@ -0,0 +1,486 @@
+INSERT INTO bd_billtype (
+        pk_billtypeid,
+        accountclass,
+        billcoderule,
+        billstyle,
+        billtypename,
+        canextendtransaction,
+        checkclassname,
+        classname,
+        comp,
+        component,
+        datafinderclz,
+        def1,
+        def2,
+        def3,
+        dr,
+        emendenumclass,
+        forwardbilltype,
+        isaccount,
+        isapprovebill,
+        isbizflowbill,
+        iseditableproperty,
+        isenablebutton,
+        isenabletranstypebcr,
+        islightbill,
+        islock,
+        isrejectuneditableproperty,
+        isroot,
+        issupportmobile,
+        istransaction,
+        isworkflowcanautoapprove,
+        ncbrcode,
+        nodecode,
+        parentbilltype,
+        pk_billtypecode,
+        pk_group,
+        pk_org,
+        referclassname,
+        systemcode,
+        transtype_class,
+        ts,
+        webnodecode,
+        wherestring
+)
+VALUES
+        (
+                '0001ZZZZ9C2F60F32738',
+                NULL,
+                '~',
+                NULL,
+                '本月加班申请',
+                'Y',
+                NULL,
+                NULL,
+                NULL,
+                'monthottime',
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                'Y',
+                'Y',
+                'N',
+                'N',
+                'N',
+                'N',
+                NULL,
+                NULL,
+                NULL,
+                'N',
+                'Y',
+                'N',
+                'N',
+                '~',
+                '60201072',
+                '~',
+                '6QOT',
+                '~',
+                'GLOBLE00000000000000',
+                NULL,
+                'HRKQ',
+                NULL,
+                '2021-09-10 19:50:19',
+                '~',
+                NULL
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZFD66543A7FC6',
+                11,
+                '~',
+                '2',
+                NULL,
+                'APPROVE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                NULL,
+                '~',
+                '2021-09-10 19:50:19'
+        );
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ737C6AE95956',
+                30,
+                '~',
+                '3',
+                NULL,
+                'DELETE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                NULL,
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZA52A0848BD2D',
+                10,
+                '~',
+                '1',
+                NULL,
+                'SAVE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                NULL,
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ786F7B640D7A',
+                31,
+                '~',
+                '1',
+                NULL,
+                'SAVEBASE',
+                'Y',
+                'N',
+                NULL,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                NULL,
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO PUB_BILLACTION (
+        PK_BILLACTION,
+        ACTION_TYPE,
+        ACTIONNOTE,
+        ACTIONSTYLE,
+        ACTIONSTYLEREMARK,
+        ACTIONTYPE,
+        CONSTRICTFLAG,
+        CONTROLFLAG,
+        DR,
+        FINISHFLAG,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PUSHFLAG,
+        SHOWHINT,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZ612253B89B47',
+                12,
+                '~',
+                '3',
+                NULL,
+                'UNAPPROVE',
+                'N',
+                'N',
+                NULL,
+                'Y',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                NULL,
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO PUB_BILLACTION (
+        PK_BILLACTION,
+        ACTION_TYPE,
+        ACTIONNOTE,
+        ACTIONSTYLE,
+        ACTIONSTYLEREMARK,
+        ACTIONTYPE,
+        CONSTRICTFLAG,
+        CONTROLFLAG,
+        DR,
+        FINISHFLAG,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PUSHFLAG,
+        SHOWHINT,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZ9C8584FD0150',
+                13,
+                '~',
+                '3',
+                NULL,
+                'UNSAVEBILL',
+                'N',
+                'Y',
+                NULL,
+                'Y',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                NULL,
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZC5DC9DCA44F8',
+                'SAVE',
+                'N_6QOT_SAVE',
+                0,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                '~',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ34E35B216D4D',
+                'APPROVE',
+                'N_6QOT_APPROVE',
+                0,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                '~',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZEC23A097A470',
+                'UNSAVEBILL',
+                'N_6QOT_UNSAVEBILL',
+                0,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                '~',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ02876A3A5732',
+                'UNAPPROVE',
+                'N_6QOT_UNAPPROVE',
+                0,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                '~',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ29822A560AE6',
+                'DELETE',
+                'N_6QOT_DELETE',
+                0,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                '~',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO PUB_BUSICLASS (
+        PK_BUSICLASS,
+        ACTIONTYPE,
+        CLASSNAME,
+        DR,
+        ISBEFORE,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PK_BUSINESSTYPE,
+        PK_GROUP,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZ6F04947CC4FC',
+                'SAVEBASE',
+                'N_6QOT_SAVEBASE',
+                0,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                '~',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+go

+ 168 - 0
hrkq/hrkq/script/business/pub_bcr_nbcr/pub_bcr_nbcr_6QBB/001.sql

@@ -0,0 +1,168 @@
+INSERT INTO pub_bcr_nbcr (
+        pk_nbcr,
+        code,
+        codelenth,
+        codescope,
+        codestyle,
+        comp,
+        dr,
+        metaid,
+        name,
+        orgtype,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZE9F1A0CA4262',
+                '6QBB',
+                40,
+                'global',
+                'after',
+                NULL,
+                0,
+                'ae1158ce-d80c-43e5-b4d8-e039955455c3',
+                '本月加班申请',
+                'GLOBLE00000000000000',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_bcr_rulebase (
+        pk_billcodebase,
+        codemode,
+        codescope,
+        dataoriginflag,
+        dr,
+        format,
+        isautofill,
+        isdefault,
+        iseditable,
+        isgetpk,
+        islenvar,
+        isused,
+        nbcrcode,
+        pk_group,
+        rulecode,
+        rulename,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ759FC3014892',
+                'after',
+                'g',
+                0,
+                0,
+                'yyyyMMdd',
+                'Y',
+                'N',
+                'N',
+                'N',
+                'Y',
+                'Y',
+                '6QBB',
+                'GLOBLE00000000000000',
+                '6QBB',
+                '本月加班申请',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZB6F9D301B7EB',
+                NULL,
+                0,
+                4,
+                0,
+                '6QBB',
+                0,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ759FC3014892',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+go
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZED9AE1926A44',
+                NULL,
+                0,
+                8,
+                2,
+                'billdate',
+                1,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ759FC3014892',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+go
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ11E471766008',
+                NULL,
+                0,
+                8,
+                3,
+                'nc.pub.billcode.BillCodePureDigitalSNGenerator',
+                2,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ759FC3014892',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+go

+ 168 - 0
hrkq/hrkq/script/business/pub_bcr_nbcr/pub_bcr_nbcr_6QBO/001.sql

@@ -0,0 +1,168 @@
+INSERT INTO pub_bcr_nbcr (
+        pk_nbcr,
+        code,
+        codelenth,
+        codescope,
+        codestyle,
+        comp,
+        dr,
+        metaid,
+        name,
+        orgtype,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZC3763A3CA5F7',
+                '6QBO',
+                40,
+                'global',
+                'after',
+                NULL,
+                0,
+                '7dea45a4-dac9-4407-926c-91bdc722b6ad',
+                '本月加班申请',
+                'GLOBLE00000000000000',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_bcr_rulebase (
+        pk_billcodebase,
+        codemode,
+        codescope,
+        dataoriginflag,
+        dr,
+        format,
+        isautofill,
+        isdefault,
+        iseditable,
+        isgetpk,
+        islenvar,
+        isused,
+        nbcrcode,
+        pk_group,
+        rulecode,
+        rulename,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ450AA035B640',
+                'after',
+                'g',
+                0,
+                0,
+                'yyyyMMdd',
+                'Y',
+                'N',
+                'N',
+                'N',
+                'Y',
+                'Y',
+                '6QBO',
+                'GLOBLE00000000000000',
+                '6QBO',
+                '本月加班申请',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZBA7DB2F30FD5',
+                NULL,
+                0,
+                4,
+                0,
+                '6QBO',
+                0,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ450AA035B640',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+go
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ08AED2A0719E',
+                NULL,
+                0,
+                8,
+                2,
+                'billdate',
+                1,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ450AA035B640',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+go
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ90CE32B99587',
+                NULL,
+                0,
+                8,
+                3,
+                'nc.pub.billcode.BillCodePureDigitalSNGenerator',
+                2,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ450AA035B640',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+go

+ 168 - 0
hrkq/hrkq/script/business/pub_bcr_nbcr/pub_bcr_nbcr_6QOT/001.sql

@@ -0,0 +1,168 @@
+INSERT INTO pub_bcr_nbcr (
+        pk_nbcr,
+        code,
+        codelenth,
+        codescope,
+        codestyle,
+        comp,
+        dr,
+        metaid,
+        name,
+        orgtype,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZAF3168A40F81',
+                '6QOT',
+                40,
+                'global',
+                'after',
+                NULL,
+                0,
+                '7dea45a4-dac9-4407-926c-91bdc722b6ad',
+                '本月加班申请',
+                'GLOBLE00000000000000',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_bcr_rulebase (
+        pk_billcodebase,
+        codemode,
+        codescope,
+        dataoriginflag,
+        dr,
+        format,
+        isautofill,
+        isdefault,
+        iseditable,
+        isgetpk,
+        islenvar,
+        isused,
+        nbcrcode,
+        pk_group,
+        rulecode,
+        rulename,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ1A9B1E2801DD',
+                'after',
+                'g',
+                0,
+                0,
+                'yyyyMMdd',
+                'Y',
+                'N',
+                'N',
+                'N',
+                'Y',
+                'Y',
+                '6QOT',
+                'GLOBLE00000000000000',
+                '6QOT',
+                '本月加班申请',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ9D8AA0E5C5F9',
+                NULL,
+                0,
+                4,
+                0,
+                '6QOT',
+                0,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ1A9B1E2801DD',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+go
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ94132ECD3DD7',
+                NULL,
+                0,
+                8,
+                2,
+                'billdate',
+                1,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ1A9B1E2801DD',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+go
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ53B2F0070844',
+                NULL,
+                0,
+                8,
+                3,
+                'nc.pub.billcode.BillCodePureDigitalSNGenerator',
+                2,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ1A9B1E2801DD',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+go

File diff suppressed because it is too large
+ 539 - 0
hrkq/hrkq/script/business/pub_page_templet/60201070/001.sql


File diff suppressed because it is too large
+ 466 - 0
hrkq/hrkq/script/business/pub_page_templet/60201071/001.sql


File diff suppressed because it is too large
+ 466 - 0
hrkq/hrkq/script/business/pub_page_templet/60201072/001.sql


+ 19 - 0
hrkq/hrkq/script/business/sm_appregister/602010/001.sql

@@ -0,0 +1,19 @@
+insert into sm_appregister(pk_appregister,app_desc,apptype,code,creationtime,creator,dr,fun_property,funtype,height,help_name,image_src,iscauserusable,iscopypage,isenable,mdid,modifiedtime,modifier,mountid,name,orgtypecode,own_module,parent_id,pk_group,resid,source_app_code,target_path,ts,uselicense_load,width)
+values('0001ZZZZZZ0000602010','',0,'602010','2021-09-10 19:50:19','~',0,null,null,null,'',null,null,'N','Y','~',null,'~',null,'本月加班申请',null,'6020','6020','~','',null,null,'2021-09-10 19:50:19',null,null);
+go
+
+
+
+insert into sm_appmenuitem(pk_menuitem,appcode,appid,dr,menudes,menuitemcode,menuitemname,parentcode,pk_group,pk_menu,resid,ts)
+values('0001ZZZZff77683e8b31',null,null,0,null,'60','hrkq',null,'~','1004Z510000000000FFL',null,'2021-09-10 19:50:19');
+go
+
+insert into sm_appmenuitem(pk_menuitem,appcode,appid,dr,menudes,menuitemcode,menuitemname,parentcode,pk_group,pk_menu,resid,ts)
+values('0001ZZZZdde8edcc9373',null,null,0,null,'6032','hrkq','60','~','1004Z510000000000FFL',null,'2021-09-10 19:50:19');
+go
+
+insert into sm_appmenuitem(pk_menuitem,appcode,appid,dr,menudes,menuitemcode,menuitemname,parentcode,pk_group,pk_menu,resid,ts)
+values('0001ZZZZ03e48298d0be',null,null,0,null,'603230','hrkq','6032','~','1004Z510000000000FFL',null,'2021-09-10 19:50:19');
+go
+
+

+ 144 - 0
hrkq/hrkq/script/business/sm_appregister/60201070/002.sql

@@ -0,0 +1,144 @@
+INSERT INTO sm_appregister (
+        pk_appregister,
+        app_desc,
+        apptype,
+        code,
+        creationtime,
+        creator,
+        dr,
+        fun_property,
+        funtype,
+        height,
+        help_name,
+        image_src,
+        iscauserusable,
+        iscopypage,
+        isenable,
+        mdid,
+        modifiedtime,
+        modifier,
+        mountid,
+        name,
+        orgtypecode,
+        own_module,
+        parent_id,
+        pk_group,
+        resid,
+        source_app_code,
+        target_path,
+        ts,
+        uselicense_load,
+        width
+)
+VALUES
+        (
+                '0001ZZZZ7a8b7524a54b',
+                '',
+                1,
+                '60201070',
+                '2021-09-09 16:12:39',
+                '~',
+                0,
+                0,
+                0,
+                1,
+                '',
+                'businessprocess',
+                'N',
+                'N',
+                'Y',
+                '~',
+                NULL,
+                '~',
+                NULL,
+                '本月加班申请',
+                'GLOBLE00000000000000',
+                '6020',
+                '0001ZZZZZZ0000602010',
+                '~',
+                '',
+                '60201070',
+                NULL,
+                '2021-09-09 16:12:39',
+                'Y',
+                1
+        );
+go
+
+
+insert into sm_apppage(pk_apppage,creationtime,creator,dr,iscarddefault,isdefault,modifiedtime,modifier,pagecode,pagedesc,pagename,pageurl,parent_id,parentcode,resid,ts) values('0001ZZZZ52d564646e02',null,'~',0,'N','Y',null,'~','60201070_LIST',null,'本月加班申请列表页面','/nccloud/resources/hrkq/hrkq/60201070/main/index.html#/list','0001ZZZZ7a8b7524a54b','60201070','60201070_LIST','2021-09-09 16:12:39');
+go
+insert into sm_apppage(pk_apppage,creationtime,creator,dr,iscarddefault,isdefault,modifiedtime,modifier,pagecode,pagedesc,pagename,pageurl,parent_id,parentcode,resid,ts) values('0001ZZZZ6937030c8810',null,'~',0,'Y','N',null,'~','60201070_CARD',null,'本月加班申请卡片页面','/nccloud/resources/hrkq/hrkq/60201070/main/index.html#/card','0001ZZZZ7a8b7524a54b','60201070','60201070_CARD','2021-09-09 16:12:39');
+go
+
+insert into sm_appmenuitem(pk_menuitem,appcode,appid,dr,menudes,menuitemcode,menuitemname,parentcode,pk_group,pk_menu,resid,ts)
+values('0001ZZZZ13135565e3b8','60201070','0001ZZZZ7a8b7524a54b',0,'本月加班申请','60323021','hrkq','603230','~','1004Z510000000000FFL',null,'2021-09-09 16:12:39');
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZd9b65a83d187','0001ZZZZ7a8b7524a54b','card_head','SaveGroup','button_secondary','编辑按钮组','',0,'buttongroup',0,'Y','N',null,null,'60201070_CARD',null,null,'2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZeb7ef86a2db5','0001ZZZZ7a8b7524a54b','card_head','SaveBtn','button_main','','保存',1,'general_btn',0,'Y','N','Ctrl+S',null,'60201070_CARD','SaveGroup','60201070_CARDSaveBtn','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZafb14d9152f3','0001ZZZZ7a8b7524a54b','card_head','SaveAddBtn','button_secondary','','保存新增',2,'general_btn',0,'Y','N','Alt+S',null,'60201070_CARD','SaveGroup','60201070_CARDSaveAddBtn','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZde465689cdf3','0001ZZZZ7a8b7524a54b','card_head','CancelBtn','button_secondary','','取消',4,'general_btn',0,'Y','N','Alt+Q',null,'60201070_CARD',null,'60201070_CARDCancelBtn','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ3fb32e5c27ae','0001ZZZZ7a8b7524a54b','card_head','CUDGroup','button_secondary','CUD组','',5,'buttongroup',0,'Y','N','',null,'60201070_CARD',null,null,'2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZbbccf66512ad','0001ZZZZ7a8b7524a54b','card_head','CreateBtn','button_secondary','','新增',6,'general_btn',0,'Y','N','Ctrl+/',null,'60201070_CARD','CUDGroup','60201070_CARDCreateBtn','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ2a06fa1891c9','0001ZZZZ7a8b7524a54b','card_head','UpdateBtn','button_secondary','','修改',7,'general_btn',0,'Y','N','Alt+P',null,'60201070_CARD','CUDGroup','60201070_CARDUpdateBtn','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZd5914297988f','0001ZZZZ7a8b7524a54b','card_head','DeleteBtn','button_secondary','','删除',8,'general_btn',0,'Y','N','Ctrl+Del',null,'60201070_CARD','CUDGroup','60201070_CARDDeleteBtn','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ013f3dc0a674','0001ZZZZ7a8b7524a54b','card_head','RefreshBtn','button_secondary','',null,8,'general_btn',0,'Y','N',null,null,'60201070_CARD',null,null,'2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZb619af2ab805','0001ZZZZ7a8b7524a54b','tabs_head','addRow','button_secondary',null,'增行',29,'general_btn',0,'Y','N','Alt+N',null,'60201070_CARD',null,'60201070_CARDaddRow','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZf9b2a74b18a5','0001ZZZZ7a8b7524a54b','tabs_head','deleteRow','button_secondary',null,'删行',30,'general_btn',0,'Y','N','Alt+Del',null,'60201070_CARD',null,'60201070_CARDdeleteRow','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ2174f335732f','0001ZZZZ7a8b7524a54b','tabs_body','expand','button_secondary',null,'展开',34,'general_btn',0,'Y','N','F4',null,'60201070_CARD',null,'60201070_CARDexpand','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZfaa674f08132','0001ZZZZ7a8b7524a54b','tabs_body','insertRow','button_secondary',null,'插行',35,'general_btn',0,'Y','N','Alt+I',null,'60201070_CARD',null,'60201070_CARDinsertRow','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZf10f5c6bb3ec','0001ZZZZ7a8b7524a54b','tabs_body','delRow','button_secondary',null,'删行',36,'general_btn',0,'Y','N','Alt+Del',null,'60201070_CARD',null,'60201070_CARDdelRow','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ34183dbaad1d','0001ZZZZ7a8b7524a54b','tabs_body','pasteHere','button_secondary',null,'粘贴至此',37,'general_btn',0,'Y','N','Alt+V',null,'60201070_CARD',null,'60201070_CARDpasteHere','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ82551b6a3d9d','0001ZZZZ7a8b7524a54b','tabs_body','fold','button_secondary',null,'收起',38,'general_btn',0,'Y','N','F4',null,'60201070_CARD',null,'60201070_CARDfold','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ142fd9e8e212','0001ZZZZ7a8b7524a54b','tabs_body','unfold','button_secondary',null,'展开',38,'general_btn',0,'Y','N','F4',null,'60201070_CARD',null,'60201070_CARDunfold','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZeac101dff260','0001ZZZZ7a8b7524a54b','list_head','AddDelGroup','button_secondary','增删按钮组',null,0,'buttongroup',0,'Y','N',null,null,'60201070_LIST',null,null,'2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZce1a06eedd0c','0001ZZZZ7a8b7524a54b','list_head','AddBtn','button_main',null,'新增',1,'general_btn',0,'Y','N','Ctrl+/',null,'60201070_LIST','AddDelGroup','60201070_LISTAddBtn','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ33a35ecebfe2','0001ZZZZ7a8b7524a54b','list_head','RefreshBtn','button_secondary',null,null,13,'general_btn',0,'Y','N',null,null,'60201070_LIST',null,null,'2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ32f7b686d5bc','0001ZZZZ7a8b7524a54b','list_inner','edit','button_secondary',null,'修改',14,'general_btn',0,'Y','N','Alt+P',null,'60201070_LIST',null,'60201070_LISTedit','2021-09-09 16:12:39')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ9b947e26ac48','0001ZZZZ7a8b7524a54b','list_inner','delete','button_secondary',null,'删除',16,'general_btn',0,'Y','N','Ctrl+Del',null,'60201070_LIST',null,'60201070_LISTDelBtn','2021-09-09 16:12:39')
+;
+go
+
+

+ 144 - 0
hrkq/hrkq/script/business/sm_appregister/60201071/002.sql

@@ -0,0 +1,144 @@
+INSERT INTO sm_appregister (
+        pk_appregister,
+        app_desc,
+        apptype,
+        code,
+        creationtime,
+        creator,
+        dr,
+        fun_property,
+        funtype,
+        height,
+        help_name,
+        image_src,
+        iscauserusable,
+        iscopypage,
+        isenable,
+        mdid,
+        modifiedtime,
+        modifier,
+        mountid,
+        name,
+        orgtypecode,
+        own_module,
+        parent_id,
+        pk_group,
+        resid,
+        source_app_code,
+        target_path,
+        ts,
+        uselicense_load,
+        width
+)
+VALUES
+        (
+                '0001ZZZZ00f8ccd96682',
+                '',
+                1,
+                '60201071',
+                '2021-09-10 08:38:11',
+                '~',
+                0,
+                0,
+                0,
+                1,
+                '',
+                'businessprocess',
+                'N',
+                'N',
+                'Y',
+                '~',
+                NULL,
+                '~',
+                NULL,
+                '本月加班申请',
+                'GLOBLE00000000000000',
+                '6020',
+                '0001ZZZZZZ0000602010',
+                '~',
+                '',
+                '60201071',
+                NULL,
+                '2021-09-10 08:38:11',
+                'Y',
+                1
+        );
+go
+
+
+insert into sm_apppage(pk_apppage,creationtime,creator,dr,iscarddefault,isdefault,modifiedtime,modifier,pagecode,pagedesc,pagename,pageurl,parent_id,parentcode,resid,ts) values('0001ZZZZa3822b7ca881',null,'~',0,'N','Y',null,'~','60201071_LIST',null,'本月加班申请列表页面','/nccloud/resources/hrkq/hrkq/60201071/main/index.html#/list','0001ZZZZ00f8ccd96682','60201071','60201071_LIST','2021-09-10 08:38:11');
+go
+insert into sm_apppage(pk_apppage,creationtime,creator,dr,iscarddefault,isdefault,modifiedtime,modifier,pagecode,pagedesc,pagename,pageurl,parent_id,parentcode,resid,ts) values('0001ZZZZ912a1711029f',null,'~',0,'Y','N',null,'~','60201071_CARD',null,'本月加班申请卡片页面','/nccloud/resources/hrkq/hrkq/60201071/main/index.html#/card','0001ZZZZ00f8ccd96682','60201071','60201071_CARD','2021-09-10 08:38:11');
+go
+
+insert into sm_appmenuitem(pk_menuitem,appcode,appid,dr,menudes,menuitemcode,menuitemname,parentcode,pk_group,pk_menu,resid,ts)
+values('0001ZZZZ3a9a3e29f397','60201071','0001ZZZZ00f8ccd96682',0,'本月加班申请','60323022','hrkq','603230','~','1004Z510000000000FFL',null,'2021-09-10 08:38:11');
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ70367d977154','0001ZZZZ00f8ccd96682','card_head','SaveGroup','button_secondary','编辑按钮组','',0,'buttongroup',0,'Y','N',null,null,'60201071_CARD',null,null,'2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ85f550b40110','0001ZZZZ00f8ccd96682','card_head','SaveBtn','button_main','','保存',1,'general_btn',0,'Y','N','Ctrl+S',null,'60201071_CARD','SaveGroup','60201071_CARDSaveBtn','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ259eb37bc298','0001ZZZZ00f8ccd96682','card_head','SaveAddBtn','button_secondary','','保存新增',2,'general_btn',0,'Y','N','Alt+S',null,'60201071_CARD','SaveGroup','60201071_CARDSaveAddBtn','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZa2f46e76b1aa','0001ZZZZ00f8ccd96682','card_head','CancelBtn','button_secondary','','取消',4,'general_btn',0,'Y','N','Alt+Q',null,'60201071_CARD',null,'60201071_CARDCancelBtn','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ8a4dec6b6865','0001ZZZZ00f8ccd96682','card_head','CUDGroup','button_secondary','CUD组','',5,'buttongroup',0,'Y','N','',null,'60201071_CARD',null,null,'2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ319f0c0ae876','0001ZZZZ00f8ccd96682','card_head','CreateBtn','button_secondary','','新增',6,'general_btn',0,'Y','N','Ctrl+/',null,'60201071_CARD','CUDGroup','60201071_CARDCreateBtn','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZbc1ed27fe20c','0001ZZZZ00f8ccd96682','card_head','UpdateBtn','button_secondary','','修改',7,'general_btn',0,'Y','N','Alt+P',null,'60201071_CARD','CUDGroup','60201071_CARDUpdateBtn','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ89178162f204','0001ZZZZ00f8ccd96682','card_head','DeleteBtn','button_secondary','','删除',8,'general_btn',0,'Y','N','Ctrl+Del',null,'60201071_CARD','CUDGroup','60201071_CARDDeleteBtn','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZe6def432abc4','0001ZZZZ00f8ccd96682','card_head','RefreshBtn','button_secondary','',null,8,'general_btn',0,'Y','N',null,null,'60201071_CARD',null,null,'2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ142f4c529fe1','0001ZZZZ00f8ccd96682','tabs_head','addRow','button_secondary',null,'增行',29,'general_btn',0,'Y','N','Alt+N',null,'60201071_CARD',null,'60201071_CARDaddRow','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ1119d3d40870','0001ZZZZ00f8ccd96682','tabs_head','deleteRow','button_secondary',null,'删行',30,'general_btn',0,'Y','N','Alt+Del',null,'60201071_CARD',null,'60201071_CARDdeleteRow','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZe1a2df81ff1e','0001ZZZZ00f8ccd96682','tabs_body','expand','button_secondary',null,'展开',34,'general_btn',0,'Y','N','F4',null,'60201071_CARD',null,'60201071_CARDexpand','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ9c1b378c7bdb','0001ZZZZ00f8ccd96682','tabs_body','insertRow','button_secondary',null,'插行',35,'general_btn',0,'Y','N','Alt+I',null,'60201071_CARD',null,'60201071_CARDinsertRow','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZa16a2a6528c5','0001ZZZZ00f8ccd96682','tabs_body','delRow','button_secondary',null,'删行',36,'general_btn',0,'Y','N','Alt+Del',null,'60201071_CARD',null,'60201071_CARDdelRow','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZb2b8b1120092','0001ZZZZ00f8ccd96682','tabs_body','pasteHere','button_secondary',null,'粘贴至此',37,'general_btn',0,'Y','N','Alt+V',null,'60201071_CARD',null,'60201071_CARDpasteHere','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ498e892838c2','0001ZZZZ00f8ccd96682','tabs_body','fold','button_secondary',null,'收起',38,'general_btn',0,'Y','N','F4',null,'60201071_CARD',null,'60201071_CARDfold','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ88dd8985daa4','0001ZZZZ00f8ccd96682','tabs_body','unfold','button_secondary',null,'展开',38,'general_btn',0,'Y','N','F4',null,'60201071_CARD',null,'60201071_CARDunfold','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ0b37c70fd8ca','0001ZZZZ00f8ccd96682','list_head','AddDelGroup','button_secondary','增删按钮组',null,0,'buttongroup',0,'Y','N',null,null,'60201071_LIST',null,null,'2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZf7059f6bd540','0001ZZZZ00f8ccd96682','list_head','AddBtn','button_main',null,'新增',1,'general_btn',0,'Y','N','Ctrl+/',null,'60201071_LIST','AddDelGroup','60201071_LISTAddBtn','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ0ef6d0f22ac6','0001ZZZZ00f8ccd96682','list_head','RefreshBtn','button_secondary',null,null,13,'general_btn',0,'Y','N',null,null,'60201071_LIST',null,null,'2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ1109929c24f0','0001ZZZZ00f8ccd96682','list_inner','edit','button_secondary',null,'修改',14,'general_btn',0,'Y','N','Alt+P',null,'60201071_LIST',null,'60201071_LISTedit','2021-09-10 08:38:11')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ6b7ab988525f','0001ZZZZ00f8ccd96682','list_inner','delete','button_secondary',null,'删除',16,'general_btn',0,'Y','N','Ctrl+Del',null,'60201071_LIST',null,'60201071_LISTDelBtn','2021-09-10 08:38:11')
+;
+go
+
+

+ 144 - 0
hrkq/hrkq/script/business/sm_appregister/60201072/002.sql

@@ -0,0 +1,144 @@
+INSERT INTO sm_appregister (
+        pk_appregister,
+        app_desc,
+        apptype,
+        code,
+        creationtime,
+        creator,
+        dr,
+        fun_property,
+        funtype,
+        height,
+        help_name,
+        image_src,
+        iscauserusable,
+        iscopypage,
+        isenable,
+        mdid,
+        modifiedtime,
+        modifier,
+        mountid,
+        name,
+        orgtypecode,
+        own_module,
+        parent_id,
+        pk_group,
+        resid,
+        source_app_code,
+        target_path,
+        ts,
+        uselicense_load,
+        width
+)
+VALUES
+        (
+                '0001ZZZZ384f21246c83',
+                '',
+                1,
+                '60201072',
+                '2021-09-10 19:50:19',
+                '~',
+                0,
+                0,
+                0,
+                1,
+                '',
+                'businessprocess',
+                'N',
+                'N',
+                'Y',
+                '~',
+                NULL,
+                '~',
+                NULL,
+                '本月加班申请',
+                'GLOBLE00000000000000',
+                '6020',
+                '0001ZZZZZZ0000602010',
+                '~',
+                '',
+                '60201072',
+                NULL,
+                '2021-09-10 19:50:19',
+                'Y',
+                1
+        );
+go
+
+
+insert into sm_apppage(pk_apppage,creationtime,creator,dr,iscarddefault,isdefault,modifiedtime,modifier,pagecode,pagedesc,pagename,pageurl,parent_id,parentcode,resid,ts) values('0001ZZZZdb745409eb59',null,'~',0,'N','Y',null,'~','60201072_LIST',null,'本月加班申请列表页面','/nccloud/resources/hrkq/hrkq/60201072/main/index.html#/list','0001ZZZZ384f21246c83','60201072','60201072_LIST','2021-09-10 19:50:19');
+go
+insert into sm_apppage(pk_apppage,creationtime,creator,dr,iscarddefault,isdefault,modifiedtime,modifier,pagecode,pagedesc,pagename,pageurl,parent_id,parentcode,resid,ts) values('0001ZZZZ1645f2c646a6',null,'~',0,'Y','N',null,'~','60201072_CARD',null,'本月加班申请卡片页面','/nccloud/resources/hrkq/hrkq/60201072/main/index.html#/card','0001ZZZZ384f21246c83','60201072','60201072_CARD','2021-09-10 19:50:19');
+go
+
+insert into sm_appmenuitem(pk_menuitem,appcode,appid,dr,menudes,menuitemcode,menuitemname,parentcode,pk_group,pk_menu,resid,ts)
+values('0001ZZZZ6ecb4ffd9208','60201072','0001ZZZZ384f21246c83',0,'本月加班申请','60323023','hrkq','603230','~','1004Z510000000000FFL',null,'2021-09-10 19:50:19');
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZc64c7c1e6587','0001ZZZZ384f21246c83','card_head','SaveGroup','button_secondary','编辑按钮组','',0,'buttongroup',0,'Y','N',null,null,'60201072_CARD',null,null,'2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ96ff9b4fe29b','0001ZZZZ384f21246c83','card_head','SaveBtn','button_main','','保存',1,'general_btn',0,'Y','N','Ctrl+S',null,'60201072_CARD','SaveGroup','60201072_CARDSaveBtn','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZb3b23e2b3117','0001ZZZZ384f21246c83','card_head','SaveAddBtn','button_secondary','','保存新增',2,'general_btn',0,'Y','N','Alt+S',null,'60201072_CARD','SaveGroup','60201072_CARDSaveAddBtn','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZe93642711310','0001ZZZZ384f21246c83','card_head','CancelBtn','button_secondary','','取消',4,'general_btn',0,'Y','N','Alt+Q',null,'60201072_CARD',null,'60201072_CARDCancelBtn','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ1fb29d881018','0001ZZZZ384f21246c83','card_head','CUDGroup','button_secondary','CUD组','',5,'buttongroup',0,'Y','N','',null,'60201072_CARD',null,null,'2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ80e0a37925d7','0001ZZZZ384f21246c83','card_head','CreateBtn','button_secondary','','新增',6,'general_btn',0,'Y','N','Ctrl+/',null,'60201072_CARD','CUDGroup','60201072_CARDCreateBtn','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ32774beefa3a','0001ZZZZ384f21246c83','card_head','UpdateBtn','button_secondary','','修改',7,'general_btn',0,'Y','N','Alt+P',null,'60201072_CARD','CUDGroup','60201072_CARDUpdateBtn','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ2a140194bf0f','0001ZZZZ384f21246c83','card_head','DeleteBtn','button_secondary','','删除',8,'general_btn',0,'Y','N','Ctrl+Del',null,'60201072_CARD','CUDGroup','60201072_CARDDeleteBtn','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ166d244b81cf','0001ZZZZ384f21246c83','card_head','RefreshBtn','button_secondary','',null,8,'general_btn',0,'Y','N',null,null,'60201072_CARD',null,null,'2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ0a4c67023d98','0001ZZZZ384f21246c83','tabs_head','addRow','button_secondary',null,'增行',29,'general_btn',0,'Y','N','Alt+N',null,'60201072_CARD',null,'60201072_CARDaddRow','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ1665331648ab','0001ZZZZ384f21246c83','tabs_head','deleteRow','button_secondary',null,'删行',30,'general_btn',0,'Y','N','Alt+Del',null,'60201072_CARD',null,'60201072_CARDdeleteRow','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ9b101fdc6108','0001ZZZZ384f21246c83','tabs_body','expand','button_secondary',null,'展开',34,'general_btn',0,'Y','N','F4',null,'60201072_CARD',null,'60201072_CARDexpand','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ7591e079797e','0001ZZZZ384f21246c83','tabs_body','insertRow','button_secondary',null,'插行',35,'general_btn',0,'Y','N','Alt+I',null,'60201072_CARD',null,'60201072_CARDinsertRow','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ75a0a72843b5','0001ZZZZ384f21246c83','tabs_body','delRow','button_secondary',null,'删行',36,'general_btn',0,'Y','N','Alt+Del',null,'60201072_CARD',null,'60201072_CARDdelRow','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ717b3050a457','0001ZZZZ384f21246c83','tabs_body','pasteHere','button_secondary',null,'粘贴至此',37,'general_btn',0,'Y','N','Alt+V',null,'60201072_CARD',null,'60201072_CARDpasteHere','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ155c31f7a2ec','0001ZZZZ384f21246c83','tabs_body','fold','button_secondary',null,'收起',38,'general_btn',0,'Y','N','F4',null,'60201072_CARD',null,'60201072_CARDfold','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ5e4a4bc182ef','0001ZZZZ384f21246c83','tabs_body','unfold','button_secondary',null,'展开',38,'general_btn',0,'Y','N','F4',null,'60201072_CARD',null,'60201072_CARDunfold','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZd405f90e2de2','0001ZZZZ384f21246c83','list_head','AddDelGroup','button_secondary','增删按钮组',null,0,'buttongroup',0,'Y','N',null,null,'60201072_LIST',null,null,'2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ1fc4c139a500','0001ZZZZ384f21246c83','list_head','AddBtn','button_main',null,'新增',1,'general_btn',0,'Y','N','Ctrl+/',null,'60201072_LIST','AddDelGroup','60201072_LISTAddBtn','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ832693e96156','0001ZZZZ384f21246c83','list_head','RefreshBtn','button_secondary',null,null,13,'general_btn',0,'Y','N',null,null,'60201072_LIST',null,null,'2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZdefd615e5700','0001ZZZZ384f21246c83','list_inner','edit','button_secondary',null,'修改',14,'general_btn',0,'Y','N','Alt+P',null,'60201072_LIST',null,'60201072_LISTedit','2021-09-10 19:50:19')
+;
+go
+insert into sm_appbutnregister(pk_btn,appid,btnarea,btncode,btncolor,btndesc,btnname,btnorder,btntype,dr,isenable,iskeyfunc,keyboard,pageareacode,pagecode,parent_code,resid,ts) values('0001ZZZZ8bf9839f4ef6','0001ZZZZ384f21246c83','list_inner','delete','button_secondary',null,'删除',16,'general_btn',0,'Y','N','Ctrl+Del',null,'60201072_LIST',null,'60201072_LISTDelBtn','2021-09-10 19:50:19')
+;
+go
+
+

+ 10 - 0
hrkq/hrkq/script/conf/initdata/items-60201070.json

@@ -0,0 +1,10 @@
+{
+        "firstNode":"60",
+        "secondNode": "6020",
+        "thirdNode": "602010",
+        "fourthNode": "60201070",
+        "codeStyle": "3",
+        "feat": "0",
+        "billType": "6QBB",
+        "metaId": "ae1158ce-d80c-43e5-b4d8-e039955455c3"
+}

+ 10 - 0
hrkq/hrkq/script/conf/initdata/items-60201071.json

@@ -0,0 +1,10 @@
+{
+        "firstNode":"60",
+        "secondNode": "6020",
+        "thirdNode": "602010",
+        "fourthNode": "60201071",
+        "codeStyle": "3",
+        "feat": "0",
+        "billType": "6QBO",
+        "metaId": "7dea45a4-dac9-4407-926c-91bdc722b6ad"
+}

+ 10 - 0
hrkq/hrkq/script/conf/initdata/items-60201072.json

@@ -0,0 +1,10 @@
+{
+        "firstNode":"60",
+        "secondNode": "6020",
+        "thirdNode": "602010",
+        "fourthNode": "60201072",
+        "codeStyle": "3",
+        "feat": "0",
+        "billType": "6QOT",
+        "metaId": "7dea45a4-dac9-4407-926c-91bdc722b6ad"
+}

+ 4 - 0
hrkq/hrkq/script/systemtype/dap_dapsystem/dap_dapsystem60/001.sql

@@ -0,0 +1,4 @@
+insert into dap_dapsystem(moduleid,appscope,def1,def2,def3,devmodule,dr,isaccount,isitem,islightmodule,isncinnermodule,isrelatedev,nodeorder,orgtypecode,parentcode,productscope,resid,supportcloseaccbook,systypecode,systypename,ts) values('60',0,null,null,null,'hrkq',0,'Y',null,'Y','Y',null,null,'GLOBLE00000000000000','~',null,'M6020','N','HRKQ','hrkq','2021-09-10 19:50:19');
+go
+insert into dap_dapsystem(moduleid,appscope,def1,def2,def3,devmodule,dr,isaccount,isitem,islightmodule,isncinnermodule,isrelatedev,nodeorder,orgtypecode,parentcode,productscope,resid,supportcloseaccbook,systypecode,systypename,ts) values('6020',0,null,null,null,'hrkq',0,'Y',null,'Y','Y',null,null,'GLOBLE00000000000000','60',null,'M6020','N','HRKQ','hrkq','2021-09-10 19:50:19');
+go

+ 32 - 0
hrkq/hrkq/script/template/60201070/appPage.json

@@ -0,0 +1,32 @@
+[
+  {
+    "creator": "~",
+    "dr": "0",
+    "iscarddefault": "N",
+    "isdefault": "Y",
+    "modifier": "~",
+    "pagecode": "60201070_LIST",
+    "pagename": "本月加班申请列表页面",
+    "pageurl": "/nccloud/resources/hrkq/hrkq/60201070/main/index.html#/list",
+    "parent_id": "PK_APP",
+    "parentcode": "60201070",
+    "pk_apppage": "PK_PG01",
+    "resid": 60201070_LIST,
+    "ts": "2021-09-09 16:12:38"
+  },
+  {
+    "creator": "~",
+    "dr": "0",
+    "iscarddefault": "Y",
+    "isdefault": "N",
+    "modifier": "~",
+    "pagecode": "60201070_CARD",
+    "pagename": "本月加班申请卡片页面",
+    "pageurl": "/nccloud/resources/hrkq/hrkq/60201070/main/index.html#/card",
+    "parent_id": "PK_APP",
+    "parentcode": "60201070",
+    "pk_apppage": "PK_PG02",
+    "resid": 60201070_CARD,
+    "ts": "2021-09-09 16:12:38"
+  }
+]

+ 336 - 0
hrkq/hrkq/script/template/60201070/appbutton.json

@@ -0,0 +1,336 @@
+[
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "SaveGroup",
+    "btndesc": "编辑按钮组",
+    "btnname": "",
+    "btnorder": "0",
+    "btntype": "buttongroup",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "pagecode": "60201070_CARD",
+    "btncolor": "button_secondary"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "SaveBtn",
+    "btndesc": "",
+    "btnname": "保存",
+    "btnorder": "1",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Ctrl+S",
+    "pagecode": "60201070_CARD",
+    "parent_code": "SaveGroup",
+    "resid": 60201070_CARDSaveBtn,
+    "btncolor": "button_main"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "SaveAddBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnname": "保存新增",
+    "btnorder": "2",
+    "resid": 60201070_CARDSaveAddBtn,
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+S",
+    "pagecode": "60201070_CARD",
+    "parent_code": "SaveGroup"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "CancelBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnname": "取消",
+    "btnorder": "4",
+    "btntype": "general_btn",
+    "dr": "0",
+    "resid": 60201070_CARDCancelBtn,
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+Q",
+    "pagecode": "60201070_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "CUDGroup",
+    "btncolor": "button_secondary",
+    "btndesc": "CUD组",
+    "btnname": "",
+    "btnorder": "5",
+    "btntype": "buttongroup",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "",
+    "pagecode": "60201070_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "CreateBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnname": "新增",
+    "btnorder": "6",
+    "resid": 60201070_CARDCreateBtn,
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Ctrl+/",
+    "pagecode": "60201070_CARD",
+    "parent_code": "CUDGroup"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "UpdateBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnname": "修改",
+    "btnorder": "7",
+    "resid": 60201070_CARDUpdateBtn,
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+P",
+    "pagecode": "60201070_CARD",
+    "parent_code": "CUDGroup"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "DeleteBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnname": "删除",
+    "resid": 60201070_CARDDeleteBtn,
+    "btnorder": "8",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Ctrl+Del",
+    "pagecode": "60201070_CARD",
+    "parent_code": "CUDGroup"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "RefreshBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnorder": "8",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "pagecode": "60201070_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_head",
+    "btncode": "addRow",
+    "btncolor": "button_secondary",
+    "btnname": "增行",
+    "btnorder": "29",
+    "btntype": "general_btn",
+    "resid": 60201070_CARDaddRow,
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+N",
+    "pagecode": "60201070_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_head",
+    "btncode": "deleteRow",
+    "btncolor": "button_secondary",
+    "btnname": "删行",
+    "resid": 60201070_CARDdeleteRow,
+    "btnorder": "30",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+Del",
+    "pagecode": "60201070_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "expand",
+    "btncolor": "button_secondary",
+    "btnname": "展开",
+    "btnorder": "34",
+    "resid": 60201070_CARDexpand,
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "F4",
+    "pagecode": "60201070_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "insertRow",
+    "btncolor": "button_secondary",
+    "btnname": "插行",
+    "resid": 60201070_CARDinsertRow,
+    "btnorder": "35",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+I",
+    "pagecode": "60201070_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "delRow",
+    "btncolor": "button_secondary",
+    "btnname": "删行",
+    "btnorder": "36",
+    "resid": 60201070_CARDdelRow,
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+Del",
+    "pagecode": "60201070_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "pasteHere",
+    "btncolor": "button_secondary",
+    "btnname": "粘贴至此",
+    "resid": 60201070_CARDpasteHere,
+    "btnorder": "37",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+V",
+    "pagecode": "60201070_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "fold",
+    "btncolor": "button_secondary",
+    "resid": 60201070_CARDfold,
+    "btnname": "收起",
+    "btnorder": "38",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "F4",
+    "pagecode": "60201070_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "unfold",
+    "btncolor": "button_secondary",
+    "btnname": "展开",
+    "resid": 60201070_CARDunfold,
+    "btnorder": "38",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "F4",
+    "pagecode": "60201070_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "list_head",
+    "btncode": "AddDelGroup",
+    "btncolor": "button_secondary",
+    "btndesc": "增删按钮组",
+    "btnorder": "0",
+    "btntype": "buttongroup",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "pagecode": "60201070_LIST"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "list_head",
+    "btncode": "AddBtn",
+    "btncolor": "button_main",
+    "btnname": "新增",
+    "resid": 60201070_LISTAddBtn,
+    "btnorder": "1",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Ctrl+/",
+    "pagecode": "60201070_LIST",
+    "parent_code": "AddDelGroup"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "list_head",
+    "btncode": "RefreshBtn",
+    "btncolor": "button_secondary",
+    "btnorder": "13",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "pagecode": "60201070_LIST"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "list_inner",
+    "btncode": "edit",
+    "btncolor": "button_secondary",
+    "btnname": "修改",
+    "resid": 60201070_LISTedit,
+    "btnorder": "14",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+P",
+    "pagecode": "60201070_LIST"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "list_inner",
+    "btncode": "delete",
+    "btncolor": "button_secondary",
+    "resid": 60201070_LISTDelBtn,
+    "btnname": "删除",
+    "btnorder": "16",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Ctrl+Del",
+    "pagecode": "60201070_LIST"
+  }
+]

+ 43 - 0
hrkq/hrkq/script/template/60201070/appmenu.json

@@ -0,0 +1,43 @@
+[
+  {
+    "dr": "0",
+    "menuitemcode": "60",
+    "menuitemname": "hrkq",
+    "pk_menu": "1004Z510000000000FFL",
+    "pk_menuitem": "PK_M01",
+    "ts": "2021-09-09 16:12:38"
+  },
+  {
+    "dr": "0",
+    "menuitemcode": "6032",
+    "menuitemname": "hrkq",
+    "parentcode": "60",
+    "pk_menu": "1004Z510000000000FFL",
+    "resid": "",
+    "pk_menuitem": "PK_M01",
+    "ts": "2021-09-09 16:12:38"
+  },
+  {
+    "dr": "0",
+    "menuitemcode": "603230",
+    "menuitemname": "hrkq",
+    "parentcode": "6020",
+    "resid": "",
+    "pk_menu": "1004Z510000000000FFL",
+    "pk_menuitem": "PK_M02",
+    "ts": "2021-09-09 16:12:38"
+  },
+  {
+    "appcode": "60201070",
+    "appid": "PK_APP",
+    "dr": "0",
+    "menudes": "本月加班申请",
+    "menuitemcode": "60323021",
+    "menuitemname": "本月加班申请",
+    "parentcode": "603230",
+    "resid": "",
+    "pk_menu": "1004Z510000000000FFL",
+    "pk_menuitem": "PK_M03",
+    "ts": "2021-09-09 16:12:38"
+  }
+]

+ 27 - 0
hrkq/hrkq/script/template/60201070/appregister.json

@@ -0,0 +1,27 @@
+{
+  "apptype": "1",
+  "code": "60201070",
+  "creationtime": "2021-09-09 16:12:38",
+  "creator": "~",
+  "dr": "0",
+  "fun_property": "0",
+  "funtype": "0",
+  "height": "1",
+  "image_src": "businessprocess",
+  "iscauserusable": "N",
+  "iscopypage": "N",
+  "isenable": "Y",
+  "mdid": "~",
+  "modifier": "~",
+  "resid": "",
+  "name": "本月加班申请",
+  "orgtypecode": "GLOBLE00000000000000",
+  "own_module": "6020",
+  "parent_id": "602010",
+  "pk_appregister": "PK_APP",
+  "pk_group": "~",
+  "source_app_code": "60201070",
+  "ts": "2021-09-09 16:12:38",
+  "uselicense_load": "Y",
+  "width": "1"
+}

+ 158 - 0
hrkq/hrkq/script/template/60201070/area.json

@@ -0,0 +1,158 @@
+[
+  {
+    "areadesc": "",
+    "areastatus": "browse",
+    "areatype": 0,
+    "clazz": "nccloud.vo.hrkq.batchovertime.BatchOverTimeVO",
+    "code": "list_query",
+    "creator": "~",
+    "dr": 0,
+    "isunfold": "Y",
+    "metaid": "ae1158ce-d80c-43e5-b4d8-e039955455c3",
+    "metaname": "本月加班申请",
+    "metaspace": "hrkq.batchovertime",
+    "modifier": "~",
+    "name": "查询",
+    "pKFieldName": "pk_area",
+    "pagination": "",
+    "pk_area": "PK_A01",
+    "position": 1,
+    "resid": "",
+    "tableName": "pub_area",
+    "templetid": "PK_T01"
+  },
+  {
+    "areadesc": "",
+    "areastatus": "browse",
+    "areatype": 2,
+    "clazz": "nccloud.vo.hrkq.batchovertime.BatchOverTimeVO",
+    "code": "list_head",
+    "creator": "~",
+    "dr": 0,
+    "isunfold": "Y",
+    "metaid": "ae1158ce-d80c-43e5-b4d8-e039955455c3",
+    "metaname": "本月加班申请",
+    "metaspace": "hrkq.batchovertime",
+    "modifier": "~",
+    "name": "列表",
+    "pKFieldName": "pk_area",
+    "pagination": "",
+    "pk_area": "PK_A02",
+    "position": 2,
+    "resid": "",
+    "tableName": "pub_area",
+    "templetid": "PK_T01"
+  },
+  {
+    "areadesc": "",
+    "areastatus": "browse",
+    "areatype": 1,
+    "clazz": "nccloud.vo.hrkq.batchovertime.BatchOverTimeVO",
+    "code": "card_head",
+    "creator": "~",
+    "dr": 0,
+    "isunfold": "Y",
+    "metaid": "ae1158ce-d80c-43e5-b4d8-e039955455c3",
+    "metaname": "本月加班申请",
+    "metaspace": "hrkq.batchovertime",
+    "modifier": "",
+    "name": "ts_batchovertime表头",
+    "pKFieldName": "pk_area",
+    "pagination": "",
+    "pk_area": "PK_A03",
+    "position": 1,
+    "resid": "app_60201070_00044",
+    "tableName": "pub_area",
+    "templetid": "PK_T02"
+  },
+  {
+    "areadesc": "操作信息",
+    "areastatus": "browse",
+    "areatype": 1,
+    "clazz": "nccloud.vo.hrkq.batchovertime.BatchOverTimeVO",
+    "code": "card_operate",
+    "creator": "~",
+    "dr": 0,
+    "isunfold": "Y",
+    "metaid": "ae1158ce-d80c-43e5-b4d8-e039955455c3",
+    "metaname": "本月加班申请",
+    "metaspace": "hrkq.batchovertime",
+    "modifier": "",
+    "name": "ts_batchovertime",
+    "pKFieldName": "pk_area",
+    "pagination": "",
+    "pk_area": "PK_A031",
+    "position": 2,
+    "relationcode":"card_head",
+    "resid": "app_60201070_00064",
+    "tableName": "pub_area",
+    "templetid": "PK_T02"
+  }
+    ,{
+        "areadesc": "子表表体浏览区-本月加班申请子表",
+        "areastatus": "browse",
+        "areatype": 2,
+        "clazz": "nccloud.vo.hrkq.batchovertime.BatchOverTimeBVO",
+        "code": "card_body",
+        "creator": "~",
+        "dr": 0,
+        "metaid": "ae1158ce-d80c-43e5-b4d8-e039955455c3",
+        "metaname": "本月加班申请",
+        "metaspace": "hrkq.batchovertime",
+        "modifier": "",
+        "name": "本月加班申请子表表体",
+        "pKFieldName": "pk_area",
+        "pagination": "",
+        "pk_area": "PK_A04_0",
+        "position": 3,
+        "resid": app_60201070_ts_batchovertimeb,
+        "tableName": "pub_area",
+        "templetid": "PK_T02"
+    }
+    ,{
+        "areadesc": "子表表体编辑区-本月加班申请子表",
+        "areastatus": "edit",
+        "areatype": 1,
+        "clazz": "nccloud.vo.hrkq.batchovertime.BatchOverTimeBVO",
+        "code": "card_body_edit",
+        "creator": "~",
+        "dr": 0,
+        "metaid": "ae1158ce-d80c-43e5-b4d8-e039955455c3",
+        "metaname": "本月加班申请",
+        "metaspace": "hrkq.batchovertime",
+        "modifier": "",
+        "name": "本月加班申请子表",
+        "pKFieldName": "pk_area",
+        "pagination": "",
+        "pk_area": "PK_A041_0",
+        "position": 4,
+        "relationcode":"card_body",
+        "resid": app_60201070_ts_batchovertimeb,
+        "tableName": "pub_area",
+        "templetid": "PK_T02"
+    }
+    ,{
+        "areadesc": "子表表体编辑浏览区-本月加班申请子表",
+        "areastatus": "browse",
+        "areatype": 1,
+        "clazz": "nccloud.vo.hrkq.batchovertime.BatchOverTimeBVO",
+        "code": "card_body_browse",
+        "creator": "~",
+        "dr": 0,
+        "metaid": "ae1158ce-d80c-43e5-b4d8-e039955455c3",
+        "metaname": "本月加班申请",
+        "metaspace": "hrkq.batchovertime",
+        "modifier": "",
+        "name": "本月加班申请子表",
+        "pKFieldName": "pk_area",
+        "pagination": "",
+        "pk_area": "PK_A042_0",
+        "position": 5,
+        "relationcode":"card_body",
+        "resid": app_60201070_ts_batchovertimeb,
+        "tableName": "pub_area",
+        "templetid": "PK_T02"
+    }
+
+
+]

+ 86 - 0
hrkq/hrkq/script/template/60201070/billaction.json

@@ -0,0 +1,86 @@
+[
+    {
+        "action_type": "11",
+        "actionnote": "~",
+        "actionstyle": "2",
+        "actiontype": "APPROVE",
+        "constrictflag": "N",
+        "controlflag": "N",
+        "finishflag": "N",
+        "pk_billaction": "PK_BA1",
+        "pk_billtype": "6QBB",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-09 16:12:38"
+    },
+    {
+        "action_type": "30",
+        "actionnote": "~",
+        "actionstyle": "3",
+        "actiontype": "DELETE",
+        "constrictflag": "N",
+        "controlflag": "N",
+        "finishflag": "N",
+        "pk_billaction": "PK_BA2",
+        "pk_billtype": "6QBB",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-09 16:12:38"
+    },
+    {
+        "action_type": "10",
+        "actionnote": "~",
+        "actionstyle": "1",
+        "actiontype": "SAVE",
+        "constrictflag": "N",
+        "controlflag": "N",
+        "finishflag": "N",
+        "pk_billaction": "PK_BA3",
+        "pk_billtype": "6QBB",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-09 16:12:38"
+    },
+    {
+        "action_type": "31",
+        "actionnote": "~",
+        "actionstyle": "1",
+        "actiontype": "SAVEBASE",
+        "constrictflag": "Y",
+        "controlflag": "N",
+        "finishflag": "N",
+        "pk_billaction": "PK_BA4",
+        "pk_billtype": "6QBB",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-09 16:12:38"
+    },
+    {
+        "action_type": "12",
+        "actionnote": "~",
+        "actionstyle": "3",
+        "actiontype": "UNAPPROVE",
+        "constrictflag": "N",
+        "controlflag": "N",
+        "finishflag": "Y",
+        "pk_billaction": "PK_BA5",
+        "pk_billtype": "6QBB",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-09 16:12:38"
+    },
+    {
+        "action_type": "13",
+        "actionnote": "~",
+        "actionstyle": "3",
+        "actiontype": "UNSAVEBILL",
+        "constrictflag": "N",
+        "controlflag": "Y",
+        "finishflag": "Y",
+        "pk_billaction": "PK_BA6",
+        "pk_billtype": "6QBB",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-09 16:12:38"
+    }
+]

+ 21 - 0
hrkq/hrkq/script/template/60201070/billcodebase.json

@@ -0,0 +1,21 @@
+[
+    {
+        "codemode": "after",
+        "codescope": "g",
+        "dataoriginflag": "0",
+        "dr": "0",
+        "format": "yyyyMMdd",
+        "isautofill": "Y",
+        "isdefault": "N",
+        "iseditable": "N",
+        "isgetpk": "N",
+        "islenvar": "Y",
+        "isused": "Y",
+        "nbcrcode": "6QBB",
+        "pk_billcodebase": "PK_CB",
+        "pk_group": "GLOBLE00000000000000",
+        "rulecode": "6QBB",
+        "rulename": "本月加班申请",
+        "ts": "2021-09-09 16:12:38"
+    }
+]

+ 38 - 0
hrkq/hrkq/script/template/60201070/billcodeelem.json

@@ -0,0 +1,38 @@
+[
+    {
+        "dr": "0",
+        "elemlenth": "4",
+        "elemtype": "0",
+        "elemvalue": "6QBB",
+        "eorder": "0",
+        "fillstyle": "0",
+        "isrefer": "0",
+        "pk_billcodebase": "PK_CB",
+        "pk_billcodeentity": "~",
+        "ts": "2021-09-09 16:12:38"
+    },
+    {
+        "dr": "0",
+        "elemlenth": "8",
+        "elemtype": "2",
+        "elemvalue": "billdate",
+        "eorder": "1",
+        "fillstyle": "0",
+        "isrefer": "0",
+        "pk_billcodebase": "PK_CB",
+        "pk_billcodeentity": "~",
+        "ts": "2021-09-09 16:12:38"
+    },
+    {
+        "dr": "0",
+        "elemlenth": "8",
+        "elemtype": "3",
+        "elemvalue": "nc.pub.billcode.BillCodePureDigitalSNGenerator",
+        "eorder": "2",
+        "fillstyle": "0",
+        "isrefer": "0",
+        "pk_billcodebase": "PK_CB",
+        "pk_billcodeentity": "~",
+        "ts": "2021-09-09 16:12:38"
+    }
+]

+ 14 - 0
hrkq/hrkq/script/template/60201070/billcoderule.json

@@ -0,0 +1,14 @@
+[
+    {
+        "code": "6QBB",
+        "codelenth": "40",
+        "codescope": "global",
+        "codestyle": "after",
+        "dr": "0",
+        "metaid": "ae1158ce-d80c-43e5-b4d8-e039955455c3",
+        "name": "本月加班申请",
+        "orgtype": "GLOBLE00000000000000",
+        "pk_nbcr": "PK_C",
+        "ts": "2021-09-09 16:12:38"
+    }
+]

+ 28 - 0
hrkq/hrkq/script/template/60201070/billtype.json

@@ -0,0 +1,28 @@
+[
+    {
+        "billcoderule": "~",
+        "billtypename": "本月加班申请",
+        "canextendtransaction": "Y",
+        "component": "batchovertime",
+        "isaccount": "Y",
+        "isapprovebill": "Y",
+        "isBizflowBill": "N",
+        "isEditableProperty": "N",
+        "isEnableButton": "N",
+        "isenabletranstypebcr": "N",
+        "islightbill": "Y",
+        "isrejectuneditableproperty": "N",
+        "isroot": "N",
+        "issupportmobile": "Y",
+        "istransaction": "N",
+        "isworkflowcanautoapprove": "N",
+        "ncbrcode": "~",
+        "nodecode": "60201070",
+        "parentbilltype": "~",
+        "pk_billtypecode": "6QBB",
+        "pk_billtypeid": "PK_B",
+        "pk_org": "GLOBLE00000000000000",
+        "systemcode": "HRKQ",
+        "webnodecode": "~"
+    }
+]

+ 68 - 0
hrkq/hrkq/script/template/60201070/busiclass.json

@@ -0,0 +1,68 @@
+[
+    {
+        "actiontype": "SAVE",
+        "classname": "N_6QBB_SAVE",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QBB",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-09 16:12:38"
+    },
+    {
+        "actiontype": "APPROVE",
+        "classname": "N_6QBB_APPROVE",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QBB",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-09 16:12:38"
+    },
+    {
+        "actiontype": "UNSAVEBILL",
+        "classname": "N_6QBB_UNSAVEBILL",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QBB",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-09 16:12:38"
+    },
+    {
+        "actiontype": "UNAPPROVE",
+        "classname": "N_6QBB_UNAPPROVE",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QBB",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-09 16:12:38"
+    },
+    {
+        "actiontype": "DELETE",
+        "classname": "N_6QBB_DELETE",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QBB",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-09 16:12:38"
+    },
+    {
+        "actiontype": "SAVEBASE",
+        "classname": "N_6QBB_SAVEBASE",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QBB",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-09 16:12:38"
+    }
+]

+ 9 - 0
hrkq/hrkq/script/template/60201070/createcorp.json

@@ -0,0 +1,9 @@
+[
+    {
+        "dr": "0",
+        "funccode": "6020",
+        "isncinnermodule": "Y",
+        "pk_corp": "0001",
+        "pk_org": "0001N210000000000E4X"
+    },
+]

File diff suppressed because it is too large
+ 3797 - 0
hrkq/hrkq/script/template/60201070/formproperty.json


+ 44 - 0
hrkq/hrkq/script/template/60201070/pagetemple.json

@@ -0,0 +1,44 @@
+[
+  {
+    "appcode": "60201070",
+    "clazz": "nccloud.vo.hrkq.batchovertime.AggBatchOverTimeVO",
+    "code": "60201070_CARD",
+    "isdefault": "N",
+    "creator": "~",
+    "ts": "2021-09-09 16:12:38",
+    "dr": 0,
+    "headcode": "card_head",
+    "metaid": "",
+    "modifier": "~",
+    "name": "本月加班申请卡片",
+    "pKFieldName": "pk_page_templet",
+    "pagecode": "60201070_CARD",
+    "parentid": "root",
+    "pk_page_templet": "PK_T01",
+    "resmodule": "",
+    "tableName": "pub_page_templet",
+    "resid": 60201070_CARD,
+    "templetdesc": ""
+  },
+  {
+    "appcode": "60201070",
+    "clazz": "nccloud.vo.hrkq.batchovertime.AggBatchOverTimeVO",
+    "code": "60201070_LIST",
+    "isdefault": "Y",
+    "creator": "~",
+    "ts": "2021-09-09 16:12:38",
+    "dr": 0,
+    "headcode": "list_head",
+    "metaid": "",
+    "modifier": "~",
+    "name": "本月加班申请列表页面",
+    "pKFieldName": "pk_page_templet",
+    "pagecode": "60201070_LIST",
+    "parentid": "root",
+    "pk_page_templet": "PK_T02",
+    "resmodule": "",
+    "tableName": "pub_page_templet",
+    "resid": 60201070_LIST,
+    "templetdesc": ""
+  }
+]

File diff suppressed because it is too large
+ 1363 - 0
hrkq/hrkq/script/template/60201070/queryproperty.json


File diff suppressed because it is too large
+ 539 - 0
hrkq/hrkq/script/template/60201070/sql001/001.sql


+ 486 - 0
hrkq/hrkq/script/template/60201070/sql002/001.sql

@@ -0,0 +1,486 @@
+INSERT INTO bd_billtype (
+        pk_billtypeid,
+        accountclass,
+        billcoderule,
+        billstyle,
+        billtypename,
+        canextendtransaction,
+        checkclassname,
+        classname,
+        comp,
+        component,
+        datafinderclz,
+        def1,
+        def2,
+        def3,
+        dr,
+        emendenumclass,
+        forwardbilltype,
+        isaccount,
+        isapprovebill,
+        isbizflowbill,
+        iseditableproperty,
+        isenablebutton,
+        isenabletranstypebcr,
+        islightbill,
+        islock,
+        isrejectuneditableproperty,
+        isroot,
+        issupportmobile,
+        istransaction,
+        isworkflowcanautoapprove,
+        ncbrcode,
+        nodecode,
+        parentbilltype,
+        pk_billtypecode,
+        pk_group,
+        pk_org,
+        referclassname,
+        systemcode,
+        transtype_class,
+        ts,
+        webnodecode,
+        wherestring
+)
+VALUES
+        (
+                '0001ZZZZDDC1AA69596F',
+                NULL,
+                '~',
+                NULL,
+                '本月加班申请',
+                'Y',
+                NULL,
+                NULL,
+                NULL,
+                'batchovertime',
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                'Y',
+                'Y',
+                'N',
+                'N',
+                'N',
+                'N',
+                NULL,
+                NULL,
+                NULL,
+                'N',
+                'Y',
+                'N',
+                'N',
+                '~',
+                '60201070',
+                '~',
+                '6QBB',
+                '~',
+                'GLOBLE00000000000000',
+                NULL,
+                'HRKQ',
+                NULL,
+                '2021-09-09 16:12:38',
+                '~',
+                NULL
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ02B17570E969',
+                11,
+                '~',
+                '2',
+                NULL,
+                'APPROVE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                NULL,
+                '~',
+                '2021-09-09 16:12:38'
+        );
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ761EF0F2D998',
+                30,
+                '~',
+                '3',
+                NULL,
+                'DELETE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                NULL,
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZC7B36601C820',
+                10,
+                '~',
+                '1',
+                NULL,
+                'SAVE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                NULL,
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZEA989776505B',
+                31,
+                '~',
+                '1',
+                NULL,
+                'SAVEBASE',
+                'Y',
+                'N',
+                NULL,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                NULL,
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO PUB_BILLACTION (
+        PK_BILLACTION,
+        ACTION_TYPE,
+        ACTIONNOTE,
+        ACTIONSTYLE,
+        ACTIONSTYLEREMARK,
+        ACTIONTYPE,
+        CONSTRICTFLAG,
+        CONTROLFLAG,
+        DR,
+        FINISHFLAG,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PUSHFLAG,
+        SHOWHINT,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZDA28018CE1D6',
+                12,
+                '~',
+                '3',
+                NULL,
+                'UNAPPROVE',
+                'N',
+                'N',
+                NULL,
+                'Y',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                NULL,
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO PUB_BILLACTION (
+        PK_BILLACTION,
+        ACTION_TYPE,
+        ACTIONNOTE,
+        ACTIONSTYLE,
+        ACTIONSTYLEREMARK,
+        ACTIONTYPE,
+        CONSTRICTFLAG,
+        CONTROLFLAG,
+        DR,
+        FINISHFLAG,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PUSHFLAG,
+        SHOWHINT,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZDAFCA9C215BD',
+                13,
+                '~',
+                '3',
+                NULL,
+                'UNSAVEBILL',
+                'N',
+                'Y',
+                NULL,
+                'Y',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                NULL,
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ195871D5DDE9',
+                'SAVE',
+                'N_6QBB_SAVE',
+                0,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                '~',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ73240A0B331F',
+                'APPROVE',
+                'N_6QBB_APPROVE',
+                0,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                '~',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZF4B079E9E06B',
+                'UNSAVEBILL',
+                'N_6QBB_UNSAVEBILL',
+                0,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                '~',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ62FC15728E26',
+                'UNAPPROVE',
+                'N_6QBB_UNAPPROVE',
+                0,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                '~',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ6BC7E32E1DA7',
+                'DELETE',
+                'N_6QBB_DELETE',
+                0,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                '~',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO PUB_BUSICLASS (
+        PK_BUSICLASS,
+        ACTIONTYPE,
+        CLASSNAME,
+        DR,
+        ISBEFORE,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PK_BUSINESSTYPE,
+        PK_GROUP,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZCCFBB009536B',
+                'SAVEBASE',
+                'N_6QBB_SAVEBASE',
+                0,
+                'N',
+                '6QBB',
+                '0001ZZZZDDC1AA69596F',
+                '~',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+go

+ 168 - 0
hrkq/hrkq/script/template/60201070/sql003/001.sql

@@ -0,0 +1,168 @@
+INSERT INTO pub_bcr_nbcr (
+        pk_nbcr,
+        code,
+        codelenth,
+        codescope,
+        codestyle,
+        comp,
+        dr,
+        metaid,
+        name,
+        orgtype,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ4DF24AD827A1',
+                '6QBB',
+                40,
+                'global',
+                'after',
+                NULL,
+                0,
+                'ae1158ce-d80c-43e5-b4d8-e039955455c3',
+                '本月加班申请',
+                'GLOBLE00000000000000',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_bcr_rulebase (
+        pk_billcodebase,
+        codemode,
+        codescope,
+        dataoriginflag,
+        dr,
+        format,
+        isautofill,
+        isdefault,
+        iseditable,
+        isgetpk,
+        islenvar,
+        isused,
+        nbcrcode,
+        pk_group,
+        rulecode,
+        rulename,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ759FC3014892',
+                'after',
+                'g',
+                0,
+                0,
+                'yyyyMMdd',
+                'Y',
+                'N',
+                'N',
+                'N',
+                'Y',
+                'Y',
+                '6QBB',
+                'GLOBLE00000000000000',
+                '6QBB',
+                '本月加班申请',
+                '2021-09-09 16:12:38'
+        );
+
+go
+
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ470BEB610E0C',
+                NULL,
+                0,
+                4,
+                0,
+                '6QBB',
+                0,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ759FC3014892',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+go
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZC419DED4101D',
+                NULL,
+                0,
+                8,
+                2,
+                'billdate',
+                1,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ759FC3014892',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+go
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ0E9CC1D53C26',
+                NULL,
+                0,
+                8,
+                3,
+                'nc.pub.billcode.BillCodePureDigitalSNGenerator',
+                2,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ759FC3014892',
+                '~',
+                '2021-09-09 16:12:38'
+        );
+go

+ 32 - 0
hrkq/hrkq/script/template/60201071/appPage.json

@@ -0,0 +1,32 @@
+[
+  {
+    "creator": "~",
+    "dr": "0",
+    "iscarddefault": "N",
+    "isdefault": "Y",
+    "modifier": "~",
+    "pagecode": "60201071_LIST",
+    "pagename": "本月加班申请列表页面",
+    "pageurl": "/nccloud/resources/hrkq/hrkq/60201071/main/index.html#/list",
+    "parent_id": "PK_APP",
+    "parentcode": "60201071",
+    "pk_apppage": "PK_PG01",
+    "resid": 60201071_LIST,
+    "ts": "2021-09-10 08:38:11"
+  },
+  {
+    "creator": "~",
+    "dr": "0",
+    "iscarddefault": "Y",
+    "isdefault": "N",
+    "modifier": "~",
+    "pagecode": "60201071_CARD",
+    "pagename": "本月加班申请卡片页面",
+    "pageurl": "/nccloud/resources/hrkq/hrkq/60201071/main/index.html#/card",
+    "parent_id": "PK_APP",
+    "parentcode": "60201071",
+    "pk_apppage": "PK_PG02",
+    "resid": 60201071_CARD,
+    "ts": "2021-09-10 08:38:11"
+  }
+]

+ 336 - 0
hrkq/hrkq/script/template/60201071/appbutton.json

@@ -0,0 +1,336 @@
+[
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "SaveGroup",
+    "btndesc": "编辑按钮组",
+    "btnname": "",
+    "btnorder": "0",
+    "btntype": "buttongroup",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "pagecode": "60201071_CARD",
+    "btncolor": "button_secondary"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "SaveBtn",
+    "btndesc": "",
+    "btnname": "保存",
+    "btnorder": "1",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Ctrl+S",
+    "pagecode": "60201071_CARD",
+    "parent_code": "SaveGroup",
+    "resid": 60201071_CARDSaveBtn,
+    "btncolor": "button_main"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "SaveAddBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnname": "保存新增",
+    "btnorder": "2",
+    "resid": 60201071_CARDSaveAddBtn,
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+S",
+    "pagecode": "60201071_CARD",
+    "parent_code": "SaveGroup"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "CancelBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnname": "取消",
+    "btnorder": "4",
+    "btntype": "general_btn",
+    "dr": "0",
+    "resid": 60201071_CARDCancelBtn,
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+Q",
+    "pagecode": "60201071_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "CUDGroup",
+    "btncolor": "button_secondary",
+    "btndesc": "CUD组",
+    "btnname": "",
+    "btnorder": "5",
+    "btntype": "buttongroup",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "",
+    "pagecode": "60201071_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "CreateBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnname": "新增",
+    "btnorder": "6",
+    "resid": 60201071_CARDCreateBtn,
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Ctrl+/",
+    "pagecode": "60201071_CARD",
+    "parent_code": "CUDGroup"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "UpdateBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnname": "修改",
+    "btnorder": "7",
+    "resid": 60201071_CARDUpdateBtn,
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+P",
+    "pagecode": "60201071_CARD",
+    "parent_code": "CUDGroup"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "DeleteBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnname": "删除",
+    "resid": 60201071_CARDDeleteBtn,
+    "btnorder": "8",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Ctrl+Del",
+    "pagecode": "60201071_CARD",
+    "parent_code": "CUDGroup"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "RefreshBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnorder": "8",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "pagecode": "60201071_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_head",
+    "btncode": "addRow",
+    "btncolor": "button_secondary",
+    "btnname": "增行",
+    "btnorder": "29",
+    "btntype": "general_btn",
+    "resid": 60201071_CARDaddRow,
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+N",
+    "pagecode": "60201071_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_head",
+    "btncode": "deleteRow",
+    "btncolor": "button_secondary",
+    "btnname": "删行",
+    "resid": 60201071_CARDdeleteRow,
+    "btnorder": "30",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+Del",
+    "pagecode": "60201071_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "expand",
+    "btncolor": "button_secondary",
+    "btnname": "展开",
+    "btnorder": "34",
+    "resid": 60201071_CARDexpand,
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "F4",
+    "pagecode": "60201071_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "insertRow",
+    "btncolor": "button_secondary",
+    "btnname": "插行",
+    "resid": 60201071_CARDinsertRow,
+    "btnorder": "35",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+I",
+    "pagecode": "60201071_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "delRow",
+    "btncolor": "button_secondary",
+    "btnname": "删行",
+    "btnorder": "36",
+    "resid": 60201071_CARDdelRow,
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+Del",
+    "pagecode": "60201071_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "pasteHere",
+    "btncolor": "button_secondary",
+    "btnname": "粘贴至此",
+    "resid": 60201071_CARDpasteHere,
+    "btnorder": "37",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+V",
+    "pagecode": "60201071_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "fold",
+    "btncolor": "button_secondary",
+    "resid": 60201071_CARDfold,
+    "btnname": "收起",
+    "btnorder": "38",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "F4",
+    "pagecode": "60201071_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "unfold",
+    "btncolor": "button_secondary",
+    "btnname": "展开",
+    "resid": 60201071_CARDunfold,
+    "btnorder": "38",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "F4",
+    "pagecode": "60201071_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "list_head",
+    "btncode": "AddDelGroup",
+    "btncolor": "button_secondary",
+    "btndesc": "增删按钮组",
+    "btnorder": "0",
+    "btntype": "buttongroup",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "pagecode": "60201071_LIST"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "list_head",
+    "btncode": "AddBtn",
+    "btncolor": "button_main",
+    "btnname": "新增",
+    "resid": 60201071_LISTAddBtn,
+    "btnorder": "1",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Ctrl+/",
+    "pagecode": "60201071_LIST",
+    "parent_code": "AddDelGroup"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "list_head",
+    "btncode": "RefreshBtn",
+    "btncolor": "button_secondary",
+    "btnorder": "13",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "pagecode": "60201071_LIST"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "list_inner",
+    "btncode": "edit",
+    "btncolor": "button_secondary",
+    "btnname": "修改",
+    "resid": 60201071_LISTedit,
+    "btnorder": "14",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+P",
+    "pagecode": "60201071_LIST"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "list_inner",
+    "btncode": "delete",
+    "btncolor": "button_secondary",
+    "resid": 60201071_LISTDelBtn,
+    "btnname": "删除",
+    "btnorder": "16",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Ctrl+Del",
+    "pagecode": "60201071_LIST"
+  }
+]

+ 43 - 0
hrkq/hrkq/script/template/60201071/appmenu.json

@@ -0,0 +1,43 @@
+[
+  {
+    "dr": "0",
+    "menuitemcode": "60",
+    "menuitemname": "hrkq",
+    "pk_menu": "1004Z510000000000FFL",
+    "pk_menuitem": "PK_M01",
+    "ts": "2021-09-10 08:38:11"
+  },
+  {
+    "dr": "0",
+    "menuitemcode": "6032",
+    "menuitemname": "hrkq",
+    "parentcode": "60",
+    "pk_menu": "1004Z510000000000FFL",
+    "resid": "",
+    "pk_menuitem": "PK_M01",
+    "ts": "2021-09-10 08:38:11"
+  },
+  {
+    "dr": "0",
+    "menuitemcode": "603230",
+    "menuitemname": "hrkq",
+    "parentcode": "6020",
+    "resid": "",
+    "pk_menu": "1004Z510000000000FFL",
+    "pk_menuitem": "PK_M02",
+    "ts": "2021-09-10 08:38:11"
+  },
+  {
+    "appcode": "60201071",
+    "appid": "PK_APP",
+    "dr": "0",
+    "menudes": "本月加班申请",
+    "menuitemcode": "60323022",
+    "menuitemname": "本月加班申请",
+    "parentcode": "603230",
+    "resid": "",
+    "pk_menu": "1004Z510000000000FFL",
+    "pk_menuitem": "PK_M03",
+    "ts": "2021-09-10 08:38:11"
+  }
+]

+ 27 - 0
hrkq/hrkq/script/template/60201071/appregister.json

@@ -0,0 +1,27 @@
+{
+  "apptype": "1",
+  "code": "60201071",
+  "creationtime": "2021-09-10 08:38:11",
+  "creator": "~",
+  "dr": "0",
+  "fun_property": "0",
+  "funtype": "0",
+  "height": "1",
+  "image_src": "businessprocess",
+  "iscauserusable": "N",
+  "iscopypage": "N",
+  "isenable": "Y",
+  "mdid": "~",
+  "modifier": "~",
+  "resid": "",
+  "name": "本月加班申请",
+  "orgtypecode": "GLOBLE00000000000000",
+  "own_module": "6020",
+  "parent_id": "602010",
+  "pk_appregister": "PK_APP",
+  "pk_group": "~",
+  "source_app_code": "60201071",
+  "ts": "2021-09-10 08:38:11",
+  "uselicense_load": "Y",
+  "width": "1"
+}

+ 158 - 0
hrkq/hrkq/script/template/60201071/area.json

@@ -0,0 +1,158 @@
+[
+  {
+    "areadesc": "",
+    "areastatus": "browse",
+    "areatype": 0,
+    "clazz": "nc.vo.hrkq.monthottime.MonthOtTimeVO",
+    "code": "list_query",
+    "creator": "~",
+    "dr": 0,
+    "isunfold": "Y",
+    "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+    "metaname": "本月加班申请",
+    "metaspace": "hrkq.monthottime",
+    "modifier": "~",
+    "name": "查询",
+    "pKFieldName": "pk_area",
+    "pagination": "",
+    "pk_area": "PK_A01",
+    "position": 1,
+    "resid": "",
+    "tableName": "pub_area",
+    "templetid": "PK_T01"
+  },
+  {
+    "areadesc": "",
+    "areastatus": "browse",
+    "areatype": 2,
+    "clazz": "nc.vo.hrkq.monthottime.MonthOtTimeVO",
+    "code": "list_head",
+    "creator": "~",
+    "dr": 0,
+    "isunfold": "Y",
+    "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+    "metaname": "本月加班申请",
+    "metaspace": "hrkq.monthottime",
+    "modifier": "~",
+    "name": "列表",
+    "pKFieldName": "pk_area",
+    "pagination": "",
+    "pk_area": "PK_A02",
+    "position": 2,
+    "resid": "",
+    "tableName": "pub_area",
+    "templetid": "PK_T01"
+  },
+  {
+    "areadesc": "",
+    "areastatus": "browse",
+    "areatype": 1,
+    "clazz": "nc.vo.hrkq.monthottime.MonthOtTimeVO",
+    "code": "card_head",
+    "creator": "~",
+    "dr": 0,
+    "isunfold": "Y",
+    "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+    "metaname": "本月加班申请",
+    "metaspace": "hrkq.monthottime",
+    "modifier": "",
+    "name": "MonthOtTimeVO表头",
+    "pKFieldName": "pk_area",
+    "pagination": "",
+    "pk_area": "PK_A03",
+    "position": 1,
+    "resid": "app_60201071_00044",
+    "tableName": "pub_area",
+    "templetid": "PK_T02"
+  },
+  {
+    "areadesc": "操作信息",
+    "areastatus": "browse",
+    "areatype": 1,
+    "clazz": "nc.vo.hrkq.monthottime.MonthOtTimeVO",
+    "code": "card_operate",
+    "creator": "~",
+    "dr": 0,
+    "isunfold": "Y",
+    "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+    "metaname": "本月加班申请",
+    "metaspace": "hrkq.monthottime",
+    "modifier": "",
+    "name": "MonthOtTimeVO",
+    "pKFieldName": "pk_area",
+    "pagination": "",
+    "pk_area": "PK_A031",
+    "position": 2,
+    "relationcode":"card_head",
+    "resid": "app_60201071_00064",
+    "tableName": "pub_area",
+    "templetid": "PK_T02"
+  }
+    ,{
+        "areadesc": "子表表体浏览区-本月加班申请子表",
+        "areastatus": "browse",
+        "areatype": 2,
+        "clazz": "nc.vo.hrkq.monthottime.MonthOtTimeBVO",
+        "code": "card_body",
+        "creator": "~",
+        "dr": 0,
+        "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+        "metaname": "本月加班申请",
+        "metaspace": "hrkq.monthottime",
+        "modifier": "",
+        "name": "本月加班申请子表表体",
+        "pKFieldName": "pk_area",
+        "pagination": "",
+        "pk_area": "PK_A04_0",
+        "position": 3,
+        "resid": app_60201071_MonthOtTimeBVO,
+        "tableName": "pub_area",
+        "templetid": "PK_T02"
+    }
+    ,{
+        "areadesc": "子表表体编辑区-本月加班申请子表",
+        "areastatus": "edit",
+        "areatype": 1,
+        "clazz": "nc.vo.hrkq.monthottime.MonthOtTimeBVO",
+        "code": "card_body_edit",
+        "creator": "~",
+        "dr": 0,
+        "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+        "metaname": "本月加班申请",
+        "metaspace": "hrkq.monthottime",
+        "modifier": "",
+        "name": "本月加班申请子表",
+        "pKFieldName": "pk_area",
+        "pagination": "",
+        "pk_area": "PK_A041_0",
+        "position": 4,
+        "relationcode":"card_body",
+        "resid": app_60201071_MonthOtTimeBVO,
+        "tableName": "pub_area",
+        "templetid": "PK_T02"
+    }
+    ,{
+        "areadesc": "子表表体编辑浏览区-本月加班申请子表",
+        "areastatus": "browse",
+        "areatype": 1,
+        "clazz": "nc.vo.hrkq.monthottime.MonthOtTimeBVO",
+        "code": "card_body_browse",
+        "creator": "~",
+        "dr": 0,
+        "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+        "metaname": "本月加班申请",
+        "metaspace": "hrkq.monthottime",
+        "modifier": "",
+        "name": "本月加班申请子表",
+        "pKFieldName": "pk_area",
+        "pagination": "",
+        "pk_area": "PK_A042_0",
+        "position": 5,
+        "relationcode":"card_body",
+        "resid": app_60201071_MonthOtTimeBVO,
+        "tableName": "pub_area",
+        "templetid": "PK_T02"
+    }
+
+
+]

+ 86 - 0
hrkq/hrkq/script/template/60201071/billaction.json

@@ -0,0 +1,86 @@
+[
+    {
+        "action_type": "11",
+        "actionnote": "~",
+        "actionstyle": "2",
+        "actiontype": "APPROVE",
+        "constrictflag": "N",
+        "controlflag": "N",
+        "finishflag": "N",
+        "pk_billaction": "PK_BA1",
+        "pk_billtype": "6QBO",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-10 08:38:11"
+    },
+    {
+        "action_type": "30",
+        "actionnote": "~",
+        "actionstyle": "3",
+        "actiontype": "DELETE",
+        "constrictflag": "N",
+        "controlflag": "N",
+        "finishflag": "N",
+        "pk_billaction": "PK_BA2",
+        "pk_billtype": "6QBO",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-10 08:38:11"
+    },
+    {
+        "action_type": "10",
+        "actionnote": "~",
+        "actionstyle": "1",
+        "actiontype": "SAVE",
+        "constrictflag": "N",
+        "controlflag": "N",
+        "finishflag": "N",
+        "pk_billaction": "PK_BA3",
+        "pk_billtype": "6QBO",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-10 08:38:11"
+    },
+    {
+        "action_type": "31",
+        "actionnote": "~",
+        "actionstyle": "1",
+        "actiontype": "SAVEBASE",
+        "constrictflag": "Y",
+        "controlflag": "N",
+        "finishflag": "N",
+        "pk_billaction": "PK_BA4",
+        "pk_billtype": "6QBO",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-10 08:38:11"
+    },
+    {
+        "action_type": "12",
+        "actionnote": "~",
+        "actionstyle": "3",
+        "actiontype": "UNAPPROVE",
+        "constrictflag": "N",
+        "controlflag": "N",
+        "finishflag": "Y",
+        "pk_billaction": "PK_BA5",
+        "pk_billtype": "6QBO",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-10 08:38:11"
+    },
+    {
+        "action_type": "13",
+        "actionnote": "~",
+        "actionstyle": "3",
+        "actiontype": "UNSAVEBILL",
+        "constrictflag": "N",
+        "controlflag": "Y",
+        "finishflag": "Y",
+        "pk_billaction": "PK_BA6",
+        "pk_billtype": "6QBO",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-10 08:38:11"
+    }
+]

+ 21 - 0
hrkq/hrkq/script/template/60201071/billcodebase.json

@@ -0,0 +1,21 @@
+[
+    {
+        "codemode": "after",
+        "codescope": "g",
+        "dataoriginflag": "0",
+        "dr": "0",
+        "format": "yyyyMMdd",
+        "isautofill": "Y",
+        "isdefault": "N",
+        "iseditable": "N",
+        "isgetpk": "N",
+        "islenvar": "Y",
+        "isused": "Y",
+        "nbcrcode": "6QBO",
+        "pk_billcodebase": "PK_CB",
+        "pk_group": "GLOBLE00000000000000",
+        "rulecode": "6QBO",
+        "rulename": "本月加班申请",
+        "ts": "2021-09-10 08:38:11"
+    }
+]

+ 38 - 0
hrkq/hrkq/script/template/60201071/billcodeelem.json

@@ -0,0 +1,38 @@
+[
+    {
+        "dr": "0",
+        "elemlenth": "4",
+        "elemtype": "0",
+        "elemvalue": "6QBO",
+        "eorder": "0",
+        "fillstyle": "0",
+        "isrefer": "0",
+        "pk_billcodebase": "PK_CB",
+        "pk_billcodeentity": "~",
+        "ts": "2021-09-10 08:38:11"
+    },
+    {
+        "dr": "0",
+        "elemlenth": "8",
+        "elemtype": "2",
+        "elemvalue": "billdate",
+        "eorder": "1",
+        "fillstyle": "0",
+        "isrefer": "0",
+        "pk_billcodebase": "PK_CB",
+        "pk_billcodeentity": "~",
+        "ts": "2021-09-10 08:38:11"
+    },
+    {
+        "dr": "0",
+        "elemlenth": "8",
+        "elemtype": "3",
+        "elemvalue": "nc.pub.billcode.BillCodePureDigitalSNGenerator",
+        "eorder": "2",
+        "fillstyle": "0",
+        "isrefer": "0",
+        "pk_billcodebase": "PK_CB",
+        "pk_billcodeentity": "~",
+        "ts": "2021-09-10 08:38:11"
+    }
+]

+ 14 - 0
hrkq/hrkq/script/template/60201071/billcoderule.json

@@ -0,0 +1,14 @@
+[
+    {
+        "code": "6QBO",
+        "codelenth": "40",
+        "codescope": "global",
+        "codestyle": "after",
+        "dr": "0",
+        "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+        "name": "本月加班申请",
+        "orgtype": "GLOBLE00000000000000",
+        "pk_nbcr": "PK_C",
+        "ts": "2021-09-10 08:38:11"
+    }
+]

+ 28 - 0
hrkq/hrkq/script/template/60201071/billtype.json

@@ -0,0 +1,28 @@
+[
+    {
+        "billcoderule": "~",
+        "billtypename": "本月加班申请",
+        "canextendtransaction": "Y",
+        "component": "monthottime",
+        "isaccount": "Y",
+        "isapprovebill": "Y",
+        "isBizflowBill": "N",
+        "isEditableProperty": "N",
+        "isEnableButton": "N",
+        "isenabletranstypebcr": "N",
+        "islightbill": "Y",
+        "isrejectuneditableproperty": "N",
+        "isroot": "N",
+        "issupportmobile": "Y",
+        "istransaction": "N",
+        "isworkflowcanautoapprove": "N",
+        "ncbrcode": "~",
+        "nodecode": "60201071",
+        "parentbilltype": "~",
+        "pk_billtypecode": "6QBO",
+        "pk_billtypeid": "PK_B",
+        "pk_org": "GLOBLE00000000000000",
+        "systemcode": "HRKQ",
+        "webnodecode": "~"
+    }
+]

+ 68 - 0
hrkq/hrkq/script/template/60201071/busiclass.json

@@ -0,0 +1,68 @@
+[
+    {
+        "actiontype": "SAVE",
+        "classname": "N_6QBO_SAVE",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QBO",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-10 08:38:11"
+    },
+    {
+        "actiontype": "APPROVE",
+        "classname": "N_6QBO_APPROVE",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QBO",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-10 08:38:11"
+    },
+    {
+        "actiontype": "UNSAVEBILL",
+        "classname": "N_6QBO_UNSAVEBILL",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QBO",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-10 08:38:11"
+    },
+    {
+        "actiontype": "UNAPPROVE",
+        "classname": "N_6QBO_UNAPPROVE",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QBO",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-10 08:38:11"
+    },
+    {
+        "actiontype": "DELETE",
+        "classname": "N_6QBO_DELETE",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QBO",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-10 08:38:11"
+    },
+    {
+        "actiontype": "SAVEBASE",
+        "classname": "N_6QBO_SAVEBASE",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QBO",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-10 08:38:11"
+    }
+]

+ 9 - 0
hrkq/hrkq/script/template/60201071/createcorp.json

@@ -0,0 +1,9 @@
+[
+    {
+        "dr": "0",
+        "funccode": "6020",
+        "isncinnermodule": "Y",
+        "pk_corp": "0001",
+        "pk_org": "0001N210000000000E4X"
+    },
+]

File diff suppressed because it is too large
+ 3919 - 0
hrkq/hrkq/script/template/60201071/formproperty.json


+ 44 - 0
hrkq/hrkq/script/template/60201071/pagetemple.json

@@ -0,0 +1,44 @@
+[
+  {
+    "appcode": "60201071",
+    "clazz": "nc.vo.hrkq.monthottime.AggMonthOtTimeVO",
+    "code": "60201071_CARD",
+    "isdefault": "N",
+    "creator": "~",
+    "ts": "2021-09-10 08:38:11",
+    "dr": 0,
+    "headcode": "card_head",
+    "metaid": "",
+    "modifier": "~",
+    "name": "本月加班申请卡片",
+    "pKFieldName": "pk_page_templet",
+    "pagecode": "60201071_CARD",
+    "parentid": "root",
+    "pk_page_templet": "PK_T01",
+    "resmodule": "",
+    "tableName": "pub_page_templet",
+    "resid": 60201071_CARD,
+    "templetdesc": ""
+  },
+  {
+    "appcode": "60201071",
+    "clazz": "nc.vo.hrkq.monthottime.AggMonthOtTimeVO",
+    "code": "60201071_LIST",
+    "isdefault": "Y",
+    "creator": "~",
+    "ts": "2021-09-10 08:38:11",
+    "dr": 0,
+    "headcode": "list_head",
+    "metaid": "",
+    "modifier": "~",
+    "name": "本月加班申请列表页面",
+    "pKFieldName": "pk_page_templet",
+    "pagecode": "60201071_LIST",
+    "parentid": "root",
+    "pk_page_templet": "PK_T02",
+    "resmodule": "",
+    "tableName": "pub_page_templet",
+    "resid": 60201071_LIST,
+    "templetdesc": ""
+  }
+]

+ 48 - 0
hrkq/hrkq/script/template/60201071/queryproperty.json

@@ -0,0 +1,48 @@
+[
+    {
+      "areaid": "PK_A01",
+      "classid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+      "code": "otapplytype",
+      "creator": "~",
+      "datatype": "203",
+      "dataval": "按次=1,普通=2",
+      "defaultvalue": "",
+      "define1": "",
+      "define2": "",
+      "define3": "",
+      "define4": "",
+      "define5": "",
+      "disabled": "N",
+      "dr": 0,
+      "isdefined": "N",
+      "isbeyondorg": "N",
+      "ischeck": "N",
+      "isfixedcondition": "N",
+      "ismultiselectedenabled": "N",
+      "isnotmeta": "N",
+      "isquerycondition": "Y",
+      "isuse": "Y",
+          "required": "N",
+      "usefunc": "N",
+      "visible": "Y",
+      "itemtype": "select",
+      "label": "加班申请类型",
+      "maxlength": "50",
+      "metapath": "otapplytype",
+      "opersign": "=@",
+      "opersignname": "等于@",
+      "pKFieldName": "pk_query_property",
+      "pk_query_property": "PK_Q_P7",
+      "proid": "23a0e073-a0e9-430a-89e5-f0f4de33c811",
+      "querytablename": "",
+      "refcode": "/common-ref/",
+      "refname": "-99",
+      "resid": "",
+      "returntype": "refpk",
+      "tableName": "pub_query_property",
+      "tablecode": "",
+      "width": 1,
+      "showtype": 1
+    },
+]
+

File diff suppressed because it is too large
+ 466 - 0
hrkq/hrkq/script/template/60201071/sql001/001.sql


+ 486 - 0
hrkq/hrkq/script/template/60201071/sql002/001.sql

@@ -0,0 +1,486 @@
+INSERT INTO bd_billtype (
+        pk_billtypeid,
+        accountclass,
+        billcoderule,
+        billstyle,
+        billtypename,
+        canextendtransaction,
+        checkclassname,
+        classname,
+        comp,
+        component,
+        datafinderclz,
+        def1,
+        def2,
+        def3,
+        dr,
+        emendenumclass,
+        forwardbilltype,
+        isaccount,
+        isapprovebill,
+        isbizflowbill,
+        iseditableproperty,
+        isenablebutton,
+        isenabletranstypebcr,
+        islightbill,
+        islock,
+        isrejectuneditableproperty,
+        isroot,
+        issupportmobile,
+        istransaction,
+        isworkflowcanautoapprove,
+        ncbrcode,
+        nodecode,
+        parentbilltype,
+        pk_billtypecode,
+        pk_group,
+        pk_org,
+        referclassname,
+        systemcode,
+        transtype_class,
+        ts,
+        webnodecode,
+        wherestring
+)
+VALUES
+        (
+                '0001ZZZZ3315A1630967',
+                NULL,
+                '~',
+                NULL,
+                '本月加班申请',
+                'Y',
+                NULL,
+                NULL,
+                NULL,
+                'monthottime',
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                'Y',
+                'Y',
+                'N',
+                'N',
+                'N',
+                'N',
+                NULL,
+                NULL,
+                NULL,
+                'N',
+                'Y',
+                'N',
+                'N',
+                '~',
+                '60201071',
+                '~',
+                '6QBO',
+                '~',
+                'GLOBLE00000000000000',
+                NULL,
+                'HRKQ',
+                NULL,
+                '2021-09-10 08:38:11',
+                '~',
+                NULL
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZE97EDE85E07A',
+                11,
+                '~',
+                '2',
+                NULL,
+                'APPROVE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                NULL,
+                '~',
+                '2021-09-10 08:38:11'
+        );
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZADA852BED537',
+                30,
+                '~',
+                '3',
+                NULL,
+                'DELETE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                NULL,
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZEAA38A6B39B0',
+                10,
+                '~',
+                '1',
+                NULL,
+                'SAVE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                NULL,
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ1E4D87A08FB0',
+                31,
+                '~',
+                '1',
+                NULL,
+                'SAVEBASE',
+                'Y',
+                'N',
+                NULL,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                NULL,
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO PUB_BILLACTION (
+        PK_BILLACTION,
+        ACTION_TYPE,
+        ACTIONNOTE,
+        ACTIONSTYLE,
+        ACTIONSTYLEREMARK,
+        ACTIONTYPE,
+        CONSTRICTFLAG,
+        CONTROLFLAG,
+        DR,
+        FINISHFLAG,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PUSHFLAG,
+        SHOWHINT,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZC4AC24A71FEE',
+                12,
+                '~',
+                '3',
+                NULL,
+                'UNAPPROVE',
+                'N',
+                'N',
+                NULL,
+                'Y',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                NULL,
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO PUB_BILLACTION (
+        PK_BILLACTION,
+        ACTION_TYPE,
+        ACTIONNOTE,
+        ACTIONSTYLE,
+        ACTIONSTYLEREMARK,
+        ACTIONTYPE,
+        CONSTRICTFLAG,
+        CONTROLFLAG,
+        DR,
+        FINISHFLAG,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PUSHFLAG,
+        SHOWHINT,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZFE7E769939A2',
+                13,
+                '~',
+                '3',
+                NULL,
+                'UNSAVEBILL',
+                'N',
+                'Y',
+                NULL,
+                'Y',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                NULL,
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ6531B350972E',
+                'SAVE',
+                'N_6QBO_SAVE',
+                0,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                '~',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ07BCD8F2A50E',
+                'APPROVE',
+                'N_6QBO_APPROVE',
+                0,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                '~',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ8C6B9EBEF19F',
+                'UNSAVEBILL',
+                'N_6QBO_UNSAVEBILL',
+                0,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                '~',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ920B3CA7C732',
+                'UNAPPROVE',
+                'N_6QBO_UNAPPROVE',
+                0,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                '~',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZBBE491DD6194',
+                'DELETE',
+                'N_6QBO_DELETE',
+                0,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                '~',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO PUB_BUSICLASS (
+        PK_BUSICLASS,
+        ACTIONTYPE,
+        CLASSNAME,
+        DR,
+        ISBEFORE,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PK_BUSINESSTYPE,
+        PK_GROUP,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZ4BB7F8C082A7',
+                'SAVEBASE',
+                'N_6QBO_SAVEBASE',
+                0,
+                'N',
+                '6QBO',
+                '0001ZZZZ3315A1630967',
+                '~',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+go

+ 168 - 0
hrkq/hrkq/script/template/60201071/sql003/001.sql

@@ -0,0 +1,168 @@
+INSERT INTO pub_bcr_nbcr (
+        pk_nbcr,
+        code,
+        codelenth,
+        codescope,
+        codestyle,
+        comp,
+        dr,
+        metaid,
+        name,
+        orgtype,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZBCB5DAD957F0',
+                '6QBO',
+                40,
+                'global',
+                'after',
+                NULL,
+                0,
+                '7dea45a4-dac9-4407-926c-91bdc722b6ad',
+                '本月加班申请',
+                'GLOBLE00000000000000',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_bcr_rulebase (
+        pk_billcodebase,
+        codemode,
+        codescope,
+        dataoriginflag,
+        dr,
+        format,
+        isautofill,
+        isdefault,
+        iseditable,
+        isgetpk,
+        islenvar,
+        isused,
+        nbcrcode,
+        pk_group,
+        rulecode,
+        rulename,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ450AA035B640',
+                'after',
+                'g',
+                0,
+                0,
+                'yyyyMMdd',
+                'Y',
+                'N',
+                'N',
+                'N',
+                'Y',
+                'Y',
+                '6QBO',
+                'GLOBLE00000000000000',
+                '6QBO',
+                '本月加班申请',
+                '2021-09-10 08:38:11'
+        );
+
+go
+
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZB1D2FC960D8C',
+                NULL,
+                0,
+                4,
+                0,
+                '6QBO',
+                0,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ450AA035B640',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+go
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZA4CCFEB1C7E2',
+                NULL,
+                0,
+                8,
+                2,
+                'billdate',
+                1,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ450AA035B640',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+go
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ893EC7C0B17D',
+                NULL,
+                0,
+                8,
+                3,
+                'nc.pub.billcode.BillCodePureDigitalSNGenerator',
+                2,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ450AA035B640',
+                '~',
+                '2021-09-10 08:38:11'
+        );
+go

+ 32 - 0
hrkq/hrkq/script/template/60201072/appPage.json

@@ -0,0 +1,32 @@
+[
+  {
+    "creator": "~",
+    "dr": "0",
+    "iscarddefault": "N",
+    "isdefault": "Y",
+    "modifier": "~",
+    "pagecode": "60201072_LIST",
+    "pagename": "本月加班申请列表页面",
+    "pageurl": "/nccloud/resources/hrkq/hrkq/60201072/main/index.html#/list",
+    "parent_id": "PK_APP",
+    "parentcode": "60201072",
+    "pk_apppage": "PK_PG01",
+    "resid": 60201072_LIST,
+    "ts": "2021-09-10 19:50:19"
+  },
+  {
+    "creator": "~",
+    "dr": "0",
+    "iscarddefault": "Y",
+    "isdefault": "N",
+    "modifier": "~",
+    "pagecode": "60201072_CARD",
+    "pagename": "本月加班申请卡片页面",
+    "pageurl": "/nccloud/resources/hrkq/hrkq/60201072/main/index.html#/card",
+    "parent_id": "PK_APP",
+    "parentcode": "60201072",
+    "pk_apppage": "PK_PG02",
+    "resid": 60201072_CARD,
+    "ts": "2021-09-10 19:50:19"
+  }
+]

+ 336 - 0
hrkq/hrkq/script/template/60201072/appbutton.json

@@ -0,0 +1,336 @@
+[
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "SaveGroup",
+    "btndesc": "编辑按钮组",
+    "btnname": "",
+    "btnorder": "0",
+    "btntype": "buttongroup",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "pagecode": "60201072_CARD",
+    "btncolor": "button_secondary"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "SaveBtn",
+    "btndesc": "",
+    "btnname": "保存",
+    "btnorder": "1",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Ctrl+S",
+    "pagecode": "60201072_CARD",
+    "parent_code": "SaveGroup",
+    "resid": 60201072_CARDSaveBtn,
+    "btncolor": "button_main"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "SaveAddBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnname": "保存新增",
+    "btnorder": "2",
+    "resid": 60201072_CARDSaveAddBtn,
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+S",
+    "pagecode": "60201072_CARD",
+    "parent_code": "SaveGroup"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "CancelBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnname": "取消",
+    "btnorder": "4",
+    "btntype": "general_btn",
+    "dr": "0",
+    "resid": 60201072_CARDCancelBtn,
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+Q",
+    "pagecode": "60201072_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "CUDGroup",
+    "btncolor": "button_secondary",
+    "btndesc": "CUD组",
+    "btnname": "",
+    "btnorder": "5",
+    "btntype": "buttongroup",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "",
+    "pagecode": "60201072_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "CreateBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnname": "新增",
+    "btnorder": "6",
+    "resid": 60201072_CARDCreateBtn,
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Ctrl+/",
+    "pagecode": "60201072_CARD",
+    "parent_code": "CUDGroup"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "UpdateBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnname": "修改",
+    "btnorder": "7",
+    "resid": 60201072_CARDUpdateBtn,
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+P",
+    "pagecode": "60201072_CARD",
+    "parent_code": "CUDGroup"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "DeleteBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnname": "删除",
+    "resid": 60201072_CARDDeleteBtn,
+    "btnorder": "8",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Ctrl+Del",
+    "pagecode": "60201072_CARD",
+    "parent_code": "CUDGroup"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "card_head",
+    "btncode": "RefreshBtn",
+    "btncolor": "button_secondary",
+    "btndesc": "",
+    "btnorder": "8",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "pagecode": "60201072_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_head",
+    "btncode": "addRow",
+    "btncolor": "button_secondary",
+    "btnname": "增行",
+    "btnorder": "29",
+    "btntype": "general_btn",
+    "resid": 60201072_CARDaddRow,
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+N",
+    "pagecode": "60201072_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_head",
+    "btncode": "deleteRow",
+    "btncolor": "button_secondary",
+    "btnname": "删行",
+    "resid": 60201072_CARDdeleteRow,
+    "btnorder": "30",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+Del",
+    "pagecode": "60201072_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "expand",
+    "btncolor": "button_secondary",
+    "btnname": "展开",
+    "btnorder": "34",
+    "resid": 60201072_CARDexpand,
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "F4",
+    "pagecode": "60201072_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "insertRow",
+    "btncolor": "button_secondary",
+    "btnname": "插行",
+    "resid": 60201072_CARDinsertRow,
+    "btnorder": "35",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+I",
+    "pagecode": "60201072_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "delRow",
+    "btncolor": "button_secondary",
+    "btnname": "删行",
+    "btnorder": "36",
+    "resid": 60201072_CARDdelRow,
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+Del",
+    "pagecode": "60201072_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "pasteHere",
+    "btncolor": "button_secondary",
+    "btnname": "粘贴至此",
+    "resid": 60201072_CARDpasteHere,
+    "btnorder": "37",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+V",
+    "pagecode": "60201072_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "fold",
+    "btncolor": "button_secondary",
+    "resid": 60201072_CARDfold,
+    "btnname": "收起",
+    "btnorder": "38",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "F4",
+    "pagecode": "60201072_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "tabs_body",
+    "btncode": "unfold",
+    "btncolor": "button_secondary",
+    "btnname": "展开",
+    "resid": 60201072_CARDunfold,
+    "btnorder": "38",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "F4",
+    "pagecode": "60201072_CARD"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "list_head",
+    "btncode": "AddDelGroup",
+    "btncolor": "button_secondary",
+    "btndesc": "增删按钮组",
+    "btnorder": "0",
+    "btntype": "buttongroup",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "pagecode": "60201072_LIST"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "list_head",
+    "btncode": "AddBtn",
+    "btncolor": "button_main",
+    "btnname": "新增",
+    "resid": 60201072_LISTAddBtn,
+    "btnorder": "1",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Ctrl+/",
+    "pagecode": "60201072_LIST",
+    "parent_code": "AddDelGroup"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "list_head",
+    "btncode": "RefreshBtn",
+    "btncolor": "button_secondary",
+    "btnorder": "13",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "pagecode": "60201072_LIST"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "list_inner",
+    "btncode": "edit",
+    "btncolor": "button_secondary",
+    "btnname": "修改",
+    "resid": 60201072_LISTedit,
+    "btnorder": "14",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Alt+P",
+    "pagecode": "60201072_LIST"
+  },
+  {
+    "appid": "PK_APP",
+    "btnarea": "list_inner",
+    "btncode": "delete",
+    "btncolor": "button_secondary",
+    "resid": 60201072_LISTDelBtn,
+    "btnname": "删除",
+    "btnorder": "16",
+    "btntype": "general_btn",
+    "dr": "0",
+    "isenable": "Y",
+    "iskeyfunc": "N",
+    "keyboard": "Ctrl+Del",
+    "pagecode": "60201072_LIST"
+  }
+]

+ 43 - 0
hrkq/hrkq/script/template/60201072/appmenu.json

@@ -0,0 +1,43 @@
+[
+  {
+    "dr": "0",
+    "menuitemcode": "60",
+    "menuitemname": "hrkq",
+    "pk_menu": "1004Z510000000000FFL",
+    "pk_menuitem": "PK_M01",
+    "ts": "2021-09-10 19:50:19"
+  },
+  {
+    "dr": "0",
+    "menuitemcode": "6032",
+    "menuitemname": "hrkq",
+    "parentcode": "60",
+    "pk_menu": "1004Z510000000000FFL",
+    "resid": "",
+    "pk_menuitem": "PK_M01",
+    "ts": "2021-09-10 19:50:19"
+  },
+  {
+    "dr": "0",
+    "menuitemcode": "603230",
+    "menuitemname": "hrkq",
+    "parentcode": "6020",
+    "resid": "",
+    "pk_menu": "1004Z510000000000FFL",
+    "pk_menuitem": "PK_M02",
+    "ts": "2021-09-10 19:50:19"
+  },
+  {
+    "appcode": "60201072",
+    "appid": "PK_APP",
+    "dr": "0",
+    "menudes": "本月加班申请",
+    "menuitemcode": "60323023",
+    "menuitemname": "本月加班申请",
+    "parentcode": "603230",
+    "resid": "",
+    "pk_menu": "1004Z510000000000FFL",
+    "pk_menuitem": "PK_M03",
+    "ts": "2021-09-10 19:50:19"
+  }
+]

+ 27 - 0
hrkq/hrkq/script/template/60201072/appregister.json

@@ -0,0 +1,27 @@
+{
+  "apptype": "1",
+  "code": "60201072",
+  "creationtime": "2021-09-10 19:50:19",
+  "creator": "~",
+  "dr": "0",
+  "fun_property": "0",
+  "funtype": "0",
+  "height": "1",
+  "image_src": "businessprocess",
+  "iscauserusable": "N",
+  "iscopypage": "N",
+  "isenable": "Y",
+  "mdid": "~",
+  "modifier": "~",
+  "resid": "",
+  "name": "本月加班申请",
+  "orgtypecode": "GLOBLE00000000000000",
+  "own_module": "6020",
+  "parent_id": "602010",
+  "pk_appregister": "PK_APP",
+  "pk_group": "~",
+  "source_app_code": "60201072",
+  "ts": "2021-09-10 19:50:19",
+  "uselicense_load": "Y",
+  "width": "1"
+}

+ 158 - 0
hrkq/hrkq/script/template/60201072/area.json

@@ -0,0 +1,158 @@
+[
+  {
+    "areadesc": "",
+    "areastatus": "browse",
+    "areatype": 0,
+    "clazz": "nc.vo.hrkq.monthottime.MonthOtTimeVO",
+    "code": "list_query",
+    "creator": "~",
+    "dr": 0,
+    "isunfold": "Y",
+    "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+    "metaname": "本月加班申请",
+    "metaspace": "hrkq.monthottime",
+    "modifier": "~",
+    "name": "查询",
+    "pKFieldName": "pk_area",
+    "pagination": "",
+    "pk_area": "PK_A01",
+    "position": 1,
+    "resid": "",
+    "tableName": "pub_area",
+    "templetid": "PK_T01"
+  },
+  {
+    "areadesc": "",
+    "areastatus": "browse",
+    "areatype": 2,
+    "clazz": "nc.vo.hrkq.monthottime.MonthOtTimeVO",
+    "code": "list_head",
+    "creator": "~",
+    "dr": 0,
+    "isunfold": "Y",
+    "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+    "metaname": "本月加班申请",
+    "metaspace": "hrkq.monthottime",
+    "modifier": "~",
+    "name": "列表",
+    "pKFieldName": "pk_area",
+    "pagination": "",
+    "pk_area": "PK_A02",
+    "position": 2,
+    "resid": "",
+    "tableName": "pub_area",
+    "templetid": "PK_T01"
+  },
+  {
+    "areadesc": "",
+    "areastatus": "browse",
+    "areatype": 1,
+    "clazz": "nc.vo.hrkq.monthottime.MonthOtTimeVO",
+    "code": "card_head",
+    "creator": "~",
+    "dr": 0,
+    "isunfold": "Y",
+    "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+    "metaname": "本月加班申请",
+    "metaspace": "hrkq.monthottime",
+    "modifier": "",
+    "name": "MonthOtTimeVO表头",
+    "pKFieldName": "pk_area",
+    "pagination": "",
+    "pk_area": "PK_A03",
+    "position": 1,
+    "resid": "app_60201072_00044",
+    "tableName": "pub_area",
+    "templetid": "PK_T02"
+  },
+  {
+    "areadesc": "操作信息",
+    "areastatus": "browse",
+    "areatype": 1,
+    "clazz": "nc.vo.hrkq.monthottime.MonthOtTimeVO",
+    "code": "card_operate",
+    "creator": "~",
+    "dr": 0,
+    "isunfold": "Y",
+    "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+    "metaname": "本月加班申请",
+    "metaspace": "hrkq.monthottime",
+    "modifier": "",
+    "name": "MonthOtTimeVO",
+    "pKFieldName": "pk_area",
+    "pagination": "",
+    "pk_area": "PK_A031",
+    "position": 2,
+    "relationcode":"card_head",
+    "resid": "app_60201072_00064",
+    "tableName": "pub_area",
+    "templetid": "PK_T02"
+  }
+    ,{
+        "areadesc": "子表表体浏览区-本月加班申请子表",
+        "areastatus": "browse",
+        "areatype": 2,
+        "clazz": "nc.vo.hrkq.monthottime.MonthOtTimeBVO",
+        "code": "card_body",
+        "creator": "~",
+        "dr": 0,
+        "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+        "metaname": "本月加班申请",
+        "metaspace": "hrkq.monthottime",
+        "modifier": "",
+        "name": "本月加班申请子表表体",
+        "pKFieldName": "pk_area",
+        "pagination": "",
+        "pk_area": "PK_A04_0",
+        "position": 3,
+        "resid": app_60201072_MonthOtTimeBVO,
+        "tableName": "pub_area",
+        "templetid": "PK_T02"
+    }
+    ,{
+        "areadesc": "子表表体编辑区-本月加班申请子表",
+        "areastatus": "edit",
+        "areatype": 1,
+        "clazz": "nc.vo.hrkq.monthottime.MonthOtTimeBVO",
+        "code": "card_body_edit",
+        "creator": "~",
+        "dr": 0,
+        "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+        "metaname": "本月加班申请",
+        "metaspace": "hrkq.monthottime",
+        "modifier": "",
+        "name": "本月加班申请子表",
+        "pKFieldName": "pk_area",
+        "pagination": "",
+        "pk_area": "PK_A041_0",
+        "position": 4,
+        "relationcode":"card_body",
+        "resid": app_60201072_MonthOtTimeBVO,
+        "tableName": "pub_area",
+        "templetid": "PK_T02"
+    }
+    ,{
+        "areadesc": "子表表体编辑浏览区-本月加班申请子表",
+        "areastatus": "browse",
+        "areatype": 1,
+        "clazz": "nc.vo.hrkq.monthottime.MonthOtTimeBVO",
+        "code": "card_body_browse",
+        "creator": "~",
+        "dr": 0,
+        "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+        "metaname": "本月加班申请",
+        "metaspace": "hrkq.monthottime",
+        "modifier": "",
+        "name": "本月加班申请子表",
+        "pKFieldName": "pk_area",
+        "pagination": "",
+        "pk_area": "PK_A042_0",
+        "position": 5,
+        "relationcode":"card_body",
+        "resid": app_60201072_MonthOtTimeBVO,
+        "tableName": "pub_area",
+        "templetid": "PK_T02"
+    }
+
+
+]

+ 86 - 0
hrkq/hrkq/script/template/60201072/billaction.json

@@ -0,0 +1,86 @@
+[
+    {
+        "action_type": "11",
+        "actionnote": "~",
+        "actionstyle": "2",
+        "actiontype": "APPROVE",
+        "constrictflag": "N",
+        "controlflag": "N",
+        "finishflag": "N",
+        "pk_billaction": "PK_BA1",
+        "pk_billtype": "6QOT",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-10 19:50:19"
+    },
+    {
+        "action_type": "30",
+        "actionnote": "~",
+        "actionstyle": "3",
+        "actiontype": "DELETE",
+        "constrictflag": "N",
+        "controlflag": "N",
+        "finishflag": "N",
+        "pk_billaction": "PK_BA2",
+        "pk_billtype": "6QOT",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-10 19:50:19"
+    },
+    {
+        "action_type": "10",
+        "actionnote": "~",
+        "actionstyle": "1",
+        "actiontype": "SAVE",
+        "constrictflag": "N",
+        "controlflag": "N",
+        "finishflag": "N",
+        "pk_billaction": "PK_BA3",
+        "pk_billtype": "6QOT",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-10 19:50:19"
+    },
+    {
+        "action_type": "31",
+        "actionnote": "~",
+        "actionstyle": "1",
+        "actiontype": "SAVEBASE",
+        "constrictflag": "Y",
+        "controlflag": "N",
+        "finishflag": "N",
+        "pk_billaction": "PK_BA4",
+        "pk_billtype": "6QOT",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-10 19:50:19"
+    },
+    {
+        "action_type": "12",
+        "actionnote": "~",
+        "actionstyle": "3",
+        "actiontype": "UNAPPROVE",
+        "constrictflag": "N",
+        "controlflag": "N",
+        "finishflag": "Y",
+        "pk_billaction": "PK_BA5",
+        "pk_billtype": "6QOT",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-10 19:50:19"
+    },
+    {
+        "action_type": "13",
+        "actionnote": "~",
+        "actionstyle": "3",
+        "actiontype": "UNSAVEBILL",
+        "constrictflag": "N",
+        "controlflag": "Y",
+        "finishflag": "Y",
+        "pk_billaction": "PK_BA6",
+        "pk_billtype": "6QOT",
+        "pk_billtypeid": "PK_B",
+        "showhint": "~",
+        "ts": "2021-09-10 19:50:19"
+    }
+]

+ 21 - 0
hrkq/hrkq/script/template/60201072/billcodebase.json

@@ -0,0 +1,21 @@
+[
+    {
+        "codemode": "after",
+        "codescope": "g",
+        "dataoriginflag": "0",
+        "dr": "0",
+        "format": "yyyyMMdd",
+        "isautofill": "Y",
+        "isdefault": "N",
+        "iseditable": "N",
+        "isgetpk": "N",
+        "islenvar": "Y",
+        "isused": "Y",
+        "nbcrcode": "6QOT",
+        "pk_billcodebase": "PK_CB",
+        "pk_group": "GLOBLE00000000000000",
+        "rulecode": "6QOT",
+        "rulename": "本月加班申请",
+        "ts": "2021-09-10 19:50:19"
+    }
+]

+ 38 - 0
hrkq/hrkq/script/template/60201072/billcodeelem.json

@@ -0,0 +1,38 @@
+[
+    {
+        "dr": "0",
+        "elemlenth": "4",
+        "elemtype": "0",
+        "elemvalue": "6QOT",
+        "eorder": "0",
+        "fillstyle": "0",
+        "isrefer": "0",
+        "pk_billcodebase": "PK_CB",
+        "pk_billcodeentity": "~",
+        "ts": "2021-09-10 19:50:19"
+    },
+    {
+        "dr": "0",
+        "elemlenth": "8",
+        "elemtype": "2",
+        "elemvalue": "billdate",
+        "eorder": "1",
+        "fillstyle": "0",
+        "isrefer": "0",
+        "pk_billcodebase": "PK_CB",
+        "pk_billcodeentity": "~",
+        "ts": "2021-09-10 19:50:19"
+    },
+    {
+        "dr": "0",
+        "elemlenth": "8",
+        "elemtype": "3",
+        "elemvalue": "nc.pub.billcode.BillCodePureDigitalSNGenerator",
+        "eorder": "2",
+        "fillstyle": "0",
+        "isrefer": "0",
+        "pk_billcodebase": "PK_CB",
+        "pk_billcodeentity": "~",
+        "ts": "2021-09-10 19:50:19"
+    }
+]

+ 14 - 0
hrkq/hrkq/script/template/60201072/billcoderule.json

@@ -0,0 +1,14 @@
+[
+    {
+        "code": "6QOT",
+        "codelenth": "40",
+        "codescope": "global",
+        "codestyle": "after",
+        "dr": "0",
+        "metaid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+        "name": "本月加班申请",
+        "orgtype": "GLOBLE00000000000000",
+        "pk_nbcr": "PK_C",
+        "ts": "2021-09-10 19:50:19"
+    }
+]

+ 28 - 0
hrkq/hrkq/script/template/60201072/billtype.json

@@ -0,0 +1,28 @@
+[
+    {
+        "billcoderule": "~",
+        "billtypename": "本月加班申请",
+        "canextendtransaction": "Y",
+        "component": "monthottime",
+        "isaccount": "Y",
+        "isapprovebill": "Y",
+        "isBizflowBill": "N",
+        "isEditableProperty": "N",
+        "isEnableButton": "N",
+        "isenabletranstypebcr": "N",
+        "islightbill": "Y",
+        "isrejectuneditableproperty": "N",
+        "isroot": "N",
+        "issupportmobile": "Y",
+        "istransaction": "N",
+        "isworkflowcanautoapprove": "N",
+        "ncbrcode": "~",
+        "nodecode": "60201072",
+        "parentbilltype": "~",
+        "pk_billtypecode": "6QOT",
+        "pk_billtypeid": "PK_B",
+        "pk_org": "GLOBLE00000000000000",
+        "systemcode": "HRKQ",
+        "webnodecode": "~"
+    }
+]

+ 68 - 0
hrkq/hrkq/script/template/60201072/busiclass.json

@@ -0,0 +1,68 @@
+[
+    {
+        "actiontype": "SAVE",
+        "classname": "N_6QOT_SAVE",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QOT",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-10 19:50:19"
+    },
+    {
+        "actiontype": "APPROVE",
+        "classname": "N_6QOT_APPROVE",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QOT",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-10 19:50:19"
+    },
+    {
+        "actiontype": "UNSAVEBILL",
+        "classname": "N_6QOT_UNSAVEBILL",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QOT",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-10 19:50:19"
+    },
+    {
+        "actiontype": "UNAPPROVE",
+        "classname": "N_6QOT_UNAPPROVE",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QOT",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-10 19:50:19"
+    },
+    {
+        "actiontype": "DELETE",
+        "classname": "N_6QOT_DELETE",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QOT",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-10 19:50:19"
+    },
+    {
+        "actiontype": "SAVEBASE",
+        "classname": "N_6QOT_SAVEBASE",
+        "dr": "0",
+        "isbefore": "N",
+        "pk_billtype": "6QOT",
+        "pk_billtypeid": "PK_B",
+        "pk_businesstype": "~",
+        "pk_group": "~",
+        "ts": "2021-09-10 19:50:19"
+    }
+]

+ 9 - 0
hrkq/hrkq/script/template/60201072/createcorp.json

@@ -0,0 +1,9 @@
+[
+    {
+        "dr": "0",
+        "funccode": "6020",
+        "isncinnermodule": "Y",
+        "pk_corp": "0001",
+        "pk_org": "0001N210000000000E4X"
+    },
+]

File diff suppressed because it is too large
+ 3919 - 0
hrkq/hrkq/script/template/60201072/formproperty.json


+ 44 - 0
hrkq/hrkq/script/template/60201072/pagetemple.json

@@ -0,0 +1,44 @@
+[
+  {
+    "appcode": "60201072",
+    "clazz": "nc.vo.hrkq.monthottime.AggMonthOtTimeVO",
+    "code": "60201072_CARD",
+    "isdefault": "N",
+    "creator": "~",
+    "ts": "2021-09-10 19:50:19",
+    "dr": 0,
+    "headcode": "card_head",
+    "metaid": "",
+    "modifier": "~",
+    "name": "本月加班申请卡片",
+    "pKFieldName": "pk_page_templet",
+    "pagecode": "60201072_CARD",
+    "parentid": "root",
+    "pk_page_templet": "PK_T01",
+    "resmodule": "",
+    "tableName": "pub_page_templet",
+    "resid": 60201072_CARD,
+    "templetdesc": ""
+  },
+  {
+    "appcode": "60201072",
+    "clazz": "nc.vo.hrkq.monthottime.AggMonthOtTimeVO",
+    "code": "60201072_LIST",
+    "isdefault": "Y",
+    "creator": "~",
+    "ts": "2021-09-10 19:50:19",
+    "dr": 0,
+    "headcode": "list_head",
+    "metaid": "",
+    "modifier": "~",
+    "name": "本月加班申请列表页面",
+    "pKFieldName": "pk_page_templet",
+    "pagecode": "60201072_LIST",
+    "parentid": "root",
+    "pk_page_templet": "PK_T02",
+    "resmodule": "",
+    "tableName": "pub_page_templet",
+    "resid": 60201072_LIST,
+    "templetdesc": ""
+  }
+]

+ 48 - 0
hrkq/hrkq/script/template/60201072/queryproperty.json

@@ -0,0 +1,48 @@
+[
+    {
+      "areaid": "PK_A01",
+      "classid": "7dea45a4-dac9-4407-926c-91bdc722b6ad",
+      "code": "otapplytype",
+      "creator": "~",
+      "datatype": "203",
+      "dataval": "按次=1,普通=2",
+      "defaultvalue": "",
+      "define1": "",
+      "define2": "",
+      "define3": "",
+      "define4": "",
+      "define5": "",
+      "disabled": "N",
+      "dr": 0,
+      "isdefined": "N",
+      "isbeyondorg": "N",
+      "ischeck": "N",
+      "isfixedcondition": "N",
+      "ismultiselectedenabled": "N",
+      "isnotmeta": "N",
+      "isquerycondition": "Y",
+      "isuse": "Y",
+          "required": "N",
+      "usefunc": "N",
+      "visible": "Y",
+      "itemtype": "select",
+      "label": "加班申请类型",
+      "maxlength": "50",
+      "metapath": "otapplytype",
+      "opersign": "=@",
+      "opersignname": "等于@",
+      "pKFieldName": "pk_query_property",
+      "pk_query_property": "PK_Q_P7",
+      "proid": "c46f5daa-96ae-48b6-a954-6e0a34ef8db4",
+      "querytablename": "",
+      "refcode": "/common-ref/",
+      "refname": "-99",
+      "resid": "",
+      "returntype": "refpk",
+      "tableName": "pub_query_property",
+      "tablecode": "",
+      "width": 1,
+      "showtype": 1
+    },
+]
+

File diff suppressed because it is too large
+ 466 - 0
hrkq/hrkq/script/template/60201072/sql001/001.sql


+ 486 - 0
hrkq/hrkq/script/template/60201072/sql002/001.sql

@@ -0,0 +1,486 @@
+INSERT INTO bd_billtype (
+        pk_billtypeid,
+        accountclass,
+        billcoderule,
+        billstyle,
+        billtypename,
+        canextendtransaction,
+        checkclassname,
+        classname,
+        comp,
+        component,
+        datafinderclz,
+        def1,
+        def2,
+        def3,
+        dr,
+        emendenumclass,
+        forwardbilltype,
+        isaccount,
+        isapprovebill,
+        isbizflowbill,
+        iseditableproperty,
+        isenablebutton,
+        isenabletranstypebcr,
+        islightbill,
+        islock,
+        isrejectuneditableproperty,
+        isroot,
+        issupportmobile,
+        istransaction,
+        isworkflowcanautoapprove,
+        ncbrcode,
+        nodecode,
+        parentbilltype,
+        pk_billtypecode,
+        pk_group,
+        pk_org,
+        referclassname,
+        systemcode,
+        transtype_class,
+        ts,
+        webnodecode,
+        wherestring
+)
+VALUES
+        (
+                '0001ZZZZ9C2F60F32738',
+                NULL,
+                '~',
+                NULL,
+                '本月加班申请',
+                'Y',
+                NULL,
+                NULL,
+                NULL,
+                'monthottime',
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                NULL,
+                'Y',
+                'Y',
+                'N',
+                'N',
+                'N',
+                'N',
+                NULL,
+                NULL,
+                NULL,
+                'N',
+                'Y',
+                'N',
+                'N',
+                '~',
+                '60201072',
+                '~',
+                '6QOT',
+                '~',
+                'GLOBLE00000000000000',
+                NULL,
+                'HRKQ',
+                NULL,
+                '2021-09-10 19:50:19',
+                '~',
+                NULL
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZC67DC4E5050E',
+                11,
+                '~',
+                '2',
+                NULL,
+                'APPROVE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                NULL,
+                '~',
+                '2021-09-10 19:50:19'
+        );
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZC20657095D37',
+                30,
+                '~',
+                '3',
+                NULL,
+                'DELETE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                NULL,
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZB5BFC84FE1E5',
+                10,
+                '~',
+                '1',
+                NULL,
+                'SAVE',
+                'N',
+                'N',
+                NULL,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                NULL,
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_billaction (
+        pk_billaction,
+        action_type,
+        actionnote,
+        actionstyle,
+        actionstyleremark,
+        actiontype,
+        constrictflag,
+        controlflag,
+        dr,
+        finishflag,
+        pk_billtype,
+        pk_billtypeid,
+        pushflag,
+        showhint,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ669921444CB1',
+                31,
+                '~',
+                '1',
+                NULL,
+                'SAVEBASE',
+                'Y',
+                'N',
+                NULL,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                NULL,
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO PUB_BILLACTION (
+        PK_BILLACTION,
+        ACTION_TYPE,
+        ACTIONNOTE,
+        ACTIONSTYLE,
+        ACTIONSTYLEREMARK,
+        ACTIONTYPE,
+        CONSTRICTFLAG,
+        CONTROLFLAG,
+        DR,
+        FINISHFLAG,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PUSHFLAG,
+        SHOWHINT,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZ82E7744DB2AD',
+                12,
+                '~',
+                '3',
+                NULL,
+                'UNAPPROVE',
+                'N',
+                'N',
+                NULL,
+                'Y',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                NULL,
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO PUB_BILLACTION (
+        PK_BILLACTION,
+        ACTION_TYPE,
+        ACTIONNOTE,
+        ACTIONSTYLE,
+        ACTIONSTYLEREMARK,
+        ACTIONTYPE,
+        CONSTRICTFLAG,
+        CONTROLFLAG,
+        DR,
+        FINISHFLAG,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PUSHFLAG,
+        SHOWHINT,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZ7B45EFDD29A3',
+                13,
+                '~',
+                '3',
+                NULL,
+                'UNSAVEBILL',
+                'N',
+                'Y',
+                NULL,
+                'Y',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                NULL,
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ4109C11E330C',
+                'SAVE',
+                'N_6QOT_SAVE',
+                0,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                '~',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ42604F9D9035',
+                'APPROVE',
+                'N_6QOT_APPROVE',
+                0,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                '~',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZF118066327A1',
+                'UNSAVEBILL',
+                'N_6QOT_UNSAVEBILL',
+                0,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                '~',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ38172B1B2238',
+                'UNAPPROVE',
+                'N_6QOT_UNAPPROVE',
+                0,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                '~',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_busiclass (
+        pk_busiclass,
+        actiontype,
+        classname,
+        dr,
+        isbefore,
+        pk_billtype,
+        pk_billtypeid,
+        pk_businesstype,
+        pk_group,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ07F05E420D32',
+                'DELETE',
+                'N_6QOT_DELETE',
+                0,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                '~',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO PUB_BUSICLASS (
+        PK_BUSICLASS,
+        ACTIONTYPE,
+        CLASSNAME,
+        DR,
+        ISBEFORE,
+        PK_BILLTYPE,
+        PK_BILLTYPEID,
+        PK_BUSINESSTYPE,
+        PK_GROUP,
+        TS
+)
+VALUES
+        (
+                '0001ZZZZE352E66DB435',
+                'SAVEBASE',
+                'N_6QOT_SAVEBASE',
+                0,
+                'N',
+                '6QOT',
+                '0001ZZZZ9C2F60F32738',
+                '~',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+go

+ 168 - 0
hrkq/hrkq/script/template/60201072/sql003/001.sql

@@ -0,0 +1,168 @@
+INSERT INTO pub_bcr_nbcr (
+        pk_nbcr,
+        code,
+        codelenth,
+        codescope,
+        codestyle,
+        comp,
+        dr,
+        metaid,
+        name,
+        orgtype,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ59B9E0027768',
+                '6QOT',
+                40,
+                'global',
+                'after',
+                NULL,
+                0,
+                '7dea45a4-dac9-4407-926c-91bdc722b6ad',
+                '本月加班申请',
+                'GLOBLE00000000000000',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_bcr_rulebase (
+        pk_billcodebase,
+        codemode,
+        codescope,
+        dataoriginflag,
+        dr,
+        format,
+        isautofill,
+        isdefault,
+        iseditable,
+        isgetpk,
+        islenvar,
+        isused,
+        nbcrcode,
+        pk_group,
+        rulecode,
+        rulename,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ1A9B1E2801DD',
+                'after',
+                'g',
+                0,
+                0,
+                'yyyyMMdd',
+                'Y',
+                'N',
+                'N',
+                'N',
+                'Y',
+                'Y',
+                '6QOT',
+                'GLOBLE00000000000000',
+                '6QOT',
+                '本月加班申请',
+                '2021-09-10 19:50:19'
+        );
+
+go
+
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ7C2FBCB7C247',
+                NULL,
+                0,
+                4,
+                0,
+                '6QOT',
+                0,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ1A9B1E2801DD',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+go
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ9A9131AEF4E3',
+                NULL,
+                0,
+                8,
+                2,
+                'billdate',
+                1,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ1A9B1E2801DD',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+go
+INSERT INTO pub_bcr_elem (
+        pk_billcodeelem,
+        dataoriginflag,
+        dr,
+        elemlenth,
+        elemtype,
+        elemvalue,
+        eorder,
+        fillsign,
+        fillstyle,
+        isrefer,
+        pk_billcodebase,
+        pk_billcodeentity,
+        ts
+)
+VALUES
+        (
+                '0001ZZZZ49C956DC77AB',
+                NULL,
+                0,
+                8,
+                3,
+                'nc.pub.billcode.BillCodePureDigitalSNGenerator',
+                2,
+                NULL,
+                0,
+                0,
+                '0001ZZZZ1A9B1E2801DD',
+                '~',
+                '2021-09-10 19:50:19'
+        );
+go

+ 100 - 0
hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOAppQueryCardAction.java

@@ -0,0 +1,100 @@
+
+package nccloud.hrkq.hrkq.monthottimevo.action;
+import java.math.BigDecimal;
+import java.util.Collection;
+
+import nc.bs.logging.Logger;
+import nc.md.model.MetaDataException;
+import nc.md.persist.framework.IMDPersistenceQueryService;
+import nc.vo.hrkq.monthottime.AggMonthOtTimeVO;
+import nc.vo.hrkq.monthottime.MonthOtTimeBVO;
+import nc.vo.pub.BusinessException;
+import nccloud.framework.core.exception.ExceptionUtils;
+import nccloud.framework.web.action.itf.ICommonAction;
+import nccloud.framework.web.container.IRequest;
+import nccloud.framework.web.container.SessionContext;
+import nccloud.framework.web.json.JsonFactory;
+import nccloud.framework.web.ui.pattern.billcard.BillCard;
+import nccloud.framework.web.ui.pattern.billcard.BillCardOperator;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.bean.PageQueryInfo;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.util.CommonUtil;
+import nccloud.web.uapbd.commons.web.ParamUtils;
+
+/**
+ * 卡片查询(查询方案)操作
+ * @version  @since v3.5.6-1903
+ */
+public class MonthOtTimeVOAppQueryCardAction implements ICommonAction {
+
+  @Override
+  public Object doAction(IRequest paramIRequest) {
+	  ParamUtils param = new ParamUtils(paramIRequest);
+	  String pk = param.getString("pk",SessionContext.getInstance().getAppcode());
+	  IMDPersistenceQueryService service = CommonUtil.getMDQueryService();
+    try {
+    	String wheresql =
+    	        "pk_monthottime" + "='" + pk + "' and dr = 0";
+    	    Collection<MonthOtTimeBVO> bbills =
+    	            service.queryBillOfVOByCond(MonthOtTimeBVO.class, wheresql, true,
+    	                false);
+    	    return bbills;
+    }
+    catch (BusinessException ex) {
+      // 处理异常信息
+      Logger.error(ex);
+      ExceptionUtils.wrapException(ex);
+    }
+    return null;
+  }
+
+  /**
+   * 获取查询参数
+   *
+   * @param paramIRequest
+   * @return
+   */
+  private PageQueryInfo getQueryParam(IRequest paramIRequest) {
+    String strRead = paramIRequest.read();
+    PageQueryInfo queryParam =
+        JsonFactory.create().fromJson(strRead, PageQueryInfo.class);
+    return queryParam;
+  }
+
+  /**
+   * 查询业务数据
+   *
+   * @param queryParam
+   * @return
+   * @throws MetaDataException
+   */
+  private Collection<AggMonthOtTimeVO> queryBills(PageQueryInfo queryParam)
+      throws MetaDataException {
+    IMDPersistenceQueryService service = CommonUtil.getMDQueryService();
+    // 注意:业务提供查询方法(元数据查询默认查询到dr=1的数据了)
+    String wheresql =
+        "pk_monthottime" + "='" + queryParam.getPk() + "'";
+    Collection<AggMonthOtTimeVO> bills =
+        service.queryBillOfVOByCond(AggMonthOtTimeVO.class, wheresql, true,
+            false);
+    
+    Collection<MonthOtTimeBVO> bbills =
+            service.queryBillOfVOByCond(MonthOtTimeBVO.class, wheresql, true,
+                false);
+    AggMonthOtTimeVO[] aggvos = bills.toArray(new AggMonthOtTimeVO[0]);
+    aggvos[0].setChildrenVO(bbills.toArray(new MonthOtTimeBVO[0]));
+    return bills;
+  }
+
+  /**
+   * VO 转换
+   *
+   * @param queryParam
+   * @param bill
+   * @return
+   */
+  private BillCard transBillCardFormVO(PageQueryInfo queryParam,
+      AggMonthOtTimeVO bill) {
+    BillCardOperator operator = new BillCardOperator(queryParam.getPagecode());
+    return operator.toCard(bill);
+  }
+}

+ 240 - 0
hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOAppQueryListAction.java

@@ -0,0 +1,240 @@
+
+package nccloud.hrkq.hrkq.monthottimevo.action;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+import nc.bs.logging.Logger;
+import nc.md.persist.framework.IMDPersistenceQueryService;
+import nc.ui.querytemplate.querytree.IQueryScheme;
+import nc.vo.hi.psndoc.PsnJobVO;
+import nc.vo.hrkq.monthottime.AggMonthOtTimeVO;
+import nc.vo.pub.BusinessException;
+import nc.vo.pubapp.pattern.pub.Constructor;
+import nccloud.base.exception.ExceptionUtils;
+import nccloud.dto.baseapp.querytree.dataformat.QueryTreeFormatVO;
+import nccloud.framework.web.action.itf.ICommonAction;
+import nccloud.framework.web.container.IRequest;
+import nccloud.framework.web.container.SessionContext;
+import nccloud.framework.web.json.JsonFactory;
+import nccloud.framework.web.querytemplet.QueryUtil4NCC;
+import nccloud.framework.web.ui.pattern.grid.Grid;
+import nccloud.framework.web.ui.pattern.grid.GridOperator;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.bean.PageQueryVO;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.util.CommonUtil;
+import nccloud.web.hrkq.common.utils.AttendDataUtil;
+import nccloud.web.uapbd.commons.web.ParamUtils;
+
+/**
+ * 列表查询(查询方案)操作
+ * @version  @since v3.5.6-1903
+ */
+public class MonthOtTimeVOAppQueryListAction implements ICommonAction {
+
+  @Override
+  public Object doAction(IRequest paramIRequest) {
+    try {
+    	ParamUtils param = new ParamUtils(paramIRequest);
+		String appCode = param.getString("appCode",SessionContext.getInstance().getAppcode());
+		String otapplytype = "1";
+    	if("606570D0".equals(appCode)) {
+			//按次
+    		otapplytype = "1";
+		}else if("606570C0".equals(appCode) || "606570E0".equals(appCode)) {
+			//普通
+			otapplytype = "2";
+		}
+      IMDPersistenceQueryService service = CommonUtil.getMDQueryService();
+      PsnJobVO psnjobVO = AttendDataUtil.queryPsnJob(null);
+      String userId = SessionContext.getInstance().getClientInfo().getUserid();
+      String pk_psndocSql = " (pk_psndoc = '"+psnjobVO.getPk_psndoc()+"' or billmaker ='"+userId+"') and otapplytype = '"+otapplytype+"' and isnull(dr,0) = 0 order by creationtime desc";
+      Collection<AggMonthOtTimeVO> bills2 =
+          service.queryBillOfVOByCond(AggMonthOtTimeVO.class, pk_psndocSql, false,
+              false);
+      AggMonthOtTimeVO[] aggvos = bills2.toArray(new AggMonthOtTimeVO[0]);
+      return bills2;
+    } catch (BusinessException ex) {
+      // 处理异常信息
+      Logger.error(ex);
+      ExceptionUtils.wrapException(ex);
+    }
+    // 转换grid信息,返回前端
+    return null;
+  }
+
+  /**
+   * 转换Grid信息
+   *
+   * @param pagevo
+   * @param pageSize
+   * @param pagecode
+   * @return
+   */
+  private Grid covert(PageQueryVO pagevo, int pageSize, String pagecode) {
+    AggMonthOtTimeVO[] bills =
+        (AggMonthOtTimeVO[]) pagevo.getCurrentPageBills();
+
+    Grid grid = null;
+    if (bills != null) {
+      int size = bills.length > pageSize ? pageSize : bills.length;
+      Object[] heads = new Object[size];
+
+      for (int i = 0; i < size; i++) {
+        heads[i] = bills[i].getParent();
+      }
+      GridOperator operator = new GridOperator(pagecode);
+      grid = operator.toGrid(heads);
+      grid.getModel().setAllpks(pagevo.getPks());
+    }
+    return grid;
+  }
+
+  /**
+   * 创建空页面信息
+   *
+   * @return
+   */
+  private PageQueryVO createNullPage() {
+    String[] ids = new String[0];
+    AggMonthOtTimeVO[] bills =
+        Constructor.construct(AggMonthOtTimeVO.class, 0);
+    PageQueryVO page = new PageQueryVO(ids, bills);
+    return page;
+  }
+
+  /**
+   * 设置默认页面
+   *
+   * @param info
+   * @param aggvos
+   * @return
+   */
+  private AggMonthOtTimeVO[] getDefaulePageBill(QueryTreeFormatVO info,
+      AggMonthOtTimeVO... aggvos) {
+    String pageSizeStr = info.getPageInfo().getPageSize();
+    int pageSize = 10;
+    if ((pageSizeStr != null) && (pageSizeStr.length() > 0)) {
+      pageSize = Integer.parseInt(pageSizeStr);
+    }
+    info.getPageInfo().setPageIndex("0");
+    List<AggMonthOtTimeVO> billLst = new ArrayList<AggMonthOtTimeVO>();
+    for (int i = 0; (i < aggvos.length) && (i < pageSize); i++) {
+      AggMonthOtTimeVO bill = new AggMonthOtTimeVO();
+
+      bill.setParent(aggvos[i].getParent());
+      billLst.add(bill);
+    }
+    return billLst.toArray(new AggMonthOtTimeVO[0]);
+  }
+
+  /**
+   * 获取主键信息
+   *
+   * @param aggvos
+   * @return
+   */
+  private String[] getPks(AggMonthOtTimeVO... aggvos) {
+    List<String> pks = new ArrayList<String>();
+    for (AggMonthOtTimeVO bill : aggvos) {
+      pks.add(bill.getPrimaryKey());
+    }
+    return pks.toArray(new String[0]);
+  }
+
+  /**
+   * 获取查询参数
+   *
+   * @param paramIRequest
+   * @return
+   */
+  private QueryTreeFormatVO getQueryParam(IRequest paramIRequest) {
+    String strRead = paramIRequest.read();
+    QueryTreeFormatVO queryParam =
+        JsonFactory.create().fromJson(strRead, QueryTreeFormatVO.class);
+    return queryParam;
+  }
+
+  /**
+   * 获取查询方案
+   *
+   * @param queryParam
+   * @return
+   */
+  private IQueryScheme getScheme(QueryTreeFormatVO queryParam) {
+    QueryUtil4NCC queryutil = new QueryUtil4NCC(queryParam);
+    IQueryScheme scheme = queryutil.convertCondition();
+    return scheme;
+  }
+
+  /**
+   * 总页数
+   *
+   * @param pageInfo
+   * @param length
+   * @return
+   */
+  private int getTotalPage(nccloud.framework.web.ui.model.PageInfo pageInfo,
+      int length) {
+    int size = pageInfo.getPageSize();
+    int total = 0;
+    if ((length % size) == 0) {
+      total = length / size;
+    }
+    else {
+      total = (length / size) + 1;
+    }
+    return total;
+  }
+
+  /**
+   * 页面设置
+   *
+   * @param retObj
+   * @param pagevo
+   * @param pageSize
+   * @param pageIndex
+   * @return
+   */
+  private Object pageSet(Object retObj, PageQueryVO pagevo, int pageSize,
+      int pageIndex) {
+    Grid grid = null;
+    if ((retObj instanceof Grid)) {
+      grid = (Grid) retObj;
+    }
+
+    nccloud.framework.web.ui.model.PageInfo pageInfo =
+        new nccloud.framework.web.ui.model.PageInfo();
+    pageInfo.setTotal(pagevo.getPks().length);
+    pageInfo.setPageSize(pageSize);
+    pageInfo.setPageIndex(pageIndex);
+    pageInfo.setTotalPage(this.getTotalPage(pageInfo, pagevo.getPks().length));
+
+    grid.getModel().setPageinfo(pageInfo);
+    return grid;
+  }
+
+  /**
+   * page信息转前端需要的grid模型
+   *
+   * @param pagevo
+   * @param info
+   * @param pagecode
+   * @return
+   */
+  private Object transPageInfoToGrid(PageQueryVO pagevo,
+      QueryTreeFormatVO info, String pagecode) {
+    Object grid = null;
+    int pageSize = Integer.parseInt(info.getPageInfo().getPageSize());
+    int pageIndex = Integer.parseInt(info.getPageInfo().getPageIndex());
+    if (pagevo != null) {
+      if (pagevo.getCurrentPageBills().length == 0) {
+        return null;
+      }
+      grid = this.covert(pagevo, pageSize, pagecode);
+
+      grid = this.pageSet(grid, pagevo, pageSize, pageIndex);
+    }
+    return grid;
+  }
+}

+ 190 - 0
hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOCheckSaveAction.java

@@ -0,0 +1,190 @@
+package nccloud.hrkq.hrkq.monthottimevo.action;
+
+import java.text.SimpleDateFormat;
+import java.util.List;
+import java.util.Map;
+
+import nc.bs.logging.Logger;
+import nc.vo.hi.psndoc.PsnJobVO;
+import nc.vo.hrkq.monthottime.AggMonthOtTimeVO;
+import nc.vo.hrkq.monthottime.MonthOtTimeBVO;
+import nc.vo.hrkq.monthottime.MonthOtTimeVO;
+import nc.vo.pub.BusinessException;
+import nc.vo.pub.lang.UFDate;
+import nc.vo.pub.lang.UFDateTime;
+import nc.vo.pub.lang.UFDouble;
+import nccloud.framework.core.exception.ExceptionUtils;
+import nccloud.framework.core.json.IJson;
+import nccloud.framework.service.ServiceLocator;
+import nccloud.framework.web.action.itf.ICommonAction;
+import nccloud.framework.web.container.IRequest;
+import nccloud.framework.web.container.SessionContext;
+import nccloud.framework.web.json.JsonFactory;
+import nccloud.framework.web.ui.pattern.billcard.BillCardOperator;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.util.CommonUtil;
+import nccloud.itf.hrkq.hrkq.IMonthottimevoMaintain;
+import nccloud.vo.hrkq.hrkq.MonthOtTimeVOConst;
+import nccloud.web.hr.pub.HRNccTemplateUtils;
+import nccloud.web.hrkq.common.utils.AttendDataUtil;
+import nccloud.web.uapbd.commons.web.ParamUtils;
+
+public class MonthOtTimeVOCheckSaveAction implements ICommonAction {
+
+	@Override
+	public Object doAction(IRequest request) {
+		ParamUtils param = new ParamUtils(request);
+		Object obj = param.get("formData");
+		IJson json = JsonFactory.create();
+		MonthOtTimeBVO[] bvos = HRNccTemplateUtils.getVOFromGrid(MonthOtTimeBVO.class, json.toJson(obj));
+		String appCode = param.getString("appCode",SessionContext.getInstance().getAppcode());
+		String userid = SessionContext.getInstance().getClientInfo().getUserid();
+		PsnJobVO psnJob = AttendDataUtil.queryPsnJob(null);
+		MonthOtTimeVO vo = new MonthOtTimeVO();
+		BillCardOperator billCardOperator = new BillCardOperator();
+		String otapplytype = "";
+		if("606570D0".equals(appCode)) {
+			//按次
+//			vo.setAttributeValue("otapplytype", "1");
+			otapplytype = "1";
+		}else if("606570C0".equals(appCode) || "606570E0".equals(appCode)) {
+			//普通
+//			vo.setAttributeValue("otapplytype", "2");
+			otapplytype = "2";
+		}
+		AggMonthOtTimeVO aggVO = new AggMonthOtTimeVO();
+		aggVO.setParentVO(vo);
+		for(MonthOtTimeBVO bvo : bvos) {
+			if(bvo.getAttributeValue("otdate") != null) {
+				bvo.setAttributeValue("otdate",new UFDateTime(bvo.getAttributeValue("otdate").toString()).getDate());
+			}
+			if(bvo.getAttributeValue("overtimebegintime") != null) {
+				bvo.setAttributeValue("otdate",new UFDateTime(bvo.getAttributeValue("overtimebegintime").toString()).getDate());
+			}
+		}
+		
+		String parentPk = vo.getPrimaryKey();
+		PsnJobVO psnjobVO = AttendDataUtil.queryPsnJob(null);
+		nc.vo.hrkq.monthottime.MonthOtTimeVO parent = aggVO.getParentVO();
+	    parent.setAttributeValue(MonthOtTimeVO.PK_PSNDOC,psnjobVO.getPk_psndoc());
+	    parent.setAttributeValue(MonthOtTimeVO.PK_DEPT,psnjobVO.getPk_dept());
+	    parent.setAttributeValue(MonthOtTimeVO.PK_ORG,psnjobVO.getPk_org());
+	    parent.setAttributeValue(MonthOtTimeVO.APPLYDATE,new UFDate());
+	    parent.setAttributeValue(MonthOtTimeVO.BILLTYPE,MonthOtTimeVOConst.CONST_BILLTYPE_COST);
+	    parent.setAttributeValue(MonthOtTimeVO.APPROVESTATUS, -1);
+		String pk_psndoc = (String) parent.getAttributeValue(MonthOtTimeVO.PK_PSNDOC);
+		String result = "";
+		try {
+		    if(bvos != null && bvos.length > 0) {
+		    	//加班类型,1为按次ottimestype,2为普通otdatetype
+		    	IMonthottimevoMaintain service = ServiceLocator.find(IMonthottimevoMaintain.class);
+		    	List<Map<String, UFDate>> listMap = service.queryHoliday(pk_psndoc, psnjobVO.getPk_org());
+		    	List<String> defdocList = service.queryDefdoc();//查询节假日类型主键
+		    	String msg = "";
+		    	String msg2 = "";
+		    	for(MonthOtTimeBVO bvo : bvos) {
+		    		if(bvo.getAttributeValue(MonthOtTimeBVO.OTDATE) == null) {
+		    			continue;
+		    		}
+		    		UFDate otdate = new UFDate(bvo.getAttributeValue(MonthOtTimeBVO.OTDATE).toString());//加班日期是否为节假日
+		    		String type = "";
+		    		if("1".equals(otapplytype)) {//按次
+		    			type = (String) bvo.getAttributeValue(MonthOtTimeBVO.OTTIMESTYPE);
+		    		}else if("2".equals(otapplytype)) {//普通
+		    			type = (String) bvo.getAttributeValue(MonthOtTimeBVO.OTDATETYPE);
+		    		}
+		    		if(this.checkDate(otdate, listMap)) {
+		    			if(type.length() > 0 && !defdocList.contains(type)) {
+		    				msg = "["+otdate.toString().substring(0,10)+"],";
+		    			}
+		    		} else {
+		    			if(type.length() > 0 && defdocList.contains(type)) {
+		    				msg2 = "["+otdate.toString().substring(0,10)+"],";
+		    			}
+		    		}
+		    	}
+		    	if(msg.length() > 0 && msg2.length() > 0) {
+		    		result = "加班日期"+msg+"属于节假日加班,加班日期"+msg2+"不属于节假日加班,请选择正确的加班类型";
+		    	}else if(msg.length() > 0) {
+		    		result = "加班日期"+msg+"属于节假日加班,请选择正确的加班类型";
+		    	}else if(msg2.length() > 0) {
+		    		result = "加班日期"+msg2+"不属于节假日加班,请选择正确的加班类型";
+		    	}
+		    }
+		    doBeforeCheck(aggVO);
+		    String dateCheckMsg = CommonUtil.checkSelf(bvos);
+		    if(dateCheckMsg != null) {
+		    	throw new BusinessException("加班时间范围内存在冲突的加班单据");
+		    }
+		    
+		    List<MonthOtTimeBVO> oldBvos = CommonUtil.getMaintainService().queryBVOByPkPsndoc(pk_psndoc);
+		    if(oldBvos != null && oldBvos.size() > 0) {
+			    String dateTwoCheckMsg = CommonUtil.checkTwoList(bvos,oldBvos.toArray(new MonthOtTimeBVO[0]));
+			    if(dateTwoCheckMsg != null) {
+			    	throw new BusinessException("加班时间范围内存在冲突的加班单据");
+			    }
+		    }
+		}catch (BusinessException ex) {
+			Logger.error(ex.getMessage(), ex);
+			ExceptionUtils.wrapException(ex);
+			return ex.getMessage();
+		}
+		return result;
+	}
+
+	private void doBeforeCheck(AggMonthOtTimeVO aggvo) throws BusinessException {
+		  String msg = "";
+		  IMonthottimevoMaintain service = CommonUtil.getMaintainService();
+		  Boolean checkFlag = Boolean.FALSE;
+		  MonthOtTimeVO vo = aggvo.getParentVO();
+		  String otapplytype = (String) vo.getAttributeValue(MonthOtTimeVO.OTAPPLYTYPE);
+		  if("1".equals(otapplytype)) {
+		  }else {
+			  String pk_psndoc = (String) vo.getAttributeValue(MonthOtTimeVO.PK_PSNDOC);
+			  Map<String, UFDouble> map = service.queryMonth(pk_psndoc);
+			  UFDouble totalHours = UFDouble.ZERO_DBL;
+			  MonthOtTimeBVO[] bvos = (MonthOtTimeBVO[]) aggvo.getChildrenVO();
+			  for(MonthOtTimeBVO bvo : bvos) {
+				  UFDate otdate = (UFDate) bvo.getAttributeValue(MonthOtTimeBVO.OTDATE);
+				  String monthday = dateToStr(otdate);
+				  UFDouble hours = map.get(monthday) == null ? UFDouble.ZERO_DBL : map.get(monthday);
+				  totalHours = hours.add(bvo.getOthours());
+				  if(totalHours.toDouble() > 36) {
+					  checkFlag = Boolean.TRUE;
+				  }
+			  }
+			  if(checkFlag) {
+				  throw new BusinessException("本月加班时长超过36小时,不允许发起申请");
+			  }
+		  }
+	  }
+	
+	public String DATE_FORMAT_Y_M_DHM = "yyyy-MM";
+	public String dateToStr(UFDate date) {
+	    String strDate = "";
+	    SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_Y_M_DHM);
+	    strDate = sdf.format(date.toDate());
+	    return strDate;
+	}
+	
+	/**
+     * 判断日期是否符合节假日时间
+     * @param otdate
+     * @param listMap
+     * @return
+     */
+    private Boolean checkDate(UFDate otdate,List<Map<String, UFDate>> listMap) {
+  	  Boolean check = Boolean.FALSE;
+  	  if(listMap != null) {
+  			for(Map<String, UFDate> map : listMap) {
+  				UFDate begindate = map.get("begintime");
+  				UFDate enddate = map.get("endtime");
+  				if(otdate.compareTo(begindate) >= 0 && otdate.compareTo(enddate) <= 0) {
+  					check = Boolean.TRUE;
+  					break;
+  				}
+  			}
+  		}
+  	  
+  	  return check;
+    }
+}

+ 292 - 0
hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOCommitAction.java

@@ -0,0 +1,292 @@
+package nccloud.hrkq.hrkq.monthottimevo.action;
+
+import java.text.SimpleDateFormat;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.Map;
+
+import nc.bs.logging.Logger;
+import nc.md.persist.framework.IMDPersistenceQueryService;
+import nc.vo.hrkq.monthottime.AggMonthOtTimeVO;
+import nc.vo.hrkq.monthottime.MonthOtTimeBVO;
+import nc.vo.hrkq.monthottime.MonthOtTimeVO;
+import nc.vo.pf.change.PfUtilBaseTools;
+import nc.vo.pf.pub.util.SQLUtil;
+import nc.vo.pub.BusinessException;
+import nc.vo.pub.lang.UFDate;
+import nc.vo.pub.lang.UFDateTime;
+import nc.vo.pub.lang.UFDouble;
+import nc.vo.pubapp.pattern.model.entity.bill.AbstractBill;
+import nc.vo.uap.pf.PfProcessBatchRetObject;
+import nccloud.framework.core.exception.ExceptionUtils;
+import nccloud.framework.core.json.IJson;
+import nccloud.framework.web.action.itf.ICommonAction;
+import nccloud.framework.web.container.IRequest;
+import nccloud.framework.web.json.JsonFactory;
+import nccloud.framework.web.ui.pattern.billcard.BillCard;
+import nccloud.framework.web.ui.pattern.billcard.BillCardOperator;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.util.CommonUtil;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.util.NccBillOperatorParam;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.util.NccCommitReturnInfo;
+import nccloud.itf.hrkq.hrkq.IMonthottimevoMaintain;
+import nccloud.pubitf.riart.pflow.CloudPFlowContext;
+import nccloud.pubitf.riart.pflow.ICloudScriptPFlowService;
+import nccloud.vo.hrkq.hrkq.MonthOtTimeVOConst;
+import nccloud.web.workflow.approve.util.NCCFlowUtils;
+
+public class MonthOtTimeVOCommitAction implements ICommonAction{
+
+	@Override
+	  public Object doAction(IRequest request) {
+	    // 获取前端请求参数
+	    NccBillOperatorParam operaParam = this.getRequestParam(request);
+	    Object result = null;
+	    try {
+	      // 根据pk查询待操作单据
+	    	AggMonthOtTimeVO[] operaVOs = this.queryBillsByPks(operaParam);
+	      // ts赋值
+	      CommonUtil.setBillsTs(operaParam.getPkMapTs(), operaVOs);
+	      
+	      doBefore(operaVOs);
+	      
+	      // 对查询结果执行具体业务处理
+	      Object resultVOs = this.commit(operaVOs, operaParam.getUserObj());
+	      // 卡片页面需要返回操作后的数据到前端,列表界面操作后,前端重新调用列表查询请求,无需返回操作后数据,所以此处按照卡片处理返回结果
+	      result = this.buildFontResult(operaParam, resultVOs);
+	    }
+	    catch (BusinessException ex) {
+	      Logger.error(ex.getMessage(), ex);
+	      ExceptionUtils.wrapException(ex);
+	    }
+	    return result;
+	  }
+	
+	  private void doBefore(AggMonthOtTimeVO[] aggvos) throws BusinessException {
+		  String msg = "";
+		  IMonthottimevoMaintain service = CommonUtil.getMaintainService();
+		  Boolean checkFlag = Boolean.FALSE;
+		  for(AggMonthOtTimeVO aggvo : aggvos) {
+			  MonthOtTimeVO vo = aggvo.getParentVO();
+			  String otapplytype = (String) vo.getAttributeValue(MonthOtTimeVO.OTAPPLYTYPE);
+			  if("1".equals(otapplytype)) {
+				  continue;
+			  }
+			  String pk_psndoc = (String) vo.getAttributeValue(MonthOtTimeVO.PK_PSNDOC);
+			  Map<String, UFDouble> map = service.queryMonth(pk_psndoc);
+			  UFDouble totalHours = UFDouble.ZERO_DBL;
+			  MonthOtTimeBVO[] bvos = (MonthOtTimeBVO[]) aggvo.getChildrenVO();
+			  for(MonthOtTimeBVO bvo : bvos) {
+				  UFDate otdate = (UFDate) bvo.getAttributeValue(MonthOtTimeBVO.OTDATE);
+				  String monthday = dateToStr(otdate);
+				  UFDouble hours = map == null || map.size() == 0 || map.get(monthday) == null ? UFDouble.ZERO_DBL : map.get(monthday);
+				  totalHours = hours.add(new UFDouble(bvo.getAttributeValue(MonthOtTimeBVO.OTHOURS).toString()));
+				  if(totalHours.toDouble() > 36) {
+					  checkFlag = Boolean.TRUE;
+				  } else {
+					  map.put(monthday, totalHours);
+				  }
+			  }
+		  }
+		  if(checkFlag) {
+			  throw new BusinessException("本月加班时长超过36小时,不允许发起申请");
+		  }
+	  }
+	  
+	  public String DATE_FORMAT_Y_M_DHM = "yyyy-MM";
+	  public String dateToStr(UFDate date) {
+	      String strDate = "";
+	      SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_Y_M_DHM);
+	      strDate = sdf.format(date.toDate());
+	      return strDate;
+	  }
+
+	  protected Object buildFontResult(NccBillOperatorParam operaParam,
+	      Object result) {
+	    // 指派处理
+	    if (result instanceof NccCommitReturnInfo) {
+	      NccCommitReturnInfo returnvo = (NccCommitReturnInfo) result;
+	      return returnvo.getReturnMsg();
+	    }
+
+	    AbstractBill[] resultVOs = (AbstractBill[]) result;
+	    if (resultVOs.length == 1) {
+	      BillCardOperator billCardOperator =
+	          new BillCardOperator(operaParam.getPageCode());
+	      BillCard card = billCardOperator.toCard(resultVOs[0]);
+	      return card;
+	    }
+
+	    return null;
+	  }
+
+	  protected Object callActionScript(AggMonthOtTimeVO[] aggVOs,
+	      Object content) throws BusinessException {
+
+	    String actionCode = this.getActionCode();
+	    String billType = MonthOtTimeVOConst.CONST_BILLTYPE_COST;
+
+	    CloudPFlowContext context = new CloudPFlowContext();
+	    context.setActionName(actionCode);
+	    context.setBillType(billType);
+	    context.setBillVos(aggVOs);
+	    // 指派信息不为空,则添加指派信息
+	    if (content != null) {
+	      Map<Object, Object> contentParam = new HashMap<>();
+	      contentParam.put("content", content);
+	      context.seteParam(contentParam);
+	    }
+
+	    Logger.debug("开始调用动作脚本 ActionName[" + actionCode + "] BillType[" + billType
+	        + "]...");
+	    ICloudScriptPFlowService service = CommonUtil.getCPFlowService();
+	    Object[] result = service.exeScriptPFlow(context);
+
+	    if ((result == null) || (result.length == 0) || (result[0] == null)) {
+	      return null;
+	    }
+
+	    // begin 单提交指派功能
+	    if (result[0] instanceof Map) {
+	      Map map = (Map) result[0];
+	      String type = String.valueOf(map.get(PfUtilBaseTools.PARAM_WORKFLOWTYPE));
+	      if (PfUtilBaseTools.PARAM_APPROVEFLOW.equals(type)
+	          || PfUtilBaseTools.PARAM_WORKFLOW.equals(type)) {
+	        NccCommitReturnInfo returnInfo = new NccCommitReturnInfo();
+	        returnInfo.setReturnMsg(map);
+	        return returnInfo;
+	      }
+	    }
+	    // end 单提交指派功能
+
+	    // 多提交异常
+	    if (result[0] instanceof PfProcessBatchRetObject) {
+	      PfProcessBatchRetObject batchRetObject =
+	          (PfProcessBatchRetObject) result[0];
+	      String errMsg = batchRetObject.getExceptionMsg();
+	      if ((errMsg != null) && !"".equals(errMsg)) {
+	        ExceptionUtils.wrapBusinessException(errMsg);
+	      }
+	      return batchRetObject.getRetObj();
+	    }
+
+	    Logger.debug(
+	        "调用动作脚本 ActionName[" + actionCode + "] BillType[" + billType + "]结束");
+	    return result;
+	  }
+
+	  /**
+	   * 提交即审批
+	   *
+	   * @param aggVO
+	   * @return
+	   * @throws BusinessException
+	   */
+	  protected Object callAutoApproveActionScript(AggMonthOtTimeVO[] aggVOs)
+	      throws BusinessException {
+
+	    String actionCode = this.getActionCode();
+	    String billType = MonthOtTimeVOConst.CONST_BILLTYPE_COST;
+	    Map<Object, Object> extParam = new HashMap<Object, Object>();
+	    extParam.put("IS_RELOADBILL", true);
+
+	    // 调用提交即审批接口
+	    CloudPFlowContext context = new CloudPFlowContext();
+	    context.seteParam(extParam);
+	    context.setActionName(actionCode);
+	    context.setBillType(billType);
+	    context.setBillVos(aggVOs);
+
+	    Logger.debug("开始调用动作脚本 ActionName[" + actionCode + "] BillType[" + billType
+	        + "]...");
+	    ICloudScriptPFlowService service = CommonUtil.getCPFlowService();
+	    Object[] result = service.exeScriptPFlow_CommitNoFlowBatch(context);
+
+	    if ((result == null) || (result.length == 0) || (result[0] == null)) {
+	      return null;
+	    }
+	    if (result[0] instanceof PfProcessBatchRetObject) {
+	      PfProcessBatchRetObject batchRetObject =
+	          (PfProcessBatchRetObject) result[0];
+	      String errMsg = batchRetObject.getExceptionMsg();
+	      // 没有异常信息则表明执行成功
+	      if ((errMsg != null) && !"".equals(errMsg)) {
+	        ExceptionUtils.wrapBusinessException(errMsg);
+	      }
+	      return batchRetObject.getRetObj();
+	    }
+	    Logger.debug(
+	        "调用动作脚本 ActionName[" + actionCode + "] BillType[" + billType + "]结束");
+	    return result;
+	  }
+
+	  /**
+	   * 提交指派处理
+	   *
+	   * @param commitVOs
+	   * @param userobj 指派信息
+	   * @return
+	   * @throws BusinessException
+	   */
+	  protected Object commit(AggMonthOtTimeVO[] commitVOs, Object userobj)
+	      throws BusinessException {
+	    Object result = null;
+	    // 判断是否定义审批流
+	    boolean hasFlow = NCCFlowUtils.hasApproveflowDef(
+	    		MonthOtTimeVOConst.CONST_BILLTYPE_COST, commitVOs[0]);
+	    // 有,则走提交动作脚本
+	    if (hasFlow) {
+	      result = this.callActionScript(commitVOs, userobj);
+	    }
+	    // 没有,则提交即审批
+	    else {
+	      result = this.callAutoApproveActionScript(commitVOs);
+	    }
+	    return result;
+	  }
+
+	  /**
+	   * 动作编码
+	   *
+	   * @return
+	   */
+	  protected String getActionCode() {
+	    return MonthOtTimeVOConst.CONST_ACTION_SAVE;
+	  }
+
+	  protected NccBillOperatorParam getRequestParam(IRequest request) {
+	    // 解析request
+	    String str = request.read();
+	    IJson json = JsonFactory.create();
+	    NccBillOperatorParam operaParam = json.fromJson(str, NccBillOperatorParam.class);
+	    return operaParam;
+	  }
+
+	  protected AggMonthOtTimeVO[] queryBillsByPks(NccBillOperatorParam operaParam)
+	      throws BusinessException {
+		  AggMonthOtTimeVO[] vos = null;
+	    String[] pks = operaParam.getPks();
+	    if (pks.length != 0) {
+	      // 根据参数查询结果
+	      IMDPersistenceQueryService service =
+	          CommonUtil.getMDQueryService();
+	      String wheresql = SQLUtil
+	          .buildSqlForIn(MonthOtTimeVOConst.CONST_PARENT_PRIMARYKEY, pks);
+	      Collection<AggMonthOtTimeVO> bills = service.queryBillOfVOByCond(
+	    		  AggMonthOtTimeVO.class, wheresql, true, false);
+	      if ((bills == null) || (bills.size() != pks.length)) {
+	        ExceptionUtils.wrapBusinessException("单据已被修改,请刷新页面后重试");
+	      }
+	      
+	      AggMonthOtTimeVO[] aggvos = bills.toArray(new AggMonthOtTimeVO[0]);
+	      for(AggMonthOtTimeVO aggvo : aggvos) {
+	      	 Collection<MonthOtTimeBVO> bbills =
+	      	            service.queryBillOfVOByCond(MonthOtTimeBVO.class, "pk_monthottime ='"+aggvo.getParentVO().getAttributeValue("pk_monthottime")+"'", true,
+	      	                false);
+	      	 aggvo.setChildrenVO(bbills.toArray(new MonthOtTimeBVO[0]));
+	      }
+	      vos = bills.toArray(new AggMonthOtTimeVO[0]);
+	    }
+	    return vos;
+	  }
+
+}

+ 433 - 0
hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOCommonSaveAction.java

@@ -0,0 +1,433 @@
+package nccloud.hrkq.hrkq.monthottimevo.action;
+
+import java.text.SimpleDateFormat;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import nc.bs.logging.Logger;
+import nc.vo.bd.defdoc.DefdocVO;
+import nc.vo.hi.psndoc.PsnJobVO;
+import nc.vo.hrkq.monthottime.AggMonthOtTimeVO;
+import nc.vo.hrkq.monthottime.MonthOtTimeBVO;
+import nc.vo.hrkq.monthottime.MonthOtTimeVO;
+import nc.vo.pf.change.PfUtilBaseTools;
+import nc.vo.pub.BusinessException;
+import nc.vo.pub.CircularlyAccessibleValueObject;
+import nc.vo.pub.lang.UFDate;
+import nc.vo.pub.lang.UFDateTime;
+import nc.vo.pub.lang.UFDouble;
+import nc.vo.uap.pf.PfProcessBatchRetObject;
+import nccloud.framework.core.exception.ExceptionUtils;
+import nccloud.framework.core.json.IJson;
+import nccloud.framework.service.ServiceLocator;
+import nccloud.framework.web.action.itf.ICommonAction;
+import nccloud.framework.web.container.IRequest;
+import nccloud.framework.web.container.SessionContext;
+import nccloud.framework.web.json.JsonFactory;
+import nccloud.framework.web.ui.pattern.billcard.BillCardOperator;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.util.CommonUtil;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.util.NccBillOperatorParam;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.util.NccCommitReturnInfo;
+import nccloud.itf.hrkq.hrkq.IMonthottimevoMaintain;
+import nccloud.pubitf.riart.pflow.CloudPFlowContext;
+import nccloud.pubitf.riart.pflow.ICloudScriptPFlowService;
+import nccloud.vo.hrkq.hrkq.MonthOtTimeVOConst;
+import nccloud.web.hr.pub.HRNccTemplateUtils;
+import nccloud.web.hrkq.common.utils.AttendDataUtil;
+import nccloud.web.uapbd.commons.web.ParamUtils;
+import nccloud.web.workflow.approve.util.NCCFlowUtils;
+
+public class MonthOtTimeVOCommonSaveAction implements ICommonAction {
+
+	@Override
+	public Object doAction(IRequest request) {
+		ParamUtils param = new ParamUtils(request);
+		Object obj = param.get("formData");
+		IJson json = JsonFactory.create();
+		MonthOtTimeBVO[] bvos = HRNccTemplateUtils.getVOFromGrid(MonthOtTimeBVO.class, json.toJson(obj));
+		String appCode = param.getString("appCode",SessionContext.getInstance().getAppcode());
+		String userid = SessionContext.getInstance().getClientInfo().getUserid();
+		PsnJobVO psnJob = AttendDataUtil.queryPsnJob(null);
+		MonthOtTimeVO vo = new MonthOtTimeVO();
+		try {
+			BillCardOperator billCardOperator = new BillCardOperator();
+			setValue(vo,psnJob,appCode);
+			AggMonthOtTimeVO aggVO = new AggMonthOtTimeVO();
+			aggVO.setParentVO(vo);
+			for(MonthOtTimeBVO bvo : bvos) {
+				if(bvo.getAttributeValue("otdate") != null) {
+					bvo.setAttributeValue("otdate",new UFDateTime(bvo.getAttributeValue("otdate").toString()).getDate());
+				}
+				if(bvo.getAttributeValue("overtimebegintime") != null) {
+					bvo.setAttributeValue("otdate",new UFDateTime(bvo.getAttributeValue("overtimebegintime").toString()).getDate());
+				}
+			}
+			
+			aggVO.setChildrenVO(bvos);
+			//添加校验功能
+			doBefore(aggVO);
+			
+			// 2、调用单据的保存动作脚本(savebase),得到保存后结果
+		    AggMonthOtTimeVO rtnObj = this.callActionScript(aggVO);
+		    // 获取前端请求参数
+		    NccBillOperatorParam operaParam = this.getRequestParam(request);
+		    Object resultVOs = this.commit(new AggMonthOtTimeVO[] {rtnObj}, operaParam.getUserObj());
+		    // 3、处理返回结果(包含功能:根据模板转换前端BillCard,参照翻译,显示公式处理)
+//		    Object billcard = billCardOperator.toCard(rtnObj);
+		    // 4、返回结果到前端
+		    return resultVOs;
+		}catch (BusinessException ex) {
+			Logger.error(ex.getMessage(), ex);
+			ExceptionUtils.wrapException(ex);
+			return ex.getMessage();
+		}
+	}
+	
+	protected NccBillOperatorParam getRequestParam(IRequest request) {
+	    // 解析request
+	    String str = request.read();
+	    IJson json = JsonFactory.create();
+	    NccBillOperatorParam operaParam = json.fromJson(str, NccBillOperatorParam.class);
+	    return operaParam;
+	  }
+	
+	/**
+	   * 提交指派处理
+	   *
+	   * @param commitVOs
+	   * @param userobj 指派信息
+	   * @return
+	   * @throws BusinessException
+	   */
+	  protected Object commit(AggMonthOtTimeVO[] commitVOs, Object userobj)
+	      throws BusinessException {
+	    Object result = null;
+	    // 判断是否定义审批流
+	    boolean hasFlow = NCCFlowUtils.hasApproveflowDef(
+	    		MonthOtTimeVOConst.CONST_BILLTYPE_COST, commitVOs[0]);
+	    // 有,则走提交动作脚本
+	    if (hasFlow) {
+	      result = this.callActionScript(commitVOs, userobj);
+	    }
+	    // 没有,则提交即审批
+	    else {
+	      result = this.callAutoApproveActionScript(commitVOs);
+	    }
+	    return result;
+	  }
+	  
+	  protected Object callActionScript(AggMonthOtTimeVO[] aggVOs,
+		      Object content) throws BusinessException {
+
+		    String actionCode = MonthOtTimeVOConst.CONST_ACTION_SAVE;
+		    String billType = MonthOtTimeVOConst.CONST_BILLTYPE_COST;
+
+		    CloudPFlowContext context = new CloudPFlowContext();
+		    context.setActionName(actionCode);
+		    context.setBillType(billType);
+		    context.setBillVos(aggVOs);
+		    // 指派信息不为空,则添加指派信息
+		    if (content != null) {
+		      Map<Object, Object> contentParam = new HashMap<>();
+		      contentParam.put("content", content);
+		      context.seteParam(contentParam);
+		    }
+
+		    Logger.debug("开始调用动作脚本 ActionName[" + actionCode + "] BillType[" + billType
+		        + "]...");
+		    ICloudScriptPFlowService service = CommonUtil.getCPFlowService();
+		    Object[] result = service.exeScriptPFlow(context);
+
+		    if ((result == null) || (result.length == 0) || (result[0] == null)) {
+		      return null;
+		    }
+
+		    // begin 单提交指派功能
+		    if (result[0] instanceof Map) {
+		      Map map = (Map) result[0];
+		      String type = String.valueOf(map.get(PfUtilBaseTools.PARAM_WORKFLOWTYPE));
+		      if (PfUtilBaseTools.PARAM_APPROVEFLOW.equals(type)
+		          || PfUtilBaseTools.PARAM_WORKFLOW.equals(type)) {
+		        NccCommitReturnInfo returnInfo = new NccCommitReturnInfo();
+		        returnInfo.setReturnMsg(map);
+		        return returnInfo;
+		      }
+		    }
+		    // end 单提交指派功能
+
+		    // 多提交异常
+		    if (result[0] instanceof PfProcessBatchRetObject) {
+		      PfProcessBatchRetObject batchRetObject =
+		          (PfProcessBatchRetObject) result[0];
+		      String errMsg = batchRetObject.getExceptionMsg();
+		      if ((errMsg != null) && !"".equals(errMsg)) {
+		        ExceptionUtils.wrapBusinessException(errMsg);
+		      }
+		      return batchRetObject.getRetObj();
+		    }
+
+		    Logger.debug(
+		        "调用动作脚本 ActionName[" + actionCode + "] BillType[" + billType + "]结束");
+		    return result;
+		  }
+
+		  /**
+		   * 提交即审批
+		   *
+		   * @param aggVO
+		   * @return
+		   * @throws BusinessException
+		   */
+		  protected Object callAutoApproveActionScript(AggMonthOtTimeVO[] aggVOs)
+		      throws BusinessException {
+
+		    String actionCode = this.getActionCode();
+		    String billType = MonthOtTimeVOConst.CONST_BILLTYPE_COST;
+		    Map<Object, Object> extParam = new HashMap<Object, Object>();
+		    extParam.put("IS_RELOADBILL", true);
+
+		    // 调用提交即审批接口
+		    CloudPFlowContext context = new CloudPFlowContext();
+		    context.seteParam(extParam);
+		    context.setActionName(actionCode);
+		    context.setBillType(billType);
+		    context.setBillVos(aggVOs);
+
+		    Logger.debug("开始调用动作脚本 ActionName[" + actionCode + "] BillType[" + billType
+		        + "]...");
+		    ICloudScriptPFlowService service = CommonUtil.getCPFlowService();
+		    Object[] result = service.exeScriptPFlow_CommitNoFlowBatch(context);
+
+		    if ((result == null) || (result.length == 0) || (result[0] == null)) {
+		      return null;
+		    }
+		    if (result[0] instanceof PfProcessBatchRetObject) {
+		      PfProcessBatchRetObject batchRetObject =
+		          (PfProcessBatchRetObject) result[0];
+		      String errMsg = batchRetObject.getExceptionMsg();
+		      // 没有异常信息则表明执行成功
+		      if ((errMsg != null) && !"".equals(errMsg)) {
+		        ExceptionUtils.wrapBusinessException(errMsg);
+		      }
+		      return batchRetObject.getRetObj();
+		    }
+		    Logger.debug(
+		        "调用动作脚本 ActionName[" + actionCode + "] BillType[" + billType + "]结束");
+		    return result;
+		  }
+
+	
+	/**
+	   * 动作编码
+	   *
+	   * @return
+	   */
+	  protected String getActionCode() {
+	    return MonthOtTimeVOConst.CONST_ACTION_SAVEBASE;
+	  }
+
+	  /**
+	   * 调用动作脚本
+	   *
+	   * @param actionCode
+	   * @param aggVOs
+	   * @return
+	   * @throws BusinessException
+	   */
+	  private AggMonthOtTimeVO callActionScript(AggMonthOtTimeVO... aggVOs)
+	      throws BusinessException {
+
+	    String actionCode = this.getActionCode();
+	    String billType = CommonUtil.getBillTypeCode();
+
+	    CloudPFlowContext context = new CloudPFlowContext();
+	    context.setActionName(actionCode);
+	    context.setBillType(billType);
+	    context.setBillVos(aggVOs);
+	    Logger.debug("开始调用动作脚本 ActionName[" + actionCode + "] BillType[" + billType
+	        + "]...");
+
+	    ICloudScriptPFlowService service =
+	        ServiceLocator.find(ICloudScriptPFlowService.class);
+
+	    Object[] result = service.exeScriptPFlow(context);
+
+	    Logger.debug("调用动作脚本 ActionName[" + actionCode + "] BillType[" + billType
+	        + "]结束");
+
+	    String wheresql =
+	        "pk_monthottime" + "='"
+	            + ((AggMonthOtTimeVO) result[0]).getPrimaryKey() + "'";
+	    Collection<AggMonthOtTimeVO> bills =
+	        CommonUtil.getMDQueryService().queryBillOfVOByCond(
+	            AggMonthOtTimeVO.class, wheresql, true, false);
+	    Collection<MonthOtTimeBVO> bbills =
+	    		CommonUtil.getMDQueryService().queryBillOfVOByCond(MonthOtTimeBVO.class, wheresql, true,
+	                false);
+	    AggMonthOtTimeVO[] aggvos = bills.toArray(new AggMonthOtTimeVO[0]);
+	    aggvos[0].setChildrenVO(bbills.toArray(new MonthOtTimeBVO[0]));
+	    return bills.toArray(new AggMonthOtTimeVO[0])[0];
+	  }
+	/**
+	 * 判断新增或修改
+	 *
+	 * @param vo
+	 * @throws BusinessException
+	 */
+	private void doBefore(AggMonthOtTimeVO vo) throws BusinessException {
+		String parentPk = vo.getPrimaryKey();
+	    // 根据是否有主键信息判断是新增保存还是修改保存
+	    if ((parentPk != null) && !"".equals(parentPk)) {
+	      // 设置单据默认值
+	      CircularlyAccessibleValueObject[] allchildren = vo.getAllChildrenVO();
+	      if (allchildren != null) {
+	        for (CircularlyAccessibleValueObject obj : allchildren) {
+	          obj.setAttributeValue("pk_monthottime", parentPk);
+	        }
+	      }
+	    }
+//	    PsnJobVO psnjobVO = AttendDataUtil.queryPsnJob(null);
+//	    String pk_psndoc = (String) parent.getAttributeValue(MonthOtTimeVO.PK_PSNDOC);
+//	    if(StringUtils.isNotBlank(pk_psndoc)) {
+//	    	psnjobVO = AttendDataUtil.queryPsnJob(pk_psndoc);
+//	    }
+		PsnJobVO psnjobVO = AttendDataUtil.queryPsnJob(null);
+		nc.vo.hrkq.monthottime.MonthOtTimeVO parent = vo.getParentVO();
+	    parent.setAttributeValue(MonthOtTimeVO.PK_PSNDOC,psnjobVO.getPk_psndoc());
+	    parent.setAttributeValue(MonthOtTimeVO.PK_DEPT,psnjobVO.getPk_dept());
+	    parent.setAttributeValue(MonthOtTimeVO.PK_ORG,psnjobVO.getPk_org());
+	    parent.setAttributeValue(MonthOtTimeVO.APPLYDATE,new UFDate());
+	    parent.setAttributeValue(MonthOtTimeVO.BILLTYPE,MonthOtTimeVOConst.CONST_BILLTYPE_COST);
+	    parent.setAttributeValue(MonthOtTimeVO.APPROVESTATUS, -1);
+////	    String org =
+////	        (String) parent.getAttributeValue(MonthOtTimeVOConst.FIELD_PK_ORG);
+	    String group = CommonUtil.getGroupByOrg(psnjobVO.getPk_org());
+	    if ((group != null) && !"".equals(group)) {
+	      parent.setAttributeValue(MonthOtTimeVOConst.FIELD_PK_GROUP, group);
+	    }
+		String pk_psndoc = (String) parent.getAttributeValue(MonthOtTimeVO.PK_PSNDOC);
+	    MonthOtTimeBVO[] bvos = (MonthOtTimeBVO[]) vo.getChildrenVO();
+	    if(bvos != null && bvos.length > 0) {
+	    	//加班类型,1为按次ottimestype,2为普通otdatetype
+	    	String otapplytype = (String) parent.getAttributeValue(MonthOtTimeVO.OTAPPLYTYPE);
+	    	IMonthottimevoMaintain service = ServiceLocator.find(IMonthottimevoMaintain.class);
+	    	List<Map<String, UFDate>> listMap = service.queryHoliday(pk_psndoc, psnjobVO.getPk_org());
+	    	List<String> defdocList = service.queryDefdoc();//查询节假日类型主键
+	    	String msg = "";
+	    	String msg2 = "";
+	    	Map<String,String> typeMap = new HashMap();
+	    	List<DefdocVO> defVOList = service.queryDefdoc2();
+	    	if(defVOList != null && defVOList.size() > 0) {
+	    		for(DefdocVO defvo : defVOList) {
+	    			typeMap.put(defvo.getPk_defdoc(), defvo.getName());
+	    		}
+	    	}
+	    	for(MonthOtTimeBVO bvo : bvos) {
+	    		String type = "";
+	    		StringBuffer note = new StringBuffer("");
+	    		if("1".equals(otapplytype)) {//按次
+	    			type = (String) bvo.getAttributeValue(MonthOtTimeBVO.OTTIMESTYPE);
+//	    			加班日期类型按次	参照名称
+//	    			加班日期	日期格式:YYYY-MM-DD
+//	    			加班次数	数值,一位小数
+//	    			加班说明	
+	    			note.append("<br>加班日期类型按次:").append(typeMap.get(bvo.getAttributeValue(MonthOtTimeBVO.OTTIMESTYPE))+"");
+	    			note.append("<br>加班日期:").append(bvo.getAttributeValue(MonthOtTimeBVO.OTDATE) == null ? "" : bvo.getAttributeValue(MonthOtTimeBVO.OTDATE).toString().substring(0, 10) +"");
+	    			note.append("<br>加班次数:").append(bvo.getAttributeValue(MonthOtTimeBVO.OTTIMES) == null ? "" :  new UFDouble(bvo.getAttributeValue(MonthOtTimeBVO.OTTIMES).toString(),1)+"");
+	    			note.append("<br>加班说明:").append(bvo.getAttributeValue(MonthOtTimeBVO.OTDESCRIPTION) == null ? "" : bvo.getAttributeValue(MonthOtTimeBVO.OTDESCRIPTION).toString() +"");
+	    		}else if("2".equals(otapplytype)) {//普通
+	    			type = (String) bvo.getAttributeValue(MonthOtTimeBVO.OTDATETYPE);
+//	    			加班日期类型	参照名称
+//	    			加班日期	日期格式:YYYY-MM-DD
+//	    			开始时间	日期格式:YYYY-MM-DD HH:MM:SS
+//	    			结束时间	日期格式:YYYY-MM-DD HH:MM:SS
+//	    			加班时长小时	数值,一位小数
+//	    			加班费时长	数值,一位小数
+//	    			调休时长	数值,一位小数
+//	    			加班说明	
+	    			note.append("<br>加班日期类型:").append(typeMap.get(bvo.getAttributeValue(MonthOtTimeBVO.OTDATETYPE))+"\n");
+	    			note.append("<br>加班日期:").append(bvo.getAttributeValue(MonthOtTimeBVO.OTDATE) == null ? "" : bvo.getAttributeValue(MonthOtTimeBVO.OTDATE).toString().substring(0, 10) +"");
+	    			note.append("<br>开始时间:").append(bvo.getAttributeValue(MonthOtTimeBVO.OVERTIMEBEGINTIME) == null ? "" : bvo.getAttributeValue(MonthOtTimeBVO.OVERTIMEBEGINTIME).toString() +"");
+	    			note.append("<br>结束时间:").append(bvo.getAttributeValue(MonthOtTimeBVO.OVERTIMEENDTIME) == null ? "" : bvo.getAttributeValue(MonthOtTimeBVO.OVERTIMEENDTIME).toString() +"");
+	    			note.append("<br>加班时长小时:").append(bvo.getAttributeValue(MonthOtTimeBVO.OTHOURS) == null ? "" :  new UFDouble(bvo.getAttributeValue(MonthOtTimeBVO.OTHOURS).toString(),1)+"");
+	    			note.append("<br>加班费时长:").append(bvo.getAttributeValue(MonthOtTimeBVO.OTCOSTHOURS) == null ? "" :  new UFDouble(bvo.getAttributeValue(MonthOtTimeBVO.OTCOSTHOURS).toString(),1)+"");
+	    			note.append("<br>调休时长:").append(bvo.getAttributeValue(MonthOtTimeBVO.LEAVEHOURS) == null ? "" :  new UFDouble(bvo.getAttributeValue(MonthOtTimeBVO.LEAVEHOURS).toString(),1)+"");
+	    			note.append("<br>加班说明:").append(bvo.getAttributeValue(MonthOtTimeBVO.OTDESCRIPTION) == null ? "" : bvo.getAttributeValue(MonthOtTimeBVO.OTDESCRIPTION).toString() +"");
+	    		}
+	    		
+	    		bvo.setAttributeValue("note", note.toString());
+	    		
+	    		if(bvo.getAttributeValue(MonthOtTimeBVO.OTDATE) == null) {
+	    			continue;
+	    		}
+	    		UFDate otdate = new UFDate(bvo.getAttributeValue(MonthOtTimeBVO.OTDATE).toString());//加班日期是否为节假日
+	    		if(this.checkDate(otdate, listMap)) {
+	    			if(type.length() > 0 && !defdocList.contains(type)) {
+	    				msg = "["+otdate.toString().substring(0,10)+"],";
+	    			}
+	    		} else {
+	    			if(type.length() > 0 && defdocList.contains(type)) {
+	    				msg2 = "["+otdate.toString().substring(0,10)+"],";
+	    			}
+	    		}
+	    	}
+	    	if(msg.length() > 0 && msg2.length() > 0) {
+	    		throw new BusinessException("加班日期"+msg+"属于节假日加班,加班日期"+msg2+"不属于节假日加班,请选择正确的加班类型");
+	    	}else if(msg.length() > 0) {
+	    		throw new BusinessException("加班日期"+msg+"属于节假日加班,请选择正确的加班类型");
+	    	}else if(msg2.length() > 0) {
+	    		throw new BusinessException("加班日期"+msg2+"不属于节假日加班,请选择正确的加班类型");
+	    	}
+	    }
+	    
+	    String dateCheckMsg = CommonUtil.checkSelf(bvos);
+	    if(dateCheckMsg != null) {
+	    	throw new BusinessException("加班时间范围内存在冲突的加班单据");
+	    }
+	    
+	    List<MonthOtTimeBVO> oldBvos = CommonUtil.getMaintainService().queryBVOByPkPsndoc(pk_psndoc);
+	    if(oldBvos != null && oldBvos.size() > 0) {
+		    String dateTwoCheckMsg = CommonUtil.checkTwoList(bvos,oldBvos.toArray(new MonthOtTimeBVO[0]));
+		    if(dateTwoCheckMsg != null) {
+		    	throw new BusinessException("加班时间范围内存在冲突的加班单据");
+		    }
+	    }
+	}
+	
+    /**
+     * 判断日期是否符合节假日时间
+     * @param otdate
+     * @param listMap
+     * @return
+     */
+    private Boolean checkDate(UFDate otdate,List<Map<String, UFDate>> listMap) {
+  	  Boolean check = Boolean.FALSE;
+  	  if(listMap != null) {
+  			for(Map<String, UFDate> map : listMap) {
+  				UFDate begindate = map.get("begintime");
+  				UFDate enddate = map.get("endtime");
+  				if(otdate.compareTo(begindate) >= 0 && otdate.compareTo(enddate) <= 0) {
+  					check = Boolean.TRUE;
+  					break;
+  				}
+  			}
+  		}
+  	  
+  	  return check;
+    }
+	
+	public void setValue(MonthOtTimeVO vo,PsnJobVO psnJob,String appCode) throws BusinessException{
+		if("606570D0".equals(appCode)) {
+			//按次
+			vo.setOtapplytype("1");
+			vo.setAttributeValue("otapplytype", "1");
+		}else if("606570C0".equals(appCode) || "606570E0".equals(appCode)) {
+			//普通
+			vo.setOtapplytype("2");
+			vo.setAttributeValue("otapplytype", "2");
+		}
+	}
+
+}

+ 62 - 0
hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVODefaultAction.java

@@ -0,0 +1,62 @@
+package nccloud.hrkq.hrkq.monthottimevo.action;
+
+import java.math.BigDecimal;
+import java.util.HashMap;
+import java.util.Map;
+
+import nc.bs.logging.Logger;
+import nc.vo.hrkq.monthottime.MonthOtTimeBVO;
+import nc.vo.pub.SuperVO;
+import nc.vo.uif2.LoginContext;
+import nccloud.framework.web.container.IRequest;
+import nccloud.framework.web.container.SessionContext;
+import nccloud.framework.web.ui.model.row.Cell;
+import nccloud.framework.web.ui.pattern.form.Form;
+import nccloud.web.hr.pub.HRCommonAction;
+import nccloud.web.hr.pub.HRNccTemplateUtils;
+import nccloud.web.hr.pub.HRNccUtils;
+import nccloud.web.uapbd.commons.web.ParamUtils;
+
+public class MonthOtTimeVODefaultAction extends HRCommonAction {
+
+	public <T> Object execute(IRequest request, T arg1) throws Exception {
+		Logger.error("#####ÅúÁ¿¼Ó°à:#####£º" + System.currentTimeMillis());
+		Long time1 = Long.valueOf(System.currentTimeMillis());
+	    ParamUtils param = new ParamUtils(request);
+	    LoginContext context = HRNccUtils.getLoginContext(param);
+	    String pageCode = param.getString("pageCode", SessionContext.getInstance().getAppcode()+"t");
+	    String areaCode = param.getString("areaCode", "overtime_card");
+	    String appCode = param.getString("appCode", SessionContext.getInstance().getAppcode());
+	    
+	    MonthOtTimeBVO vo = new MonthOtTimeBVO();
+	    int operat = param.getInt("operat", Integer.valueOf(-1)).intValue();
+	    String pk = param.getString("pk", null);
+	    if (operat == 1) {
+	    	
+//	    	vo.setStatus(1);
+	    } else if (operat == 0) {
+//	    	vo.setAttributeValue("otdate", new UFDate());
+//	    	vo.setAttributeValue(vo.getPKFieldName(), AttendDataUtil.getBillId());
+//	    	vo.setStatus(0);
+	    }
+	    
+	    Map<String, Cell> fieldValueMap = new HashMap<String, Cell>();
+	    setDefaultData(vo, fieldValueMap, param);
+	    Form form = HRNccTemplateUtils.getFormWithArea(appCode, pageCode, areaCode, vo);
+//	    if (!fieldValueMap.isEmpty()) {
+//	      for (String attrCode : fieldValueMap.keySet()) {
+//	        form.getModel().getRows()[0].addCell(attrCode, (Cell)fieldValueMap.get(attrCode));
+//	      }
+//	    }
+//	    Long time2 = Long.valueOf(System.currentTimeMillis());
+//	    Logger.error("#####time spend:#####£º" + (time2.longValue() - time1.longValue()));
+//	    
+	    return form;
+	}
+	protected void setDefaultData(SuperVO vo, Map<String, Cell> fieldValueMap, ParamUtils param) {
+   }
+
+   protected String getPageCode() { return "60656040nccloud"; }
+   protected String getAreaCode() { return "overtime_card"; }
+   protected String getBillType() { return "6QOT"; }
+}

+ 129 - 0
hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVODeleteAction.java

@@ -0,0 +1,129 @@
+
+package nccloud.hrkq.hrkq.monthottimevo.action;
+
+import java.util.Collection;
+
+import nc.bs.logging.Logger;
+import nc.md.model.MetaDataException;
+import nc.md.persist.framework.IMDPersistenceQueryService;
+import nccloud.vo.hrkq.hrkq.MonthOtTimeVOConst;
+import nc.vo.hrkq.monthottime.AggMonthOtTimeVO;
+import nc.vo.hrkq.monthottime.MonthOtTimeVO;
+import nc.vo.pf.pub.util.SQLUtil;
+import nc.vo.pub.BusinessException;
+import nccloud.framework.core.exception.ExceptionUtils;
+import nccloud.framework.service.ServiceLocator;
+import nccloud.framework.web.action.itf.ICommonAction;
+import nccloud.framework.web.container.IRequest;
+import nccloud.framework.web.json.JsonFactory;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.bean.PageQueryInfo;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.util.CommonUtil;
+import nccloud.pubitf.riart.pflow.CloudPFlowContext;
+import nccloud.pubitf.riart.pflow.ICloudScriptPFlowService;
+
+/**
+ * 删除(支持批量)
+ * @version  @since v3.5.6-1903
+ */
+public class MonthOtTimeVODeleteAction implements ICommonAction {
+
+  @Override
+  public Object doAction(IRequest paramIRequest) {
+    PageQueryInfo queryParam = this.getQueryParam(paramIRequest);
+    try {
+      // 1、根据前端传递的pks查询数据,获取AGGVO
+      AggMonthOtTimeVO[] bills = this.queryBills(queryParam);
+      // 2、调用单据的保存动作脚本(delete),得到保存后结果
+      this.callActionScript(bills);
+      // 3、返回Null 到前端
+      return null;
+    }
+    catch (BusinessException ex) {
+      // 处理异常信息
+      Logger.error(ex);
+      ExceptionUtils.wrapException(ex);
+    }
+    return null;
+  }
+
+  /**
+   * 动作编码
+   *
+   * @return
+   */
+  protected String getActionCode() {
+    return MonthOtTimeVOConst.CONST_ACTION_DELETE;
+  }
+
+  /**
+   * 调用动作脚本
+   *
+   * @param actionCode
+   * @param aggVOs
+   * @return
+   * @throws BusinessException
+   */
+  private Object callActionScript(AggMonthOtTimeVO... aggVOs)
+      throws BusinessException {
+
+    if ((aggVOs == null) || (aggVOs.length == 0)) {
+      return null;
+    }
+
+    String actionCode = this.getActionCode();
+    String billType = CommonUtil.getBillTypeCode();
+
+    CloudPFlowContext context = new CloudPFlowContext();
+    context.setActionName(actionCode);
+    context.setBillType(billType);
+    context.setBillVos(aggVOs);
+    Logger.debug("开始调用动作脚本 ActionName[" + actionCode + "] BillType[" + billType
+        + "]...");
+
+    ICloudScriptPFlowService service =
+        ServiceLocator.find(ICloudScriptPFlowService.class);
+
+    Object[] result = service.exeScriptPFlow(context);
+
+    Logger.debug("调用动作脚本 ActionName[" + actionCode + "] BillType[" + billType
+        + "]结束");
+
+    return result;
+  }
+
+  /**
+   * 获取查询参数
+   *
+   * @param paramIRequest
+   * @return
+   */
+  private PageQueryInfo getQueryParam(IRequest paramIRequest) {
+    String strRead = paramIRequest.read();
+    PageQueryInfo queryParam =
+        JsonFactory.create().fromJson(strRead, PageQueryInfo.class);
+    return queryParam;
+  }
+
+  /**
+   * 查询业务数据
+   *
+   * @param queryParam
+   * @return
+   * @throws MetaDataException
+   */
+  private AggMonthOtTimeVO[] queryBills(PageQueryInfo queryParam)
+      throws MetaDataException {
+    // 1、根据参数查询结果
+    IMDPersistenceQueryService service = CommonUtil.getMDQueryService();
+    String wheresql =
+        SQLUtil.buildSqlForIn( "pk_monthottime",
+            queryParam.getPks());
+    Collection<AggMonthOtTimeVO> bills =
+        service.queryBillOfVOByCond(AggMonthOtTimeVO.class, wheresql, true,
+            false);
+    if ((bills == null) || (bills.size() == 0)) {
+      return null;
+    }
+    return bills.toArray(new AggMonthOtTimeVO[0]);
+  }
+}

+ 20 - 0
hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOPrintAction.java

@@ -0,0 +1,20 @@
+package nccloud.hrkq.hrkq.monthottimevo.action;
+
+import nccloud.framework.web.container.IRequest;
+import nccloud.web.platform.print.AbstractPrintAction;
+
+public class MonthOtTimeVOPrintAction extends AbstractPrintAction {
+
+	@Override
+	public String getPrintServiceModule() { return "hrkq"; }
+
+	@Override
+	public String getPrintServiceName() {
+		return "nccloud.impl.hrkq.hrkq.MonthOtTimeVOPrintService";
+	}
+
+	@Override
+	public Object doAction(IRequest arg0) {
+		return super.doAction(arg0);
+	}
+}

+ 111 - 0
hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOQueryByPksAction.java

@@ -0,0 +1,111 @@
+
+package nccloud.hrkq.hrkq.monthottimevo.action;
+
+import java.util.Collection;
+
+import nc.bs.logging.Logger;
+import nc.md.model.MetaDataException;
+import nc.md.persist.framework.IMDPersistenceQueryService;
+import nc.vo.hrkq.monthottime.AggMonthOtTimeVO;
+import nc.vo.hrkq.monthottime.MonthOtTimeBVO;
+import nc.vo.hrkq.monthottime.MonthOtTimeVO;
+import nc.vo.pf.pub.util.SQLUtil;
+import nc.vo.pub.BusinessException;
+import nccloud.framework.core.exception.ExceptionUtils;
+import nccloud.framework.web.action.itf.ICommonAction;
+import nccloud.framework.web.container.IRequest;
+import nccloud.framework.web.json.JsonFactory;
+import nccloud.framework.web.ui.pattern.grid.Grid;
+import nccloud.framework.web.ui.pattern.grid.GridOperator;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.bean.PageQueryInfo;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.util.CommonUtil;
+
+/**
+ * 列表翻页查询
+ * @version  @since v3.5.6-1903
+ */
+public class MonthOtTimeVOQueryByPksAction implements ICommonAction {
+
+  @Override
+  public Object doAction(IRequest paramIRequest) {
+    PageQueryInfo queryParam = this.getQueryParam(paramIRequest);
+    try {
+      // 根据前端传递的pks查询数据
+      Collection<AggMonthOtTimeVO> bills = this.queryBills(queryParam);
+      // 返回查询信息
+      return this.toBillData(queryParam, bills);
+    }
+    catch (BusinessException ex) {
+      // 处理异常信息
+      Logger.error(ex);
+      ExceptionUtils.wrapException(ex);
+    }
+    return null;
+  }
+
+  /**
+   * 将VO转换前端Grid信息
+   *
+   * @param info
+   * @param bills
+   * @return
+   */
+  protected Object toBillData(PageQueryInfo info,
+      Collection<AggMonthOtTimeVO> bills) {
+    if ((bills == null) || (bills.size() == 0)) {
+      return null;
+    }
+
+    Object[] heads = new Object[bills.size()];
+    int i = 0;
+    for (AggMonthOtTimeVO bill : bills) {
+      heads[i++] = bill.getParent();
+    }
+
+    GridOperator operator = new GridOperator(info.getPagecode());
+    Grid grid = operator.toGrid(heads);
+    return grid;
+  }
+
+  /**
+   * 获取查询参数
+   *
+   * @param paramIRequest
+   * @return
+   */
+  private PageQueryInfo getQueryParam(IRequest paramIRequest) {
+    String strRead = paramIRequest.read();
+    PageQueryInfo queryParam =
+        JsonFactory.create().fromJson(strRead, PageQueryInfo.class);
+    return queryParam;
+  }
+
+  /**
+   * 查询业务数据
+   *
+   * @param queryParam
+   * @return
+   * @throws MetaDataException
+   */
+  private Collection<AggMonthOtTimeVO> queryBills(PageQueryInfo queryParam)
+      throws MetaDataException {
+    // 1、根据参数查询结果
+    IMDPersistenceQueryService service = CommonUtil.getMDQueryService();
+    String wheresql =
+        SQLUtil.buildSqlForIn("pk_monthottime",queryParam.getPks());
+    Collection<AggMonthOtTimeVO> bills =
+        service.queryBillOfVOByCond(AggMonthOtTimeVO.class, wheresql, false,
+            false);
+    
+   
+    AggMonthOtTimeVO[] aggvos = bills.toArray(new AggMonthOtTimeVO[0]);
+    for(AggMonthOtTimeVO aggvo : aggvos) {
+    	 Collection<MonthOtTimeBVO> bbills =
+    	            service.queryBillOfVOByCond(MonthOtTimeBVO.class, "pk_monthottime ='"+aggvo.getParentVO().getPk_monthottime()+"'", true,
+    	                false);
+    	 aggvo.setChildrenVO(bbills.toArray(new MonthOtTimeBVO[0]));
+    }
+    
+    return bills;
+  }
+}

+ 98 - 0
hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOQueryCardAction.java

@@ -0,0 +1,98 @@
+
+package nccloud.hrkq.hrkq.monthottimevo.action;
+import java.math.BigDecimal;
+import java.util.Collection;
+
+import nc.bs.logging.Logger;
+import nc.md.model.MetaDataException;
+import nc.md.persist.framework.IMDPersistenceQueryService;
+import nc.vo.hrkq.monthottime.AggMonthOtTimeVO;
+import nc.vo.hrkq.monthottime.MonthOtTimeBVO;
+import nc.vo.pub.BusinessException;
+import nccloud.framework.core.exception.ExceptionUtils;
+import nccloud.framework.web.action.itf.ICommonAction;
+import nccloud.framework.web.container.IRequest;
+import nccloud.framework.web.json.JsonFactory;
+import nccloud.framework.web.ui.pattern.billcard.BillCard;
+import nccloud.framework.web.ui.pattern.billcard.BillCardOperator;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.bean.PageQueryInfo;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.util.CommonUtil;
+
+/**
+ * 卡片查询(查询方案)操作
+ * @version  @since v3.5.6-1903
+ */
+public class MonthOtTimeVOQueryCardAction implements ICommonAction {
+
+  @Override
+  public Object doAction(IRequest paramIRequest) {
+    PageQueryInfo queryParam = this.getQueryParam(paramIRequest);
+    try {
+      // 查询数据
+      Collection<AggMonthOtTimeVO> bills = this.queryBills(queryParam);
+      if (bills == null) {
+        return null;
+      }
+      // 转换前端需要的billCard
+      return this.transBillCardFormVO(queryParam,
+          bills.toArray(new AggMonthOtTimeVO[0])[0]);
+    }
+    catch (BusinessException ex) {
+      // 处理异常信息
+      Logger.error(ex);
+      ExceptionUtils.wrapException(ex);
+    }
+    return null;
+  }
+
+  /**
+   * 获取查询参数
+   *
+   * @param paramIRequest
+   * @return
+   */
+  private PageQueryInfo getQueryParam(IRequest paramIRequest) {
+    String strRead = paramIRequest.read();
+    PageQueryInfo queryParam =
+        JsonFactory.create().fromJson(strRead, PageQueryInfo.class);
+    return queryParam;
+  }
+
+  /**
+   * 查询业务数据
+   *
+   * @param queryParam
+   * @return
+   * @throws MetaDataException
+   */
+  private Collection<AggMonthOtTimeVO> queryBills(PageQueryInfo queryParam)
+      throws MetaDataException {
+    IMDPersistenceQueryService service = CommonUtil.getMDQueryService();
+    // 注意:业务提供查询方法(元数据查询默认查询到dr=1的数据了)
+    String wheresql =
+        "pk_monthottime" + "='" + queryParam.getPk() + "'";
+    Collection<AggMonthOtTimeVO> bills =
+        service.queryBillOfVOByCond(AggMonthOtTimeVO.class, wheresql, true,
+            false);
+    
+    Collection<MonthOtTimeBVO> bbills =
+            service.queryBillOfVOByCond(MonthOtTimeBVO.class, wheresql, true,
+                false);
+    AggMonthOtTimeVO[] aggvos = bills.toArray(new AggMonthOtTimeVO[0]);
+    aggvos[0].setChildrenVO(bbills.toArray(new MonthOtTimeBVO[0]));
+    return bills;
+  }
+
+  /**
+   * VO 转换
+   *
+   * @param queryParam
+   * @param bill
+   * @return
+   */
+  private BillCard transBillCardFormVO(PageQueryInfo queryParam,
+      AggMonthOtTimeVO bill) {
+    BillCardOperator operator = new BillCardOperator(queryParam.getPagecode());
+    return operator.toCard(bill);
+  }
+}

+ 252 - 0
hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOQueryListAction.java

@@ -0,0 +1,252 @@
+
+package nccloud.hrkq.hrkq.monthottimevo.action;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+import com.alibaba.fastjson.JSONArray;
+
+import nc.bs.logging.Logger;
+import nc.md.persist.framework.IMDPersistenceQueryService;
+import nc.ui.querytemplate.querytree.IQueryScheme;
+import nc.vo.hi.psndoc.PsnJobVO;
+import nc.vo.hrkq.monthottime.AggMonthOtTimeVO;
+import nc.vo.pub.BusinessException;
+import nc.vo.pub.lang.UFDate;
+import nc.vo.pubapp.pattern.pub.Constructor;
+import nccloud.base.exception.ExceptionUtils;
+import nccloud.dto.baseapp.querytree.dataformat.QueryTreeFormatVO;
+import nccloud.framework.web.action.itf.ICommonAction;
+import nccloud.framework.web.container.IRequest;
+import nccloud.framework.web.container.SessionContext;
+import nccloud.framework.web.json.JsonFactory;
+import nccloud.framework.web.querytemplet.QueryUtil4NCC;
+import nccloud.framework.web.ui.pattern.grid.Grid;
+import nccloud.framework.web.ui.pattern.grid.GridOperator;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.bean.PageQueryVO;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.util.CommonUtil;
+import nccloud.web.hrkq.common.utils.AttendDataUtil;
+
+/**
+ * 列表查询(查询方案)操作
+ * @version  @since v3.5.6-1903
+ */
+public class MonthOtTimeVOQueryListAction implements ICommonAction {
+
+  @Override
+  public Object doAction(IRequest paramIRequest) {
+    PageQueryVO page = null;
+    QueryTreeFormatVO queryParam = this.getQueryParam(paramIRequest);
+    try {
+      // 1、 获取scheme
+      IQueryScheme scheme = this.getScheme(queryParam);
+      // 2、调用服务,获取VO信息(平台默认生成方法,有效率问题,最佳实现要改掉)
+//      AggMonthOtTimeVO[] aggvos =
+//          CommonUtil.getMaintainService().query(scheme);
+      String whereSql = scheme.getWhereSQLOnly();
+      IMDPersistenceQueryService service = CommonUtil.getMDQueryService();
+      PsnJobVO psnjobVO = AttendDataUtil.queryPsnJob(null);
+      String userId = SessionContext.getInstance().getClientInfo().getUserid();
+      String pk_psndocSql = " (pk_psndoc = '"+psnjobVO.getPk_psndoc()+"' or billmaker ='"+userId+"') and isnull(dr,0) = 0 order by creationtime desc";
+      String wheresql2 = whereSql != null && whereSql.length() > 0 ? whereSql + " and "+ pk_psndocSql : pk_psndocSql;
+      Collection<AggMonthOtTimeVO> bills2 =
+          service.queryBillOfVOByCond(AggMonthOtTimeVO.class, wheresql2, false,
+              false);
+      AggMonthOtTimeVO[] aggvos = bills2.toArray(new AggMonthOtTimeVO[0]);
+      // 查询服务(scheme);
+      if ((aggvos != null) && (aggvos.length > 0)) {
+        // 3、处理分页
+        String[] pks = this.getPks(aggvos);
+        AggMonthOtTimeVO[] bills =
+            this.getDefaulePageBill(queryParam, aggvos);
+        page = new PageQueryVO(pks, bills);
+      }
+      else {
+        page = this.createNullPage();
+      }
+    }
+    catch (BusinessException ex) {
+      // 处理异常信息
+      Logger.error(ex);
+      ExceptionUtils.wrapException(ex);
+    }
+    // 转换grid信息,返回前端
+    return this.transPageInfoToGrid(page, queryParam, queryParam.getPageCode());
+  }
+
+  /**
+   * 转换Grid信息
+   *
+   * @param pagevo
+   * @param pageSize
+   * @param pagecode
+   * @return
+   */
+  private Grid covert(PageQueryVO pagevo, int pageSize, String pagecode) {
+    AggMonthOtTimeVO[] bills =
+        (AggMonthOtTimeVO[]) pagevo.getCurrentPageBills();
+
+    Grid grid = null;
+    if (bills != null) {
+      int size = bills.length > pageSize ? pageSize : bills.length;
+      Object[] heads = new Object[size];
+
+      for (int i = 0; i < size; i++) {
+        heads[i] = bills[i].getParent();
+      }
+      GridOperator operator = new GridOperator(pagecode);
+      grid = operator.toGrid(heads);
+      grid.getModel().setAllpks(pagevo.getPks());
+    }
+    return grid;
+  }
+
+  /**
+   * 创建空页面信息
+   *
+   * @return
+   */
+  private PageQueryVO createNullPage() {
+    String[] ids = new String[0];
+    AggMonthOtTimeVO[] bills =
+        Constructor.construct(AggMonthOtTimeVO.class, 0);
+    PageQueryVO page = new PageQueryVO(ids, bills);
+    return page;
+  }
+
+  /**
+   * 设置默认页面
+   *
+   * @param info
+   * @param aggvos
+   * @return
+   */
+  private AggMonthOtTimeVO[] getDefaulePageBill(QueryTreeFormatVO info,
+      AggMonthOtTimeVO... aggvos) {
+    String pageSizeStr = info.getPageInfo().getPageSize();
+    int pageSize = 10;
+    if ((pageSizeStr != null) && (pageSizeStr.length() > 0)) {
+      pageSize = Integer.parseInt(pageSizeStr);
+    }
+    info.getPageInfo().setPageIndex("0");
+    List<AggMonthOtTimeVO> billLst = new ArrayList<AggMonthOtTimeVO>();
+    for (int i = 0; (i < aggvos.length) && (i < pageSize); i++) {
+      AggMonthOtTimeVO bill = new AggMonthOtTimeVO();
+
+      bill.setParent(aggvos[i].getParent());
+      billLst.add(bill);
+    }
+    return billLst.toArray(new AggMonthOtTimeVO[0]);
+  }
+
+  /**
+   * 获取主键信息
+   *
+   * @param aggvos
+   * @return
+   */
+  private String[] getPks(AggMonthOtTimeVO... aggvos) {
+    List<String> pks = new ArrayList<String>();
+    for (AggMonthOtTimeVO bill : aggvos) {
+      pks.add(bill.getPrimaryKey());
+    }
+    return pks.toArray(new String[0]);
+  }
+
+  /**
+   * 获取查询参数
+   *
+   * @param paramIRequest
+   * @return
+   */
+  private QueryTreeFormatVO getQueryParam(IRequest paramIRequest) {
+    String strRead = paramIRequest.read();
+    QueryTreeFormatVO queryParam =
+        JsonFactory.create().fromJson(strRead, QueryTreeFormatVO.class);
+    return queryParam;
+  }
+
+  /**
+   * 获取查询方案
+   *
+   * @param queryParam
+   * @return
+   */
+  private IQueryScheme getScheme(QueryTreeFormatVO queryParam) {
+    QueryUtil4NCC queryutil = new QueryUtil4NCC(queryParam);
+    IQueryScheme scheme = queryutil.convertCondition();
+    return scheme;
+  }
+
+  /**
+   * 总页数
+   *
+   * @param pageInfo
+   * @param length
+   * @return
+   */
+  private int getTotalPage(nccloud.framework.web.ui.model.PageInfo pageInfo,
+      int length) {
+    int size = pageInfo.getPageSize();
+    int total = 0;
+    if ((length % size) == 0) {
+      total = length / size;
+    }
+    else {
+      total = (length / size) + 1;
+    }
+    return total;
+  }
+
+  /**
+   * 页面设置
+   *
+   * @param retObj
+   * @param pagevo
+   * @param pageSize
+   * @param pageIndex
+   * @return
+   */
+  private Object pageSet(Object retObj, PageQueryVO pagevo, int pageSize,
+      int pageIndex) {
+    Grid grid = null;
+    if ((retObj instanceof Grid)) {
+      grid = (Grid) retObj;
+    }
+
+    nccloud.framework.web.ui.model.PageInfo pageInfo =
+        new nccloud.framework.web.ui.model.PageInfo();
+    pageInfo.setTotal(pagevo.getPks().length);
+    pageInfo.setPageSize(pageSize);
+    pageInfo.setPageIndex(pageIndex);
+    pageInfo.setTotalPage(this.getTotalPage(pageInfo, pagevo.getPks().length));
+
+    grid.getModel().setPageinfo(pageInfo);
+    return grid;
+  }
+
+  /**
+   * page信息转前端需要的grid模型
+   *
+   * @param pagevo
+   * @param info
+   * @param pagecode
+   * @return
+   */
+  private Object transPageInfoToGrid(PageQueryVO pagevo,
+      QueryTreeFormatVO info, String pagecode) {
+    Object grid = null;
+    int pageSize = Integer.parseInt(info.getPageInfo().getPageSize());
+    int pageIndex = Integer.parseInt(info.getPageInfo().getPageIndex());
+    if (pagevo != null) {
+      if (pagevo.getCurrentPageBills().length == 0) {
+        return null;
+      }
+      grid = this.covert(pagevo, pageSize, pagecode);
+
+      grid = this.pageSet(grid, pagevo, pageSize, pageIndex);
+    }
+    return grid;
+  }
+}

+ 264 - 0
hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOSaveAction.java

@@ -0,0 +1,264 @@
+
+package nccloud.hrkq.hrkq.monthottimevo.action;
+
+import java.text.SimpleDateFormat;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.StringUtils;
+
+import nc.bs.logging.Logger;
+import nc.vo.bd.defdoc.DefdocVO;
+import nc.vo.hi.psndoc.PsnJobVO;
+import nc.vo.hrkq.monthottime.AggMonthOtTimeVO;
+import nc.vo.hrkq.monthottime.MonthOtTimeBVO;
+import nc.vo.hrkq.monthottime.MonthOtTimeVO;
+import nc.vo.pub.BusinessException;
+import nc.vo.pub.CircularlyAccessibleValueObject;
+import nc.vo.pub.VOStatus;
+import nc.vo.pub.lang.UFDate;
+import nc.vo.pub.lang.UFDateTime;
+import nc.vo.pub.lang.UFDouble;
+import nccloud.framework.core.exception.ExceptionUtils;
+import nccloud.framework.service.ServiceLocator;
+import nccloud.framework.web.action.itf.ICommonAction;
+import nccloud.framework.web.container.IRequest;
+import nccloud.framework.web.ui.pattern.billcard.BillCardOperator;
+import nccloud.hrkq.hrkq.monthottimevo.hrkq.util.CommonUtil;
+import nccloud.itf.hrkq.hrkq.IMonthottimevoMaintain;
+import nccloud.pubitf.riart.pflow.CloudPFlowContext;
+import nccloud.pubitf.riart.pflow.ICloudScriptPFlowService;
+import nccloud.vo.hrkq.hrkq.MonthOtTimeVOConst;
+import nccloud.web.hrkq.common.utils.AttendDataUtil;
+
+/**
+ * 主子表保存
+ * @version  @since v3.5.6-1903
+ */
+public class MonthOtTimeVOSaveAction implements ICommonAction {
+
+  @Override
+  public Object doAction(IRequest paramIRequest) {
+    try {
+      BillCardOperator billCardOperator = new BillCardOperator();
+      // 1、获取AGGVO (request转换主子VO)
+      AggMonthOtTimeVO vo = billCardOperator.toBill(paramIRequest);
+      this.doBefore(vo);
+      // 2、调用单据的保存动作脚本(savebase),得到保存后结果
+      AggMonthOtTimeVO rtnObj = this.callActionScript(vo);
+      // 3、处理返回结果(包含功能:根据模板转换前端BillCard,参照翻译,显示公式处理)
+      Object billcard = billCardOperator.toCard(rtnObj);
+      // 4、返回结果到前端
+      return billcard;
+    }
+    catch (BusinessException ex) {
+      // 处理异常信息
+      Logger.error(ex);
+      ExceptionUtils.wrapException(ex);
+    }
+    return null;
+  }
+
+  /**
+   * 动作编码
+   *
+   * @return
+   */
+  protected String getActionCode() {
+    return MonthOtTimeVOConst.CONST_ACTION_SAVEBASE;
+  }
+
+  /**
+   * 调用动作脚本
+   *
+   * @param actionCode
+   * @param aggVOs
+   * @return
+   * @throws BusinessException
+   */
+  private AggMonthOtTimeVO callActionScript(AggMonthOtTimeVO... aggVOs)
+      throws BusinessException {
+
+    String actionCode = this.getActionCode();
+    String billType = CommonUtil.getBillTypeCode();
+
+    CloudPFlowContext context = new CloudPFlowContext();
+    context.setActionName(actionCode);
+    context.setBillType(billType);
+    context.setBillVos(aggVOs);
+    Logger.debug("开始调用动作脚本 ActionName[" + actionCode + "] BillType[" + billType
+        + "]...");
+
+    ICloudScriptPFlowService service =
+        ServiceLocator.find(ICloudScriptPFlowService.class);
+
+    Object[] result = service.exeScriptPFlow(context);
+
+    Logger.debug("调用动作脚本 ActionName[" + actionCode + "] BillType[" + billType
+        + "]结束");
+
+    String wheresql =
+        "pk_monthottime" + "='"
+            + ((AggMonthOtTimeVO) result[0]).getPrimaryKey() + "'";
+    Collection<AggMonthOtTimeVO> bills =
+        CommonUtil.getMDQueryService().queryBillOfVOByCond(
+            AggMonthOtTimeVO.class, wheresql, true, false);
+    Collection<MonthOtTimeBVO> bbills =
+    		CommonUtil.getMDQueryService().queryBillOfVOByCond(MonthOtTimeBVO.class, wheresql, true,
+                false);
+    AggMonthOtTimeVO[] aggvos = bills.toArray(new AggMonthOtTimeVO[0]);
+    aggvos[0].setChildrenVO(bbills.toArray(new MonthOtTimeBVO[0]));
+    return bills.toArray(new AggMonthOtTimeVO[0])[0];
+  }
+
+    /**
+    * 判断新增或修改
+    *
+    * @param vo
+    * @throws BusinessException
+    */
+  private void doBefore(AggMonthOtTimeVO vo) throws BusinessException {
+    String parentPk = vo.getPrimaryKey();
+    // 根据是否有主键信息判断是新增保存还是修改保存
+    if ((parentPk != null) && !"".equals(parentPk)) {
+      // 设置单据默认值
+      CircularlyAccessibleValueObject[] allchildren = vo.getAllChildrenVO();
+      if (allchildren != null) {
+        for (CircularlyAccessibleValueObject obj : allchildren) {
+          obj.setAttributeValue("pk_monthottime", parentPk);
+          if(StringUtils.isNotBlank(obj.getPrimaryKey()) && VOStatus.UNCHANGED == obj.getStatus()) {
+        	  obj.setStatus(VOStatus.UPDATED);
+          }
+        }
+      }
+    }
+    nc.vo.hrkq.monthottime.MonthOtTimeVO parent = vo.getParentVO();
+    PsnJobVO psnjobVO = AttendDataUtil.queryPsnJob(null);
+    String pk_psndoc = (String) parent.getAttributeValue(MonthOtTimeVO.PK_PSNDOC);
+    if(StringUtils.isNotBlank(pk_psndoc)) {
+    	psnjobVO = AttendDataUtil.queryPsnJob(pk_psndoc);
+    	pk_psndoc = psnjobVO.getPk_psndoc();
+    }
+    parent.setAttributeValue(MonthOtTimeVO.PK_PSNDOC,psnjobVO.getPk_psndoc());
+    parent.setAttributeValue(MonthOtTimeVO.PK_DEPT,psnjobVO.getPk_dept());
+    parent.setAttributeValue(MonthOtTimeVO.PK_ORG,psnjobVO.getPk_org());
+    parent.setAttributeValue(MonthOtTimeVO.APPLYDATE,new UFDate());
+    parent.setAttributeValue(MonthOtTimeVO.BILLTYPE,MonthOtTimeVOConst.CONST_BILLTYPE_COST);
+    parent.setAttributeValue(MonthOtTimeVO.APPROVESTATUS, -1);
+//    String org =
+//        (String) parent.getAttributeValue(MonthOtTimeVOConst.FIELD_PK_ORG);
+    String group = CommonUtil.getGroupByOrg(psnjobVO.getPk_org());
+    if ((group != null) && !"".equals(group)) {
+      parent.setAttributeValue(MonthOtTimeVOConst.FIELD_PK_GROUP, group);
+    }
+    
+    MonthOtTimeBVO[] bvos = (MonthOtTimeBVO[]) vo.getChildrenVO();
+    if(bvos != null && bvos.length > 0) {
+    	//加班类型,1为按次ottimestype,2为普通otdatetype
+    	String otapplytype = (String) parent.getAttributeValue(MonthOtTimeVO.OTAPPLYTYPE);
+    	IMonthottimevoMaintain service = ServiceLocator.find(IMonthottimevoMaintain.class);
+    	List<Map<String, UFDate>> listMap = service.queryHoliday(pk_psndoc, psnjobVO.getPk_org());
+    	List<String> defdocList = service.queryDefdoc();//查询节假日类型主键
+    	String msg = "";
+    	String msg2 = "";
+    	Map<String,String> typeMap = new HashMap();
+    	List<DefdocVO> defVOList = service.queryDefdoc2();
+    	if(defVOList != null && defVOList.size() > 0) {
+    		for(DefdocVO defvo : defVOList) {
+    			typeMap.put(defvo.getPk_defdoc(), defvo.getName());
+    		}
+    	}
+    	for(MonthOtTimeBVO bvo : bvos) {
+    		String type = "";
+    		StringBuffer note = new StringBuffer("");
+    		if("1".equals(otapplytype)) {//按次
+    			type = (String) bvo.getAttributeValue(MonthOtTimeBVO.OTTIMESTYPE);
+    			note.append("<br>加班日期类型按次:").append(typeMap.get(bvo.getAttributeValue(MonthOtTimeBVO.OTTIMESTYPE))+"");
+    			note.append("<br>加班日期:").append(bvo.getAttributeValue(MonthOtTimeBVO.OTDATE) == null ? "" : bvo.getAttributeValue(MonthOtTimeBVO.OTDATE).toString().substring(0, 10) +"");
+    			note.append("<br>开始时间:").append(bvo.getAttributeValue(MonthOtTimeBVO.OVERTIMEBEGINTIME) == null ? "" : bvo.getAttributeValue(MonthOtTimeBVO.OVERTIMEBEGINTIME).toString() +"");
+    			note.append("<br>结束时间:").append(bvo.getAttributeValue(MonthOtTimeBVO.OVERTIMEENDTIME) == null ? "" : bvo.getAttributeValue(MonthOtTimeBVO.OVERTIMEENDTIME).toString() +"");
+    			note.append("<br>加班次数:").append(bvo.getAttributeValue(MonthOtTimeBVO.OTTIMES) == null ? "" :  new UFDouble(bvo.getAttributeValue(MonthOtTimeBVO.OTTIMES).toString(),1)+"");
+    			note.append("<br>加班说明:").append(bvo.getAttributeValue(MonthOtTimeBVO.OTDESCRIPTION) == null ? "" : bvo.getAttributeValue(MonthOtTimeBVO.OTDESCRIPTION).toString() +"");
+    			if(StringUtils.isBlank(type)) {
+    				throw new BusinessException("加班日期类型按次字段不能为空");
+    			}
+    		}else if("2".equals(otapplytype)) {//普通
+    			type = (String) bvo.getAttributeValue(MonthOtTimeBVO.OTDATETYPE);
+    			note.append("<br>加班日期类型:").append(typeMap.get(bvo.getAttributeValue(MonthOtTimeBVO.OTDATETYPE))+"");
+    			note.append("<br>加班日期:").append(bvo.getAttributeValue(MonthOtTimeBVO.OTDATE) == null ? "" : bvo.getAttributeValue(MonthOtTimeBVO.OTDATE).toString().substring(0, 10) +"");
+    			note.append("<br>开始时间:").append(bvo.getAttributeValue(MonthOtTimeBVO.OVERTIMEBEGINTIME) == null ? "" : bvo.getAttributeValue(MonthOtTimeBVO.OVERTIMEBEGINTIME).toString() +"");
+    			note.append("<br>结束时间:").append(bvo.getAttributeValue(MonthOtTimeBVO.OVERTIMEENDTIME) == null ? "" : bvo.getAttributeValue(MonthOtTimeBVO.OVERTIMEENDTIME).toString() +"");
+    			note.append("<br>加班时长小时:").append(bvo.getAttributeValue(MonthOtTimeBVO.OTHOURS) == null ? "" :  new UFDouble(bvo.getAttributeValue(MonthOtTimeBVO.OTHOURS).toString(),1)+"");
+    			note.append("<br>加班费时长:").append(bvo.getAttributeValue(MonthOtTimeBVO.OTCOSTHOURS) == null ? "" :  new UFDouble(bvo.getAttributeValue(MonthOtTimeBVO.OTCOSTHOURS).toString(),1)+"");
+    			note.append("<br>调休时长:").append(bvo.getAttributeValue(MonthOtTimeBVO.LEAVEHOURS) == null ? "" :  new UFDouble(bvo.getAttributeValue(MonthOtTimeBVO.LEAVEHOURS).toString(),1)+"");
+    			note.append("<br>加班说明:").append(bvo.getAttributeValue(MonthOtTimeBVO.OTDESCRIPTION) == null ? "" : bvo.getAttributeValue(MonthOtTimeBVO.OTDESCRIPTION).toString() +"");
+    			if(StringUtils.isBlank(type)) {
+    				throw new BusinessException("加班日期类型字段不能为空");
+    			}
+    		}
+    		
+    		bvo.setAttributeValue("note", note.toString());
+    		
+    		if(bvo.getAttributeValue(MonthOtTimeBVO.OTDATE) == null) {
+    			continue;
+    		}
+    		UFDate otdate = (UFDate) bvo.getAttributeValue(MonthOtTimeBVO.OTDATE);//加班日期是否为节假日
+    		if(this.checkDate(otdate, listMap)) {
+    			if(type.length() > 0 && !defdocList.contains(type)) {
+    				msg = "["+otdate.toString().substring(0,10)+"],";
+    			}
+    		} else {
+    			if(type.length() > 0 && defdocList.contains(type)) {
+    				msg2 = "["+otdate.toString().substring(0,10)+"],";
+    			}
+    		}
+    	}
+    	if(msg.length() > 0 && msg2.length() > 0) {
+    		throw new BusinessException("加班日期"+msg+"属于节假日加班,加班日期"+msg2+"不属于节假日加班,请选择正确的加班类型");
+    	}else if(msg.length() > 0) {
+    		throw new BusinessException("加班日期"+msg+"属于节假日加班,请选择正确的加班类型");
+    	}else if(msg2.length() > 0) {
+    		throw new BusinessException("加班日期"+msg2+"不属于节假日加班,请选择正确的加班类型");
+    	}
+    	
+    }
+    
+    String dateCheckMsg = CommonUtil.checkSelf(bvos);
+    if(dateCheckMsg != null) {
+    	throw new BusinessException("加班时间范围内存在冲突的加班单据");
+    }
+    
+    List<MonthOtTimeBVO> oldBvos = CommonUtil.getMaintainService().queryBVOByPkPsndoc(pk_psndoc);
+    if(oldBvos != null && oldBvos.size() > 0) {
+	    String dateTwoCheckMsg = CommonUtil.checkTwoList(bvos,oldBvos.toArray(new MonthOtTimeBVO[0]));
+	    if(dateTwoCheckMsg != null) {
+	    	throw new BusinessException("加班时间范围内存在冲突的加班单据");
+	    }
+    }
+  }
+  
+  /**
+   * 判断日期是否符合节假日时间
+   * @param otdate
+   * @param listMap
+   * @return
+   */
+  private Boolean checkDate(UFDate otdate,List<Map<String, UFDate>> listMap) {
+	  Boolean check = Boolean.FALSE;
+	  if(listMap != null) {
+			for(Map<String, UFDate> map : listMap) {
+				UFDate begindate = map.get("begintime");
+				UFDate enddate = map.get("endtime");
+				if(otdate.compareTo(begindate) >= 0 && otdate.compareTo(enddate) <= 0) {
+					check = Boolean.TRUE;
+					break;
+				}
+			}
+		}
+	  
+	  return check;
+  }
+  
+}

+ 0 - 0
hrkq/hrkq/src/client/nccloud/hrkq/hrkq/monthottimevo/action/MonthOtTimeVOUnCommitAction.java


Some files were not shown because too many files changed in this diff