Ejemplo n.º 1
0
        private String createFenZhuangMessage()
        {
            String duimahao      = "";
            String peiyangminhao = "";
            String tiaomahao     = "";
            String kongbanhao    = "";

            lock (KeyObject)
            {
                if (SubType == AutoDispenType.PeiYangMin)
                {
                    peiyangminhao = PeiYangMinHao.ToString();
                    duimahao      = DuiMaHao.ToString();
                }
                else
                {
                    kongbanhao = KongBanHao.ToString();
                }
            }
            tiaomahao = BarCodeGenerator.generateBarCode();
            increaseFenZhuangZhuangTai();
            String msg = "";

            //if (true) msg = AutoDispenDeviceMessageCreator.createMDFCodesReport(duimahao, peiyangminhao, tiaomahao);
            //else msg = AutoDispenDeviceMessageCreator.createMPFCodesReport(kongbanhao, tiaomahao);
            return(msg);
        }
Ejemplo n.º 2
0
        private void sendDispenMessage()
        {
            String barcode   = "";
            String platecode = "";

            lock (KeyObject)
            {
                platecode = MPF_Whichplate.ToString();
            }
            barcode = BarCodeGenerator.generateBarCode();
            increaseDispenStatus();
            String msg;

            MPF_BarCode = barcode;
            this.sendMPFCodesReport(platecode, barcode);
        }
Ejemplo n.º 3
0
        private void sendDispenMessage()
        {
            String Stackcode = "";
            String Petricode = "";
            String Barcode   = "";

            lock (KeyObject)
            {
                Petricode = MDF_WhichDish.ToString();
                Stackcode = MDF_WhichStack.ToString();
            }


            Barcode = BarCodeGenerator.generateBarCode();
            increaseDispenStatus();
            String msg;

            MDF_BarCode = Barcode;
            this.sendMDFCodesReport(Stackcode, Petricode, Barcode);
        }
Ejemplo n.º 4
0
        private void startTimer()
        {
            if (MMA_PlateDetect)
            {
                MMA_currentBarCode = BarCodeGenerator.generateBarCode();
            }
            String s = MultiTunnelDeviceMessageCreator.createKongBanReport(MMA_PlateDetect, MMA_currentBarCode);

            SendMsg(s);
            if (MMA_PlateDetect)
            {
                if (MMA_Timer != null)
                {
                    MMA_Timer.Stop();
                }
                MMA_Timer          = new System.Timers.Timer();
                MMA_Timer.Interval = MMA_MeasureTime * 1000;
                MMA_Timer.Elapsed += new System.Timers.ElapsedEventHandler(chuLiTimer_Elapsed);
                MMA_Timer.Start();
            }
        }