--工单汇报单默认单据类型
DELETE FROM t_bas_billtype WHERE fid = 1185440391386845184;
INSERT INTO t_bas_billtype(fid,fissyspreset,fdefwnreporttemplate,fdocumentstatus,fdefprinttemplate,fisdefault,fcontrolprintcount,fmasterid,fstatus,fbillformid,fmaxprintcount,fbillinitsetting,fbillcoderuleid,fnumber,fcreatetime,flayoutsolution,fparasettingxml,fmodifierid,fenable,fmodifytime,fprintafteraudit,fcreatorid) VALUES (1185440391386845184,'0',NULL,'0',' ','1','0',1185440391386845184,'C','pom_mftorderreport',1,' ',' ','pom_mftorderreport_BT_S',{ts'2021-06-24  00:00:00'},'114IB3/TO4XP',NULL,1158710551313022976,'1',{ts'2021-06-24  00:00:00'},'1',1158710551313022976); 

DELETE FROM t_bas_billtype_l WHERE fpkid = '1PLAEUWXE091';
INSERT INTO t_bas_billtype_l(fid,fpkid,flocaleid,fdescription,fname) VALUES (1185440391386845184,'1PLAEUWXE091','zh_CN',' ','工单汇报单'); 
DELETE FROM t_bas_billtype_l WHERE fpkid = '1PLAEUWXE092';
INSERT INTO t_bas_billtype_l(fid,fpkid,flocaleid,fdescription,fname) VALUES (1185440391386845184,'1PLAEUWXE092','zh_TW',' ','工單彙報單'); 

DELETE FROM T_BAS_BILLTYPEFLDCTL WHERE FENTRYID = 1526808869248989184;
INSERT INTO T_BAS_BILLTYPEFLDCTL(FID,FVVIEW,FISDELETED,FENTRYID,FSYSMUSTINPUT,FMUSTINPUT,FSUBMITENABLED,FEDITENABLED,FAUDITENABLED,FVINIT,FVSUBMIT,FVNEW,FENTITYFIELDKEY,FFIELDELEMENTTYPE,FVEDIT,FENABLED,FFIELDKEY,FSEQ,FDEFAULTVALUE,FDEFAULTFUNCPARAM,FVAUDIT) VALUES (1185440391386845184,'1','0',1526808869248989184,'0','1','1','1','1','1','1','1','manufacturenun',0,'1','1','manufacturenun',1,' ',' ','1'); 

--检修工单汇报单默认单据类型 pom_mroorderreport_BT_S
DELETE FROM T_BAS_BILLTYPEFLDCTL WHERE FENTRYID = 1504416965345742848;
INSERT INTO T_BAS_BILLTYPEFLDCTL(FID,FVVIEW,FISDELETED,FENTRYID,FSYSMUSTINPUT,FMUSTINPUT,FSUBMITENABLED,FEDITENABLED,FAUDITENABLED,FVINIT,FVSUBMIT,FVNEW,FENTITYFIELDKEY,FFIELDELEMENTTYPE,FVEDIT,FENABLED,FFIELDKEY,FSEQ,FDEFAULTVALUE,FDEFAULTFUNCPARAM,FVAUDIT) VALUES (1497802835742521344,'1','0',1504416965345742848,'0','1','1','1','1','1','1','1','repworkunit',0,'1','1','repworkunit',1,' ',' ','1'); 
DELETE FROM T_BAS_BILLTYPEFLDCTL WHERE FENTRYID = 1504416965345742849;
INSERT INTO T_BAS_BILLTYPEFLDCTL(FID,FVVIEW,FISDELETED,FENTRYID,FSYSMUSTINPUT,FMUSTINPUT,FSUBMITENABLED,FEDITENABLED,FAUDITENABLED,FVINIT,FVSUBMIT,FVNEW,FENTITYFIELDKEY,FFIELDELEMENTTYPE,FVEDIT,FENABLED,FFIELDKEY,FSEQ,FDEFAULTVALUE,FDEFAULTFUNCPARAM,FVAUDIT) VALUES (1497802835742521344,'1','0',1504416965345742849,'0','1','1','0','1','1','1','1','profession',0,'1','0','profession',2,' ',' ','1'); 
DELETE FROM T_BAS_BILLTYPEFLDCTL WHERE FENTRYID = 1504416965345742850;
INSERT INTO T_BAS_BILLTYPEFLDCTL(FID,FVVIEW,FISDELETED,FENTRYID,FSYSMUSTINPUT,FMUSTINPUT,FSUBMITENABLED,FEDITENABLED,FAUDITENABLED,FVINIT,FVSUBMIT,FVNEW,FENTITYFIELDKEY,FFIELDELEMENTTYPE,FVEDIT,FENABLED,FFIELDKEY,FSEQ,FDEFAULTVALUE,FDEFAULTFUNCPARAM,FVAUDIT) VALUES (1497802835742521344,'1','0',1504416965345742850,'0','1','1','0','1','1','1','1','workunit',0,'1','0','workunit',3,' ',' ','1'); 




DELETE FROM T_BAS_BILLTYPE WHERE FID = 1497802835742521344;
INSERT INTO T_BAS_BILLTYPE(FID,FISDEFAULT,FDEFPRINTTEMPLATE,FCONTROLPRINTCOUNT,FMASTERID,FSTATUS,FMAXPRINTCOUNT,FBILLFORMID,FBILLINITSETTING,FNUMBER,FLAYOUTSOLUTION,FCREATETIME,FMODIFIERID,FENABLE,FMODIFYTIME,FPRINTAFTERAUDIT,FCREATORID) VALUES (1497802835742521344,'0',' ','0',1497802835742521344,'C',1,'pom_mftorderreport',' ','pom_mroorderreport_BT_S','2OZE4PP/F4C4',{ts'2022-08-29  00:00:00'},1403462928715258880,'1',{ts'2022-09-07  00:00:00'},'1',1403462928715258880); 

DELETE FROM T_BAS_BILLTYPE_l WHERE FPKID = '2OZU/MVHZBL=';
INSERT INTO T_BAS_BILLTYPE_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1497802835742521344,'2OZU/MVHZBL=','zh_CN',' ','检修工单汇报单'); 
DELETE FROM T_BAS_BILLTYPE_l WHERE FPKID = '2OZU/MVHZBLA';
INSERT INTO T_BAS_BILLTYPE_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1497802835742521344,'2OZU/MVHZBLA','zh_TW',' ','檢修工單彙報單'); 


DELETE FROM T_BAS_BILLTYPEPARAMETER WHERE FFORMID = 'pom_mftorderreport' and FBILLTYPEID = 1497802835742521344;
INSERT INTO T_BAS_BILLTYPEPARAMETER(FFORMID,FBILLTYPEID,FDATA) VALUES ('pom_mftorderreport',1497802835742521344,'{"_Type_":"bd_billtypeparameter","entryentity":[{"_Type_":"entryentity","biztypenumber":{"number":"409","masterid":1384017474885783552,"_Type_":"bd_biztype","ispreset":true,"multilanguagetext":[{"_Type_":"locale","pkid":"2B+OPNLPENJR","name":"检修生产","description":"","localeid":"zh_CN"},{"_Type_":"locale","pkid":"2B+OPNLPENJS","name":"檢修生產","description":"","localeid":"zh_TW"}],"name":{"zh_TW":"檢修生產","GLang":"检修生产","zh_CN":"检修生产"},"id":1384017474885783552},"ispreset":true,"biztypenumber_id":1384017474885783552,"id":0,"isdefault":true,"seq":1}]}'); 

