Beispiel #1
0
 public TicketAccemble(string[,] D,string id, Globals global)
 {
     this.D = D;
     this.global = global;
     this.id = id;
     this.settings = new Settings1();
 }
Beispiel #2
0
        public Auth(Globals global)
        {
            InitializeComponent();
            settings = new Settings1();

            this.global = global;
            textboxInput.Text = "- - - - - - -";
        }
Beispiel #3
0
        public TicketSumCount(Globals global)
        {
            InitializeComponent();
            settings = new Settings1();

            this.global = global;
            textboxInput.Text = "000.00";

            if (settings.configInputRtoL == "0")
                InputString = "00";
        }
Beispiel #4
0
        ////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////
        public HardKKM(string[,] D, string id, double sumEntered, Globals global)
        {
            this.D = D;
            this.id = id;
            this.way = 1;
            this.sumEntered = sumEntered;
            this.global = global;
            this.settings = new Settings1();

            PrintFromDataTicket();
        }
Beispiel #5
0
        ////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////
        public Register(Globals global)
        {
            InitializeComponent();
            this.global = global;
            settings = new Settings1();
            SettingIncremet("data");
            TicketIdUpdate();
            InitCodePort();
            SetDoubleBuffered(dataGrid);

            if (settings.configInputRtoL == "0")
                InputString = "00";
        }
Beispiel #6
0
        ////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////
        public HardKKM(string data)
        {
            settings = new Settings1();
            if (data == "X")
            {
                InitDriver(2);
                printer.ReportType = 2;
                printer.Report();
            }
            if (data == "Z")
            {

                InitDriver(3);
                printer.ReportType = 1;
                printer.Report();
            }
        }
Beispiel #7
0
        public TicketCount(int way, Globals global,string title)
        {
            InitializeComponent();
            settings = new Settings1();
            this.Text = title;
            this.way = way;
            this.global = global;
            if (way == 0)
            {
                textboxInput.Text = "0";
            }
            else
            {
                textboxInput.Text = "00.000";
            }

            if (settings.configInputRtoL == "0" && way == 1)
                InputString = "000";
        }
Beispiel #8
0
        private void Settings_Load(object sender, EventArgs e)
        {
            settings = new Settings1();
            ////////////////////////////////////////////////////////////////////////////////

            KKMList[0, 0] = "14"; KKMList[0, 1] = "ФЕЛИКС-Р Ф";
            KKMList[1, 0] = "15"; KKMList[1, 1] = "ФЕЛИКС-02К / ЕНВД";
            KKMList[2, 0] = "16"; KKMList[2, 1] = "МЕРКУРИЙ-140Ф";
            KKMList[3, 0] = "18"; KKMList[3, 1] = "ШТРИХ-ФР-Ф";
            KKMList[4, 0] = "20"; KKMList[4, 1] = "ТОРНАДО";
            KKMList[5, 0] = "23"; KKMList[5, 1] = "ТОРНАДО-К";
            KKMList[6, 0] = "24"; KKMList[6, 1] = "ФЕЛИКС-РК / ЕНВД";
            KKMList[7, 0] = "25"; KKMList[7, 1] = "ШТРИХ-ФР-К";
            KKMList[8, 0] = "26"; KKMList[8, 1] = "ЭЛВЕС-ФР-К";
            KKMList[9, 0] = "27"; KKMList[9, 1] = "ФЕЛИКС-3СК";
            KKMList[10, 0] = "28"; KKMList[10, 1] = "ШТРИХ-МИНИ-ФР-К";
            KKMList[11, 0] = "30"; KKMList[11, 1] = "FPrint-02K / ЕНВД";
            KKMList[12, 0] = "31"; KKMList[12, 1] = "FPrint-03K / ЕНВД";
            KKMList[13, 0] = "32"; KKMList[13, 1] = "FPrint-88K / ЕНВД";
            KKMList[14, 0] = "33"; KKMList[14, 1] = "BIXOLON-01K";
            KKMList[15, 0] = "35"; KKMList[15, 1] = "FPrint-5200K / ЕНВД";
            KKMList[16, 0] = "41"; KKMList[16, 1] = "PayVKP-80K";
            KKMList[17, 0] = "42"; KKMList[17, 1] = "Аура-01ФР-KZ";
            KKMList[18, 0] = "43"; KKMList[18, 1] = "PayVKP-80KZ";
            KKMList[19, 0] = "45"; KKMList[19, 1] = "PayPPU-700K";
            KKMList[20, 0] = "46"; KKMList[20, 1] = "PayCTS-2000K";
            KKMList[21, 0] = "47"; KKMList[21, 1] = "FPrint-55K / ЕНВД";
            KKMList[22, 0] = "102"; KKMList[22, 1] = "MSTAR-Ф";
            KKMList[23, 0] = "107"; KKMList[23, 1] = "ШТРИХ-КОМБО-ФР-К";
            KKMList[24, 0] = "110"; KKMList[24, 1] = "ШТРИХ-М-ФР-К";
            KKMList[25, 0] = "113"; KKMList[25, 1] = "ШТРИХ-LIGHT-ФР-К";

            ////////////////////////////////////////////////////////////////////////////////
            ////////////////////////////////////////////////////////////////////////////////

            FillKKM();

            if (settings.configTicketMetaCount == "1") configTicketMetaCount.Checked = true;
            if (settings.configInputRtoL == "1") configInputRtoL.Checked = true;

            if (settings.TicketFullEqual == "1") checkBox1.Checked = true;
            if (settings.TicketFullZero == "1") checkBox3.Checked = true;
            if (settings.TicketDenyZero == "1") checkBox2.Checked = true;

            if (settings.AskSumFromClient == "1") checkBox17.Checked = true;
            if (settings.NotifySumError == "1") checkBox18.Checked = true;

            ScannerPort.Text = settings.ScannerPort;
            //PrinterPort.Text = settings.PrinterPort;
            //PrinterSection.Text = settings.PrinterSection;

            textBox13.Text = settings.KeyClose;
            textBox14.Text = settings.KeyCancel;
            textBox16.Text = settings.KeyEnter;
            textBox15.Text = settings.KeySearchCode1;
            textBox17.Text = settings.KeySearchArt;
            textBox18.Text = settings.KeySearchCode0;
            textBox19.Text = settings.KeySearchVisual;

            textBox20.Text = settings.KeyDeleteString;
            textBox21.Text = settings.KeyDeleteChar;
            textBox22.Text = settings.KeyPrint;

            textBox31.Text = settings.KeyNum1;
            textBox30.Text = settings.KeyNum2;
            textBox45.Text = settings.KeyNum3;
            textBox46.Text = settings.KeyNum4;
            textBox43.Text = settings.KeyNum5;
            textBox44.Text = settings.KeyNum6;
            textBox41.Text = settings.KeyNum7;
            textBox42.Text = settings.KeyNum8;
            textBox39.Text = settings.KeyNum9;
            textBox40.Text = settings.KeyNum0;
            textBox38.Text = settings.KeyNumNote;

            textBox36.Text = settings.KeyUp;
            textBox37.Text = settings.KeyDown;
            textBox34.Text = settings.KeyRight;
            textBox35.Text = settings.KeyLeft;

            textBox27.Text = settings.KeyDiscontAll;
            textBox25.Text = settings.KeyDiscontPos;

            textBox2.Text = settings.KKM0Port;
            textBox3.Text = settings.KKM0Section;
            if (settings.KKM0SystemId == "1") checkBox4.Checked = true;
            if (settings.KKM0UserName == "1") checkBox5.Checked = true;
            if (settings.KKM0ItemTitle == "1") checkBox6.Checked = true;
            if (settings.KKM0ItemCode == "1") checkBox7.Checked = true;
            if (settings.KKM0ItemArt == "1") checkBox8.Checked = true;
            if (settings.KKM0Border == "1") checkBox9.Checked = true;
            if (settings.KKM0ItemCansel == "1") checkBox19.Checked = true;

            textBox1.Text = settings.KKM1Port;
            textBox4.Text = settings.KKM1Section;
            if (settings.KKM1SystemId == "1") checkBox15.Checked = true;
            if (settings.KKM1UserName == "1") checkBox14.Checked = true;
            if (settings.KKM1ItemTitle == "1") checkBox13.Checked = true;
            if (settings.KKM1ItemCode == "1") checkBox12.Checked = true;
            if (settings.KKM1ItemArt == "1") checkBox11.Checked = true;
            if (settings.KKM1Border == "1") checkBox10.Checked = true;
            if (settings.KKM1ItemCansel == "1") checkBox20.Checked = true;

            textBox5.Text = settings.DB0Ip;
            textBox6.Text = settings.DB0Base;
            textBox7.Text = settings.DB0User;
            textBox8.Text = settings.DB0Pass;

            textBox12.Text = settings.DB1Ip;
            textBox11.Text = settings.DB1Base;
            textBox10.Text = settings.DB1User;
            textBox9.Text = settings.DB1Pass;
            if (settings.DB1Use == "1") checkBox16.Checked = true;

            if (settings.DB1Info == "1") checkBox21.Checked = true;
        }
Beispiel #9
0
 public HardKKM()
 {
     settings = new Settings1();
     InitDriver(1);
 }
Beispiel #10
0
 public Globals()
 {
     conf = new Settings1(); LoadDiscontTime();
 }
Beispiel #11
0
 /////////////////////////////////////////////////////////////////////////////////////////////
 /////////////////////////////////////////////////////////////////////////////////////////////
 public My()
 {
     this.setting = new Settings1();
 }
Beispiel #12
0
        /////////////////////////////////////////////////////////////////////////////////////////////
        /////////////////////////////////////////////////////////////////////////////////////////////
        public void WriteLog(string data)
        {
            Settings1 setting = new Settings1();
            DateTime date = DateTime.Today;

            string fileTitle = Convert.ToString(date.Day) + "_" + Convert.ToString(date.Month) + "_" + Convert.ToString(date.Year) + "_[" + setting.SystemID + "]";
            string fileTitleFull = "logs/" + fileTitle + ".txt";
            FileInfo fc = new FileInfo(fileTitleFull);

            if (!File.Exists(fileTitleFull))
            {
                File.Create(fileTitleFull);
            }
            buffer = fileTitleFull;
            StreamWriter sw;
            sw = AccesToFile();
            sw.WriteLine("/* " + Convert.ToString(DateTime.Now) + " */   " + data + ";");
            sw.Close();
        }