예제 #1
0
        /// <summary>
        /// 集装箱结果
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AxVECONclient1_OnCombinedRecognitionResultISO(object sender, AxVeconclientProj.IVECONclientEvents_OnCombinedRecognitionResultISOEvent e)
        {
            Log_.logInfo.Info("Container Result " + e.triggerTime.ToString() + " " + e.checkSum1);
            Message("Container Result " + e.triggerTime.ToString() + " " + e.checkSum1);
            ContainerEvent(string.Format("Container Result at:{0} CheckSum:{1}", e.triggerTime.ToString(), e.checkSum1));
            InData_.Update(e.triggerTime, e.checkSum1);

            ResultChecknum = e.checkSum1;
            if (e.checkSum1 == "")
            {
                ResultChecknum = "null";
            }
            ResultDate();

            textBox1.Text = e.laneNum.ToString();
            textBox2.Text = e.triggerTime.ToString();
            textBox3.Text = e.containerNum1;
            textBox5.Text = e.iSO1;
            textBox6.Text = e.checkSum1;
            textBox4.Text = e.containerNum2;
            textBox8.Text = e.iSO2;
            textBox9.Text = e.checkSum2;
            switch (e.containerType)
            {
            case -1: textBox7.Text = "未知"; break;

            case 0: textBox7.Text = "20 吋集装箱"; break;

            case 1: textBox7.Text = "40 吋集装箱"; break;

            case 2: textBox7.Text = "两个 20 吋集装箱"; break;
            }
        }
예제 #2
0
        /// <summary>
        /// 箱号结果
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AxVECONclient_OnCombinedRecognitionResultISO(object sender, AxVeconclientProj.IVECONclientEvents_OnCombinedRecognitionResultISOEvent e)
        {
            Time   = e.triggerTime.ToString("yyyy-MM-dd HH:mm:ss");
            Con1   = e.containerNum1;
            IOS1   = e.iSO1;
            Check1 = e.checkSum1;
            Con2   = e.containerNum2;
            IOS2   = e.iSO2;
            Check2 = e.checkSum2;
            switch (e.containerType)
            {
            case -1: Type = "未知"; break;

            case 0: Type = "20 吋集装箱"; break;

            case 1: Type = "40 吋集装箱"; break;

            case 2: Type = "两个 20 吋集装箱"; break;
            }
        }