using Swift.DAL.AccountReportOld; using Swift.web.Library; using System; using System.Data; using System.Linq; using System.Text; using System.Web; namespace Swift.web.AccountReportOld.BalanceSheetOld { public partial class BalanceSheetOld : System.Web.UI.Page { private readonly SwiftLibrary _s1 = new SwiftLibrary(); private readonly AccountStatementOldDAO st = new AccountStatementOldDAO(); private string rDate = ""; protected void Page_Load(object sender, EventArgs e) { _s1.CheckSession(); letterHead.Text = GetStatic.getCompanyHead(); rDate = GetReportDate(); GenerateReport(); } protected string GetReportDate() { return GetStatic.ReadQueryString("reportDate", ""); } private void GenerateReport() { decimal CurrAssestThis = 0, CurrAssestPrev = 0; decimal NonCurrAssestThis = 0, NonCurrAssestPrev = 0; double QuickAssetsThis = 0, QuickAssetsPrev = 0; double TangibleThis = 0, TangiblePrev = 0; double IntangibleThis = 0, IntangiblePrev = 0; double OtherAssetsThis = 0, OtherAssetsPrev = 0; double LibilityThis = 0, LibilityPrev = 0; double STOCKHOLDERThis = 0, STOCKHOLDERPrev = 0; double CapitalStockThis = 0, CapitalStockPrev = 0; double CapitalSurplusThis = 0, CapitalSurplusPrev = 0; double CapitalAdjustmentThis = 0, CapitalAdjustmentPrev = 0; double AccumulatedOtherComprehensiveIncomeThis = 0, AccumulatedOtherComprehensiveIncomePrev = 0; double ProfitLossThis = 0; double PreviouPeriodThis = 0, PreviouPeriodPrev = 0; double CurrentPeriodThis = 0, CurrentPeriodPrev = 0; double NonCurrentLibilityThis = 0, NonCurrentLibilityPrev = 0; reportDate.Text = rDate; var dt = st.GetBalancesheetReport(rDate); var QuickAssets = dt.Select("p_id = '1'"); var Inventories = dt.Select("p_id = 'r10'"); var InvestmentAssets = dt.Select("tree_sape = '0011.01'"); var CapitalWork = dt.Select("tree_sape = '0011.03'"); var TangibleAssets = dt.Select("p_id = '4'"); var IntangibleAssets = dt.Select("p_id = '6'"); var OtherAssets = dt.Select("p_id = '7'"); var CurrentLibility = dt.Select("p_id = 'r12'"); var NonCurrentLibility = dt.Select("p_id = 'r13'"); var STOCKHOLDER = dt.Select("p_id = 'r14'"); var CapitalStock = dt.Select("tree_sape = '0014.01'"); var CapitalSurplus = dt.Select("tree_sape = '0014.02'"); var CapitalAdjustment = dt.Select("tree_sape = '0014.03'"); var AccumulatedOtherComprehensiveIncome = dt.Select("tree_sape = '0014.04'"); var ProfitLoss = dt.Select("p_id = '21'"); var DepreciationAndAmortization = dt.Select("gl_code = '132'"); var sb = new StringBuilder(""); //
sb.AppendLine("
"); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); CurrAssestThis = QuickAssets.AsEnumerable().Sum(x => x.Field("THISYEAR")) + Inventories.AsEnumerable().Sum(x => x.Field("THISYEAR")); CurrAssestPrev = QuickAssets.AsEnumerable().Sum(x => x.Field("PREYEAR")) + Inventories.AsEnumerable().Sum(x => x.Field("PREYEAR")); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); GenerateRows(ref sb, QuickAssets, out QuickAssetsThis, out QuickAssetsPrev); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); //NonCurrAssestThis NonCurrAssestThis = InvestmentAssets.AsEnumerable().Sum(x => x.Field("THISYEAR")) + TangibleAssets.AsEnumerable().Sum(x => x.Field("THISYEAR")) + CapitalWork.AsEnumerable().Sum(x => x.Field("THISYEAR")) + IntangibleAssets.AsEnumerable().Sum(x => x.Field("THISYEAR")) + OtherAssets.AsEnumerable().Sum(x => x.Field("THISYEAR")); NonCurrAssestPrev = InvestmentAssets.AsEnumerable().Sum(x => x.Field("PREYEAR")) + TangibleAssets.AsEnumerable().Sum(x => x.Field("PREYEAR")) + CapitalWork.AsEnumerable().Sum(x => x.Field("PREYEAR")) + IntangibleAssets.AsEnumerable().Sum(x => x.Field("PREYEAR")) + OtherAssets.AsEnumerable().Sum(x => x.Field("PREYEAR")); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); GenerateRows(ref sb, TangibleAssets, out TangibleThis, out TangiblePrev); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); GenerateRows(ref sb, IntangibleAssets, out IntangibleThis, out IntangiblePrev); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); GenerateRows(ref sb, OtherAssets, out OtherAssetsThis, out OtherAssetsPrev); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); GenerateRows(ref sb, CurrentLibility, out LibilityThis, out LibilityPrev); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); GenerateRows(ref sb, NonCurrentLibility, out NonCurrentLibilityThis, out NonCurrentLibilityPrev); decimal totalLibilityThis = 0, totalLibilityPrev = 0; totalLibilityThis = CurrentLibility.AsEnumerable().Sum(x => x.Field("THISYEAR")) + NonCurrentLibility.AsEnumerable().Sum(x => x.Field("THISYEAR")); totalLibilityPrev = CurrentLibility.AsEnumerable().Sum(x => x.Field("PREYEAR")) + NonCurrentLibility.AsEnumerable().Sum(x => x.Field("PREYEAR")); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); decimal STOCKHOLDERMonth = 0, STOCKHOLDERYear = 0; STOCKHOLDERMonth = STOCKHOLDER.AsEnumerable().Sum(x => x.Field("THISYEAR")); STOCKHOLDERYear = STOCKHOLDER.AsEnumerable().Sum(x => x.Field("PREYEAR")); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); decimal capitalStockMonth = CapitalStock.AsEnumerable().Sum(x => x.Field("THISYEAR")); ; decimal capitalStockYear = CapitalStock.AsEnumerable().Sum(x => x.Field("PREYEAR")); ; sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); //GenerateRows(ref sb, CapitalStock, out CapitalStockThis, out CapitalStockPrev); decimal CapitalSurplusMonth = CapitalSurplus.AsEnumerable().Sum(x => x.Field("THISYEAR")); decimal CapitalSurplusYear = CapitalSurplus.AsEnumerable().Sum(x => x.Field("PREYEAR")); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); //GenerateRows(ref sb, CapitalSurplus, out CapitalSurplusThis, out CapitalSurplusPrev); decimal CapitalAdjustmentMonth = CapitalAdjustment.AsEnumerable().Sum(x => x.Field("THISYEAR")); ; decimal CapitalAdjustmentYear = CapitalAdjustment.AsEnumerable().Sum(x => x.Field("PREYEAR")); ; sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); //GenerateRows(ref sb, CapitalAdjustment, out CapitalAdjustmentThis, out CapitalAdjustmentPrev); decimal AccumulatedOtherComprehensiveIncomeMonth = AccumulatedOtherComprehensiveIncome.AsEnumerable().Sum(x => x.Field("THISYEAR")); ; decimal AccumulatedOtherComprehensiveIncomeYear = AccumulatedOtherComprehensiveIncome.AsEnumerable().Sum(x => x.Field("PREYEAR")); ; sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); //GenerateRows(ref sb, AccumulatedOtherComprehensiveIncome, out AccumulatedOtherComprehensiveIncomeThis, out AccumulatedOtherComprehensiveIncomePrev); decimal ProfitLossMonth = ProfitLoss.AsEnumerable().Sum(x => x.Field("THISYEAR")); decimal ProfitLossYear = ProfitLoss.AsEnumerable().Sum(x => x.Field("PREYEAR")); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); GenerateRowsPL(ref sb, ProfitLoss, out ProfitLossThis, out ProfitLossThis, GetStatic.ParseDouble(DepreciationAndAmortization[0]["THISYEAR"].ToString())); //GenerateRows(ref sb, ProfitLoss, out ProfitLossThis, out ProfitLossThis); //decimal CurrentPeriodMonth = CurrentPeriod.AsEnumerable().Sum(x => x.Field("THISYEAR")); ; //decimal CurrentPeriodCurrentYear = CurrentPeriod.AsEnumerable().Sum(x => x.Field("PREYEAR")); ; //sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); //GenerateRows(ref sb, CurrentPeriod, out CurrentPeriodThis, out CurrentPeriodPrev); //decimal PreviouPeriodMonth = PreviouPeriod.AsEnumerable().Sum(x => x.Field("THISYEAR")); ; //decimal PreviouPeriodYear = PreviouPeriod.AsEnumerable().Sum(x => x.Field("PREYEAR")); ; //sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); //GenerateRows(ref sb, PreviouPeriod, out PreviouPeriodThis, out PreviouPeriodPrev); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine(""); //sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine("
ASSETS For the period Previous Year Balance
Current Assets " + GetStatic.GetNegativeFigureOnBrac(CurrAssestThis.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(CurrAssestPrev.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(CurrAssestPrev.ToString()) + "
Quick Assets " + GetStatic.GetNegativeFigureOnBrac(QuickAssets.AsEnumerable().Sum(x => x.Field("THISYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(QuickAssets.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(QuickAssets.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + "
Inventories " + GetStatic.GetNegativeFigureOnBrac(Inventories.AsEnumerable().Sum(x => x.Field("THISYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(Inventories.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(Inventories.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + "
Non-current Assets " + GetStatic.GetNegativeFigureOnBrac(NonCurrAssestThis.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(NonCurrAssestPrev.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(NonCurrAssestPrev.ToString()) + "
Investment Assets " + GetStatic.GetNegativeFigureOnBrac(InvestmentAssets.AsEnumerable().Sum(x => x.Field("THISYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(InvestmentAssets.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(InvestmentAssets.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + "
Tangible Assets " + GetStatic.GetNegativeFigureOnBrac(TangibleAssets.AsEnumerable().Sum(x => x.Field("THISYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(TangibleAssets.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(TangibleAssets.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + "
Capital Work In Progress " + GetStatic.GetNegativeFigureOnBrac(CapitalWork.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(CapitalWork.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(CapitalWork.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + "
Intangible Assets " + GetStatic.GetNegativeFigureOnBrac(IntangibleAssets.AsEnumerable().Sum(x => x.Field("THISYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(IntangibleAssets.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(IntangibleAssets.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + "
Other Non-Current Assets " + GetStatic.GetNegativeFigureOnBrac(OtherAssets.AsEnumerable().Sum(x => x.Field("THISYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(OtherAssets.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(OtherAssets.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + "
TOTAL ASSETS " + GetStatic.GetNegativeFigureOnBrac((CurrAssestThis + NonCurrAssestThis).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac((CurrAssestPrev + NonCurrAssestPrev).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac((CurrAssestPrev + NonCurrAssestPrev).ToString()) + "
LIABILITIES
Current Liabilities " + GetStatic.GetNegativeFigureOnBrac(CurrentLibility.AsEnumerable().Sum(x => x.Field("THISYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(CurrentLibility.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(CurrentLibility.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + "
Non-current LiabiIities " + GetStatic.GetNegativeFigureOnBrac(NonCurrentLibility.AsEnumerable().Sum(x => x.Field("THISYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(NonCurrentLibility.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(NonCurrentLibility.AsEnumerable().Sum(x => x.Field("PREYEAR")).ToString()) + "
TOTAL LIABILITIES " + GetStatic.GetNegativeFigureOnBrac(totalLibilityThis.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(totalLibilityPrev.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(totalLibilityPrev.ToString()) + "
STOCKHOLDER'S EQUITY " + GetStatic.GetNegativeFigureOnBrac(STOCKHOLDERMonth.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(STOCKHOLDERThis.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(STOCKHOLDERThis.ToString()) + "
Capital Stock" + GetStatic.GetNegativeFigureOnBrac(capitalStockMonth.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(CapitalStockThis.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(CapitalStockThis.ToString()) + "
Capital Surplus" + GetStatic.GetNegativeFigureOnBrac(CapitalSurplusMonth.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(CapitalSurplusThis.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(CapitalSurplusThis.ToString()) + "
Capital Adjustment" + GetStatic.GetNegativeFigureOnBrac(CapitalAdjustmentMonth.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(CapitalAdjustmentThis.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(CapitalAdjustmentThis.ToString()) + "
Accumulated Other Comprehensive Income" + GetStatic.GetNegativeFigureOnBrac(AccumulatedOtherComprehensiveIncomeMonth.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(AccumulatedOtherComprehensiveIncomeThis.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(AccumulatedOtherComprehensiveIncomeThis.ToString()) + "
Profit & Loss Account" + GetStatic.GetNegativeFigureOnBrac((ProfitLossMonth + GetStatic.ParseDecimal(DepreciationAndAmortization[0]["THISYEAR"].ToString())).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(ProfitLossThis.ToString()) + " " + GetStatic.GetNegativeFigureOnBrac(ProfitLossThis.ToString()) + "
Current Period" + GetStatic.ShowAbsDecimal(CurrentPeriodMonth.ToString()) + " " + GetStatic.ShowAbsDecimal(CurrentPeriodThis.ToString()) + " " + GetStatic.ShowAbsDecimal(CurrentPeriodThis.ToString()) + "
Previous Period" + GetStatic.ShowAbsDecimal(PreviouPeriodMonth.ToString()) + " " + GetStatic.ShowAbsDecimal(PreviouPeriodThis.ToString()) + " " + GetStatic.ShowAbsDecimal(PreviouPeriodThis.ToString()) + "
TOTAL LIABILITIES AND STOCKHOLDERS EOUITY " + GetStatic.GetNegativeFigureOnBrac((totalLibilityThis + STOCKHOLDERMonth).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac((totalLibilityPrev + STOCKHOLDERYear).ToString()) + " " + GetStatic.GetNegativeFigureOnBrac((totalLibilityPrev + STOCKHOLDERYear).ToString()) + "
"); balanceSheetTable.InnerHtml = sb.ToString(); } private void GenerateRows(ref StringBuilder sb, DataRow[] rowsArray, out double monthTotal, out double yearTotal) { monthTotal = yearTotal = 0; foreach (DataRow item in rowsArray) { if (rowsArray == null || rowsArray.Length == 0) { break; } monthTotal = monthTotal + Convert.ToDouble(item["THISYEAR"].ToString()); yearTotal = yearTotal + Convert.ToDouble(item["PREYEAR"].ToString()); sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(item["gl_Name"].ToString()); sb.AppendLine(""); var THISMONTH = Convert.ToDouble(item["THISYEAR"].ToString()); var YEARTODATE = Convert.ToDouble(item["PREYEAR"].ToString()); sb.AppendLine(" "); sb.AppendLine(GetStatic.GetNegativeFigureOnBrac((THISMONTH).ToString())); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine("" + GetStatic.GetNegativeFigureOnBrac((YEARTODATE).ToString()) + ""); //sb.AppendLine("" + GetStatic.GetNegativeFigureOnBrac((YEARTODATE).ToString()) + ""); //sb.AppendLine(""); //sb.AppendLine(GetStatic.GetNegativeFigureOnBrac((YEARTODATE < 0 ? YEARTODATE * -1 : YEARTODATE).ToString())); //sb.AppendLine(""); sb.AppendLine(""); } } private void GenerateRowsPL(ref StringBuilder sb, DataRow[] rowsArray, out double monthTotal, out double yearTotal, double depreciation) { monthTotal = yearTotal = 0; int i = 0; foreach (DataRow item in rowsArray) { if (rowsArray == null || rowsArray.Length == 0) { break; } double THISMONTH = 0; double YEARTODATE = 0; if (i == 0) { monthTotal = monthTotal + Convert.ToDouble(item["THISYEAR"].ToString()) + depreciation; yearTotal = yearTotal + Convert.ToDouble(item["PREYEAR"].ToString()); THISMONTH = Convert.ToDouble(item["THISYEAR"].ToString()) + depreciation; YEARTODATE = Convert.ToDouble(item["PREYEAR"].ToString()); } else { monthTotal = monthTotal + Convert.ToDouble(item["THISYEAR"].ToString()); yearTotal = yearTotal + Convert.ToDouble(item["PREYEAR"].ToString()); THISMONTH = Convert.ToDouble(item["THISYEAR"].ToString()); YEARTODATE = Convert.ToDouble(item["PREYEAR"].ToString()); } sb.AppendLine(""); sb.AppendLine(""); sb.AppendLine(item["gl_Name"].ToString()); sb.AppendLine(""); sb.AppendLine(" "); sb.AppendLine(GetStatic.GetNegativeFigureOnBrac((THISMONTH).ToString())); sb.AppendLine(""); sb.AppendLine(""); //sb.AppendLine("" + GetStatic.GetNegativeFigureOnBrac((YEARTODATE).ToString()) + ""); //sb.AppendLine("" + GetStatic.GetNegativeFigureOnBrac((YEARTODATE).ToString()) + ""); //sb.AppendLine(""); //sb.AppendLine(GetStatic.GetNegativeFigureOnBrac((YEARTODATE < 0 ? YEARTODATE * -1 : YEARTODATE).ToString())); //sb.AppendLine(""); sb.AppendLine(""); i++; } } protected void pdf_Click(object sender, EventArgs e) { GetStatic.GetPDF(HttpUtility.UrlDecode(hidden.Value)); } } }