Exemplo n.º 1
0
        private void Reflesh()
        {
            KIncoming = mIncoming;
            KOutgoing = mOutgoing;

            HellaServiceDriver MyHellaServiceDriver = new HellaServiceDriver();
            int tempTaskID = MyHellaServiceDriver.GetLastCounting(CounterID, ServerTaskID, ref mIncoming, ref mOutgoing);

            INnumberlabel.Text = mIncoming.ToString();
            OutGolabel.Text    = mOutgoing.ToString();

            if (ServerTaskID == 0)
            {
                TaskIDTextBox.Text = tempTaskID.ToString();
                ServerTaskID       = (uint)tempTaskID;
            }


            if (mIncoming > KIncoming || mOutgoing > KOutgoing)
            {
                if (SoundCheckBox.Checked)
                {
                    PlaySpund();
                }

                OutMessage(null, 2);
            }
        }
Exemplo n.º 2
0
        private void SchedulingButton_Click(object sender, EventArgs e)
        {
            //-1.----------------------------
            CounterID = APCComboBox.Text.TrimEnd();
            OrderID   = LGJUUIDUtis.GetMobileIDNumberCode15() + LGJUUIDUtis.GetMobileIDCode6();;

            OutMessage(null);
            //--2.---------------------------
            uint mTaskID = 0;
            HellaServiceDriver MyHellaServiceDriver = new HellaServiceDriver();

            ReturnValue  = MyHellaServiceDriver.InsertNewTask(CounterID, OrderID, ref mTaskID);
            ServerTaskID = mTaskID;

            OutMessage(null, 1);

            UpdateUI();
        }