Beispiel #1
0
        private void DoBatchDelete()
        {
            IList <object> idList = RequestData.GetList <object>("IdList");

            if (idList != null && idList.Count > 0)
            {
                EmpVoiceCommentInfo.DoBatchDelete(idList.ToArray());
            }
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            EmpVoiceCommentInfo ent = null;

            switch (this.RequestAction)
            {
            case RequestActionEnum.Delete:
                ent = this.GetTargetData <EmpVoiceCommentInfo>();
                ent.DoDelete();
                this.SetMessage("删除成功!");
                break;

            default:
                if (RequestActionString == "batchdelete")
                {
                    DoBatchDelete();
                }
                else
                {
                    DoSelect();
                }
                break;
            }
        }
Beispiel #3
0
 /// <summary>
 /// 查询
 /// </summary>
 private void DoSelect()
 {
     ents = EmpVoiceCommentInfo.FindAll(SearchCriterion);
     this.PageState.Add("CommentInfoList", ents);
 }