--委外完工入库单	im_mdc_omcmplinbill_OPM_S	工序加工结算
DELETE FROM T_BAS_BILLTYPE WHERE FID = 1421713311166131200;
INSERT INTO T_BAS_BILLTYPE(FID,FISDEFAULT,FDEFPRINTTEMPLATE,FCONTROLPRINTCOUNT,FMASTERID,FSTATUS,FMAXPRINTCOUNT,FBILLFORMID,FBILLINITSETTING,FNUMBER,FCREATETIME,FLAYOUTSOLUTION,FMODIFIERID,FENABLE,FMODIFYTIME,FPRINTAFTERAUDIT,FCREATORID) VALUES (1421713311166131200,'0',' ','0',1421713311166131200,'C',1,'im_mdc_omcmplinbill',' ','im_mdc_omcmplinbill_OPM_S',{ts'2022-05-16  00:00:00'},'2F8WVR+K1E3Q',1,'1',{ts'2022-05-16  00:00:00'},'1',1); 

DELETE FROM T_BAS_BILLTYPE_l WHERE FPKID = '2FM=/KCW6NFQ';
INSERT INTO T_BAS_BILLTYPE_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1421713311166131200,'2FM=/KCW6NFQ','zh_CN',' ','工序委外接收');
DELETE FROM T_BAS_BILLTYPE_l WHERE FPKID = '2FM=/KCW6NFR';
INSERT INTO T_BAS_BILLTYPE_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1421713311166131200,'2FM=/KCW6NFR','zh_TW',' ','工序委外接收');


--工序加工结算 单据类型参数
DELETE FROM T_BAS_BILLTYPEPARAMETER WHERE FFORMID = 'im_mdc_omcmplinbill' and FBILLTYPEID = 1421713311166131200;
INSERT INTO t_bas_billtypeparameter(FFORMID,FBILLTYPEID,FDATA) VALUES ('im_mdc_omcmplinbill',1421713311166131200,'{"_Type_":"bd_billtypeparameter","entryentity":[{"_Type_":"entryentity","biztypenumber":{"number":"604","masterid":1448629546520676352,"_Type_":"bd_biztype","multilanguagetext":[{"_Type_":"locale","pkid":"2IY86Q/DDEGT","name":"工序委外","description":"","localeid":"zh_CN"},{"_Type_":"locale","pkid":"2IY86Q/DDEGU","name":"工序委外","description":"","localeid":"zh_TW"}],"ispreset":true,"name":{"zh_TW":"工序委外","GLang":"工序委外","zh_CN":"工序委外"},"id":1448629546520676352},"ispreset":true,"biztypenumber_id":1448629546520676352,"id":0,"isdefault":true,"seq":1},{"_Type_":"entryentity","biztypenumber":{"number":"6041","masterid":1448630870343681024,"_Type_":"bd_biztype","multilanguagetext":[{"_Type_":"locale","pkid":"2IY8FC7WXX=S","name":"工序委外退货","description":"","localeid":"zh_CN"},{"_Type_":"locale","pkid":"2IY8FC7WXX=T","name":"工序委外退貨","description":"","localeid":"zh_TW"}],"ispreset":true,"name":{"zh_TW":"工序委外退貨","GLang":"工序委外退货","zh_CN":"工序委外退货"},"id":1448630870343681024},"ispreset":true,"biztypenumber_id":1448630870343681024,"id":0,"isdefault":false,"seq":2}]}'); 

