protected override bool OnBeforeDelete(DeleteEventArgs arg) { var billNo = arg.GetValue("BillNo"); arg.db.Delete("mms_sendDetail").Where("BillNo", billNo).Execute(); arg.db.Delete("mms_sendBatches").Where("BillNo", billNo).Execute(); return(base.OnBeforeDelete(arg)); }
protected override bool OnBeforeDelete(DeleteEventArgs arg) { var billNo = arg.GetValue("BillNo"); arg.db.Delete("mms_rentOutDetail").Where("BillNo", billNo).Execute(); arg.db.Delete("mms_rentOutRepaire").Where("BillNo", billNo).Execute(); arg.db.Delete("mms_rentOutReparation").Where("BillNo", billNo).Execute(); return(base.OnBeforeDelete(arg)); }
protected override bool OnBeforeDelete(DeleteEventArgs arg) { arg.db.Delete("mms_repairDetail").Where("BillNo", arg.GetValue("BillNo")).Execute(); return(base.OnBeforeDelete(arg)); }
protected override bool OnBeforeDelete(DeleteEventArgs arg) { arg.db.Delete("trade_scheduler").Where("Jobno", arg.GetValue("Jobno")).Execute(); return(base.OnBeforeDelete(arg)); }