Beispiel #1
0
        /// <summary>
        /// 언어 정보 저장
        /// </summary>
        public bool Grid_Info_Save(GridInfoRegisterEntity pGridInfoRegisterEntity, DataTable dt)
        {
            try
            {
                DataTable dtTemp   = new DataTable();
                bool      isReturn = true;
                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 수정 항목 데이터 테이블 화
                }

                if ((pGridInfoRegisterEntity.CRUD == "C" || pGridInfoRegisterEntity.CRUD == "U") || dtTemp.Rows.Count > 0)
                {
                    using (DBManager pDBManager = new DBManager())
                    {
                        isReturn = new GridInfoRegisterProvider(pDBManager).Grid_Info_Save(pGridInfoRegisterEntity, dtTemp);
                        return(isReturn);
                    }
                }
                else
                {
                    return(isReturn);
                }
            }
            catch (ExceptionManager pExceptionManager)
            {
                throw pExceptionManager;
            }
            catch (Exception pException)
            {
                throw new ExceptionManager(this, "Grid_Info_Save(GridInfoRegisterEntity pGridInfoRegisterEntity, DataTable dt)", pException);
            }
        }
Beispiel #2
0
 /// <summary>
 /// 언어 정보 조회
 /// </summary>
 public DataTable Grid_Info_Sub(GridInfoRegisterEntity pGridInfoRegisterEntity)
 {
     try
     {
         using (DBManager pDBManager = new DBManager())
         {
             DataTable pDataTable = new GridInfoRegisterProvider(pDBManager).Grid_Info_Sub(pGridInfoRegisterEntity);
             return(pDataTable);
         }
     }
     catch (ExceptionManager pExceptionManager)
     {
         throw pExceptionManager;
     }
     catch (Exception pException)
     {
         throw new ExceptionManager(this, "Grid_Info_Sub(GridInfoRegisterEntity pGridInfoRegisterEntity)", pException);
     }
 }