Beispiel #1
0
 public BPMProcessTaskIDMapInfo(BPMProcessTaskIDMapEntity Entity)
 {
     this.ID        = Entity.ID;
     this.ProcessID = Entity.ProcessID;
     this.TaskKey   = Entity.TaskKey;
     this.TaskID    = Entity.TaskID;
 }
Beispiel #2
0
        public void Update(int ID, BPMProcessTaskIDMapEntity BPMProcessTaskIDMap)
        {
            var entity = this._DB.Get(ID);

            entity.SetEntity(BPMProcessTaskIDMap);

            this._DB.Edit(entity);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 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;
     }
 }