using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.OracleClient;

public partial class PrintGL : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            int index = int.Parse(Request.QueryString["ID"]);
            //string eventID = GridView1.Rows[index].Cells[1].Text.ToString();
            //string channelID = GridView1.Rows[index].Cells[0].Text.ToString();
            //string account = GridView1.Rows[index].Cells[2].Text.ToString();
            //string accountName = GridView1.Rows[index].Cells[3].Text.ToString();
            //string trans_type = GridView1.Rows[index].Cells[5].Text.ToString();
            //string posted = GridView1.Rows[index].Cells[6].Text.ToString();
            //string approved = GridView1.Rows[index].Cells[7].Text.ToString();
            //string declined = GridView1.Rows[index].Cells[8].Text.ToString();
            //string amount = GridView1.Rows[index].Cells[9].Text.ToString();
            //string record_date = GridView1.Rows[index].Cells[17].Text.ToString();
            //string posting_for_date = GridView1.Rows[index].Cells[18].Text.ToString();
            //string post_date = GridView1.Rows[index].Cells[19].Text.ToString();
            //string approve_date = GridView1.Rows[index].Cells[20].Text.ToString();
            //string file_number = GridView1.Rows[index].Cells[21].Text.ToString();
            //string re_code = GridView1.Rows[index].Cells[22].Text.ToString();
            //string rc_code = GridView1.Rows[index].Cells[23].Text.ToString();
            //string decline_date = GridView1.Rows[index].Cells[24].Text.ToString();
            //string journal = GridView1.Rows[index].Cells[25].Text.ToString();
            //string postedby = GridView1.Rows[index].Cells[26].Text.ToString();
            //string approvedby = GridView1.Rows[index].Cells[27].Text.ToString();
            //string declinedby = GridView1.Rows[index].Cells[28].Text.ToString();
            //string cashacc = GridView1.Rows[index].Cells[29].Text.ToString();
            //string atmno = GridView1.Rows[index].Cells[4].Text.ToString();

            //if (!record_date.Equals("&nbsp;"))
            //    Label1.Text = record_date;
            //else
            //    Label1.Text = "";
            //if (!posting_for_date.Equals("&nbsp;"))
            //    Label2.Text = posting_for_date;
            //else
            //    Label2.Text = "";
            //if (!account.Equals("&nbsp;"))
            //    Label3.Text = account;
            //else
            //    Label3.Text = "";
            //if (!trans_type.Equals("&nbsp;"))
            //    Label4.Text = accountName;
            //else
            //    Label4.Text = "";
            //if (!trans_type.Equals("&nbsp;"))
            //    Label15.Text = trans_type;
            //else
            //    Label15.Text = "";
            //if (!posted.Equals("&nbsp;"))
            //    Label5.Text = posted;
            //else
            //    Label5.Text = "";
            //if (!post_date.Equals("&nbsp;"))
            //    Label6.Text = post_date;
            //else
            //    Label6.Text = "";
            //if (!approved.Equals("&nbsp;"))
            //    Label7.Text = approved;
            //else
            //    Label7.Text = "";
            //if (!approve_date.Equals("&nbsp;"))
            //    Label8.Text = approve_date;
            //else
            //    Label8.Text = "";
            //if (!amount.Equals("&nbsp;"))
            //    Label9.Text = amount;
            //else
            //    Label9.Text = "";
            //if (!file_number.Equals("&nbsp;"))
            //    Label10.Text = file_number;
            //else
            //    Label10.Text = "";
            //if (!eventID.Equals("&nbsp;"))
            //    Label11.Text = eventID;
            //else
            //    Label11.Text = "";
            //if (!channelID.Equals("&nbsp;"))
            //    Label12.Text = channelID;
            //else
            //    Label12.Text = "";
            //if (!declined.Equals("&nbsp;"))
            //    Label16.Text = declined;
            //else
            //    Label16.Text = "";
            //if (!decline_date.Equals("&nbsp;"))
            //    Label17.Text = decline_date;
            //else
            //    Label17.Text = "";
            //if (!journal.Equals("&nbsp;"))
            //    Label14.Text = journal;
            //else
            //    Label14.Text = "";
            //if (!postedby.Equals("&nbsp;"))
            //    Label13.Text = postedby;
            //else
            //    Label13.Text = "";
            //if (!approvedby.Equals("&nbsp;"))
            //    Label18.Text = approvedby;
            //else
            //    Label18.Text = "";
            //if (!declinedby.Equals("&nbsp;"))
            //    Label19.Text = declinedby;
            //else
            //    Label19.Text = "";
            //if (!atmno.Equals("&nbsp;"))
            //    Label20.Text = atmno;
            //else
            //    Label20.Text = "";
        }
    }

    protected void btnSave_Click(object sender, EventArgs e)
    {
    }

}
