private void positionReply(ComboBox cbo, UserControl gui) { gui.CreateControl(); this.Controls.Add(gui); Point location = cbo.Location; location.X += cbo.Size.Width + 2; gui.Location = location; }
private void setPageAttributes(UserControl page) { page.BackColor = Color.Transparent; page.Dock = DockStyle.Fill; // https://www.codeproject.com/Questions/549373/InvokeplusorplusBeginInvokepluscannotplusbepluscal if (!page.IsHandleCreated) { page.CreateControl(); } }
public frmCommonPopup(string strFindControl) { InitializeComponent(); _pFindControl = strFindControl; _pWINDOW_NAME = this.Name.ToString(); InitializeSetting(); switch (_pFindControl) { case "ucEquipmentDocumentListPopup": // 설비 서류등록 // _btPOPUP_SELECT.Enabled = false; //userControl 별 복수 로우 선택 데이터 리던시 사용으로 변경 //user Control 생성시 고정 == ucEquipmentDocumentListPopup.CORP_CDDE = _pCORP_CODE; ucEquipmentDocumentListPopup.USER_CODE = _pUSER_CODE; ucEquipmentDocumentListPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucEquipmentDocumentListPopup.FONT_TYPE = fntPARENT_FONT; ucEquipmentDocumentListPopup.ARRAY = _pARRAY; ucEquipmentDocumentListPopup.ARRAY_CODE = _pARRAY_CODE; ucEquipmentDocumentListPopup.FTP_ID = _pFTP_ID; ucEquipmentDocumentListPopup.FTP_PATH = _pFTP_PATH; ucEquipmentDocumentListPopup.FTP_PW = _pFTP_PW; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = "ucEquipmentDocumentListPopup"; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucEquipmentDocumentListPopup(); // ucWorkOrderInfoPopup_T01._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucEquipmentDocumentListPopup._Close_Click += ucCommonCodePopup_Close_OnClick; //user Control 생성시 고정 == this.Width = _uc.Width+150; this.Height = _uc.Height + 75; break; } _uc.CreateControl(); _pnSINGLE_MAIN.Controls.Add(_uc); _uc.Dock = DockStyle.Fill; }
public frmCommonPopup(string strFindControl) { InitializeComponent(); _pFindControl = strFindControl; _pWINDOW_NAME = this.Name.ToString(); Child_WindowName = ""; Child_User_Code = _pUSER_CODE; Child_Language_Type = _pLANGUAGE_TYPE; Child_Font_Setting = fntPARENT_FONT; InitializeSetting(); switch (_pFindControl) { case "ucUserAuthorityCopy": //user Control 생성시 고정 == Child_WindowName = "ucUserAuthorityCopy"; ucUserAuthorityCopy.CORP_CDDE = _pCORP_CODE; ucUserAuthorityCopy.USER_CODE = _pUSER_CODE; ucUserAuthorityCopy.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucUserAuthorityCopy.FONT_TYPE = fntPARENT_FONT; ucUserAuthorityCopy.ARRAY = _pARRAY; ucUserAuthorityCopy.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucUserAuthorityCopy(); // ucUserAuthorityCopy._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucUserAuthorityCopy._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; } _uc.CreateControl(); _pnSINGLE_MAIN.Controls.Add(_uc); _uc.Dock = DockStyle.Fill; }
/// <summary> /// Realiza la navegación al siguiente Panel T, transmitiéndole información /// para su inicialización. /// </summary> /// <typeparam name="T">Tipo del Panel.</typeparam> /// <param name="data">Información a enviar al Panel durante su inicialización.</param> /// <returns>Devuelve la instancia del nuevo Panel, ya inicializado.</returns> public T NextPanel <T>() where T : UserControl { // Revisar si es necesaio un Invoke. if (InvokeRequired) { return((T)Invoke( new Func <UserControl>(() => NextPanel <T>()) )); } UserControl nextPanel = null; UserControl currentPanel = null; var initializePanel = false; var hidePreviousButton = false; if (m_currentPanelNode == null || m_currentPanelNode.Value == null) { // Insertar el nuevo Panel como primer elemento de la lista. nextPanel = Activator.CreateInstance <T>() as UserControl; m_currentPanelNode = m_panelHistory.AddFirst(nextPanel); initializePanel = true; hidePreviousButton = true; } else { currentPanel = m_currentPanelNode.Value; if (m_currentPanelNode.Next == null || m_currentPanelNode.Next.Value == null || !(m_currentPanelNode.Next.Value is T)) { // Insertar el nuevo Panel como el siguiente del Panel actual. nextPanel = Activator.CreateInstance <T>() as UserControl; m_currentPanelNode = m_panelHistory.AddAfter(m_currentPanelNode, nextPanel); initializePanel = true; } else { // Navegar al siguiente Panel que ya se encuentra en memoria. m_currentPanelNode = m_currentPanelNode.Next; nextPanel = m_currentPanelNode.Value; } } Trace.WriteLine("Panel switch [>] " + nextPanel.ToString()); // Mostrar u ocultar el botón Atrás según sea necesario. if (nextPanel is Panels.IPanelNoBackButton || hidePreviousButton) { BackButton.Hide(); } else { BackButton.Show(); } // Preparar las animaciones de los Paneles. nextPanel.Parent = MainPanel; nextPanel.Top = 0; nextPanel.Left = nextPanel.Width + 30; nextPanel.Enabled = true; nextPanel.CreateControl(); nextPanel.Show(); nextPanel.BringToFront(); var animateNext = new EventHandler((Object s1, EventArgs e1) => { MainPanel.StopAnimation("Height", "Width"); if (nextPanel.Width != MainPanel.Width) { MainPanel.AnimateProperty <Animation.EaseInOutBack>("Width", nextPanel.Width); } MainPanel.AnimateProperty <Animation.EaseInOutBack>("Height", nextPanel.Height).AnimationFinished += (Object s2, EventArgs e2) => { nextPanel.AnimateProperty <Animation.EaseInOutElastic>("Left", 0).AnimationFinished += (Object s3, EventArgs e3) => { // Inicializar el siguiente Panel si es necesario. if (initializePanel) { nextPanel.SizeChanged += Panel_SizeChanged; } if (initializePanel && nextPanel is Panels.IPanelInitialize) { (nextPanel as Panels.IPanelInitialize).Initialize(); } // Ejecutar el evento de navegación en el Panel anterior. if (currentPanel is Panels.IPanelNextEvent) { (currentPanel as Panels.IPanelNextEvent).OnNextPanelNavigation(); } }; }; }); if (currentPanel == null) { animateNext(null, null); } else { var animator = currentPanel.GetCurrentAnimator("Left"); currentPanel.Enabled = false; nextPanel.Left = (currentPanel.Left > 0 ? CurrentPanel.Left : 0) + currentPanel.Width + 30; if (animator == null) { animator = currentPanel.AnimateProperty <Animation.EaseInOutElastic>("Left", -currentPanel.Width); animator.AnimationFinished += animateNext; } else { animator.AnimationFinished += (Object s2, EventArgs e2) => currentPanel.AnimateProperty <Animation.EaseInOutElastic>("Left", -currentPanel.Width).AnimationFinished += animateNext; } } return((T)nextPanel); }
/// <summary> /// Realiza la navegación al Panel anterior. /// </summary> /// <returns>Devuelve la instancia del Panel anterior.</returns> public UserControl PreviousPanel() { // Revisar si es necesaio un Invoke. if (InvokeRequired) { return((UserControl)Invoke( new Func <UserControl>(() => PreviousPanel()) )); } if (m_currentPanelNode == null || m_currentPanelNode.Value == null) { throw new InvalidOperationException("There is exactly NO f*****g panels in history."); } if (m_currentPanelNode.Previous == null || m_currentPanelNode.Previous.Value == null) { throw new InvalidOperationException("There is no panel to go back to."); } UserControl currentPanel = m_currentPanelNode.Value; UserControl previousPanel = m_currentPanelNode.Previous.Value; m_currentPanelNode = m_currentPanelNode.Previous; Trace.WriteLine("Panel switch [<] " + previousPanel.ToString()); // Mostrar u ocultar el botón Atrás según sea necesario. if (previousPanel is Panels.IPanelNoBackButton || m_currentPanelNode.Previous == null) { BackButton.Hide(); } else { BackButton.Show(); } // Preparar las animaciones de los Paneles. previousPanel.Left = -previousPanel.Width; previousPanel.Enabled = true; previousPanel.CreateControl(); previousPanel.Show(); previousPanel.BringToFront(); currentPanel.Enabled = false; var animateNext = new EventHandler((Object s1, EventArgs e1) => { MainPanel.StopAnimation("Height", "Width"); MainPanel.AnimateProperty <Animation.EaseInOutBack>("Width", previousPanel.Width); MainPanel.AnimateProperty <Animation.EaseInOutBack>("Height", previousPanel.Height).AnimationFinished += (Object s2, EventArgs e2) => { previousPanel.AnimateProperty <Animation.EaseInOutElastic>("Left", 0).AnimationFinished += (Object s3, EventArgs e3) => { // Ejecutar el evento de navegación en el Panel anterior. if (currentPanel is Panels.IPanelPreviousEvent) { (currentPanel as Panels.IPanelPreviousEvent).OnPreviousPanelNavigation(); } }; }; }); var animator = currentPanel.GetCurrentAnimator("Left"); var currentPanelOffset = (currentPanel.Width > previousPanel.Width ? currentPanel.Width : previousPanel.Width) + 30; if (animator == null) { animator = currentPanel.AnimateProperty <Animation.EaseInOutElastic>("Left", currentPanelOffset); animator.AnimationFinished += animateNext; } else { animator.AnimationFinished += (Object s2, EventArgs e2) => currentPanel.AnimateProperty <Animation.EaseInOutElastic>("Left", currentPanelOffset).AnimationFinished += animateNext; } return(previousPanel); }
public frmCommonPopup(string strFindControl) { InitializeComponent(); _pFindControl = strFindControl; _pWINDOW_NAME = this.Name.ToString(); Child_WindowName = ""; Child_User_Code = _pUSER_CODE; Child_Language_Type = _pLANGUAGE_TYPE; Child_Font_Setting = fntPARENT_FONT; InitializeSetting(); switch (_pFindControl) { case "PartProcessMapping": // 파트 별 프로세스 맵핑 //user Control 생성시 고정 == Child_WindowName = "ucPartProcessMapping_Popup"; ucPartProcessMapping_Popup.CORP_CDDE = _pCORP_CODE; ucPartProcessMapping_Popup.USER_CODE = _pUSER_CODE; ucPartProcessMapping_Popup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucPartProcessMapping_Popup.FONT_TYPE = fntPARENT_FONT; ucPartProcessMapping_Popup.ARRAY = _pARRAY; ucPartProcessMapping_Popup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucPartProcessMapping_Popup(); // ucWorkOrderInfoPopup_T01._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucPartProcessMapping_Popup._Close_Click += ucCommonCodePopup_Close_OnClick; //user Control 생성시 고정 == this.Width = _uc.Width; this.Height = _uc.Height + 75; break; case "PartProcessMapping_T01": // 파트 별 프로세스 맵핑 //user Control 생성시 고정 == Child_WindowName = "ucPartProcessMapping_Popup_T01"; ucPartProcessMapping_Popup_T01.CORP_CDDE = _pCORP_CODE; ucPartProcessMapping_Popup_T01.USER_CODE = _pUSER_CODE; ucPartProcessMapping_Popup_T01.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucPartProcessMapping_Popup_T01.FONT_TYPE = fntPARENT_FONT; ucPartProcessMapping_Popup_T01.ARRAY = _pARRAY; ucPartProcessMapping_Popup_T01.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucPartProcessMapping_Popup_T01(); // ucWorkOrderInfoPopup_T01._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucPartProcessMapping_Popup_T01._Close_Click += ucCommonCodePopup_Close_OnClick; //user Control 생성시 고정 == this.Width = _uc.Width; this.Height = _uc.Height + 75; break; case "TerminalDetailInfo": // 발주 찾기 팝업 // _btPOPUP_SELECT.Enabled = false; //userControl 별 복수 로우 선택 데이터 리던시 사용으로 변경 //user Control 생성시 고정 == Child_WindowName = "ucTerminalDetailInfoPopup"; ucTerminalDetailInfoPopup.CORP_CDDE = _pCORP_CODE; ucTerminalDetailInfoPopup.USER_CODE = _pUSER_CODE; ucTerminalDetailInfoPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucTerminalDetailInfoPopup.FONT_TYPE = fntPARENT_FONT; ucTerminalDetailInfoPopup.ARRAY = _pARRAY; ucTerminalDetailInfoPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucTerminalDetailInfoPopup(); // ucWorkOrderInfoPopup_T01._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucTerminalDetailInfoPopup._Close_Click += ucCommonCodePopup_Close_OnClick; //user Control 생성시 고정 == this.Width = _uc.Width; this.Height = _uc.Height + 75; break; case "ucContractInfoPopup": //user Control 생성시 고정 == Child_WindowName = "ucContractInfoPopup"; ucContractInfoPopup.CORP_CDDE = _pCORP_CODE; ucContractInfoPopup.USER_CODE = _pUSER_CODE; ucContractInfoPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucContractInfoPopup.FONT_TYPE = fntPARENT_FONT; ucContractInfoPopup.ARRAY = _pARRAY; ucContractInfoPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucContractInfoPopup(); ucContractInfoPopup._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucContractInfoPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucProcessDocumentListPopup": //user Control 생성시 고정 == Child_WindowName = "ucProcessDocumentListPopup"; ucProcessDocumentListPopup.CORP_CDDE = _pCORP_CODE; ucProcessDocumentListPopup.USER_CODE = _pUSER_CODE; ucProcessDocumentListPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucProcessDocumentListPopup.FONT_TYPE = fntPARENT_FONT; ucProcessDocumentListPopup.FTP_PATH = _pFTP_PATH; ucProcessDocumentListPopup.FTP_ID = _pFTP_ID; ucProcessDocumentListPopup.FTP_PW = _pFTP_PW; ucProcessDocumentListPopup.ARRAY = _pARRAY; ucProcessDocumentListPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucProcessDocumentListPopup(); //ucMaterialOrderInfoPopup_Request._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucProcessDocumentListPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucToolDocumentListPopup": //user Control 생성시 고정 == Child_WindowName = "ucToolDocumentListPopup"; ucToolDocumentListPopup.CORP_CDDE = _pCORP_CODE; ucToolDocumentListPopup.USER_CODE = _pUSER_CODE; ucToolDocumentListPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucToolDocumentListPopup.FONT_TYPE = fntPARENT_FONT; ucToolDocumentListPopup.FTP_PATH = _pFTP_PATH; ucToolDocumentListPopup.FTP_ID = _pFTP_ID; ucToolDocumentListPopup.FTP_PW = _pFTP_PW; ucToolDocumentListPopup.ARRAY = _pARRAY; ucToolDocumentListPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucToolDocumentListPopup(); //ucMaterialOrderInfoPopup_Request._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucToolDocumentListPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucVendInfoDocumentListPopup": //user Control 생성시 고정 == Child_WindowName = "ucVendInfoDocumentListPopup"; ucVendInfoDocumentListPopup.CORP_CDDE = _pCORP_CODE; ucVendInfoDocumentListPopup.USER_CODE = _pUSER_CODE; ucVendInfoDocumentListPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucVendInfoDocumentListPopup.FONT_TYPE = fntPARENT_FONT; ucVendInfoDocumentListPopup.FTP_PATH = _pFTP_PATH; ucVendInfoDocumentListPopup.FTP_ID = _pFTP_ID; ucVendInfoDocumentListPopup.FTP_PW = _pFTP_PW; ucVendInfoDocumentListPopup.ARRAY = _pARRAY; ucVendInfoDocumentListPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucVendInfoDocumentListPopup(); //ucMaterialOrderInfoPopup_Request._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucVendInfoDocumentListPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucProRoutingDocumentListPopup": //user Control 생성시 고정 == Child_WindowName = "ucProRoutingDocumentListPopup"; ucProRoutingDocumentListPopup.CORP_CDDE = _pCORP_CODE; ucProRoutingDocumentListPopup.USER_CODE = _pUSER_CODE; ucProRoutingDocumentListPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucProRoutingDocumentListPopup.FONT_TYPE = fntPARENT_FONT; ucProRoutingDocumentListPopup.FTP_PATH = _pFTP_PATH; ucProRoutingDocumentListPopup.FTP_ID = _pFTP_ID; ucProRoutingDocumentListPopup.FTP_PW = _pFTP_PW; ucProRoutingDocumentListPopup.ARRAY = _pARRAY; ucProRoutingDocumentListPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucProRoutingDocumentListPopup(); //ucMaterialOrderInfoPopup_Request._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucProRoutingDocumentListPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucWorkOrderDocRegPopup": //제조/포장 지시서 팝업 // _btPOPUP_SELECT.Enabled = false; //userControl 별 복수 로우 선택 데이터 리던시 사용으로 변경 //user Control 생성시 고정 == Child_WindowName = "ucWorkOrderDocRegPopup"; ucWorkOrderDocRegPopup.CORP_CDDE = _pCORP_CODE; ucWorkOrderDocRegPopup.USER_CODE = _pUSER_CODE; ucWorkOrderDocRegPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucWorkOrderDocRegPopup.FONT_TYPE = fntPARENT_FONT; ucWorkOrderDocRegPopup.WorkResultRegister_T01Entity = _pWorkResultRegister_T01Entity; ucWorkOrderDocRegPopup.ARRAY = _pARRAY; ucWorkOrderDocRegPopup.ARRAY_CODE = _pARRAY_CODE; ucWorkOrderDocRegPopup.FTP_ID = _pFTP_ID; ucWorkOrderDocRegPopup.FTP_IP_PORT = _pFTP_IP_PORT; ucWorkOrderDocRegPopup.FTP_PATH = _pFTP_PATH; ucWorkOrderDocRegPopup.FTP_PW = _pFTP_PW; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucWorkOrderDocRegPopup(); // ucWorkOrderDocRegPopup._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucWorkOrderDocRegPopup._Close_Click += ucCommonCodePopup_Close_OnClick; //user Control 생성시 고정 == this.Width = _uc.Width + 500; this.Height = _uc.Height + 300; break; } _uc.CreateControl(); _pnSINGLE_MAIN.Controls.Add(_uc); _uc.Dock = DockStyle.Fill; }
public frmCommonPopup(string strFindControl) { InitializeComponent(); _pFindControl = strFindControl; _pWINDOW_NAME = this.Name.ToString(); Child_WindowName = ""; Child_User_Code = _pUSER_CODE; Child_Language_Type = _pLANGUAGE_TYPE; Child_Font_Setting = fntPARENT_FONT; InitializeSetting(); switch (_pFindControl) { case "ucProductionPartListPopup": //user Control 생성시 고정 == Child_WindowName = "ucProductionPartListPopup"; ucProductionPartListPopup.CORP_CDDE = _pCORP_CODE; ucProductionPartListPopup.USER_CODE = _pUSER_CODE; ucProductionPartListPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucProductionPartListPopup.FONT_TYPE = fntPARENT_FONT; ucProductionPartListPopup.ARRAY = _pARRAY; ucProductionPartListPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucProductionPartListPopup(); ucProductionPartListPopup._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucProductionPartListPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucContractInfoPopup": //user Control 생성시 고정 == Child_WindowName = "ucContractInfoPopup"; ucContractInfoPopup.CORP_CDDE = _pCORP_CODE; ucContractInfoPopup.USER_CODE = _pUSER_CODE; ucContractInfoPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucContractInfoPopup.FONT_TYPE = fntPARENT_FONT; ucContractInfoPopup.ARRAY = _pARRAY; ucContractInfoPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucContractInfoPopup(); ucContractInfoPopup._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucContractInfoPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucVendCostInfoPopup": //user Control 생성시 고정 == Child_WindowName = "ucVendCostInfoListPopup"; ucVendCostInfoListPopup.CORP_CDDE = _pCORP_CODE; ucVendCostInfoListPopup.USER_CODE = _pUSER_CODE; ucVendCostInfoListPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucVendCostInfoListPopup.FONT_TYPE = fntPARENT_FONT; ucVendCostInfoListPopup.ARRAY = _pARRAY; ucVendCostInfoListPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucVendCostInfoListPopup(); //ucProductOrderInfoPopup_Request._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucVendCostInfoListPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucPartDocumentListPopup": //user Control 생성시 고정 == Child_WindowName = "ucPartDocumentListPopup"; ucPartDocumentListPopup.CORP_CDDE = _pCORP_CODE; ucPartDocumentListPopup.USER_CODE = _pUSER_CODE; ucPartDocumentListPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucPartDocumentListPopup.FONT_TYPE = fntPARENT_FONT; ucPartDocumentListPopup.FTP_PATH = _pFTP_PATH; ucPartDocumentListPopup.FTP_ID = _pFTP_ID; ucPartDocumentListPopup.FTP_PW = _pFTP_PW; ucPartDocumentListPopup.ARRAY = _pARRAY; ucPartDocumentListPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucPartDocumentListPopup(); //ucProductOrderInfoPopup_Request._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucPartDocumentListPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucPartDocumentListPopup_T01": //user Control 생성시 고정 == Child_WindowName = "ucPartDocumentListPopup_T01"; ucPartDocumentListPopup_T01.CORP_CDDE = _pCORP_CODE; ucPartDocumentListPopup_T01.USER_CODE = _pUSER_CODE; ucPartDocumentListPopup_T01.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucPartDocumentListPopup_T01.FONT_TYPE = fntPARENT_FONT; ucPartDocumentListPopup_T01.FTP_PATH = _pFTP_PATH; ucPartDocumentListPopup_T01.FTP_ID = _pFTP_ID; ucPartDocumentListPopup_T01.FTP_PW = _pFTP_PW; ucPartDocumentListPopup_T01.ARRAY = _pARRAY; ucPartDocumentListPopup_T01.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucPartDocumentListPopup_T01(); //ucProductOrderInfoPopup_Request._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucPartDocumentListPopup_T01._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ProductOrder": // 발주 찾기 팝업 // _btPOPUP_SELECT.Enabled = false; //userControl 별 복수 로우 선택 데이터 리던시 사용으로 변경 //user Control 생성시 고정 == Child_WindowName = "ucProductOrderInfoPopup"; ucProductOrderInfoPopup.CORP_CDDE = _pCORP_CODE; ucProductOrderInfoPopup.USER_CODE = _pUSER_CODE; ucProductOrderInfoPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucProductOrderInfoPopup.FONT_TYPE = fntPARENT_FONT; ucProductOrderInfoPopup.ARRAY = _pARRAY; ucProductOrderInfoPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucProductOrderInfoPopup(); ucProductOrderInfoPopup._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucProductOrderInfoPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 300; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; //제품출고용 수주찾기팝업 case "ProductionInfo_Out_Popup": Child_WindowName = "ucProductionOrderInfoPopup_T06"; ucProductionOrderInfoPopup_T06.CORP_CDDE = _pCORP_CODE; ucProductionOrderInfoPopup_T06.USER_CODE = _pUSER_CODE; ucProductionOrderInfoPopup_T06.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucProductionOrderInfoPopup_T06.FONT_TYPE = fntPARENT_FONT; ucProductionOrderInfoPopup_T06.ARRAY = _pARRAY; ucProductionOrderInfoPopup_T06.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucProductionOrderInfoPopup_T06(); ucProductionOrderInfoPopup_T06._OnDoubleClick += UcProductionOrderInfoPopup_T06__OnDoubleClick; ucProductionOrderInfoPopup_T06._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 420; this.Height = _uc.Height + 75; break; //샘플링입력_HPNC case "InputSamplingReseult": Child_WindowName = "ucInputSamplingResult"; ucInputSamplingResult.CORP_CDDE = _pCORP_CODE; ucInputSamplingResult.USER_CODE = _pUSER_CODE; ucInputSamplingResult.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucInputSamplingResult.FONT_TYPE = fntPARENT_FONT; ucInputSamplingResult.ARRAY = _pARRAY; ucInputSamplingResult.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucInputSamplingResult(_pDataTable); //ucInputSamplingResult._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucInputSamplingResult._Close_Click += ucCommonCodePopup_Close_OnClick; ucInputSamplingResult._Request_Click += ucCommonCodePopup_Request_Click; //user Control 생성시 고정 == this.Width = _uc.Width; this.Height = _uc.Height + 75; break; case "ucLabelPrint": Child_WindowName = "ucLabelPrint"; ucLabelPrint.CORP_CDDE = _pCORP_CODE; ucLabelPrint.USER_CODE = _pUSER_CODE; ucLabelPrint.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucLabelPrint.FONT_TYPE = fntPARENT_FONT; ucLabelPrint.ARRAY = _pARRAY; ucLabelPrint.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucLabelPrint(); //ucInputSamplingResult._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucLabelPrint._Close_Click += ucCommonCodePopup_Close_OnClick; // ucLabelPrint._Request_Click += ucCommonCodePopup_Request_Click; //user Control 생성시 고정 == this.Width = _uc.Width + 15; this.Height = _uc.Height + 45; break; case "ucExcelViewPopup": Child_WindowName = "ucExcelViewPopup"; ucExcelViewPopup.CORP_CDDE = _pCORP_CODE; ucExcelViewPopup.USER_CODE = _pUSER_CODE; ucExcelViewPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucExcelViewPopup.FONT_TYPE = fntPARENT_FONT; ucExcelViewPopup.strFTP_PATH = _strFTP_PATH; ucExcelViewPopup.strFILE_NAME = _strFILE_NAME; ucExcelViewPopup.FTP_ID = _pFTP_ID; ucExcelViewPopup.FTP_PW = _pFTP_PW; ucExcelViewPopup.ARRAY = _pARRAY; ucExcelViewPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucExcelViewPopup(); ucExcelViewPopup._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucExcelViewPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = Screen.PrimaryScreen.Bounds.Width; this.Height = Screen.PrimaryScreen.Bounds.Height; break; //case "PartCodePopup_T01": // //user Control 생성시 고정 == // Child_WindowName = "ucPartCodePopup_T01"; // ucPartCodePopup_T01.CORP_CDDE = _pCORP_CODE; // ucPartCodePopup_T01.USER_CODE = _pUSER_CODE; // ucPartCodePopup_T01.LANGUAGE_TYPE = _pLANGUAGE_TYPE; // ucPartCodePopup_T01.FONT_TYPE = fntPARENT_FONT; // ucPartCodePopup_T01.ARRAY = _pARRAY; // ucPartCodePopup_T01.ARRAY_CODE = _pARRAY_CODE; // //언어설정 창 표시 정보 // PageSetting_WINDOW_NAME = Child_WindowName; // PageSetting_USER_CODE = _pUSER_CODE; // PageSetting_LANGUAGE = _pLANGUAGE_TYPE; // PageSetting_FONT = fntPARENT_FONT; // _uc = new ucPartCodePopup_T01(); // ucPartCodePopup_T01._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; // ucPartCodePopup_T01._Close_Click += ucCommonCodePopup_Close_OnClick; // //user Control 생성시 고정 == // this.Width = _uc.Width; // this.Height = _uc.Height + 75; // break; } _uc.CreateControl(); _pnSINGLE_MAIN.Controls.Add(_uc); _uc.Dock = DockStyle.Fill; }
public frmCommonPopup(string strFindControl) { InitializeComponent(); _pFindControl = strFindControl; _pWINDOW_NAME = this.Name.ToString(); Child_WindowName = ""; Child_User_Code = _pUSER_CODE; Child_Language_Type = _pLANGUAGE_TYPE; Child_Font_Setting = fntPARENT_FONT; InitializeSetting(); switch (_pFindControl) { case "ucMaterialVendCostInfoListPopup": //user Control 생성시 고정 == Child_WindowName = "ucMaterialVendCostInfoListPopup"; ucMaterialVendCostInfoListPopup.CORP_CDDE = _pCORP_CODE; ucMaterialVendCostInfoListPopup.USER_CODE = _pUSER_CODE; ucMaterialVendCostInfoListPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucMaterialVendCostInfoListPopup.FONT_TYPE = fntPARENT_FONT; ucMaterialVendCostInfoListPopup.ARRAY = _pARRAY; ucMaterialVendCostInfoListPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucMaterialVendCostInfoListPopup(); //ucMaterialOrderInfoPopup_Request._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucMaterialVendCostInfoListPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucMaterialContractInfoPopup": //user Control 생성시 고정 == Child_WindowName = "ucMaterialContractinfoPopup"; ucMaterialContractinfoPopup.CORP_CDDE = _pCORP_CODE; ucMaterialContractinfoPopup.USER_CODE = _pUSER_CODE; ucMaterialContractinfoPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucMaterialContractinfoPopup.FONT_TYPE = fntPARENT_FONT; ucMaterialContractinfoPopup.ARRAY = _pARRAY; ucMaterialContractinfoPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucMaterialContractinfoPopup(); ucMaterialContractinfoPopup._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucMaterialContractinfoPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucMaterialPartListPopup": //user Control 생성시 고정 == Child_WindowName = "ucMaterialPartListPopup"; ucMaterialPartListPopup.CORP_CDDE = _pCORP_CODE; ucMaterialPartListPopup.USER_CODE = _pUSER_CODE; ucMaterialPartListPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucMaterialPartListPopup.FONT_TYPE = fntPARENT_FONT; ucMaterialPartListPopup.ARRAY = _pARRAY; ucMaterialPartListPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucMaterialPartListPopup(); ucMaterialPartListPopup._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucMaterialPartListPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucMaterialPartListPopup_T01": //user Control 생성시 고정 == Child_WindowName = "ucMaterialPartListPopup_T01"; ucMaterialPartListPopup_T01.CORP_CDDE = _pCORP_CODE; ucMaterialPartListPopup_T01.USER_CODE = _pUSER_CODE; ucMaterialPartListPopup_T01.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucMaterialPartListPopup_T01.FONT_TYPE = fntPARENT_FONT; ucMaterialPartListPopup_T01.ARRAY = _pARRAY; ucMaterialPartListPopup_T01.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucMaterialPartListPopup_T01(_pDataTable); ucMaterialPartListPopup_T01._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucMaterialPartListPopup_T01._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucPartDocumentListPopup": //user Control 생성시 고정 == Child_WindowName = "ucPartDocumentListPopup"; ucPartDocumentListPopup.CORP_CDDE = _pCORP_CODE; ucPartDocumentListPopup.USER_CODE = _pUSER_CODE; ucPartDocumentListPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucPartDocumentListPopup.FONT_TYPE = fntPARENT_FONT; ucPartDocumentListPopup.FTP_PATH = _pFTP_PATH; ucPartDocumentListPopup.FTP_ID = _pFTP_ID; ucPartDocumentListPopup.FTP_PW = _pFTP_PW; ucPartDocumentListPopup.ARRAY = _pARRAY; ucPartDocumentListPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucPartDocumentListPopup(); //ucMaterialOrderInfoPopup_Request._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucPartDocumentListPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucMaterialPartDocumentListPopup": //user Control 생성시 고정 == Child_WindowName = "ucMaterialPartDocumentListPopup"; ucMaterialPartDocumentListPopup.CORP_CDDE = _pCORP_CODE; ucMaterialPartDocumentListPopup.USER_CODE = _pUSER_CODE; ucMaterialPartDocumentListPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucMaterialPartDocumentListPopup.FONT_TYPE = fntPARENT_FONT; ucMaterialPartDocumentListPopup.FTP_PATH = _pFTP_PATH; ucMaterialPartDocumentListPopup.FTP_ID = _pFTP_ID; ucMaterialPartDocumentListPopup.FTP_PW = _pFTP_PW; ucMaterialPartDocumentListPopup.ARRAY = _pARRAY; ucMaterialPartDocumentListPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucMaterialPartDocumentListPopup(); //ucMaterialOrderInfoPopup_Request._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucMaterialPartDocumentListPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "MaterialOrder_Request": // 발주 찾기 팝업 // _btPOPUP_SELECT.Enabled = false; //userControl 별 복수 로우 선택 데이터 리던시 사용으로 변경 //user Control 생성시 고정 == Child_WindowName = "ucMaterialOrderInfoPopup_Request"; ucMaterialOrderInfoPopup_Request.CORP_CDDE = _pCORP_CODE; ucMaterialOrderInfoPopup_Request.USER_CODE = _pUSER_CODE; ucMaterialOrderInfoPopup_Request.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucMaterialOrderInfoPopup_Request.FONT_TYPE = fntPARENT_FONT; ucMaterialOrderInfoPopup_Request.ARRAY = _pARRAY; ucMaterialOrderInfoPopup_Request.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucMaterialOrderInfoPopup_Request(); ucMaterialOrderInfoPopup_Request._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucMaterialOrderInfoPopup_Request._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "Material_Stock": // 발주 찾기 팝업 // _btPOPUP_SELECT.Enabled = false; //userControl 별 복수 로우 선택 데이터 리던시 사용으로 변경 //user Control 생성시 고정 == Child_WindowName = "ucMaterialStockInfoPopup"; ucMaterialStockInfoPopup.CORP_CDDE = _pCORP_CODE; ucMaterialStockInfoPopup.USER_CODE = _pUSER_CODE; ucMaterialStockInfoPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucMaterialStockInfoPopup.FONT_TYPE = fntPARENT_FONT; ucMaterialStockInfoPopup.ARRAY = _pARRAY; ucMaterialStockInfoPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucMaterialStockInfoPopup(); ucMaterialStockInfoPopup._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucMaterialStockInfoPopup._Close_Click += ucCommonCodePopup_Close_OnClick; //user Control 생성시 고정 == this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; break; case "Material_Stock_T01": Child_WindowName = "ucMaterialStockInfoPopup_T01"; ucMaterialStockInfoPopup_T01.CORP_CDDE = _pCORP_CODE; ucMaterialStockInfoPopup_T01.USER_CODE = _pUSER_CODE; ucMaterialStockInfoPopup_T01.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucMaterialStockInfoPopup_T01.FONT_TYPE = fntPARENT_FONT; ucMaterialStockInfoPopup_T01.ARRAY = _pARRAY; ucMaterialStockInfoPopup_T01.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucMaterialStockInfoPopup_T01(); ucMaterialStockInfoPopup_T01._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucMaterialStockInfoPopup_T01._Close_Click += ucCommonCodePopup_Close_OnClick; //user Control 생성시 고정 == this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; break; case "BOM_SpendQtyCalc": // 발주 찾기 팝업 // _btPOPUP_SELECT.Enabled = false; //userControl 별 복수 로우 선택 데이터 리던시 사용으로 변경 //user Control 생성시 고정 == Child_WindowName = "ucBOM_SpendQtyCalcPop"; ucBOM_SpendQtyCalcPop.CORP_CDDE = _pCORP_CODE; ucBOM_SpendQtyCalcPop.USER_CODE = _pUSER_CODE; ucBOM_SpendQtyCalcPop.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucBOM_SpendQtyCalcPop.FONT_TYPE = fntPARENT_FONT; ucBOM_SpendQtyCalcPop.ARRAY = _pARRAY; ucBOM_SpendQtyCalcPop.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucBOM_SpendQtyCalcPop(); //ucBOM_SpendQtyCalcPop._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucBOM_SpendQtyCalcPop._Close_Click += ucCommonCodePopup_Close_OnClick; //user Control 생성시 고정 == this.Width = _uc.Width + 450; this.Height = _uc.Height + 75; break; //샘플링입력_HPNC case "InputSamplingReseult": Child_WindowName = "ucInputSamplingResult"; ucInputSamplingResult.CORP_CDDE = _pCORP_CODE; ucInputSamplingResult.USER_CODE = _pUSER_CODE; ucInputSamplingResult.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucInputSamplingResult.FONT_TYPE = fntPARENT_FONT; ucInputSamplingResult.ARRAY = _pARRAY; ucInputSamplingResult.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucInputSamplingResult(_pDataTable); //ucInputSamplingResult._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucInputSamplingResult._Close_Click += ucCommonCodePopup_Close_OnClick; ucInputSamplingResult._Request_Click += ucCommonCodePopup_Request_Click; //user Control 생성시 고정 == this.Width = _uc.Width; this.Height = _uc.Height + 75; break; case "ucPartDocumentListPopup_T02": //user Control 생성시 고정 == Child_WindowName = "ucPartDocumentListPopup_T02"; ucPartDocumentListPopup_T02.CORP_CDDE = _pCORP_CODE; ucPartDocumentListPopup_T02.USER_CODE = _pUSER_CODE; ucPartDocumentListPopup_T02.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucPartDocumentListPopup_T02.FONT_TYPE = fntPARENT_FONT; ucPartDocumentListPopup_T02.FTP_PATH = _pFTP_PATH; ucPartDocumentListPopup_T02.FTP_ID = _pFTP_ID; ucPartDocumentListPopup_T02.FTP_PW = _pFTP_PW; ucPartDocumentListPopup_T02.ARRAY = _pARRAY; ucPartDocumentListPopup_T02.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucPartDocumentListPopup_T02(); //ucMaterialOrderInfoPopup_Request._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucPartDocumentListPopup_T02._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; //MaterialCollectAndPay_Detail case "MaterialCollectAndPay_Detail": //user Control 생성시 고정 == Child_WindowName = "MaterialCollectAndPay_Detail"; MaterialCollectAndPay_Detail.CORP_CDDE = _pCORP_CODE; MaterialCollectAndPay_Detail.USER_CODE = _pUSER_CODE; MaterialCollectAndPay_Detail.LANGUAGE_TYPE = _pLANGUAGE_TYPE; MaterialCollectAndPay_Detail.FONT_TYPE = fntPARENT_FONT; MaterialCollectAndPay_Detail.ARRAY = _pARRAY; MaterialCollectAndPay_Detail.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new MaterialCollectAndPay_Detail(); ucMaterialOrderInfoPopup_Request._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; MaterialCollectAndPay_Detail._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 400; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucExcelViewPopup": Child_WindowName = "ucExcelViewPopup"; ucExcelViewPopup.CORP_CDDE = _pCORP_CODE; ucExcelViewPopup.USER_CODE = _pUSER_CODE; ucExcelViewPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucExcelViewPopup.FONT_TYPE = fntPARENT_FONT; ucExcelViewPopup.strFTP_PATH = _strFTP_PATH; ucExcelViewPopup.strFILE_NAME = _strFILE_NAME; ucExcelViewPopup.FTP_ID = _pFTP_ID; ucExcelViewPopup.FTP_PW = _pFTP_PW; ucExcelViewPopup.ARRAY = _pARRAY; ucExcelViewPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucExcelViewPopup(); ucExcelViewPopup._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucExcelViewPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = Screen.PrimaryScreen.Bounds.Width; this.Height = Screen.PrimaryScreen.Bounds.Height; break; case "ucOrderExcelView": Child_WindowName = "ucOrderExcelView"; ucOrderExcelView.CORP_CDDE = _pCORP_CODE; ucOrderExcelView.USER_CODE = _pUSER_CODE; ucOrderExcelView.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucOrderExcelView.FONT_TYPE = fntPARENT_FONT; ucOrderExcelView.strFTP_PATH = _strFTP_PATH; ucOrderExcelView.strFILE_NAME = _strFILE_NAME; ucOrderExcelView.FTP_ID = _pFTP_ID; ucOrderExcelView.FTP_PW = _pFTP_PW; ucOrderExcelView.ARRAY = _pARRAY; ucOrderExcelView.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucOrderExcelView(); ucOrderExcelView._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucOrderExcelView._Close_Click += ucCommonCodePopup_Close_OnClick; /*this.Width = Screen.PrimaryScreen.Bounds.Width; * this.Height = Screen.PrimaryScreen.Bounds.Height;*/ this.Width = 1000; this.Height = 1000; break; case "ucMaterialOrderRegister_Request_T01": //user Control 생성시 고정 == Child_WindowName = "ucMaterialOrderRegister_Request_T01"; ucMaterialOrderRegister_Request_T01.CORP_CDDE = _pCORP_CODE; ucMaterialOrderRegister_Request_T01.USER_CODE = _pUSER_CODE; ucMaterialOrderRegister_Request_T01.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucMaterialOrderRegister_Request_T01.FONT_TYPE = fntPARENT_FONT; ucMaterialOrderRegister_Request_T01.ARRAY = _pARRAY; ucMaterialOrderRegister_Request_T01.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucMaterialOrderRegister_Request_T01(_pDataTable); ucMaterialOrderRegister_Request_T01._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucMaterialOrderRegister_Request_T01._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; /* * case "ucMaterialOutPrintPopup": * * //user Control 생성시 고정 == * * MaterialOutRegister_T01_Print.CORP_CDDE = _pCORP_CODE; * MaterialOutRegister_T01_Print.USER_CODE = _pUSER_CODE; * MaterialOutRegister_T01_Print.LANGUAGE_TYPE = _pLANGUAGE_TYPE; * MaterialOutRegister_T01_Print.FONT_TYPE = fntPARENT_FONT; * MaterialOutRegister_T01_Print.FTP_PATH = _pFTP_PATH; * MaterialOutRegister_T01_Print.FTP_ID = _pFTP_ID; * MaterialOutRegister_T01_Print.FTP_PW = _pFTP_PW; * * MaterialOutRegister_T01_Print.ARRAY = _pARRAY; * MaterialOutRegister_T01_Print.ARRAY_CODE = _pARRAY_CODE; * * MaterialOutRegister_T01_Print _uc2 = new MaterialOutRegister_T01_Print(); * * * ucMaterialOutPrintPopup.CORP_CDDE = _pCORP_CODE; * ucMaterialOutPrintPopup.USER_CODE = _pUSER_CODE; * ucMaterialOutPrintPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; * ucMaterialOutPrintPopup.FONT_TYPE = fntPARENT_FONT; * ucMaterialOutPrintPopup.FTP_PATH = _pFTP_PATH; * ucMaterialOutPrintPopup.FTP_ID = _pFTP_ID; * ucMaterialOutPrintPopup.FTP_PW = _pFTP_PW; * * ucMaterialOutPrintPopup.ARRAY = _pARRAY; * ucMaterialOutPrintPopup.ARRAY_CODE = _pARRAY_CODE; * * //언어설정 창 표시 정보 * PageSetting_WINDOW_NAME = Child_WindowName; * PageSetting_USER_CODE = _pUSER_CODE; * PageSetting_LANGUAGE = _pLANGUAGE_TYPE; * PageSetting_FONT = fntPARENT_FONT; * // * * _uc = new ucMaterialOutPrintPopup(); * //ucMaterialOrderInfoPopup_Request._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; * // ucMaterialOutPrintPopup._Close_Click += ucCommonCodePopup_Close_OnClick; * * this.Width = _uc.Width + 200; * this.Height = _uc.Height + 75; * //user Control 생성시 고정 == * break; */ } _uc.CreateControl(); _pnSINGLE_MAIN.Controls.Add(_uc); _uc.Dock = DockStyle.Fill; }
public frmCommonPopup(string strFindControl) { InitializeComponent(); _pFindControl = strFindControl; _pWINDOW_NAME = this.Name.ToString(); Child_WindowName = ""; Child_User_Code = _pUSER_CODE; Child_Language_Type = _pLANGUAGE_TYPE; Child_Font_Setting = fntPARENT_FONT; InitializeSetting(); switch (_pFindControl) { case "InspectRequest": // 발주 찾기 팝업 // _btPOPUP_SELECT.Enabled = false; //userControl 별 복수 로우 선택 데이터 리던시 사용으로 변경 //user Control 생성시 고정 == Child_WindowName = "ucInspectRequestInfoPopup"; ucInspectRequestInfoPopup.CORP_CDDE = _pCORP_CODE; ucInspectRequestInfoPopup.USER_CODE = _pUSER_CODE; ucInspectRequestInfoPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucInspectRequestInfoPopup.FONT_TYPE = fntPARENT_FONT; ucInspectRequestInfoPopup.ARRAY = _pARRAY; ucInspectRequestInfoPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucInspectRequestInfoPopup(); ucInspectRequestInfoPopup._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucInspectRequestInfoPopup._Close_Click += ucCommonCodePopup_Close_OnClick; //user Control 생성시 고정 == this.Width = _uc.Width + 100; this.Height = _uc.Height + 75; break; case "InspectRequest_T01": // 발주 찾기 팝업 // _btPOPUP_SELECT.Enabled = false; //userControl 별 복수 로우 선택 데이터 리던시 사용으로 변경 //user Control 생성시 고정 == Child_WindowName = "ucInspectRequestInfoPopup_T01"; ucInspectRequestInfoPopup_T01.CORP_CDDE = _pCORP_CODE; ucInspectRequestInfoPopup_T01.USER_CODE = _pUSER_CODE; ucInspectRequestInfoPopup_T01.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucInspectRequestInfoPopup_T01.FONT_TYPE = fntPARENT_FONT; ucInspectRequestInfoPopup_T01.ARRAY = _pARRAY; ucInspectRequestInfoPopup_T01.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucInspectRequestInfoPopup_T01(); ucInspectRequestInfoPopup_T01._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucInspectRequestInfoPopup_T01._Close_Click += ucCommonCodePopup_Close_OnClick; //user Control 생성시 고정 == this.Width = _uc.Width; this.Height = _uc.Height + 75; break; case "Calendar": // 달력 팝업 // _btPOPUP_SELECT.Enabled = false; //userControl 별 복수 로우 선택 데이터 리던시 사용으로 변경 //user Control 생성시 고정 == Child_WindowName = "ucCalendar"; ucCalendar.CORP_CDDE = _pCORP_CODE; ucCalendar.USER_CODE = _pUSER_CODE; ucCalendar.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucCalendar.FONT_TYPE = fntPARENT_FONT; ucCalendar.ARRAY = _pARRAY; ucCalendar.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucCalendar(); ucCalendar._OnDoubleClick += ucCommonCodePopup_Calendar_OnDoubleClick; ucCalendar._Close_Click += ucCommonCodePopup_Close_OnClick; //user Control 생성시 고정 == this.Width = 327; this.Height = 300; break; case "ImportInspectOrder": // 발주조회 // _btPOPUP_SELECT.Enabled = false; //userControl 별 복수 로우 선택 데이터 리던시 사용으로 변경 //user Control 생성시 고정 == Child_WindowName = "ucImportInspectInfoPopup"; ucImportInspectInfoPopup.CORP_CDDE = _pCORP_CODE; ucImportInspectInfoPopup.USER_CODE = _pUSER_CODE; ucImportInspectInfoPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucImportInspectInfoPopup.FONT_TYPE = fntPARENT_FONT; ucImportInspectInfoPopup.ARRAY = _pARRAY; ucImportInspectInfoPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucImportInspectInfoPopup(); ucImportInspectInfoPopup._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucImportInspectInfoPopup._Close_Click += ucCommonCodePopup_Close_OnClick; //user Control 생성시 고정 == this.Width = _uc.Width; this.Height = _uc.Height + 75; break; case "ucProductionOrderInfoPopup_T08": //user Control 생성시 고정 == Child_WindowName = "ucProductionOrderInfoPopup_T08"; ucProductionOrderInfoPopup_T08.CORP_CDDE = _pCORP_CODE; ucProductionOrderInfoPopup_T08.USER_CODE = _pUSER_CODE; ucProductionOrderInfoPopup_T08.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucProductionOrderInfoPopup_T08.FONT_TYPE = fntPARENT_FONT; ucProductionOrderInfoPopup_T08.ARRAY = _pARRAY; ucProductionOrderInfoPopup_T08.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucProductionOrderInfoPopup_T08(); ucProductionOrderInfoPopup_T08._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucProductionOrderInfoPopup_T08._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width; this.Height = _uc.Height + 75; break; case "ucInspectPartListPopup": //user Control 생성시 고정 == Child_WindowName = "ucInspectPartListPopup"; ucInspectPartListPopup.CORP_CDDE = _pCORP_CODE; ucInspectPartListPopup.USER_CODE = _pUSER_CODE; ucInspectPartListPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucInspectPartListPopup.FONT_TYPE = fntPARENT_FONT; ucInspectPartListPopup.ARRAY = _pARRAY; ucInspectPartListPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucInspectPartListPopup(); ucInspectPartListPopup._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucInspectPartListPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucQCMaterialPartListPopup": //user Control 생성시 고정 == Child_WindowName = "ucQCMaterialPartListPopup"; ucQCMaterialPartListPopup.CORP_CDDE = _pCORP_CODE; ucQCMaterialPartListPopup.USER_CODE = _pUSER_CODE; ucQCMaterialPartListPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucQCMaterialPartListPopup.FONT_TYPE = fntPARENT_FONT; ucQCMaterialPartListPopup.ARRAY = _pARRAY; ucQCMaterialPartListPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucQCMaterialPartListPopup(); ucQCMaterialPartListPopup._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucQCMaterialPartListPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; case "ucMatInspectDocumentListPopup": //user Control 생성시 고정 == Child_WindowName = "ucMatInspectDocumentListPopup"; ucMatInspectDocumentListPopup.CORP_CDDE = _pCORP_CODE; ucMatInspectDocumentListPopup.USER_CODE = _pUSER_CODE; ucMatInspectDocumentListPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucMatInspectDocumentListPopup.FONT_TYPE = fntPARENT_FONT; ucMatInspectDocumentListPopup.FTP_PATH = _pFTP_PATH; ucMatInspectDocumentListPopup.FTP_ID = _pFTP_ID; ucMatInspectDocumentListPopup.FTP_PW = _pFTP_PW; ucMatInspectDocumentListPopup.ARRAY = _pARRAY; ucMatInspectDocumentListPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucMatInspectDocumentListPopup(); //ucMaterialOrderInfoPopup_Request._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucMatInspectDocumentListPopup._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; //user Control 생성시 고정 == break; } _uc.CreateControl(); _pnSINGLE_MAIN.Controls.Add(_uc); _uc.Dock = DockStyle.Fill; }
public void mainPageControl(string strFindControl) { _pFindControl = strFindControl; switch (_pFindControl) { case "TABLobby": if (_pnSINGLE_SUB != null) { _pnSINGLE_SUB.Controls.Clear(); } _lmREFRESH.Visible = false; _lmSELECT.Visible = false; _lmSAVE.Visible = false; _lmIMPORT.Visible = false; _lmEXPORT.Visible = false; _uc = new ucTABLobby(pUserEntity, this); break; case "TABSearch": if (_pnSINGLE_SUB != null) { _pnSINGLE_SUB.Controls.Clear(); } _lmREFRESH.Visible = true; _lmSELECT.Visible = true; _uc = new ucTABSearch(pUserEntity, this); break; case "TABExcel": if (_pnSINGLE_SUB != null) { _pnSINGLE_SUB.Controls.Clear(); } _lmREFRESH.Visible = true; _lmIMPORT.Visible = true; _lmEXPORT.Visible = true; _uc = new ucTABExcel(pUserEntity, this); break; case "TABRegister": if (_pnSINGLE_SUB != null) { _pnSINGLE_SUB.Controls.Clear(); } _lmREFRESH.Visible = true; _lmIMPORT.Visible = true; _lmSAVE.Visible = true; _uc = new ucTABRegister(pUserEntity, this); break; case "TABComment": if (_pnSINGLE_SUB != null) { _pnSINGLE_SUB.Controls.Clear(); } _lmREFRESH.Visible = true; _lmSELECT.Visible = true; _lmSAVE.Visible = true; _uc = new ucTABComment(pUserEntity, this); break; case "TABEquipment": if (_pnSINGLE_SUB != null) { _pnSINGLE_SUB.Controls.Clear(); } _lmREFRESH.Visible = true; _lmSELECT.Visible = true; _uc = new ucTABEquipment(pUserEntity, this); break; } _uc.CreateControl(); _pnSINGLE_SUB.Controls.Add(_uc); _uc.Dock = DockStyle.Fill; _pFindControl = null; }
public frmCommonPopup(string strFindControl) { InitializeComponent(); _pFindControl = strFindControl; _pWINDOW_NAME = this.Name.ToString(); Child_WindowName = ""; Child_User_Code = _pUSER_CODE; Child_Language_Type = _pLANGUAGE_TYPE; Child_Font_Setting = fntPARENT_FONT; InitializeSetting(); switch (_pFindControl) { case "ShipmentRegister": //user Control 생성시 고정 == Child_WindowName = "ucShipmentRegisterInfoPopup"; ucShipmentRegisterInfoPopup.CORP_CDDE = _pCORP_CODE; ucShipmentRegisterInfoPopup.USER_CODE = _pUSER_CODE; ucShipmentRegisterInfoPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucShipmentRegisterInfoPopup.FONT_TYPE = fntPARENT_FONT; ucShipmentRegisterInfoPopup.ARRAY = _pARRAY; ucShipmentRegisterInfoPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucShipmentRegisterInfoPopup(); ucShipmentRegisterInfoPopup._Close_Click += ucCommonCodePopup_Close_OnClick; ucShipmentRegisterInfoPopup._OnDoubleClick += ucShipmentRegisterInfoPopup__OnDoubleClick; this.Width = _uc.Width + 300; this.Height = _uc.Height + 75; break; case "ShipmentRegister_T01": //user Control 생성시 고정 == Child_WindowName = "ucShipmentRegisterInfoPopup_T01"; ucShipmentRegisterInfoPopup_T01.CORP_CDDE = _pCORP_CODE; ucShipmentRegisterInfoPopup_T01.USER_CODE = _pUSER_CODE; ucShipmentRegisterInfoPopup_T01.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucShipmentRegisterInfoPopup_T01.FONT_TYPE = fntPARENT_FONT; ucShipmentRegisterInfoPopup_T01.ARRAY = _pARRAY; ucShipmentRegisterInfoPopup_T01.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucShipmentRegisterInfoPopup_T01(); ucShipmentRegisterInfoPopup_T01._Close_Click += ucCommonCodePopup_Close_OnClick; ucShipmentRegisterInfoPopup_T01._OnDoubleClick += ucShipmentRegisterInfoPopup__OnDoubleClick; this.Width = _uc.Width + 300; this.Height = _uc.Height + 75; break; //제품출고용 수주찾기팝업 case "ProductionInfo_Out_Popup": Child_WindowName = "ucProductionOrderInfoPopup_T05"; ucProductionOrderInfoPopup_T05.CORP_CDDE = _pCORP_CODE; ucProductionOrderInfoPopup_T05.USER_CODE = _pUSER_CODE; ucProductionOrderInfoPopup_T05.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucProductionOrderInfoPopup_T05.FONT_TYPE = fntPARENT_FONT; ucProductionOrderInfoPopup_T05.ARRAY = _pARRAY; ucProductionOrderInfoPopup_T05.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucProductionOrderInfoPopup_T05(); ucProductionOrderInfoPopup_T05._OnDoubleClick += UcProductionOrderInfoPopup_T05__OnDoubleClick; ucProductionOrderInfoPopup_T05._Close_Click += ucCommonCodePopup_Close_OnClick; this.Width = _uc.Width + 420; this.Height = _uc.Height + 75; break; case "SemiProduct_Stock": //user Control 생성시 고정 == Child_WindowName = "ucSemiProductStockInfoPopup"; ucSemiProductStockInfoPopup.CORP_CDDE = _pCORP_CODE; ucSemiProductStockInfoPopup.USER_CODE = _pUSER_CODE; ucSemiProductStockInfoPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; ucSemiProductStockInfoPopup.FONT_TYPE = fntPARENT_FONT; ucSemiProductStockInfoPopup.ARRAY = _pARRAY; ucSemiProductStockInfoPopup.ARRAY_CODE = _pARRAY_CODE; //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = Child_WindowName; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; // _uc = new ucSemiProductStockInfoPopup(); ucSemiProductStockInfoPopup._OnDoubleClick += ucCommonCodePopup__OnDoubleClick; ucSemiProductStockInfoPopup._Close_Click += ucCommonCodePopup_Close_OnClick; //user Control 생성시 고정 == this.Width = _uc.Width + 200; this.Height = _uc.Height + 75; break; default: break; } _uc.CreateControl(); _pnSINGLE_MAIN.Controls.Add(_uc); _uc.Dock = DockStyle.Fill; }