public WorkTask ConvertToDomainModel()
        {
            var obj = WorkTask.ForNew();

            obj.Title        = ScheduleTitle;
            obj.TaskCategory = TaskCategory;
            obj.ProductId    = new Identity <Product>(ProductId);
            obj.ClientId     = new Identity <Client>(ClientId);
            obj.ProcessId    = new Identity <WorkProcess>(WorkProcessId);

            return(obj);
        }
        public WorkTask ConvertToDomainModel()
        {
            var obj = WorkTask.ForNew();

            obj.Title        = Title;
            obj.TaskCategory = TaskCategory;
            obj.ProductId    = new Domain.Utility.Identity <Domain.Domain.Products.Product>(ProductId);
            obj.ClientId     = new Domain.Utility.Identity <Domain.Domain.Clients.Client>(ClientId);
            obj.ProcessId    = new Domain.Utility.Identity <Domain.Domain.WorkProcesses.WorkProcess>(ProcessId);
            obj.IsTemporary  = true;

            return(obj);
        }
 public TaskConfigEditDialogViewModel(string configTitle, string configTitleValue)
     : this(configTitle, configTitleValue, WorkTask.ForNew())
 {
 }
Esempio n. 4
0
 public WorkTaskEditDialogViewModel()
     : this(WorkTask.ForNew())
 {
 }