コード例 #1
0
ファイル: ConfigQCAudit.cs プロジェクト: xuanximoming/key
        /// <summary>
        /// 删除操作
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void barButtonItemDeleteInfo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                DataRow dr = grdViewConfigAudit.GetDataRow(grdViewConfigAudit.FocusedRowHandle);
                if (dr != null)
                {
                    string id            = dr["ID"].ToString();
                    string deptid        = string.Empty;
                    string qcmanagerid   = string.Empty;
                    string chiefdoctorid = string.Empty;
                    string valid         = string.Empty;

                    if (m_App.CustomMessageBox.MessageShow("您确认删除吗?", CustomMessageBoxKind.QuestionYesNo) == DialogResult.Yes)
                    {
                        m_SqlManager.DeleteQCManagerUSer(id, deptid, qcmanagerid, chiefdoctorid, valid);
                    }
                    BindGridControl();
                }
            }
            catch (Exception)
            {
                throw;
            }
        }