Exemplo n.º 1
0
 public void TranslatePaymentDetailsDTOToPaymentDetailsBDO(PaymentDetail pd, PaymentDetailsBDO pdbdo)
 {
     pdbdo.Amout = pd.Amout;
     pdbdo.DetailNumber = pd.DetailNumber;
     pdbdo.FeeID = pd.FeeID;
     pdbdo.ORNo = pd.ORNo;
 }
Exemplo n.º 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;
        }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 5
0
 public bool CreatePaymentDetail(ref PaymentDetail pd, ref string message)
 {
     PaymentDetailsBDO pdbdo = new PaymentDetailsBDO();
     TranslatePaymentDetailsDTOToPaymentDetailsBDO(pd, pdbdo);
     return pdLogic.CreatePaymentDetail(ref pdbdo, ref message);
 }
Exemplo n.º 6
0
 public List<PaymentDetail> ToPaymentDetailDTO(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;
 }
Exemplo n.º 7
0
 public void TranslatePaymentDetailsToPaymentDetailsBDO(PaymentDetail payment, PaymentDetailsBDO pdbdo)
 {
     pdbdo.Amout = payment.Amout;
     pdbdo.DetailNumber = payment.DetailNumber;
     pdbdo.FeeID = payment.FeeID;
     pdbdo.ORNo = payment.ORNo;
 }