private void Luu()
 {
     BOThuChi.Luu(lsArray);
     LoadDanhSach();
     UserControlLibrary.WindowMessageBox messageBox = new UserControlLibrary.WindowMessageBox(mTransit.StringButton.LuuThanhCong);
     messageBox.ShowDialog();
 }
Beispiel #2
0
 private void btnLuu_Click(object sender, RoutedEventArgs e)
 {
     if (CheckValues())
     {
         if (_Item == null)
         {
             _Item = new Data.BOThuChi();
             _Item.ThuChi.Visual            = true;
             _Item.ThuChi.Deleted           = false;
             _Item.ThuChi.Edit              = false;
             _Item.ThuChi.NhanVienID        = mTransit.NhanVien.NhanVienID;
             _Item.ThuChi.NgayChungTu       = dtpNgayChungTu.SelectedDate;
             _Item.ThuChi.NgayGhiSo         = dtpNgayGhiSo.SelectedDate;
             _Item.ThuChi.LoaiThuChiID      = LoaiThuChiID;
             _Item.NhanVien.TenNhanVien     = mTransit.NhanVien.TenNhanVien;
             _Item.LoaiThuChi.TenLoaiThuChi = BOThuChi.GetLoaiThuChi(LoaiThuChiID).TenLoaiThuChi;
         }
         GetValues();
         BOThuChi.Luu(_Item);
         DialogResult = true;
     }
 }