Commit d6f21da0 by 杨清松

出差申请

parent 5ede99f0
...@@ -10,6 +10,7 @@ import com.beecode.inz.workflow.config.BizTypeWorkflowConfiguration; ...@@ -10,6 +10,7 @@ import com.beecode.inz.workflow.config.BizTypeWorkflowConfiguration;
import com.beecode.inz.workflow.config.ProcessConfiguration; import com.beecode.inz.workflow.config.ProcessConfiguration;
import com.beecode.inz.workflow.config.TriggerAction; import com.beecode.inz.workflow.config.TriggerAction;
import com.beecode.inz.workflow.config.TriggerCondition; import com.beecode.inz.workflow.config.TriggerCondition;
import com.xyst.dinas.oa.constant.BusinessTripApplyConstant;
import com.xyst.dinas.oa.constant.SealBorrowConstant; import com.xyst.dinas.oa.constant.SealBorrowConstant;
public class OaConfiguration { public class OaConfiguration {
...@@ -36,4 +37,28 @@ public class OaConfiguration { ...@@ -36,4 +37,28 @@ public class OaConfiguration {
configuration.setProcessConfiguration(processConfig); configuration.setProcessConfiguration(processConfig);
return configuration; return configuration;
} }
//出差申请审批工作流
@Bean(BusinessTripApplyConstant.WORKFLOW_BUSINESSTRIPAPPLY)
public BizTypeWorkflowConfiguration createBusinessTripApplyBizTypeInfo() {
BizTypeInfo bizTypeInfo = new BizTypeInfo(BusinessTripApplyConstant.BIZ_TYPE,
BusinessTripApplyConstant.BIZ_TITLE, BusinessTripApplyConstant.ENTITY);
BizTypeWorkflowConfiguration configuration = new BizTypeWorkflowConfiguration(bizTypeInfo);
//configuration.setLicenseKey("md_property");
TriggerCondition triggerCondition = new TriggerCondition();
configuration.setTriggerCondition(triggerCondition);
List<TriggerAction> triggerActions = new ArrayList<>();
triggerActions.add(new TriggerAction("SUBMIT",
"提交"));
triggerCondition.setTriggerActions(triggerActions);
ProcessConfiguration processConfig = new ProcessConfiguration();
processConfig.setProcessEventListener(BusinessTripApplyConstant.BUSINESSTRIPAPPLYLISTENER);
configuration.setProcessConfiguration(processConfig);
return configuration;
}
} }
package com.xyst.dinas.oa.constant;
public interface BusinessTripApplyConstant {
/**
* 流程配置
*/
String WORKFLOW_BUSINESSTRIPAPPLY = "com.xyst.dinas.oa.datamodel.config.BusinessTripApply";
/**
* 业务类型名称
*/
String BIZ_TYPE = "BusinessTripApply";
/**
* 业务类型标题
*/
String BIZ_TITLE = "出差申请";
/**
* 实体名
*/
String ENTITY = "com.xyst.dinas.oa.datamodel.BusinessTripApply";
/**
* 流程监听
*/
public static final String BUSINESSTRIPAPPLYLISTENER = "com.xyst.dinas.oa.listener";
}
...@@ -26,5 +26,5 @@ public interface SealBorrowConstant { ...@@ -26,5 +26,5 @@ public interface SealBorrowConstant {
/** /**
* 流程监听 * 流程监听
*/ */
public static final String SEALBORROWLISTENER = "com.xyst.dinas.oa.listener"; public static final String SEALBORROWLISTENER = "com.xyst.dinas.oa.listener.SealBorrowProcessEventListener";
} }
package com.xyst.dinas.oa.enumeration;
/**
* 出差带队人职务级别
*
*/
public enum LeaderJobLevelEnum {
/**
* 普通员工
*/
LABORIAL_STAFF(0),
/**
* 中层干部
*/
MIDDLE_LEVEL_CADRES(1),
/**
* 领导班子副职
*/
LEADING_GROUP_ASSISTANT(2),
/**
* 主要负责人
*/
PRINCIPAL(3);
int value;
LeaderJobLevelEnum(int value) {
this.value = value;
}
public int getValue() {
return value;
}
}
<model>
<header>
<type>bcp.biz.Bill</type>
<package>com.xyst.dinas.oa.bill</package>
<title>出差申请</title>
<name>BusinessTripApply</name>
<description>出差申请</description>
</header>
<content>
<bill>
<data>
{"baseData":{"name":"BusinessTripApply","title":"出差申请","billModel":"com.beecode.bap.biztrait.BasicBillBiztrait","functionLibrarys":[],"description":"出差申请","dataModel":"com.xyst.dinas.oa.datamodel.BusinessTripApply"},"serial":{"serialData":[{"segment":"literal","segmentData":"EM"},{"segment":"sequence","segmentData":{"start-with":0,"increment":1,"min":0,"max":99999,"length":5,"cycle":true,"cut-direction":"left","pad-string":"0","pad-direction":"left","cache-size":10}}],"buildTime":"add"},"formula":[],"workflow":{"workflow":"","processParamConfig":[]},"print":[],"authority":[]}
</data>
</bill>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.type.DataModel</type>
<package>com.xyst.dinas.oa.datamodel</package>
<title>出差申请</title>
<name>BusinessTripApply</name>
<tags></tags>
<description>出差申请</description>
<templateName>mk.ide.ui.editor.data.model.template.bill</templateName>
<tablePrefix>xyst_dinas_oa_</tablePrefix>
</header>
<content>
<dataModel id='a81b16fa-5618-470b-bb4f-b2db0d4ef1d9' multiVersion='' domainInherit='undefined' tableName='xyst_dinas_oa_business_trip_apply'>
<parent>com.beecode.bap.biztrait.datamodel.BasicBillRequirement</parent>
<parent>com.beecode.inz.common.datamodel.BaseInfo</parent>
<attribute id='068ea147-bec9-4467-b55e-3e0a0a5400f6' name='proposer' columnName='proposer' title='申请人' type='com.beecode.bap.staff.datamodel.Staff' default='' precision='' isArray='false'>
<annotation id='46c58374-9294-4241-9924-c188c8dde40f' attributeId='c9f0b378-6faa-4ee0-8dab-4509f13b43a5' name='length' value='undefined'>
</annotation>
<annotation id='9361ca94-3dc2-4c00-9fd7-5cf74cc5d1c5' attributeId='ee322e1b-e39f-48e4-8b21-6d86229e088d' name='mappingType' value='many-to-one'>
</annotation>
</attribute>
<attribute id='81f1d974-a236-4594-aee1-ef1ed645f4cb' name='department' columnName='department' title='所属部门' type='com.beecode.bap.department.datamodel.Department' default='' precision='' isArray='false'>
<annotation id='71e4572e-2eab-4895-acdd-b5cfc6e8adc8' attributeId='473b6aa9-27f5-4647-afd3-207c7dbd1f9a' name='length' value='undefined'>
</annotation>
<annotation id='c75bd784-0920-4545-8e44-9d02e95088da' attributeId='fc00e5d3-57ae-4c33-8729-fa1a64355ad7' name='mappingType' value='many-to-one'>
</annotation>
</attribute>
<attribute id='e248e6e1-d594-4cb7-b56c-4b19d3d5222d' name='applyDate' columnName='apply_date' title='申请日期' type='datetime' default='' precision='' isArray='false'>
<annotation id='b8929c39-1e66-4a0c-9d67-8fef6d8f43aa' attributeId='02ccf3e3-04df-4482-b956-da82e32b0266' name='length' value='undefined'>
</annotation>
</attribute>
<attribute id='851bce17-75a2-4cb3-ba8b-b846a7543f98' name='businessTripStartDate' columnName='business_trip_start_date' title='出差开始时间' type='datetime' default='' precision='' isArray='false'>
<annotation id='45b7cf4b-d049-45f0-97e6-2087bd6d6864' attributeId='2a7847b5-e8b6-4893-abb3-8988b5834a42' name='length' value='undefined'>
</annotation>
</attribute>
<attribute id='e02a567f-296a-4067-9a58-1b0fe08e8569' name='businessTripEndDate' columnName='business_trip_end_date' title='出差结束时间' type='datetime' default='' precision='' isArray='false'>
<annotation id='1608ea65-6df8-48af-bcc1-23cb66d6c416' attributeId='fe52c5ff-cec8-4809-bdbc-5362493006d9' name='length' value='undefined'>
</annotation>
</attribute>
<attribute id='8412f643-4587-4957-a661-4dd6547f2cbc' name='businessTripDays' columnName='business_trip_days' title='出差天数' type='int' default='' precision='' isArray='false'>
<annotation id='da8d7527-2c93-4199-98dc-178f0b8af6cc' attributeId='05d7fa9a-1593-4e57-b9a4-e5b2722e93e8' name='length' value='undefined'>
</annotation>
</attribute>
<attribute id='15c83ca8-a94c-44ed-9e9c-b964aa2661cc' name='businessTripSite' columnName='business_trip_site' title='出差地点' type='string' default='' precision='' isArray='false'>
<annotation id='b4929378-681b-450d-b6a4-c8b98be65268' attributeId='4482fe3b-7ea3-4045-afd2-323433b51db0' name='length' value='100'>
</annotation>
</attribute>
<attribute id='2fb63342-dd05-430f-b59b-2d77b09e2b11' name='leader' columnName='leader' title='带队人' type='com.beecode.bap.staff.datamodel.Staff' default='' precision='' isArray='false'>
<annotation id='20aa1251-9bd4-4f86-9b6b-d449d4071b05' attributeId='f7ff37be-086e-4b14-89e7-c0d11fcd87bd' name='length' value='undefined'>
</annotation>
<annotation id='11cd088d-43a4-400f-b81e-9b9678b641b3' attributeId='d04f1452-dd4b-4871-b8fc-fc5685bf9416' name='mappingType' value='many-to-one'>
</annotation>
</attribute>
<attribute id='05eb0769-5280-4fc2-a434-f75dbcdad9b3' name='leaderJobLevel' columnName='leader_job_level' title='带队人职务级别' type='string' default='' precision='' isArray='false'>
<annotation id='0bf95ef1-aafa-466d-8528-140c69adb2c5' attributeId='1a6004f1-98a9-4234-bec3-21f5cc4fa11c' name='length' value='100'>
</annotation>
</attribute>
<attribute id='2abe8b56-e318-4b33-a51c-e4ba91e0f3c5' name='lendReason' columnName='lend_reason' title='借出事由' type='string' default='' precision='' isArray='false'>
<annotation id='225c9526-139f-4ebf-a8c7-3a889dd0977c' attributeId='a1d41757-f413-4921-a65c-82f3de60ebcc' name='length' value='500'>
</annotation>
</attribute>
<attribute id='31682b95-565b-4df3-83f4-d6627878d907' name='departmentManagerOpinion' columnName='department_manager_opinion' title='部门经理意见' type='string' default='' precision='' isArray='false'>
<annotation id='29991a0e-8da0-47e9-8044-d4ace7257961' attributeId='353614c9-be06-4122-b47b-b9e97d021be7' name='length' value='500'>
</annotation>
</attribute>
<attribute id='45b0e9ff-7f9f-4ffd-b41e-bc1b88216319' name='leadershipOpinion' columnName='leadership_opinion' title='分管领导意见' type='string' default='' precision='' isArray='false'>
<annotation id='72f7bde3-ab3e-4829-9792-1b3ef2d05d06' attributeId='8b269594-ce27-4fc2-a8fb-1d20ac5dac68' name='length' value='500'>
</annotation>
</attribute>
<attribute id='c02cc5d2-b272-4aec-9bab-eb5a69941da3' name='generalManagerOpinion' columnName='general_manager_opinion' title='总经理意见' type='string' default='' precision='' isArray='false'>
<annotation id='a7002ed6-e9b5-4fcf-b0b9-09326d7a9f48' attributeId='3df582f6-ef8f-4f85-b739-e72b7074d801' name='length' value='500'>
</annotation>
</attribute>
<attribute id='7e4fe82f-d7dc-4eaa-8a04-de817c3b857d' name='presidentOpinion' columnName='president_opinion' title='董事长意见' type='string' default='' precision='' isArray='false'>
<annotation id='7b36ed6e-ba6d-4e89-940f-408f75623f34' attributeId='79067866-148f-4c54-b324-bd1fcbd782dd' name='length' value='500'>
</annotation>
</attribute>
<hibernate>/xyst.dinas.oa/src/main/resources/config/BusinessTripApply.hbm.xml</hibernate>
</dataModel>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>inz.query.Query</type>
<package>com.xyst.dinas.oa.query</package>
<name>BusinessTripApply</name>
<title>出差申请</title>
<tags></tags>
<description>出差申请</description>
</header>
<content>
<customQuery id='3db5f84a-7a23-4326-9b82-d366d110be3e'>
<kclass>com.xyst.dinas.oa.datamodel.BusinessTripApply</kclass>
<authorityItem>com.xyst.dinas.oa.auth.BusinessTripApplyList</authorityItem>
<innerScene title='全部'>
<id>b5382441-dd98-415f-84f0-f48eb127a6a2</id>
<javaImplement>com.beecode.inz.common.scene.CommonAllScene</javaImplement>
<defaultExecute></defaultExecute>
<hide></hide>
</innerScene>
<innerScene title='已废弃'>
<id>4a0cdae0-987e-42f7-ab54-ae76b5b72ce1</id>
<javaImplement>com.beecode.inz.common.scene.DefaultDiscardScene</javaImplement>
<defaultExecute></defaultExecute>
<hide></hide>
</innerScene>
<field title='id'>
<name>id</name>
<type>uuid</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='申请人id'>
<name>proposer.id</name>
<type>uuid</type>
<ref>
<type>一般引用</type>
<name>com.beecode.bap.staff.datamodel.Staff</name>
</ref>
<description></description>
</field>
<field title='申请人'>
<name>proposer.name</name>
<type>string</type>
<ref>
<type></type>
<name>com.beecode.bap.staff.datamodel.Staff</name>
</ref>
<description></description>
</field>
<field title='所属部门id'>
<name>department.id</name>
<type>uuid</type>
<ref>
<type></type>
<name>com.beecode.bap.department.datamodel.Department</name>
</ref>
<description></description>
</field>
<field title='所属部门名称'>
<name>department.name</name>
<type>string</type>
<ref>
<type></type>
<name>com.beecode.bap.department.datamodel.Department</name>
</ref>
<description></description>
</field>
<field title='申请日期'>
<name>applyDate</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='出差开始时间'>
<name>businessTripStartDate</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='出差结束时间'>
<name>businessTripEndDate</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='出差天数'>
<name>businessTripDays</name>
<type>int</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='出差地点'>
<name>businessTripSite</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='创建时间'>
<name>createTime</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='创建人'>
<name>creator.name</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='修改时间'>
<name>modifyTime</name>
<type>datetime</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='修改人'>
<name>modifier.name</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='废弃'>
<name>discard</name>
<type>boolean</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='带队人id'>
<name>leader.id</name>
<type>uuid</type>
<ref>
<type>一般引用</type>
<name>com.beecode.bap.staff.datamodel.Staff</name>
</ref>
<description></description>
</field>
<field title='申请人'>
<name>leader.name</name>
<type>string</type>
<ref>
<type></type>
<name>com.beecode.bap.staff.datamodel.Staff</name>
</ref>
<description></description>
</field>
<field title='借出事由'>
<name>lendReason</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='带队人职务级别'>
<name>leaderJobLevel</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='部门经理意见'>
<name>departmentManagerOpinion</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='分管领导意见'>
<name>leadershipOpinion</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='总经理意见'>
<name>generalManagerOpinion</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='董事长意见'>
<name>presidentOpinion</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='审批状态'>
<name>approveState</name>
<type>int</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='单据编号'>
<name>billCode</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
</customQuery>
</content>
</model>
\ No newline at end of file
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</ref> </ref>
<description></description> <description></description>
</field> </field>
<field title='借用人id'> <field title='申请人id'>
<name>proposer.id</name> <name>proposer.id</name>
<type>uuid</type> <type>uuid</type>
<ref> <ref>
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</ref> </ref>
<description></description> <description></description>
</field> </field>
<field title='借用人'> <field title='申请人'>
<name>proposer.name</name> <name>proposer.name</name>
<type>string</type> <type>string</type>
<ref> <ref>
......
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence">
<specification>1.0</specification>
<id>4dd0b4b5-1873-4239-a96d-4887dcf66a85</id>
<name>com.xyst.dinas.oa.bill.BusinessTripApply$sequence</name>
<title>出差申请$sequence</title>
<description>出差申请</description>
<define>bcp.sequence</define>
<define-version>1.0</define-version>
<content>
<m:sequence>
<m:start-with>0</m:start-with>
<m:increment>1</m:increment>
<m:max>99999</m:max>
<m:min>0</m:min>
<m:cycle>true</m:cycle>
<m:cache-size>10</m:cache-size>
</m:sequence>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial">
<specification>1.0</specification>
<id>014e5dc0-0048-4e97-a2d9-ca9dad8b5534</id>
<name>com.xyst.dinas.oa.bill.BusinessTripApply$serial</name>
<title>出差申请$serial</title>
<description>出差申请</description>
<define>bcp.serial</define>
<define-version>1.0</define-version>
<dependency>com.xyst.dinas.oa.bill.BusinessTripApply$sequence</dependency>
<dependency>com.xyst.dinas.oa.datamodel.BusinessTripApply</dependency>
<content>
<m:serial>
<m:input>com.xyst.dinas.oa.datamodel.BusinessTripApply</m:input>
<m:functionLibrarys/>
<m:segments>
<m:literal>
<m:value>EM</m:value>
</m:literal>
<m:sequence>
<m:length>5</m:length>
<m:pad-direction>left</m:pad-direction>
<m:pad-string>0</m:pad-string>
<m:key>com.xyst.dinas.oa.bill.BusinessTripApply$serial</m:key>
<m:sequenceName>com.xyst.dinas.oa.bill.BusinessTripApply$sequence</m:sequenceName>
</m:sequence>
</m:segments>
</m:serial>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype">
<specification>1.0</specification>
<id>dff0415d-7421-405f-908a-cf22c819280b</id>
<name>com.xyst.dinas.oa.bill.BusinessTripApply</name>
<title>出差申请</title>
<description>出差申请</description>
<define>bcp.biz.Biztype</define>
<define-version>1.0</define-version>
<dependency>com.xyst.dinas.oa.bill.BusinessTripApply$serial</dependency>
<dependency>com.beecode.bap.biztrait.BasicBillBiztrait</dependency>
<dependency>com.xyst.dinas.oa.datamodel.BusinessTripApply</dependency>
<content>
<m:biztype>
<m:type>com.xyst.dinas.oa.datamodel.BusinessTripApply</m:type>
<m:inheritances>
<m:inheritance>
<m:biztrait>com.beecode.bap.biztrait.BasicBillBiztrait</m:biztrait>
<m:config type="xml">
<m:content>&lt;billBasictraitConfig&gt;&lt;formulas/&gt;&lt;parents&gt;&lt;parent&gt;&lt;billCodeConfig&gt;&lt;serialName&gt;com.xyst.dinas.oa.bill.BusinessTripApply$serial&lt;/serialName&gt;&lt;buildTime&gt;add&lt;/buildTime&gt;&lt;/billCodeConfig&gt;&lt;/parent&gt;&lt;parent&gt;&lt;workflowConfig&gt;&lt;workflow&gt;&lt;/workflow&gt;&lt;/workflowConfig&gt;&lt;/parent&gt;&lt;parent&gt;&lt;printConfig&gt;&lt;templates/&gt;&lt;/printConfig&gt;&lt;/parent&gt;&lt;/parents&gt;&lt;functionLibrarys/&gt;&lt;/billBasictraitConfig&gt;</m:content>
</m:config>
</m:inheritance>
</m:inheritances>
<m:methodAuthorityItems/>
</m:biztype>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence">
<specification>1.0</specification> <specification>1.0</specification>
<id>b5171b7a-d99f-40fa-ade1-435c47a0d1be</id> <id>fdb23a0a-f6d9-4aa4-a2cc-93aae41d2675</id>
<name>com.xyst.dinas.oa.bill.SealBorrow$sequence</name> <name>com.xyst.dinas.oa.bill.SealBorrow$sequence</name>
<title>证章借出$sequence</title> <title>证章借出$sequence</title>
<description>证章借出</description> <description>证章借出</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial">
<specification>1.0</specification> <specification>1.0</specification>
<id>e99fb9b4-3411-42d4-bbeb-5bac24e652da</id> <id>8213cf3a-09bd-4ae7-8ed5-dae652808ba7</id>
<name>com.xyst.dinas.oa.bill.SealBorrow$serial</name> <name>com.xyst.dinas.oa.bill.SealBorrow$serial</name>
<title>证章借出$serial</title> <title>证章借出$serial</title>
<description>证章借出</description> <description>证章借出</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype">
<specification>1.0</specification> <specification>1.0</specification>
<id>2847b9ed-24c4-4871-a3db-0303bb9c2b92</id> <id>56521671-a8be-4ff9-a7bd-2cf64f5caa8e</id>
<name>com.xyst.dinas.oa.bill.SealBorrow</name> <name>com.xyst.dinas.oa.bill.SealBorrow</name>
<title>证章借出</title> <title>证章借出</title>
<description>证章借出</description> <description>证章借出</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-sequence">
<specification>1.0</specification> <specification>1.0</specification>
<id>1145e52c-a53b-4cc8-8b64-2f9b26776c99</id> <id>b3f45efd-44a7-440d-a95b-aa2d5a855b4a</id>
<name>com.xyst.dinas.oa.bill.UseCarApply$sequence</name> <name>com.xyst.dinas.oa.bill.UseCarApply$sequence</name>
<title>用车申请$sequence</title> <title>用车申请$sequence</title>
<description>用车申请</description> <description>用车申请</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-serial">
<specification>1.0</specification> <specification>1.0</specification>
<id>7e55230a-2fd5-48f8-985b-579400b34b69</id> <id>e6ccf0e5-133c-408e-a2ef-e8f6a7cc2863</id>
<name>com.xyst.dinas.oa.bill.UseCarApply$serial</name> <name>com.xyst.dinas.oa.bill.UseCarApply$serial</name>
<title>用车申请$serial</title> <title>用车申请$serial</title>
<description>用车申请</description> <description>用车申请</description>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype"> <metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-biztype">
<specification>1.0</specification> <specification>1.0</specification>
<id>c490c2eb-37ce-4e7a-ae41-e0eb45d72eb6</id> <id>50117aa0-4735-460c-a053-756e68b06eb1</id>
<name>com.xyst.dinas.oa.bill.UseCarApply</name> <name>com.xyst.dinas.oa.bill.UseCarApply</name>
<title>用车申请</title> <title>用车申请</title>
<description>用车申请</description> <description>用车申请</description>
......
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-type">
<specification>1.0</specification>
<id>a81b16fa-5618-470b-bb4f-b2db0d4ef1d9</id>
<name>com.xyst.dinas.oa.datamodel.BusinessTripApply</name>
<title>出差申请</title>
<description>出差申请</description>
<define>bcp.type.Class</define>
<define-version>1.0</define-version>
<dependency>bcp.type.constraint.StringLength</dependency>
<dependency>com.beecode.inz.common.datamodel.BaseInfo</dependency>
<dependency>com.beecode.bap.staff.datamodel.Staff</dependency>
<dependency>com.beecode.bap.biztrait.datamodel.BasicBillRequirement</dependency>
<dependency>com.beecode.bap.department.datamodel.Department</dependency>
<content>
<m:class>
<m:parents>
<m:parent>com.beecode.bap.biztrait.datamodel.BasicBillRequirement</m:parent>
<m:parent>com.beecode.inz.common.datamodel.BaseInfo</m:parent>
</m:parents>
<m:attributes>
<m:attribute>
<m:annotations/>
<m:id>068ea147-bec9-4467-b55e-3e0a0a5400f6</m:id>
<m:name>proposer</m:name>
<m:title>申请人</m:title>
<m:type>com.beecode.bap.staff.datamodel.Staff</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>81f1d974-a236-4594-aee1-ef1ed645f4cb</m:id>
<m:name>department</m:name>
<m:title>所属部门</m:title>
<m:type>com.beecode.bap.department.datamodel.Department</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>e248e6e1-d594-4cb7-b56c-4b19d3d5222d</m:id>
<m:name>applyDate</m:name>
<m:title>申请日期</m:title>
<m:type>datetime</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>851bce17-75a2-4cb3-ba8b-b846a7543f98</m:id>
<m:name>businessTripStartDate</m:name>
<m:title>出差开始时间</m:title>
<m:type>datetime</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>e02a567f-296a-4067-9a58-1b0fe08e8569</m:id>
<m:name>businessTripEndDate</m:name>
<m:title>出差结束时间</m:title>
<m:type>datetime</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>8412f643-4587-4957-a661-4dd6547f2cbc</m:id>
<m:name>businessTripDays</m:name>
<m:title>出差天数</m:title>
<m:type>int</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>bcp.type.constraint.StringLength</m:type>
<m:value>100</m:value>
</m:annotation>
</m:annotations>
<m:id>15c83ca8-a94c-44ed-9e9c-b964aa2661cc</m:id>
<m:name>businessTripSite</m:name>
<m:title>出差地点</m:title>
<m:type>string</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>2fb63342-dd05-430f-b59b-2d77b09e2b11</m:id>
<m:name>leader</m:name>
<m:title>带队人</m:title>
<m:type>com.beecode.bap.staff.datamodel.Staff</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>bcp.type.constraint.StringLength</m:type>
<m:value>100</m:value>
</m:annotation>
</m:annotations>
<m:id>05eb0769-5280-4fc2-a434-f75dbcdad9b3</m:id>
<m:name>leaderJobLevel</m:name>
<m:title>带队人职务级别</m:title>
<m:type>string</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>bcp.type.constraint.StringLength</m:type>
<m:value>500</m:value>
</m:annotation>
</m:annotations>
<m:id>2abe8b56-e318-4b33-a51c-e4ba91e0f3c5</m:id>
<m:name>lendReason</m:name>
<m:title>借出事由</m:title>
<m:type>string</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>bcp.type.constraint.StringLength</m:type>
<m:value>500</m:value>
</m:annotation>
</m:annotations>
<m:id>31682b95-565b-4df3-83f4-d6627878d907</m:id>
<m:name>departmentManagerOpinion</m:name>
<m:title>部门经理意见</m:title>
<m:type>string</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>bcp.type.constraint.StringLength</m:type>
<m:value>500</m:value>
</m:annotation>
</m:annotations>
<m:id>45b0e9ff-7f9f-4ffd-b41e-bc1b88216319</m:id>
<m:name>leadershipOpinion</m:name>
<m:title>分管领导意见</m:title>
<m:type>string</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>bcp.type.constraint.StringLength</m:type>
<m:value>500</m:value>
</m:annotation>
</m:annotations>
<m:id>c02cc5d2-b272-4aec-9bab-eb5a69941da3</m:id>
<m:name>generalManagerOpinion</m:name>
<m:title>总经理意见</m:title>
<m:type>string</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>bcp.type.constraint.StringLength</m:type>
<m:value>500</m:value>
</m:annotation>
</m:annotations>
<m:id>7e4fe82f-d7dc-4eaa-8a04-de817c3b857d</m:id>
<m:name>presidentOpinion</m:name>
<m:title>董事长意见</m:title>
<m:type>string</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
</m:attributes>
</m:class>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/inz-query">
<specification>1.0</specification>
<id>3db5f84a-7a23-4326-9b82-d366d110be3e</id>
<name>com.xyst.dinas.oa.query.BusinessTripApply</name>
<title>出差申请</title>
<description>出差申请</description>
<define>inz.query.Query</define>
<define-version>1.0</define-version>
<dependency>com.xyst.dinas.oa.datamodel.BusinessTripApply</dependency>
<content>
<m:query>
<m:type>com.xyst.dinas.oa.datamodel.BusinessTripApply</m:type>
<m:dataProcessor></m:dataProcessor>
<m:authorityItem>com.xyst.dinas.oa.auth.BusinessTripApplyList</m:authorityItem>
<m:innerScenes>
<m:innerScene>
<m:id>b5382441-dd98-415f-84f0-f48eb127a6a2</m:id>
<m:title>全部</m:title>
<m:javaImplement>com.beecode.inz.common.scene.CommonAllScene</m:javaImplement>
<m:defaultExecute></m:defaultExecute>
<m:hide></m:hide>
</m:innerScene>
<m:innerScene>
<m:id>4a0cdae0-987e-42f7-ab54-ae76b5b72ce1</m:id>
<m:title>已废弃</m:title>
<m:javaImplement>com.beecode.inz.common.scene.DefaultDiscardScene</m:javaImplement>
<m:defaultExecute></m:defaultExecute>
<m:hide></m:hide>
</m:innerScene>
</m:innerScenes>
<m:fields>
<m:field>
<m:name>id</m:name>
<m:title>id</m:title>
<m:type>uuid</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>proposer.id</m:name>
<m:title>申请人id</m:title>
<m:type>uuid</m:type>
<m:ref>
<m:name>com.beecode.bap.staff.datamodel.Staff</m:name>
<m:type>一般引用</m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>proposer.name</m:name>
<m:title>申请人</m:title>
<m:type>string</m:type>
<m:ref>
<m:name>com.beecode.bap.staff.datamodel.Staff</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>department.id</m:name>
<m:title>所属部门id</m:title>
<m:type>uuid</m:type>
<m:ref>
<m:name>com.beecode.bap.department.datamodel.Department</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>department.name</m:name>
<m:title>所属部门名称</m:title>
<m:type>string</m:type>
<m:ref>
<m:name>com.beecode.bap.department.datamodel.Department</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>applyDate</m:name>
<m:title>申请日期</m:title>
<m:type>datetime</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>businessTripStartDate</m:name>
<m:title>出差开始时间</m:title>
<m:type>datetime</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>businessTripEndDate</m:name>
<m:title>出差结束时间</m:title>
<m:type>datetime</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>businessTripDays</m:name>
<m:title>出差天数</m:title>
<m:type>int</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>businessTripSite</m:name>
<m:title>出差地点</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>createTime</m:name>
<m:title>创建时间</m:title>
<m:type>datetime</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>creator.name</m:name>
<m:title>创建人</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>modifyTime</m:name>
<m:title>修改时间</m:title>
<m:type>datetime</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>modifier.name</m:name>
<m:title>修改人</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>discard</m:name>
<m:title>废弃</m:title>
<m:type>boolean</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>leader.id</m:name>
<m:title>带队人id</m:title>
<m:type>uuid</m:type>
<m:ref>
<m:name>com.beecode.bap.staff.datamodel.Staff</m:name>
<m:type>一般引用</m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>leader.name</m:name>
<m:title>申请人</m:title>
<m:type>string</m:type>
<m:ref>
<m:name>com.beecode.bap.staff.datamodel.Staff</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>lendReason</m:name>
<m:title>借出事由</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>leaderJobLevel</m:name>
<m:title>带队人职务级别</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>departmentManagerOpinion</m:name>
<m:title>部门经理意见</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>leadershipOpinion</m:name>
<m:title>分管领导意见</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>generalManagerOpinion</m:name>
<m:title>总经理意见</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>presidentOpinion</m:name>
<m:title>董事长意见</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>approveState</m:name>
<m:title>审批状态</m:title>
<m:type>int</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>billCode</m:name>
<m:title>单据编号</m:title>
<m:type>string</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
</m:fields>
</m:query>
</content>
</metadata>
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
</m:field> </m:field>
<m:field> <m:field>
<m:name>proposer.id</m:name> <m:name>proposer.id</m:name>
<m:title>借用人id</m:title> <m:title>申请人id</m:title>
<m:type>uuid</m:type> <m:type>uuid</m:type>
<m:ref> <m:ref>
<m:name>com.beecode.bap.staff.datamodel.Staff</m:name> <m:name>com.beecode.bap.staff.datamodel.Staff</m:name>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</m:field> </m:field>
<m:field> <m:field>
<m:name>proposer.name</m:name> <m:name>proposer.name</m:name>
<m:title>借用</m:title> <m:title>申请</m:title>
<m:type>string</m:type> <m:type>string</m:type>
<m:ref> <m:ref>
<m:name>com.beecode.bap.staff.datamodel.Staff</m:name> <m:name>com.beecode.bap.staff.datamodel.Staff</m:name>
......
<?xml version="1.0" encoding="UTF-8"?>
<hibernate-mapping xmlns="http://www.hibernate.org/xsd/hibernate-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.hibernate.org/xsd/hibernate-mapping
http://www.hibernate.org/xsd/hibernate-mapping/hibernate-mapping-4.0.xsd">
<class entity-name="com.xyst.dinas.oa.datamodel.BusinessTripApply" table="xyst_dinas_oa_business_trip_apply" optimistic-lock="version">
<tuplizer entity-mode="dynamic-map" class="com.beecode.bcp.store.hibernate.KObjectEntityTuplizer"/>
<id name="id" type="uuid-binary" column="id" length="16">
<generator class="assigned" />
</id>
<version name="version" type="int" column="version"/>
<property name="createTime" type="timestamp" not-null="false">
<column name="create_time"></column>
</property>
<many-to-one name="creator" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select">
<column name="creator_id" not-null="false"/>
</many-to-one>
<property name="modifyTime" type="timestamp" not-null="false">
<column name="modify_time"></column>
</property>
<many-to-one name="modifier" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select">
<column name="modifier_id" not-null="false"/>
</many-to-one>
<property name="billState" type="nstring" not-null="false">
<column name="bill_state" length="100"></column>
</property>
<many-to-one name="bizProcess" entity-name="com.beecode.bap.workflow.datamodel.BizProcess" fetch="select">
<column name="biz_process_id" not-null="false"/>
</many-to-one>
<property name="billCode" type="nstring" not-null="false">
<column name="bill_code" length="200"></column>
</property>
<property name="discard" type="boolean" not-null="false">
<column name="discard"></column>
</property>
<property name="del" type="boolean" not-null="false">
<column name="del"></column>
</property>
<property name="approveState" type="integer" not-null="false">
<column name="approve_state"></column>
</property>
<many-to-one name="proposer" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select">
<column name="proposer" not-null="false"/>
</many-to-one>
<many-to-one name="department" entity-name="com.beecode.bap.department.datamodel.Department" fetch="select">
<column name="department" not-null="false"/>
</many-to-one>
<property name="applyDate" type="timestamp" not-null="false">
<column name="apply_date"/>
</property>
<property name="businessTripStartDate" type="timestamp" not-null="false">
<column name="business_trip_start_date"/>
</property>
<property name="businessTripEndDate" type="timestamp" not-null="false">
<column name="business_trip_end_date"/>
</property>
<property name="businessTripDays" type="int" not-null="false">
<column name="business_trip_days"></column>
</property>
<property name="businessTripSite" type="nstring" not-null="false">
<column name="business_trip_site" length="100"></column>
</property>
<many-to-one name="leader" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select">
<column name="leader" not-null="false"/>
</many-to-one>
<property name="leaderJobLevel" type="nstring" not-null="false">
<column name="leader_job_level" length="100"></column>
</property>
<property name="lendReason" type="nstring" not-null="false">
<column name="lend_reason" length="500"></column>
</property>
<property name="departmentManagerOpinion" type="nstring" not-null="false">
<column name="department_manager_opinion" length="500"></column>
</property>
<property name="leadershipOpinion" type="nstring" not-null="false">
<column name="leadership_opinion" length="500"></column>
</property>
<property name="generalManagerOpinion" type="nstring" not-null="false">
<column name="general_manager_opinion" length="500"></column>
</property>
<property name="presidentOpinion" type="nstring" not-null="false">
<column name="president_opinion" length="500"></column>
</property>
</class>
</hibernate-mapping>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment