示例#1
0
 private void LayduLieu()
 {
     try
     {
         QuiDinhDTO qd = qdBUS.Laydulieu();
         textBox1.Text = qd.Maxtogetsell.ToString();
         textBox2.Text = qd.Sellprice.ToString();
         textBox3.Text = qd.Percentnadd.ToString();
         textBox4.Text = qd.Dayofwork.ToString();
         textBox5.Text = qd.Luongtru.ToString();
     }
     catch (Exception ex)
     {
         System.Windows.MessageBox.Show("Lấy dữ liệu qui định thất bại");
         return;
     }
 }
示例#2
0
 public XemLuong(TaiKhoanDTO nv)
 {
     nvBUS = new NhanVienBUS();
     qdBUS = new QuyDinhBUS();
     qd    = qdBUS.Laydulieu();
     tkDTO = nv;
     nvDTO = nvBUS.Laynv(tkDTO.manv);
     InitializeComponent();
 }
 public ChiTietMonAn(MonAnDTO ma)
 {
     maBUS      = new MonAnBUS();
     nlBUS      = new NguyenLieuBUS();
     dsnlBUS    = new DSNguyenLieuBUS();
     qdBUS      = new QuyDinhBUS();
     quydinh    = qdBUS.Laydulieu();
     this.maDTO = ma;
     GiaTien    = ma.dongia;
     InitializeComponent();
     loadDataVaoComboBox();
     loadData_Vao_GridView();
 }
 public ChiTietHoaDon(hoaDonDTO hoadon)
 {
     maBUS       = new MonAnBUS();
     nlBUS       = new NguyenLieuBUS();
     dsmaBUS     = new DSMonAnBUS();
     hdBUS       = new hoaDonBUS();
     qdBUS       = new QuyDinhBUS();
     dsnlBUS     = new DSNguyenLieuBUS();
     quydinh     = qdBUS.Laydulieu();
     this.hoadon = hoadon;
     InitializeComponent();
     loadDataVaoComboBox();
     loadData_Vao_GridView();
 }