public RePrintNote(IMainFrm mainFrm, User user, TicketPrinter printer)
        {
            InitializeComponent();

            this.mainFrm = mainFrm;
            this._user   = user;
            this.printer = printer;

            strURL = string.Format("{0}/IotM/SFXT/Payment.html", LoginChecker.getInstance().CompanyAccount.ServiceURL);
            this.webKitBrowser1.Url = new System.Uri(strURL, System.UriKind.Absolute);
        }
Пример #2
0
        public PrintTicket(TicketPrinter printer, ChongZhiData chongzhiData, bool isPrev)
        {
            InitializeComponent();
            this.isPrev       = isPrev;
            id                = chongzhiData.AID;
            this.chongzhiData = chongzhiData;
            ticketPrinter     = printer;
            isRePrint         = Convert.ToBoolean(chongzhiData.IsPrint);

            strURL = string.Format("{0}/IotM/SFXT/Payment.html", LoginChecker.getInstance().CompanyAccount.ServiceURL);
            this.webKitBrowser1.Url = new System.Uri(strURL, System.UriKind.Absolute);
        }
Пример #3
0
        public PrintTicket(TicketPrinter printer, PayResult result, User user, bool isPrev)
        {
            InitializeComponent();
            this.pay      = result;
            this.user     = user;
            this.isPrev   = isPrev;
            ticketPrinter = printer;
            id            = result.ID;

            strURL = string.Format("{0}/IotM/SFXT/Payment.html", LoginChecker.getInstance().CompanyAccount.ServiceURL);
            this.webKitBrowser1.Url = new System.Uri(strURL, System.UriKind.Absolute);
        }
 public Payment(IMainFrm mainFrm, User user)
 {
     InitializeComponent();
     this._user   = user;
     this.mainFrm = mainFrm;
     if (this._user != null)
     {
         this.txtUserId.Text   = this._user.UserID;
         this.txtUserName.Text = this._user.UserName;
         this.txtMeterNo.Text  = this._user.MeterNo;
         this.txtAddress.Text  = this._user.Address;
     }
     this.txtAmount.Select(0, 1);
     strURL = string.Format("{0}/IotM/SFXT/Payment.html", LoginChecker.getInstance().CompanyAccount.ServiceURL);
     this.webKitBrowser1.Url = new System.Uri(strURL, System.UriKind.Absolute);
 }
        public PayManageForm(IMainFrm mainFrm)
        {
            InitializeComponent();
            this.mainFrm = mainFrm;
            this.btnPrinterSelect.Visible = mainFrm.IsExist(1024);

            if (LoginChecker.getInstance().Login(mainFrm))
            {
                //登录成功
                string strURL = string.Format("{0}/IotM/SFXT/Payment.html", LoginChecker.getInstance().CompanyAccount.ServiceURL);
                Uri    url    = new System.Uri(strURL, System.UriKind.Absolute);
                this.webKitBrowser1.Url = url;
            }
            else
            {
                this.webKitBrowser1.Url = new System.Uri(string.Format("{0}/{1}", LoginChecker.getInstance().CompanyAccount.ServiceURL,
                                                                       "Fail.html"), System.UriKind.Absolute);;
            }
            //需要增加票据模版定义功能
            using (CompanyAccountServiceBF bf = new CompanyAccountServiceBF())
            {
                this.printer = new TicketPrinter(bf.ICompanyAccount.GetIotPayTicketTemplate());
            }
        }