/// <summary> /// Grid Data 선택 (수정) /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gridMain_MouseDoubleClick(object sender, MouseButtonEventArgs e) { int rowHandle = gridMainView.GetRowHandleByMouseEventArgs(e); if (rowHandle == GridControl.InvalidRowHandle) { return; } if (gridMain.IsGroupRowHandle(rowHandle)) { return; } // A group row has been double clicked EmsFail target = gridMain.SelectedItem as EmsFail; if (null != target) { //if ("F" == target.FAIL_STAT_CD) //{ // BaseClass.MsgInfo("확정된 내용을 수정할 수 없습니다.", this.BaseInfo.country_cd); // return; //} focused_handle = gridMain.View.FocusedRowHandle; EchkErrReg(target.FAIL_NO, target.FAIL_STAT_CD); } }
private bool DeleteSP_EMS_FAIL_DELETE(BaseDataAccess _da, EmsFail _item) { try { bool isRtnValue = true; #region 라메터 변수 선언 및 값 할당 DataTable dtRtnValue = null; var strProcedureName = "PK_EMS_ECHK002.SP_EMS_FAIL_DELETE"; Dictionary <string, object> dicInputParam = new Dictionary <string, object>(); string[] arrOutputParam = { "O_RSLT" }; var strCenterCD = this.BaseClass.CenterCD; var iFailNo = _item.FAIL_NO; var strErrCode = string.Empty; // 오류 코드 var strErrMsg = string.Empty; // 오류 메세지 #endregion #region Input 파라메터 dicInputParam.Add("P_CENTER_CD", strCenterCD); dicInputParam.Add("P_FAIL_NO", iFailNo); #endregion dtRtnValue = _da.GetSpDataTable(strProcedureName, dicInputParam, arrOutputParam); if (dtRtnValue != null) { if (dtRtnValue.Rows.Count > 0) { if (dtRtnValue.Rows[0]["CODE"].ToString().Equals("100") == false) { this.BaseClass.MsgInfo(dtRtnValue.Rows[0]["MSG"].ToString(), BaseEnumClass.CodeMessage.MESSAGE); isRtnValue = false; } } else { this.BaseClass.MsgInfo("ERR_SAVE"); //CMPT_SAVE : 저장 중 오류가 발생했습니다. isRtnValue = false; } } return(isRtnValue); } catch { throw; } }