private PromoPrint()
        {
            InitializeComponent();
            try
            {
                txtPrinterName.Text = Settings.VoucherPrinterName.ToUpper();
                IIssueTicket objCashDeskOperator = IssueTicketBusinessObject.CreateInstance();
                string       CurrencySymbol      = new RegionInfo(CurrentSiteCulture).CurrencySymbol;
                lblPromoTickAmt.Content    = "Promotional Voucher Amount in  " + CurrencySymbol + ":";
                lblTotPromoTickVal.Content = "Total Promotional Voucher Value in " + CurrencySymbol + ":";
                if (Settings.VoucherPrinterName.ToUpper() == "COUPONEXPRESS")
                {
                    txtSerialNumber.Text = objCashDeskOperator.GetPrinterInformation();
                }

                else
                {
                    lblSerialNumber.Visibility = Visibility.Collapsed;
                }

                txtPromoTickAmt.TextChanged += new TextChangedEventHandler(txtPromoTickAmt_TextChanged);
                txtPromoTickAmt.AddHandler(TextBox.PreviewKeyDownEvent, new KeyEventHandler(txtPromoTickAmt_KeyDown), true);


                var d = Convert.ToDecimal(1.1);
                decimal.TryParse(d.ToString(new CultureInfo(ExtensionMethods.CurrentCurrenyCulture)), NumberStyles.Currency, new CultureInfo(ExtensionMethods.CurrentCurrenyCulture), out d);
                sFormat = d.ToString(new CultureInfo(ExtensionMethods.CurrentCurrenyCulture)).Substring(1, 1);
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }
예제 #2
0
        public bool ValidateUserCage(string strUser, string strPass)
        {
            bool retVal = false;

            try
            {
                IIssueTicket objCashDeskOperator = IssueTicketBusinessObject.CreateInstance();
                strPass = CryptographyHelper.GetHashString(strPass);
                retVal  = objCashDeskOperator.ValidateUserCage(strUser, strPass);
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
            return(retVal);
        }