Exemple #1
0
        private void BalanceWnd_Load(object sender, System.EventArgs e)
        {
            lblCurrency.Text = "Begginning Balance Amount (" + CompanyDetails.Currency + ")";
            try
            { this.BackgroundImage = new Bitmap(Application.StartupPath + "/images/Background.jpg"); }
            catch {}
            try
            { this.imgIcon.Image = new Bitmap(Application.StartupPath + "/images/Balance.jpg"); }
            catch {}
            try
            { this.cmdCancel.Image = new Bitmap(Application.StartupPath + "/images/blank_medium_dark_red.jpg"); }
            catch { }

            if (TerminalDetails.WithRestaurantFeatures)
            {
                this.keyboardNoControl1 = new AceSoft.KeyBoardHook.KeyboardNoControl();
                //
                // keyboardNoControl1
                //
                this.keyboardNoControl1.BackColor       = System.Drawing.Color.White;
                this.keyboardNoControl1.commandBlank1   = AceSoft.KeyBoardHook.CommandBlank1.Clear;
                this.keyboardNoControl1.commandBlank2   = AceSoft.KeyBoardHook.CommandBlank2.SelectAll;
                this.keyboardNoControl1.Location        = new System.Drawing.Point(400, 334);
                this.keyboardNoControl1.Name            = "keyboardNoControl1";
                this.keyboardNoControl1.Size            = new System.Drawing.Size(208, 172);
                this.keyboardNoControl1.TabIndex        = 86;
                this.keyboardNoControl1.TabStop         = false;
                this.keyboardNoControl1.Visible         = false;
                this.keyboardNoControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardNoControl1_UserKeyPressed);

                this.Controls.Add(this.keyboardNoControl1);

                keyboardNoControl1.Visible = TerminalDetails.WithRestaurantFeatures;
            }
        }
Exemple #2
0
        private void DebitPaymentWnd_Load(object sender, System.EventArgs e)
        {
            if (TerminalDetails.WithRestaurantFeatures)
            {
                this.keyboardSearchControl1 = new AceSoft.KeyBoardHook.KeyboardSearchControl();
                this.keyboardNoControl1     = new AceSoft.KeyBoardHook.KeyboardNoControl();

                //
                // keyboardSearchControl1
                //
                this.keyboardSearchControl1.BackColor       = System.Drawing.Color.White;
                this.keyboardSearchControl1.Location        = new System.Drawing.Point(91, 310);
                this.keyboardSearchControl1.Name            = "keyboardSearchControl1";
                this.keyboardSearchControl1.Size            = new System.Drawing.Size(799, 134);
                this.keyboardSearchControl1.TabIndex        = 87;
                this.keyboardSearchControl1.TabStop         = false;
                this.keyboardSearchControl1.Tag             = "";
                this.keyboardSearchControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardSearchControl1_UserKeyPressed);
                //
                // keyboardNoControl1
                //
                this.keyboardNoControl1.BackColor       = System.Drawing.Color.White;
                this.keyboardNoControl1.commandBlank1   = AceSoft.KeyBoardHook.CommandBlank1.Up;
                this.keyboardNoControl1.commandBlank2   = AceSoft.KeyBoardHook.CommandBlank2.Down;
                this.keyboardNoControl1.Location        = new System.Drawing.Point(412, 310);
                this.keyboardNoControl1.Name            = "keyboardNoControl1";
                this.keyboardNoControl1.Size            = new System.Drawing.Size(208, 172);
                this.keyboardNoControl1.TabIndex        = 88;
                this.keyboardNoControl1.TabStop         = false;
                this.keyboardNoControl1.Visible         = false;
                this.keyboardNoControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardNoControl1_UserKeyPressed);

                this.Controls.Add(this.keyboardSearchControl1);
                this.Controls.Add(this.keyboardNoControl1);

                keyboardNoControl1.Visible     = TerminalDetails.WithRestaurantFeatures;
                keyboardSearchControl1.Visible = false;
            }
            lblAllowedDebit.Text  = mdecAllowedDebit.ToString("#,##0.#0");
            lblBalanceAmount.Text = mdecBalanceAmount.ToString("#,##0.#0");
            txtAmount.Text        = mdecBalanceAmount.ToString("#,##0.#0");
            lblDebit.Text         = "Debit Amount (" + CompanyDetails.Currency + ")";
            if (mboIsRefund)
            {
                lblDebitOrDeposit.Text = "Current Balance to be deposited.";
            }
            else
            {
                lblDebitOrDeposit.Text = "Current Balance to be paid.";
            }
        }
Exemple #3
0
        private void CashPaymentWnd_Load(object sender, System.EventArgs e)
        {
            if (TerminalDetails.WithRestaurantFeatures)
            {
                this.keyboardNoControl1     = new AceSoft.KeyBoardHook.KeyboardNoControl();
                this.keyboardSearchControl1 = new AceSoft.KeyBoardHook.KeyboardSearchControl();
                //
                // keyboardNoControl1
                //
                this.keyboardNoControl1.BackColor       = System.Drawing.Color.White;
                this.keyboardNoControl1.commandBlank1   = AceSoft.KeyBoardHook.CommandBlank1.Clear;
                this.keyboardNoControl1.commandBlank2   = AceSoft.KeyBoardHook.CommandBlank2.SelectAll;
                this.keyboardNoControl1.Location        = new System.Drawing.Point(412, 310);
                this.keyboardNoControl1.Name            = "keyboardNoControl1";
                this.keyboardNoControl1.Size            = new System.Drawing.Size(208, 172);
                this.keyboardNoControl1.TabIndex        = 86;
                this.keyboardNoControl1.TabStop         = false;
                this.keyboardNoControl1.Visible         = false;
                this.keyboardNoControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardNoControl1_UserKeyPressed);
                //
                // keyboardSearchControl1
                //
                this.keyboardSearchControl1.BackColor       = System.Drawing.Color.White;
                this.keyboardSearchControl1.Location        = new System.Drawing.Point(91, 310);
                this.keyboardSearchControl1.Name            = "keyboardSearchControl1";
                this.keyboardSearchControl1.Size            = new System.Drawing.Size(799, 134);
                this.keyboardSearchControl1.TabIndex        = 53;
                this.keyboardSearchControl1.TabStop         = false;
                this.keyboardSearchControl1.Tag             = "";
                this.keyboardSearchControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardSearchControl1_UserKeyPressed);

                this.Controls.Add(this.keyboardSearchControl1);
                this.Controls.Add(this.keyboardNoControl1);

                keyboardNoControl1.Visible = TerminalDetails.WithRestaurantFeatures;
            }

            lblBalanceAmount.Text = mdecBalanceAmount.ToString("#,##0.#0");
            txtAmount.Text        = mdecBalanceAmount.ToString("#,##0.#0");
            lblCash.Text          = "Cash Amount (" + CompanyDetails.Currency + ")";

            if (mboIsRefund)
            {
                lblHeader.Text  = "Tender Cash Amount to refund";
                lblBalance.Text = "Current Balance to be refunded.";
            }
        }
Exemple #4
0
        private void RewardPointPaymentWnd_Load(object sender, System.EventArgs e)
        {
            if (mclsTerminalDetails.WithRestaurantFeatures)
            {
                this.keyboardNoControl1 = new AceSoft.KeyBoardHook.KeyboardNoControl();

                //
                // keyboardNoControl1
                //
                this.keyboardNoControl1.BackColor     = System.Drawing.Color.White;
                this.keyboardNoControl1.commandBlank1 = AceSoft.KeyBoardHook.CommandBlank1.Up;
                this.keyboardNoControl1.commandBlank2 = AceSoft.KeyBoardHook.CommandBlank2.Down;
                this.keyboardNoControl1.Location      = new System.Drawing.Point(412, 310);
                this.keyboardNoControl1.Name          = "keyboardNoControl1";
                this.keyboardNoControl1.Size          = new System.Drawing.Size(208, 172);
                this.keyboardNoControl1.TabIndex      = 85;
                this.keyboardNoControl1.TabStop       = false;
                this.keyboardNoControl1.Visible       = false;

                this.Controls.Add(this.keyboardNoControl1);

                keyboardNoControl1.Visible = mclsTerminalDetails.WithRestaurantFeatures;
            }

            lblConversion.Text = mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentValue.ToString("#,##0.#0") + " points = " + mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentCashEquivalent.ToString("#,##0.#0") + CompanyDetails.Currency;

            // put the mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentValue to zero if its 1 to avoid error
            mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentValue          = mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentValue == 0 ? 1 : mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentValue;
            mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentCashEquivalent = mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentCashEquivalent == 0 ? 1 : mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentCashEquivalent;

            mdecAllowedRewardsPointsCashEquivalent = (mclsContactDetails.RewardDetails.RewardPoints / mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentValue * mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentCashEquivalent) - mdecRewardConvertedPayment;
            lblRewardPoints.Text      = mdecAllowedRewardsPointsCashEquivalent.ToString("#,##0.#0");
            lblRewardPointsLabel.Text = Convert.ToDecimal(mclsContactDetails.RewardDetails.RewardPoints - mdecRewardPointsPayment).ToString("#,##0.#0") + " available points = ";
            lblBalanceAmount.Text     = mdecBalanceAmount.ToString("#,##0.#0");
            txtAmount.Text            = mdecBalanceAmount.ToString("#,##0.#0");
            lblRewards.Text           = "Reward Points Amount (" + CompanyDetails.Currency + ")";
        }
Exemple #5
0
		private void BalanceWnd_Load(object sender, System.EventArgs e)
		{
			lblCurrency.Text = "Begginning Balance Amount (" + CompanyDetails.Currency + ")";
			try
			{	this.BackgroundImage = new Bitmap(Application.StartupPath + "/images/Background.jpg");	}
			catch{}
			try
			{	this.imgIcon.Image = new Bitmap(Application.StartupPath + "/images/Balance.jpg");	}
			catch{}
            try
            { this.cmdCancel.Image = new Bitmap(Application.StartupPath + "/images/blank_medium_dark_red.jpg"); }
            catch { }

            if (TerminalDetails.WithRestaurantFeatures)
            {
                this.keyboardNoControl1 = new AceSoft.KeyBoardHook.KeyboardNoControl();
                // 
                // keyboardNoControl1
                // 
                this.keyboardNoControl1.BackColor = System.Drawing.Color.White;
                this.keyboardNoControl1.commandBlank1 = AceSoft.KeyBoardHook.CommandBlank1.Clear;
                this.keyboardNoControl1.commandBlank2 = AceSoft.KeyBoardHook.CommandBlank2.SelectAll;
                this.keyboardNoControl1.Location = new System.Drawing.Point(400, 334);
                this.keyboardNoControl1.Name = "keyboardNoControl1";
                this.keyboardNoControl1.Size = new System.Drawing.Size(208, 172);
                this.keyboardNoControl1.TabIndex = 86;
                this.keyboardNoControl1.TabStop = false;
                this.keyboardNoControl1.Visible = false;
                this.keyboardNoControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardNoControl1_UserKeyPressed);

                this.Controls.Add(this.keyboardNoControl1);

                keyboardNoControl1.Visible = TerminalDetails.WithRestaurantFeatures;
            }
		}
        private void ChequesPaymentWnd_Load(object sender, System.EventArgs e)
        {
            if (TerminalDetails.WithRestaurantFeatures)
            {
                this.keyboardSearchControl1 = new AceSoft.KeyBoardHook.KeyboardSearchControl();
                this.keyboardNoControl1 = new AceSoft.KeyBoardHook.KeyboardNoControl();

                // 
                // keyboardSearchControl1
                // 
                this.keyboardSearchControl1.BackColor = System.Drawing.Color.White;
                this.keyboardSearchControl1.Location = new System.Drawing.Point(91, 310);
                this.keyboardSearchControl1.Name = "keyboardSearchControl1";
                this.keyboardSearchControl1.Size = new System.Drawing.Size(799, 134);
                this.keyboardSearchControl1.TabIndex = 91;
                this.keyboardSearchControl1.TabStop = false;
                this.keyboardSearchControl1.Tag = "";
                this.keyboardSearchControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardSearchControl1_UserKeyPressed);
                // 
                // keyboardNoControl1
                // 
                this.keyboardNoControl1.BackColor = System.Drawing.Color.White;
                this.keyboardNoControl1.commandBlank1 = AceSoft.KeyBoardHook.CommandBlank1.Clear;
                this.keyboardNoControl1.commandBlank2 = AceSoft.KeyBoardHook.CommandBlank2.SelectAll;
                this.keyboardNoControl1.Location = new System.Drawing.Point(412, 310);
                this.keyboardNoControl1.Name = "keyboardNoControl1";
                this.keyboardNoControl1.Size = new System.Drawing.Size(208, 172);
                this.keyboardNoControl1.TabIndex = 92;
                this.keyboardNoControl1.TabStop = false;
                this.keyboardNoControl1.Visible = false;
                this.keyboardNoControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardNoControl1_UserKeyPressed);

                this.Controls.Add(this.keyboardSearchControl1);
                this.Controls.Add(this.keyboardNoControl1);

                keyboardNoControl1.Visible = false;
                keyboardSearchControl1.Visible = TerminalDetails.WithRestaurantFeatures;
            }

            lblChequeAmount.Text = "Cheque Amount (" + CompanyDetails.Currency + "):";
            lblBalanceAmount.Text = mdecBalanceAmount.ToString("#,##0.#0");
            txtAmount.Text = mdecBalanceAmount.ToString("#,##0.#0");

            
        }
Exemple #7
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.imgIcon = new System.Windows.Forms.PictureBox();
            this.dgCashCount = new System.Windows.Forms.DataGrid();
            this.dgStyle = new System.Windows.Forms.DataGridTableStyle();
            this.DenominationID = new System.Windows.Forms.DataGridTextBoxColumn();
            this.ImagePath = new System.Windows.Forms.DataGridTextBoxColumn();
            this.DenominationValue = new System.Windows.Forms.DataGridTextBoxColumn();
            this.DenominationCount = new System.Windows.Forms.DataGridTextBoxColumn();
            this.DenominationAmount = new System.Windows.Forms.DataGridTextBoxColumn();
            this.DenominationCode = new System.Windows.Forms.DataGridTextBoxColumn();
            this.imgImagePath = new System.Windows.Forms.PictureBox();
            this.lblHeader = new System.Windows.Forms.Label();
            this.txtDenominationCount = new System.Windows.Forms.TextBox();
            this.label13 = new System.Windows.Forms.Label();
            this.lblCashCount = new System.Windows.Forms.Label();
            this.lblDescription = new System.Windows.Forms.Label();
            this.cmdCancel = new System.Windows.Forms.Button();
            this.cmdEnter = new System.Windows.Forms.Button();
            this.keyboardNoControl1 = new AceSoft.KeyBoardHook.KeyboardNoControl();
            ((System.ComponentModel.ISupportInitialize)(this.imgIcon)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dgCashCount)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.imgImagePath)).BeginInit();
            this.SuspendLayout();
            // 
            // imgIcon
            // 
            this.imgIcon.BackColor = System.Drawing.Color.Blue;
            this.imgIcon.Location = new System.Drawing.Point(9, 5);
            this.imgIcon.Name = "imgIcon";
            this.imgIcon.Size = new System.Drawing.Size(49, 49);
            this.imgIcon.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
            this.imgIcon.TabIndex = 0;
            this.imgIcon.TabStop = false;
            this.imgIcon.Click += new System.EventHandler(this.imgIcon_Click);
            // 
            // dgCashCount
            // 
            this.dgCashCount.AlternatingBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
            this.dgCashCount.BackColor = System.Drawing.Color.White;
            this.dgCashCount.BackgroundColor = System.Drawing.Color.White;
            this.dgCashCount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.dgCashCount.CaptionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
            this.dgCashCount.CaptionFont = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.dgCashCount.CaptionForeColor = System.Drawing.Color.Blue;
            this.dgCashCount.CaptionVisible = false;
            this.dgCashCount.DataMember = "";
            this.dgCashCount.Enabled = false;
            this.dgCashCount.FlatMode = true;
            this.dgCashCount.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.dgCashCount.HeaderBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(81)))), ((int)(((byte)(153)))));
            this.dgCashCount.HeaderFont = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.dgCashCount.HeaderForeColor = System.Drawing.Color.White;
            this.dgCashCount.Location = new System.Drawing.Point(0, 60);
            this.dgCashCount.Name = "dgCashCount";
            this.dgCashCount.PreferredRowHeight = 50;
            this.dgCashCount.ReadOnly = true;
            this.dgCashCount.RowHeadersVisible = false;
            this.dgCashCount.RowHeaderWidth = 5;
            this.dgCashCount.SelectionBackColor = System.Drawing.Color.RoyalBlue;
            this.dgCashCount.SelectionForeColor = System.Drawing.Color.White;
            this.dgCashCount.Size = new System.Drawing.Size(722, 526);
            this.dgCashCount.TabIndex = 4;
            this.dgCashCount.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
            this.dgStyle});
            this.dgCashCount.TabStop = false;
            // 
            // dgStyle
            // 
            this.dgStyle.AlternatingBackColor = System.Drawing.Color.White;
            this.dgStyle.BackColor = System.Drawing.Color.White;
            this.dgStyle.DataGrid = this.dgCashCount;
            this.dgStyle.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
            this.DenominationID,
            this.ImagePath,
            this.DenominationValue,
            this.DenominationCount,
            this.DenominationAmount,
            this.DenominationCode});
            this.dgStyle.HeaderBackColor = System.Drawing.Color.DarkOrange;
            this.dgStyle.HeaderFont = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.dgStyle.HeaderForeColor = System.Drawing.Color.White;
            this.dgStyle.MappingName = "tblDenominationsasasasas";
            this.dgStyle.PreferredColumnWidth = 180;
            this.dgStyle.PreferredRowHeight = 30;
            this.dgStyle.RowHeadersVisible = false;
            this.dgStyle.RowHeaderWidth = 5;
            this.dgStyle.SelectionBackColor = System.Drawing.Color.Green;
            this.dgStyle.SelectionForeColor = System.Drawing.Color.White;
            // 
            // DenominationID
            // 
            this.DenominationID.Format = "";
            this.DenominationID.FormatInfo = null;
            this.DenominationID.MappingName = "DenominationID";
            this.DenominationID.NullText = "";
            this.DenominationID.ReadOnly = true;
            this.DenominationID.Width = 0;
            // 
            // ImagePath
            // 
            this.ImagePath.Format = "";
            this.ImagePath.FormatInfo = null;
            this.ImagePath.MappingName = "ImagePath";
            this.ImagePath.NullText = "";
            this.ImagePath.ReadOnly = true;
            this.ImagePath.Width = 20;
            // 
            // DenominationValue
            // 
            this.DenominationValue.Format = "#,##0.#0";
            this.DenominationValue.FormatInfo = null;
            this.DenominationValue.HeaderText = "Value";
            this.DenominationValue.MappingName = "DenominationValue";
            this.DenominationValue.ReadOnly = true;
            this.DenominationValue.Width = 0;
            // 
            // DenominationCount
            // 
            this.DenominationCount.Alignment = System.Windows.Forms.HorizontalAlignment.Right;
            this.DenominationCount.Format = "#,##0";
            this.DenominationCount.FormatInfo = null;
            this.DenominationCount.HeaderText = "Enter Deno. Count";
            this.DenominationCount.MappingName = "DenominationCount";
            this.DenominationCount.NullText = "";
            this.DenominationCount.Width = 75;
            // 
            // DenominationAmount
            // 
            this.DenominationAmount.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
            this.DenominationAmount.Format = "#,##0.#0";
            this.DenominationAmount.FormatInfo = null;
            this.DenominationAmount.HeaderText = "Amount";
            this.DenominationAmount.MappingName = "DenominationAmount";
            this.DenominationAmount.NullText = "";
            this.DenominationAmount.ReadOnly = true;
            this.DenominationAmount.Width = 75;
            // 
            // DenominationCode
            // 
            this.DenominationCode.Format = "";
            this.DenominationCode.FormatInfo = null;
            this.DenominationCode.HeaderText = "Denomination";
            this.DenominationCode.MappingName = "DenominationCode";
            this.DenominationCode.NullText = "";
            this.DenominationCode.ReadOnly = true;
            this.DenominationCode.Width = 200;
            // 
            // imgImagePath
            // 
            this.imgImagePath.BackColor = System.Drawing.Color.Blue;
            this.imgImagePath.Location = new System.Drawing.Point(0, 0);
            this.imgImagePath.Name = "imgImagePath";
            this.imgImagePath.Size = new System.Drawing.Size(49, 49);
            this.imgImagePath.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
            this.imgImagePath.TabIndex = 0;
            this.imgImagePath.TabStop = false;
            // 
            // lblHeader
            // 
            this.lblHeader.AutoSize = true;
            this.lblHeader.BackColor = System.Drawing.Color.Transparent;
            this.lblHeader.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblHeader.ForeColor = System.Drawing.Color.White;
            this.lblHeader.Location = new System.Drawing.Point(67, 22);
            this.lblHeader.Name = "lblHeader";
            this.lblHeader.Size = new System.Drawing.Size(103, 13);
            this.lblHeader.TabIndex = 5;
            this.lblHeader.Text = "Enter Cash Count";
            // 
            // txtDenominationCount
            // 
            this.txtDenominationCount.BackColor = System.Drawing.Color.RoyalBlue;
            this.txtDenominationCount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.txtDenominationCount.Font = new System.Drawing.Font("Tahoma", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtDenominationCount.ForeColor = System.Drawing.Color.White;
            this.txtDenominationCount.Location = new System.Drawing.Point(728, 206);
            this.txtDenominationCount.MaxLength = 16;
            this.txtDenominationCount.Name = "txtDenominationCount";
            this.txtDenominationCount.Size = new System.Drawing.Size(282, 36);
            this.txtDenominationCount.TabIndex = 0;
            this.txtDenominationCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtDenominationCount.Visible = false;
            this.txtDenominationCount.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtDenominationCount_KeyPress);
            // 
            // label13
            // 
            this.label13.AutoSize = true;
            this.label13.BackColor = System.Drawing.Color.Transparent;
            this.label13.Font = new System.Drawing.Font("Arial Narrow", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label13.Location = new System.Drawing.Point(592, 10);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(142, 29);
            this.label13.TabIndex = 6;
            this.label13.Text = "CASH COUNT";
            // 
            // lblCashCount
            // 
            this.lblCashCount.BackColor = System.Drawing.Color.Transparent;
            this.lblCashCount.Font = new System.Drawing.Font("Arial Narrow", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblCashCount.ForeColor = System.Drawing.Color.Firebrick;
            this.lblCashCount.Location = new System.Drawing.Point(760, 10);
            this.lblCashCount.Name = "lblCashCount";
            this.lblCashCount.Size = new System.Drawing.Size(170, 25);
            this.lblCashCount.TabIndex = 7;
            this.lblCashCount.Text = "0.00";
            this.lblCashCount.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // lblDescription
            // 
            this.lblDescription.AutoSize = true;
            this.lblDescription.BackColor = System.Drawing.Color.Transparent;
            this.lblDescription.ForeColor = System.Drawing.Color.LightSlateGray;
            this.lblDescription.Location = new System.Drawing.Point(458, 38);
            this.lblDescription.Name = "lblDescription";
            this.lblDescription.Size = new System.Drawing.Size(473, 13);
            this.lblDescription.TabIndex = 5;
            this.lblDescription.Tag = "";
            this.lblDescription.Text = "Select the denomination you want to enter, then press the number to enter no. of " +
    "denomination.";
            // 
            // cmdCancel
            // 
            this.cmdCancel.AutoSize = true;
            this.cmdCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.cmdCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.cmdCancel.Font = new System.Drawing.Font("Times New Roman", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cmdCancel.ForeColor = System.Drawing.Color.White;
            this.cmdCancel.Location = new System.Drawing.Point(765, 618);
            this.cmdCancel.Name = "cmdCancel";
            this.cmdCancel.Size = new System.Drawing.Size(106, 83);
            this.cmdCancel.TabIndex = 3;
            this.cmdCancel.TabStop = false;
            this.cmdCancel.Text = "CANCEL";
            this.cmdCancel.UseVisualStyleBackColor = true;
            this.cmdCancel.Click += new System.EventHandler(this.cmdCancel_Click);
            // 
            // cmdEnter
            // 
            this.cmdEnter.AutoSize = true;
            this.cmdEnter.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.cmdEnter.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.cmdEnter.Font = new System.Drawing.Font("Times New Roman", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cmdEnter.ForeColor = System.Drawing.Color.White;
            this.cmdEnter.Location = new System.Drawing.Point(877, 618);
            this.cmdEnter.Name = "cmdEnter";
            this.cmdEnter.Size = new System.Drawing.Size(106, 83);
            this.cmdEnter.TabIndex = 2;
            this.cmdEnter.TabStop = false;
            this.cmdEnter.Text = "ENTER";
            this.cmdEnter.UseVisualStyleBackColor = true;
            this.cmdEnter.Click += new System.EventHandler(this.cmdEnter_Click);
            // 
            // keyboardNoControl1
            // 
            this.keyboardNoControl1.BackColor = System.Drawing.Color.White;
            this.keyboardNoControl1.commandBlank1 = AceSoft.KeyBoardHook.CommandBlank1.Up;
            this.keyboardNoControl1.commandBlank2 = AceSoft.KeyBoardHook.CommandBlank2.Down;
            this.keyboardNoControl1.Location = new System.Drawing.Point(781, 248);
            this.keyboardNoControl1.Name = "keyboardNoControl1";
            this.keyboardNoControl1.Size = new System.Drawing.Size(208, 172);
            this.keyboardNoControl1.TabIndex = 8;
            this.keyboardNoControl1.TabStop = false;
            this.keyboardNoControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardNoControl1_UserKeyPressed);
            // 
            // CashCountWnd
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
            this.BackColor = System.Drawing.Color.White;
            this.ClientSize = new System.Drawing.Size(1022, 766);
            this.ControlBox = false;
            this.Controls.Add(this.keyboardNoControl1);
            this.Controls.Add(this.cmdCancel);
            this.Controls.Add(this.cmdEnter);
            this.Controls.Add(this.lblDescription);
            this.Controls.Add(this.label13);
            this.Controls.Add(this.lblHeader);
            this.Controls.Add(this.lblCashCount);
            this.Controls.Add(this.txtDenominationCount);
            this.Controls.Add(this.dgCashCount);
            this.Controls.Add(this.imgIcon);
            this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.KeyPreview = true;
            this.MaximizeBox = false;
            this.Name = "CashCountWnd";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Load += new System.EventHandler(this.CashCount_Load);
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.CashCount_KeyDown);
            this.Resize += new System.EventHandler(this.CashCount_Resize);
            ((System.ComponentModel.ISupportInitialize)(this.imgIcon)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dgCashCount)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.imgImagePath)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
        private void CreditCardPaymentWnd_Load(object sender, System.EventArgs e)
        {
            if (TerminalDetails.WithRestaurantFeatures)
            {
                this.keyboardSearchControl1 = new AceSoft.KeyBoardHook.KeyboardSearchControl();
                this.keyboardNoControl1 = new AceSoft.KeyBoardHook.KeyboardNoControl();

                // 
                // keyboardSearchControl1
                // 
                this.keyboardSearchControl1.BackColor = System.Drawing.Color.White;
                this.keyboardSearchControl1.Location = new System.Drawing.Point(91, 310);
                this.keyboardSearchControl1.Name = "keyboardSearchControl1";
                this.keyboardSearchControl1.Size = new System.Drawing.Size(799, 134);
                this.keyboardSearchControl1.TabIndex = 91;
                this.keyboardSearchControl1.TabStop = false;
                this.keyboardSearchControl1.Tag = "";
                this.keyboardSearchControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardSearchControl1_UserKeyPressed);
                // 
                // keyboardNoControl1
                // 
                this.keyboardNoControl1.BackColor = System.Drawing.Color.White;
                this.keyboardNoControl1.commandBlank1 = AceSoft.KeyBoardHook.CommandBlank1.Clear;
                this.keyboardNoControl1.commandBlank2 = AceSoft.KeyBoardHook.CommandBlank2.SelectAll;
                this.keyboardNoControl1.Location = new System.Drawing.Point(412, 310);
                this.keyboardNoControl1.Name = "keyboardNoControl1";
                this.keyboardNoControl1.Size = new System.Drawing.Size(208, 172);
                this.keyboardNoControl1.TabIndex = 92;
                this.keyboardNoControl1.TabStop = false;
                this.keyboardNoControl1.Visible = false;
                this.keyboardNoControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardNoControl1_UserKeyPressed);

                this.Controls.Add(this.keyboardSearchControl1);
                this.Controls.Add(this.keyboardNoControl1);
            
                keyboardNoControl1.Visible = TerminalDetails.WithRestaurantFeatures;
                keyboardSearchControl1.Visible = false;
            }

            LoadOptions();
        }
		private void RewardPointPaymentWnd_Load(object sender, System.EventArgs e)
		{
            if (mclsTerminalDetails.WithRestaurantFeatures)
            {
                this.keyboardNoControl1 = new AceSoft.KeyBoardHook.KeyboardNoControl();

                // 
                // keyboardNoControl1
                // 
                this.keyboardNoControl1.BackColor = System.Drawing.Color.White;
                this.keyboardNoControl1.commandBlank1 = AceSoft.KeyBoardHook.CommandBlank1.Up;
                this.keyboardNoControl1.commandBlank2 = AceSoft.KeyBoardHook.CommandBlank2.Down;
                this.keyboardNoControl1.Location = new System.Drawing.Point(412, 310);
                this.keyboardNoControl1.Name = "keyboardNoControl1";
                this.keyboardNoControl1.Size = new System.Drawing.Size(208, 172);
                this.keyboardNoControl1.TabIndex = 85;
                this.keyboardNoControl1.TabStop = false;
                this.keyboardNoControl1.Visible = false;

                this.Controls.Add(this.keyboardNoControl1);

                keyboardNoControl1.Visible = mclsTerminalDetails.WithRestaurantFeatures;
            }

            lblConversion.Text = mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentValue.ToString("#,##0.#0") + " points = " + mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentCashEquivalent.ToString("#,##0.#0") + CompanyDetails.Currency;

            // put the mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentValue to zero if its 1 to avoid error
            mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentValue = mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentValue == 0 ? 1 : mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentValue;
            mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentCashEquivalent = mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentCashEquivalent == 0 ? 1 : mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentCashEquivalent;

            mdecAllowedRewardsPointsCashEquivalent = (mclsContactDetails.RewardDetails.RewardPoints / mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentValue * mclsTerminalDetails.RewardPointsDetails.RewardPointsPaymentCashEquivalent) - mdecRewardConvertedPayment;
            lblRewardPoints.Text = mdecAllowedRewardsPointsCashEquivalent.ToString("#,##0.#0");
            lblRewardPointsLabel.Text = Convert.ToDecimal(mclsContactDetails.RewardDetails.RewardPoints - mdecRewardPointsPayment).ToString("#,##0.#0") + " available points = ";
            lblBalanceAmount.Text = mdecBalanceAmount.ToString("#,##0.#0");
            txtAmount.Text = mdecBalanceAmount.ToString("#,##0.#0");
            lblRewards.Text = "Reward Points Amount (" + CompanyDetails.Currency + ")";

        }
Exemple #10
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.imgIcon = new System.Windows.Forms.PictureBox();
            this.label1 = new System.Windows.Forms.Label();
            this.label8 = new System.Windows.Forms.Label();
            this.label15 = new System.Windows.Forms.Label();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.cmdGO = new System.Windows.Forms.Button();
            this.label3 = new System.Windows.Forms.Label();
            this.txtDateTo = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.cboDate = new System.Windows.Forms.ComboBox();
            this.lblCash = new System.Windows.Forms.Label();
            this.txtDateFrom = new System.Windows.Forms.TextBox();
            this.cmdCancel = new System.Windows.Forms.Button();
            this.cmdEnter = new System.Windows.Forms.Button();
            this.grpRLC = new System.Windows.Forms.GroupBox();
            this.lstItems = new System.Windows.Forms.ListView();
            this.Filename = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.FileSize = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.DateModified = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.keyboardNoControl1 = new AceSoft.KeyBoardHook.KeyboardNoControl();
            ((System.ComponentModel.ISupportInitialize)(this.imgIcon)).BeginInit();
            this.groupBox1.SuspendLayout();
            this.grpRLC.SuspendLayout();
            this.SuspendLayout();
            // 
            // imgIcon
            // 
            this.imgIcon.BackColor = System.Drawing.Color.Blue;
            this.imgIcon.Location = new System.Drawing.Point(9, 5);
            this.imgIcon.Name = "imgIcon";
            this.imgIcon.Size = new System.Drawing.Size(49, 49);
            this.imgIcon.TabIndex = 51;
            this.imgIcon.TabStop = false;
            this.imgIcon.Click += new System.EventHandler(this.imgIcon_Click);
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.BackColor = System.Drawing.Color.Transparent;
            this.label1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label1.ForeColor = System.Drawing.Color.White;
            this.label1.Location = new System.Drawing.Point(67, 22);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(132, 13);
            this.label1.TabIndex = 67;
            this.label1.Text = "Mall Forwarder Viewer";
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.BackColor = System.Drawing.Color.Transparent;
            this.label8.ForeColor = System.Drawing.Color.LightSlateGray;
            this.label8.Location = new System.Drawing.Point(584, 41);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(205, 13);
            this.label8.TabIndex = 79;
            this.label8.Text = "Press Send button to resume Transaction";
            // 
            // label15
            // 
            this.label15.AutoSize = true;
            this.label15.BackColor = System.Drawing.Color.Transparent;
            this.label15.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label15.ForeColor = System.Drawing.Color.Red;
            this.label15.Location = new System.Drawing.Point(35, 0);
            this.label15.Name = "label15";
            this.label15.Size = new System.Drawing.Size(31, 13);
            this.label15.TabIndex = 78;
            this.label15.Text = "Send";
            // 
            // groupBox1
            // 
            this.groupBox1.BackColor = System.Drawing.Color.White;
            this.groupBox1.Controls.Add(this.keyboardNoControl1);
            this.groupBox1.Controls.Add(this.cmdGO);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Controls.Add(this.txtDateTo);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.cboDate);
            this.groupBox1.Controls.Add(this.label15);
            this.groupBox1.Controls.Add(this.lblCash);
            this.groupBox1.Controls.Add(this.txtDateFrom);
            this.groupBox1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.groupBox1.ForeColor = System.Drawing.Color.Blue;
            this.groupBox1.Location = new System.Drawing.Point(9, 67);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(1007, 230);
            this.groupBox1.TabIndex = 80;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Press Send button to resume Transaction";
            // 
            // cmdGO
            // 
            this.cmdGO.AutoSize = true;
            this.cmdGO.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.cmdGO.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.cmdGO.Font = new System.Drawing.Font("Times New Roman", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cmdGO.ForeColor = System.Drawing.Color.White;
            this.cmdGO.Location = new System.Drawing.Point(499, 51);
            this.cmdGO.Name = "cmdGO";
            this.cmdGO.Size = new System.Drawing.Size(78, 62);
            this.cmdGO.TabIndex = 2;
            this.cmdGO.Text = "SEARCH";
            this.cmdGO.UseVisualStyleBackColor = true;
            this.cmdGO.Click += new System.EventHandler(this.cmdGO_Click);
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label3.ForeColor = System.Drawing.Color.MediumBlue;
            this.label3.Location = new System.Drawing.Point(336, 77);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(17, 13);
            this.label3.TabIndex = 21;
            this.label3.Text = "--";
            // 
            // txtDateTo
            // 
            this.txtDateTo.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.txtDateTo.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtDateTo.Location = new System.Drawing.Point(363, 67);
            this.txtDateTo.MaxLength = 10;
            this.txtDateTo.Name = "txtDateTo";
            this.txtDateTo.Size = new System.Drawing.Size(134, 30);
            this.txtDateTo.TabIndex = 1;
            this.txtDateTo.Text = "yyyy-mm-dd";
            this.txtDateTo.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.txtDateTo.GotFocus += new System.EventHandler(this.txtDateTo_GotFocus);
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label2.ForeColor = System.Drawing.Color.MediumBlue;
            this.label2.Location = new System.Drawing.Point(267, 129);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(189, 13);
            this.label2.TabIndex = 19;
            this.label2.Text = "Select date of report to forward.";
            // 
            // cboDate
            // 
            this.cboDate.CausesValidation = false;
            this.cboDate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboDate.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboDate.Location = new System.Drawing.Point(162, 149);
            this.cboDate.Name = "cboDate";
            this.cboDate.Size = new System.Drawing.Size(415, 31);
            this.cboDate.TabIndex = 3;
            // 
            // lblCash
            // 
            this.lblCash.AutoSize = true;
            this.lblCash.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lblCash.ForeColor = System.Drawing.Color.MediumBlue;
            this.lblCash.Location = new System.Drawing.Point(156, 46);
            this.lblCash.Name = "lblCash";
            this.lblCash.Size = new System.Drawing.Size(337, 13);
            this.lblCash.TabIndex = 15;
            this.lblCash.Text = "Select covered dates of terminal report to forward to mall.";
            // 
            // txtDateFrom
            // 
            this.txtDateFrom.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.txtDateFrom.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtDateFrom.Location = new System.Drawing.Point(192, 67);
            this.txtDateFrom.MaxLength = 10;
            this.txtDateFrom.Name = "txtDateFrom";
            this.txtDateFrom.Size = new System.Drawing.Size(134, 30);
            this.txtDateFrom.TabIndex = 0;
            this.txtDateFrom.Text = "yyyy-mm-dd";
            this.txtDateFrom.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.txtDateFrom.GotFocus += new System.EventHandler(this.txtDateFrom_GotFocus);
            // 
            // cmdCancel
            // 
            this.cmdCancel.AutoSize = true;
            this.cmdCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.cmdCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.cmdCancel.Font = new System.Drawing.Font("Times New Roman", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cmdCancel.ForeColor = System.Drawing.Color.White;
            this.cmdCancel.Location = new System.Drawing.Point(772, 306);
            this.cmdCancel.Name = "cmdCancel";
            this.cmdCancel.Size = new System.Drawing.Size(106, 83);
            this.cmdCancel.TabIndex = 5;
            this.cmdCancel.Text = "CANCEL";
            this.cmdCancel.UseVisualStyleBackColor = true;
            this.cmdCancel.Click += new System.EventHandler(this.cmdCancel_Click);
            // 
            // cmdEnter
            // 
            this.cmdEnter.AutoSize = true;
            this.cmdEnter.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.cmdEnter.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.cmdEnter.Font = new System.Drawing.Font("Times New Roman", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cmdEnter.ForeColor = System.Drawing.Color.White;
            this.cmdEnter.Location = new System.Drawing.Point(878, 306);
            this.cmdEnter.Name = "cmdEnter";
            this.cmdEnter.Size = new System.Drawing.Size(106, 83);
            this.cmdEnter.TabIndex = 4;
            this.cmdEnter.Text = "Send";
            this.cmdEnter.UseVisualStyleBackColor = true;
            this.cmdEnter.Click += new System.EventHandler(this.cmdEnter_Click);
            // 
            // grpRLC
            // 
            this.grpRLC.BackColor = System.Drawing.Color.White;
            this.grpRLC.Controls.Add(this.lstItems);
            this.grpRLC.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.grpRLC.ForeColor = System.Drawing.Color.Blue;
            this.grpRLC.Location = new System.Drawing.Point(9, 395);
            this.grpRLC.Name = "grpRLC";
            this.grpRLC.Size = new System.Drawing.Size(1007, 221);
            this.grpRLC.TabIndex = 83;
            this.grpRLC.TabStop = false;
            this.grpRLC.Text = "RLC File Server Management: [DOUBLE CLICK TO RELOAD] :";
            this.grpRLC.Visible = false;
            this.grpRLC.DoubleClick += new System.EventHandler(this.grpRLC_DoubleClick);
            // 
            // lstItems
            // 
            this.lstItems.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.Filename,
            this.FileSize,
            this.DateModified});
            this.lstItems.FullRowSelect = true;
            this.lstItems.Location = new System.Drawing.Point(6, 20);
            this.lstItems.MultiSelect = false;
            this.lstItems.Name = "lstItems";
            this.lstItems.Size = new System.Drawing.Size(995, 195);
            this.lstItems.TabIndex = 95;
            this.lstItems.UseCompatibleStateImageBehavior = false;
            this.lstItems.View = System.Windows.Forms.View.Details;
            this.lstItems.DoubleClick += new System.EventHandler(this.lstItems_DoubleClick);
            // 
            // Filename
            // 
            this.Filename.Text = "Filename";
            this.Filename.Width = 440;
            // 
            // FileSize
            // 
            this.FileSize.Text = "Size";
            this.FileSize.Width = 111;
            // 
            // DateModified
            // 
            this.DateModified.Text = "Date Modified";
            this.DateModified.Width = 117;
            // 
            // keyboardNoControl1
            // 
            this.keyboardNoControl1.BackColor = System.Drawing.Color.White;
            this.keyboardNoControl1.commandBlank1 = AceSoft.KeyBoardHook.CommandBlank1.Up;
            this.keyboardNoControl1.commandBlank2 = AceSoft.KeyBoardHook.CommandBlank2.Down;
            this.keyboardNoControl1.Location = new System.Drawing.Point(648, 20);
            this.keyboardNoControl1.Name = "keyboardNoControl1";
            this.keyboardNoControl1.Size = new System.Drawing.Size(208, 172);
            this.keyboardNoControl1.TabIndex = 79;
            this.keyboardNoControl1.TabStop = false;
            // 
            // ForwarderWnd
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.BackColor = System.Drawing.Color.White;
            this.ClientSize = new System.Drawing.Size(1022, 766);
            this.ControlBox = false;
            this.Controls.Add(this.grpRLC);
            this.Controls.Add(this.cmdCancel);
            this.Controls.Add(this.cmdEnter);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.label8);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.imgIcon);
            this.Font = new System.Drawing.Font("Tahoma", 8F);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.KeyPreview = true;
            this.Name = "ForwarderWnd";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Load += new System.EventHandler(this.ForwarderWnd_Load);
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ForwarderWnd_KeyDown);
            ((System.ComponentModel.ISupportInitialize)(this.imgIcon)).EndInit();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.grpRLC.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }
		private void DebitPaymentWnd_Load(object sender, System.EventArgs e)
		{
            if (TerminalDetails.WithRestaurantFeatures)
            {
                this.keyboardSearchControl1 = new AceSoft.KeyBoardHook.KeyboardSearchControl();
                this.keyboardNoControl1 = new AceSoft.KeyBoardHook.KeyboardNoControl();

                // 
                // keyboardSearchControl1
                // 
                this.keyboardSearchControl1.BackColor = System.Drawing.Color.White;
                this.keyboardSearchControl1.Location = new System.Drawing.Point(91, 310);
                this.keyboardSearchControl1.Name = "keyboardSearchControl1";
                this.keyboardSearchControl1.Size = new System.Drawing.Size(799, 134);
                this.keyboardSearchControl1.TabIndex = 87;
                this.keyboardSearchControl1.TabStop = false;
                this.keyboardSearchControl1.Tag = "";
                this.keyboardSearchControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardSearchControl1_UserKeyPressed);
                // 
                // keyboardNoControl1
                // 
                this.keyboardNoControl1.BackColor = System.Drawing.Color.White;
                this.keyboardNoControl1.commandBlank1 = AceSoft.KeyBoardHook.CommandBlank1.Up;
                this.keyboardNoControl1.commandBlank2 = AceSoft.KeyBoardHook.CommandBlank2.Down;
                this.keyboardNoControl1.Location = new System.Drawing.Point(412, 310);
                this.keyboardNoControl1.Name = "keyboardNoControl1";
                this.keyboardNoControl1.Size = new System.Drawing.Size(208, 172);
                this.keyboardNoControl1.TabIndex = 88;
                this.keyboardNoControl1.TabStop = false;
                this.keyboardNoControl1.Visible = false;
                this.keyboardNoControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardNoControl1_UserKeyPressed);

                this.Controls.Add(this.keyboardSearchControl1);
                this.Controls.Add(this.keyboardNoControl1);

                keyboardNoControl1.Visible = TerminalDetails.WithRestaurantFeatures;
                keyboardSearchControl1.Visible = false;
            }
            lblAllowedDebit.Text = mdecAllowedDebit.ToString("#,##0.#0");
            lblBalanceAmount.Text = mdecBalanceAmount.ToString("#,##0.#0");
            txtAmount.Text = mdecBalanceAmount.ToString("#,##0.#0");
            lblDebit.Text = "Debit Amount (" + CompanyDetails.Currency + ")";
            if (mboIsRefund)
                lblDebitOrDeposit.Text = "Current Balance to be deposited.";
            else
                lblDebitOrDeposit.Text = "Current Balance to be paid.";
        }
        private void CreditPaymentWnd_Load(object sender, System.EventArgs e)
        {
            
            if (TerminalDetails.WithRestaurantFeatures)
            {
                this.keyboardSearchControl1 = new AceSoft.KeyBoardHook.KeyboardSearchControl();
                this.keyboardNoControl1 = new AceSoft.KeyBoardHook.KeyboardNoControl();

                // 
                // keyboardSearchControl1
                // 
                this.keyboardSearchControl1.BackColor = System.Drawing.Color.White;
                this.keyboardSearchControl1.Location = new System.Drawing.Point(91, 310);
                this.keyboardSearchControl1.Name = "keyboardSearchControl1";
                this.keyboardSearchControl1.Size = new System.Drawing.Size(799, 134);
                this.keyboardSearchControl1.TabIndex = 89;
                this.keyboardSearchControl1.TabStop = false;
                this.keyboardSearchControl1.Tag = "";
                this.keyboardSearchControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardSearchControl1_UserKeyPressed);
                // 
                // keyboardNoControl1
                // 
                this.keyboardNoControl1.BackColor = System.Drawing.Color.White;
                this.keyboardNoControl1.commandBlank1 = AceSoft.KeyBoardHook.CommandBlank1.Up;
                this.keyboardNoControl1.commandBlank2 = AceSoft.KeyBoardHook.CommandBlank2.Down;
                this.keyboardNoControl1.Location = new System.Drawing.Point(412, 310);
                this.keyboardNoControl1.Name = "keyboardNoControl1";
                this.keyboardNoControl1.Size = new System.Drawing.Size(208, 172);
                this.keyboardNoControl1.TabIndex = 90;
                this.keyboardNoControl1.TabStop = false;
                this.keyboardNoControl1.Visible = false;
                this.keyboardNoControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardNoControl1_UserKeyPressed);

                this.Controls.Add(this.keyboardSearchControl1);
                this.Controls.Add(this.keyboardNoControl1);

                keyboardNoControl1.Visible = TerminalDetails.WithRestaurantFeatures;
                keyboardSearchControl1.Visible = false;
            }

            lblAllowedCredit.Text = mdecAllowedCredit.ToString("#,##0.#0");
            lblBalanceAmount.Text = mdecBalanceAmount.ToString("#,##0.#0");
            txtAmount.Text = mdecBalanceAmount.ToString("#,##0.#0");
            lblCredit.Text = "Credit Amount (" + CompanyDetails.Currency + ")";
            
            if (mclsSalesTransactionDetails.isConsignment) {
                lblHeader.Text = "Tender Consignment Amount";
                lblAllowedCreditLabel.Text = "Allowed consignment amount.";
            }
            else {
                lblHeader.Text = "Tender Credit Amount";
                lblAllowedCreditLabel.Text = "Allowed credit amount.";
            }
            if (mboIsRefund)
            {
                lblHeader.Text = "Tender Credit Amount to refund";
                lblBalance.Text = "Current Balance to be refunded.";
                lblAllowedCreditLabel.Text = "Current credit amount.";

                //overwrite the allowable credit if it's refund
                // set the allowable credit to highest if refund
                mdecAllowedCredit = 10000000;
            }

        }
Exemple #13
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.imgIcon            = new System.Windows.Forms.PictureBox();
     this.label1             = new System.Windows.Forms.Label();
     this.label8             = new System.Windows.Forms.Label();
     this.label15            = new System.Windows.Forms.Label();
     this.groupBox1          = new System.Windows.Forms.GroupBox();
     this.cmdGO              = new System.Windows.Forms.Button();
     this.label3             = new System.Windows.Forms.Label();
     this.txtDateTo          = new System.Windows.Forms.TextBox();
     this.label2             = new System.Windows.Forms.Label();
     this.cboDate            = new System.Windows.Forms.ComboBox();
     this.lblCash            = new System.Windows.Forms.Label();
     this.txtDateFrom        = new System.Windows.Forms.TextBox();
     this.cmdCancel          = new System.Windows.Forms.Button();
     this.cmdEnter           = new System.Windows.Forms.Button();
     this.grpRLC             = new System.Windows.Forms.GroupBox();
     this.lstItems           = new System.Windows.Forms.ListView();
     this.Filename           = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.FileSize           = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.DateModified       = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.keyboardNoControl1 = new AceSoft.KeyBoardHook.KeyboardNoControl();
     ((System.ComponentModel.ISupportInitialize)(this.imgIcon)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.grpRLC.SuspendLayout();
     this.SuspendLayout();
     //
     // imgIcon
     //
     this.imgIcon.BackColor = System.Drawing.Color.Blue;
     this.imgIcon.Location  = new System.Drawing.Point(9, 5);
     this.imgIcon.Name      = "imgIcon";
     this.imgIcon.Size      = new System.Drawing.Size(49, 49);
     this.imgIcon.TabIndex  = 51;
     this.imgIcon.TabStop   = false;
     this.imgIcon.Click    += new System.EventHandler(this.imgIcon_Click);
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.White;
     this.label1.Location  = new System.Drawing.Point(67, 22);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(132, 13);
     this.label1.TabIndex  = 67;
     this.label1.Text      = "Mall Forwarder Viewer";
     //
     // label8
     //
     this.label8.AutoSize  = true;
     this.label8.BackColor = System.Drawing.Color.Transparent;
     this.label8.ForeColor = System.Drawing.Color.LightSlateGray;
     this.label8.Location  = new System.Drawing.Point(584, 41);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(205, 13);
     this.label8.TabIndex  = 79;
     this.label8.Text      = "Press Send button to resume Transaction";
     //
     // label15
     //
     this.label15.AutoSize  = true;
     this.label15.BackColor = System.Drawing.Color.Transparent;
     this.label15.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label15.ForeColor = System.Drawing.Color.Red;
     this.label15.Location  = new System.Drawing.Point(35, 0);
     this.label15.Name      = "label15";
     this.label15.Size      = new System.Drawing.Size(31, 13);
     this.label15.TabIndex  = 78;
     this.label15.Text      = "Send";
     //
     // groupBox1
     //
     this.groupBox1.BackColor = System.Drawing.Color.White;
     this.groupBox1.Controls.Add(this.keyboardNoControl1);
     this.groupBox1.Controls.Add(this.cmdGO);
     this.groupBox1.Controls.Add(this.label3);
     this.groupBox1.Controls.Add(this.txtDateTo);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.cboDate);
     this.groupBox1.Controls.Add(this.label15);
     this.groupBox1.Controls.Add(this.lblCash);
     this.groupBox1.Controls.Add(this.txtDateFrom);
     this.groupBox1.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.groupBox1.ForeColor = System.Drawing.Color.Blue;
     this.groupBox1.Location  = new System.Drawing.Point(9, 67);
     this.groupBox1.Name      = "groupBox1";
     this.groupBox1.Size      = new System.Drawing.Size(1007, 230);
     this.groupBox1.TabIndex  = 80;
     this.groupBox1.TabStop   = false;
     this.groupBox1.Text      = "Press Send button to resume Transaction";
     //
     // cmdGO
     //
     this.cmdGO.AutoSize = true;
     this.cmdGO.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.cmdGO.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.cmdGO.Font      = new System.Drawing.Font("Times New Roman", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cmdGO.ForeColor = System.Drawing.Color.White;
     this.cmdGO.Location  = new System.Drawing.Point(499, 51);
     this.cmdGO.Name      = "cmdGO";
     this.cmdGO.Size      = new System.Drawing.Size(78, 62);
     this.cmdGO.TabIndex  = 2;
     this.cmdGO.Text      = "SEARCH";
     this.cmdGO.UseVisualStyleBackColor = true;
     this.cmdGO.Click += new System.EventHandler(this.cmdGO_Click);
     //
     // label3
     //
     this.label3.AutoSize  = true;
     this.label3.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label3.ForeColor = System.Drawing.Color.MediumBlue;
     this.label3.Location  = new System.Drawing.Point(336, 77);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(17, 13);
     this.label3.TabIndex  = 21;
     this.label3.Text      = "--";
     //
     // txtDateTo
     //
     this.txtDateTo.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txtDateTo.Font        = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtDateTo.Location    = new System.Drawing.Point(363, 67);
     this.txtDateTo.MaxLength   = 10;
     this.txtDateTo.Name        = "txtDateTo";
     this.txtDateTo.Size        = new System.Drawing.Size(134, 30);
     this.txtDateTo.TabIndex    = 1;
     this.txtDateTo.Text        = "yyyy-mm-dd";
     this.txtDateTo.TextAlign   = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtDateTo.GotFocus   += new System.EventHandler(this.txtDateTo_GotFocus);
     //
     // label2
     //
     this.label2.AutoSize  = true;
     this.label2.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.ForeColor = System.Drawing.Color.MediumBlue;
     this.label2.Location  = new System.Drawing.Point(267, 129);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(189, 13);
     this.label2.TabIndex  = 19;
     this.label2.Text      = "Select date of report to forward.";
     //
     // cboDate
     //
     this.cboDate.CausesValidation = false;
     this.cboDate.DropDownStyle    = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cboDate.Font             = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cboDate.Location         = new System.Drawing.Point(162, 149);
     this.cboDate.Name             = "cboDate";
     this.cboDate.Size             = new System.Drawing.Size(415, 31);
     this.cboDate.TabIndex         = 3;
     //
     // lblCash
     //
     this.lblCash.AutoSize  = true;
     this.lblCash.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblCash.ForeColor = System.Drawing.Color.MediumBlue;
     this.lblCash.Location  = new System.Drawing.Point(156, 46);
     this.lblCash.Name      = "lblCash";
     this.lblCash.Size      = new System.Drawing.Size(337, 13);
     this.lblCash.TabIndex  = 15;
     this.lblCash.Text      = "Select covered dates of terminal report to forward to mall.";
     //
     // txtDateFrom
     //
     this.txtDateFrom.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txtDateFrom.Font        = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtDateFrom.Location    = new System.Drawing.Point(192, 67);
     this.txtDateFrom.MaxLength   = 10;
     this.txtDateFrom.Name        = "txtDateFrom";
     this.txtDateFrom.Size        = new System.Drawing.Size(134, 30);
     this.txtDateFrom.TabIndex    = 0;
     this.txtDateFrom.Text        = "yyyy-mm-dd";
     this.txtDateFrom.TextAlign   = System.Windows.Forms.HorizontalAlignment.Center;
     this.txtDateFrom.GotFocus   += new System.EventHandler(this.txtDateFrom_GotFocus);
     //
     // cmdCancel
     //
     this.cmdCancel.AutoSize = true;
     this.cmdCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.cmdCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.cmdCancel.Font      = new System.Drawing.Font("Times New Roman", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cmdCancel.ForeColor = System.Drawing.Color.White;
     this.cmdCancel.Location  = new System.Drawing.Point(772, 306);
     this.cmdCancel.Name      = "cmdCancel";
     this.cmdCancel.Size      = new System.Drawing.Size(106, 83);
     this.cmdCancel.TabIndex  = 5;
     this.cmdCancel.Text      = "CANCEL";
     this.cmdCancel.UseVisualStyleBackColor = true;
     this.cmdCancel.Click += new System.EventHandler(this.cmdCancel_Click);
     //
     // cmdEnter
     //
     this.cmdEnter.AutoSize = true;
     this.cmdEnter.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.cmdEnter.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.cmdEnter.Font      = new System.Drawing.Font("Times New Roman", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cmdEnter.ForeColor = System.Drawing.Color.White;
     this.cmdEnter.Location  = new System.Drawing.Point(878, 306);
     this.cmdEnter.Name      = "cmdEnter";
     this.cmdEnter.Size      = new System.Drawing.Size(106, 83);
     this.cmdEnter.TabIndex  = 4;
     this.cmdEnter.Text      = "Send";
     this.cmdEnter.UseVisualStyleBackColor = true;
     this.cmdEnter.Click += new System.EventHandler(this.cmdEnter_Click);
     //
     // grpRLC
     //
     this.grpRLC.BackColor = System.Drawing.Color.White;
     this.grpRLC.Controls.Add(this.lstItems);
     this.grpRLC.Font         = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.grpRLC.ForeColor    = System.Drawing.Color.Blue;
     this.grpRLC.Location     = new System.Drawing.Point(9, 395);
     this.grpRLC.Name         = "grpRLC";
     this.grpRLC.Size         = new System.Drawing.Size(1007, 221);
     this.grpRLC.TabIndex     = 83;
     this.grpRLC.TabStop      = false;
     this.grpRLC.Text         = "RLC File Server Management: [DOUBLE CLICK TO RELOAD] :";
     this.grpRLC.Visible      = false;
     this.grpRLC.DoubleClick += new System.EventHandler(this.grpRLC_DoubleClick);
     //
     // lstItems
     //
     this.lstItems.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.Filename,
         this.FileSize,
         this.DateModified
     });
     this.lstItems.FullRowSelect = true;
     this.lstItems.Location      = new System.Drawing.Point(6, 20);
     this.lstItems.MultiSelect   = false;
     this.lstItems.Name          = "lstItems";
     this.lstItems.Size          = new System.Drawing.Size(995, 195);
     this.lstItems.TabIndex      = 95;
     this.lstItems.UseCompatibleStateImageBehavior = false;
     this.lstItems.View         = System.Windows.Forms.View.Details;
     this.lstItems.DoubleClick += new System.EventHandler(this.lstItems_DoubleClick);
     //
     // Filename
     //
     this.Filename.Text  = "Filename";
     this.Filename.Width = 440;
     //
     // FileSize
     //
     this.FileSize.Text  = "Size";
     this.FileSize.Width = 111;
     //
     // DateModified
     //
     this.DateModified.Text  = "Date Modified";
     this.DateModified.Width = 117;
     //
     // keyboardNoControl1
     //
     this.keyboardNoControl1.BackColor     = System.Drawing.Color.White;
     this.keyboardNoControl1.commandBlank1 = AceSoft.KeyBoardHook.CommandBlank1.Up;
     this.keyboardNoControl1.commandBlank2 = AceSoft.KeyBoardHook.CommandBlank2.Down;
     this.keyboardNoControl1.Location      = new System.Drawing.Point(648, 20);
     this.keyboardNoControl1.Name          = "keyboardNoControl1";
     this.keyboardNoControl1.Size          = new System.Drawing.Size(208, 172);
     this.keyboardNoControl1.TabIndex      = 79;
     this.keyboardNoControl1.TabStop       = false;
     //
     // ForwarderWnd
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor         = System.Drawing.Color.White;
     this.ClientSize        = new System.Drawing.Size(1022, 766);
     this.ControlBox        = false;
     this.Controls.Add(this.grpRLC);
     this.Controls.Add(this.cmdCancel);
     this.Controls.Add(this.cmdEnter);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.imgIcon);
     this.Font            = new System.Drawing.Font("Tahoma", 8F);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.KeyPreview      = true;
     this.Name            = "ForwarderWnd";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Load           += new System.EventHandler(this.ForwarderWnd_Load);
     this.KeyDown        += new System.Windows.Forms.KeyEventHandler(this.ForwarderWnd_KeyDown);
     ((System.ComponentModel.ISupportInitialize)(this.imgIcon)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.grpRLC.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemple #14
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.imgIcon              = new System.Windows.Forms.PictureBox();
     this.dgCashCount          = new System.Windows.Forms.DataGrid();
     this.dgStyle              = new System.Windows.Forms.DataGridTableStyle();
     this.DenominationID       = new System.Windows.Forms.DataGridTextBoxColumn();
     this.ImagePath            = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DenominationValue    = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DenominationCount    = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DenominationAmount   = new System.Windows.Forms.DataGridTextBoxColumn();
     this.DenominationCode     = new System.Windows.Forms.DataGridTextBoxColumn();
     this.imgImagePath         = new System.Windows.Forms.PictureBox();
     this.lblHeader            = new System.Windows.Forms.Label();
     this.txtDenominationCount = new System.Windows.Forms.TextBox();
     this.label13              = new System.Windows.Forms.Label();
     this.lblCashCount         = new System.Windows.Forms.Label();
     this.lblDescription       = new System.Windows.Forms.Label();
     this.cmdCancel            = new System.Windows.Forms.Button();
     this.cmdEnter             = new System.Windows.Forms.Button();
     this.keyboardNoControl1   = new AceSoft.KeyBoardHook.KeyboardNoControl();
     ((System.ComponentModel.ISupportInitialize)(this.imgIcon)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgCashCount)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.imgImagePath)).BeginInit();
     this.SuspendLayout();
     //
     // imgIcon
     //
     this.imgIcon.BackColor = System.Drawing.Color.Blue;
     this.imgIcon.Location  = new System.Drawing.Point(9, 5);
     this.imgIcon.Name      = "imgIcon";
     this.imgIcon.Size      = new System.Drawing.Size(49, 49);
     this.imgIcon.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.imgIcon.TabIndex  = 0;
     this.imgIcon.TabStop   = false;
     this.imgIcon.Click    += new System.EventHandler(this.imgIcon_Click);
     //
     // dgCashCount
     //
     this.dgCashCount.AlternatingBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.dgCashCount.BackColor            = System.Drawing.Color.White;
     this.dgCashCount.BackgroundColor      = System.Drawing.Color.White;
     this.dgCashCount.BorderStyle          = System.Windows.Forms.BorderStyle.FixedSingle;
     this.dgCashCount.CaptionBackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.dgCashCount.CaptionFont          = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dgCashCount.CaptionForeColor     = System.Drawing.Color.Blue;
     this.dgCashCount.CaptionVisible       = false;
     this.dgCashCount.DataMember           = "";
     this.dgCashCount.Enabled            = false;
     this.dgCashCount.FlatMode           = true;
     this.dgCashCount.Font               = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dgCashCount.HeaderBackColor    = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(81)))), ((int)(((byte)(153)))));
     this.dgCashCount.HeaderFont         = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dgCashCount.HeaderForeColor    = System.Drawing.Color.White;
     this.dgCashCount.Location           = new System.Drawing.Point(0, 60);
     this.dgCashCount.Name               = "dgCashCount";
     this.dgCashCount.PreferredRowHeight = 50;
     this.dgCashCount.ReadOnly           = true;
     this.dgCashCount.RowHeadersVisible  = false;
     this.dgCashCount.RowHeaderWidth     = 5;
     this.dgCashCount.SelectionBackColor = System.Drawing.Color.RoyalBlue;
     this.dgCashCount.SelectionForeColor = System.Drawing.Color.White;
     this.dgCashCount.Size               = new System.Drawing.Size(722, 526);
     this.dgCashCount.TabIndex           = 4;
     this.dgCashCount.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
         this.dgStyle
     });
     this.dgCashCount.TabStop = false;
     //
     // dgStyle
     //
     this.dgStyle.AlternatingBackColor = System.Drawing.Color.White;
     this.dgStyle.BackColor            = System.Drawing.Color.White;
     this.dgStyle.DataGrid             = this.dgCashCount;
     this.dgStyle.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
         this.DenominationID,
         this.ImagePath,
         this.DenominationValue,
         this.DenominationCount,
         this.DenominationAmount,
         this.DenominationCode
     });
     this.dgStyle.HeaderBackColor      = System.Drawing.Color.DarkOrange;
     this.dgStyle.HeaderFont           = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.dgStyle.HeaderForeColor      = System.Drawing.Color.White;
     this.dgStyle.MappingName          = "tblDenominationsasasasas";
     this.dgStyle.PreferredColumnWidth = 180;
     this.dgStyle.PreferredRowHeight   = 30;
     this.dgStyle.RowHeadersVisible    = false;
     this.dgStyle.RowHeaderWidth       = 5;
     this.dgStyle.SelectionBackColor   = System.Drawing.Color.Green;
     this.dgStyle.SelectionForeColor   = System.Drawing.Color.White;
     //
     // DenominationID
     //
     this.DenominationID.Format      = "";
     this.DenominationID.FormatInfo  = null;
     this.DenominationID.MappingName = "DenominationID";
     this.DenominationID.NullText    = "";
     this.DenominationID.ReadOnly    = true;
     this.DenominationID.Width       = 0;
     //
     // ImagePath
     //
     this.ImagePath.Format      = "";
     this.ImagePath.FormatInfo  = null;
     this.ImagePath.MappingName = "ImagePath";
     this.ImagePath.NullText    = "";
     this.ImagePath.ReadOnly    = true;
     this.ImagePath.Width       = 20;
     //
     // DenominationValue
     //
     this.DenominationValue.Format      = "#,##0.#0";
     this.DenominationValue.FormatInfo  = null;
     this.DenominationValue.HeaderText  = "Value";
     this.DenominationValue.MappingName = "DenominationValue";
     this.DenominationValue.ReadOnly    = true;
     this.DenominationValue.Width       = 0;
     //
     // DenominationCount
     //
     this.DenominationCount.Alignment   = System.Windows.Forms.HorizontalAlignment.Right;
     this.DenominationCount.Format      = "#,##0";
     this.DenominationCount.FormatInfo  = null;
     this.DenominationCount.HeaderText  = "Enter Deno. Count";
     this.DenominationCount.MappingName = "DenominationCount";
     this.DenominationCount.NullText    = "";
     this.DenominationCount.Width       = 75;
     //
     // DenominationAmount
     //
     this.DenominationAmount.Alignment   = System.Windows.Forms.HorizontalAlignment.Center;
     this.DenominationAmount.Format      = "#,##0.#0";
     this.DenominationAmount.FormatInfo  = null;
     this.DenominationAmount.HeaderText  = "Amount";
     this.DenominationAmount.MappingName = "DenominationAmount";
     this.DenominationAmount.NullText    = "";
     this.DenominationAmount.ReadOnly    = true;
     this.DenominationAmount.Width       = 75;
     //
     // DenominationCode
     //
     this.DenominationCode.Format      = "";
     this.DenominationCode.FormatInfo  = null;
     this.DenominationCode.HeaderText  = "Denomination";
     this.DenominationCode.MappingName = "DenominationCode";
     this.DenominationCode.NullText    = "";
     this.DenominationCode.ReadOnly    = true;
     this.DenominationCode.Width       = 200;
     //
     // imgImagePath
     //
     this.imgImagePath.BackColor = System.Drawing.Color.Blue;
     this.imgImagePath.Location  = new System.Drawing.Point(0, 0);
     this.imgImagePath.Name      = "imgImagePath";
     this.imgImagePath.Size      = new System.Drawing.Size(49, 49);
     this.imgImagePath.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.imgImagePath.TabIndex  = 0;
     this.imgImagePath.TabStop   = false;
     //
     // lblHeader
     //
     this.lblHeader.AutoSize  = true;
     this.lblHeader.BackColor = System.Drawing.Color.Transparent;
     this.lblHeader.Font      = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblHeader.ForeColor = System.Drawing.Color.White;
     this.lblHeader.Location  = new System.Drawing.Point(67, 22);
     this.lblHeader.Name      = "lblHeader";
     this.lblHeader.Size      = new System.Drawing.Size(103, 13);
     this.lblHeader.TabIndex  = 5;
     this.lblHeader.Text      = "Enter Cash Count";
     //
     // txtDenominationCount
     //
     this.txtDenominationCount.BackColor   = System.Drawing.Color.RoyalBlue;
     this.txtDenominationCount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.txtDenominationCount.Font        = new System.Drawing.Font("Tahoma", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.txtDenominationCount.ForeColor   = System.Drawing.Color.White;
     this.txtDenominationCount.Location    = new System.Drawing.Point(728, 206);
     this.txtDenominationCount.MaxLength   = 16;
     this.txtDenominationCount.Name        = "txtDenominationCount";
     this.txtDenominationCount.Size        = new System.Drawing.Size(282, 36);
     this.txtDenominationCount.TabIndex    = 0;
     this.txtDenominationCount.TextAlign   = System.Windows.Forms.HorizontalAlignment.Right;
     this.txtDenominationCount.Visible     = false;
     this.txtDenominationCount.KeyPress   += new System.Windows.Forms.KeyPressEventHandler(this.txtDenominationCount_KeyPress);
     //
     // label13
     //
     this.label13.AutoSize  = true;
     this.label13.BackColor = System.Drawing.Color.Transparent;
     this.label13.Font      = new System.Drawing.Font("Arial Narrow", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label13.Location  = new System.Drawing.Point(592, 10);
     this.label13.Name      = "label13";
     this.label13.Size      = new System.Drawing.Size(142, 29);
     this.label13.TabIndex  = 6;
     this.label13.Text      = "CASH COUNT";
     //
     // lblCashCount
     //
     this.lblCashCount.BackColor = System.Drawing.Color.Transparent;
     this.lblCashCount.Font      = new System.Drawing.Font("Arial Narrow", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lblCashCount.ForeColor = System.Drawing.Color.Firebrick;
     this.lblCashCount.Location  = new System.Drawing.Point(760, 10);
     this.lblCashCount.Name      = "lblCashCount";
     this.lblCashCount.Size      = new System.Drawing.Size(170, 25);
     this.lblCashCount.TabIndex  = 7;
     this.lblCashCount.Text      = "0.00";
     this.lblCashCount.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lblDescription
     //
     this.lblDescription.AutoSize  = true;
     this.lblDescription.BackColor = System.Drawing.Color.Transparent;
     this.lblDescription.ForeColor = System.Drawing.Color.LightSlateGray;
     this.lblDescription.Location  = new System.Drawing.Point(458, 38);
     this.lblDescription.Name      = "lblDescription";
     this.lblDescription.Size      = new System.Drawing.Size(473, 13);
     this.lblDescription.TabIndex  = 5;
     this.lblDescription.Tag       = "";
     this.lblDescription.Text      = "Select the denomination you want to enter, then press the number to enter no. of " +
                                     "denomination.";
     //
     // cmdCancel
     //
     this.cmdCancel.AutoSize = true;
     this.cmdCancel.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.cmdCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.cmdCancel.Font      = new System.Drawing.Font("Times New Roman", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cmdCancel.ForeColor = System.Drawing.Color.White;
     this.cmdCancel.Location  = new System.Drawing.Point(765, 618);
     this.cmdCancel.Name      = "cmdCancel";
     this.cmdCancel.Size      = new System.Drawing.Size(106, 83);
     this.cmdCancel.TabIndex  = 3;
     this.cmdCancel.TabStop   = false;
     this.cmdCancel.Text      = "CANCEL";
     this.cmdCancel.UseVisualStyleBackColor = true;
     this.cmdCancel.Click += new System.EventHandler(this.cmdCancel_Click);
     //
     // cmdEnter
     //
     this.cmdEnter.AutoSize = true;
     this.cmdEnter.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.cmdEnter.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.cmdEnter.Font      = new System.Drawing.Font("Times New Roman", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cmdEnter.ForeColor = System.Drawing.Color.White;
     this.cmdEnter.Location  = new System.Drawing.Point(877, 618);
     this.cmdEnter.Name      = "cmdEnter";
     this.cmdEnter.Size      = new System.Drawing.Size(106, 83);
     this.cmdEnter.TabIndex  = 2;
     this.cmdEnter.TabStop   = false;
     this.cmdEnter.Text      = "ENTER";
     this.cmdEnter.UseVisualStyleBackColor = true;
     this.cmdEnter.Click += new System.EventHandler(this.cmdEnter_Click);
     //
     // keyboardNoControl1
     //
     this.keyboardNoControl1.BackColor       = System.Drawing.Color.White;
     this.keyboardNoControl1.commandBlank1   = AceSoft.KeyBoardHook.CommandBlank1.Up;
     this.keyboardNoControl1.commandBlank2   = AceSoft.KeyBoardHook.CommandBlank2.Down;
     this.keyboardNoControl1.Location        = new System.Drawing.Point(781, 248);
     this.keyboardNoControl1.Name            = "keyboardNoControl1";
     this.keyboardNoControl1.Size            = new System.Drawing.Size(208, 172);
     this.keyboardNoControl1.TabIndex        = 8;
     this.keyboardNoControl1.TabStop         = false;
     this.keyboardNoControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardNoControl1_UserKeyPressed);
     //
     // CashCountWnd
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.BackColor         = System.Drawing.Color.White;
     this.ClientSize        = new System.Drawing.Size(1022, 766);
     this.ControlBox        = false;
     this.Controls.Add(this.keyboardNoControl1);
     this.Controls.Add(this.cmdCancel);
     this.Controls.Add(this.cmdEnter);
     this.Controls.Add(this.lblDescription);
     this.Controls.Add(this.label13);
     this.Controls.Add(this.lblHeader);
     this.Controls.Add(this.lblCashCount);
     this.Controls.Add(this.txtDenominationCount);
     this.Controls.Add(this.dgCashCount);
     this.Controls.Add(this.imgIcon);
     this.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.KeyPreview      = true;
     this.MaximizeBox     = false;
     this.Name            = "CashCountWnd";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Load           += new System.EventHandler(this.CashCount_Load);
     this.KeyDown        += new System.Windows.Forms.KeyEventHandler(this.CashCount_KeyDown);
     this.Resize         += new System.EventHandler(this.CashCount_Resize);
     ((System.ComponentModel.ISupportInitialize)(this.imgIcon)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dgCashCount)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.imgImagePath)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemple #15
0
        private void CreditPaymentWnd_Load(object sender, System.EventArgs e)
        {
            if (TerminalDetails.WithRestaurantFeatures)
            {
                this.keyboardSearchControl1 = new AceSoft.KeyBoardHook.KeyboardSearchControl();
                this.keyboardNoControl1     = new AceSoft.KeyBoardHook.KeyboardNoControl();

                //
                // keyboardSearchControl1
                //
                this.keyboardSearchControl1.BackColor       = System.Drawing.Color.White;
                this.keyboardSearchControl1.Location        = new System.Drawing.Point(91, 310);
                this.keyboardSearchControl1.Name            = "keyboardSearchControl1";
                this.keyboardSearchControl1.Size            = new System.Drawing.Size(799, 134);
                this.keyboardSearchControl1.TabIndex        = 89;
                this.keyboardSearchControl1.TabStop         = false;
                this.keyboardSearchControl1.Tag             = "";
                this.keyboardSearchControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardSearchControl1_UserKeyPressed);
                //
                // keyboardNoControl1
                //
                this.keyboardNoControl1.BackColor       = System.Drawing.Color.White;
                this.keyboardNoControl1.commandBlank1   = AceSoft.KeyBoardHook.CommandBlank1.Up;
                this.keyboardNoControl1.commandBlank2   = AceSoft.KeyBoardHook.CommandBlank2.Down;
                this.keyboardNoControl1.Location        = new System.Drawing.Point(412, 310);
                this.keyboardNoControl1.Name            = "keyboardNoControl1";
                this.keyboardNoControl1.Size            = new System.Drawing.Size(208, 172);
                this.keyboardNoControl1.TabIndex        = 90;
                this.keyboardNoControl1.TabStop         = false;
                this.keyboardNoControl1.Visible         = false;
                this.keyboardNoControl1.UserKeyPressed += new AceSoft.KeyBoardHook.KeyboardDelegate(this.keyboardNoControl1_UserKeyPressed);

                this.Controls.Add(this.keyboardSearchControl1);
                this.Controls.Add(this.keyboardNoControl1);

                keyboardNoControl1.Visible     = TerminalDetails.WithRestaurantFeatures;
                keyboardSearchControl1.Visible = false;
            }

            lblAllowedCredit.Text = mdecAllowedCredit.ToString("#,##0.#0");
            lblBalanceAmount.Text = mdecBalanceAmount.ToString("#,##0.#0");
            txtAmount.Text        = mdecBalanceAmount.ToString("#,##0.#0");
            lblCredit.Text        = "Credit Amount (" + CompanyDetails.Currency + ")";

            if (mclsSalesTransactionDetails.isConsignment)
            {
                lblHeader.Text             = "Tender Consignment Amount";
                lblAllowedCreditLabel.Text = "Allowed consignment amount.";
            }
            else
            {
                lblHeader.Text             = "Tender Credit Amount";
                lblAllowedCreditLabel.Text = "Allowed credit amount.";
            }
            if (mboIsRefund)
            {
                lblHeader.Text             = "Tender Credit Amount to refund";
                lblBalance.Text            = "Current Balance to be refunded.";
                lblAllowedCreditLabel.Text = "Current credit amount.";

                //overwrite the allowable credit if it's refund
                // set the allowable credit to highest if refund
                mdecAllowedCredit = 10000000;
            }
        }