/* 2022-7-18 单据关系属性图-单据摘要-主表  */

DELETE FROM t_wf_mbillsummarycfg WHERE FID = 1465360222129267712;
IF NOT EXISTS (select fid from t_wf_mbillsummarycfg where fbilltype = 'src_apply')
INSERT INTO t_wf_mbillsummarycfg(FID,FTPLNAME,FSCENE,FMASTERID,FSTATUS,FNUMBER,FNAME,FCREATETIME,FSUMMARYTPL,FENABLE,FMODIFIERID,FBILLTYPE,FDEFAULTDATAROWS,FMODIFYTIME,FCREATORID,FDEFAULTROWS) VALUES (1465360222129267712,'单据关系图卡片模板','billRelationCardSummary',1465360222129267712,'A','src_apply_BBC_S',' ',{ts'2022-07-15  00:00:00'},'bpm_billrelation_cardtpl','1',13466739,'src_apply',3,{ts'2022-08-03  00:00:00'},13466739,6); 

/* 2022-7-18 消息主题-单据流程属性预置-多语言表  */

DELETE FROM t_wf_mbillsummarycfg_l WHERE FPKID = '2L+D8VTHAHLO';
IF EXISTS (select fid from t_wf_mbillsummarycfg where fid = '1465360222129267712')
INSERT INTO t_wf_mbillsummarycfg_l(FID,FPKID,FLOCALEID,FNAME) VALUES (1465360222129267712,'2L+D8VTHAHLO','en_US','寻源申请单据摘要'); 
DELETE FROM t_wf_mbillsummarycfg_l WHERE FPKID = '2L+D8VTHAHLM';
IF EXISTS (select fid from t_wf_mbillsummarycfg where fid = '1465360222129267712')
INSERT INTO t_wf_mbillsummarycfg_l(FID,FPKID,FLOCALEID,FNAME) VALUES (1465360222129267712,'2L+D8VTHAHLM','zh_CN','寻源申请卡片');  
DELETE FROM t_wf_mbillsummarycfg_l WHERE FPKID = '2L+D8VTHAHLN';
IF EXISTS (select fid from t_wf_mbillsummarycfg where fid = '1465360222129267712')
INSERT INTO t_wf_mbillsummarycfg_l(FID,FPKID,FLOCALEID,FNAME) VALUES (1465360222129267712,'2L+D8VTHAHLN','zh_TW','尋源申請卡片');  

/* 2022-7-18 消息主题-单据流程属性预置-分录表  */


DELETE FROM t_wf_mbillsumarycfgentry WHERE FENTRYID = 1467400353908564992;
IF EXISTS (select fid from t_wf_mbillsummarycfg where fid = '1465360222129267712')
INSERT INTO t_wf_mbillsumarycfgentry(FID,FFONTSIZE,FENTRYLOCATION,FCONTENT,FENTRYID,FFIELDID,FENTRYLOCATIONNAME,FFIELDTYPE,FENTRYLOCATIONID,FISHEADFIELD,FFONTCOLOR,FFIELDPERCEN,FEDITABLE,FFIELDKEY,FAGGREGATEFUNCTION,FSEQ,FFIELDNAME,FISDEFAULTSHOW,FSHOWCONTENT) VALUES (1465360222129267712,0,' ',' ',1467400353908564992,' ',' ',' ',' ','0',' ',' ','0',' ',' ',1,' ','1','需求组织：{model.org.name}'); 
DELETE FROM t_wf_mbillsumarycfgentry WHERE FENTRYID = 1467400353908564993;
IF EXISTS (select fid from t_wf_mbillsummarycfg where fid = '1465360222129267712')
INSERT INTO t_wf_mbillsumarycfgentry(FID,FFONTSIZE,FENTRYLOCATION,FCONTENT,FENTRYID,FFIELDID,FENTRYLOCATIONNAME,FFIELDTYPE,FENTRYLOCATIONID,FISHEADFIELD,FFONTCOLOR,FFIELDPERCEN,FEDITABLE,FFIELDKEY,FAGGREGATEFUNCTION,FSEQ,FFIELDNAME,FISDEFAULTSHOW,FSHOWCONTENT) VALUES (1465360222129267712,0,' ',' ',1467400353908564993,' ',' ',' ',' ','0',' ',' ','0',' ',' ',2,' ','1','创建人：{model.creator.name}'); 
DELETE FROM t_wf_mbillsumarycfgentry WHERE FENTRYID = 1467400353908564994;
IF EXISTS (select fid from t_wf_mbillsummarycfg where fid = '1465360222129267712')
INSERT INTO t_wf_mbillsumarycfgentry(FID,FFONTSIZE,FENTRYLOCATION,FCONTENT,FENTRYID,FFIELDID,FENTRYLOCATIONNAME,FFIELDTYPE,FENTRYLOCATIONID,FISHEADFIELD,FFONTCOLOR,FFIELDPERCEN,FEDITABLE,FFIELDKEY,FAGGREGATEFUNCTION,FSEQ,FFIELDNAME,FISDEFAULTSHOW,FSHOWCONTENT) VALUES (1465360222129267712,0,' ',' ',1467400353908564994,' ',' ',' ',' ','0',' ',' ','0',' ',' ',3,' ','1','申请日期：{reqdatetime}'); 