本文整理汇总了C#中GUI.frmBaoCaorpt类的典型用法代码示例。如果您正苦于以下问题:C# frmBaoCaorpt类的具体用法?C# frmBaoCaorpt怎么用?C# frmBaoCaorpt使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
frmBaoCaorpt类属于GUI命名空间,在下文中一共展示了frmBaoCaorpt类的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();
}
示例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");
}
}
示例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 { }
}
示例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;
}
示例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;
}
}
示例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;
}
}
示例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 { }
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
}
示例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
{
}
}
示例12: tsslchitiet_Click
private void tsslchitiet_Click(object sender, EventArgs e)
{
if (dtgvhienthi.RowCount > 1)
{
try
{
frmBaoCaorpt a = new frmBaoCaorpt("KhachHang");
a.ShowDialog();
}
catch
{
}
}
}
示例13: dtgvhienthi_CellDoubleClick
private void dtgvhienthi_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (dtgvhienthi.RowCount > 1)
{
try
{
frmBaoCaorpt a = new frmBaoCaorpt("KhachHang");
a.ShowDialog();
}
catch
{
}
}
}
示例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; }
}
示例15: tsslchitiet_Click
private void tsslchitiet_Click(object sender, EventArgs e)
{
try
{
frmBaoCaorpt a = new frmBaoCaorpt(baocao, truoc, sau);
a.ShowDialog();
}
catch
{
}
}