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);
        }
Exemple #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);
        }
Exemple #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 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());
            }
        }