/**付款申请单 默认单据类型**/
DELETE FROM T_BAS_BILLTYPE WHERE FID = 1135477425392805888;
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 (1135477425392805888,'0','0',NULL,'1',' ','0',1135477425392805888,'C','er_applypaybill',1,' ',' ','er_applypaybill_BT_S',{ts'2018-08-08  18:08:08'},'XYK5T7CWXXO1',NULL,1063622153817286656,'1',{ts'2018-08-08  18:08:08'},'0',1063622153817286656);

/**多语言*/
DELETE FROM T_BAS_BILLTYPE_L WHERE FPKID = '1JFZ1K/BUQVB';
INSERT INTO T_BAS_BILLTYPE_L(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1135477425392805888,'1JFZ1K/BUQVB','zh_CN',' ','付款申请单');
DELETE FROM T_BAS_BILLTYPE_L WHERE FPKID = '1JFZ1K/BUQVC';
INSERT INTO T_BAS_BILLTYPE_L(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1135477425392805888,'1JFZ1K/BUQVC','zh_TW',' ','付款申請單');

/**编号规则**/
DELETE FROM t_cr_coderule WHERE FID = '1JQJN7YIXXHE';
INSERT INTO t_cr_coderule(FID,FSPLITSIGN,FCTRLMODE,FEXAMPLE,FAPPMODE,FDISABLEDATE,FMASTERID,FSTATUS,FNUMBER,FRULETYPE,FEXAMPLELENGTH,FCREATETIME,FBIZOBJECTID,FENABLE,FMODIFIERID,FISUPDATERECOVER,FMODIFYTIME,FCREATORID,FDISABLERID) VALUES ('1JQJN7YIXXHE','-','1',' ','2',NULL,'1JQJN7YIXXHE','C','1JQJD6NIG431',NULL,' ',{ts'2018-08-08  18:08:08'},'er_applypaybill','1',1063622153817286656,'0',{ts'2018-08-08  18:08:08'},0,NULL);

/**多语言*/
DELETE FROM t_cr_coderule_l WHERE FPKID = '1JQJN7YIW7IA';
INSERT INTO t_cr_coderule_l(FID,FPKID,FLOCALEID,FNAME) VALUES ('1JQJN7YIXXHE','1JQJN7YIW7IA','zh_CN','付款申请单(预置)');
DELETE FROM t_cr_coderule_l WHERE FPKID = '1JQJN7YIW7I=';
INSERT INTO t_cr_coderule_l(FID,FPKID,FLOCALEID,FNAME) VALUES ('1JQJN7YIXXHE','1JQJN7YIW7I=','zh_TW','付款申請單(預置)');

DELETE FROM t_cr_coderuleentry WHERE FENTRYID = '1JQK1IEJE+TY';
INSERT INTO t_cr_coderuleentry(FID,FINITIAL,FATTRIBUTETYPE,FSPLITSIGN,FISSORTITEM,FENTRYID,FSTEP,FCUTSTYLE,FATTUSINGMODE,FSEQ,FLENGTH,FISVISABLE,FFORMAT,FSETTINGVALUE,FADDSTYLE,FVALUEATRIBUTE,FISSPLITSIGN,FADDCHAR) VALUES ('1JQJN7YIXXHE',1,'1',' ','0','1JQK1IEJE+TY',1,'1','1',0,8,'1','AP',' ','1',' ','0',' ');
DELETE FROM t_cr_coderuleentry WHERE FENTRYID = '1JQK1IEJE+TZ';
INSERT INTO t_cr_coderuleentry(FID,FINITIAL,FATTRIBUTETYPE,FSPLITSIGN,FISSORTITEM,FENTRYID,FSTEP,FCUTSTYLE,FATTUSINGMODE,FSEQ,FLENGTH,FISVISABLE,FFORMAT,FSETTINGVALUE,FADDSTYLE,FVALUEATRIBUTE,FISSPLITSIGN,FADDCHAR) VALUES ('1JQJN7YIXXHE',1,'2','-','0','1JQK1IEJE+TZ',1,'1',' ',1,8,'1','yyyyMMdd',' ','1','createtime','1',' ');
DELETE FROM t_cr_coderuleentry WHERE FENTRYID = '1JQK1IEJE+U+';
INSERT INTO t_cr_coderuleentry(FID,FINITIAL,FATTRIBUTETYPE,FSPLITSIGN,FISSORTITEM,FENTRYID,FSTEP,FCUTSTYLE,FATTUSINGMODE,FSEQ,FLENGTH,FISVISABLE,FFORMAT,FSETTINGVALUE,FADDSTYLE,FVALUEATRIBUTE,FISSPLITSIGN,FADDCHAR) VALUES ('1JQJN7YIXXHE',1,'16','-','0','1JQK1IEJE+U+',1,'1',' ',2,4,'1',' ',' ','1',' ','1',' ');

/**特殊数据权限   人人费用和对公费用下**/
DELETE FROM t_perm_operationrule WHERE FID = '1JU5GAZZKEJ=';
INSERT INTO t_perm_operationrule(FID,FOPERATIONKEY,FRULE,FENABLED,FOPERATIONTYPE,FISPRESET,FBIZAPPID,FDESCRIPTION,FISPUBLIC,FENTITYTYPEID,FNAME) VALUES ('1JU5GAZZKEJ=','view','{"filterRow":[{"id":"1JU5GAZZKEJ7","leftBracket":"","compareType":"103","fieldName":"applier.number","rightBracket":"","logic":"1","value":[{"id":"1JU5GAZZQASX","value":""}],"baseDataIds":[]},{"id":"1JU5GAZZKEJ8","leftBracket":"","compareType":"103","fieldName":"creator.number","rightBracket":"","logic":"1","value":[{"id":"1JU5GAZZQASY","value":""}],"baseDataIds":[]},{"id":"1JU5GAZZKEJ9","leftBracket":"","compareType":"953718393159160832","fieldName":"creator.number","rightBracket":"","logic":"0","value":[{"id":"1JU5GAZZQASZ","value":""}],"baseDataIds":[]}],"forList":false}','1','view','0','18X6P1ZSXS44',' ','0','er_applypaybill','付款申请单特殊数据查看权限');
DELETE FROM t_perm_operationrule WHERE FID = '1K1GW2ZTQKN/';
INSERT INTO t_perm_operationrule(FID,FOPERATIONKEY,FRULE,FENABLED,FOPERATIONTYPE,FISPRESET,FBIZAPPID,FDESCRIPTION,FISPUBLIC,FENTITYTYPEID,FNAME) VALUES ('1K1GW2ZTQKN/','view','{"filterRow":[{"id":"1LE6Q8=/W04M","leftBracket":"","compareType":"953718393159160832","fieldName":"creator.number","rightBracket":"","logic":"1","value":[{"id":"1LE6Q8=/W0TW","value":""}],"baseDataIds":[]},{"id":"1LE6Q8=/W04N","leftBracket":"","compareType":"103","fieldName":"creator.number","rightBracket":"","logic":"1","value":[{"id":"1LE6Q8=/W0TX","value":""}],"baseDataIds":[]},{"id":"1LE6Q8=/W04O","leftBracket":"","compareType":"103","fieldName":"applier.number","rightBracket":"","logic":"0","value":[{"id":"1LE6Q8=/W0TY","value":""}],"baseDataIds":[]}],"forList":false}','1','view','0','1GARA29DA8+R',' ','0','er_applypaybill','付款申请单特殊数据查看权限-对公费用');


DELETE FROM t_perm_operationruleobj WHERE FID = '1JU5HSSJWJ1Q';
INSERT INTO t_perm_operationruleobj(FID,FOPERATIONRULEID,FBIZAPPID,FSEQ,FOBJENABLED,FENTITYTYPEID) VALUES ('1JU5HSSJWJ1Q','1JU5GAZZKEJ=','18X6P1ZSXS44',0,'1','er_applypaybill');

DELETE FROM t_perm_operationrule_l WHERE FPKID = '1JU5GAZZQAT+';
INSERT INTO t_perm_operationrule_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES ('1JU5GAZZKEJ=','1JU5GAZZQAT+','zh_CN',' ','付款申请单特殊数据查看权限');
DELETE FROM t_perm_operationrule_l WHERE FPKID = '1K1GW2ZTS=ZN';
INSERT INTO t_perm_operationrule_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES ('1K1GW2ZTQKN/','1K1GW2ZTS=ZN','zh_CN',' ','付款申请单特殊数据查看权限-对公费用');
