Beispiel #1
0
        //刷新物料送检信息
        private void RefreshOnlineResMessage()
        {
            this.m_DisToLineDataTable.Clear();
            WatchPanelDisToLineFacade watchPanelDisToLineFacade = new WatchPanelDisToLineFacade(this.DataProvider);

            object[] disToLineObjs = watchPanelDisToLineFacade.GetDisToLineQuery();
            if (disToLineObjs != null)
            {
                m_DisToLineObjs = disToLineObjs;
                BindDataTableMaterial(disToLineObjs);
            }
        }
Beispiel #2
0
        public void BindMessage()
        {
            if (listDisToLine.Count > 0 && messageNO < listDisToLine.Count)
            {
                DisToLineQuery            disToLineQuery            = listDisToLine[messageNO];
                WatchPanelDisToLineFacade watchPanelDisToLineFacade = new WatchPanelDisToLineFacade(this.DataProvider);
                object[] disToLineObjs = watchPanelDisToLineFacade.GetDisToLineQuery(disToLineQuery);
                if (disToLineObjs != null && disToLineObjs.Length > 0)
                {
                    disToLineQuery = disToLineObjs[0] as DisToLineQuery;
                }
                disToLineQuery.status = GetDisToLineStatus(disToLineQuery);
                if (!NeedAddLine(disToLineQuery))
                {
                    listDisToLine.Remove(disToLineQuery);
                }
                string message = disToLineQuery.SegCode + "车间" + disToLineQuery.SSCode + "产线"
                                 + disToLineQuery.MCode + "物料" + GetStatusMessageCHS(disToLineQuery.status);
                this.exceptionMessageControl.ExceptionMessage = message;
                if (disToLineQuery.status == "WaitDis")
                {
                    this.exceptionMessageControl.MessageColor = Color.LightBlue;
                }
                else if (disToLineQuery.status == "ERDis")
                {
                    this.exceptionMessageControl.MessageColor = Color.Yellow;
                }
                else if (disToLineQuery.status == "ShortDis")
                {
                    this.exceptionMessageControl.MessageColor = Color.Red;
                }

                messageNO++;
            }
            else
            {
                this.exceptionMessageControl.ExceptionMessage = string.Empty;
                messageNO = 0;
            }
        }