-- 新增领料申请的单据类型 2019-9-6
-- t_bas_billtype
IF NOT EXISTS (SELECT 1 FROM t_bas_billtype WHERE FID = 706361563384290304)
insert into t_bas_billtype (FID, FNUMBER, FBILLFORMID, FISDEFAULT, FBILLCODERULEID, FCREATORID, FCREATETIME, FMODIFIERID, FMODIFYTIME, FCONTROLPRINTCOUNT, FMAXPRINTCOUNT, FPRINTAFTERAUDIT, FDOCUMENTSTATUS, FDEFPRINTTEMPLATE, FISSYSPRESET, FLAYOUTSOLUTION, FDEFWNREPORTTEMPLATE, FSTATUS, FENABLE, FMASTERID, FPARASETTINGXML, FBILLINITSETTING)
values (706361563384290304, 'im_MaterialReqBill_STD_BT_S', 'im_materialreqbill', '1', ' ', 1, {ts'2019-08-22 18:08:00'}, 1, {ts'2019-08-22 18:08:00'}, '0', '1', '1', '0', ' ', '0', '05OMY9VZ33W4', null, 'C', '1', '706361563384290304', ' ', ' ');

-- t_bas_billtype_l
IF NOT EXISTS (SELECT 1 FROM t_bas_billtype_l WHERE FPKID = '06R2LLWQ96AV')
insert into t_bas_billtype_l (FPKID, FID, FLOCALEID, FNAME, FDESCRIPTION) values ('06R2LLWQ96AV', 706361563384290304, 'zh_CN', '标准领料申请单', ' ');
IF NOT EXISTS (SELECT 1 FROM t_bas_billtype_l WHERE FPKID = '06R2LLWQ96AW')
insert into t_bas_billtype_l (FPKID, FID, FLOCALEID, FNAME, FDESCRIPTION) values ('06R2LLWQ96AW', 706361563384290304, 'zh_TW', '標準領料申請單', ' ');

-- t_bas_billtypeparameter
IF NOT EXISTS (SELECT 1 FROM t_bas_billtypeparameter WHERE FBILLTYPEID = 706361563384290304)
insert into t_bas_billtypeparameter (FFORMID, FBILLTYPEID, FDATA)
values ('im_materialreqbill', 706361563384290304, '{"biztype":{"number":"320","masterid":688863581240093696,"_Type_":"bd_biztype","multilanguagetext":[{"_Type_":"locale","pkid":"04L963HQBPS=","name":"普通领料","description":"","localeid":"zh_CN"},{"_Type_":"locale","pkid":"04L963HQBPSA","name":"普通領料","description":"","localeid":"zh_TW"}],"name":{"zh_TW":"普通領料","zh_CN":"普通领料"},"id":688863581240093696},"_Type_":"im_billtypeparameter","biztype_id":688863581240093696}');

