コード例 #1
0
        //车间概况电子看板设定
        private void SetFacProductMessageControlValue(FacProductMessageControl facProductMessageControl)
        {
            WatchPanelFacade watchPanelFacade = new WatchPanelFacade(this.DataProvider);

            object[] outPut             = watchPanelFacade.QueryOutPutQtyGroupByItemType(_BigLineList, _CuerrtDay, false);
            int      finshItemQty       = 0;
            int      semimanuFactureQty = 0;

            if (outPut != null)
            {
                foreach (watchPanelProductDate obj in outPut)
                {
                    if (obj.Mtype == ItemType.ITEMTYPE_FINISHEDPRODUCT)
                    {
                        finshItemQty = obj.MonthProductQty;
                    }

                    if (obj.Mtype == ItemType.ITEMTYPE_SEMIMANUFACTURE)
                    {
                        semimanuFactureQty = obj.MonthProductQty;
                    }
                }
            }

            object[] gridDataSource    = _WatchPanelFacade.QueryProudctDataByDateAndSSCodeList(_CuerrtDay, _BigLineList);
            object[] barJoinDataSource = _WatchPanelFacade.QueryOQCLotPassRate(_CuerrtDay, _BigLineList);
            object[] peiDataSource     = _WatchPanelFacade.QueryErrorCasueTopFive(_CuerrtDay, _BigLineList);

            facProductMessageControl.FinshItemQty          = finshItemQty;
            facProductMessageControl.SemimanuFactureQty    = semimanuFactureQty;
            facProductMessageControl.BigLineListInProduct  = GetBigLineListInProduct(true);
            facProductMessageControl.BigLineListOutProduct = GetBigLineListInProduct(false);
            facProductMessageControl.GridDataSource        = gridDataSource;
            facProductMessageControl.BarJoinDataSource     = barJoinDataSource;
            facProductMessageControl.PeiDataSource         = peiDataSource;
            //Added By Nettie Chen 2009/09/23
            facProductMessageControl.IsShowFinishedProduct = _IsShowFinishedProduct;
            facProductMessageControl.IsShowSemimanuProduct = _IsShowSemimanuProduct;
            //End Added
            facProductMessageControl.InitControlsValue();
        }