コード例 #1
0
        public void checkRollbackPayments(DTO.University.Request.PayType payType, string stcode = "all")
        {
            var allRollbackPayments = GetStudentPaymentInquiry(payType, stcode);

            DTO.CommonClasses.PaymentDTO         pay;
            Business.Payment.bmp_PaymentBusiness bmp = new Business.Payment.bmp_PaymentBusiness();
            int result;

            foreach (DataRow dr in allRollbackPayments.Select("AppStatus='rollback' and persianDate>='" + DateTime.Now.AddDays(-30).ToPeString() + "'"))
            {
                string resultText = PaymentStatusInquery(Convert.ToInt64(dr["orderID"]), out result);
                if (result == 0)
                {
                    pay             = new DTO.CommonClasses.PaymentDTO();
                    pay.OrderId     = Convert.ToInt64(dr["orderID"]);
                    pay.ReqKey      = dr["RetrivalRefNo"].ToString();
                    pay.AppStatus   = "commit";
                    pay.TraceNumber = Convert.ToInt64(dr["TraceNumbers"]);
                    pay.Result      = result;
                    bmp.UpdateMellatRquestPayment(pay);
                }
            }
        }
コード例 #2
0
 public DataTable GetStudentPaymentInquiry(DTO.University.Request.PayType payType)
 {
     return(pDAO.GetStudentPaymentInquiry("all", (int)payType));
 }
コード例 #3
0
 public DataTable GetStudentPaymentInquiry(DTO.University.Request.PayType payType, string stcode)
 {
     return(pDAO.GetStudentPaymentInquiry(stcode, (int)payType));
 }