private void bttn_monthwiseReport_Click(object sender, EventArgs e) { if (oPrintersetting.ShowDialog() == DialogResult.OK) { foreach (DataRow dtr in _objCommon.DataGridView2DataTableSelected(dgv_SixMonthReport, "table").Rows) { try { frm_ReportViewer _objfrm_ReportViewer = new frm_ReportViewer(); SendDataNotice _obj = new SendDataNotice(_objfrm_ReportViewer.ReceiveDataNotice); _obj(dtr["GirviRecordNo"].ToString(), dtr["KhatawaniNo"].ToString().Trim(), "Other", oPrintersetting.PrinterName); _objfrm_ReportViewer.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (rbt_threemonths.Checked == true) { ThreeMonths(); } else if (rbt_sixmonth.Checked == true) { fillgrid(); } else if (rbt_ninemonths.Checked == true) { NineMonths(); } else { twelthMonths(); } } else { } }
private void KhatawaniIndex() { DataTable dtKhatawani = _objCommon.DataGridView2DataTableSelected(dgv_KhatawaniDetail, "table"); CrystalReport.frm_ReportViewer _objfrm_ReportViewer = new CrystalReport.frm_ReportViewer(); SendDataKhatawani _obj = new SendDataKhatawani(_objfrm_ReportViewer.ReceiveKhatawaniList); if (rbt_OtherTrue.Checked == true) { _obj(dtKhatawani, true); } else { _obj(dtKhatawani, false); } _objfrm_ReportViewer.Show(); //DataTable dtKhatawani = _objCommon.DataGridView2DataTable(dgv_KhatawaniDetail, "table"); //if (oPrintersetting.ShowDialog() == DialogResult.OK) //{ // for (int j = 0; j < dgv_KhatawaniDetail.Rows.Count; j++) // { // if (Convert.ToBoolean(dgv_KhatawaniDetail.Rows[j].Cells["chk"].Value) == true) // { // if (_objGirviAdd.getGirviDetailsByKhatawani(dgv_KhatawaniDetail.Rows[j].Cells["KhatawaniNo"].Value.ToString()).Rows.Count > 0) // { // CrystalReport.frm_ReportViewer _objfrm_ReportViewer = new CrystalReport.frm_ReportViewer(); // SendDataKhatawani _obj = new SendDataKhatawani (_objfrm_ReportViewer.ReceiveKhatawaniList); // _obj(dtKhatawani, true); // } // } // } //} }