Пример #1
0
        /// <summary>
        /// 언어 정보 저장
        /// </summary>
        public bool Sample_Info_Save(SampleRegisterEntity pSampleRegisterEntity, DataTable dt)
        {
            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 수정 항목 데이터 테이블 화
                }

                using (DBManager pDBManager = new DBManager())
                {
                    bool isReturn = new SampleRegisterProvider(pDBManager).Sample_Info_Save(pSampleRegisterEntity, dtTemp);
                    return(isReturn);
                }
            }
            catch (ExceptionManager pExceptionManager)
            {
                throw pExceptionManager;
            }
            catch (Exception pException)
            {
                throw new ExceptionManager(this, "Sample_Info_Save(SampleRegisterEntity pSampleRegisterEntity, DataTable dt)", pException);
            }
        }
Пример #2
0
 /// <summary>
 /// 개체 구하기
 /// </summary>
 /// <param name="pDataRow">데이타 로우</param>
 /// <returns>메뉴 설정 개체</returns>
 public SampleRegisterEntity GetEntity(DataRow pDataRow)
 {
     try
     {
         SampleRegisterEntity pSampleRegisterEntity = new SampleRegisterProvider(null).GetEntity(pDataRow);
         return(pSampleRegisterEntity);
     }
     catch (Exception pException)
     {
         throw new ExceptionManager
               (
                   this,
                   "GetEntity(pDataRow)",
                   pException
               );
     }
 }
Пример #3
0
 /// <summary>
 /// 언어 정보 조회
 /// </summary>
 public DataTable Sample_Info_Sub(SampleRegisterEntity pSampleRegisterEntity)
 {
     try
     {
         using (DBManager pDBManager = new DBManager())
         {
             DataTable pDataTable = new SampleRegisterProvider(pDBManager).Sample_Info_Mst(pSampleRegisterEntity);
             return(pDataTable);
         }
     }
     catch (ExceptionManager pExceptionManager)
     {
         throw pExceptionManager;
     }
     catch (Exception pException)
     {
         throw new ExceptionManager(this, "Sample_Info_Sub(SampleRegisterEntity pSampleRegisterEntity))", pException);
     }
 }
Пример #4
0
 /// <summary>
 /// 언어 정보 조회
 /// </summary>
 public object Templete_Download(SampleRegisterEntity pSampleRegisterEntity, string pMENU_NO, string pDSP_SORT)
 {
     try
     {
         using (DBManager pDBManager = new DBManager())
         {
             object pObject = new SampleRegisterProvider(pDBManager).Templete_Download(pSampleRegisterEntity, pMENU_NO, pDSP_SORT);
             return(pObject);
         }
     }
     catch (ExceptionManager pExceptionManager)
     {
         throw pExceptionManager;
     }
     catch (Exception pException)
     {
         throw new ExceptionManager(this, "MenuRegister_Templete_Download(pMENU_NO, pDSP_SORT, pCUR_FILE)", pException);
     }
 }