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

            entity.SetEntity(BPMProcessTaskIDMap);

            this._DB.Edit(entity);
        }
예제 #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);
        }
예제 #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;
     }
 }