//[System.Web.Services.WebMethod]
        protected void Page_Load(object sender, EventArgs e)
        {
            //cstype = this.GetType();
            //GlobalFunctions.gLoginUserCode = 451;

            if (Request.QueryString["d"] != null && Request.QueryString["v"] != null)
            {
                _declID = Convert.ToInt64(Request.QueryString["d"].ToString());
                _VersionNo = Convert.ToInt16(Request.QueryString["v"].ToString());
            }

            GlobalFunctions.ExecAndFillDataset("spGCICGetQueryType", GlobalFunctions.Initials, "QueryType");
            DropDownListQuery.DataSource = GlobalFunctions.Initials.Tables["QueryType"];
            DropDownListQuery.DataTextField = "QueryTypeDesc";
            DropDownListQuery.DataValueField = "QueryTypeID";
            DropDownListQuery.DataBind();
            DropDownListQuery.SelectedIndex = -1;

            if (_declID > 0)
            {
                classHeader = new ClassificationHeader(_declID, _VersionNo);
                classItemsList = new ClassificationItems();
                //PopulateData();

                _SubmissionID = classHeader.SubmissionID.Value;
                classItemsList.DeclarationID = _declID;
                classItemsList.VersionNo = _VersionNo;
                dgLineItems.DataSource = classItemsList.GetList();
                //dgLineItems.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
                //dgLineItems.MultiSelect = true;
                dgLineItems.DataBind();

                txtIDFNumber.Text = classHeader.IDFNumber;
                //measure.Value = classHeader.IDFNumber;
                this.txtDateRecvd.Text = classHeader.IDFDateRecvd.Value.ToString("dd-MMM-yyyy").ToUpper();
                this.txtIDFDate.Text = classHeader.IDFDate.Value.ToString("dd-MMM-yyyy").ToUpper();

                TextBoxSubmissionID.Text = Convert.ToString(_SubmissionID);
                TextBoxVersionNo.Text = classHeader.VersionNo.ToString();
                //Importer Detals
                txtImporter.Text = classHeader.ImporterName;
                /*lblIMPAddress.Text = classHeader.ImporterAddress;
                lblIMPContact.Text = classHeader.ImporterContact;
                lblIMPPhone.Text = classHeader.ImporterContactPhone;*/

                //Exporter Detals
                txtExporter.Text = classHeader.ExporterName;
                /*lblEXPAddress.Text = classHeader.ExporterAddress;
                lblEXPContact.Text = classHeader.ExporterContactName;
                lblEXPPhone.Text = classHeader.ExporterContactPhone;*/

                //var script = "document.getElementById('sameid').value = 'diff';"; //jQuery('#sameid').val('dff')
                //ClientScript.RegisterStartupScript(typeof(string), "textvaluesetter", script, true);

                //Session["searchIDA"] = "14023";
                //Roll Back Stuff
                if (classHeader.RollBackIssueID != null)
                {
                    filemsg.Text = "This file was rolled back by " + classHeader.RollBackUserName.ToString() + Environment.NewLine
                                     + " Date Rolled Back: " + classHeader.RollBackDate.Value.ToString("dd-MMM-yyyy @  hh:mm tt").ToUpper() + Environment.NewLine
                                     + " From Department : " + classHeader.RollBackDepartment.ToString() + Environment.NewLine
                                     + " Reason : " + classHeader.RollBackMessage.ToString();
                }
                else
                {
                    filemsg.Text = "";
                }
            }
        }