/**合同终止单默认 单据类型**/
DELETE FROM T_BAS_BILLTYPE WHERE FID = 1459530514959816704;
INSERT INTO T_BAS_BILLTYPE(FID,FISSYSPRESET,FDOCUMENTSTATUS,FDEFWNREPORTTEMPLATE,FISDEFAULT,FDEFPRINTTEMPLATE,FCONTROLPRINTCOUNT,FMASTERID,FSTATUS,FBILLFORMID,FMAXPRINTCOUNT,FBILLCODERULEID,FBILLINITSETTING,FNUMBER,FCREATETIME,FLAYOUTSOLUTION,FPARASETTINGXML,FMODIFIERID,FENABLE,FMODIFYTIME,FPRINTAFTERAUDIT,FCREATORID) VALUES (1459530514959816704,'0','0',NULL,'0',' ','0',1459530514959816704,'C','er_contractbill',1,' ',' ','er_stopcontractbill_BT_S',{ts'2018-08-08 00:00:00'},'2K90Q778243=',NULL,1155765943016650752,'1',{ts'2018-08-08 00:00:00'},'0',1155765943016650752);

DELETE FROM T_BAS_BILLTYPE_L WHERE FPKID = '2K9G+WOCT+J2';
INSERT INTO T_BAS_BILLTYPE_L(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1459530514959816704,'2K9G+WOCT+J2','zh_CN',' ','合同终止');
DELETE FROM T_BAS_BILLTYPE_L WHERE FPKID = '2K9G+WOCT+J3';
INSERT INTO T_BAS_BILLTYPE_L(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1459530514959816704,'2K9G+WOCT+J3','zh_TW',' ','合同終止');

/** 合同终止 编号规则**/
DELETE FROM t_cr_coderule WHERE FID = '2K9DA=WQ0/QA';
INSERT INTO t_cr_coderule(FEXAMPLE,FAPPMODE,FISADDVIEW,FISAPPCONDITION,FMASTERID,FISUNIQUE,FRULETYPE,FISMODIFIABLE,FCREATETIME,FBIZOBJECTID,FENABLE,FISUPDATERECOVER,FISAPPORG,FISSERIALNUMBER,FDISABLERID,FISCHECKCODE,FID,FSPLITSIGN,FCTRLMODE,FDISABLEDATE,FISLOG,FSTATUS,FNUMBER,FEXAMPLELENGTH,FISFAST,FMODIFIERID,FISNONBREAK,FMODIFYTIME,FCREATORID) VALUES (' ','2','1','1','2K9DA=WQ0/QA','0',NULL,'0',{ts'2022-07-07  00:00:00'},'er_contractbill','1','0','0','1',NULL,'0','2K9DA=WQ0/QA','-','1',NULL,'0','C','2K9D6GJS7ZN/',' ','1',1155765943016650752,'1',{ts'2022-07-07  00:00:00'},0);

DELETE FROM t_cr_coderuleentry WHERE FENTRYID = '2K9E3E9JM=J1';
INSERT INTO t_cr_coderuleentry(FID,FINITIAL,FATTRIBUTETYPE,FSPLITSIGN,FISSORTITEM,FENTRYID,FSTEP,FCUTSTYLE,FATTUSINGMODE,FSEQ,FLENGTH,FISVISABLE,FFORMAT,FSETTINGVALUE,FADDSTYLE,FVALUEATRIBUTE,FISSPLITSIGN,FADDCHAR) VALUES ('2K9DA=WQ0/QA',1,'1',' ','0','2K9E3E9JM=J1',1,'1','1',0,8,'1','HTZZ',' ','1',' ','0',' ');
DELETE FROM t_cr_coderuleentry WHERE FENTRYID = '2K9E3E9JM=J2';
INSERT INTO t_cr_coderuleentry(FID,FINITIAL,FATTRIBUTETYPE,FSPLITSIGN,FISSORTITEM,FENTRYID,FSTEP,FCUTSTYLE,FATTUSINGMODE,FSEQ,FLENGTH,FISVISABLE,FFORMAT,FSETTINGVALUE,FADDSTYLE,FVALUEATRIBUTE,FISSPLITSIGN,FADDCHAR) VALUES ('2K9DA=WQ0/QA',1,'9','-','0','2K9E3E9JM=J2',1,'1',' ',1,8,'1','yyyyMMdd',' ','1',' ','1',' ');
DELETE FROM t_cr_coderuleentry WHERE FENTRYID = '2K9E3E9JM=J3';
INSERT INTO t_cr_coderuleentry(FID,FINITIAL,FATTRIBUTETYPE,FSPLITSIGN,FISSORTITEM,FENTRYID,FSTEP,FCUTSTYLE,FATTUSINGMODE,FSEQ,FLENGTH,FISVISABLE,FFORMAT,FSETTINGVALUE,FADDSTYLE,FVALUEATRIBUTE,FISSPLITSIGN,FADDCHAR) VALUES ('2K9DA=WQ0/QA',1,'16','-','0','2K9E3E9JM=J3',1,'1',' ',2,8,'1',' ',' ','1',' ','1',' ');

DELETE FROM t_cr_coderule_l WHERE FPKID = '2K9DA=WPXUT=';
INSERT INTO t_cr_coderule_l(FID,FPKID,FLOCALEID,FNAME) VALUES ('2K9DA=WQ0/QA','2K9DA=WPXUT=','zh_CN','合同终止单');


/** 编号规则适用条件属性值 **/

DELETE FROM t_cr_appcondprovalue WHERE FID = '2K9E0XQGKJU/';
INSERT INTO t_cr_appcondprovalue(FID,FVALUE,FAPPCONDPROID) VALUES ('2K9E0XQGKJU/','biztype_stopbill','2I3VRZLZAPNK');

DELETE FROM t_cr_appcondprovalue_l WHERE FPKID = '2K9E0XQGOQR1';
INSERT INTO t_cr_appcondprovalue_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES ('2K9E0XQGKJU/','2K9E0XQGOQR1','zh_CN',' ','合同终止');
DELETE FROM t_cr_appcondprovalue_l WHERE FPKID = '2K9E0XQGOQR2';
INSERT INTO t_cr_appcondprovalue_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES ('2K9E0XQGKJU/','2K9E0XQGOQR2','zh_TW',' ','合同終止');

/** 编号规则适用条件基础资料列表**/
DELETE FROM T_CR_AppCondition WHERE FENTRYID = '2K9DA=WQ0/QA';
INSERT INTO T_CR_AppCondition(FID,FPROPERTY,FENTRYID,FSEQ,FPROPERTYVALUE) VALUES ('2K9DA=WQ0/QA','2I3VRZLZAPNK','2K9DA=WQ0/QA',1,'2K9E0XQGKJU/');
