public BPMProcessTaskIDMapInfo(BPMProcessTaskIDMapEntity Entity) { this.ID = Entity.ID; this.ProcessID = Entity.ProcessID; this.TaskKey = Entity.TaskKey; this.TaskID = Entity.TaskID; }
public void Update(int ID, BPMProcessTaskIDMapEntity BPMProcessTaskIDMap) { var entity = this._DB.Get(ID); entity.SetEntity(BPMProcessTaskIDMap); this._DB.Edit(entity); }
public int Add(BPMProcessTaskIDMapEntity BPMProcessTaskIDMap) { //entity.IsDelete = false; this._DB.Add(BPMProcessTaskIDMap); //foreach (var attachID in BPMProcessTaskIDMap.AttachIDs) //{ // AddAttach(entity.ID, attachID); //} return(BPMProcessTaskIDMap.ID); }
public void SetEntity(BPMProcessTaskIDMapEntity Entity) { if (!this.ProcessID.Equals(Entity.ProcessID)) { this.ProcessID = Entity.ProcessID; } if (!this.TaskKey.Equals(Entity.TaskKey)) { this.TaskKey = Entity.TaskKey; } if (!this.TaskID.Equals(Entity.TaskID)) { this.TaskID = Entity.TaskID; } }