Example #1
0
        public void Update(int ID, UserTaskEntity UserTask)
        {
            var entity = this._DB.Get(ID);

            entity.SetEntity(UserTask);

            this._DB.Edit(entity);
        }
Example #2
0
        public int Add(UserTaskEntity UserTask)
        {
            this._DB.Add(UserTask);
            var head       = Enum.GetName(typeof(TaskSource), UserTask.Type);
            var lctDateStr = UserTask.LctDate.HasValue ? string.Format("预计完成时间:{0}", UserTask.LctDate.Value) : "";

            _NotifySrv.Send(new
            {
                Target  = UserTask.UserID,
                Head    = head + "任务",
                Title   = UserTask.Name,
                Content = UserTask.Time > 1 ? string.Format("第{0}次,{1}", UserTask.Time, lctDateStr) : lctDateStr,
            });

            return(UserTask.ID);
        }
Example #3
0
 public void SetEntity(UserTaskEntity Entity)
 {
     this.Name        = Entity.Name;
     this.Identity    = Entity.Identity;
     this.ProcessID   = Entity.ProcessID;
     this.UserID      = Entity.UserID;
     this.Source      = Entity.Source;
     this.Type        = Entity.Type;
     this.ReceiveDate = Entity.ReceiveDate;
     this.Status      = Entity.Status;
     this.FinishDate  = Entity.FinishDate;
     this.LctDate     = Entity.LctDate;
     this.IsDelete    = Entity.IsDelete;
     this.TaskModelID = Entity.TaskModelID;
     this.Time        = Entity.Time;
     this.Note        = Entity.Note;
 }
Example #4
0
 public void Update(int ID, UserTaskEntity Entity)
 {
     this._IPMUserTaskService.Update(ID, Entity);
 }
Example #5
0
 public int Create(UserTaskEntity Info)
 {
     return(this._IPMUserTaskService.Add(Info));
 }