/// <summary>
        /// 填充车位信息界面
        /// </summary>
        /// <param name="carLocation"></param>
        public void FillFormCarLocation(CCarLocationDto carLocation, int nICType)
        {
            try
            {
                this.TxtWareHouse.Text    = CStaticClass.ConvertWareHouse(carLocation.warehouse);
                this.TxtAddress.Text      = carLocation.carlocside + "边," + carLocation.carloccolumn + "列," + carLocation.carloclayer + "层";
                this.TxtCarLocStatus.Text = CStaticClass.ConvertCarLocStatus(carLocation.carlocstatus);
                this.TxtUserID.Text       = carLocation.iccode;
                this.TxtUserType.Text     = CStaticClass.ConvertICCardType(nICType);
                this.TxtInTime.Text       = carLocation.carintime.ToString();
                this.TxtCarLocSize.Text   = carLocation.carlocsize;

                this.TxtCarSize.Text      = carLocation.carsize;
                this.TxtCarWheelBase.Text = carLocation.carwheelbase == null ? "0" : carLocation.carwheelbase.ToString();
                this.txtCarLG.Text        = carLocation.overallLg == null?"0":carLocation.overallLg.ToString();
                this.txtOverhang.Text     = carLocation.overhang == null?"0":carLocation.overhang.ToString();
                this.txtWeight.Text       = carLocation.carweight == null ? "0" : carLocation.carweight.ToString();
                this.txtOffCenter.Text    = carLocation.offcenter == null ? "0" : carLocation.offcenter.ToString();
                this.txtRearwheel.Text    = carLocation.rearwheeldis == null ? "0" : carLocation.rearwheeldis.ToString();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Beispiel #2
0
        private Dictionary <int, CSound> m_dicSound;//语音播放对象

        public CRequestAction()
        {
            m_nSendIDMax         = CConfigManagement.myPara.MaxTelegramID;//读取配置文件
            lstAction            = new List <CAbstractAction>();
            m_PLCServer          = null;
            m_telegram           = null;
            m_lstTelegram        = new List <struTelegram>(); // 发送报文列表
            m_soundName          = string.Empty;
            m_lstTableDto        = new List <struTableDto>(); // SQL操作表格数据
            m_ledContent         = string.Empty;              // LED显示文本内容
            m_struTelegram       = new struTelegram();
            m_carLocationTBL     = new CCarLocationDto();
            m_deviceStatusTBL    = new CDeviceStatusDto();
            m_struHallEquip      = new struHallEquips();
            m_soundUpdateContent = string.Empty;
            m_dicSound           = new Dictionary <int, CSound>();
        }