DELETE FROM t_meta_pluginscript WHERE FID = 'Y4UMjaPu';
INSERT INTO t_meta_pluginscript(FID,FSCRIPTNUMBER,FCREATEDATE,FCREATER,FSCRIPTCONTEXT,FTYPE,FSCRIPTTYPE,FSCRIPTMODULE,FSCRIPTNAME,FBIZAPPID,FCLASSNAME,FINDUSTRY,FSCRIPTCONTEXT_TAG,FMODIFIER,FMODIFYDATE,FDESCRIPTION,FISV,FBIZUNITID,FENGINETYPE) VALUES ('Y4UMjaPu','botp_writebackplugin_ts',{ts'2024-03-15  00:00:00'},13466739,' ',' ','11','@cosmic/dev','反写规则插件模版','0a1f79d7000000ac','@cosmic/dev/ide/mainpage/plugins/botp_writebackplugin_ts.ts',0,'import { WriteBackPlugin } from "@cosmic/bos-framework/plugin/botp/WriteBackPlugin"
import * as args from "@cosmic/bos-core/kd/bos/entity/botp/plugin/args"

let plugin = new WriteBackPlugin()

/**
 * 取源单数据之后，触发此事件：供插件读取相关的第三方单据
 */
plugin.onAfterReadSourceBill((arg: args.AfterReadSourceBillEventArgs) => {
    
})

/**
 * 执行反写规则，把当前反写量，写到源单行之后，触发此事件：用于对源单行，进行连锁更新
 */
plugin.onAfterCommitAmount((arg: args.AfterCommitAmountEventArgs) => {

})

/**
 * 源单数据保存到数据库后调用
 */
plugin.onAfterSaveSourceBill((arg: args.AfterSaveSourceBillEventArgs) => {

})

export { plugin }',13466739,{ts'2024-03-15  00:00:00'},' ','kingdee','11FUEXZBA3UJ','1'); 
