-- 业务预警对象 2020.03.23
-- t_warn_earlywarn
IF NOT EXISTS (SELECT 1 FROM t_warn_earlywarn WHERE FID = '843227158695402496')
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 ('843227158695402496',1584063976337,'0',{ts'2020-03-13  09:46:16'},'0','kingdee',0,{ts'2020-03-09  10:21:50'},'custom','843227158695402496',
'<?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>IMSHILFLIFEWARNCUS</Number>
      <DataSourceId></DataSourceId>
      <Name>即时库存预警</Name>
      <Id>843227158695402496</Id>
      <DataSources>
        <EWPlugin>
          <ClassName>kd.scmc.im.formplugin.warn.datasource.ShelfLifeWarnDataSource</ClassName>
        </EWPlugin>
      </DataSources>
      <DataSourceType>custom</DataSourceType>
    </EarlyWarnElement>
  </WarnElement>
  <MasterId>843227158695402496</MasterId>
  <Number>IMSHILFLIFEWARNCUS</Number>
  <BizappId>=9Q86DR2P+Q</BizappId>
  <Id>843227158695402496</Id>
  <InheritPath>843227158695402496</InheritPath>
</EarlyWarnMetadata>','843227158695402496',' ',' ','IMSHILFLIFEWARNCUS','im_invacc_custom',843194178153232384,'0','=9Q86DR2P+Q','1',843194178153232384,'EarlyWarnModel'); 


-- 业务预警对象多语言
-- t_warn_earlywarn_l
IF NOT EXISTS (SELECT 1 FROM t_warn_earlywarn_l WHERE FPKID = '0MXLP3S7MPZI')
INSERT INTO t_warn_earlywarn_l(FID,FPKID,FLOCALEID,FDATA,FNAME) VALUES ('843227158695402496','0MXLP3S7MPZI','zh_CN','<?xml version="1.0" encoding="UTF-8"?>

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

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

<EarlyWarnMetadata/>
',' '); 