当前位置: 首页>>代码示例>>C#>>正文


C# frmBaoCaorpt.ShowDialog方法代码示例

本文整理汇总了C#中GUI.frmBaoCaorpt.ShowDialog方法的典型用法代码示例。如果您正苦于以下问题:C# frmBaoCaorpt.ShowDialog方法的具体用法?C# frmBaoCaorpt.ShowDialog怎么用?C# frmBaoCaorpt.ShowDialog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GUI.frmBaoCaorpt的用法示例。


在下文中一共展示了frmBaoCaorpt.ShowDialog方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: tsslchitiet_Click

        private void tsslchitiet_Click(object sender, EventArgs e)
        {
            //CongTy();
            //cl = new Server_Client.Client();
            //this.client1 = cl.Connect(Luu.IP, Luu.Ports);
            //Entities.rptBCChiTietHangHoa kh = new Entities.rptBCChiTietHangHoa("Select");
            //Entities.rptBCChiTietHangHoa[] kh1 = new Entities.rptBCChiTietHangHoa[1];
            //clientstrem = cl.SerializeObj(this.client1, "BCChiTietHangHoa", kh);
            //kh1 = (Entities.rptBCChiTietHangHoa[])cl.DeserializeHepper1(clientstrem, kh1);
            //if (kh1 == null)
            //{
            //    MessageBox.Show("Không có dữ liệu", "Hệ thống cảnh báo");
            //    return;
            //}
            //GUI.Report.rptBCChiTietHangHoa report = new GUI.Report.rptBCChiTietHangHoa();
            //report.SetDataSource(kh1);
            //crvReport.ReportSource = report;
            //report.SetParameterValue("TenCongTy", CT.TenCongTy);
            //report.SetParameterValue("DiaChiCongTy", CT.DiaChi);
            //report.SetParameterValue("DienThoai", CT.SoDienThoai);
            //report.SetParameterValue("FaxCongTy", CT.Fax);
            //report.SetParameterValue("Web", CT.Website);
            //report.SetParameterValue("TenBaoCao", "Báo Cáo Chi Tiết Hàng Hóa");
            //report.SetParameterValue("NgayTao", new Common.Utilities().XuLy(2, DateServer.Date().ToShortDateString()));
            //report.SetParameterValue("MaNhanVien", Common.Utilities.User.TenNhanVien);
            //report.SetParameterValue("Email", CT.Email);
            //crvReport.Show();
            //break;

            frmBaoCaorpt frm = new frmBaoCaorpt("ChiTietHangHoa");
            frm.ShowDialog();
        }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:32,代码来源:frmBCChiTietHangHoa.cs

示例2: btnXem_Click

 private void btnXem_Click(object sender, EventArgs e)
 {
     try
     {
         // Khach hang
         if (kh1 != null)
         {
             string maKhachHang = kh1.MaKH;
             string tenKhachHang = kh1.Ten;
             string diaChi = kh1.DiaChi;
             double duDauKy = double.Parse(txtdudauky.Text);
             double duCuoiKy = double.Parse(txtducuoiky.Text);
             frmBaoCaorpt a = new frmBaoCaorpt(list.ToArray(), maKhachHang, tenKhachHang, diaChi, duDauKy, duCuoiKy, "In", "", "KH", "Khách Hàng");
             a.ShowDialog();
         }
         else
         {
             string maKhachHang = ncc1.MaNhaCungCap;
             string tenKhachHang = ncc1.TenNhaCungCap;
             string diaChi = ncc1.DiaChi;
             double duDauKy = double.Parse(txtdudauky.Text);
             double duCuoiKy = double.Parse(txtducuoiky.Text);
             frmBaoCaorpt a = new frmBaoCaorpt(list.ToArray(), maKhachHang, tenKhachHang, diaChi, duDauKy, duCuoiKy, "In", "", "NCC", "Nhà Cung Cấp");
             a.ShowDialog();
         }
     }
     catch (Exception)
     { }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:29,代码来源:frmChiTietCongNo.cs

示例3: toolStripStatusLabel3_Click

 private void toolStripStatusLabel3_Click(object sender, EventArgs e)
 {
     this.Enabled = false;
     try
     {
         string khachtra = string.IsNullOrEmpty(txtkhachtra.Text) ? "0" : txtkhachtra.Text;
         frmBaoCaorpt bcrpt = new frmBaoCaorpt("HDBanLe", txtSochungtu.Text, Double.Parse(txtGiamgia.Text), khachtra, txtdutra.Text, txtKhachPhaiTra.Text, txtGTGT.Text, lbnhanvien.Text, "kin", mskngaychungtu.Text, txtGTTheVip.Text, txtGTTheGT.Text, "", txtChietkhau.Text, "", "", "");
         bcrpt.ShowDialog();
     }
     catch { }
     finally
     {
         this.Enabled = true;
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:15,代码来源:frmXuLyBanLe.cs

示例4: dtgvhienthi_CellDoubleClick

 private void dtgvhienthi_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     this.Enabled = false;
     try
     {
         Entities.BCTienTonKho[] data = (Entities.BCTienTonKho[])dtgvhienthi.DataSource;
         if (data == null)
         {
             return;
         }
         else if (data.Length == 0)
         {
             return;
         }
         if (chon < 0)
         {
             return;
         }
         string MK = dtgvhienthi["MaKho", chon].Value.ToString();
         foreach (Entities.BCTienTonKho item in data)
         {
             if (item.MaKho.Equals(MK))
             {
                 //Xem
                 frmBaoCaorpt a = new frmBaoCaorpt(item, start.ToString("dd/MM/yyyy"), end.ToString("dd/MM/yyyy"));
                 a.ShowDialog();
             }
         }
     }
     catch { }
     finally
     {
         this.Enabled = true;
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:35,代码来源:frmBCTienTonKho.cs

示例5: button1_Click

        private void button1_Click(object sender, EventArgs e)
        {
            if (radioButton1.Checked)
            {
                DateTime Ngay;
                string date="";
                try
                {
                   date = new Common.Utilities().MyDateConversion(maskedTextBox1.Text);
                  Ngay =  Convert.ToDateTime(date);
                }
                catch
                {
                    MessageBox.Show("ngay ko dung dinh dang");
                    return;
                }
                frmBaoCaorpt bc = new frmBaoCaorpt(Ngay);
                bc.ShowDialog();
            }
            else if (radioButton2.Checked)
            {
                int Thang, Nam;
                try
                {
                    Thang = Convert.ToInt32(comboBox1.Text);
                    Nam = dateTimePicker1.Value.Year;
                }
                catch (Exception ex)
                {
                    MessageBox.Show("nhập sai định dạng ngày tháng", "Hệ thống cảnh báo");
                    maskedTextBox1.Focus();
                    return;
                }
                frmBaoCaorpt bc = new frmBaoCaorpt(Thang,Nam);
                bc.ShowDialog();
            }
            else if (radioButton3.Checked)
            {
                DateTime Truoc, Sau;
                string date1 = "", date2 = "";
                try
                {
                    date1 = new Common.Utilities().MyDateConversion(maskedTextBox2.Text);
                    Truoc = Convert.ToDateTime(date1);

                }
                catch (Exception ex)
                {
                    MessageBox.Show("nhập sai định dạng ngày tháng","Hệ thống cảnh báo");
                    maskedTextBox2.Focus();
                    return;
                }
                try
                {
                    date2 = new Common.Utilities().MyDateConversion(maskedTextBox3.Text);
                    Sau = Convert.ToDateTime(date2);
                }
                catch
                {
                    MessageBox.Show("nhập sai định dạng ngày tháng", "Hệ thống cảnh báo");
                    maskedTextBox3.Focus();
                    return;
                }

                frmBaoCaorpt bc = new frmBaoCaorpt(Truoc, Sau);
                bc.ShowDialog();
            }
        }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:68,代码来源:frmtg.cs

示例6: dtgvhienthi_CellDoubleClick

 private void dtgvhienthi_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (i < 0)
             return;
         frmBaoCaorpt a = new frmBaoCaorpt("Nhom", dtgvhienthi["MaNhomHang", i].Value.ToString());
         a.ShowDialog();
     }
     catch
     {
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:13,代码来源:frmBCTonKhoTheoNhomHang.cs

示例7: ExportBc

        /// <summary>
        /// Xuất báo cáo
        /// </summary>
        /// <param name="select">0: View, 1: PDF, 2: WORD, 3: EXCEL</param>
        void ExportBc(int select)
        {
            if (rdoTheoNgay.Checked)
            {
                #region theo ngày
                DateTime ngay;
                try
                {
                    string date = new Common.Utilities().MyDateConversion(maskedTextBox1.Text);
                    ngay = Convert.ToDateTime(date);
                }
                catch
                {
                    MessageBox.Show("không đúng định dạng ngày!");
                    return;
                }

                switch (@select)
                {
                    case 0:
                        {
                            frmBaoCaorpt bc = new frmBaoCaorpt(ngay, true, string.Empty, string.Empty);
                            bc.ShowDialog();
                        }
                        break;
                    case 1:
                        {
                            //PDF
                            SaveFileDialog saveFileDialog1 = new SaveFileDialog { Filter = "PDF |*.pdf", FileName = string.Empty };
                            if (saveFileDialog1.ShowDialog() == DialogResult.OK)
                            {
                                frmBaoCaorpt bc = new frmBaoCaorpt(ngay, false, saveFileDialog1.FileName, "PDF");
                            }
                        }
                        break;
                    case 2:
                        {
                            //DOC
                            SaveFileDialog saveFileDialog1 = new SaveFileDialog { Filter = "Word |*.doc", FileName = string.Empty };
                            if (saveFileDialog1.ShowDialog() == DialogResult.OK)
                            {
                                frmBaoCaorpt bc = new frmBaoCaorpt(ngay, false, saveFileDialog1.FileName, "Word");
                            }
                        }
                        break;
                    case 3:
                        {
                            //XLS
                            SaveFileDialog saveFileDialog1 = new SaveFileDialog { Filter = "Excel |*.xls", FileName = string.Empty };
                            if (saveFileDialog1.ShowDialog() == DialogResult.OK)
                            {
                                frmBaoCaorpt bc = new frmBaoCaorpt(ngay, false, saveFileDialog1.FileName, "Excel");
                            }
                        }
                        break;
                }
                #endregion
            }
            else if (rdoTheoThang.Checked)
            {
                #region theo tháng
                int Thang, Nam;
                try
                {
                    Thang = Convert.ToInt32(comboBox1.Text);
                    Nam = dateTimePicker1.Value.Year;
                }
                catch (Exception ex)
                {
                    MessageBox.Show("nhập sai định dạng ngày tháng", "Hệ thống cảnh báo");
                    maskedTextBox1.Focus();
                    return;
                }

                switch (@select)
                {
                    case 0:
                        {
                            frmBaoCaorpt bc = new frmBaoCaorpt(Thang, Nam, true, string.Empty, string.Empty);
                            bc.ShowDialog();
                        }
                        break;
                    case 1:
                        {
                            //PDF
                            SaveFileDialog saveFileDialog1 = new SaveFileDialog { Filter = "PDF |*.pdf", FileName = string.Empty };
                            if (saveFileDialog1.ShowDialog() == DialogResult.OK)
                            {
                                frmBaoCaorpt bc = new frmBaoCaorpt(Thang, Nam, false, saveFileDialog1.FileName, "PDF");
                            }
                        }
                        break;
                    case 2:
                        {
                            //DOC
                            SaveFileDialog saveFileDialog1 = new SaveFileDialog { Filter = "Word |*.doc", FileName = string.Empty };
//.........这里部分代码省略.........
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:101,代码来源:frmtg.cs

示例8: toolStripStatusLabel3_Click

 private void toolStripStatusLabel3_Click(object sender, EventArgs e)
 {
     ArrayList arr = new ArrayList();
     foreach (DataGridViewRow item in dgvInsertOrder.Rows)
     {
         Entities.BCKhachHangDatHang temp = new Entities.BCKhachHangDatHang();
         temp.MaDonDatHang = txtSodonhang.Text;
         temp.MaKH = txtManhacungcap.Text;
         temp.Ten = lblTennhacungcap.Text;
         temp.MaHang = item.Cells[1].Value.ToString();
         temp.TenHang = item.Cells[2].Value.ToString();
         temp.SoLuong = Convert.ToDouble(item.Cells[3].Value.ToString());
         temp.Gia = Convert.ToDouble(item.Cells[4].Value.ToString());
         temp.ChietKhau = Convert.ToDouble(item.Cells[7].Value.ToString());
         temp.Thue = Convert.ToDouble(item.Cells[8].Value.ToString());
         temp.TongTienCK = Convert.ToDouble(item.Cells[9].Value.ToString());
         temp.TongTien = Convert.ToDouble(item.Cells[11].Value.ToString());
         arr.Add(temp);
     }
     if (arr.Count > 0)
     {
         Entities.BCKhachHangDatHang[] rpt = new Entities.BCKhachHangDatHang[arr.Count];
         int i = 0;
         foreach (object item in arr)
         {
             rpt[i] = (Entities.BCKhachHangDatHang)item;
             i++;
         }
         if (check_loaidathang.Checked)
         {
             Report.rptDatHangNhaCungCap khdh = new Report.rptDatHangNhaCungCap();
             khdh.SetDataSource(rpt);
             khdh.SetParameterValue("TongTien", txtTienhang.Text);
             khdh.SetParameterValue("TongTienCK", txtChietkhau.Text);
             khdh.SetParameterValue("TienThue", txtGiatrigiatang.Text);
             khdh.SetParameterValue("TongTienCK", txtChietkhau.Text);
             khdh.SetParameterValue("TongTienDonHang", txtTongtien.Text);
             khdh.SetParameterValue("NgayTao", makNgaydonhang.Text);
             khdh.SetParameterValue("TenBaoCao", "Báo Cáo Đặt Hàng Nhà Cung Cấp");
             frmBaoCaorpt frm = new frmBaoCaorpt(khdh);
             frm.ShowDialog();
         }
         else
         {
             Report.rptKhachHangDatHang khdh = new Report.rptKhachHangDatHang();
             khdh.SetDataSource(rpt);
             khdh.SetParameterValue("TongTien", txtTienhang.Text);
             khdh.SetParameterValue("TongTienCK", txtChietkhau.Text);
             khdh.SetParameterValue("TienThue", txtGiatrigiatang.Text);
             khdh.SetParameterValue("TongTienCK", txtChietkhau.Text);
             khdh.SetParameterValue("TongTienDonHang", txtTongtien.Text);
             khdh.SetParameterValue("NgayTao", makNgaydonhang.Text);
             khdh.SetParameterValue("TenBaoCao", "Báo Cáo Khách Hàng Đặt Hàng");
             frmBaoCaorpt frm = new frmBaoCaorpt(khdh);
             frm.ShowDialog();
         }
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:58,代码来源:frmXuLyDonDatHang.cs

示例9: tsslchitiet_Click

 private void tsslchitiet_Click(object sender, EventArgs e)
 {
     if (i < 0)
         return;
     try
     {
         string b = "";
         string c = new DateTime(Convert.ToInt32(cbbnam.Text), Convert.ToInt32(cbbthang.Text), 1).ToString();
         b = new DateTime(Convert.ToInt32(cbbnam.Text), Convert.ToInt32(cbbthang.Text), DateTime.DaysInMonth(Convert.ToInt32(cbbnam.Text), Convert.ToInt32(cbbthang.Text))).ToString();
         //string c = "01/" + cbbthang.Text + "/" + cbbnam.Text;
         //if (cbbthang.Text == "12")
         //    b = "01/01/" + (int.Parse(cbbnam.Text) + 1).ToString();
         //else
         //    b = "01/" + (int.Parse(cbbthang.Text) + 1).ToString() + "/" + cbbnam.Text;
         frmBaoCaorpt a = new frmBaoCaorpt(hienthibaocao.ToArray(), c, b, "");
         a.ShowDialog();
     }
     catch
     {
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:21,代码来源:frmBCLaiLo.cs

示例10: dtgvhienthi_CellDoubleClick

 private void dtgvhienthi_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (i < 0)
         return;
     try
     {
         string b = "";
         string c = "01/" + cbbthang.Text + "/" + cbbnam.Text;
         if (cbbthang.Text == "12")
             b = "01/01/" + (int.Parse(cbbnam.Text) + 1).ToString();
         else
             b = "01/" + (int.Parse(cbbthang.Text) + 1).ToString() + "/" + cbbnam.Text;
         frmBaoCaorpt a = new frmBaoCaorpt(hienthibaocao.ToArray(), c, b, "");
         a.ShowDialog();
     }
     catch
     {
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:19,代码来源:frmBCLaiLo.cs

示例11: tsslchitiet_Click

 private void tsslchitiet_Click(object sender, EventArgs e)
 {
     this.Enabled = false;
     if (i < 0)
         return;
     try
     {
         frmBaoCaorpt a = new frmBaoCaorpt(hienthibaocao, thang + "/" + nam);
         a.ShowDialog();
     }
     catch
     {
     }
     finally
     {
         this.Enabled = true;
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:18,代码来源:frmBCXuatNhapTonPhieuXuatNhap.cs

示例12: dtgvhienthi_CellDoubleClick

 private void dtgvhienthi_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     this.Enabled = false;
     if (i < 0)
         return;
     try
     {
         frmBaoCaorpt a = new frmBaoCaorpt(ChiTiet(), thang + "/" + nam);
         a.ShowDialog();
     }
     catch
     {
     }
     finally
     {
         this.Enabled = true;
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:18,代码来源:frmBCXuatNhapTonPhieuXuatNhap.cs

示例13: btnXem_Click

 private void btnXem_Click(object sender, EventArgs e)
 {
     try
     {
         Entities.TongHopCongNo[] congNo = congNoList.ToArray();
         string thang = cbbthang.SelectedItem.ToString();
         string nam = cbbnam.SelectedItem.ToString();
         // Khach hang
         if (cbbdoituong.SelectedIndex == 0)
         {
             frmBaoCaorpt a = new frmBaoCaorpt(congNo, thang, nam, "In", "", "KH", "Khách Hàng");
             a.ShowDialog();
         }
         else
         {
             frmBaoCaorpt a = new frmBaoCaorpt(congNo, thang, nam, "In", "", "NCC", "Nhà Cung Cấp");
             a.ShowDialog();
         }
     }
     catch (Exception)
     {
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:23,代码来源:frmCongNo.cs

示例14: tsslchitiet_Click

 private void tsslchitiet_Click(object sender, EventArgs e)
 {
     if (i < 0)
         return;
     try
     {
         frmBaoCaorpt a = new frmBaoCaorpt("NhanVien", dtgvhienthi.Rows[i].Cells["MaNhanVien"].Value.ToString(), truoc, sau);
         a.ShowDialog();
     }
     catch
     {
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:13,代码来源:frmBCDoanhThuNhanVien.cs

示例15: dtgvhienthi_CellDoubleClick

 private void dtgvhienthi_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (i < 0)
         return;
     try
     {
         if (dtgvhienthi.Rows[i].Cells["TenNhanVien"].Value.ToString().Equals("Tổng Cộng: "))
         {
             return;
         }
         frmBaoCaorpt a = new frmBaoCaorpt("NhanVien", dtgvhienthi.Rows[i].Cells["MaNhanVien"].Value.ToString(), truoc, sau);
         a.ShowDialog();
     }
     catch { }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:15,代码来源:frmBCDoanhThuNhanVien.cs


注:本文中的GUI.frmBaoCaorpt.ShowDialog方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。