public void loadAll()
        {
            SubCategoryViewModel objSubCategory = new SubCategoryViewModel();
            CategoryViewModel    objCategory    = new CategoryViewModel();
            int i = 0;

            var ProcurementTypeList = ProcrurementTypeServices.GetAll();

            ViewBag.ProcurementTypeList = new SelectList(ProcurementTypeList, "ProcurementTypeId", "ProcurementTypeName");

            var SuplierCompanyList = SupplierCompanyServices.GetAll();

            ViewBag.SuplierCompanyList = new SelectList(SuplierCompanyList, "SupplierCompanyId", "SupplierCompanyName");

            var Itemlist = ItemServices.GetAll();

            ViewBag.Itemlist = new SelectList(Itemlist, "ItemId", "ItemName");

            var CatgoryList = CategoryServices.GetAll(objCategory.CategoryId);

            ViewBag.categorylist = new SelectList(CatgoryList, "CategoryId", "CategoryName");

            var SubCategoryList = SubCategoryServices.GetDropDown(objSubCategory.SubCategoryId);

            ViewBag.subCategorylist = new SelectList(SubCategoryList, "SubCategoryId", "SubCategoryName");

            var SubSubCategoryList = SubSubCategoryServices.GetDropDown(objSubCategory.SubCategoryId);

            ViewBag.subSubCategoryList = new SelectList(SubSubCategoryList, "SubSubCategoryId", "SubSubCategoryName");

            var SubSubSubCategoryList = SubSubSubCategoryServices.GetDropDown(objSubCategory.SubCategoryId);

            ViewBag.subSubSubCategoryList = new SelectList(SubSubSubCategoryList, "SubSubSubCategoryId", "SubSubSubCategoryName");

            var SubSubSubSubCategoryList = SubSubSubSubCategoryServices.GetDropDown(objSubCategory.SubCategoryId);

            ViewBag.SubSubSubSubCategoryList = new SelectList(SubSubSubSubCategoryList, "SubSubSubSubCategoryId", "SubSubSubSubCategoryName");

            var BrandList = BrandServices.GetAll(i);

            ViewBag.BrandList = new SelectList(BrandList, "BrandId", "BrandName");


            var ModelList = ModelServices.GetAll(i);

            ViewBag.ModelList = new SelectList(ModelList, "ModelId", "ModelName");

            var UnitList = UnitServices.GetAll(i);

            ViewBag.UnitList = new SelectList(UnitList, "UnitId", "UnitName");
        }
Exemple #2
0
        // GET: Country
        public ActionResult Index()
        {
            var data = ProcrurementServices.GetAll();

            return(View(data));
        }
Exemple #3
0
        public JsonResult ProcureType()
        {
            var ProcurementTypeList = ProcrurementTypeServices.GetAll();

            return(Json(ProcurementTypeList, JsonRequestBehavior.AllowGet));
        }