Exemplo n.º 1
0
        void gpHoldList_RowDataBound(WSWD.WmallPos.POS.FX.Win.UserControls.RowDataBoundEventArgs e)
        {
            SAT900TData data = e.ItemData != null ? (SAT900TData)e.ItemData : new SAT900TData();

            e.Row.Cells[0].Controls[0].Text = data.NoBoru;
            e.Row.Cells[1].Controls[0].Text = data.DdTime;
            e.Row.Cells[2].Controls[0].Text = data.AmSale.MoneyToText();
        }
Exemplo n.º 2
0
        /// <summary>
        /// 보류조회
        /// </summary>
        void SelectBoruData()
        {
            if (string.IsNullOrEmpty(iptNoBoru.Text))
            {
                if (gpHoldList.RowCount == 0)
                {
                    return;
                }

                SAT900TData data = (SAT900TData)gpHoldList.GetSelectedRow().ItemData;
                iptNoBoru.Text = data.NoBoru;
            }

            if (this.iptNoBoru.Text.Length < 4)
            {
                this.ReportError(SLP003HoldErrorState.NoBoruNotExists);
                return;
            }

            string ddSale = ConfigData.Current.AppConfig.PosInfo.SaleDate;

            m_selectedNoBoru = string.Empty;
            if (this.iptNoBoru.Text.Length >= 4)
            {
                m_selectedNoBoru = iptNoBoru.Text.Substring(iptNoBoru.Text.Length - 4, 4);
            }

            if (iptNoBoru.Text.Length == 14)
            {
                ddSale = "20" + this.iptNoBoru.Text.Substring(0, 6);
                string posNo = this.iptNoBoru.Text.Substring(6, 4);
                if (!ConfigData.Current.AppConfig.PosInfo.PosNo.Equals(posNo))
                {
                    this.ReportError(SLP003HoldErrorState.NoBoruNotExists);
                    return;
                }
            }
            else if (iptNoBoru.Text.Length == 16)
            {
                ddSale = "20" + this.iptNoBoru.Text.Substring(2, 6);
                string posNo = this.iptNoBoru.Text.Substring(8, 4);
                if (!ConfigData.Current.AppConfig.PosInfo.PosNo.Equals(posNo))
                {
                    this.ReportError(SLP003HoldErrorState.NoBoruNotExists);
                    return;
                }
            }

            if (string.IsNullOrEmpty(m_selectedNoBoru))
            {
                this.ReportError(SLP003HoldErrorState.NoBoruNotExists);
                return;
            }

            iptNoBoru.Text = string.Empty;
            m_presenter.LoadHoldItems(ddSale, m_selectedNoBoru);
        }