public void RefreshDateRange() { try { this.ResetDateTitleHtml(); this.ResetContractDateRange(); CostBudgetPageRule.ClearFieldValue(this.tb, new string[] { "PlanDataHtml" }); if ((this.StartYm != "") && (this.EndYm != "")) { foreach (DataRow row in this.tb.Rows) { string text = ""; string text2 = row["RecordType"].ToString(); string contractCode = ConvertRule.ToString(row["ContractCode"]); string costCode = ConvertRule.ToString(row["CostCode"]); string text5 = ConvertRule.ToString(row["FullCode"]); string pBSCode = ConvertRule.ToString(row["PBSCode"]); int monthsBetween = StringRule.GetMonthsBetween(this.StartYm, this.EndYm); for (int i = 0; i < monthsBetween; i++) { string text12; string text7 = StringRule.YmAddMonths(this.StartYm, i); string s = string.Format("{0}-{1}-01", text7.Substring(0, 4), text7.Substring(4, 2)); string payoutDateEnd = DateTime.Parse(s).AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd"); string text10 = "PayoutMoneyYm_" + text7; string money = StringRule.BuildShowNumberString(row[text10]); if (pBSCode == "") { text12 = CostBudgetPageRule.GetContractPayRealHref(money, costCode, contractCode, "", s, payoutDateEnd, this.PBSType, pBSCode); } else { text12 = money; } if (text12 == "") { text = text + string.Format("<td>{0}</td>", text12); } else { text = text + string.Format("<td align=right nowrap>{0}</td>", text12); } } row["PlanDataHtml"] = text; } } } catch (Exception exception) { throw exception; } }
public void RefreshDateRange() { try { this.ResetDateTitleHtml(); this.ResetContractDateRange(); CostBudgetPageRule.ClearFieldValue(this.tb, new string[] { "PlanDataHtml" }); int num = -1; if ((this.StartYm != "") && (this.EndYm != "")) { foreach (DataRow row in this.tb.Rows) { num++; string text = ""; string text2 = row["RecordType"].ToString(); string text3 = ConvertRule.ToString(row["ContractCode"]); string text4 = ConvertRule.ToString(row["CostCode"]); string text5 = ConvertRule.ToString(row["FullCode"]); string text6 = ConvertRule.ToString(row["ParentCode"]); string text7 = ConvertRule.ToString(row["ClassTd"]); int monthsBetween = StringRule.GetMonthsBetween(this.StartYm, this.EndYm); for (int i = 0; i < monthsBetween; i++) { string text8 = StringRule.YmAddMonths(this.StartYm, i); string text10 = DateTime.Parse(string.Format("{0}-{1}-01", text8.Substring(0, 4), text8.Substring(4, 2))).AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd"); string text11 = "PlanMoneyYm_" + text8; string text12 = StringRule.BuildShowNumberString(row[text11]); if (this.ReadOnly) { text = text + string.Format("<td align=right nowrap class=\"{1}\">{0}</td>", text12, text7); } } row["PlanDataHtml"] = text; } } } catch (Exception exception) { throw exception; } }
public void RefreshDateRange() { try { this.ResetDateTitleHtml(); CostBudgetPageRule.ClearFieldValue(this.tb, new string[] { "PlanDataHtml" }); if ((this.StartYm != "") && (this.EndYm != "")) { foreach (DataRow row in this.tb.Rows) { string costCode = ConvertRule.ToString(row["CostCode"]); string text2 = ""; int monthsBetween = StringRule.GetMonthsBetween(this.StartYm, this.EndYm); for (int i = 0; i < monthsBetween; i++) { string text3 = StringRule.YmAddMonths(this.StartYm, i); string s = string.Format("{0}-{1}-01", text3.Substring(0, 4), text3.Substring(4, 2)); string payoutDateEnd = DateTime.Parse(s).AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd"); string text6 = "PayoutMoneyYm_" + text3; string text8 = GetPayoutHref(StringRule.BuildShowNumberString(row[text6]), costCode, s, payoutDateEnd); if (text8 == "") { text2 = text2 + string.Format("<td>{0}</td>", text8); } else { text2 = text2 + string.Format("<td align=right nowrap>{0}</td>", text8); } } row["PlanDataHtml"] = text2; } } } catch (Exception exception) { throw exception; } }