Пример #1
0
        // The Observable Collection only means that added and removed items from it are noticed
        public TaskNodeViewModel(TaskNodeViewModel parent, int ID, TaskViewType taskViewType, string BasePath, cAttributes OrgFileAttributes)
        {
            //Show = true;
            this.taskViewType = taskViewType;

            this.basePath = BasePath;

            this.OrgFileAttributes = OrgFileAttributes;

            this.SetFileAttributes = null;

            ParentOfThis = parent;
            IdOfThis     = ID;

            DuplicatesSourceSourceOrTT = new List <string>();
            DuplicatesSourceTarget     = new List <string>();

            DuplicatesSourceSourceOrTTNodes = new List <TaskNodeViewModel>();
            DuplicatesSourceTargetNodes     = new System.Collections.Generic.List <TaskNodeViewModel>();

            Path_1_Original       = "";
            Path_2_Copy           = "";
            Path_3_Move           = "";
            Path_4_Rename         = "";
            Path_5_Delete         = "";
            Path_CreateShortcutAt = "";
            Path_CreateShortcutTo = "";

            IsExpanded = false;

            bUpdatedFile      = false;
            bManuallyModified = false;

            bActivated = true;

            childrensNames = new Dictionary <string, List <TaskNodeViewModel> >();
        }
Пример #2
0
        public ActionResult ViewTaskCallReportList(TaskViewType viewType)
        {
            IList <CallReportTaskViewModel> modelList = new List <CallReportTaskViewModel>();
            IList <ICallReportVO>           taskList  = null;

            if (viewType == TaskViewType.Draft)
            {
                taskList = TaskBO.RetrieveCallReportTaskList(User.Identity.Name, true);
                ViewBag.ActiveSubSubMenu = "TaskDraftCallReport";
            }
            else
            {
                taskList = TaskBO.RetrieveCallReportTaskList(User.Identity.Name, false);
                ViewBag.ActiveSubSubMenu = "TaskSubmittedCallReport";
            }

            if (taskList != null)
            {
                modelList = (IList <CallReportTaskViewModel>)TaskMapper.Map(
                    taskList, typeof(IList <ICallReportVO>), typeof(IList <CallReportTaskViewModel>));
            }

            return(View(modelList));
        }
Пример #3
0
 public void ChangeTaskView(TaskViewType viewType)
 {
     this.viewType = viewType;
     RefreshDataSource();
 }