예제 #1
0
 public ContextProcInst Save(ContextProcInst contextProcInst)
 {
     new Pkurg.BPM.Services.ProcInstService().Save(new ProcInst()
     {
         ProcId        = contextProcInst.ProcId,
         ProcName      = contextProcInst.ProcName,
         Status        = byte.Parse(contextProcInst.Status),
         AppCode       = contextProcInst.AppCode,
         CreatorDeptId = contextProcInst.StartDeptCode
     });
     return(contextProcInst);
 }
예제 #2
0
        public bool UpdateProcInst(ContextProcInst procInst)
        {
            IList <ProcInst> infos = new Pkurg.BPM.Services.ProcInstService().Find(string.Format("ProcId='{0}'", procInst.ProcId));

            if (infos.Count == 0)
            {
                return(false);
            }
            infos[0].Status     = byte.Parse(procInst.Status);
            infos[0].FormData   = procInst.FormData;
            infos[0].WorkflowId = int.Parse(procInst.WorkflowId);
            infos[0].ProcName   = procInst.ProcName;

            return(new Pkurg.BPM.Services.ProcInstService().Update(infos[0]));
        }
예제 #3
0
 public bool UpdateProcInst(ContextProcInst procInst, bool isUpDataAll)
 {
     throw new NotImplementedException();
 }