Esempio n. 1
0
        private void TenderLock_DIGITAL_LOCK()
        {
            //this.lblSalesperson
            this.lblSalesperson.Text = "";
            this.lblSalesPersonName.Text = "";
            lblSalesperson.DataBindings.Clear();
            lblSalesPersonName.DataBindings.Clear();

            ACMS.ACMSPOS2.FormTender frm = new ACMS.ACMSPOS2.FormTender(myPOS);
            DialogResult result = frm.ShowDialog(this);

            if (result == DialogResult.OK)
            {

                ACMSLogic.POSCommand command = ACMSLogic.POSCommand.Create();
                command.SavePOS(myPOS);
                command.PrintReceipt(myPOS);
                this.Close();
            }
        }
Esempio n. 2
0
        private void Tender()
        {
            if (myPOS.NCategoryID == 1 || myPOS.NCategoryID == 2 || myPOS.NCategoryID == 3 ||
                myPOS.NCategoryID == 4 || myPOS.NCategoryID == 5 || myPOS.NCategoryID == 6 ||
                myPOS.NCategoryID == 7 || myPOS.NCategoryID == 8 || myPOS.NCategoryID == 9 ||
                myPOS.NCategoryID == 10 || myPOS.NCategoryID == 11 || myPOS.NCategoryID == 12 ||
                myPOS.NCategoryID == 36 || myPOS.NCategoryID == 37 ||
                myPOS.NCategoryID == 18 || myPOS.NCategoryID == 19 || myPOS.NCategoryID == 34)
            {
                if (!myPOS.NSalespersonID.HasValue)
                {
                    DialogResult result1 = MessageBox.Show(this, "Sales Person is empty. Do you want to add it now? ", "Warning",
                        MessageBoxButtons.YesNo);

                    if (result1 == DialogResult.Yes)
                    {
                        btnF2.PerformClick();
                        return;
                    }
                    else
                    {
                        return;
                    }
                }

            }

            ACMS.ACMSPOS2.FormTender frm = new ACMS.ACMSPOS2.FormTender(myPOS);
            DialogResult result = frm.ShowDialog(this);

            if (result == DialogResult.OK)
            {

                ACMSLogic.POSCommand command = ACMSLogic.POSCommand.Create();
                command.SavePOS(myPOS);
                command.PrintReceipt(myPOS);
                this.Close();
            }
        }