private inputReceiptYearCollectin GetPageData(inputReceiptYearCollectin objShouSchs) { inputReceiptYearCollectin inputReceiptYearCollectin = new inputReceiptYearCollectin(); if (objShouSchs.Count > this.pageSize * (objShouSchs.Count / this.pageSize)) { this.pc.PageCount = objShouSchs.Count / this.pageSize + 1; } else { this.pc.PageCount = objShouSchs.Count / this.pageSize; } if (objShouSchs.Count > this.pageSize * (this.pc.CurrentPageIndex - 1)) { int num = this.pageSize * this.pc.CurrentPageIndex; if (objShouSchs.Count < this.pageSize * this.pc.CurrentPageIndex) { num = objShouSchs.Count; } for (int i = this.pageSize * (this.pc.CurrentPageIndex - 1); i < num; i++) { inputReceiptYearCollectin.Add(objShouSchs[i]); } } else { inputReceiptYearCollectin = objShouSchs; } return(inputReceiptYearCollectin); }
public inputReceiptYearCollectin GetYearPlanInfos(string prjCode) { string sqlString = "select * from Prj_IncomeDevotionPlan "; inputReceiptYearCollectin collectin = new inputReceiptYearCollectin(); foreach (DataRow row in publicDbOpClass.DataTableQuary(sqlString).Rows) { collectin.Add(this.FormatToModel(row)); } return(collectin); }