示例#1
0
        // 계좌 선택
        private void AccountList_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            blindDriver.Navigate().GoToUrl("https://spib.wooribank.com/pib/Dream?withyou=PSINQ0028"); // 상세조회 화면
            Thread.Sleep(1000);
            blindDriver.ExecuteScript("beforeAddDate('4');");

            try
            {
                while (blindDriver.FindElement(By.CssSelector(".pop-content")).Displayed)
                {
                    Thread.Sleep(1000);
                }
            }
            catch (Exception)
            {
                Console.WriteLine("조회중");
            }

            List <PayVO> list = new List <PayVO>();

            IReadOnlyCollection <IWebElement> elList = blindDriver.FindElements(By.CssSelector(".gridHeaderTableDefault .grid_body_row"));

            foreach (IWebElement el in elList)
            {
                PayVO payVO = new PayVO();
                payVO.No      = el.FindElement(By.CssSelector("td:nth-child(1)")).Text;
                payVO.PayDt   = el.FindElement(By.CssSelector("td:nth-child(2)")).Text;
                payVO.Briefs  = el.FindElement(By.CssSelector("td:nth-child(3)")).Text;
                payVO.Memo    = el.FindElement(By.CssSelector("td:nth-child(4)")).Text;
                payVO.OutAmt  = el.FindElement(By.CssSelector("td:nth-child(5)")).Text;
                payVO.InAmt   = el.FindElement(By.CssSelector("td:nth-child(6)")).Text;
                payVO.Balance = el.FindElement(By.CssSelector("td:nth-child(7)")).Text;
                payVO.Point   = el.FindElement(By.CssSelector("td:nth-child(8)")).Text;

                list.Add(payVO);
            }

            PayList.ItemsSource = list;
        }
示例#2
0
    /// <summary>
    /// 获取商品信息返回
    /// </summary>
    /// <param name="bytes"></param>
    //private void GetProductionHandler(byte[] bytes)
    //{
    //    var getProductListS2C = NetMgr.Instance.DeSerializes<GetProductListS2C>(bytes);
    //    productList = getProductListS2C.productInfo;
    //    SendNotification(NotificationConstant.MEDI_HALL_PRODUCTUPDATE);
    //}

    /// <summary>
    /// 获取订单信息返回
    /// </summary>
    /// <param name="bytes"></param>
    private void GetOrderInfoHandler(byte[] bytes)
    {
        var   getOrderInfoS2C = NetMgr.Instance.DeSerializes <GetOrderInfoS2C>(bytes);
        PayVO payVO           = new PayVO();

        payVO.money         = (getOrderInfoS2C.amount * 100).ToString();
        payVO.subject       = getOrderInfoS2C.goodsName;
        payVO.pricePointDec = getOrderInfoS2C.goodsName;
        payVO.outTradeNo    = getOrderInfoS2C.payid;
        Debug.Log(JsonUtility.ToJson(payVO));

        if (GlobalData.sdkPlatform == SDKPlatform.ANDROID)
        {
            AndroidSdkInterface.FWPay(JsonUtility.ToJson(payVO));
        }
        else if (GlobalData.sdkPlatform == SDKPlatform.IOS)
        {
            IOSSdkInterface.otherPay(JsonUtility.ToJson(payVO));
            orderTimeId = Timer.Instance.AddTimer(5, 24, 5, () => {
                NetMgr.Instance.SendBuff <GetUserInfoC2S>(SocketType.HALL, MsgNoC2S.C2S_Hall_GET_USERINFO.GetHashCode(), 0, new GetUserInfoC2S(), true);
            });
        }
    }
示例#3
0
        // 목록 클릭
        //private void PayList_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
        //{
        //    DataGrid dg = sender as DataGrid;
        //    if (dg.SelectedItems.Count > 0) {
        //        PayVO vo = (PayVO)dg.SelectedItems[0];

        //        //var collection = ControllDB.db.GetCollection<PayVO>("turbo");
        //        //collection.Find(x => x.Id == vo.Id).First();
        //        this.Button_Click_1(null, null);

        //        SubWindow.Worker.Text = vo.Worker;
        //        SubWindow.CompNum.Text = vo.CompNum;
        //        SubWindow.Amt.Text = vo.Amt.ToString();
        //        SubWindow.Company.Text = vo.Company;

        //        SubWindow.BtnSave.Visibility = Visibility.Collapsed;
        //        SubWindow.BtnModify.Visibility = Visibility.Visible;

        //        Console.WriteLine(vo.Id);
        //    }
        //}

        private void PayList_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGrid dg = sender as DataGrid;

            if (dg.SelectedItems.Count > 0)
            {
                PayVO vo = (PayVO)dg.SelectedItems[0];

                //var collection = ControllDB.db.GetCollection<PayVO>("turbo");
                //collection.Find(x => x.Id == vo.Id).First();
                this.Button_Click_1(null, null);

                SubWindow.Worker.Text        = vo.Worker;
                SubWindow.CompNum.Text       = vo.CompNum;
                SubWindow.Amt.Text           = vo.Amt.ToString();
                SubWindow.Company.Text       = vo.Company;
                SubWindow.PayDt.SelectedDate = DateTime.Parse(vo.PayDt);

                SubWindow.BtnSave.Visibility   = Visibility.Collapsed;
                SubWindow.BtnModify.Visibility = Visibility.Visible;

                //Console.WriteLine(vo.Id);
            }
        }