Esempio n. 1
0
        public ActionResult Index()
        {
            ViewData["CityList"] = ListCommonHelper.GetCityGrouped();
            CompanySetupVm compSetVm = CompanySetupHelper.GetCompanySetup();

            return(View(compSetVm));
        }
Esempio n. 2
0
        public ActionResult Add(int id = 0)
        {
            #region Check Rights
            bool hasRights;
            if (id == 0) //Check export rights
            {
                hasRights = AdminHelper.CheckUserAction(ScreenEnum.ContractorRate, ActionEnum.Add);
            }
            else
            {
                hasRights = AdminHelper.CheckUserAction(ScreenEnum.ContractorRate, ActionEnum.Edit);
            }

            if (!hasRights)
            {
                return(RedirectToAction("UnAuthorized", "Home", new { area = "" }));
            }

            #endregion

            ContractorRateVm carrRateVm = ContractorRateHelper.GetContractorRateInfo(id);
            ViewBag.ContractorList   = ListCommonHelper.GetContractorList();
            ViewBag.ContainerList    = ListCommonHelper.GetContainerList();
            ViewData["AreaList"]     = ListCommonHelper.GetAreaGrouped();
            ViewData["CityList"]     = ListCommonHelper.GetCityGrouped();
            ViewData["CurrencyList"] = ListCommonHelper.GetCurrencyList();
            return(View(carrRateVm));
        }
        public ActionResult AreaLibrary()
        {
            var areasList = LibraryCommonHelper.GetAreasListByCityId(0);

            ViewData["CityList"] = ListCommonHelper.GetCityGrouped();
            return(View(areasList));
        }
        public ActionResult PortLibrary()
        {
            var portsList = LibraryCommonHelper.GetPortsListByCityId(0);

            ViewData["CityList"] = ListCommonHelper.GetCityGrouped();
            return(View(portsList));
        }
Esempio n. 5
0
        public ActionResult Add(int id = 0)
        {
            #region Check Rights
            bool hasRights;
            if (id == 0) //Check export rights
            {
                hasRights = AdminHelper.CheckUserAction(ScreenEnum.Shipper, ActionEnum.Add);
            }
            else
            {
                hasRights = AdminHelper.CheckUserAction(ScreenEnum.Shipper, ActionEnum.Edit);
            }

            if (!hasRights)
            {
                return(RedirectToAction("UnAuthorized", "Home", new { area = "" }));
            }

            #endregion
            ViewData["CityList"] = ListCommonHelper.GetCityGrouped();
            ShipperVm shipperObj = ShipperHelper.GetShipperInfo(id);
            return(View(shipperObj));
        }
Esempio n. 6
0
        public ActionResult Add(int id = 0)
        {
            #region Check Rights
            bool hasRights;
            if (id == 0)
            {
                hasRights = AdminHelper.CheckUserAction(ScreenEnum.Agent, ActionEnum.Add);
            }
            else
            {
                hasRights = AdminHelper.CheckUserAction(ScreenEnum.Agent, ActionEnum.Edit);
            }

            if (!hasRights)
            {
                return(RedirectToAction("UnAuthorized", "Home", new { area = "" }));
            }

            #endregion

            ViewData["CityList"] = ListCommonHelper.GetCityGrouped();
            AgentVm agentObj = AgentHelper.GetAgentInfo(id);
            return(View(agentObj));
        }