-- 事件订阅 采购验收单审核下推协同收货单 采购验收单（红）审核下推协同退货单
-- T_EVT_SUBSCRIPTION
DELETE FROM t_evt_subscription WHERE FID = 1393334226744532992; 
INSERT INTO t_evt_subscription
(fid, fevent, fservice, fserviceconfig, fnumber, fisconcurrent, fstatus, fexpression, fcondition, ferrorstrategy, ferrornotify, fsequence, ftimingstrategy, feventnumber, fservicenumber, fcreater, fcreatedate, fmodifier, fmodifydate, fname, fnotifytext, fexecutor, fexecutorvalue, fispreinsdata, fismodified)
VALUES(1393334226744532992, 1389691428807925760, 915117758415374336, '{"relationdesc":"执行当前实体的操作。","optype":"cosmic","entityrange":"currententity","operationname":"自动生成协同收货","filtergridap":"{\"filterRow\":[],\"forList\":false}","evententity":"pm_puracceptbill","operation":"autopushpurreceipt"}', 'pm_puracceptbill.audit.executeOperation', '1', '1', '${ model.supplier.issuppcolla == 1 && model.biztype.number NI "1131,1132" }', '{"elementid":"","expression":"${ model.supplier.issuppcolla == 1 && model.biztype.number NI \"1131,1132\" }","entryentity":[{"valuetype":"commVal","leftbracket":"","rightbracket":"","isHideExp":false,"id":"1393333395802579968","paramnumber":"model.supplier.issuppcolla","logic":"&&","operation":"==","value":"1"},{"valuetype":"commVal","leftbracket":"","rightbracket":"","isHideExp":false,"id":"1393435720495948800","paramnumber":"model.biztype.number","logic":"&&","operation":"NI","value":"1131,1132"}],"showtext":{"zh_TW":"执行条件","en_US":"执行条件","zh_CN":"执行条件"},"property":"EventConfig","description":{"zh_TW":"","en_US":"","zh_CN":""},"validtime":null,"type":"exeConditionRule"}', 'retry', '{"receivervalue":"[{\"valueshowtext\":\"采购验收单.创建人\",\"type\":\"entity\",\"value\":\"model.creator\",\"required\":false}]","receiver":"实体：采购验收单.创建人","urlvalue":"","batch":false,"url":"","content":"{\"title\":{\"zh_CN\":\"采购验收单{billno}审核时，生成协同采购收货单失败，请到异常信息列表中查看详情并激活事件再次尝试。\"},\"content\":{\"zh_CN\":\"采购验收单{billno}审核时，生成协同采购收货单失败，请到异常信息列表中查看详情并激活事件再次尝试。\"}}"}', 0, ' ', 'pm_puracceptbill.audit', 'executeOperation', 1, {ts'2018-08-08 18:08:00'}, 1, {ts'2018-08-08 18:08:00'}, '采购验收单.审核.执行操作', '实体：采购验收单.创建人', '实体：采购验收单.审核人', '[{"valueshowtext":"采购验收单.审核人","type":"entity","value":"model.auditor","required":false}]', '1', '1');

DELETE FROM t_evt_subscription WHERE FID = 1393439662453842944; 
INSERT INTO t_evt_subscription
(fid, fevent, fservice, fserviceconfig, fnumber, fisconcurrent, fstatus, fexpression, fcondition, ferrorstrategy, ferrornotify, fsequence, ftimingstrategy, feventnumber, fservicenumber, fcreater, fcreatedate, fmodifier, fmodifydate, fname, fnotifytext, fexecutor, fexecutorvalue, fispreinsdata, fismodified)
VALUES(1393439662453842944, 1389691428807925760, 915117758415374336, '{"relationdesc":"执行当前实体的操作。","optype":"cosmic","entityrange":"currententity","operationname":"自动生成协同退货","filtergridap":"{\"filterRow\":[],\"forList\":false}","evententity":"pm_puracceptbill","operation":"autopushpurreturn"}', 'pm_puracceptbill_red.audit.executeOperation', '1', '1', '${ model.supplier.issuppcolla == 1 && model.biztype.number IN "1131,1132" }', '{"elementid":"","expression":"${ model.supplier.issuppcolla == 1 && model.biztype.number IN \"1131,1132\" }","entryentity":[{"valuetype":"commVal","leftbracket":"","rightbracket":"","isHideExp":false,"id":"1393437527888651264","paramnumber":"model.supplier.issuppcolla","logic":"&&","operation":"==","value":"1"},{"valuetype":"commVal","leftbracket":"","rightbracket":"","isHideExp":false,"id":"1393437870630396928","paramnumber":"model.biztype.number","logic":"&&","operation":"IN","value":"1131,1132"}],"showtext":{"zh_TW":"执行条件","en_US":"执行条件","zh_CN":"执行条件"},"property":"EventConfig","description":{"zh_TW":"","en_US":"","zh_CN":""},"validtime":null,"type":"exeConditionRule"}', 'retry', '{"receivervalue":"[{\"valueshowtext\":\"采购验收单.创建人\",\"type\":\"entity\",\"value\":\"model.creator\",\"required\":false}]","receiver":"实体：采购验收单.创建人","urlvalue":"","batch":false,"url":"","content":"{\"title\":{\"zh_CN\":\"采购验收单（红）{billno}审核时，生成协同退货单失败，请到异常信息列表中查看详情并激活事件再次尝试。\"},\"content\":{\"zh_CN\":\"采购验收单（红）{billno}审核时，生成协同退货单失败，请到异常信息列表中查看详情并激活事件再次尝试。\"}}"}', 0, ' ', 'pm_puracceptbill.audit', 'executeOperation', 1, {ts'2018-08-08 18:08:00'}, 1, {ts'2018-08-08 18:08:00'}, '采购验收单（红）.审核.执行操作', '实体：采购验收单.创建人', '实体：采购验收单.审核人', '[{"valueshowtext":"采购验收单.审核人","type":"entity","value":"model.auditor","required":false}]', '1', '1');

DELETE FROM t_evt_subscription WHERE FID = 1405686666579936256; 
INSERT INTO t_evt_subscription
(fid, fevent, fservice, fserviceconfig, fnumber, fisconcurrent, fstatus, fexpression, fcondition, ferrorstrategy, ferrornotify, fsequence, ftimingstrategy, feventnumber, fservicenumber, fcreater, fcreatedate, fmodifier, fmodifydate, fname, fnotifytext, fexecutor, fexecutorvalue, fispreinsdata, fismodified)
VALUES(1405686666579936256, 1405683351402053632, 904236026388547584, '{"scriptid":"","type":"class","value":"{\"appid\":\"pur\",\"class\":\"kd.scm.pur.service.event.DeletePurReceiptEventService\"}"}', 'pm_puracceptbill.unaudit.executePlugin', '1', '1', '${ model.supplier.issuppcolla == 1 }', '{"elementid":"","expression":"${ model.supplier.issuppcolla == 1 }","entryentity":[{"valuetype":"commVal","leftbracket":"","rightbracket":"","isHideExp":false,"id":"1405684891332378624","paramnumber":"model.supplier.issuppcolla","logic":"&&","operation":"==","value":"1","seq":0}],"showtext":{"zh_TW":"执行条件","en_US":"执行条件","zh_CN":"执行条件"},"property":"EventConfig","description":{"zh_TW":"","en_US":"","zh_CN":""},"validtime":null,"type":"exeConditionRule"}', 'retry', '{"receivervalue":"[{\"valueshowtext\":\"采购验收单.创建人\",\"type\":\"entity\",\"value\":\"model.creator\",\"required\":false}]","receiver":"实体：采购验收单.创建人","urlvalue":"","batch":false,"url":"","content":"{\"title\":{\"zh_CN\":\"采购验收单{billno}反审核时，删除协同收货单失败，请到异常信息列表中查看详情并激活事件再次尝试。\"},\"content\":{\"zh_CN\":\"采购验收单{billno}反审核时，删除协同收货单失败，请到异常信息列表中查看详情并激活事件再次尝试。\"}}"}', 0, ' ', 'pm_puracceptbill.unaudit', 'executePlugin', 1, {ts'2018-08-08 18:08:00'}, 1, {ts'2018-08-08 18:08:00'}, '采购验收单.反审核.执行插件', '实体：采购验收单.创建人', '实体：采购验收单.审核人', '[{"valueshowtext":"采购验收单.审核人","type":"entity","value":"model.auditor","required":false}]', '1', '1');

--T_EVT_SUBSCRIPTION_L
DELETE FROM t_evt_subscription_l WHERE FPKID = '2C4AHO0WR9R5'; 
INSERT INTO t_evt_subscription_l
(fpkid, fid, flocaleid, fname, fnotifytext)
VALUES('2C4AHO0WR9R5', 1393334226744532992, 'zh_CN', '采购验收单.审核.执行操作', ' ');
DELETE FROM t_evt_subscription_l WHERE FPKID = '2C4AHO0WR9R6'; 
INSERT INTO t_evt_subscription_l
(fpkid, fid, flocaleid, fname, fnotifytext)
VALUES('2C4AHO0WR9R6', 1393334226744532992, 'zh_TW', '采購驗收單.審核.執行操作', ' ');

DELETE FROM t_evt_subscription_l WHERE FPKID = '2C4U7+1OJG2V'; 
INSERT INTO t_evt_subscription_l
(fpkid, fid, flocaleid, fname, fnotifytext)
VALUES('2C4U7+1OJG2V', 1393439662453842944, 'zh_CN', '采购验收单（红）.审核.执行操作', ' ');
DELETE FROM t_evt_subscription_l WHERE FPKID = '1QE1S1KP8MSG'; 
INSERT INTO t_evt_subscription_l
(fpkid, fid, flocaleid, fname, fnotifytext)
VALUES('1QE1S1KP8MSG', 1393439662453842944, 'zh_TW', '采購驗收單（紅）.審核.執行操作', ' ');

DELETE FROM t_evt_subscription_l WHERE FPKID = '2DNHHOR618F='; 
INSERT INTO t_evt_subscription_l
(fpkid, fid, flocaleid, fname, fnotifytext)
VALUES('2DNHHOR618F=', 1405686666579936256, 'zh_CN', '采购验收单.反审核.执行插件', ' ');
DELETE FROM t_evt_subscription_l WHERE FPKID = '2DNHHOR618FA'; 
INSERT INTO t_evt_subscription_l
(fpkid, fid, flocaleid, fname, fnotifytext)
VALUES('2DNHHOR618FA', 1405686666579936256, 'zh_TW', '采購驗收單.反審核.執行插件', ' ');
