-- 最小库存预警对象 2020.03.25
-- t_warn_earlywarn
IF NOT EXISTS (SELECT 1 FROM t_warn_earlywarn WHERE FID = '854207235851880448')
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 ('854207235851880448',1585103951743,'0',{ts'2020-03-25  10:39:11'},'0','kingdee',0,{ts'2020-03-24  13:57:17'},'custom','854207235851880448',
'<?xml version="1.0" encoding="UTF-8"?>
<EarlyWarnMetadata>
  <DevType>0</DevType>
  <ModelType>EarlyWarnModel</ModelType>
  <eaf>true</eaf>
  <Isv>kingdee</Isv>
  <ParentId></ParentId>
  <WarnElement>
    <EarlyWarnElement>
      <ConditionFormId>im_invacc_custom</ConditionFormId>
      <MessageCompilers>
        <EWPlugin>
          <ClassName>kd.scmc.im.formplugin.warn.compiler.ShelfLifeWarnMsgCompiler</ClassName>
        </EWPlugin>
      </MessageCompilers>
      <Number>IMMININVENTORYWARN</Number>
      <DataSourceId></DataSourceId>
      <Name>最小库存预警</Name>
      <Id>854207235851880448</Id>
      <DataSources>
        <EWPlugin>
          <ClassName>kd.scmc.im.formplugin.warn.datasource.MinInventoryWarnDataSource</ClassName>
        </EWPlugin>
      </DataSources>
      <DataSourceType>custom</DataSourceType>
    </EarlyWarnElement>
  </WarnElement>
  <MasterId>854207235851880448</MasterId>
  <Number>IMMININVENTORYWARN</Number>
  <BizappId>=9Q86DR2P+Q</BizappId>
  <Id>854207235851880448</Id>
  <InheritPath>854207235851880448</InheritPath>
</EarlyWarnMetadata>','854207235851880448',' ',' ','IMMININVENTORYWARN','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 = '0O+DQCBGI936')
INSERT INTO t_warn_earlywarn_l(FID,FPKID,FLOCALEID,FDATA,FNAME) VALUES ('854207235851880448','0O+DQCBGI936','en_US','<?xml version="1.0" encoding="UTF-8"?>

<EarlyWarnMetadata/>
',' '); 

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

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

<EarlyWarnMetadata/>
',' '); 
