Example #1
0
        /// <summary>
        /// ConfirmNo reading type
        /// - 신용카드 방법 (IC / MSR)
        /// - 식별번호입력, KEYBOARD 또는 동글
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void ConfirmNoRdBtn_Click(object sender, EventArgs e)
        {
            var c = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)sender;

            if (m_rdConfNoType != null)
            {
                if (m_rdConfNoType.Name.Equals(c.Name))
                {
                    return;
                }

                m_rdConfNoType.Selected = false;
            }

            m_rdConfNoType    = c;
            c.Selected        = true;
            txtConfirmNo.Text = string.Empty;

            // 신용카드모드
            POSDeviceManager.SignPad.ClearPinDataRequest();
            // POSDeviceManager.SignPad.ResetICCardReader();

            if (!m_rdConfNoType.Name.Equals(btnRdICCard.Name))
            {
                POSDeviceManager.SignPad.RequestPinData(MSG_INPUT_CONFIRM_NO_SIGNPAD,
                                                        string.Empty, string.Empty, string.Empty, 1, 13);
            }
        }
Example #2
0
        /// <summary>
        /// 통화선택
        /// </summary>
        /// <param name="button"></param>
        void SetSelected(WSWD.WmallPos.POS.FX.Win.UserControls.Button button)
        {
            if (m_selCUR == null)
            {
                m_selCUR        = button;
                button.Selected = true;
            }
            else
            {
                if (m_selCUR.Name == button.Name)
                {
                    m_selCUR.Selected = !m_selCUR.Selected;
                    if (!m_selCUR.Selected)
                    {
                        m_selCUR = null;
                    }
                }
                else
                {
                    m_selCUR.Selected = false;
                    button.Selected   = true;
                    m_selCUR          = button;
                }
            }

            StatusMessage = m_selCUR != null?string.Format(MSG_SIGNPAD_CURR_SELECTED, m_selCUR.Text) : MSG_GUIDE_ASK_SELECTION;

            btnOK.Enabled = m_selCUR != null;
        }
Example #3
0
        /// <summary>
        /// 선택취소
        /// </summary>
        void ClearSelection()
        {
            if (m_selCUR != null)
            {
                m_selCUR.Selected = false;
                m_selCUR          = null;
            }

            btnOK.Enabled = m_selCUR != null;
        }
Example #4
0
        /// <summary>
        /// 조회, 저장등의 DB, TRAN 시 Control Enable/Disable
        /// </summary>
        void SetControlDisable(bool bDisable)
        {
            _bDisable = bDisable;

            if (this.InvokeRequired)
            {
                this.BeginInvoke((MethodInvoker) delegate()
                {
                    //TraceHelper.Instance.JournalWrite("포인트적립테스트", bDisable.ToString());
                    foreach (var item in this.ContainerPanel.Controls)
                    {
                        if (item.GetType().Name.ToString().ToLower() == "keypad")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad key = (WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad)item;
                            key.Enabled = !_bDisable;
                        }
                        else if (item.GetType().Name.ToString().ToLower() == "inputtext")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.InputText txt = (WSWD.WmallPos.POS.FX.Win.UserControls.InputText)item;
                            txt.Enabled = !_bDisable;
                        }
                        else if (item.GetType().Name.ToString().ToLower() == "button")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.Button btn = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)item;
                            btn.Enabled = !_bDisable;
                        }
                    }
                });
            }
            else
            {
                //TraceHelper.Instance.JournalWrite("포인트적립테스트", bDisable.ToString());
                foreach (var item in this.ContainerPanel.Controls)
                {
                    if (item.GetType().Name.ToString().ToLower() == "keypad")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad key = (WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad)item;
                        key.Enabled = !_bDisable;
                    }
                    else if (item.GetType().Name.ToString().ToLower() == "inputtext")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.InputText txt = (WSWD.WmallPos.POS.FX.Win.UserControls.InputText)item;
                        txt.Enabled = !_bDisable;
                    }
                    else if (item.GetType().Name.ToString().ToLower() == "button")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.Button btn = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)item;
                        btn.Enabled = !_bDisable;
                    }
                }
            }

            //Application.DoEvents();
        }
Example #5
0
        /// <summary>
        /// 조회, 저장등의 DB, TRAN 시 Control Enable/Disable
        /// </summary>
        void SetControlDisable(bool bDisable)
        {
            ChildManager.ShowProgress(bDisable);
            _bDisable = bDisable;

            if (this.InvokeRequired)
            {
                this.BeginInvoke((MethodInvoker) delegate()
                {
                    foreach (var item in this.Controls)
                    {
                        if (item.GetType().Name.ToString().ToLower() == "keypad")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad key = (WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad)item;
                            key.Enabled = !_bDisable;
                        }
                        else if (item.GetType().Name.ToString().ToLower() == "inputtext")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.InputText txt = (WSWD.WmallPos.POS.FX.Win.UserControls.InputText)item;
                            txt.Enabled = !_bDisable;
                        }
                        else if (item.GetType().Name.ToString().ToLower() == "button")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.Button btn = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)item;
                            btn.Enabled = !_bDisable;
                        }
                    }
                });
            }
            else
            {
                foreach (var item in this.Controls)
                {
                    if (item.GetType().Name.ToString().ToLower() == "keypad")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad key = (WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad)item;
                        key.Enabled = !_bDisable;
                    }
                    else if (item.GetType().Name.ToString().ToLower() == "inputtext")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.InputText txt = (WSWD.WmallPos.POS.FX.Win.UserControls.InputText)item;
                        txt.Enabled = !_bDisable;
                    }
                    else if (item.GetType().Name.ToString().ToLower() == "button")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.Button btn = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)item;
                        btn.Enabled = !_bDisable;
                    }
                }

                //Application.DoEvents();
            }
        }
Example #6
0
        void CardButton_MouseUp(object sender, MouseEventArgs e)
        {
            WSWD.WmallPos.POS.FX.Win.UserControls.Button btn = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)sender;
            if (m_selecteButton != null)
            {
                m_selecteButton.Selected = false;
            }

            btn.Selected    = true;
            m_selecteButton = btn;
            StatusMessage   = btn.Text;
        }
Example #7
0
 private void POS_TL_P001_Load(object sender, EventArgs e)
 {
     m_p001Presenter = new TLP001Presenter(this);
     m_p001Presenter.GetTable(Convert.ToInt32(cbxFloor.Text));
     WSWD.WmallPos.POS.FX.Win.UserControls.Button line = new WSWD.WmallPos.POS.FX.Win.UserControls.Button
     {
         Name     = "btnLine",
         Text     = "",
         Size     = new Size(10, 580),
         Location = new Point(775, 0),
         Enabled  = false
     };
     pnlTable.Controls.Add(line);
 }
Example #8
0
        /// <summary>
        /// 소득공제/지출증빙
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void CRPayType_Click(object sender, EventArgs e)
        {
            if (m_selButton != null)
            {
                m_selButton.Selected = false;
            }

            var c = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)sender;

            m_selButton = c;
            c.Selected  = true;

            m_crPayType        = (int)c.Tag;
            txtBusinessNo.Text = (m_crPayType == POS_PY_P014.CASHRCP_TYPE_DEDUCTION ? MSG_ID_TYPE_IND : MSG_ID_TYPE_BIZ) + "(" + c.Text + ")";
            txtConfirmNo.SetFocus();
        }
Example #9
0
        /// <summary>
        /// 반납상품교환권 등록화면
        /// <param name="giftButton">해당행의 교환권번호버튼</param>
        /// </summary>
        void ShowDetailExchGiftList(WSWD.WmallPos.POS.FX.Win.UserControls.Button giftButton)
        {
            // TODO
            // 1. Check amount, remain 회수금액 > 0
            // 2. Check 미회수입력
            SaleGridCell cell        = giftButton.Parent as SaleGridCell;
            SaleGridRow  row         = cell.Row;
            string       noRtnReason = row.Cells[8].Controls[0].Text;

            if (!string.IsNullOrEmpty(noRtnReason))
            {
                ShowMessageBox(WSWD.WmallPos.FX.Shared.MessageDialogType.Warning, string.Empty,
                               ERR_MSG_NORTN_RSN_ENTER_INVALID);
                return;
            }

            if (string.IsNullOrEmpty(giftButton.Text))
            {
                return;
            }

            string exchGiftNo = giftButton.Text;

            Int64 cashAmt = TypeHelper.ToInt64(row.Cells[5].Controls[0].Text.Replace(",", ""));
            //Int64 giftAmt = TypeHelper.ToInt64(row.Cells[6].Controls[0].Text.Replace(",", ""));
            Int64 retAmt = TypeHelper.ToInt64(row.Cells[4].Controls[0].Text.Replace(",", ""));

            // SHOW POUPP
            using (var pop = ChildManager.ShowPopup(string.Empty, "WSWD.WmallPos.POS.SL.dll",
                                                    "WSWD.WmallPos.POS.SL.VC.POS_SL_P007", m_rtnPrsGiftList, giftButton.Text, retAmt - cashAmt))
            {
                var res = pop.ShowDialog(this);
                if (res == DialogResult.OK)
                {
                    // Update back to row data from P007 pop
                    var retList = (List <RtnPrsGiftData>)pop.ReturnResult["GIFT_LIST"];
                    m_rtnPrsGiftList[giftButton.Text] = retList;

                    // update total input gift amt;
                    PQ11RespData data = (PQ11RespData)row.ItemData;
                    data.RtnGiftAmt = (long)pop.ReturnResult["GIFT_TOTAL"];
                    row.Cells[6].Controls[0].Text = data.RtnGiftAmt.ToString();
                    data.RtnPrsnList = new List <RtnPrsGiftData>();
                    data.RtnPrsnList.AddRange(retList);
                }
            }
        }
Example #10
0
 private void InitializeComponent()
 {
     this.button1    = new WSWD.WmallPos.POS.FX.Win.UserControls.Button();
     this.gridPanel1 = new WSWD.WmallPos.POS.FX.Win.UserControls.GridPanel();
     this.ContainerPanel.SuspendLayout();
     this.SuspendLayout();
     //
     // ContainerPanel
     //
     this.ContainerPanel.Controls.Add(this.gridPanel1);
     this.ContainerPanel.Controls.Add(this.button1);
     this.ContainerPanel.Size = new System.Drawing.Size(751, 469);
     //
     // button1
     //
     this.button1.BorderSize = 1;
     this.button1.Corner     = 3;
     this.button1.Location   = new System.Drawing.Point(165, 372);
     this.button1.Name       = "button1";
     this.button1.Selected   = false;
     this.button1.Size       = new System.Drawing.Size(90, 42);
     this.button1.TabIndex   = 0;
     this.button1.Text       = "닫기";
     this.button1.TextAlign  = System.Drawing.ContentAlignment.MiddleCenter;
     this.button1.Click     += new System.EventHandler(this.button1_Click);
     //
     // gridPanel1
     //
     this.gridPanel1.BorderColor     = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234)))));
     this.gridPanel1.BorderWidth     = new System.Windows.Forms.Padding(1);
     this.gridPanel1.CurrentRowIndex = -1;
     this.gridPanel1.Dock            = System.Windows.Forms.DockStyle.Top;
     this.gridPanel1.Location        = new System.Drawing.Point(10, 10);
     this.gridPanel1.Name            = "gridPanel1";
     this.gridPanel1.Padding         = new System.Windows.Forms.Padding(1);
     this.gridPanel1.Size            = new System.Drawing.Size(731, 264);
     this.gridPanel1.TabIndex        = 1;
     //
     // POS_TM_P003
     //
     this.ClientSize = new System.Drawing.Size(751, 509);
     this.Name       = "POS_TM_P003";
     this.ContainerPanel.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Example #11
0
        void ReloadPanel()
        {
            pnlTable.Controls.Clear();
            tableList.Clear();
            m_p001Presenter.GetTable(Convert.ToInt32(cbxFloor.Text));

            WSWD.WmallPos.POS.FX.Win.UserControls.Button line = new WSWD.WmallPos.POS.FX.Win.UserControls.Button
            {
                Name     = "btnLine",
                Text     = "",
                Size     = new Size(10, 580),
                Location = new Point(775, 0),
                Enabled  = false
            };
            pnlTable.Controls.Add(line);
            btnAdd.Enabled    = btnDelete.Enabled = btnEdit.Enabled = true;
            btnCancel.Enabled = btnSave.Enabled = false;
        }
Example #12
0
        /// <summary>
        /// TR전송, 결락전송 Click Event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void btnTrans_Click(object sender, EventArgs e)
        {
            if (_bDisable)
            {
                return;
            }

            _dsTR   = null;
            iRow    = 0;
            strType = "";

            if (txtTransDate.Text.Length != 10 || m_Presenter == null)
            {
                return;
            }

            DateTime dtTime = DateTime.Now;

            if (!DateTime.TryParse(txtTransDate.Text, out dtTime))
            {
                return;
            }

            WSWD.WmallPos.POS.FX.Win.UserControls.Button btn = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)sender;

            strType = btn == btnTransTr ? "0" : "1";
            string strMsg_01 = strType == "0" ? strMsg05 : strMsg06;
            string strMsg_02 = strType == "0" ? strMsg03 : strMsg04;

            if (ShowMessageBox(MessageDialogType.Question, null, string.Format("{0} {1}", txtTransDate.Text, strMsg_01)) == DialogResult.Yes)
            {
                ChildManager.ShowProgress(true);
                SetControlDisable(true);

                //화면 표출 메세지 설정
                msgBarProgress.Text          = string.Format("0/0");
                colorProgressBar1.Percentage = 0;
                msgBar.Text = strMsg_02;
                Application.DoEvents();

                //TR전송, 결락전송 데이터 조회
                m_Presenter.GetTRData(strType);
            }
        }
Example #13
0
        /// <summary>
        /// 장비초기화
        /// - SIGNPAD (빈법입력)
        /// - MSR
        ///
        /// </summary>
        void InitDevices()
        {
            POSDeviceManager.SignPad.Initialize(axKSNet_Dongle1);
            if (POSDeviceManager.SignPad.Status == WSWD.WmallPos.POS.FX.Shared.DeviceStatus.Opened)
            {
                StatusMessage = string.Empty;
                POSDeviceManager.SignPad.PinEvent += new POSDataEventHandler(SignPad_PinEvent);

                // 여전법 추가 0617
                // 기본선택이 일반식별번호 버튼
                m_rdConfNoType = btnRdConfirmNo;

                POSDeviceManager.SignPad.RequestPinData(MSG_INPUT_CONFIRM_NO_SIGNPAD,
                                                        string.Empty, string.Empty, string.Empty,
                                                        1, 13);
            }
            else
            {
                StatusMessage = MSG_SIGNPAD_INIT_ERROR;
            }

            // POSDeviceManager.Msr.DataEvent += new POSMsrDataEventHandler(Msr_DataEvent);
        }
Example #14
0
 /// <summary>
 /// Search on list of Listener
 /// If is IFocusableControl,
 /// </summary>
 /// <param name="e"></param>
 void KeyInputForm_KeyEvent(OPOSKeyEventArgs e)
 {
     if (e.Key.OPOSKey == OPOSMapKeys.KEY_UP || e.Key.OPOSKey == OPOSMapKeys.KEY_DOWN)
     {
         if (e.Key.OPOSKey == OPOSMapKeys.KEY_UP)
         {
             PreviousControl();
         }
         else
         {
             NextControl();
         }
     }
     else if (e.Key.OPOSKey == OPOSMapKeys.KEY_CLEAR || e.Key.OPOSKey == OPOSMapKeys.KEY_ENTER)
     {
         // find button with key type
         var buttons = this.FindAllByType(typeof(WSWD.WmallPos.POS.FX.Win.UserControls.Button));
         foreach (var btn in buttons)
         {
             WSWD.WmallPos.POS.FX.Win.UserControls.Button b = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)btn;
             if ((b.KeyType == WSWD.WmallPos.POS.FX.Win.UserControls.KeyButtonTypes.Clear ||
                  b.KeyType == WSWD.WmallPos.POS.FX.Win.UserControls.KeyButtonTypes.EnterOrClear) &&
                 e.Key.OPOSKey == OPOSMapKeys.KEY_CLEAR)
             {
                 e.IsHandled = true;
                 b.FireClick();
             }
             else if ((b.KeyType == WSWD.WmallPos.POS.FX.Win.UserControls.KeyButtonTypes.Enter ||
                       b.KeyType == WSWD.WmallPos.POS.FX.Win.UserControls.KeyButtonTypes.EnterOrClear) &&
                      e.Key.OPOSKey == OPOSMapKeys.KEY_ENTER)
             {
                 e.IsHandled = true;
                 b.FireClick();
             }
         }
     }
 }
Example #15
0
        /// <summary>
        /// 조회, 저장등의 DB, TRAN 시 Control Enable/Disable
        /// </summary>
        void SetControlDisable(bool bDisable)
        {
            ChildManager.ShowProgress(bDisable);
            _bDisable = bDisable;

            if (!bDisable)
            {
                if (POSDeviceManager.Scanner != null)
                {
                    POSDeviceManager.Scanner.DataEvent += new POSDataEventHandler(Scanner_DataEvent);                                       //Scanner Event
                }
            }
            else
            {
                if (POSDeviceManager.Scanner != null)
                {
                    POSDeviceManager.Scanner.DataEvent -= new POSDataEventHandler(Scanner_DataEvent);                                       //Scanner Event
                }
            }

            if (this.InvokeRequired)
            {
                this.BeginInvoke((MethodInvoker) delegate()
                {
                    foreach (var item in this.ContainerPanel.Controls)
                    {
                        if (item.GetType().Name.ToString().ToLower() == "keypad")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad key = (WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad)item;
                            key.Enabled = !_bDisable;
                        }
                        else if (item.GetType().Name.ToString().ToLower() == "inputtext")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.InputText txt = (WSWD.WmallPos.POS.FX.Win.UserControls.InputText)item;
                            txt.Enabled = !_bDisable;
                        }
                        else if (item.GetType().Name.ToString().ToLower() == "button")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.Button btn = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)item;
                            btn.Enabled = !_bDisable;
                        }
                        else if (item.GetType().Name.ToString().ToLower() == "gridpanel")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.GridPanel grd = (WSWD.WmallPos.POS.FX.Win.UserControls.GridPanel)item;
                            grd.Enabled = !_bDisable;
                        }
                        else if (item.GetType().Name.ToString().ToLower() == "panel")
                        {
                            Panel pnl   = (Panel)item;
                            pnl.Enabled = !_bDisable;
                        }
                    }
                });
            }
            else
            {
                foreach (var item in this.ContainerPanel.Controls)
                {
                    if (item.GetType().Name.ToString().ToLower() == "keypad")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad key = (WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad)item;
                        key.Enabled = !_bDisable;
                    }
                    else if (item.GetType().Name.ToString().ToLower() == "inputtext")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.InputText txt = (WSWD.WmallPos.POS.FX.Win.UserControls.InputText)item;
                        txt.Enabled = !_bDisable;
                    }
                    else if (item.GetType().Name.ToString().ToLower() == "button")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.Button btn = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)item;
                        btn.Enabled = !_bDisable;
                    }
                    else if (item.GetType().Name.ToString().ToLower() == "gridpanel")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.GridPanel grd = (WSWD.WmallPos.POS.FX.Win.UserControls.GridPanel)item;
                        grd.Enabled = !_bDisable;
                    }
                    else if (item.GetType().Name.ToString().ToLower() == "panel")
                    {
                        Panel pnl = (Panel)item;
                        pnl.Enabled = !_bDisable;
                    }
                }
            }

            //Application.DoEvents();
        }
Example #16
0
        void PQ11Grid_BuildCells(CellDataBoundEventArgs e)
        {
            Label     lbl   = null;
            InputText input = null;

            WSWD.WmallPos.POS.FX.Win.UserControls.Button btn = null;
            switch (e.Cell.ColumnIndex)
            {
            case 0:
                lbl = new Label()
                {
                    TextAlign = ContentAlignment.MiddleCenter,
                    AutoSize  = false,
                    Left      = 0,
                    Top       = 0,
                    Width     = e.Cell.Width,
                    Height    = e.Cell.Height,
                    BackColor = Color.Transparent
                };
                e.Cell.Controls.Add(lbl);
                break;

            case 1:
                lbl = new Label()
                {
                    TextAlign = ContentAlignment.MiddleLeft,
                    AutoSize  = false,
                    Left      = 0,
                    Top       = 0,
                    Width     = e.Cell.Width,
                    Height    = e.Cell.Height,
                    BackColor = Color.Transparent
                };
                e.Cell.Controls.Add(lbl);
                break;

            case 3:
                btn = new WSWD.WmallPos.POS.FX.Win.UserControls.Button()
                {
                    TextAlign = ContentAlignment.MiddleCenter,
                    Left      = 1,
                    Top       = 1,
                    Width     = e.Cell.Width - 2,
                    Height    = e.Cell.Height - 2,
                    Visible   = false
                };
                btn.Click += new EventHandler(GiftNoBtn_Click);
                e.Cell.Controls.Add(btn);
                break;

            case 2:
            case 4:
                lbl = new Label()
                {
                    TextAlign = ContentAlignment.MiddleRight,
                    AutoSize  = false,
                    Left      = 0,
                    Top       = 0,
                    Width     = e.Cell.Width,
                    Height    = e.Cell.Height,
                    BackColor = Color.Transparent
                };
                e.Cell.Controls.Add(lbl);
                break;

            case 8:
                input = new InputText()
                {
                    DataType    = WSWD.WmallPos.POS.FX.Shared.InputTextDataType.Numeric,
                    Format      = "#,###",
                    TextAlign   = ContentAlignment.MiddleCenter,
                    ReadOnly    = false,
                    HasBorder   = true,
                    Left        = 1,
                    Top         = 1,
                    Width       = e.Cell.Width - 2,
                    Height      = e.Cell.Height - 2,
                    BorderWidth = 1,
                    Corner      = 1,
                    MaxLength   = 1,
                    Padding     = new Padding(0, 0, 2, 0),
                    BorderColor = System.Drawing.Color.FromArgb(187, 187, 187),
                    Focusable   = true,
                    BackColor   = Color.White
                };
                input.InputLostFocused += new EventHandler(input_InputLostFocused);
                input.KeyEvent         += new WSWD.WmallPos.FX.Shared.OPOSKeyEventHandler(input_KeyEvent);
                e.Cell.Controls.Add(input);
                break;

            default:
                input = new InputText()
                {
                    Left        = 1,
                    Top         = 1,
                    Width       = e.Cell.Width - 2,
                    Height      = e.Cell.Height - 2,
                    DataType    = WSWD.WmallPos.POS.FX.Shared.InputTextDataType.Numeric,
                    Format      = "#,###",
                    TextAlign   = ContentAlignment.MiddleRight,
                    ReadOnly    = e.Cell.ColumnIndex == 6,
                    HasBorder   = true,
                    BorderWidth = 1,
                    Padding     = new Padding(0, 0, 2, 0),
                    Corner      = 1,
                    MaxLength   = 8,
                    BorderColor = System.Drawing.Color.FromArgb(187, 187, 187),
                    Focusable   = true,
                    BackColor   = Color.White
                };
                input.InputLostFocused += new EventHandler(input_InputLostFocused);
                e.Cell.Controls.Add(input);
                break;
            }
        }
Example #17
0
 void btnKRW_Click(object sender, EventArgs e)
 {
     WSWD.WmallPos.POS.FX.Win.UserControls.Button btn = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)sender;
     SetSelected(btn);
 }
Example #18
0
        /// <summary>
        /// 조회, 저장등의 DB, TRAN 시 Control Enable/Disable
        /// </summary>
        void SetControlDisable(bool bDisable)
        {
            _bDisable = bDisable;

            if (this.InvokeRequired)
            {
                this.BeginInvoke((MethodInvoker) delegate()
                {
                    foreach (var item in this.ContainerPanel.Controls)
                    {
                        if (item.GetType().Name.ToString().ToLower() == "keypad")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad key = (WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad)item;
                            key.Enabled = !_bDisable;
                        }
                        else if (item.GetType().Name.ToString().ToLower() == "inputtext")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.InputText txt = (WSWD.WmallPos.POS.FX.Win.UserControls.InputText)item;
                            txt.Enabled = !_bDisable;
                        }
                        else if (item.GetType().Name.ToString().ToLower() == "button")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.Button btn = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)item;
                            btn.Enabled = !_bDisable;

                            if (!_bDisable)
                            {
                                if (btn.Name.ToString() == btnSave.Name.ToString() &&
                                    grd.RowCount > 0 && grd.SelectedRowIndex >= 0)
                                {
                                    DataRow dr = (DataRow)grd.GetSelectedRow().ItemData;

                                    if (dr != null && TypeHelper.ToString(dr["FLAG_YN"]) == "Y")
                                    {
                                        btnSave.Enabled = false;
                                    }
                                    else
                                    {
                                        btnSave.Enabled = true;
                                    }
                                }
                            }
                        }
                    }
                });
            }
            else
            {
                foreach (var item in this.ContainerPanel.Controls)
                {
                    if (item.GetType().Name.ToString().ToLower() == "keypad")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad key = (WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad)item;
                        key.Enabled = !_bDisable;
                    }
                    else if (item.GetType().Name.ToString().ToLower() == "inputtext")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.InputText txt = (WSWD.WmallPos.POS.FX.Win.UserControls.InputText)item;
                        txt.Enabled = !_bDisable;
                    }
                    else if (item.GetType().Name.ToString().ToLower() == "button")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.Button btn = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)item;
                        btn.Enabled = !_bDisable;

                        if (!_bDisable)
                        {
                            if (btn.Name.ToString() == btnSave.Name.ToString() &&
                                grd.RowCount > 0 && grd.SelectedRowIndex >= 0)
                            {
                                DataRow dr = (DataRow)grd.GetSelectedRow().ItemData;

                                if (dr != null && TypeHelper.ToString(dr["FLAG_YN"]) == "Y")
                                {
                                    btnSave.Enabled = false;
                                }
                                else
                                {
                                    btnSave.Enabled = true;
                                }
                            }
                        }
                    }
                }
            }

            //Application.DoEvents();
        }
Example #19
0
        /// <summary>
        /// 조회, 저장등의 DB, TRAN 시 Control Enable/Disable
        /// </summary>
        void SetControlDisable(bool bDisable)
        {
            _bDisable = bDisable;

            if (this.InvokeRequired)
            {
                this.BeginInvoke((MethodInvoker) delegate()
                {
                    foreach (var item in this.Controls)
                    {
                        if (item.GetType().Name.ToString().ToLower() == "keypad")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad key = (WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad)item;
                            key.Enabled = !_bDisable;
                        }
                        else if (item.GetType().Name.ToString().ToLower() == "inputtext")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.InputText txt = (WSWD.WmallPos.POS.FX.Win.UserControls.InputText)item;
                            txt.Enabled = !_bDisable;
                        }
                        else if (item.GetType().Name.ToString().ToLower() == "button")
                        {
                            WSWD.WmallPos.POS.FX.Win.UserControls.Button btn = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)item;
                            btn.Enabled = !_bDisable;
                        }
                        else if (item.GetType().Name.ToString().ToLower() == "printlabelinfo")
                        {
                            PrintLabelInfo lbl = (PrintLabelInfo)item;
                            lbl.Enabled        = !_bDisable;
                        }
                        else if (item.GetType().Name.ToString().ToLower() == "salegridpanel")
                        {
                            SaleGridPanel grd = (SaleGridPanel)item;
                            grd.Enabled       = !_bDisable;
                        }
                    }
                });
            }
            else
            {
                foreach (var item in this.Controls)
                {
                    if (item.GetType().Name.ToString().ToLower() == "keypad")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad key = (WSWD.WmallPos.POS.FX.Win.UserControls.KeyPad)item;
                        key.Enabled = !_bDisable;
                    }
                    else if (item.GetType().Name.ToString().ToLower() == "inputtext")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.InputText txt = (WSWD.WmallPos.POS.FX.Win.UserControls.InputText)item;
                        txt.Enabled = !_bDisable;
                    }
                    else if (item.GetType().Name.ToString().ToLower() == "button")
                    {
                        WSWD.WmallPos.POS.FX.Win.UserControls.Button btn = (WSWD.WmallPos.POS.FX.Win.UserControls.Button)item;
                        btn.Enabled = !_bDisable;
                    }
                    else if (item.GetType().Name.ToString().ToLower() == "printlabelinfo")
                    {
                        PrintLabelInfo lbl = (PrintLabelInfo)item;
                        lbl.Enabled = !_bDisable;
                    }
                    else if (item.GetType().Name.ToString().ToLower() == "salegridpanel")
                    {
                        SaleGridPanel grd = (SaleGridPanel)item;
                        grd.Enabled = !_bDisable;
                    }
                }
            }

            //Application.DoEvents();
        }