コード例 #1
0
ファイル: POS_SL_P007.cs プロジェクト: nhhuy1804/Wmall
        void gpPQ11_RowDataBound(WSWD.WmallPos.POS.FX.Win.UserControls.RowDataBoundEventArgs e)
        {
            RtnPrsGiftData data = (RtnPrsGiftData)e.ItemData;

            e.Row.Cells[0].Controls[0].Text = (e.Row.RowIndex + 1).ToString("d2");
            e.Row.Cells[1].Controls[0].Text = data != null ? data.GiftNo : string.Empty;
            e.Row.Cells[1].Controls[0].Tag  = true; // no changes
            e.Row.Cells[2].Controls[0].Text = data == null ? string.Empty : string.Format("{0:#,###}", TypeHelper.ToInt32(data.GiftCount));
            e.Row.Cells[3].Controls[0].Text = data == null ? string.Empty : string.Format("{0:#,###}", TypeHelper.ToInt32(data.GiftAmt));
            e.Row.Cells[4].Controls[0].Text = data == null ? string.Empty : data.GiftUsage;
        }
コード例 #2
0
ファイル: POS_SL_P007.cs プロジェクト: nhhuy1804/Wmall
        private void BindGiftList()
        {
            List <RtnPrsGiftData> list = null;

            if (m_retGiftList.ContainsKey(m_exchGiftNo))
            {
                list = m_retGiftList[m_exchGiftNo];
            }

            for (int i = 0; i < 10; i++)
            {
                RtnPrsGiftData item = null;
                if (list != null && i < list.Count)
                {
                    item = list[i];
                }

                gpPQ11.AddRow(item);
            }

            gpPQ11.PageIndex = 0;
        }