protected override void OnEnter()
        {
            m_entity = GetBusinessEntity() as YAEntity;

            ////资费和包时长
            //StringBuilder strArr = new StringBuilder();
            //strArr.Append(m_entity.Price1.ToString("########0.00"));
            //strArr.Append(",");
            //strArr.Append(m_entity.Price2.ToString("########0.00"));
            //strArr.Append("|");
            //strArr.Append("6,9,12");
            ////选择的资费和包时长
            //string strIndex = "";
            //if (m_entity.SelectPrice != 0 && m_entity.SelectMonth != 0)
            //    strIndex = m_entity.SelectPrice.ToString("########0.00") + "," + m_entity.SelectMonth;

            //InvokeScript("initSelect", new object[] { strArr.ToString(), strIndex });

            GetElementById("UserNo").InnerText   = m_entity.UserID;
            GetElementById("UserName").InnerText = m_entity.UserName;
            GetElementById("Amount").InnerText   = m_entity.QueryAmount.ToString("########0.00") + " 元";
            GetElementById("EndDate").InnerText  = m_entity.QueryDateEnd;
            GetElementById("Back").Click        += new HtmlElementEventHandler(Back_Click);
            GetElementById("Ok").Click          += new HtmlElementEventHandler(Ok_Click);
            GetElementById("Return").Click      += new HtmlElementEventHandler(Return_Click);
        }
예제 #2
0
        private void Ele_Click(object sender, HtmlElementEventArgs e)
        {
            HtmlElement ele    = (HtmlElement)sender;
            YAEntity    entity = GetBusinessEntity() as YAEntity;

            switch (ele.Id)
            {
            case "Gas":
                entity.PublishPayType = YaPublishPayType.Gas;
                break;

            case "Water":
                entity.PublishPayType = YaPublishPayType.Water;
                break;

            case "Power":
                entity.PublishPayType = YaPublishPayType.Power;
                break;

            case "TV":
                entity.PublishPayType = YaPublishPayType.TV;
                break;
            }
            Log.Info("雅安公共事业缴费:" + entity.PublishPayType);
            StartActivity("雅安支付输入用户号");
        }
        protected override void OnEnter()
        {
            DestroySelf();//设置成自动销毁,每次重新生成
            bemvInit  = false;
            bisICCard = false;
            m_entity  = GetBusinessEntity() as YAEntity;
            emv       = new EMVTransProcess();

            if (CommonData.UserCardType == UserBankCardType.ICCard ||
                CommonData.UserCardType == UserBankCardType.IcMagCard)
            {
                bisICCard = true;
            }

            if (SyncTransaction(new CReverse_PowerPay()) == TransResult.E_RECV_FAIL)
            {
                ShowMessageAndGotoMain("交易超时,请重试");
                return;
            }

            if (bisICCard)//如果是IC卡,或是复合卡
            {
                PostSync(EMVProcess);
                if (!bemvInit)
                {
                    ShowMessageAndGotoMain("IC卡初始化失败,请重试");
                    return;
                }
            }

            PayProcess();
        }
예제 #4
0
        private void Money_Click(object sender, HtmlElementEventArgs e)
        {
            string ID = "";

            if (sender is HtmlElement)
            {
                ID = (sender as HtmlElement).Id;
            }
            else
            {
                ID = (string)sender;
            }
            YAEntity entity = GetBusinessEntity() as YAEntity;

            switch (ID)
            {
            case "Money1":
                entity.SelectPrice = 25.00;
                break;

            case "Money2":
                entity.SelectPrice = 30.00;
                break;
            }
            Log.Info("广电缴费选择预缴费类型:" + entity.SelectPrice.ToString("#####0.00") + "/月");
            StartActivity("雅安广电费选择包月类型");
        }
예제 #5
0
        private void Month_Click(object sender, HtmlElementEventArgs e)
        {
            string ID = "";

            if (sender is HtmlElement)
            {
                ID = (sender as HtmlElement).Id;
            }
            else
            {
                ID = (string)sender;
            }
            YAEntity entity = GetBusinessEntity() as YAEntity;

            switch (ID)
            {
            case "Month1":
                entity.SelectMonth = 6;
                break;

            case "Month2":
                entity.SelectMonth = 9;
                break;

            case "Month3":
                entity.SelectMonth = 12;
                break;
            }
            Log.Info("广电缴费选择预包月类型:" + entity.SelectMonth.ToString() + "个月");

            CommonData.Amount = entity.SelectMonth * entity.SelectPrice + entity.QueryAmount;
            StartActivity("雅安支付金额确认");
        }
예제 #6
0
        protected override void OnEnter()
        {
            YAEntity entity = GetBusinessEntity() as YAEntity;

            GetElementById("UserName").InnerText  = entity.TPUserName;
            GetElementById("UserID").InnerText    = entity.TPUserID;
            GetElementById("Fee").InnerText       = entity.TPFeeAmount.ToString("########0.00") + " 元";
            GetElementById("Amount").InnerText    = entity.TPPrinAmount.ToString("########0.00") + " 元";
            GetElementById("PayAmount").InnerText = entity.TPPayAmount.ToString("########0.00") + " 元";

            GetElementById("Back").Click   += Back_Click;
            GetElementById("Ok").Click     += Ok_Click;
            GetElementById("Return").Click += Return_Click;
        }
        protected override void OnEnter()
        {
            YAEntity entity = GetBusinessEntity() as YAEntity;

            GetElementById("UserNo").InnerText    = entity.UserID;
            GetElementById("UserName").InnerText  = entity.UserName;
            GetElementById("Address").InnerText   = entity.UserAddress;
            GetElementById("Amount").InnerText    = entity.QueryAmount.ToString("########0.00") + " 元";
            GetElementById("StartDate").InnerText = entity.QueryDateStart;
            GetElementById("EndDate").InnerText   = entity.QueryDateEnd;

            GetElementById("Back").Click   += new HtmlElementEventHandler(Back_Click);
            GetElementById("Ok").Click     += new HtmlElementEventHandler(Ok_Click);
            GetElementById("Return").Click += new HtmlElementEventHandler(Return_Click);
        }
        protected override void OnEnter()
        {
            YAEntity entity = GetBusinessEntity() as YAEntity;

            GetElementById("UserNo").InnerText    = entity.UserID;
            GetElementById("UserName").InnerText  = entity.UserName;
            GetElementById("Address").InnerText   = entity.UserAddress;
            GetElementById("Fee").InnerText       = entity.WaterFee.ToString("########0.00") + " 元";
            GetElementById("Amount").InnerText    = entity.QueryAmount.ToString("########0.00") + " 元";
            GetElementById("PayAmount").InnerText = entity.WaterTotalAmount.ToString("########0.00") + " 元";

            GetElementById("Back").Click   += Back_Click;
            GetElementById("Ok").Click     += Ok_Click;
            GetElementById("Return").Click += Return_Click;
        }
예제 #9
0
        protected override void OnEnter()
        {
            _entity = GetBusinessEntity() as YAEntity;
            GetElementById("license").InnerText = ConfigFile.ReadConfigAndCreate("AppData", "LicensePlate", "川");
            GetElementById("Ok").Click         += new System.Windows.Forms.HtmlElementEventHandler(OK_Click);
            GetElementById("Return").Click     += new System.Windows.Forms.HtmlElementEventHandler(Return_Click);
            GetElementById("carNO").Focus();
            GetElementById("carNO").GotFocus     += new System.Windows.Forms.HtmlElementEventHandler(GotFocusString);
            GetElementById("carID").GotFocus     += new System.Windows.Forms.HtmlElementEventHandler(GotFocusInt);
            GetElementById("licenseNo").GotFocus += new System.Windows.Forms.HtmlElementEventHandler(GotFocusString);

            GetElementById("carID").LostFocus     += new System.Windows.Forms.HtmlElementEventHandler(LostFocus);
            GetElementById("carNO").LostFocus     += new System.Windows.Forms.HtmlElementEventHandler(LostFocus);
            GetElementById("licenseNo").LostFocus += new System.Windows.Forms.HtmlElementEventHandler(LostFocus);
        }
예제 #10
0
        protected override void OnEnter()
        {
            YAEntity entity = GetBusinessEntity() as YAEntity;
            CYAPublishPayBillQuery infoQuery = new CYAPublishPayBillQuery();
            TransResult            ret       = SyncTransaction(infoQuery);

            if (ret == TransResult.E_SUCC)
            {
                switch (entity.PublishPayType)
                {
                case YaPublishPayType.Gas:
                    StartActivity("雅安气费账单信息");
                    break;

                case YaPublishPayType.Water:
                    StartActivity("雅安水费账单信息");
                    break;

                case YaPublishPayType.Power:
                    break;

                case YaPublishPayType.TV:
                    StartActivity("雅安广电费账单信息");
                    break;
                }
            }
            else if (ret == TransResult.E_HOST_FAIL)
            {
                if (infoQuery.ReturnCode == "D3")
                {
                    ShowMessageAndGotoMain("验证密码失败!请提供正确用户名!");
                }
                else
                {
                    ShowMessageAndGotoMain(infoQuery.ReturnCode + "-" + infoQuery.ReturnMessage);
                }
            }
            else if (ret == TransResult.E_RECV_FAIL)
            {
                ShowMessageAndGotoMain("交易超时,请重试");
            }
            else
            {
                ShowMessageAndGotoMain("交易失败,请重试");
            }
        }
예제 #11
0
        private string _index;//当前显示的明细序号

        protected override void OnEnter()
        {
            _entity    = (YAEntity)GetBusinessEntity();
            _dicDetail = new Dictionary <string, string>();
            _dicMain   = new Dictionary <string, string>();
            _dicMain.Add(_entity.CurrentIndex, _entity.InquiryInfo);

            GetElementById("page").InnerText         = _entity.CurrentIndex;
            GetElementById("licensePlant").InnerText = _entity.LicensePlant;
            ShowMainData();

            GetElementById("left").Click  += new HtmlElementEventHandler(AboveDataClick);
            GetElementById("right").Click += new HtmlElementEventHandler(BehindDataClick);

            GetElementById("Return").Click      += new HtmlElementEventHandler(Return_Click);
            GetElementById("Ok").Click          += new HtmlElementEventHandler(Ok_Click);
            GetElementById("errMsgClose").Click += new HtmlElementEventHandler(Close_Click);
            GetElementById("MsgClose").Click    += new HtmlElementEventHandler(Close_Click);
        }