public void SetEntity(BPMProcessInstanceEntity Entity) { if (!this.Name.Equals(Entity.Name)) { this.Name = Entity.Name; } if (!this.Version.Equals(Entity.Version)) { this.Version = Entity.Version; } if (!this.Status.Equals(Entity.Status)) { this.Status = Entity.Status; } if (!this.CreateUser.Equals(Entity.CreateUser)) { this.CreateUser = Entity.CreateUser; } if (!this.StartDate.Equals(Entity.StartDate)) { this.StartDate = Entity.StartDate; } if (!this.FinishDate.Equals(Entity.FinishDate)) { this.FinishDate = Entity.FinishDate; } }
public void Update(string ID, BPMProcessInstanceEntity BPMProcessInstance) { var entity = this._DB.Get(ID); entity.SetEntity(BPMProcessInstance); this._DB.Edit(entity); }
public BPMProcessInstanceInfo(BPMProcessInstanceEntity Entity) { this.ID = Entity.ID; this.Name = Entity.Name; this.Version = Entity.Version; this.Status = Entity.Status; this.CreateUser = Entity.CreateUser; this.StartDate = Entity.StartDate; this.FinishDate = Entity.FinishDate; }
public string Add(BPMProcessInstanceEntity BPMProcessInstance) { //var entity = new BPMProcessInstanceEntity(BPMProcessInstance); //entity.IsDelete = false; this._DB.Add(BPMProcessInstance); //foreach (var attachID in BPMProcessInstance.AttachIDs) //{ // AddAttach(entity.ID, attachID); //} return(BPMProcessInstance.ID.ToString()); }