Example #1
0
 public static IWfAbnormalAudit GetAbnormalAudit(WfAbnormalAuditInst instance)
 {
     if (instance == null)
     {
         throw new WfException("Abnormal audit instance cannot be null");
     }
     return new WfAbnormalAudit(instance);
 }
 public WfAbnormalAudit(WfAssigninst assign)
 {
     this.dao = DaoUtil.GetDaoInstance("SkyMap.Net.Workflow");
     this.abnormalAuditInst = new WfAbnormalAuditInst();
     this.abnormalAuditInst.AssignId = assign.Id;
     this.abnormalAuditInst.ProinstId = assign.WfResinst.Actinst.Proinst.Id;
     this.abnormalAuditInst.ProinstName = assign.WfResinst.Actinst.Proinst.Name;
     this.abnormalAuditInst.ActinstId = assign.WfResinst.Id;
     this.abnormalAuditInst.ActinstName = assign.WfResinst.Actinst.Name;
     this.abnormalAuditInst.TimeStamp = new DateTime?(DateTimeHelper.GetNow());
     this.abnormalAuditInst.NeedDecision = false;
     this.abnormalAuditInst.OpStaffId = assign.StaffId;
     this.abnormalAuditInst.OpStaffName = assign.StaffName;
 }
 public WfAbnormalAudit(WorkItem workItem)
 {
     this.dao = DaoUtil.GetDaoInstance("SkyMap.Net.Workflow");
     string abnormalAuditId = workItem.AbnormalAuditId;
     if (StringHelper.IsNull(abnormalAuditId))
     {
         this.CreateAbnormalAudit(workItem);
     }
     else
     {
         this.abnormalAuditInst = this.dao.Load(typeof(WfAbnormalAuditInst), abnormalAuditId) as WfAbnormalAuditInst;
         if (this.abnormalAuditInst == null)
         {
             throw new WfException("Cannot load the AbnormalAudit:" + workItem.AbnormalAuditId);
         }
     }
 }
 public WfAbnormalAudit(WfAbnormalAuditInst instance)
 {
     this.dao = DaoUtil.GetDaoInstance("SkyMap.Net.Workflow");
     this.abnormalAuditInst = instance;
 }
 public WfAbnormalAudit()
 {
     this.dao = DaoUtil.GetDaoInstance("SkyMap.Net.Workflow");
     this.abnormalAuditInst = new WfAbnormalAuditInst();
     this.abnormalAuditInst.TimeStamp = new DateTime?(DateTimeHelper.GetNow());
 }
 public void CreateAbnormalAudit(WorkItem workItem)
 {
     this.abnormalAuditInst = new WfAbnormalAuditInst();
     this.abnormalAuditInst.ActinstId = workItem.ActinstId;
     this.abnormalAuditInst.ActinstName = workItem.ActinstName;
     this.abnormalAuditInst.ProinstId = workItem.ProinstId;
     this.abnormalAuditInst.ProinstName = workItem.ProinstName;
     this.abnormalAuditInst.AssignId = workItem.AssignId;
     this.abnormalAuditInst.TimeStamp = new DateTime?(DateTimeHelper.GetNow());
     this.abnormalAuditInst.NeedDecision = false;
 }