public void SetData(List <PaymentSumTeacherEntity> data) { this.paymentList = data; //合计行 if (paymentList.Count > 0) { totalPayment = paymentList[paymentList.Count - 1]; } }
public SumByTeacherAdapter(Context context, List <PaymentSumTeacherEntity> data) { this.mContext = context; paymentList = data; //合计行 if (paymentList.Count > 0) { totalPayment = paymentList[paymentList.Count - 1]; } }