示例#1
0
        /// <summary>
        /// 결제 타입 선택 페이지 결과
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnSelectedPayType(object sender, PayTypeEventArgs e)
        {
            // 현재 결제 방법 저장
            mCurrentPayType = e.selected_paytype;

            // 결제 방법에 따른 다음 페이지 표시
            string nextPageName = NextPage(this.mCurrentPayType, PAGES.FormPayType);

            DisplayPage(nextPageName);
        }
示例#2
0
        private void ucPayTypeButton_UserUsageHistoryInquiry_Click(object sender, EventArgs e)
        {
            if (OnSelectedPayType == null)
            {
                return;
            }

            OnSelectedPayType(this, new PayTypeEventArgs(PAY_TYPE.UserUsageHistoryInquiry));

            XPayType = PAY_TYPE.UserUsageHistoryInquiry;
        }
示例#3
0
        private void ucPayTypeButton_OderCancellation_Click(object sender, EventArgs e)
        {
            if (OnSelectedPayType == null)
            {
                return;
            }

            OnSelectedPayType(this, new PayTypeEventArgs(PAY_TYPE.OderCancellation));

            XPayType = PAY_TYPE.OderCancellation;
        }
示例#4
0
        private void ucPayTypeButton_DigicapTokenPayment_Click(object sender, EventArgs e)
        {
            if (OnSelectedPayType == null)
            {
                return;
            }

            OnSelectedPayType(this, new PayTypeEventArgs(PAY_TYPE.DigicapTokenPayment));

            XPayType = PAY_TYPE.DigicapTokenPayment;
        }
示例#5
0
        /// <summary>
        /// 결제 모드에 따른 다음 페이지 이름 얻기
        /// </summary>
        private string NextPage(PAY_TYPE aPayType, PAGES aCurrentPages)
        {
            string nextPageName = string.Empty;

            switch (mCurrentPayType)
            {
            case PAY_TYPE.MonthlyDeduction:
            {
                //string currentPageName = Enum.GetName(typeof(PAGES), aCurrentPages);
                int pageIdx = this.ListMonthlyDeductionSequence.IndexOf(aCurrentPages);
                if (pageIdx++ <= this.ListMonthlyDeductionSequence.Count - 1)
                {
                    nextPageName = this.ListMonthlyDeductionSequence[pageIdx++].ToString();
                }
                else
                {
                    nextPageName = string.Empty;
                }
            }
            break;

            case PAY_TYPE.CustomerPayment:
            {
                int pageIdx = this.ListCustomerPayment.IndexOf(aCurrentPages);
                if (pageIdx++ <= this.ListCustomerPayment.Count - 1)
                {
                    nextPageName = this.ListCustomerPayment[pageIdx++].ToString();
                }
                else
                {
                    nextPageName = string.Empty;
                }
            }
            break;

            case PAY_TYPE.OderCancellation:
            {
                int pageIdx = this.ListOderCancellation.IndexOf(aCurrentPages);
                if (pageIdx++ <= this.ListOderCancellation.Count - 1)
                {
                    nextPageName = this.ListOderCancellation[pageIdx++].ToString();
                }
                else
                {
                    nextPageName = string.Empty;
                }
            }
            break;

            case PAY_TYPE.UserUsageHistoryInquiry:
            {
                int pageIdx = this.ListUserUsageHistoryInquiry.IndexOf(aCurrentPages);
                if (pageIdx++ <= this.ListUserUsageHistoryInquiry.Count - 1)
                {
                    nextPageName = this.ListUserUsageHistoryInquiry[pageIdx++].ToString();
                }
                else
                {
                    nextPageName = string.Empty;
                }
            }
            break;
            }

            return(nextPageName);
        }
示例#6
0
 public PayTypeEventArgs(PAY_TYPE aPayType)
 {
     this.selected_paytype = aPayType;
 }