--销售订单变更单单据类型
IF NOT EXISTS (SELECT 1 FROM t_bas_billtype WHERE FID = 696978889204833280)
INSERT INTO t_bas_billtype (FID, FNUMBER, FBILLFORMID, FISDEFAULT, FBILLCODERULEID, FCREATORID, FCREATETIME, FMODIFIERID, FMODIFYTIME, FCONTROLPRINTCOUNT, FMAXPRINTCOUNT, FPRINTAFTERAUDIT, FDOCUMENTSTATUS, FDEFPRINTTEMPLATE, FISSYSPRESET, FPARASETTINGXML, FLAYOUTSOLUTION, FDEFWNREPORTTEMPLATE, FSTATUS, FENABLE, FBILLINITSETTING, FMASTERID) VALUES (696978889204833280, 'sm_XSalesOrder_STD_BT_S', 'sm_xsalorder', '1', ' ', 1, {ts'2018-08-08 18:08:00'}, 1, {ts'2018-08-08 18:08:00'}, '0', 1, '1', '0', ' ', '1', NULL, NULL, NULL, 'C', '1', ' ', 696978889204833280);

-- t_bas_billtype_l
IF NOT EXISTS (SELECT 1 FROM t_bas_billtype_l WHERE FPKID ='05L4H7TOQ6AC')
INSERT INTO t_bas_billtype_l (FPKID, FID, FLOCALEID, FNAME, FDESCRIPTION) VALUES ('05L4H7TOQ6AC', 696978889204833280, 'zh_CN', '标准销售订单变更单', ' ');
IF NOT EXISTS (SELECT 1 FROM t_bas_billtype_l WHERE FPKID ='05L4H7TOQ6AD')
INSERT INTO t_bas_billtype_l (FPKID, FID, FLOCALEID, FNAME, FDESCRIPTION) VALUES ('05L4H7TOQ6AD', 696978889204833280, 'zh_TW', '標準銷售訂單變更單', ' ');

--单据参数
IF NOT EXISTS (SELECT 1 FROM t_bas_billtypeparameter WHERE FBILLTYPEID = 696978889204833280 and FFORMID = 'sm_xsalorder')
INSERT INTO t_bas_billtypeparameter (FFORMID, FBILLTYPEID, FDATA) VALUES ('sm_xsalorder', 696978889204833280, '{\"biztype\":{\"number\":\"210_S\",\"masterid\":0,\"_Type_\":\"bd_biztype\",\"multilanguagetext\":[{\"_Type_\":\"locale\",\"pkid\":\"1C+/QUA7CB7R\",\"name\":\"标准销售\",\"description\":\"\",\"localeid\":\"zh_CN\"},{\"_Type_\":\"locale\",\"pkid\":\"1C+/QUA7CB7S\",\"name\":\"標準銷售\",\"description\":\"\",\"localeid\":\"zh_TW\"}],\"name\":{\"zh_TW\":\"標準銷售\",\"zh_CN\":\"标准销售\"},\"id\":422876630176775168},\"_Type_\":\"sm_billtypeparam\",\"biztype_id\":422876630176775168}');
