-- 再订货点库存预警对象 2020.03.25
-- t_warn_earlywarn
IF NOT EXISTS (SELECT 1 FROM t_warn_earlywarn WHERE FID = '854361659605521408')
INSERT INTO t_warn_earlywarn(FID,FVERSION,FISTEMPLATE,FMODIFYDATE,FTYPE,FISV,FTIMESTAMP,FCREATEDATE,FDATASOURCETYPE,FINHERITPATH,FDATA,FMASTERID,FPARENTID,FDATASOURCEID,FNUMBER,FCONDITIONFORMID,FMODIFIERID,FENABLED,FBIZAPPID,FLEAF,FCREATORID,FMODELTYPE) VALUES ('854361659605521408',1585047846462,'0',{ts'2020-03-24  19:04:06'},'0','kingdee',0,{ts'2020-03-24  19:04:06'},'custom','854361659605521408',
'<?xml version="1.0" encoding="UTF-8"?>
<EarlyWarnMetadata>
  <DevType>0</DevType>
  <ModelType>EarlyWarnModel</ModelType>
  <eaf>true</eaf>
  <ParentId></ParentId>
  <WarnElement>
    <EarlyWarnElement>
      <ConditionFormId>im_invacc_custom</ConditionFormId>
      <MessageCompilers>
        <EWPlugin>
          <ClassName>kd.scmc.im.formplugin.warn.compiler.ShelfLifeWarnMsgCompiler</ClassName>
        </EWPlugin>
      </MessageCompilers>
      <Number>IMREORDERINVENTORYWARN</Number>
      <DataSourceId></DataSourceId>
      <Name>再订货点预警</Name>
      <Id>854361659605521408</Id>
      <DataSources>
        <EWPlugin>
          <ClassName>kd.scmc.im.formplugin.warn.datasource.ReorderPointInventoryWarnDataSource</ClassName>
        </EWPlugin>
      </DataSources>
      <DataSourceType>custom</DataSourceType>
    </EarlyWarnElement>
  </WarnElement>
  <MasterId>854361659605521408</MasterId>
  <Number>IMREORDERINVENTORYWARN</Number>
  <BizappId>=9Q86DR2P+Q</BizappId>
  <Id>854361659605521408</Id>
  <InheritPath>854361659605521408</InheritPath>
</EarlyWarnMetadata>','854361659605521408',' ',' ','IMREORDERINVENTORYWARN','im_invacc_custom',853353486505814016,'0','=9Q86DR2P+Q','1',853353486505814016,'EarlyWarnModel'); 




-- 再订货点库存预警对象多语言
-- t_warn_earlywarn_l
IF NOT EXISTS (SELECT 1 FROM t_warn_earlywarn_l WHERE FPKID = '0NY4SSKXTSIE')
INSERT INTO t_warn_earlywarn_l(FID,FPKID,FLOCALEID,FDATA,FNAME) VALUES ('854361659605521408','0NY4SSKXTSIE','en_US','<?xml version="1.0" encoding="UTF-8"?>

<EarlyWarnMetadata/>
',' '); 

IF NOT EXISTS (SELECT 1 FROM t_warn_earlywarn_l WHERE FPKID = '0NY4SSKXTSID')
INSERT INTO t_warn_earlywarn_l(FID,FPKID,FLOCALEID,FDATA,FNAME) VALUES ('854361659605521408','0NY4SSKXTSID','zh_CN','<?xml version="1.0" encoding="UTF-8"?>

<EarlyWarnMetadata/>
','再订货点预警'); 

IF NOT EXISTS (SELECT 1 FROM t_warn_earlywarn_l WHERE FPKID = '0NY4SSKXTVWO')
INSERT INTO t_warn_earlywarn_l(FID,FPKID,FLOCALEID,FDATA,FNAME) VALUES ('854361659605521408','0NY4SSKXTVWO','zh_TW','<?xml version="1.0" encoding="UTF-8"?>

<EarlyWarnMetadata>
  <WarnElement>
    <EarlyWarnElement>
      <Name>再訂貨點預警</Name>
    </EarlyWarnElement>
  </WarnElement>
</EarlyWarnMetadata>
','再訂貨點預警'); 
