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

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

<EarlyWarnMetadata/>
','最大库存预警'); 
IF NOT EXISTS (SELECT 1 FROM t_warn_earlywarn_l WHERE FPKID = '0NY4J81PWSPV')
INSERT INTO t_warn_earlywarn_l(FID,FPKID,FLOCALEID,FDATA,FNAME) VALUES ('854360348466091008','0NY4J81PWSPV','zh_TW','<?xml version="1.0" encoding="UTF-8"?>

<EarlyWarnMetadata>
  <WarnElement>
    <EarlyWarnElement>
      <Name>最大庫存預警</Name>
    </EarlyWarnElement>
  </WarnElement>
</EarlyWarnMetadata>
','最大庫存預警'); 
