private DataTable GetData1() { string planType = base.Request["PlanType"].ToString(); Fund_Report fund_Report = new Fund_Report(); string arg_27_0 = this.txtProject.Text; string arg_33_0 = this.txtContract.Text; int planYear = DateTime.Now.Year; int planMonth = DateTime.Now.Month; if (this.txtDate.Text.ToString() != "") { string[] array = this.txtDate.Text.ToString().Split(new char[] { '-' }); int num = 0; string[] array2 = array; for (int i = 0; i < array2.Length; i++) { string value = array2[i]; if (num == 0) { planYear = Convert.ToInt32(value); } else { if (num == 1) { planMonth = Convert.ToInt32(value); } } num++; } } DataTable payoutPlanInfo = fund_Report.getPayoutPlanInfo(base.UserCode, planYear, planMonth, this.txtProject.Text, this.hfldContract.Value, planType); decimal d = 0m; decimal d2 = 0m; decimal d3 = 0m; decimal d4 = 0m; for (int j = 0; j < payoutPlanInfo.Rows.Count; j++) { d += Convert.ToDecimal(payoutPlanInfo.Rows[j]["beforePlanMoney"].ToString()); d2 += Convert.ToDecimal(payoutPlanInfo.Rows[j]["conPayMoney"].ToString()); d3 += Convert.ToDecimal(payoutPlanInfo.Rows[j]["ExecuteVariation"].ToString()); d4 += Convert.ToDecimal(payoutPlanInfo.Rows[j]["PlanMoney"].ToString()); if (payoutPlanInfo.Rows[j][2].ToString() == "小计") { payoutPlanInfo.Rows[j]["beforePlanMoney"] = d.ToString(); payoutPlanInfo.Rows[j]["conPayMoney"] = d2.ToString(); payoutPlanInfo.Rows[j]["ExecuteVariation"] = d3.ToString(); payoutPlanInfo.Rows[j]["PlanMoney"] = d4.ToString(); d = 0m; d2 = 0m; d3 = 0m; d4 = 0m; } } return(payoutPlanInfo); }
private DataTable GetData() { string planType = base.Request["PlanType"].ToString(); Fund_Report fund_Report = new Fund_Report(); string arg_27_0 = this.txtProject.Text; string arg_33_0 = this.txtContract.Text; int planYear = DateTime.Now.Year; int planMonth = DateTime.Now.Month; if (this.txtDate.Text != "") { string[] array = this.txtDate.Text.Split(new char[] { '-' }); int num = 0; string[] array2 = array; for (int i = 0; i < array2.Length; i++) { string value = array2[i]; if (num == 0) { planYear = Convert.ToInt32(value); } else { if (num == 1) { planMonth = Convert.ToInt32(value); } } num++; } } return(fund_Report.getPayoutPlanInfo(base.UserCode, planYear, planMonth, this.txtProject.Text, this.hfldContract.Value, planType)); }