Ejemplo n.º 1
0
        public void Update(string ID, BPMTaskInstanceEntity BPMTaskInstance)
        {
            var entity = this._DB.Get(new Guid(ID));

            entity.SetEntity(BPMTaskInstance);

            this._DB.Edit(entity);
        }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
        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());
        }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
 public void SetTask(BPMTaskInstanceEntity BPMTaskInstance)
 {
     this._DB.Edit(BPMTaskInstance);
 }