-- 安全库存预警对象 2020.03.25
-- t_warn_earlywarn
IF NOT EXISTS (SELECT 1 FROM t_warn_earlywarn WHERE FID = '854360866437464064')
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 ('854360866437464064',1585047751910,'0',{ts'2020-03-24  19:02:31'},'0','kingdee',0,{ts'2020-03-24  19:02:31'},'custom','854360866437464064',
'<?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>IMSAFTYINVENTORYWARN</Number>
      <DataSourceId></DataSourceId>
      <Name>安全库存预警</Name>
      <Id>854360866437464064</Id>
      <DataSources>
        <EWPlugin>
          <ClassName>kd.scmc.im.formplugin.warn.datasource.SaftyInventoryWarnDataSource</ClassName>
        </EWPlugin>
      </DataSources>
      <DataSourceType>custom</DataSourceType>
    </EarlyWarnElement>
  </WarnElement>
  <MasterId>854360866437464064</MasterId>
  <Number>IMSAFTYINVENTORYWARN</Number>
  <BizappId>=9Q86DR2P+Q</BizappId>
  <Id>854360866437464064</Id>
  <InheritPath>854360866437464064</InheritPath>
</EarlyWarnMetadata>','854360866437464064',' ',' ','IMSAFTYINVENTORYWARN','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 = '0NY4N/60+OY+')
INSERT INTO t_warn_earlywarn_l(FID,FPKID,FLOCALEID,FDATA,FNAME) VALUES ('854360866437464064','0NY4N/60+OY+','en_US','<?xml version="1.0" encoding="UTF-8"?>

<EarlyWarnMetadata/>
',' '); 

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

<EarlyWarnMetadata/>
','安全库存预警'); 

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

<EarlyWarnMetadata>
  <WarnElement>
    <EarlyWarnElement>
      <Name>安全庫存預警</Name>
    </EarlyWarnElement>
  </WarnElement>
</EarlyWarnMetadata>
','安全庫存預警'); 
