public void FillData(RecordLookItemObj obj)
    {
        if (uint.Parse(obj.data[0]) == XiaJiYingKuiTongjiPanel.GetLastId())
        {
            chakanxiajiBtn.SetActive(false);
        }
        else
        {
            chakanxiajiBtn.SetActive(true);
        }

        for (int i = 0; i < Labels.Length; ++i)
        {
            Labels[i].text = obj.data[i];
        }
    }
    void OnPre(GameObject go)
    {
        AudioController.Instance.SoundPlay("active_item");

        if (_RecordBackObj.iCuePage > 1)
        {
            int page = _RecordBackObj.iCuePage - 1;
            NetworkManager.Instance.LookupRecord(byRord, (byte)page, byRord, page, XiaJiYingKuiTongjiPanel.chName, XiaJiYingKuiTongjiPanel.startDate, XiaJiYingKuiTongjiPanel.endDate, (int)XiaJiYingKuiTongjiPanel.GetLastId(), XiaJiYingKuiTongjiPanel.chBySj);
            ProcessGameObjs(0);
        }
        else
        {
            msgSignal.Dispatch(new MsgPara("已无更多记录", 2));
        }
    }
    void OnNext(GameObject go)
    {
        AudioController.Instance.SoundPlay("active_item");
        int totalRecord = _RecordBackObj.iCountRecord;
        int pageSize    = (int)_RecordBackObj.byPages;
        int totalPages  = totalRecord % pageSize > 0 ? 1 + (totalRecord / pageSize) : 0 + (totalRecord / pageSize);

        if (_RecordBackObj.iCuePage < totalPages)
        {
            int page = _RecordBackObj.iCuePage + 1;
            NetworkManager.Instance.LookupRecord(byRord, (byte)page, byRord, page, XiaJiYingKuiTongjiPanel.chName, XiaJiYingKuiTongjiPanel.startDate, XiaJiYingKuiTongjiPanel.endDate, (int)XiaJiYingKuiTongjiPanel.GetLastId(), XiaJiYingKuiTongjiPanel.chBySj);
            ProcessGameObjs(0);
        }
        else
        {
            msgSignal.Dispatch(new MsgPara("已无更多记录", 2));
        }
    }
 void Onkanxiaji(GameObject go)
 {
     XiaJiYingKuiTongjiPanel.AddNameId(Labels[1].text, uint.Parse(Labels[0].text));
     NetworkManager.Instance.LookupRecord(XiaJiYingKuiTongjiPanel.byRord, 2, XiaJiYingKuiTongjiPanel.byRord, 1, XiaJiYingKuiTongjiPanel.chName, XiaJiYingKuiTongjiPanel.startDate, XiaJiYingKuiTongjiPanel.endDate, (int)XiaJiYingKuiTongjiPanel.GetLastId(), XiaJiYingKuiTongjiPanel.chBySj);
 }
Exemple #5
0
    void OnSearch(GameObject go)
    {
        AudioController.Instance.SoundPlay("active_item");
        string chName = "";

        if (!string.IsNullOrEmpty(MemberIdInput.value))
        {
            chName += string.Format("<&>UserID={0}", MemberIdInput.value);
        }
        if (!string.IsNullOrEmpty(MemberAccInput.value))
        {
            chName += string.Format("<&>UserName='******'", MemberAccInput.value);
        }

        string sortype = "";

        if (sortType.value == "团队充值")
        {
            sortype = "PayMoney#{0}";
        }
        else if (sortType.value == "团队取款")
        {
            sortype = "OutMoney#{0}";
        }
        else if (sortType.value == "团队投注")
        {
            sortype = "OrderAmount#{0}";
        }
        else if (sortType.value == "团队中奖")
        {
            sortype = "BingoMoney#{0}";
        }
        else if (sortType.value == "团队返点")
        {
            sortype = "OrderPoint#{0}";
        }
        else if (sortType.value == "团队盈亏")
        {
            sortype = "OrderResult#{0}";
        }
        else if (sortType.value == "团队广告")
        {
            sortype = "PlayAd#{0}";
        }
        string chbysj = "";

        if (sortMethod.value == "升序")
        {
            chbysj = string.Format(sortype, ">");
        }
        else
        {
            chbysj = string.Format(sortype, "<");
        }

        XiaJiYingKuiTongjiPanel.startDate = TimeHelper.GetTimeFromStr(StartDateInput.value) == 0?TimeHelper.GetNowTime():TimeHelper.GetTimeFromStr(StartDateInput.value);
        XiaJiYingKuiTongjiPanel.endDate   = TimeHelper.GetTimeFromStr(EndDateInput.value) == 0?TimeHelper.GetNowTime():TimeHelper.GetTimeFromStr(EndDateInput.value);
        XiaJiYingKuiTongjiPanel.chName    = chName;
        XiaJiYingKuiTongjiPanel.chBySj    = chbysj;

        NetworkManager.Instance.LookupRecord(XiaJiYingKuiTongjiPanel.byRord, 2, XiaJiYingKuiTongjiPanel.byRord, 1, XiaJiYingKuiTongjiPanel.chName, XiaJiYingKuiTongjiPanel.startDate, XiaJiYingKuiTongjiPanel.endDate, (int)XiaJiYingKuiTongjiPanel.GetLastId(), XiaJiYingKuiTongjiPanel.chBySj);
    }