// // Print Customer private void simpleButton1_Click(object sender, EventArgs e) { frmPrint frm = new frmPrint(); frm.PrintTopPurchase(); frm.ShowDialog(this); }
public void do_Print() { if (do_Validation()) { return; } try { var req = new ProductPrintRequest { ProductBegin = Convert.ToInt32(lp_PRoductBegin.EditValue), ProductEnd = Convert.ToInt32(lp_PRoductEnd.EditValue), companyId = lc_Company.EditValue == null ? 0 : (int)lc_Company.EditValue, DepotId = lc_Depot.EditValue == null ? 0 : (int)lc_Depot.EditValue }; List <ProductDTO> data = new List <ProductDTO>(); data = _repository.Run <ReportService, List <ProductDTO> >(x => x.Get_List_EnvanterBilgisi(req)); if (data.Count > 0) { frmPrint frm = new frmPrint(); frm.PrintEnvanterBilgisi(data); frm.ShowDialog(); } } catch (Exception ex) { } }
private void bbtPrint_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { var row = gridView1.FocusedRowHandle; var objView = gridView1.GetFocusedRow(); if (objView == null) { return; } var objData = (PYC_ViewModel)objView; using (var db = new RestaurantManagerDataEntities()) { var obj = db.PYCs.AsNoTracking().FirstOrDefault(x => x.idyc == objData.idyc); var details = new PYCBll().GetListD_PYC(objData.idyc); using (frmPrint frm = new frmPrint()) { frm.PrintPYC(obj, details); frm.ShowDialog(); } } } catch { } }
private void btnProBarcodeLabel_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ProductDTO Orow = (ProductDTO)gcvProducts.GetFocusedRow(); if (Orow != null) { if (Orow.PBarcodeType == (int)BacodeCaracter.EAN13) { if (Orow.PBarcode.Length > 0) { frmPrint frm = new frmPrint(); frm.PrintBarcode_13(Orow); frm.ShowDialog(); } } if (Orow.PBarcodeType == (int)BacodeCaracter.EAN8) { if (Orow.PBarcode.Length > 0) { frmPrint frm = new frmPrint(); frm.PrintBarcode_8(Orow); frm.ShowDialog(); } } } }
private void btExcel_Click(object sender, EventArgs e) { using (frmPrint frm = new frmPrint()) { frm.PrintListEmp(); frm.ShowDialog(); } }
private void bbi_Report_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (__dll_SaleOwner.Count > 0) { frmPrint frm = new frmPrint(); frm.DailySaleOwner(__dll_SaleOwner); frm.ShowDialog(); } }
public void Yazdir() { frmPrint fPr1 = new frmPrint(); if (fPr1.ShowDialog() == DialogResult.OK) { MessageBox.Show("Etiket basıldı"); } }
private void bbi_Print_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (__dll_SaleBarcodCreate.Count > 0) { frmPrint frm = new frmPrint(); frm.PrintSaleBarcodCreate(__dll_SaleBarcodCreate); frm.ShowDialog(); } }
private void do_report() { DailyOwnerDTO oRow = (DailyOwnerDTO)gcv_DailyOwner.GetFocusedRow(); if (oRow != null) { frmPrint frm = new frmPrint(); frm.PrintGunSonu(oRow); frm.ShowDialog(); } }
private void btnXBC_Click(object sender, EventArgs e) { if (check) { using (frmPrint frm = new frmPrint()) { frm.printDSSVLop(Lop, Khoa, SinhVienDAO.Instance.GetListSV(MaLop)); frm.ShowDialog(); } } }
private void btPrint_Click(object sender, EventArgs e) { using (frmPrint frm = new frmPrint()) { splashScreenManager1.ShowWaitForm(); frm.PrintPurchaseBill(txPurchaseID.Text, cbEmployee.Text, purchaseDate.DateTime); splashScreenManager1.CloseWaitForm(); frm.ShowDialog(); frm.Owner = this; } }
private void simpleButton2_Click(object sender, EventArgs e) { if (check) { using (frmPrint frm = new frmPrint()) { frm.printDSMonHoc(tenLop, tenKhoa, MonHocDAO.Instance.SelectByLop(malop)); frm.ShowDialog(); } } }
private void simpleButton2_Click(object sender, EventArgs e) { if (check) { using (frmPrint frm = new frmPrint()) { frm.printDSDiemCaNhan(SinhVienDAO.Instance.GetStudentDetail(masv), DiemMonHocDAO.Instance.GetListDiemSV(masv)); frm.ShowDialog(); } } }
// // Print Bill private void simpleButton3_Click(object sender, EventArgs e) { if (AcceptText()) { waitForm.ShowWaitForm(); frmPrint frm = new frmPrint(); List <OrderBillDetail> mlist = detail.getList(cbBillID.Text); frm.PrintOrderBill(cbBillID.Text, mlist); waitForm.CloseWaitForm(); frm.ShowDialog(); } }
private void btnprinter_Click(object sender, EventArgs e) { if (gridControl1.DataSource != null) { using (frmPrint frm = new frmPrint()) { rpThongTin rp = ThongTinDAO.Instance.getThongTinNamHoc(maHKy); frm.printDHB(tenKhoa, rp, DiemMonHocDAO.Instance.GetListHBSV(maHKy, maKhoa)); frm.ShowDialog(); } } }
private void bbi_Print_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (AppMain.User.ReportPrint.GetValueOrDefault() == false) { XtraMessageBox.Show("Rapor Alma Yetkiniz Yoktur.", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (_productlist.Count > 0) { frmPrint frm = new frmPrint(); frm.PrintProduct(_productlist); frm.ShowDialog(); } }
private void btnIn_Click(object sender, EventArgs e) { phieuChiTien.NgayLap = DateTime.Parse(String.Format("{0:MM/dd/yyyy}", dtPhieu.Text)); phieuChiTien.SoTien = (float)Convert.ToDouble(txtTienTra.Text); phieuChiTien.GhiChu = txtLyDo.Text; phieuChiTien.MaPhieu = txtPhieu.Text; phieuChiTien.TenNV = cbNhanVien.Text; var print = new frmPrint(); print.PrintReportChi(phieuChiTien); print.ShowDialog(); }
private void _print() { rptBCHoatDongTapHuan rpt = new rptBCHoatDongTapHuan(); CategoryTapHuan enumLoai = (CategoryTapHuan)_id_loai; //switch (enumLoai) //{ // case CategoryTapHuan.TH_TAPHUAN: var data = (from p in context.QL_HOATDONG_TAPHUAN where deSearchTuNgay.DateTime.Date <= p.TH_THOIGIAN_BATDAU && p.TH_THOIGIAN_BATDAU <= deSearchDenNgay.DateTime.Date && p.TH_LOAI_ID == _id_loai select p).ToList(); List <clsHoatDongTapHuan> listTapHuan = new List <clsHoatDongTapHuan>(); foreach (QL_HOATDONG_TAPHUAN row in data) { clsHoatDongTapHuan item = new clsHoatDongTapHuan(); item.TH_TEN = row.TH_TEN; item.TH_THOIGIAN = FunctionHelper.formatFromDateToDate(row.TH_THOIGIAN_BATDAU, row.TH_THOIGIAN_KETTHUC); //item.TH_DIADIEM = row.TH_DIADIEM; //item.TH_DONVI_THUCHIEN = row.TH_DONVI_THUCHIEN; //item.TH_SOLUONG = row.TH_SOLUONG; //item.TH_TONGTIEN = row.TH_TONGTIEN??0; item.TH_NOIDUNG = row.TH_NOIDUNG; listTapHuan.Add(item); } DataTable dataTapHuan = FunctionHelper.ConvertToDataTable(listTapHuan); dataTapHuan.TableName = "HoatDongTapHuan"; rpt.pLeftHeader.Value = clsParameter.pHospital; rpt.pParentLeftHeader.Value = clsParameter.pParentHospital; rpt.pTitle.Value = lueLoaiTapHuan.Text.ToUpper(); rpt.pTuNgayDenNgay.Value = FunctionHelper.formatFromDateToDate(deSearchTuNgay.DateTime, deSearchDenNgay.DateTime); //rpt.pTitleFooter.Value = ReportHelper.getTitleFooter(LoaiBaoCao.BM10); //rpt.pValueFooter.Value = ReportHelper.getValueFooter(LoaiBaoCao.BM10); rpt.DataSource = dataTapHuan; rpt.DataMember = "HoatDongTapHuan"; // break; // default: // break; //} frmPrint f = new frmPrint(rpt); f.ShowDialog(); }
private void btnPrintReport_Click(object sender, EventArgs e) { try { var fromDate = dtpFromDate.Value; var toDate = dtpToDate.Value; using (frmPrint frm = new frmPrint()) { frm.PrintBaoCaoDoanhThu(fromDate, toDate, lstHOADONTT); frm.ShowDialog(); } } catch { } }
private void btnPrint_Click(object sender, EventArgs e) { // var obj = lstD_PYC.Current as PYC; if (this.idyc > 0) { using (var db = new RestaurantManagerDataEntities()) { var obj = db.PYCs.AsNoTracking().FirstOrDefault(x => x.idyc == this.idyc); var details = new PYCBll().GetListD_PYC(this.idyc); using (frmPrint frm = new frmPrint()) { frm.PrintPYC(obj, details); frm.ShowDialog(); } } } }
private void btnControl_btnEventPrint_Click(object sender, EventArgs e) { string str; //if (chkAll.Checked) // str = "SELECT sp.*, dvt.TEN DVT_TEN, gt.TEN GOITHAU_TEN FROM DM_SANPHAM sp " // + " LEFT JOIN dbo.DM_GOITHAU gt ON gt.GOITHAU_ID = sp.SP_GOITHAU " // + " LEFT JOIN dbo.DM_DVT dvt ON dvt.DVT_ID=sp.DVT_ID " // + " WHERE isnull(gt.DELETED,0)=0 " // + " and DOT_MA='" + clsParameter._dotMaDauThau + "'"; //else str = "SELECT sp.*, dvt.TEN DVT_TEN, gt.TEN GOITHAU_TEN, sx.TEN NUOCSX_TEN FROM DM_SANPHAM sp " + " LEFT JOIN DM_GOITHAU gt ON gt.GOITHAU_ID = sp.SP_GOITHAU " + " LEFT JOIN DM_NUOCSX sx ON sx.NUOCSX_ID = sp.SP_NUOCSX_ID " + " LEFT JOIN DM_DVT dvt ON dvt.DVT_ID=sp.DVT_ID " + " WHERE isnull(gt.DELETED,0)=0 " + " and DOT_MA='" + clsParameter._dotMaDauThau + "'" + " and gt.GOITHAU_ID = " + clsChangeType.change_int(lueGoiThauFilter.EditValue) + " order by sp.SP_MA asc"; DataTable dt = new DataTable(); da.SelectCommand = new SqlCommand(str, clsConnection._conn); da.Fill(dt); XtraReport _rpt = new XtraReport(); if (FunctionHelper.LaGoiVTYT(Convert.ToInt64(lueGoiThauFilter.EditValue))) { rptDsSanPham_VTYT rpt = new rptDsSanPham_VTYT(); rpt.DataSource = dt; rpt.DataMember = "SANPHAM"; _rpt = rpt; } else { rptDsSanPham rpt = new rptDsSanPham(); rpt.DataSource = dt; rpt.DataMember = "SANPHAM"; _rpt = rpt; } frmPrint f = new frmPrint(_rpt); f.ShowDialog(); }
private void btnPrint_Click(object sender, EventArgs e) { if (removeMSTT != 0) { var listTT = employeePaymentBO.GetData(u => u.isDelete == false && u.ID == removeMSTT); string printMSNV = listTT.First().MSNV; int MonthTimekeep = listTT.First().MonthOfPay; int YearTimekeep = listTT.First().YearOfPay; List <pTimekeeping> listDB = new List <pTimekeeping>(); var listTimekeep = timekeepingBO.GetData(u => u.isDelete == false && u.MSNV == printMSNV && u.Date.Value.Month == MonthTimekeep && u.Date.Value.Year == YearTimekeep); foreach (var item in listTimekeep) { pTimekeeping ptime = new pTimekeeping(); ptime.Id = item.Id; ptime.MSNV = item.MSNV; ptime.TimeEnd = item.TimeEnd != string.Empty ? item.TimeEnd : "X"; ptime.TimeStart = item.TimeStart != string.Empty ? item.TimeStart : "X"; ptime.Time = item.Time; ptime.Weight = item.Weight; ptime.Type = item.Type; ptime.TotalWeight = item.TotalWeight; ptime.Food = item.Food; ptime.Bunus = item.Bunus; ptime.Punish = item.Punish; ptime.Date = item.Date.Value; ptime.Note = item.Note; ptime.AdvancePayment = item.AdvancePayment; if (item.isRest == true) { ptime.isRest = "Yes"; } else { ptime.isRest = "No"; } listDB.Add(ptime); } using (frmPrint frmprint = new frmPrint(listDB, printMSNV, MonthTimekeep, YearTimekeep)) { frmprint.ShowDialog(); } } }
public void do_report() { try { var filter = new CaseReportFilter { companyId = AppMain.CompanyRecId, BeginDate = dt_BaslangicDate.DateTime, EndDate = dt_BitisDate.DateTime, CaseId = Convert.ToInt32(lc_Case.EditValue) }; if (FormType == 1) { List <CaseBakiyeReportDTO> caseBakiye = _repository.Run <ReportService, List <CaseBakiyeReportDTO> >(x => x.Get_List_CaseBakiyeReport(filter)); bs_CaseBakiye.DataSource = caseBakiye; gc_KasaBakiye.RefreshDataSource(); if (caseBakiye.Count > 0) { frmPrint frm = new frmPrint(); frm.PrintCaseBakiye(caseBakiye); frm.ShowDialog(); } } if (FormType == 2) { List <CaseMovementDTO> caseMovements = _repository.Run <ReportService, List <CaseMovementDTO> >(x => x.Get_List_CaseMovement(filter)); bs_CaseList.DataSource = caseMovements; gc_KasaHareket.RefreshDataSource(); if (caseMovements.Count > 0) { frmPrint frm = new frmPrint(); frm.PrintKasaHareketRaporu(caseMovements); frm.ShowDialog(); } } } catch (Exception ex) { XtraMessageBox.Show(ex.Message); } }
private void _print() { rptBCHoatDongViecLam rpt = new rptBCHoatDongViecLam(); var data = (from p in context.QL_HOATDONG_VIECLAM where deSearchTuNgay.DateTime.Date <= p.VL_THOIGIAN_BATDAU && p.VL_THOIGIAN_BATDAU <= deSearchDenNgay.DateTime.Date && p.VL_LOAI_ID == _id_loai select p).ToList(); List <clsHoatDongViecLam> lists = new List <clsHoatDongViecLam>(); foreach (QL_HOATDONG_VIECLAM row in data) { clsHoatDongViecLam item = new clsHoatDongViecLam(); item.VL_TEN = row.VL_TEN; item.VL_THOIGIAN = FunctionHelper.formatFromDateToDate(row.VL_THOIGIAN_BATDAU, row.VL_THOIGIAN_KETTHUC); item.VL_DIADIEM = row.VL_DIADIEM; item.VL_DONVI_GIOITHIEU = row.VL_DONVI_GIOITHIEU; item.VL_NU_TONGSO = string.Format("{0}/{1}", row.VL_SOLUONG_NU, row.VL_SOLUONG); item.VL_THUNHAP_THANG = row.VL_THUNHAP_THANG; item.VL_NOIDUNG = row.VL_NOIDUNG; item.VL_NOIDUNG = row.VL_NOIDUNG; item.VL_DOITUONG = row.VL_DOITUONG_TEN + "; " + row.VL_DOITUONG_KHAC; lists.Add(item); } DataTable dataPrint = FunctionHelper.ConvertToDataTable(lists); dataPrint.TableName = "HoatDongViecLam"; rpt.pLeftHeader.Value = clsParameter.pHospital; rpt.pParentLeftHeader.Value = clsParameter.pParentHospital; rpt.pTitle.Value = lueLoaiTapHuan.Text.ToUpper(); rpt.pTuNgayDenNgay.Value = FunctionHelper.formatFromDateToDate(deSearchTuNgay.DateTime, deSearchDenNgay.DateTime); //rpt.pTitleFooter.Value = ReportHelper.getTitleFooter(LoaiBaoCao.BM10); //rpt.pValueFooter.Value = ReportHelper.getValueFooter(LoaiBaoCao.BM10); rpt.DataSource = dataPrint; rpt.DataMember = "HoatDongViecLam"; frmPrint f = new frmPrint(rpt); f.ShowDialog(); }
private void _print() { rptBCHoatDongHNXH rpt = new rptBCHoatDongHNXH(); var data = (from p in context.QL_HOATDONG_HNXH where deSearchTuNgay.DateTime.Date <= p.HNXH_THOIGIAN_BATDAU && p.HNXH_THOIGIAN_BATDAU <= deSearchDenNgay.DateTime.Date && p.HNXH_LOAI_ID == _id_loai select p).ToList(); List <clsHoatDongHNXH> lists = new List <clsHoatDongHNXH>(); foreach (QL_HOATDONG_HNXH row in data) { clsHoatDongHNXH item = new clsHoatDongHNXH(); item.HNXH_TEN = row.HNXH_TEN; item.HNXH_THOIGIAN = FunctionHelper.formatFromDateToDate(row.HNXH_THOIGIAN_BATDAU, row.HNXH_THOIGIAN_KETTHUC); item.HNXH_DIADIEM = row.HNXH_DIADIEM; item.HNXH_DONVI_THUCHIEN = row.HNXH_DONVI_THUCHIEN; item.HNXH_SOLUONG = row.HNXH_SOLUONG; item.HNXH_TONGSO_TIEN = row.HNXH_TONGSO_TIEN; item.HNXH_NOIDUNG = row.HNXH_NOIDUNG; lists.Add(item); } DataTable dataPrint = FunctionHelper.ConvertToDataTable(lists); dataPrint.TableName = "HoatDongHNXH"; rpt.pLeftHeader.Value = clsParameter.pHospital; rpt.pParentLeftHeader.Value = clsParameter.pParentHospital; rpt.pTitle.Value = lueLoaiTapHuan.Text.ToUpper(); rpt.pTuNgayDenNgay.Value = FunctionHelper.formatFromDateToDate(deSearchTuNgay.DateTime, deSearchDenNgay.DateTime); //rpt.pTitleFooter.Value = ReportHelper.getTitleFooter(LoaiBaoCao.BM10); //rpt.pValueFooter.Value = ReportHelper.getValueFooter(LoaiBaoCao.BM10); rpt.DataSource = dataPrint; rpt.DataMember = "HoatDongHNXH"; frmPrint f = new frmPrint(rpt); f.ShowDialog(); }
private void _print() { rptBCHoatDongHoiChoTrienLam rpt = new rptBCHoatDongHoiChoTrienLam(); var data = (from p in context.QL_HOATDONG_HOICHO_TRIENLAM where deSearchTuNgay.DateTime.Date <= p.HC_THOIGIAN_BATDAU && p.HC_THOIGIAN_BATDAU <= deSearchDenNgay.DateTime.Date select p).ToList(); List <clsHoatDongHoiChoTrienLam> lists = new List <clsHoatDongHoiChoTrienLam>(); foreach (QL_HOATDONG_HOICHO_TRIENLAM row in data) { clsHoatDongHoiChoTrienLam item = new clsHoatDongHoiChoTrienLam(); item.HC_TEN = row.HC_TEN; item.HC_THOIGIAN = FunctionHelper.formatFromDateToDate(row.HC_THOIGIAN_BATDAU, row.HC_THOIGIAN_KETTHUC); item.HC_DIADIEM = row.HC_DIADIEM; item.HC_NU_TONGSO = string.Format("{0}/{1}", row.HC_SOLUONG_NU, row.HC_SOLUONG); item.HC_TAITRO_DONVI = row.HC_TAITRO_DONVI; item.HC_TAITRO_SOTEN = row.HC_TAITRO_SOTEN; item.HC_SOTIEN_SAU_BANHANG = row.HC_SOTIEN_SAU_BANHANG; item.HC_NOIDUNG = row.HC_NOIDUNG; item.HC_DOITUONG_TEN = row.HC_DOITUONG_TEN + "; " + row.HC_DOITUONG_KHAC; lists.Add(item); } DataTable dataPrint = FunctionHelper.ConvertToDataTable(lists); dataPrint.TableName = "HoatDongHoiChoTrienLam"; rpt.pLeftHeader.Value = clsParameter.pHospital; rpt.pParentLeftHeader.Value = clsParameter.pParentHospital; rpt.pTuNgayDenNgay.Value = FunctionHelper.formatFromDateToDate(deSearchTuNgay.DateTime, deSearchDenNgay.DateTime); //rpt.pTitleFooter.Value = ReportHelper.getTitleFooter(LoaiBaoCao.BM10); //rpt.pValueFooter.Value = ReportHelper.getValueFooter(LoaiBaoCao.BM10); rpt.DataSource = dataPrint; rpt.DataMember = "HoatDongHoiChoTrienLam"; frmPrint f = new frmPrint(rpt); f.ShowDialog(); }
private void bbi_Print_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { InvoiceOwnerDTO oRow = (InvoiceOwnerDTO)gcv_Invoice.GetFocusedRow(); if (oRow != null) { var trans = _repository.Run <InvoiceService, List <InvoiceTransDTO> >(x => x.Get_Edit_List_Trans(oRow.RecId)); CTransactionsDTO cTransactions = _currentTransactionsList.FirstOrDefault(x => x.CurID == oRow.CariRecId); List <ReportInvoiceTransDTO> reportTrans = new List <ReportInvoiceTransDTO>(); foreach (var item in trans) { reportTrans.Add(new ReportInvoiceTransDTO { ProductName = AppMain.Products.FirstOrDefault(x => x.PID == item.ProductId).PName, Tutar = item.Tutar, Unit = item.Quentity + " " + _list_UnitsDTO.FirstOrDefault(x => x.UID == item.UnitID.GetValueOrDefault()).UName, PTax = item.KDVPrice }); } ReportInvoice reportInvoice = new ReportInvoice { CustomerName = cTransactions.CurAccountName, CustomerAddress = cTransactions.CurAdress, CustomerCity = cTransactions.CurCity, CustomerCountry = cTransactions.CurCountryName, FaturaNo = oRow.FicheDocumentNo, FichDate = oRow.FicDate.GetValueOrDefault(), InvoiceType = oRow.InvoiceType.GetValueOrDefault(), trans = reportTrans }; frmPrint frm = new frmPrint(); frm.PrintInvoiceReport(oRow, reportTrans, cTransactions, reportInvoice); frm.ShowDialog(); } }
private void _print() { rptBCHoatDongDayNghe rpt = new rptBCHoatDongDayNghe(); var data = (from p in context.QL_HOATDONG_DAYNGHE where deSearchTuNgay.DateTime.Date <= p.DN_THOIGIAN_BATDAU && p.DN_THOIGIAN_BATDAU <= deSearchDenNgay.DateTime.Date select p).ToList(); List <clsHoatDongDayNghe> lists = new List <clsHoatDongDayNghe>(); foreach (QL_HOATDONG_DAYNGHE row in data) { clsHoatDongDayNghe item = new clsHoatDongDayNghe(); item.DN_NGHE = row.DN_NGHE; item.DN_THOIGIAN = FunctionHelper.formatFromDateToDate(row.DN_THOIGIAN_BATDAU, row.DN_THOIGIAN_KETTHUC); item.DN_DIADIEM = row.DN_DIADIEM; item.DN_DONVI_THUCHIEN = row.DN_DONVI_THUCHIEN; item.DN_NU_TONGSO = string.Format("{0}/{1}", row.DN_SOLUONG_NU, row.DN_SOLUONG); item.DN_TONGTIEN = row.DN_TONGTIEN; item.DN_NOIDUNG = row.DN_NOIDUNG; item.DN_DONVI_THUCHIEN = row.DN_DONVI_THUCHIEN; lists.Add(item); } DataTable dataPrint = FunctionHelper.ConvertToDataTable(lists); dataPrint.TableName = "HoatDongDayNghe"; rpt.pLeftHeader.Value = clsParameter.pHospital; rpt.pParentLeftHeader.Value = clsParameter.pParentHospital; rpt.pTuNgayDenNgay.Value = FunctionHelper.formatFromDateToDate(deSearchTuNgay.DateTime, deSearchDenNgay.DateTime); //rpt.pTitleFooter.Value = ReportHelper.getTitleFooter(LoaiBaoCao.BM10); //rpt.pValueFooter.Value = ReportHelper.getValueFooter(LoaiBaoCao.BM10); rpt.DataSource = dataPrint; rpt.DataMember = "HoatDongDayNghe"; frmPrint f = new frmPrint(rpt); f.ShowDialog(); }
private void btnPrint_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { var row = gridView1.FocusedRowHandle; var obj = gridView1.GetFocusedRow(); if (obj == null) { return; } var objData = (PNHAP)obj; var master = new PNHAPBll().GetPNHAPById(objData.idpnhap); using (frmPrint frm = new frmPrint()) { frm.PrintPNHAP(master, master.lstDetail); frm.ShowDialog(); } } catch { } }
private void btnPrint_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { var row = gridView1.FocusedRowHandle; var obj = gridView1.GetFocusedRow(); if (obj == null) { return; } var objData = (DONMH_ViewModel)obj; var master = new DONMHBll().GetDONMHById(objData.iddonmh); using (frmPrint frm = new frmPrint()) { frm.PrintDONMH(master, master.lstDetail); frm.ShowDialog(); } } catch { } }