Ejemplo n.º 1
0
        /*<ControllerActionImplementation:Render:1/>*/
        public ActionResult ExecuteRender(int?orderId)
        {
            if (_parentController == null)
            {
                _parentController = new MasterPageForSlide.MasterPageForSlideController(new  DSS5_SupplyChainFinancialsOptimisation.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel());
            }
            ((MasterPageForSlide.MasterPageForSlideController)_parentController).ExecuteRender();
            ActionResult _result = null;

            try
            {
                @model.Order     = new DSS5_SupplyChainFinancialsOptimisation.DAL.Repository().GetById <DSS5_SupplyChainFinancialsOptimisation.BO.Order>(orderId);
                @model.MapPoints = DSS5_SupplyChainFinancialsOptimisation.BO.MapPointExtensions.InitiOrderMapPoints(@model.Order).ToList();
            }
            catch (System.Exception x)
            {
                zAppDev.DotNet.Framework.Utilities.DebugHelper.Log(zAppDev.DotNet.Framework.Utilities.DebugMessageType.Error, "TrackingMapForm", DSS5_SupplyChainFinancialsOptimisation.Hubs.EventsHub.RaiseDebugMessage, x);
            }
            foreach (var point in @model.MapPoints ?? Enumerable.Empty <DSS5_SupplyChainFinancialsOptimisation.BO.MapPoint>())
            {
                point.Latitude  = (point?.Latitude ?? 0);
                point.Longitude = (point?.Longitude ?? 0);
                point.Title     = (point?.Title ?? "");
                point.Icon      = (point?.Icon ?? "");
            }
            return(_result);
        }
        protected override void ViewModelLoaded()
        {
            var masterViewModel = new DSS2_SynchromodalityCapacityOptimisation.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel
            {
                Title = model.Title
            };

            _parentController         = new MasterPageForSlide.MasterPageForSlideController(masterViewModel);
            _parentController.IsDirty = IsDirty;
        }
        protected override void ViewModelLoaded()
        {
            var masterViewModel = new DSS1_RetailerDriverStockOptimisation.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel
            {
                Title = model.Title
            };

            _parentController         = new MasterPageForSlide.MasterPageForSlideController(masterViewModel);
            _parentController.IsDirty = IsDirty;
        }
Ejemplo n.º 4
0
        protected override void ViewModelLoaded()
        {
            var masterViewModel = new DSS3_LogisticsPoolingForUrbanDistribution.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel
            {
                Title = model.Title
            };

            _parentController         = new MasterPageForSlide.MasterPageForSlideController(masterViewModel);
            _parentController.IsDirty = IsDirty;
        }
        protected override void ViewModelLoaded()
        {
            var masterViewModel = new DSS5_SupplyChainFinancialsOptimisation.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel
            {
                Title = model.Title
            };

            _parentController         = new MasterPageForSlide.MasterPageForSlideController(masterViewModel);
            _parentController.IsDirty = IsDirty;
        }
Ejemplo n.º 6
0
        protected override void ViewModelLoaded()
        {
            var masterViewModel = new DSS4_ECompliance.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel
            {
                Title = model.Title
            };

            _parentController         = new MasterPageForSlide.MasterPageForSlideController(masterViewModel);
            _parentController.IsDirty = IsDirty;
        }
        /*<ControllerActionImplementation:Render:1/>*/
        public ActionResult ExecuteRender()
        {
            if (_parentController == null)
            {
                _parentController = new MasterPageForSlide.MasterPageForSlideController(new  DSS5_SupplyChainFinancialsOptimisation.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel());
            }
            ((MasterPageForSlide.MasterPageForSlideController)_parentController).ExecuteRender();
            ActionResult _result = null;

            return(_result);
        }
Ejemplo n.º 8
0
        /*<ControllerActionImplementation:Render:1/>*/
        public ActionResult ExecuteRender()
        {
            if (_parentController == null)
            {
                _parentController = new MasterPageForSlide.MasterPageForSlideController(new  DSS1_RetailerDriverStockOptimisation.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel());
            }
            ((MasterPageForSlide.MasterPageForSlideController)_parentController).ExecuteRender();
            ActionResult _result = null;

            @model.Title = "";
            return(_result);
        }
Ejemplo n.º 9
0
        /*<ControllerActionImplementation:GetOriginDestination:1/>*/
        public ActionResult ExecuteGetOriginDestination(string or, string dest)
        {
            if (_parentController == null)
            {
                _parentController = new MasterPageForSlide.MasterPageForSlideController(new  DSS5_SupplyChainFinancialsOptimisation.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel());
            }
            ((MasterPageForSlide.MasterPageForSlideController)_parentController).ExecuteRender();
            ActionResult _result = null;

            @model.origin      = or;
            @model.destination = dest;
            return(_result);
        }
        /*<ControllerActionImplementation:EditRole:1/>*/
        public ActionResult ExecuteEditRole(int?Id)
        {
            if (_parentController == null)
            {
                _parentController = new MasterPageForSlide.MasterPageForSlideController(new  DSS1_RetailerDriverStockOptimisation.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel());
            }
            ((MasterPageForSlide.MasterPageForSlideController)_parentController).ExecuteRender();
            ActionResult _result = null;

            @model.ApplicationRole = new DSS1_RetailerDriverStockOptimisation.DAL.Repository().GetById <zAppDev.DotNet.Framework.Identity.Model.ApplicationRole>(Id);
            @model.Title           = BaseViewPage <string> .GetResourceValue("ManageRole", "RES_PAGETITLE_EditRole").ToString();

            return(_result);
        }
Ejemplo n.º 11
0
        /*<ControllerActionImplementation:NewUser:1/>*/
        public ActionResult ExecuteNewUser()
        {
            if (_parentController == null)
            {
                _parentController = new MasterPageForSlide.MasterPageForSlideController(new  DSS4_ECompliance.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel());
            }
            ((MasterPageForSlide.MasterPageForSlideController)_parentController).ExecuteRender();
            ActionResult _result = null;

            @model.ApplicationUser = new zAppDev.DotNet.Framework.Identity.Model.ApplicationUser();
            @model.Title           = BaseViewPage <string> .GetResourceValue("ManageUser", "RES_PAGETITLE_NewUser").ToString();

            return(_result);
        }
        /*<ControllerActionImplementation:EditUser:1/>*/
        public ActionResult ExecuteEditUser(string Id)
        {
            if (_parentController == null)
            {
                _parentController = new MasterPageForSlide.MasterPageForSlideController(new  DSS2_SynchromodalityCapacityOptimisation.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel());
            }
            ((MasterPageForSlide.MasterPageForSlideController)_parentController).ExecuteRender();
            ActionResult _result = null;

            @model.ApplicationUser = new DSS2_SynchromodalityCapacityOptimisation.DAL.Repository().GetById <zAppDev.DotNet.Framework.Identity.Model.ApplicationUser>(Id);
            @model.Title           = BaseViewPage <string> .GetResourceValue("ManageUser", "RES_PAGETITLE_EditUser").ToString();

            return(_result);
        }
Ejemplo n.º 13
0
        /*<ControllerActionImplementation:EditOperation:1/>*/
        public ActionResult ExecuteEditOperation(int?Id)
        {
            if (_parentController == null)
            {
                _parentController = new MasterPageForSlide.MasterPageForSlideController(new  DSS4_ECompliance.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel());
            }
            ((MasterPageForSlide.MasterPageForSlideController)_parentController).ExecuteRender();
            ActionResult _result = null;

            @model.ApplicationOperation = new DSS4_ECompliance.DAL.Repository().GetById <zAppDev.DotNet.Framework.Identity.Model.ApplicationOperation>(Id);
            @model.Title = BaseViewPage <string> .GetResourceValue("ManageOperation", "RES_PAGETITLE_EditOperation").ToString();

            return(_result);
        }
        /*<ControllerActionImplementation:EditApplicationSetting:1/>*/
        public ActionResult ExecuteEditApplicationSetting(int?Id)
        {
            if (_parentController == null)
            {
                _parentController = new MasterPageForSlide.MasterPageForSlideController(new  DSS5_SupplyChainFinancialsOptimisation.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel());
            }
            ((MasterPageForSlide.MasterPageForSlideController)_parentController).ExecuteRender();
            ActionResult _result = null;

            @model.ApplicationSetting = new DSS5_SupplyChainFinancialsOptimisation.DAL.Repository().GetById <zAppDev.DotNet.Framework.Identity.Model.ApplicationSetting>(Id);
            @model.Title = BaseViewPage <string> .GetResourceValue("ApplicationSettingForm", "RES_PAGETITLE_EditApplicationSetting").ToString();

            return(_result);
        }
        /*<ControllerActionImplementation:AddApplicationSetting:1/>*/
        public ActionResult ExecuteAddApplicationSetting()
        {
            if (_parentController == null)
            {
                _parentController = new MasterPageForSlide.MasterPageForSlideController(new  DSS1_RetailerDriverStockOptimisation.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel());
            }
            ((MasterPageForSlide.MasterPageForSlideController)_parentController).ExecuteRender();
            ActionResult _result = null;

            @model.ApplicationSetting          = new zAppDev.DotNet.Framework.Identity.Model.ApplicationSetting();
            @model.ApplicationSetting.IsCustom = true;
            @model.Title = BaseViewPage <string> .GetResourceValue("ApplicationSettingForm", "RES_PAGETITLE_AddApplicationSetting").ToString();

            return(_result);
        }
Ejemplo n.º 16
0
        /*<ControllerActionImplementation:TotalUnitsSKU:1/>*/
        public ActionResult ExecuteTotalUnitsSKU(int?id)
        {
            if (_parentController == null)
            {
                _parentController = new MasterPageForSlide.MasterPageForSlideController(new  DSS1_RetailerDriverStockOptimisation.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel());
            }
            ((MasterPageForSlide.MasterPageForSlideController)_parentController).ExecuteRender();
            ActionResult _result = null;

            zAppDev.DotNet.Framework.Utilities.DebugHelper.Log(zAppDev.DotNet.Framework.Utilities.DebugMessageType.Warning, "StockSKUStatisticForm", DSS1_RetailerDriverStockOptimisation.Hubs.EventsHub.RaiseDebugMessage, "CLICK: " + id.GetValueOrDefault(0));
            @model.WarehouseId = id;
            @model.Description = (new DSS1_RetailerDriverStockOptimisation.DAL.Repository().GetById <DSS1_RetailerDriverStockOptimisation.BO.Warehouse>(id)?.Description ?? "");
            zAppDev.DotNet.Framework.Utilities.DebugHelper.Log(zAppDev.DotNet.Framework.Utilities.DebugMessageType.Warning, "StockSKUStatisticForm", DSS1_RetailerDriverStockOptimisation.Hubs.EventsHub.RaiseDebugMessage, "-------> " + (new DSS1_RetailerDriverStockOptimisation.DAL.Repository().GetById <DSS1_RetailerDriverStockOptimisation.BO.Warehouse>(id)?.Description ?? ""));
            ClientCommand(ClientCommands.CHART_REFRESH, "Chart2");
            return(_result);
        }
        /*<ControllerActionImplementation:NewRole:1/>*/
        public ActionResult ExecuteNewRole()
        {
            if (_parentController == null)
            {
                _parentController = new MasterPageForSlide.MasterPageForSlideController(new  DSS2_SynchromodalityCapacityOptimisation.UI.ViewModels.MasterPageForSlide.MasterPageForSlideViewModel());
            }
            ((MasterPageForSlide.MasterPageForSlideController)_parentController).ExecuteRender();
            ActionResult _result = null;

            zAppDev.DotNet.Framework.Identity.Model.ApplicationRole role = new zAppDev.DotNet.Framework.Identity.Model.ApplicationRole();
            role.IsCustom          = true;
            @model.ApplicationRole = role;
            @model.Title           = BaseViewPage <string> .GetResourceValue("ManageRole", "RES_PAGETITLE_NewRole").ToString();

            return(_result);
        }