public bool CanNotCancelOrderInAx(string orderId) { dynamic table = new SalesTable(); var rec = table.First(salesId:orderId); if(rec != null && rec.DOCUMENTSTATUS > 0) return true; return false; }
public long GetSalesOrderRecId(string salesId) { dynamic table = new SalesTable(); var rec = table.First(salesId:salesId); if(rec != null) return rec.RECID; return 0; }