private void toolStripButton15_Click(object sender, EventArgs e) { using (FrmReport f = new FrmReport()) { f.ShowDialog(); } }
private void btnInHoaDon_Click_1(object sender, EventArgs e) { FrmReport frmReport = new FrmReport(); FrmReport.dt = BillBUS.LayMaHDCuoiCung().Value; frmReport.ShowDialog(); }
private void btnReport_Click(object sender, EventArgs e) { FrmReport frmReport = new FrmReport(usernameLogin); frmReport.Show(); this.Close(); }
private void btnBaoCao_Click(object sender, EventArgs e) { FrmReport frm = new FrmReport(); frm.Show(); this.Close(); }
private void reportToolStripMenuItem_Click(object sender, System.EventArgs e) { IReportsView repView = new FrmReport(); _repModel.Update(); new ReportsPresenter(_repModel, repView); repView.Show(); }
private void genbarcode() { C1.BarCode.CodeType codetype = new C1.BarCode.CodeType(); foreach (C1.BarCode.CodeType value1 in Enum.GetValues(typeof(C1.BarCode.CodeType))) { if (value1.ToString().Equals(cboBarcodeType.Text)) { c1BarCode1.CodeType = value1; break; } } //codetype = Enum.get(C1.BarCode.CodeType, codetype); //c1BarCode1.CodeType = cboBarcodeType.Text; try { if (!Directory.Exists("report")) { Directory.CreateDirectory("report"); } if (!File.Exists(System.IO.Directory.GetCurrentDirectory() + "\\report\\barcode.jpg")) { File.Delete(System.IO.Directory.GetCurrentDirectory() + "\\report\\barcode.jpg"); } c1BarCode1.Text = txtBarcode.Text; //Image img = c1BarCode1.Image; //img.Save(System.IO.Directory.GetCurrentDirectory() + "\\report\\barcode.jpg", System.Drawing.Imaging.ImageFormat.Jpeg); //barc.Size = new Size(100, 60); //barc.BarHeight = 60; c1BarCode1.Image.Save(System.IO.Directory.GetCurrentDirectory() + "\\report\\barcode.jpg", System.Drawing.Imaging.ImageFormat.Jpeg); //barc.Text = lis1.barcode; //Bitmap bitm = new Bitmap(100, 120); //bitm = barc.Image; //Image img = c1BarCode1.Image; //img.Size = new Size(100, 40); //img.Save(System.IO.Directory.GetCurrentDirectory() + "\\report\\" + lis1.barcode + ".jpg", ImageFormat.Jpeg); DataTable dt = new DataTable(); dt.Columns.Add("hn", typeof(String)); dt.Columns.Add("name", typeof(String)); dt.Columns.Add("age", typeof(String)); dt.Columns.Add("vn", typeof(String)); dt.Columns.Add("path_barcode", typeof(String)); DataRow row11 = dt.NewRow(); row11["hn"] = "Test Barcode "; row11["name"] = cboBarcodeType.Text; row11["age"] = ""; row11["vn"] = ""; row11["path_barcode"] = System.IO.Directory.GetCurrentDirectory() + "\\report\\barcode.jpg"; dt.Rows.Add(row11); FrmReport frm = new FrmReport(ic); frm.setStickerPatientThemalLIS(dt); frm.ShowDialog(this); } catch (Exception ex) { } }
private void GerarRelatórioByButton_Click(object sender, EventArgs e) { var btn = (Button)sender; FrmReport form = new FrmReport(this.report, date); form.Payment = (PaymentMethod)btn.Tag; form.FormClosed += Form_FormClosed; form.Show(); }
private void report() { FrmReport report; try { report = new FrmReport(selectedFilter); report.ShowDialog(); report = null; } catch (Exception ex) { throw new Exception("Error opening report", ex); } }
private void Load_FrmReport() { try { // 23 6 : สิทธิ์ใช้งานหน้ารายงาน เข้าใช้งานหน้ารายงาน int AuthorizeId = 23; if (SQLAuthorized.CheckAuthorized(ClassProperty.permisRoleId, AuthorizeId) == false) { SQLAuthorized.AlertAuthorized("สิทธิ์ใช้งานหน้ารายงาน", "ไม่มีสิทธิ์เข้าใช้งานหน้ารายงาน"); return; } FrmReport frm = new FrmReport(); { //this.Hide(); frm.Show(); } } catch (Exception ex) { XtraMessageBox.Show(ex.Message); } }
private void BtnReport_Click(object sender, EventArgs e) { FrmReport Report = new FrmReport(); Report.ShowDialog(); }
private void BtnReport_Click(object sender, EventArgs e) { FrmReport frm = new FrmReport(); frm.Show(); }
private void btnClose_Click(object sender, EventArgs e) { FrmReport frm = new FrmReport(viewForm, sendJabatan); viewForm(frm); }
private void BtnPreview_Click(object sender, EventArgs e) { FrmReport a = new FrmReport(); a.Show(); }
private void exportarToolStripMenuItem_Click(object sender, EventArgs e) { FrmReport form = new FrmReport(this.report, date); form.Show(); }