Example #1
0
        //充值记录
        public void NcRechargeRecord(HallTransfer.RecordRequest rechargeRequest)
        {
            uint     UserID   = GameApp.GameData.UserInfo.UserID;
            uint     Page     = rechargeRequest.dwPage;
            uint     PageSize = rechargeRequest.dwPageSize;
            DateTime tempTime = rechargeRequest.dwTime;
            string   Key      = GameApp.GameData.PrivateKey;

            GameApp.BackendSrv.GetRechargeRecord(UserID, Page, PageSize, tempTime, Key, b =>
            {
                if (b != null && b.Code == 0)
                {
                    List <HallTransfer.RechargeRecord> rechargelist = new List <HallTransfer.RechargeRecord>();

                    if (b.Data != null)
                    {
                        foreach (var temp in b.Data)
                        {
                            HallTransfer.RechargeRecord tempRecharge = new HallTransfer.RechargeRecord();
                            tempRecharge.dwApplyNumber = temp.OrderNo;
                            tempRecharge.dwMoney       = (Int64)temp.PayAmount;
                            tempRecharge.dwState       = temp.OrderStatus;
                            tempRecharge.dwOrderId     = temp.OrderId;
                            if (temp.OrderStatus == -1)
                            {
                                tempRecharge.dwRemark = temp.CancelRemark;
                            }
                            else
                            {
                                tempRecharge.dwRemark = temp.SubmitRemark;
                            }
                            tempRecharge.dwTime     = temp.OrderTime;
                            tempRecharge.dwAllCount = b.AllCount;
                            rechargelist.Add(tempRecharge);
                        }
                    }
                    HallTransfer.Instance.cnRechargeRecond(b.Code, rechargelist);
                }
            });
        }
Example #2
0
    public void OnClick()
    {
        //Debug.LogWarning ("awardRecord_btnClick~~~~~~");
        HallTransfer.Instance.uiConfig.curRechargeRecordPage = 1;
        HallTransfer.Instance.uiConfig.curRechargeRPageCount = 1;
        HallTransfer.Instance.msgTooLate_AwLogs   = true;
        HallTransfer.Instance.canReceiveRecord_Aw = true;

        //初始化日期下拉菜单
        GameObject tempDateList = HallTransfer.Instance.uiConfig.page_recharge.transform.FindChild("front_panel").FindChild("content").FindChild("awardRecords").FindChild("datePopup_list").gameObject;

        tempDateList.GetComponent <UIPopupList>().Clear();
        tempDateList.GetComponent <UIPopupList>().value = DateTime.Now.ToString("yyyy-MM-dd");

        for (int i = 4; i >= 0; i--)
        {
            dt = DateTime.Now.AddDays(-i);
            tempDateList.GetComponent <UIPopupList>().AddItem(dt.ToString("yyyy-MM-dd"));
        }


        if (HallTransfer.Instance.ncAwardRecord != null)
        {
            record            = new HallTransfer.RecordRequest();
            record.dwPage     = 1;
            record.dwPageSize = 10;
            record.dwTime     = DateTime.Now;
            //	record.dwTime = UInt64.Parse(DateTime.Now.ToFileTime().ToString());
            //	Debug.LogWarning ( "time~~:" + record.dwTime);

            if (HallTransfer.Instance.uiConfig.page_recharge_mask != null)
            {
                HallTransfer.Instance.uiConfig.page_recharge_mask.SetActive(true);
            }
            HallTransfer.Instance.ncAwardRecord(record);

            Invoke("onResumeBtn", 5.0f);
        }
    }
Example #3
0
    // Update is called once per frame
    //void Update () {

    //}

    public void OnClick()
    {
        uint curPage = HallTransfer.Instance.uiConfig.curRechargeRecordPage;

        if (prePage)
        {
            //上一页
//			Debug.LogWarning ("prePage~");

            Int32 firstIndex = 0;

            try
            {
                firstIndex = Int32.Parse(recordLogs.transform.FindChild("log0").FindChild("index_label").GetComponent <UILabel>().text);
            }
            catch
            {
                firstIndex = 0;
            }

            if (firstIndex > 10)
            {
                firstIndex -= 10;

                if (HallTransfer.Instance.uiConfig.curRechargeRecordPage > 0)
                {
                    HallTransfer.Instance.uiConfig.curRechargeRecordPage -= 1;
                }
                else
                {
                    HallTransfer.Instance.uiConfig.curRechargeRecordPage = 1;
                }


                record = new HallTransfer.RecordRequest();

                record.dwPage     = HallTransfer.Instance.uiConfig.curRechargeRecordPage;
                record.dwPageSize = 10;
                record.dwTime     = DateTime.Now;

                if (isRecharge)
                {
                    HallTransfer.Instance.ncRechargeRecord(record);
                }
                else if (isAward)
                {
                    HallTransfer.Instance.ncAwardRecord(record);
                }
            }
            this.gameObject.GetComponent <UIButton> ().isEnabled = false;
            if (HallTransfer.Instance.uiConfig.MobileEdition)
            {
                Invoke("OnResumeBtn", 0.5f);
            }
            else
            {
                Invoke("OnResumeBtn", 0.2f);
            }
        }
        else if (nextPage)
        {
            //下一页
//			Debug.LogWarning ("nextPage~");

            if (curPage + 1 <= HallTransfer.Instance.uiConfig.curRechargeRPageCount)
            {
                curPage += 1;
                HallTransfer.Instance.uiConfig.curRechargeRecordPage += 1;

                record = new HallTransfer.RecordRequest();

                record.dwPage     = curPage;
                record.dwPageSize = 10;
                record.dwTime     = DateTime.Now;

                if (isRecharge)
                {
                    HallTransfer.Instance.ncRechargeRecord(record);
                }
                else if (isAward)
                {
                    HallTransfer.Instance.ncAwardRecord(record);
                }
            }
            this.gameObject.GetComponent <UIButton> ().isEnabled = false;
            if (HallTransfer.Instance.uiConfig.MobileEdition)
            {
                Invoke("OnResumeBtn", 0.5f);
            }
            else
            {
                Invoke("OnResumeBtn", 0.2f);
            }
        }
        else
        {
            //HallTransfer.Instance.uiConfig.curRechargeRecordPage = 1;
            //HallTransfer.Instance.uiConfig.curRechargeRPageCount = 1;
        }
    }