public void InitData(PhieuXuatDAO thongTinPhieuNhap, List <ChiTietHangHoaDAO> dataHangXuat) { pSoPhieuXuat.Value = thongTinPhieuNhap.SoPhieuXuat; pNgayXuat.Value = thongTinPhieuNhap.NgayXuat; pNguoiNhan.Value = thongTinPhieuNhap.NguoiNhanHang; pXuatTaiKho.Value = thongTinPhieuNhap.XuatTaiKho; pGhiChu.Value = thongTinPhieuNhap.GhiChu; pNguoiLapPhieu.Value = thongTinPhieuNhap.TenNhanVienXuat; objectDataSource2.DataSource = dataHangXuat; }
public void InPhieuXuat(PhieuXuatDAO thongTinPhieuXuat, List <ChiTietHangHoaDAO> dataHangHoaXuat) { XtraReportPhieuXuat reportPhieuXuat = new XtraReportPhieuXuat(); // Bỏ submit paramater review report reportPhieuXuat.Parameters["pSoPhieuXuat"].Visible = false; reportPhieuXuat.Parameters["pNgayXuat"].Visible = false; reportPhieuXuat.Parameters["pNguoiNhan"].Visible = false; reportPhieuXuat.Parameters["pXuatTaiKho"].Visible = false; reportPhieuXuat.Parameters["pGhiChu"].Visible = false; reportPhieuXuat.Parameters["pNguoiLapPhieu"].Visible = false; reportPhieuXuat.InitData(thongTinPhieuXuat, dataHangHoaXuat); documentViewer1.DocumentSource = reportPhieuXuat; reportPhieuXuat.CreateDocument(); }
private void btnIn_Click(object sender, EventArgs e) { // in phiếu xuất using (frmReviewIn XemTruocKhiIn = new frmReviewIn()) { int rowindex = dgvDanhSachPhieuXuat.CurrentCell.RowIndex; // Lấy thông tin phiếu nhập từ dòng click PhieuXuatDAO thongTinPhieuXuat = new PhieuXuatDAO(dgvDanhSachPhieuXuat.Rows[rowindex].Cells[1].Value.ToString(), dgvDanhSachPhieuXuat.Rows[rowindex].Cells[2].Value.ToString(), dgvDanhSachPhieuXuat.Rows[rowindex].Cells[3].Value.ToString(), dgvDanhSachPhieuXuat.Rows[rowindex].Cells[4].Value.ToString(), dgvDanhSachPhieuXuat.Rows[rowindex].Cells[5].Value.ToString(), dgvDanhSachPhieuXuat.Rows[rowindex].Cells[6].Value.ToString()); // Lấy chi tiết phiếu nhập (danh sách mặt hàng nhập) từ bảng string MaPN = dgvDanhSachPhieuXuat.Rows[rowindex].Cells[1].Value.ToString(); List <ChiTietHangHoaDAO> dataHangXuat = layer02.LayThongTinChiTietCuaPhieuXuatTheoSoPhieu(MaPN); // Đổ dữ liệu vào phiếu in XemTruocKhiIn.InPhieuXuat(thongTinPhieuXuat, dataHangXuat); //XemTruocKhiIn.InPhieuNhap(); XemTruocKhiIn.ShowDialog(); } }
public static bool DeletePhieuXuatById(string maPhieuXuat) { return(PhieuXuatDAO.DeletePhieuXuatById(maPhieuXuat)); }
public static bool UpdatePhieuXuatById(PhieuXuatDTO phieuXuatDTO) { return(PhieuXuatDAO.UpdatePhieuXuatById(phieuXuatDTO)); }
public static bool InsertPhieuXuat(PhieuXuatDTO phieuXuatDTO) { return(PhieuXuatDAO.InsertPhieuXuat(phieuXuatDTO)); }
public static List <PhieuXuatDTO> SelectPhieuXuatByMaNhanVien(string MaNhanVien) { return(PhieuXuatDAO.SelectPhieuXuatByMaNhanVien(MaNhanVien)); }
public static PhieuXuatDTO SelectPhieuXuatById(string MaPhieuXuat) { return(PhieuXuatDAO.SelectPhieuXuatById(MaPhieuXuat)); }
public static List <PhieuXuatDTO> SelectPhieuXuatAll() { return(PhieuXuatDAO.SelectPhieuXuatAll()); }