예제 #1
0
        public ActionResult AddSparePartName()
        {
            var sparepart = new ManageSparePart();

            sparepart.CTHNoList           = new SelectList(dropdown.BindGstHsnCode(), "Value", "Text");
            sparepart.CategoryList        = new SelectList(dropdown.BindCategory(CurrentUser.CompanyId), "Value", "Text");
            sparepart.BrandList           = new SelectList(dropdown.BindBrand(CurrentUser.CompanyId), "Value", "Text");
            sparepart.DeviceModelNameList = new SelectList(dropdown.BindProduct(sparepart.BrandId), "Value", "Text");
            sparepart.SpareTypeIdList     = new SelectList(dropdown.BindSpareType(CurrentUser.CompanyId), "Value", "Text");
            sparepart.SubCategoryList     = new SelectList(dropdown.BindSubCategory(sparepart.CategoryId), "Value", "Text");

            return(PartialView(sparepart));
        }
예제 #2
0
        public ActionResult AddGst()
        {
            GstTaxModel gm = new GstTaxModel();

            gm.CountryList           = new SelectList(dropdown.BindCountry(), "Value", "Text");
            gm.StateList             = new SelectList(Enumerable.Empty <SelectList>());
            gm.GstcategoryList       = new SelectList(dropdown.BindGst(null), "Value", "Text");
            gm.DeviceCategoryList    = new SelectList(dropdown.BindCategory(CurrentUser.CompanyId), "Value", "Text");
            gm.DeviceSubCategoryList = new SelectList(Enumerable.Empty <SelectList>());
            gm.ApplicableTaxTypeList = new SelectList(CommonModel.GetApplicationTax(), "Value", "Text");
            gm.GstHSNCodeList        = new SelectList(dropdown.BindGstHsnCode(), "Value", "Text");
            gm.SACList       = new SelectList(CommonModel.SAC_NumberList(), "Text", "Text");
            gm.CTHNumberList = new SelectList(CommonModel.CTH_NumberList(), "Text", "Text");
            return(View(gm));
        }