void FormInitialize() { m_presenter = new SLP003Presenter(this); #region 보류리스트 gpHoldList.InitializeCell += new WSWD.WmallPos.POS.FX.Win.UserControls.CellDataBoundEventHandler(gpHoldList_InitializeCell); gpHoldList.RowDataBound += new WSWD.WmallPos.POS.FX.Win.UserControls.RowDataBoundEventHandler(gpHoldList_RowDataBound); gpHoldList.PageIndex = 0; gpHoldList.SelectedRowIndex = -1; gpHoldList.SetColumn(0, LABEL_NO, 110); gpHoldList.SetColumn(1, LABEL_TIME); gpHoldList.SetColumn(2, LABEL_AMT, 120); ((System.Windows.Forms.TableLayoutPanel)(gpHoldList.Controls[2])).RowStyles[1] = new RowStyle(SizeType.Absolute, 60); ((System.Windows.Forms.Label)(gpHoldList.Controls[2].Controls[1])).AutoSize = false; ((System.Windows.Forms.Label)(gpHoldList.Controls[2].Controls[1])).Font = new Font("돋움체", 9, FontStyle.Bold); #endregion #region 보류상품리스트 gpItemsList.InitializeCell += new WSWD.WmallPos.POS.FX.Win.UserControls.CellDataBoundEventHandler(gpItemsList_InitializeCell); gpItemsList.RowDataBound += new WSWD.WmallPos.POS.FX.Win.UserControls.RowDataBoundEventHandler(gpItemsList_RowDataBound); gpItemsList.PageIndex = 0; gpItemsList.SelectedRowIndex = -1; gpItemsList.UnSelectable = true; gpItemsList.SetColumn(0, LABEL_NO, 40); gpItemsList.SetColumn(1, LABEL_ITEM); gpItemsList.SetColumn(2, LABEL_QTY, 50); gpItemsList.SetColumn(3, LABEL_AMT, 110); ((System.Windows.Forms.TableLayoutPanel)(gpItemsList.Controls[2])).RowStyles[1] = new RowStyle(SizeType.Absolute, 60); ((System.Windows.Forms.Label)(gpItemsList.Controls[2].Controls[1])).AutoSize = false; ((System.Windows.Forms.Label)(gpItemsList.Controls[2].Controls[1])).Font = new Font("돋움체", 9, FontStyle.Bold); #endregion this.StatusMessage = MSG_WAITING; POSDeviceManager.Scanner.DataEvent += new POSDataEventHandler(Scanner_DataEvent); this.KeyEvent += new WSWD.WmallPos.FX.Shared.OPOSKeyEventHandler(POS_SL_P003_KeyEvent); this.Activated += new EventHandler(POS_SL_P003_Activated); this.Deactivate += new EventHandler(POS_SL_P003_Deactivate); this.FormClosed += new FormClosedEventHandler(POS_SL_P003_FormClosed); this.Load += new EventHandler(POS_SL_P003_Load); this.iptNoBoru.SetFocus(); }
void FormInit() { #region 화면속성 this.HideMainMenu = true; #endregion ((System.Windows.Forms.TableLayoutPanel)(gpItems.Controls[2])).RowStyles[1] = new RowStyle(SizeType.Absolute, 60); ((System.Windows.Forms.Label)(gpItems.Controls[2].Controls[1])).AutoSize = false; ((System.Windows.Forms.Label)(gpItems.Controls[2].Controls[1])).Font = new Font("돋움체", 9, FontStyle.Bold); #region 이벤트등록 - EventRegistration this.Load += new EventHandler(POS_SL_M001_Load); this.Activated += new EventHandler(POS_SL_M001_Activated); this.Deactivated += new EventHandler(POS_SL_M001_Deactivate); this.Unload += new EventHandler(POS_SL_M001_Unload); this.KeyEvent += new WSWD.WmallPos.FX.Shared.OPOSKeyEventHandler(POS_SL_M001_KeyEvent); POSDeviceManager.Scanner.DataEvent += new POSDataEventHandler(Scanner_DataEvent); autoRtnPanel1.Confirmed += new EventHandler(autoRtnPanel1_Confirmed); autoRtnPanel1.Cancelled += new EventHandler(autoRtnPanel1_Cancelled); #endregion #region Loading - 초기로드 // 상품목록 ItemsGrid_InitLayout(); FormInitialize(); InitFuncKeyGroup(); #endregion #region 비지니스로긱생성 m_presenter = new SLM001Presenter(this, this.saleItemGroup1, this.groupItemList1); m_holdPresenter = new SLP003Presenter(this); #endregion }