public IEnumerable <PaymentTransaction> RetrieveDataPayment(string username, int?tahun, int?tahun2) { string allNop = string.Empty; DataTable dt = new DataTable(); dt = UserTransactionData.RetrieveAllNopByUsername(username); if (dt != null && dt.Rows.Count > 0) { foreach (DataRow item in dt.Rows) { allNop += "'" + item["NOP"].ToString() + "'" + ","; } allNop = allNop.Remove(allNop.Length - 1); } return(UserTransactionData.RetrieveDataPayment(allNop, tahun, tahun2).AsEnumerable <PaymentTransaction>()); }
public IEnumerable <VwGeneratePayment> RetrieveDataPayment(string username, string nop, int month, int year) { return(UserTransactionData.RetrieveDataPayment(username, nop, month, year).AsEnumerable <VwGeneratePayment>()); }
public IEnumerable <PaymentTransaction> RetrieveDataPayment(string username, int?tahun2) { return(UserTransactionData.RetrieveDataPayment(username, tahun2).AsEnumerable <PaymentTransaction>()); }