コード例 #1
0
        public ActionResult AddNew()
        {
            var entity = CreateEmptyEntityOrGetFromTempData(TempDataKey_BuildLogController_Copy);

            Framework.UIAction uiAction = Framework.UIAction.Create;
            MSBuildExtensionPack.AspNetMvc40ViewModel.BuildLogItemVM vm = MSBuildExtensionPack.AspNetMvc40ViewModel.BuildLogItemVM.CreateNewViewModel(entity);
            vm.LoadExtraData(uiAction);

            return(View(vm));
        }
コード例 #2
0
        public static BuildLogItemVM CreateNewViewModel(MSBuildExtensionPack.DataSourceEntities.BuildLog.Default entity)
        {
            Framework.UIAction uiAction = Framework.UIAction.Create;
            BuildLogItemVM     vm       = new BuildLogItemVM();

            vm.ContentData.Title   = Framework.Resx.UIStringResource.AddNew;
            vm.ContentData.Summary = MSBuildExtensionPack.Resx.UIStringResourcePerEntityBuildLog.AddNew_BuildLog;
            vm.LoadExtraData(uiAction);

            vm.Item = entity;
            vm.UIActionStatusMessage = new Framework.UIActionStatusMessage(typeof(BuildLogItemVM).FullName, uiAction.ToString(), uiAction, Framework.UIActionStatus.Launch);

            return(vm);
        }