Exemplo n.º 1
0
        void PositionDetailsComp_Loaded(object sender, RoutedEventArgs e)
        {
            lblAsset.Content       = _POSDetail.AssetNumber;
            lblDate.Content        = _POSDetail.HandPayDate;
            lblGame.Content        = _POSDetail.GameName;
            lblPosition.Content    = _POSDetail.PostionNumber;
            lblTime.Content        = _POSDetail.HandPayTime;
            lblHandPayType.Content = _POSDetail.HandPayType;
            if (string.IsNullOrEmpty(_POSDetail.HandPayValue))
            {
                lblHandPayValue.Content = "";
            }
            else
            {
                lblHandPayValue.Content = CommonBusinessObjects.GetCurrency(Convert.ToDouble(_POSDetail.HandPayValue));
            }
            lblPlayerAccount.Content    = _POSDetail.PlayerAccountNumber;
            lblPlayerName.Content       = _POSDetail.PlayerName;
            lblPlayerStatus.Content     = _POSDetail.PlayerClubStatus;
            lblPlayerTimeOfPlay.Content = _POSDetail.PlayerTimeOfPlay;

            if (_POSDetail.GameName.ToString().Trim() == String.Empty)
            {
                btnEnrol.Content = "Install Machine";
            }
            else
            {
                btnEnrol.Content = "Remove Machine";
            }
        }
        private void FillPrizeList()
        {
            List <PrizeInfoDTO> objPrizeList = null;
            Binding             bind         = null;

            try
            {
                objPrizeList = playerInformationBusinessObject.RetreivePrizeInfo(txtAcctNo.Text);
                IList <PrizeInfoDTO> objPrizeInfoDTOList = new List <PrizeInfoDTO>();
                PrizeInfoDTO         objPrizeInfoDTO     = null;

                if (objPrizeList != null)
                {
                    foreach (PrizeInfoDTO objPInfo in objPrizeList)
                    {
                        objPrizeInfoDTO              = new PrizeInfoDTO();
                        objPrizeInfoDTO.AuthAward    = CommonBusinessObjects.GetCurrency(objPInfo.AuthAward);
                        objPrizeInfoDTO.AwardUsed    = objPInfo.AwardUsed.ToString();
                        objPrizeInfoDTO.BasePoints   = objPInfo.BasePoints.ToString();
                        objPrizeInfoDTO.BonusPoints  = objPInfo.BonusPoints.ToString();
                        objPrizeInfoDTO.PrizeId      = objPInfo.PrizeId.ToString();
                        objPrizeInfoDTO.PrizeName    = objPInfo.PrizeName.ToString();
                        objPrizeInfoDTO.RedeemPoints = objPInfo.RedeemPoints.ToString();
                        objPrizeInfoDTOList.Add(objPrizeInfoDTO);
                    }
                    bind        = new Binding();
                    bind.Source = objPrizeInfoDTOList;
                    lvRedeemPrizeList.SetBinding(ListView.ItemsSourceProperty, bind);
                    bind.Source = null;
                }
                else
                {
                    bind        = new Binding();
                    bind.Source = null;
                    lvRedeemPrizeList.SetBinding(ListView.ItemsSourceProperty, bind);
                    lblCashValue.Content        = (oCommonUtilities.CreateInstance()).GetCurrency(0.00);
                    lblUnitPointValue.Content   = "0";
                    lblPrizeDescription.Content = string.Empty;
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }
Exemplo n.º 3
0
        private void FillHandpays()
        {
            IHandpay  objCashDeskOperator = HandpayBusinessObject.CreateInstance();
            DataTable dtHandpay           = objCashDeskOperator.GetUnprocessedHandpays();

            foreach (DataRow row in dtHandpay.Rows)
            {
                row["Amount"] = CommonBusinessObjects.GetCurrency(Convert.ToDouble(row["Amount"]));
            }
            Binding bind = new Binding();

            bind.Source = dtHandpay;

            lvUnprocessedHandpays.SetBinding(ListView.ItemsSourceProperty, bind);

            if (lvUnprocessedHandpays.Items.Count > 0)
            {
                lvUnprocessedHandpays.SelectedItem = 0;
                DataRowView row = (DataRowView)lvUnprocessedHandpays.SelectedItem;
                txtSelectedValue.Text = row["Amount"].ToString();
            }
        }