public void FillData(RecordLookItemObj obj) { if (uint.Parse(obj.data[0]) == XiaJiYouXiYingKuiPanel.GetLastId()) { opBtn.SetActive(false); } else { opBtn.SetActive(true); } for (int i = 0; i < Labels.Length; ++i) { Labels[i].text = obj.data[i]; } }
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 = "playResult#{0}"; } else if (sortType.value == "团队棋牌返点") { sortype = "qpPoint#{0}"; } string chbysj = ""; if (sortMethod.value == "升序") { chbysj = string.Format(sortype, ">"); } else { chbysj = string.Format(sortype, "<"); } XiaJiYouXiYingKuiPanel.startDate = TimeHelper.GetTimeFromStr(StartDateInput.value) == 0?TimeHelper.GetNowTime():TimeHelper.GetTimeFromStr(StartDateInput.value); XiaJiYouXiYingKuiPanel.endDate = TimeHelper.GetTimeFromStr(EndDateInput.value) == 0?TimeHelper.GetNowTime():TimeHelper.GetTimeFromStr(EndDateInput.value); XiaJiYouXiYingKuiPanel.chName = chName; XiaJiYouXiYingKuiPanel.chBySj = chbysj; NetworkManager.Instance.LookupRecord(XiaJiYouXiYingKuiPanel.byRord, 2, XiaJiYouXiYingKuiPanel.byRord, 1, XiaJiYouXiYingKuiPanel.chName, XiaJiYouXiYingKuiPanel.startDate, XiaJiYouXiYingKuiPanel.endDate, (int)XiaJiYouXiYingKuiPanel.GetLastId(), XiaJiYouXiYingKuiPanel.chBySj); }
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, XiaJiYouXiYingKuiPanel.chName, XiaJiYouXiYingKuiPanel.startDate, XiaJiYouXiYingKuiPanel.endDate, (int)XiaJiYouXiYingKuiPanel.GetLastId(), XiaJiYouXiYingKuiPanel.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, XiaJiYouXiYingKuiPanel.chName, XiaJiYouXiYingKuiPanel.startDate, XiaJiYouXiYingKuiPanel.endDate, (int)XiaJiYouXiYingKuiPanel.GetLastId(), XiaJiYouXiYingKuiPanel.chBySj); ProcessGameObjs(0); } else { msgSignal.Dispatch(new MsgPara("已无更多记录", 2)); } }
void Onkanxiaji(GameObject go) { XiaJiYouXiYingKuiPanel.AddNameId(Labels[1].text, uint.Parse(Labels[0].text)); NetworkManager.Instance.LookupRecord(XiaJiYouXiYingKuiPanel.byRord, 2, XiaJiYouXiYingKuiPanel.byRord, 1, XiaJiYouXiYingKuiPanel.chName, XiaJiYouXiYingKuiPanel.startDate, XiaJiYouXiYingKuiPanel.endDate, (int)XiaJiYouXiYingKuiPanel.GetLastId(), XiaJiYouXiYingKuiPanel.chBySj); }