Example #1
0
        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;
        }
Example #2
0
        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();
        }
Example #3
0
        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();
            }
        }
Example #4
0
 public static bool DeletePhieuXuatById(string maPhieuXuat)
 {
     return(PhieuXuatDAO.DeletePhieuXuatById(maPhieuXuat));
 }
Example #5
0
 public static bool UpdatePhieuXuatById(PhieuXuatDTO phieuXuatDTO)
 {
     return(PhieuXuatDAO.UpdatePhieuXuatById(phieuXuatDTO));
 }
Example #6
0
 public static bool InsertPhieuXuat(PhieuXuatDTO phieuXuatDTO)
 {
     return(PhieuXuatDAO.InsertPhieuXuat(phieuXuatDTO));
 }
Example #7
0
 public static List <PhieuXuatDTO> SelectPhieuXuatByMaNhanVien(string MaNhanVien)
 {
     return(PhieuXuatDAO.SelectPhieuXuatByMaNhanVien(MaNhanVien));
 }
Example #8
0
 public static PhieuXuatDTO SelectPhieuXuatById(string MaPhieuXuat)
 {
     return(PhieuXuatDAO.SelectPhieuXuatById(MaPhieuXuat));
 }
Example #9
0
 public static List <PhieuXuatDTO> SelectPhieuXuatAll()
 {
     return(PhieuXuatDAO.SelectPhieuXuatAll());
 }