示例#1
0
        public static IEnumerable <LoaiPhieuNhap> DanhSachLoaiPhieuNhap_Xuat(int LoaiPhieuNhapXuat)
        {
            LoaiPhieuNhapService        _loai = new LoaiPhieuNhapService();
            IEnumerable <LoaiPhieuNhap> ds    = _loai.DanhSachPhieuNhap(LoaiPhieuNhapXuat);

            return(ds);
        }
        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);
        }
示例#3
0
        public static MvcHtmlString LoaiPhieu(this HtmlHelper helper, int?LoaiPhieu)
        {
            string html = string.Empty;
            LoaiPhieuNhapService _loai = new LoaiPhieuNhapService();
            LoaiPhieuNhap        loai  = _loai.FindByKey(LoaiPhieu);

            if (loai != null)
            {
                if (loai.LoaiPhieuNhapXuat == PhieuNhapXuat.Nhap.GetHashCode())
                {
                    html = "<span class='loai-nhap'>" + loai.TenLoaiPhieuNhap + "</span>";
                }
                else if (loai.LoaiPhieuNhapXuat == PhieuNhapXuat.Xuat.GetHashCode())
                {
                    html = "<span class='loai-xuat'>" + loai.TenLoaiPhieuNhap + "</span>";
                }
            }
            return(new MvcHtmlString(html));
        }