internal static bool IsCanEditOrDel(WfStaffNotion wsn)
 {
     if (wsn == null)
     {
         return false;
     }
     return (wsn.StaffId == SecurityUtil.GetSmIdentity().UserId);
 }
 public override void Run()
 {
     if (base.sn.CanAddMyNotion())
     {
         SmIdentity smIdentity = SecurityUtil.GetSmIdentity();
         WfStaffNotion notion = new WfStaffNotion();
         notion.ProinstId = base.sn.ProinstId;
         notion.AssignId = base.sn.AssignId;
         notion.StaffId = smIdentity.UserId;
         notion.StaffName = smIdentity.UserName;
         notion.Date = new DateTime?(DateTimeHelper.GetNow());
         base.sn.CurrentUnitOfWork.RegisterNew(notion);
         base.sn.AddStaffNotion(notion);
     }
     else
     {
         MessageHelper.ShowInfo("你不能添加经办人意见");
     }
 }
Example #3
0
 public void AddStaffNotion(WfStaffNotion wsn)
 {
     this.staffNotions.Add(wsn);
     this.view.RefreshData();
     this.view.FocusedRowHandle = this.view.GetRowHandle(wsn);
 }