示例#1
0
        //刷新常规信息
        private void RefreshNormalProductMessage()
        {
            WatchPanelFacade watchPanelFacade = new WatchPanelFacade(this.DataProvider);

            int PlanQty            = watchPanelFacade.GetWorkPlanQty(this.BigLine, this.NowDBDate);
            int bigSSCodeOutPutQty = watchPanelFacade.GetBigSSCodeOutPutQty(this.BigLine, this.NowDBDate);
            int onPostManCount     = watchPanelFacade.GetOnPostManCount(this.BigLine, this.NowDBDate);

            string stringCrewList = string.Empty;

            object[] crewList = watchPanelFacade.QueryCrewList(this.BigLine, this.NowDBDate);
            if (crewList != null)
            {
                foreach (Line2Crew obj in crewList)
                {
                    stringCrewList += "," + obj.CrewCode;
                }
            }

            if (stringCrewList.Trim().Length > 1)
            {
                stringCrewList = stringCrewList.Substring(1);
            }


            this.userControlNormalMessage.PlanQty        = PlanQty.ToString();
            this.userControlNormalMessage.OnPostManCount = onPostManCount.ToString();
            this.userControlNormalMessage.OutPutQty      = bigSSCodeOutPutQty.ToString();
            this.userControlNormalMessage.Crew           = stringCrewList;
            this.userControlNormalMessage.Refresh();
        }
示例#2
0
        //设定产线看板
        private void SetSSCodeProductMessageControlValue(SSCodeProductMessageControl ssCodeProductMessageControl, string bigSSCode)
        {
            WatchPanelFacade watchPanelFacade = new WatchPanelFacade(this.DataProvider);

            int PlanQty            = watchPanelFacade.GetWorkPlanQty(bigSSCode, GetShiftDay(bigSSCode));
            int bigSSCodeOutPutQty = watchPanelFacade.GetBigSSCodeOutPutQty(bigSSCode, GetShiftDay(bigSSCode));
            int onPostManCount     = watchPanelFacade.GetOnPostManCount(bigSSCode, GetShiftDay(bigSSCode));

            ssCodeProductMessageControl.BigLineCode          = bigSSCode;
            ssCodeProductMessageControl.ExceptionMessageList = GetExceptionMessageList(bigSSCode);
            ssCodeProductMessageControl.HeaderLineMessage    = bigSSCode;

            ssCodeProductMessageControl.CrewCodeList       = GetCrewCodeList(bigSSCode);
            ssCodeProductMessageControl.PlanQty            = PlanQty;
            ssCodeProductMessageControl.OnPostManCount     = onPostManCount;
            ssCodeProductMessageControl.BigSSCodeOutPutQty = bigSSCodeOutPutQty;
            ssCodeProductMessageControl.ShiftCodeList      = GetShiftCodeList(bigSSCode);

            ssCodeProductMessageControl.ProductGridDataSource    = GetProductGridDataSource(bigSSCode);
            ssCodeProductMessageControl.RateLineTChartDataSource = GetRateLineTChartDataSource(bigSSCode);
            ssCodeProductMessageControl.BarJoinTChartDataSource  = GetBarJoinTChartDataSource(bigSSCode);

            ssCodeProductMessageControl.SetControlsValue();
        }