public void Update(string ID, BPMTaskInstanceEntity BPMTaskInstance) { var entity = this._DB.Get(new Guid(ID)); entity.SetEntity(BPMTaskInstance); this._DB.Edit(entity); }
public void SetEntity(BPMTaskInstanceEntity Entity) { this.Status = Entity.Status; this.UserID = Entity.UserID; this.Users = Entity.Users; this.ExecuteDate = Entity.ExecuteDate; this.TurnDate = Entity.TurnDate; this.EstDate = Entity.EstDate; this.LctDate = Entity.LctDate; }
public string Add(BPMTaskInstanceInfo BPMTaskInstance) { var entity = new BPMTaskInstanceEntity(BPMTaskInstance); entity.IsDelete = false; this._DB.Add(entity); //foreach (var attachID in BPMTaskInstance.AttachIDs) //{ // AddAttach(entity.ID, attachID); //} return(entity.ID.ToString()); }
public BPMTaskInstanceInfo(BPMTaskInstanceEntity Entity) { this.ID = Entity.ID; this.ProcessID = Entity.ProcessID; this.Name = Entity.Name; this.Source = Entity.Source; this.Target = Entity.Target; this.Status = Entity.Status; this.UserID = Entity.UserID; this.Users = Entity.Users; this.Type = Entity.Type; this.ExecuteDate = Entity.ExecuteDate; this.TurnDate = Entity.TurnDate; this.SourceID = Entity.SourceID; this.EstDate = Entity.EstDate; this.LctDate = Entity.LctDate; }
public void SetTask(BPMTaskInstanceEntity BPMTaskInstance) { this._DB.Edit(BPMTaskInstance); }