示例#1
0
        /// <summary>
        /// 언어 정보 저장
        /// </summary>
        public bool MonitoringDesigner_Info_Save(MonitoringDesignerEntity pMonitoringDesignerEntity, 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 MonitoringDesignerProvider(pDBManager).MonitoringDesigner_Info_Save(pMonitoringDesignerEntity, 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>
 public object Templete_Download(MonitoringDesignerEntity pMonitoringDesignerEntity, string pMENU_NO, string pDSP_SORT)
 {
     try
     {
         using (DBManager pDBManager = new DBManager())
         {
             object pObject = new MonitoringDesignerProvider(pDBManager).Templete_Download(pMonitoringDesignerEntity, pMENU_NO, pDSP_SORT);
             return(pObject);
         }
     }
     catch (ExceptionManager pExceptionManager)
     {
         throw pExceptionManager;
     }
     catch (Exception pException)
     {
         throw new ExceptionManager(this, "Templete_Download(MonitoringDesignerEntity pMonitoringDesignerEntity, string pMENU_NO, string pDSP_SORT)", pException);
     }
 }
示例#3
0
 /// <summary>
 /// 언어 정보 조회
 /// </summary>
 public DataTable MonitoringDesigner_Info_Filename(MonitoringDesignerEntity pMonitoringDesignerEntity)
 {
     try
     {
         using (DBManager pDBManager = new DBManager())
         {
             DataTable pDataTable = new MonitoringDesignerProvider(pDBManager).MonitoringDesigner_Info_Filename(pMonitoringDesignerEntity);
             return(pDataTable);
         }
     }
     catch (ExceptionManager pExceptionManager)
     {
         throw pExceptionManager;
     }
     catch (Exception pException)
     {
         throw new ExceptionManager(this, "MonitoringDesigner_Info_Filename(MonitoringDesignerEntity pMonitoringDesignerEntity)", pException);
     }
 }
示例#4
0
 /// <summary>
 /// 언어 정보 조회
 /// </summary>
 public DataTable MonitoringDesigner_Info_Sub(MonitoringDesignerEntity pMonitoringDesignerEntity)
 {
     try
     {
         using (DBManager pDBManager = new DBManager())
         {
             DataTable pDataTable = new MonitoringDesignerProvider(pDBManager).MonitoringDesigner_Info_Mst(pMonitoringDesignerEntity);
             return(pDataTable);
         }
     }
     catch (ExceptionManager pExceptionManager)
     {
         throw pExceptionManager;
     }
     catch (Exception pException)
     {
         throw new ExceptionManager(this, "Sample_Info_Sub(SampleRegisterEntity pSampleRegisterEntity))", pException);
     }
 }
        // 초기화 처리 영역
        #region ○ 메뉴 초기화 하기 - InitializeSetting()

        private void InitializeSetting()
        {
            try
            {
                //상속 화면 패널 사용 유무
                _pnHeader.Visible  = false;
                _pnContent.Visible = true;
                _pnLeft.Visible    = false;
                _pnLeft.Width      = 250;

                //메인 화면 전역 변수 처리
                _pCORP_CODE     = MainForm.UserEntity.CORP_CODE;
                _pUSER_CODE     = MainForm.UserEntity.USER_CODE;
                _pUSER_NAME     = MainForm.UserEntity.USER_NAME;
                _pLANGUAGE_TYPE = MainForm.UserEntity.LANGUAGE_TYPE;
                _pFONT_TYPE     = MainForm.UserEntity.FONT_TYPE;
                _pFONT_SIZE     = MainForm.UserEntity.FONT_SIZE;
                _pFONT_SETTING  = new Font(_pFONT_TYPE, _pFONT_SIZE);
                _pFTP_ID        = MainForm.UserEntity.FTP_ID;
                _pFTP_IP_PORT   = MainForm.UserEntity.FTP_IP_PORT; //string.Format(@"{0}/{1}/", MainForm.UserEntity.FTP_IP_PORT, "test"); //화면 별 해당 위치 지정
                _pFTP_PW        = MainForm.UserEntity.FTP_PW;


                //메인 화면 공통 메세지 처리
                _pMSG_SEARCH           = MainForm.MessageEntity.MSG_SEARCH;
                _pMSG_SEARCH_EMPT      = MainForm.MessageEntity.MSG_SEARCH_EMPT;
                _pMSG_SAVE_QUESTION    = MainForm.MessageEntity.MSG_SAVE_QUESTION;
                _pMSG_SAVE             = MainForm.MessageEntity.MSG_SAVE;
                _pMSG_SAVE_ERROR       = MainForm.MessageEntity.MSG_SAVE_ERROR;
                _pMSG_DELETE_QUESTION  = MainForm.MessageEntity.MSG_DELETE_QUESTION;
                _pMSG_DELETE           = MainForm.MessageEntity.MSG_DELETE;
                _pMSG_DELETE_ERROR     = MainForm.MessageEntity.MSG_DELETE_ERROR;
                _pMSG_DELETE_COMPLETE  = MainForm.MessageEntity.MSG_DELETE_COMPLETE;
                _pMSG_INPUT_DATA       = MainForm.MessageEntity.MSG_INPUT_DATA;
                _pMSG_INPUT_DATA_ERROR = MainForm.MessageEntity.MSG_INPUT_DATA_ERROR;
                _pMSG_WORKING          = MainForm.MessageEntity.MSG_WORKING;
                _pMSG_RESET_QUESTION   = MainForm.MessageEntity.MSG_RESET_QUESTION;
                _pMSG_EXIT_QUESTION    = MainForm.MessageEntity.MSG_EXIT_QUESTION;
                _pMSG_SELECT           = MainForm.MessageEntity.MSG_SELECT;
                //추가
                _pMSG_PLZ_CONNECT_FTP           = MainForm.MessageEntity.MSG_PLZ_CONNECT_FTP;
                _pMSG_AGAIN_INPUT_DATA          = MainForm.MessageEntity.MSG_AGAIN_INPUT_DATA;
                _pMSG_DOWNLOAD_COMPLETE         = MainForm.MessageEntity.MSG_DOWNLOAD_COMPLETE;
                _pMSG_SEARCH_EMPT_DETAIL        = MainForm.MessageEntity.MSG_SEARCH_EMPT_DETAIL;
                _pMSG_SPLITQTY_LARGE_MORE       = MainForm.MessageEntity.MSG_SPLITQTY_LARGE_MORE;
                _pMSG_DELETE_ERROR_NO_DATA      = MainForm.MessageEntity.MSG_DELETE_ERROR_NO_DATA;
                _pMSG_ORDERQTY_LARGE_THAN_0     = MainForm.MessageEntity.MSG_ORDERQTY_LARGE_THAN_0;
                _pMSG_PLAN_LARGE_THAN_ORDER     = MainForm.MessageEntity.MSG_PLAN_LARGE_THAN_ORDER;
                _pMSG_DELETE_ERROR_CONNECT_FTP  = MainForm.MessageEntity.MSG_DELETE_ERROR_CONNECT_FTP;
                _pMSG_INPUT_LESS_THAN_NOTOUTQTY = MainForm.MessageEntity.MSG_INPUT_LESS_THAN_NOTOUTQTY;
                _pMSG_LOAD_DATA                    = MainForm.MessageEntity.MSG_LOAD_DATA;
                _pMSG_NEW_REG_GUBN                 = MainForm.MessageEntity.MSG_NEW_REG_GUBN;
                _pMSG_INPUT_NUMERIC                = MainForm.MessageEntity.MSG_INPUT_NUMERIC;
                _pMSG_NO_SELETED_ITEM              = MainForm.MessageEntity.MSG_NO_SELETED_ITEM;
                _pMSG_EXIST_COMPANY_ID             = MainForm.MessageEntity.MSG_EXIST_COMPANY_ID;
                _pMSG_NOT_DELETE_DATA_IN           = MainForm.MessageEntity.MSG_NOT_DELETE_DATA_IN;
                _pMSG_NOT_MODIFY_DATA_IN           = MainForm.MessageEntity.MSG_NOT_MODIFY_DATA_IN;
                _pMSG_SELECT_NEWREG_SAVE           = MainForm.MessageEntity.MSG_SELECT_NEWREG_SAVE;
                _pMSG_INPUT_LARGER_THAN_0          = MainForm.MessageEntity.MSG_INPUT_LARGER_THAN_0;
                _pMSG_NOT_DELETE_DATA_OUT          = MainForm.MessageEntity.MSG_NOT_DELETE_DATA_OUT;
                _pMSG_NOT_MODIFY_DATA_OUT          = MainForm.MessageEntity.MSG_NOT_MODIFY_DATA_OUT;
                _pMSG_CANCLE_NEWREG_MODIFY         = MainForm.MessageEntity.MSG_CANCLE_NEWREG_MODIFY;
                _pMSG_NO_SELETED_ITEM_OR_NO_SAVE   = MainForm.MessageEntity.MSG_NO_SELETED_ITEM_OR_NO_SAVE;
                _pMSG_NO_INPUT_LAGER_THAN_NOTINQTY = MainForm.MessageEntity.MSG_NO_INPUT_LAGER_THAN_NOTINQTY;
                _pMSG_REG_DATA                 = MainForm.MessageEntity.MSG_REG_DATA;
                _pMSG_ADD_FAVORITE_ITEM        = MainForm.MessageEntity.MSG_ADD_FAVORITE_ITEM;
                _pMSG_CHECK_SEARCH_DATE        = MainForm.MessageEntity.MSG_CHECK_SEARCH_DATE;
                _pMSG_NOT_DISPLAY_ERROR        = MainForm.MessageEntity.MSG_NOT_DISPLAY_ERROR;
                _pMSG_NO_EXIST_INPUT_DATA      = MainForm.MessageEntity.MSG_NO_EXIST_INPUT_DATA;
                _pMSG_NOT_DISPLAY_NOT_SAVE     = MainForm.MessageEntity.MSG_NOT_DISPLAY_NOT_SAVE;
                _pMSG_CHECK_VALID_ITEM         = MainForm.MessageEntity.MSG_CHECK_VALID_ITEM;
                _pMSG_DELETE_FAVORITE_ITEM     = MainForm.MessageEntity.MSG_DELETE_FAVORITE_ITEM;
                _pMSG_NOT_EXIST_PRINTING_EXCEL = MainForm.MessageEntity.MSG_NOT_EXIST_PRINTING_EXCEL;
                _pMSG_SELECT_DOWNLOAD_TEMPLETE = MainForm.MessageEntity.MSG_SELECT_DOWNLOAD_TEMPLETE;
                _pMSG_RESET_COMPLETE           = MainForm.MessageEntity.MSG_RESET_COMPLETE;


                _pWINDOW_NAME = this.Name;

                //메뉴 화면 엔티티 설정
                _pMonitoringDesignerEntity               = new MonitoringDesignerEntity();
                _pMonitoringDesignerEntity.USER_CODE     = _pUSER_CODE;
                _pMonitoringDesignerEntity.WINDOW_NAME   = _pWINDOW_NAME;
                _pMonitoringDesignerEntity.LANGUAGE_TYPE = _pLANGUAGE_TYPE;

                //화면 설정 언어 & 명칭 변경.
                DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE);

                if (dtLanguage != null && dtLanguage.Rows.Count > 0)
                {
                    CoFAS_ControlManager.Language_Info(dtLanguage, this);
                }

                //그리드 설정
                InitializeGrid();

                //화면 컨트롤러 설정
                InitializeControl();

                //그리드 초기화

                //여러 그리드 사용시 마스터 그리드는 최초 실행 시에만 초기화
                _pMonitoringDesignerEntity.CRUD = "";
                if (_pFirstYN)
                {
                    _pFirstYN = false;
                }

                Dashboard_DisplayData();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }