예제 #1
0
        private void payBtn_Click(object sender, EventArgs e)
        {
            FinancialWebService.financialPortTypeClient serviceSoap = new FinancialWebService.financialPortTypeClient();
            string Getir = serviceSoap.payTheInvoice(Convert.ToString(Financial.InvoiceId), Customer.Token, AppAuthority.Authority);

            if (Convert.ToInt32(Getir) == 1)
            {
                MessageBox.Show("Payment Successful");
            }
            else
            {
                MessageBox.Show("Payment Failed!");
            }
            //MessageBox.Show(Customer.Token);
            //MessageBox.Show(AppAuthority.Authority);
            //MessageBox.Show(Convert.ToString(Financial.InvoiceId));
        }
        private void PaymentList_Load(object sender, EventArgs e)
        {
            FinancialWebService.financialPortTypeClient serviceSoap = new FinancialWebService.financialPortTypeClient();
            string[] financialList = serviceSoap.getAllInvoiceListSplit(Customer.Nick, Customer.Token, AppAuthority.Authority).Split('|');
            for (int i = 0; i < financialList.Length; i++)
            {
                string[] numara = financialList[i].Split('_');
                Financial.InvoiceId = Convert.ToInt32(numara[0]);
                Financial.Nick      = numara[1];
                Financial.Date      = numara[2];
                Financial.Time      = numara[3];
                Financial.Price     = numara[4];
                selectInvolceListbox.Items.Add(Financial.InvoiceId + "  |" + "  " + Financial.Nick + "  |" + "  " + Financial.Date + "  |" + "  " + Financial.Time + " DK   |" + "  " + Financial.Price + " AIO MONEY");


                selectInvolceListbox.Items.Add("-------------------------------------------------------------------------------------");
                selectInvolceListbox.SelectedIndex = 0;
            }
        }