//通知范围检查 private void CKSubmit() { ComUtility Ut = new ComUtility(); string NoticeId = Ut.CheckApply("三八妇女节", UserInfo.UserID, ""); this.PageState.Add("NoticeState", NoticeId); }
//通知范围检查 private void CKSubmit() { string Id = RequestData.Get("Id") + ""; string CorpIds = string.Empty; var UsrEnt = SysUser.Find(Id); if (Session["CompanyId"] != null) { CorpIds = Session["CompanyId"] + ""; } else { CorpIds = UsrEnt.Pk_corp; } ComUtility Ut = new ComUtility(); string UsrId = Ut.CheckApply("员工体检", UserInfo.UserID, CorpIds); this.PageState.Add("State", UsrId); }
/// <summary> /// 发起通知 是否在通知时间范围内 /// </summary> //通知范围检查 private void CKSubmit() { string Id = RequestData.Get("Id") + ""; string UserId = string.Empty; //申请人ID if (!string.IsNullOrEmpty(Id)) { var Ent = UsrDoubleWelfare.Find(Id); UserId = Ent.UserId; Ent = null; } else { UserId = UserInfo.UserID; } ComUtility Ut = new ComUtility(); string UsrId = Ut.CheckApply("员工配偶保险", UserId, ""); this.PageState.Add("State", UsrId); }