public void DropNhapDuLieu(int?_LoaiPhieu, int?MaKho, int?TrangThai, int PhieuXuatNhap)
        {
            LoaiPhieuNhapService        _loai     = new LoaiPhieuNhapService();
            IEnumerable <LoaiPhieuNhap> LoaiPhieu = _loai.DanhSachPhieuNhap(PhieuXuatNhap);

            ViewBag.LoaiPhieu = new SelectList(LoaiPhieu, "LoaiPhieuNhapId", "TenLoaiPhieuNhap", _LoaiPhieu);

            qtUnitService        _unit  = new qtUnitService();
            IEnumerable <qtUnit> dsUnit = _unit.FindList().Where(x => x.ParentId != null && x.ParentId != 0);

            ViewBag.Kho = new SelectList(dsUnit, "UnitId", "UnitName", MaKho);

            ViewBag.SizeGuid = new SelectList(new List <shSetSize>(), "Value", "Text");

            ViewBag.TrangThai = new SelectList(GoodReceiptIsuueHelper.DanhSachTrangThaiNhapXuatKho(null), "Value", "Text", TrangThai);
        }
        public void DropDownList(string TuNgay, string DenNgay, string TuKhoa, int?TrangThai, int?NguoiTao)
        {
            /*
             * Trạng thái đơn nhập , xuất hàng
             */

            ViewBag.TuNgay  = TuNgay;
            ViewBag.DenNgay = DenNgay;
            ViewBag.TuKhoa  = TuKhoa;

            List <DropDownList> ds = GoodReceiptIsuueHelper.DanhSachTrangThaiNhapXuatKho(null);

            ViewBag.TrangThai = new SelectList(ds, "Value", "Text", TrangThai);

            qtUserService        _user = new qtUserService();
            IEnumerable <qtUser> dsU   = _user.DanhSachUser(null, TypeHelper.ToInt32(User.Identity.GetUserLogin().Unitid), null);

            ViewBag.NguoiTao = new SelectList(dsU, "UserId", "UserName", NguoiTao);
        }