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());
        }
Exemple #2
0
 public BPMTaskInstanceEntity(BPMTaskInstanceInfo Info)
 {
     this.ID          = Info.ID;
     this.ProcessID   = Info.ProcessID;
     this.Name        = Info.Name;
     this.Source      = Info.Source;
     this.Target      = Info.Target;
     this.Status      = Info.Status;
     this.UserID      = Info.UserID;
     this.Users       = Info.Users;
     this.Type        = Info.Type;
     this.ExecuteDate = Info.ExecuteDate;
     this.TurnDate    = Info.TurnDate;
     this.SourceID    = Info.SourceID;
     this.EstDate     = Info.EstDate;
     this.LctDate     = Info.LctDate;
 }