DELETE FROM t_bas_billtype WHERE FID = 1086249188917789696;
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 (1086249188917789696,'0','0',NULL,'1',' ','0',1086249188917789696,'C','sm_salesagency',1,' ',' ','sm_SalesAgency_STD_BT_S',{ts'2018-08-08 18:08:00'},'1EULGF41VQJF',NULL,1,'1',{ts'2018-08-08 18:08:00'},'1',1); 
DELETE FROM t_bas_billtype WHERE FID = 1099906002309888000;
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 (1099906002309888000,'0','0',NULL,'0',' ','0',1099906002309888000,'C','sm_salorder',1,' ',' ','sm_SalesOrder_Agency_BT_S',{ts'2018-08-08 18:08:00'},'/S6F8QA39CS6',NULL,1,'1',{ts'2018-08-08 18:08:00'},'1',1); 
DELETE FROM t_bas_billtype WHERE FID = 1114491168084739072;
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 (1114491168084739072,'0','0',NULL,'0',' ','0',1114491168084739072,'C','sm_delivernotice',1,' ',' ','sm_delivernotice_Agency_BT_S',{ts'2018-08-08 18:08:00'},'/Z0UX1YF6TQA',NULL,1,'1',{ts'2018-08-08 18:08:00'},'1',1); 

DELETE FROM t_bas_billtype_l WHERE FPKID = '1DE3+8MMG/ZA';
INSERT INTO t_bas_billtype_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1086249188917789696,'1DE3+8MMG/ZA','zh_CN',' ','标准委托代销清单'); 
DELETE FROM t_bas_billtype_l WHERE FPKID = '1DE3+8MMG/ZB';
INSERT INTO t_bas_billtype_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1086249188917789696,'1DE3+8MMG/ZB','zh_TW',' ','標準委托代銷清單'); 
DELETE FROM t_bas_billtype_l WHERE FPKID = '1F2IP79I4AVX';
INSERT INTO t_bas_billtype_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1099906002309888000,'1F2IP79I4AVX','zh_CN',' ','委托代销订单'); 
DELETE FROM t_bas_billtype_l WHERE FPKID = '1F2IP79I4AVY';
INSERT INTO t_bas_billtype_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1099906002309888000,'1F2IP79I4AVY','zh_TW',' ','委托代銷訂單'); 
DELETE FROM t_bas_billtype_l WHERE FPKID = '1GWDW1K+Q/TB';
INSERT INTO t_bas_billtype_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1114491168084739072,'1GWDW1K+Q/TB','zh_CN',' ','委托代销发货通知单'); 
DELETE FROM t_bas_billtype_l WHERE FPKID = '1GWDW1K+Q/TC';
INSERT INTO t_bas_billtype_l(FID,FPKID,FLOCALEID,FDESCRIPTION,FNAME) VALUES (1114491168084739072,'1GWDW1K+Q/TC','zh_TW',' ','委托代銷發貨通知單'); 


DELETE FROM t_bas_billtypeparameter WHERE FFORMID = 'sm_salesagency' and FBILLTYPEID = 1086249188917789696;
INSERT INTO t_bas_billtypeparameter(FFORMID,FBILLTYPEID,FDATA) VALUES ('sm_salesagency',1086249188917789696,'{"biztype":{"number":"230","masterid":688860294365375488,"_Type_":"bd_biztype","multilanguagetext":[{"_Type_":"locale","pkid":"04L8K5DQWM/D","name":"委托代销","description":"","localeid":"zh_CN"},{"_Type_":"locale","pkid":"04L8K5DQWM/E","name":"委托代銷","description":"","localeid":"zh_TW"}],"name":{"zh_TW":"委托代銷","zh_CN":"委托代销"},"id":688860294365375488},"_Type_":"sm_salesagencybtparam","biztype_id":688860294365375488}');
DELETE FROM t_bas_billtypeparameter WHERE FFORMID = 'sm_salorder' and FBILLTYPEID = 1099906002309888000;
INSERT INTO t_bas_billtypeparameter(FFORMID,FBILLTYPEID,FDATA) VALUES ('sm_salorder',1099906002309888000,'{"biztype":{"number":"230","masterid":688860294365375488,"_Type_":"bd_biztype","multilanguagetext":[{"_Type_":"locale","pkid":"04L8K5DQWM/D","name":"委托代销","description":"","localeid":"zh_CN"},{"_Type_":"locale","pkid":"04L8K5DQWM/E","name":"委托代銷","description":"","localeid":"zh_TW"}],"name":{"zh_TW":"委托代銷","zh_CN":"委托代销"},"id":688860294365375488},"_Type_":"sm_billtypeparam","biztype_id":688860294365375488,"bizcategory":"WTDX/JS"}'); 
DELETE FROM t_bas_billtypeparameter WHERE FFORMID = 'sm_delivernotice' and FBILLTYPEID = 1114491168084739072;
INSERT INTO t_bas_billtypeparameter(FFORMID,FBILLTYPEID,FDATA) VALUES ('sm_delivernotice',1114491168084739072,'{"biztype":{"number":"230","masterid":688860294365375488,"_Type_":"bd_biztype","multilanguagetext":[{"_Type_":"locale","pkid":"04L8K5DQWM/D","name":"委托代销","description":"","localeid":"zh_CN"},{"_Type_":"locale","pkid":"04L8K5DQWM/E","name":"委托代銷","description":"","localeid":"zh_TW"}],"name":{"zh_TW":"委托代銷","zh_CN":"委托代销"},"id":688860294365375488},"_Type_":"sm_billtypeparam","biztype_id":688860294365375488,"bizcategory":"WTDX/JS"}'); 
