/// <summary> /// 언어 정보 저장 /// </summary> public bool SystemCode_Info_Save(SystemCodeRegisterEntity pSystemCodeRegisterEntity, DataTable dt, string code) { try { DataTable dtTemp = null; bool isChack = CoFAS_ConvertManager.DataTable_FindCount(dt, "CRUD IN ('C','U','D')", ""); if (isChack) { dtTemp = CoFAS_ConvertManager.DataTable_FindValue(dt, "CRUD IN ('C','U','D')", ""); // 신규 and 수정 항목 데이터 테이블 화 } else { dtTemp = dt; } using (DBManager pDBManager = new DBManager()) { bool isReturn = new SystemCodeRegisterProvider(pDBManager).SystemCode_Info_Save(pSystemCodeRegisterEntity, dtTemp, code); return(isReturn); } } catch (ExceptionManager pExceptionManager) { throw pExceptionManager; } catch (Exception pException) { throw new ExceptionManager(this, "SystemCode_Info_Save(SystemCodeRegisterEntity pSystemCodeRegisterEntity, DataTable dt, string code)", pException); } }
/// <summary> /// 언어 정보 조회 /// </summary> public DataTable SystemCode_Info_Second(SystemCodeRegisterEntity pSystemCodeRegisterEntity) { try { using (DBManager pDBManager = new DBManager()) { DataTable pDataTable = new SystemCodeRegisterProvider(pDBManager).SystemCode_Info_Second(pSystemCodeRegisterEntity); return(pDataTable); } } catch (ExceptionManager pExceptionManager) { throw pExceptionManager; } catch (Exception pException) { throw new ExceptionManager(this, "SystemCode_Info_Second(SystemCodeRegisterEntity pSystemCodeRegisterEntity)", pException); } }
public bool SystemCode_Info_Save(SystemCodeRegisterEntity pSystemCodeRegisterEntity, DataTable dtFirst, DataTable dtSecond, DataTable dtThird) { try { DataTable dtTemp = null; DataTable dtWork = null; bool isChack = false; for (int a = 0; a < 3; a++) { switch (a) { case 0: isChack = false; isChack = CoFAS_ConvertManager.DataTable_FindCount(dtFirst, "CRUD IN ('C','U','D')", ""); if (isChack) { dtTemp = CoFAS_ConvertManager.DataTable_FindValue(dtFirst, "CRUD IN ('C','U','D')", ""); // 신규 and 수정 항목 데이터 테이블 화 } break; case 1: isChack = false; isChack = CoFAS_ConvertManager.DataTable_FindCount(dtSecond, "CRUD IN ('C','U','D')", ""); if (isChack) { dtTemp = CoFAS_ConvertManager.DataTable_FindValue(dtSecond, "CRUD IN ('C','U','D')", ""); // 신규 and 수정 항목 데이터 테이블 화 } break; case 2: isChack = false; isChack = CoFAS_ConvertManager.DataTable_FindCount(dtThird, "CRUD IN ('C','U','D')", ""); if (isChack) { dtTemp = CoFAS_ConvertManager.DataTable_FindValue(dtThird, "CRUD IN ('C','U','D')", ""); // 신규 and 수정 항목 데이터 테이블 화 } break; } } using (DBManager pDBManager = new DBManager()) { bool isReturn = new SystemCodeRegisterProvider(pDBManager).SystemCode_Info_Save(pSystemCodeRegisterEntity, dtTemp); return(isReturn); } } catch (ExceptionManager pExceptionManager) { throw pExceptionManager; } catch (Exception pException) { throw new ExceptionManager(this, "SystemCode_Info_Save(SystemCodeRegisterEntity pSystemCodeRegisterEntity, DataTable dtFirst, DataTable dtSecond, DataTable dtThird)", pException); } }