Esempio n. 1
0
        private bool IsDelSucess;//判断是否删除成功
        private void DeleteRow()
        {
            DataRowView drv = gridView1.GetRow(gridView1.FocusedRowHandle) as DataRowView;

            if (drv != null)
            {
                //取得创建人(只能创建人可以删除自己的评分信息)add by  ywk 2012年6月12日 14:15:12
                //string createuser = drv["CREATE_USER"].ToString();
                //if (m_App.User.Id!=createuser)//当前登录者不是此项的创建人
                //{
                //    m_App.CustomMessageBox.MessageShow("只有评分创建人可以进行删除!");
                //    IsDelSucess = false;
                //    return;
                //}
                string     id       = drv["ID"].ToString();
                RHEmrPoint emrPoint = new RHEmrPoint();
                emrPoint.ID             = id;
                emrPoint.CancelUserID   = m_App.User.DoctorId;
                emrPoint.CancelUserName = m_App.User.DoctorName;
                m_SqlManger.CancelRHEmrPoint(emrPoint);
            }
        }