private void simpleButton1_Click(object sender, EventArgs e) { clsProductionSummary p = new clsProductionSummary(); rptDayend _report = new rptDayend(); Debug.WriteLine(p.GetDayendHeader(DateTime.Now).Count() + " Data Row Count"); _report.DataSource = p.GetDayendHeader(DateTime.Now); ReportPrintTool tool = new ReportPrintTool(_report); tool.ShowPreview(); // p.AddIndividualProductionSummary(DateTime.Now); // p.AddCuttingSummary(DateTime.Now); }
private void btnEdit_Click(object sender, EventArgs e) { clsProductionSummary p = new clsProductionSummary(); Cursor.Current = Cursors.WaitCursor; grdProduction.DataSource = p.GetInputCount(); Cursor.Current = Cursors.Default; // Create and setup the second summary item /* GridView View = gridView1; gridView1.OptionsView.GroupFooterShowMode = GroupFooterShowMode.VisibleAlways; GridGroupSummaryItem item1 = new GridGroupSummaryItem(); item1.FieldName = "NoOfItems"; item1.SummaryType = DevExpress.Data.SummaryItemType.Sum; item1.DisplayFormat = "No Of Item = {0}"; item1.ShowInGroupColumnFooter = View.Columns["LineOut"]; item1.Tag = "No Of Items"; View.GroupSummary.Add(item1); */ gridView1.Columns["LineOut"].Summary.Add(DevExpress.Data.SummaryItemType.Sum, "LineOut", "Sum={0}"); }