public static PaymentSummary Get(IAcreedor acreedor) { CriteriaEx criteria = Expedient.GetCriteria(Expedient.OpenSession()); if (nHManager.Instance.UseDirectSQL) criteria.Query = PaymentSummary.SELECT(acreedor); Expedient.BeginTransaction(criteria.Session); return DataPortal.Fetch<PaymentSummary>(criteria); }
public static PaymentSummary Get(ETipoAcreedor tipo, long oid) { CriteriaEx criteria = Expedient.GetCriteria(Expedient.OpenSession()); if (nHManager.Instance.UseDirectSQL) criteria.Query = SELECT(ProviderBaseInfo.New(oid, tipo)); Expedient.BeginTransaction(criteria.Session); return DataPortal.Fetch<PaymentSummary>(criteria); }