Ejemplo n.º 1
0
        public void DsDropDown(int?UserId)
        {
            qtUserService        _user  = new qtUserService();
            IEnumerable <qtUser> dsUser = _user.DanhSachUser(null, TypeHelper.ToInt32(User.Identity.GetUserLogin().Unitid), null);

            ViewBag.UserId = new SelectList(dsUser, "UserId", "UserName", null);
        }
Ejemplo n.º 2
0
        public ActionResult ChuyenXuLyDonHang(string OrderGuid)
        {
            shOrderService _order = new shOrderService();
            shOrder        order  = _order.FindByKey(OrderGuid);

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

            ViewBag.UserId = new SelectList(ds, "UserId", "UserName", order.UserId);

            return(PartialView("ChuyenXuLyDonHang", order));
        }
Ejemplo n.º 3
0
        public ActionResult ChuyenNhanVienTheoDoi(string CategoryGuid)
        {
            shCategoryService _category = new shCategoryService();
            shCategory        category  = _category.FindByKey(CategoryGuid);

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

            ViewBag.UserId = new SelectList(ds, "UserId", "UserName", category.UserId);

            return(PartialView("ChuyenNhanVienTheoDoi", category));
        }
Ejemplo n.º 4
0
        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);
        }