-- 资产减值单编码规则
DELETE FROM t_cr_coderule WHERE FID = '2HK046AH1JG=';
INSERT INTO t_cr_coderule(FEXAMPLE,FAPPMODE,FISADDVIEW,FISAPPCONDITION,FMASTERID,FISUNIQUE,FISMODIFIABLE,FCREATETIME,FBIZOBJECTID,FENABLE,FISUPDATERECOVER,FISAPPORG,FISSERIALNUMBER,FISCHECKCODE,FID,FSPLITSIGN,FCTRLMODE,FISLOG,FSTATUS,FNUMBER,FEXAMPLELENGTH,FMODIFIERID,FISNONBREAK,FMODIFYTIME,FCREATORID) VALUES (' ','2','1','0','2HK046AH1JG=','0','0',{ts'2018-08-08 18:08:08'},'fa_asset_devalue','1','1','0','1','0','2HK046AH1JG=','-','1','0','C','2HK/T2S/ZLZX',' ',1,'1',{ts'2018-08-08 18:08:08'},1);

DELETE FROM t_cr_coderule_l WHERE FPKID = '2HK046AH1IT0';
INSERT INTO t_cr_coderule_l(FID,FPKID,FLOCALEID,FNAME) VALUES ('2HK046AH1JG=','2HK046AH1IT0','zh_CN','资产减值单');

DELETE FROM t_cr_coderuleentry WHERE FENTRYID = '2HK046C1PLR/';
INSERT INTO t_cr_coderuleentry(FID,FINITIAL,FATTRIBUTETYPE,FSPLITSIGN,FISSORTITEM,FENTRYID,FSTEP,FCUTSTYLE,FATTUSINGMODE,FSEQ,FLENGTH,FISVISABLE,FFORMAT,FSETTINGVALUE,FADDSTYLE,FVALUEATRIBUTE,FISSPLITSIGN,FADDCHAR) VALUES ('2HK046AH1JG=',1,'8',' ','0','2HK046C1PLR/',1,'1','3',0,8,'1',' ',' ','1','org.number','0',' ');
DELETE FROM t_cr_coderuleentry WHERE FENTRYID = '2HK046C1PLR0';
INSERT INTO t_cr_coderuleentry(FID,FINITIAL,FATTRIBUTETYPE,FSPLITSIGN,FISSORTITEM,FENTRYID,FSTEP,FCUTSTYLE,FATTUSINGMODE,FSEQ,FLENGTH,FISVISABLE,FFORMAT,FSETTINGVALUE,FADDSTYLE,FVALUEATRIBUTE,FISSPLITSIGN,FADDCHAR) VALUES ('2HK046AH1JG=',1,'8','-','0','2HK046C1PLR0',1,'1','3',1,8,'1',' ',' ','1','depreuse.number','1',' ');
DELETE FROM t_cr_coderuleentry WHERE FENTRYID = '2HK046C1PLR1';
INSERT INTO t_cr_coderuleentry(FID,FINITIAL,FATTRIBUTETYPE,FSPLITSIGN,FISSORTITEM,FENTRYID,FSTEP,FCUTSTYLE,FATTUSINGMODE,FSEQ,FLENGTH,FISVISABLE,FFORMAT,FSETTINGVALUE,FADDSTYLE,FVALUEATRIBUTE,FISSPLITSIGN,FADDCHAR) VALUES ('2HK046AH1JG=',1,'8','-','0','2HK046C1PLR1',1,'1','3',2,8,'1',' ',' ','1','devalueperiod.number','1',' ');
DELETE FROM t_cr_coderuleentry WHERE FENTRYID = '2HK046C1PLR2';
INSERT INTO t_cr_coderuleentry(FID,FINITIAL,FATTRIBUTETYPE,FSPLITSIGN,FISSORTITEM,FENTRYID,FSTEP,FCUTSTYLE,FATTUSINGMODE,FSEQ,FLENGTH,FISVISABLE,FFORMAT,FSETTINGVALUE,FADDSTYLE,FVALUEATRIBUTE,FISSPLITSIGN,FADDCHAR) VALUES ('2HK046AH1JG=',1,'16','-','0','2HK046C1PLR2',1,'1',' ',3,4,'1',' ',' ','1',' ','1',' ');