Пример #1
0
 public void TranslatePaymentDetailBDOTopaymentDetailsDTO(PaymentDetailsBDO pdbdo, PaymentDetail pd)
 {
     pd.Amout = pdbdo.Amout;
     pd.DetailNumber = pdbdo.DetailNumber;
     pd.FeeID = pdbdo.FeeID;
     pd.ORNo = pdbdo.ORNo;
 }
Пример #2
0
        public PaymentDetail GetPaymentDetail(int ORNo)
        {
            List<PaymentDetail> pdList = new List<PaymentDetail>();
            pdList = GetAllPaymentDetails();
            PaymentDetail pd = new PaymentDetail();
            pd = pdList.Find(pdl => pdl.ORNo == ORNo);

            return pd;
        }
Пример #3
0
 public List<PaymentDetail> GetAllPaymentDetails()
 {
     List<PaymentDetail> pdList = new List<PaymentDetail>();
     foreach (PaymentDetailsBDO pdbdo in pdLogic.GetAllPaymentDetails())
     {
         PaymentDetail pd = new PaymentDetail();
         TranslatePaymentDetailBDOTopaymentDetailsDTO(pdbdo, pd);
         pdList.Add(pd);
     }
     return pdList;
 }
Пример #4
0
 public List<PaymentDetail> GetAllPaymentDetails(int ORNo)
 {
     List<PaymentDetail> pdlist = new List<PaymentDetail>();
     foreach (PaymentDetailsBDO pdbdo in plogic.GetAllPaymentDetails(ORNo))
     {
         PaymentDetail pd = new PaymentDetail();
         TranslatePaymentDetailsBDOToPaymentDetailsDTO(pdbdo, pd);
         pdlist.Add(pd);
     }
     return pdlist;
 }
Пример #5
0
 public List<PaymentDetail> ToPaymentDetailsList(List<PaymentDetailsBDO> pdbdoList)
 {
     List<PaymentDetail> pdList = new List<PaymentDetail>();
     foreach (PaymentDetailsBDO pdbdo in pdbdoList)
     {
         PaymentDetail pd = new PaymentDetail();
         TranslatePaymentDetailsBDOToPaymentDetailsDTO(pdbdo, pd);
         pdList.Add(pd);
     }
     return pdList;
 }
Пример #6
0
 public void TranslatePaymentDetailsToPaymentDetailsBDO(PaymentDetail payment, PaymentDetailsBDO pdbdo)
 {
     pdbdo.Amout = payment.Amout;
     pdbdo.DetailNumber = payment.DetailNumber;
     pdbdo.FeeID = payment.FeeID;
     pdbdo.ORNo = payment.ORNo;
 }
Пример #7
0
 public bool CreatePaymentDetail(ref PaymentDetail pd, ref string message)
 {
     PaymentDetailsBDO pdbdo = new PaymentDetailsBDO();
     TranslatePaymentDetailsDTOToPaymentDetailsBDO(pd, pdbdo);
     return pdLogic.CreatePaymentDetail(ref pdbdo, ref message);
 }