protected void ibnCancelEstQ_Click(object sender, ImageClickEventArgs e) { Biz_Prj_Data objPrjData = new Biz_Prj_Data(); DataTable dataTable = objPrjData.GetDataTableSchema(); dataTable = UltraGridUtility.GetDataTableByCheckValue(UltraWebGrid1 , "cBox" , "selchk" , new string[] { "EST_DEPT_ID", "EST_EMP_ID", "PRJ_REF_ID", "STATUS_ID" } , dataTable); if (dataTable.Rows.Count == 0) { ltrScript.Text = JSHelper.GetAlertScript("상태가 평가완료가 아니거나 선택된 항목이 없습니다."); return; } else { dataTable = DataTypeUtility.FilterSortDataTable(dataTable, "STATUS_ID = 'E'"); } foreach (DataRow dataRow in dataTable.Rows) { dataRow["COMP_ID"] = COMP_ID; dataRow["EST_ID"] = EST_ID; dataRow["ESTTERM_REF_ID"] = ESTTERM_REF_ID; dataRow["ESTTERM_SUB_ID"] = ESTTERM_SUB_ID; dataRow["ESTTERM_STEP_ID"] = ESTTERM_STEP_ID; dataRow["STATUS_ID"] = "P"; } bool isOK = objPrjData.SaveStatus(dataTable); if (isOK) { ltrScript.Text = JSHelper.GetAlertScript("정상적으로 질의평가를 취소하였습니다."); GridBidingData(COMP_ID , EST_ID , ESTTERM_REF_ID , ESTTERM_SUB_ID , ESTTERM_STEP_ID , EMP_REF_ID , SEARCH_ALL); SetConfirmStatusHtml(EST_JOB_IDS); } else { ltrScript.Text = JSHelper.GetAlertScript("정상적으로 취소되지 않았습니다."); } }
private void SaveQuestionData_TGT_ID() { Biz_Prj_QuestionData questionDatas = new Biz_Prj_QuestionData(); Biz_Prj_Data datas = new Biz_Prj_Data(); DataTable dtQData = questionDatas.GetDataTableSchema(); dtQData = GetQuestionDataTable(dtQData, DataList1); dtQData = GetQuestionSubDataTable(dtQData, DataList2); DataTable dtPrjData = AddNewPrjDataRow(datas.GetDataTableSchema(), dtQData); bool isSuccessed = questionDatas.SaveQuestionData_TGT_ID(dtQData, dtPrjData); if (!isSuccessed) { ltrScript.Text = JSHelper.GetAlertScript("데이터 저장 중 실패하였습니다.", false); return; } ltrScript.Text = JSHelper.GetAlertOpenerControlCallBackScript("정상적으로 저장되었습니다.", "lbnReload", true); }