//刷新常规信息 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(); }
//获取该大线的所有班组 private string GetCrewCodeList(string bigSSCode) { string crewList = string.Empty; WatchPanelFacade watchPanelFacade = new WatchPanelFacade(this.DataProvider); object[] crew = watchPanelFacade.QueryCrewList(bigSSCode, GetShiftDay(bigSSCode)); if (crew != null) { foreach (Line2Crew obj in crew) { crewList += "," + obj.CrewCode; } } if (crewList.Length > 0) { crewList = crewList.Substring(1); } return(crewList); }