Example #1
0
        public void OpenDocument(byte type)
        {
            if (!driverExists)
            {
                return;
            }
            if (type > 2)
            {
                type = DOC_TYPE_ANNULATE;
            }
            else
            {
                type = DOC_TYPE_REGISTER;
            }

            cmd.OperatorName = cashierName;

            cmd.Mode = 1;
            cmd.SetMode();

            cmd.TestMode  = Properties.Settings.Default.testMode;
            cmd.CheckType = type;

            cmd.OpenCheck();

            if (cmd.Fiscal)
            {
                cmd.BeginFiscDocument();
            }
            else
            {
                cmd.BeginDocument();
            }
        }