• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# GUI.frmBaoCaorpt类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



frmBaoCaorpt类属于GUI命名空间,在下文中一共展示了frmBaoCaorpt类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: tsslexcel_Click

 private void tsslexcel_Click(object sender, EventArgs e)
 {
     //XLS
     SaveFileDialog saveFileDialog1 = new SaveFileDialog { Filter = "Excel |*.xls", FileName = string.Empty };
     if (saveFileDialog1.ShowDialog() == DialogResult.OK)
     {
         frmBaoCaorpt a = new frmBaoCaorpt(_dsBcChiTietHangHoa, new Dictionary<string, object>(), saveFileDialog1.FileName, "Excel");
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:9,代码来源:frmBCChiTietHangHoa.cs


示例3: frmLoad_Load

 /// <summary>
 /// chay thoi gian
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void frmLoad_Load(object sender, EventArgs e)
 {
     new Klib.Klib().KTime();
     Luu.GKOK = Klib2.KTienIch.GEN();
     timer1.Start();
     try
     {
         frmBaoCaorpt a = new frmBaoCaorpt("Test");
         a.Close();
     }
     catch { }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:17,代码来源:frmLoad.cs


示例4: TssWordClick

 private void TssWordClick(object sender, EventArgs e)
 {
     //Xuất ra word
     if (_bcThongKeMatHangBanRaTheoNhanViensGroup.Count == 0)
     {
         MessageBox.Show(Resources.MSG_DuLieuDangTrong, Resources.MSG_ThongBao);
         return;
     }
     Enabled = false;
     try
     {
         SaveFileDialog saveFileDialog1 = new SaveFileDialog { Filter = Resources.MSG_SaveFileDialog_Filter_Word, FileName = string.Empty };
         if (saveFileDialog1.ShowDialog() == DialogResult.OK)
         {
             frmBaoCaorpt frmBaoCaorpt = new frmBaoCaorpt(_bcThongKeMatHangBanRaTheoNhanViensGroup, GetDicInput(), saveFileDialog1.FileName, "Word");
         }
     }
     catch { }
     Enabled = true;
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:20,代码来源:FrmBcThongKeMatHangBanRaTheoNhanVien.cs


示例5: 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


示例6: tsslchitiet_Click

        private void tsslchitiet_Click(object sender, EventArgs e)
        {
            this.Enabled = false;
            try
            {
                ///////////////////////////////MRK FIX Hiển thị
                List<Entities.BCKhachHangTraHang> tem0 = ((Entities.BCKhachHangTraHang[])dtgvhienthi.DataSource).ToList();
                //Entities.BCKhachHangTraHang dau = new Entities.BCKhachHangTraHang();
                //dau = tem0[0];
                Entities.BCKhachHangTraHang cuoi = new Entities.BCKhachHangTraHang();
                cuoi = tem0[tem0.Count - 1];
                //tem0.Remove(dau);
                tem0.Remove(cuoi);
                ////////////////////////////////////////////////
                hienthibaocao = tem0.ToArray();
                //hienthibaocao = (Entities.BCKhachHangTraHang[])dtgvhienthi.DataSource;

                frmBaoCaorpt a = new frmBaoCaorpt(hienthibaocao, truoc, sau);
                a.ShowDialog();
            }
            catch
            {
            }
            finally
            {
                this.Enabled = true;
            }
        }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:28,代码来源:frmBCKhachHangTraHang.cs


示例7: tsslWord_Click

 private void tsslWord_Click(object sender, EventArgs e)
 {
     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))
             {
                 //DOC
                 saveFileDialog1.Filter = "Word |*.doc"; saveFileDialog1.FileName = "";
                 if (saveFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                 {
                     frmBaoCaorpt a = new frmBaoCaorpt(item, start.ToString("dd/MM/yyyy"), end.ToString("dd/MM/yyyy"), saveFileDialog1.FileName, "Word");
                 }
             }
         }
     }
     catch { }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:33,代码来源:frmBCTienTonKho.cs


示例8: tsslchitiet_Click

 private void tsslchitiet_Click(object sender, EventArgs e)
 {
     if (i < 0)
         return;
     try
     {
         disable();
         string manhomhang = dtgvhienthi["MaNhomHang", i].Value.ToString();
         Report.rptXuatNhapHangTheoNhomHang report = new Report.rptXuatNhapHangTheoNhomHang();
         report.SetDataSource(ChiTietNhom(manhomhang));
         report.SetParameterValue("Ky", thang.ToString() + "-" + nam.ToString());
         report.SetParameterValue("TenBaoCao", "Báo Cáo Xuất Nhập Tồn Theo Nhóm Hàng");
         frmBaoCaorpt a = new frmBaoCaorpt(report);
         a.ShowDialog();
     }
     catch
     {
     }
     finally
     {
         enable();
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:23,代码来源:frmBCXuatNhapTonNhomHang.cs


示例9: 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


示例10: 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


示例11: tsslWord_Click

 private void tsslWord_Click(object sender, EventArgs e)
 {
     try
     {
         if (i < 0)
             return;
         saveFileDialog1.Filter = "Word |*.doc";
         saveFileDialog1.FileName = "";
         if (saveFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             frmBaoCaorpt a = new frmBaoCaorpt("KhachHang", saveFileDialog1.FileName, "Word");
         }
     }
     catch
     {
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:17,代码来源:frmBCCongNoKhachHang.cs


示例12: tsslchitiet_Click

 private void tsslchitiet_Click(object sender, EventArgs e)
 {
     if (dtgvhienthi.RowCount > 1)
     {
         try
         {
             frmBaoCaorpt a = new frmBaoCaorpt("KhachHang");
             a.ShowDialog();
         }
         catch
         {
         }
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:14,代码来源:frmBCCongNoKhachHang.cs


示例13: dtgvhienthi_CellDoubleClick

 private void dtgvhienthi_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dtgvhienthi.RowCount > 1)
     {
         try
         {
             frmBaoCaorpt a = new frmBaoCaorpt("KhachHang");
             a.ShowDialog();
         }
         catch
         {
         }
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:14,代码来源:frmBCCongNoKhachHang.cs


示例14: tsslWord_Click

 private void tsslWord_Click(object sender, EventArgs e)
 {
     this.Enabled = false;
     try
     {
         saveFileDialog1.Filter = "Word |*.doc"; saveFileDialog1.FileName = "";
         if (saveFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             frmBaoCaorpt a = new frmBaoCaorpt(baocao, truoc, sau, saveFileDialog1.FileName, "Word");
         }
     }
     catch
     {
     }
     finally
     { this.Enabled = true; }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:17,代码来源:frmTimKiemChungTu.cs


示例15: tsslchitiet_Click

 private void tsslchitiet_Click(object sender, EventArgs e)
 {
     try
     {
         frmBaoCaorpt a = new frmBaoCaorpt(baocao, truoc, sau);
         a.ShowDialog();
     }
     catch
     {
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:11,代码来源:frmTimKiemChungTu.cs


示例16: tsslchitiet_Click

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


示例17: tsslWord_Click

 private void tsslWord_Click(object sender, EventArgs e)
 {
     this.Enabled = false;
     try
     {
         if (i < 0)
             return;
         saveFileDialog1.Filter = "Word |*.doc"; saveFileDialog1.FileName = "";
         if (saveFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             frmBaoCaorpt a = new frmBaoCaorpt("Nhom", dtgvhienthi["MaNhomHang", i].Value.ToString(), saveFileDialog1.FileName, "Word");
         }
     }
     catch
     {
     }
     finally
     {
         this.Enabled = true;
     }
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:21,代码来源:frmBCTonKhoTheoNhomHang.cs


示例18: tsslWord_Click

        private void tsslWord_Click(object sender, EventArgs e)
        {
            string maNhomHang = dtgvhienthi.CurrentRow.Cells["MaNhomHang"].Value.ToString();
            string tenNhomHang = dtgvhienthi.CurrentRow.Cells["TenNhomHang"].Value.ToString();
            if ((int)dtgvhienthi.CurrentRow.Cells["TongSoLuongXuat"].Value == 0)
            {
                MessageBox.Show("Không có Hàng Xuất từ kho" + tenNhomHang + " trong Khoảng từ ngày : " + xulyNgay(BatDau) + " đến " + xulyNgay(KetThuc) + " ");
            }
            else
            {
                saveFileDialog1.Filter = "Word |*.doc"; saveFileDialog1.FileName = "";
                 if (saveFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                 {

                     LayChiTiet_HangHoaXuat_TheoNhomHang(maNhomHang, tenNhomHang);
                     LayChiTiet_SoLuong_HangHoaXuat_TheoKho();

                     //dtgvhienthi.DataSource=ctBCXH;
                     //FixDatagridview();

                     frmBaoCaorpt frm = new frmBaoCaorpt(ctBCXH, BatDau, KetThuc,saveFileDialog1.FileName,"Word");

                     ctBCXH = null;
                 }
            }
        }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:26,代码来源:frmBCXuatHangTheoNhomHang.cs


示例19: toolStripStatusLabel3_Click

 private void toolStripStatusLabel3_Click(object sender, EventArgs e)
 {
     frmBaoCaorpt rpt = new frmBaoCaorpt(CtPdck_BaoCao, makNgaychungtu.Text, "", txtSochungtu.Text, cbxTukho.Text, cbxDenkho.Text);
     rpt.Show();
 }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:5,代码来源:frmXuLy_DieuChuyenKhoNoiBo.cs


示例20: dtgvhienthi_CellDoubleClick

        private void dtgvhienthi_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string maNhomHang = dtgvhienthi.Rows[e.RowIndex].Cells["MaNhomHang"].Value.ToString();
            string tenNhomHang = dtgvhienthi.Rows[e.RowIndex].Cells["TenNhomHang"].Value.ToString();
            if ((int)dtgvhienthi.Rows[e.RowIndex].Cells["TongSoLuongXuat"].Value == 0)
            {
                MessageBox.Show("Không có Hàng Xuất từ kho" + tenNhomHang + " trong Khoảng từ ngày : " +xulyNgay( BatDau) + " đến " +xulyNgay( KetThuc) + " ");
            }
            else
            {
                LayChiTiet_HangHoaXuat_TheoNhomHang(maNhomHang, tenNhomHang);
                LayChiTiet_SoLuong_HangHoaXuat_TheoKho();

                //dtgvhienthi.DataSource=ctBCXH;
                //FixDatagridview();

                frmBaoCaorpt frm = new frmBaoCaorpt(ctBCXH, BatDau,KetThuc);
                frm.ShowDialog();
                ctBCXH = null;

            }
        }
开发者ID:mrk29vn,项目名称:vna-accounting,代码行数:22,代码来源:frmBCXuatHangTheoNhomHang.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Command.RelayCommand类代码示例发布时间:2022-05-26
下一篇:
C# Menu.MenuItem类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap