/// <summary> /// 删除项目 /// </summary> public void m_Del() { if (this.m_dtgGroup.RowCount == 0) { return; } com.digitalwave.iCare.ValueObject.clsChargeItemUsageGroup_VO clsVO = new com.digitalwave.iCare.ValueObject.clsChargeItemUsageGroup_VO(); clsVO.m_strItemID = this.m_dtgGroup[this.m_dtgGroup.CurrentCell.RowNumber, 1].ToString(); clsVO.m_strUsageID = this.strUsageID; if (strUsageID.Trim() != "" && MessageBox.Show("确定删除选中项吗?", "提示框!", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { clsVO.m_intFlag = 0; if (MessageBox.Show("是否删除其他同法的此项目?", "提示框!", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { clsVO.m_intFlag = 1; } long lngRes = clsDomain.m_lngDelCMUsageGroupByID(clsVO); if (lngRes > 0) { MessageBox.Show("操作成功!", "提示框!", MessageBoxButtons.OK, MessageBoxIcon.Information); this.m_dtgGroup.m_mthDeleteRow(this.m_dtgGroup.CurrentCell.RowNumber); } else { MessageBox.Show("操作失败!", "提示框!", MessageBoxButtons.OK, MessageBoxIcon.Information); } } }