Example #1
0
        private void SettingTableSize_Loaded(object sender, RoutedEventArgs e)
        {
            txtWidth.Text  = ReadWriteData.readTableSize()[0];
            txtHeight.Text = ReadWriteData.readTableSize()[1];

            string[] result = ReadWriteData.ReadPrinterSetting();
            if (result != null)
            {
                txtReceptionPrinter.Text = result[0];
                txtKitPrinter.Text       = result[1];
                txtBarPrinter.Text       = result[2];

                if (int.Parse(result[3]) == 1)
                {
                    chbShowReviewWin.IsChecked = true;
                }
                else
                {
                    chbShowReviewWin.IsChecked = false;
                }
            }
            else
            {
                txtReceptionPrinter.Text   = "";
                txtKitPrinter.Text         = "";
                txtBarPrinter.Text         = "";
                chbShowReviewWin.IsChecked = true;
            }

            isLoading = false;
        }
Example #2
0
        public DoPrintHelper(EmployeewsOfLocalPOS unitofwork, EmployeewsOfCloudPOS cloudPosUnitofwork, int printType, OrderNote currentOrder)
        {
            _unitofwork         = unitofwork;
            _cloudPosUnitofwork = cloudPosUnitofwork;
            type     = printType;
            curOrder = currentOrder;
            printDlg = new PrintDialog();

            string[] result = ReadWriteData.ReadPrinterSetting();
            if (result != null)
            {
                _receptionPrinter = result[0];
                _kitchentPrinter  = result[1];
                _barPrinter       = result[2];

                if (int.Parse(result[3]) == 1)
                {
                    isShowReview = true;
                }
                else
                {
                    isShowReview = false;
                }
            }
            else
            {
                _receptionPrinter = "";
                _kitchentPrinter  = "";
                _barPrinter       = "";
                isShowReview      = true;
            }
        }
Example #3
0
        private void BtnPrinterCancel_OnClick(object sender, RoutedEventArgs e)
        {
            string[] result = ReadWriteData.ReadPrinterSetting();
            if (result != null)
            {
                txtReceptionPrinter.Text = result[0];
                txtKitPrinter.Text       = result[1];
                txtBarPrinter.Text       = result[2];

                if (int.Parse(result[3]) == 1)
                {
                    chbShowReviewWin.IsChecked = true;
                }
                else
                {
                    chbShowReviewWin.IsChecked = false;
                }
            }
            else
            {
                txtReceptionPrinter.Text   = "";
                txtKitPrinter.Text         = "";
                txtBarPrinter.Text         = "";
                chbShowReviewWin.IsChecked = true;
            }

            btnPrinterApply.Background = Brushes.Orange;
        }