Beispiel #1
0
        //刷新产量信息
        private void RefreshOutPutQtyTChart()
        {
            this.m_OutPutQtyTable = new DataTable();
            this.m_OutPutQtyTable.Columns.Add("TimePeriodCode", typeof(string));
            this.m_OutPutQtyTable.Columns.Add("OutPutQty", typeof(int));

            WatchPanelFacade watchPanelFacade = new WatchPanelFacade(this.DataProvider);

            object[] RateDataList = watchPanelFacade.QueryOutPutQtyData(this.BigLine, this.NowDBDate);

            if (RateDataList != null)
            {
                DataRow newRow;
                foreach (NewReportDomainObject obj in RateDataList)
                {
                    newRow = this.m_OutPutQtyTable.NewRow();

                    newRow["TimePeriodCode"] = obj.PeriodCode;
                    newRow["OutPutQty"]      = obj.Output;

                    this.m_OutPutQtyTable.Rows.Add(newRow);
                }
            }

            this.m_OutPutQtyTable.AcceptChanges();

            OutPutJoin.JoinPen.Color      = Color.White;
            OutPutJoin.JoinPen.Width      = 2;
            OutPutJoin.LabelMember        = m_OutPutQtyTable.Columns["TimePeriodCode"].ToString();
            OutPutJoin.YValues.DataMember = m_OutPutQtyTable.Columns["OutPutQty"].ToString();
            OutPutJoin.Marks.Style        = Steema.TeeChart.Styles.MarksStyles.Value;
            OutPutJoin.DataSource         = m_OutPutQtyTable;

            this.DataChart.Refresh();
        }
Beispiel #2
0
        //产线看板产量的数据源
        private object[] GetBarJoinTChartDataSource(string bigSSCode)
        {
            WatchPanelFacade watchPanelFacade = new WatchPanelFacade(this.DataProvider);

            object[] RateDataList = watchPanelFacade.QueryOutPutQtyData(bigSSCode, GetShiftDay(bigSSCode));

            return(RateDataList);
        }