/** 合同台账 预置数据 默认单据类型**/
DELETE FROM t_bas_billtype WHERE FID = 1421795442374670336;
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 (1421795442374670336,'0','0',NULL,'1',' ','0',1421795442374670336,'C','er_contractbill',1,' ',' ','er_contractbill_BT_S',{ts'2022-05-16  00:00:00'},'18YKYCMXCXDW',NULL,1279733047079645184,'1',{ts'2018-08-08  00:00:00'},'0',1279733047079645184);

DELETE FROM T_BAS_BILLTYPE_l WHERE FPKID = '2FMOC1BDF18H';
INSERT INTO T_BAS_BILLTYPE_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1421795442374670336,'2FMOC1BDF18H','zh_TW',' ','合同台賬');
DELETE FROM T_BAS_BILLTYPE_l WHERE FPKID = '2FMOC1BDF18G';
INSERT INTO T_BAS_BILLTYPE_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1421795442374670336,'2FMOC1BDF18G','zh_CN',' ','合同台账');

/** 合同台账 特殊数据权限 **/
DELETE FROM t_perm_operationrule WHERE FID = '2FPTWMV8HL0J';
INSERT INTO t_perm_operationrule(FID,FOPERATIONKEY,FRULE,FENABLED,FOPERATIONTYPE,FISPRESET,FBIZAPPID,FDESCRIPTION,FISPUBLIC,FENTITYTYPEID,FNAME) VALUES ('2FPTWMV8HL0J','view','{"filterRow":[{"id":"2POMZ3TSAQJ0","leftBracket":"","compareType":"103","fieldName":"applier.number","rightBracket":"","logic":"1","value":[{"id":"2POMZ3TS9NR9","value":""}],"baseDataIds":[]},{"id":"2POMZ3TSAQJ1","leftBracket":"","compareType":"103","fieldName":"creator.number","rightBracket":"","logic":"1","value":[{"id":"2POMZ3TS9NR=","value":""}],"baseDataIds":[]},{"id":"2POMZ3TSAQJ2","leftBracket":"","compareType":"953718393159160832","fieldName":"creator.number","rightBracket":"","logic":"1","value":[{"id":"2POMZ3TS9NRA","value":""}],"baseDataIds":[]}],"forList":false}','1','view','0','1GARA29DA8+R',' ','0','er_contractbill','合同台账单特殊数据查看');

DELETE FROM t_perm_operationruleobj WHERE FID = '2FPU8Z4+518Q';
INSERT INTO t_perm_operationruleobj(FID,FOPERATIONRULEID,FBIZAPPID,FSEQ,FOBJENABLED,FENTITYTYPEID) VALUES ('2FPU8Z4+518Q','2FPTWMV8HL0J','1GARA29DA8+R',0,'1','er_contractbill');

DELETE FROM t_perm_operationrule_l WHERE FPKID = '2FPU8FI+428B';
INSERT INTO t_perm_operationrule_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES ('2FPTWMV8HL0J','2FPU8FI+428B','zh_TW',' ','合同台賬單特殊數據查看'); 
DELETE FROM t_perm_operationrule_l WHERE FPKID = '2FPU8FI+428C';
INSERT INTO t_perm_operationrule_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES ('2FPTWMV8HL0J','2FPU8FI+428C','zh_CN',' ','合同台账单特殊数据查看'); 

