Exemplo n.º 1
0
        protected void LoadSession()
        {
            try
            {
                //oDV = AdoUDIRS.GetIncidentHistory();
                oDV = AdoUDIRS.GetReferenceNumber();

                if (AdoUDIRS.BlnError)
                {
                    //lblRMsg.Text = "Error 40, sorry, an error occured, " + AdoUDIRS.StrError;
                    return;
                }
                else if (oDV.Count == 0)
                {
                    return;
                }
                else if (oDV.Count > 0)
                {
                    string sValue = oDV.ToTable().Rows[0]["RefNumber"].ToString();
                    lblRefID.Text = sValue;
                }
            }
            catch (Exception ex)
            {
                //lblRMsg.Text = "Error 40, sorry, an error occured, " + AdoUDIRS.StrError;
            }
            if (UDIRSHelper.PersonDetails != null)
            {
                if (UDIRSHelper.PersonDetails.Fullname != null)
                {
                    lblName.Text = UDIRSHelper.PersonDetails.Fullname;
                }
            }
            else
            {
                //redirect to home or logout
            }

            //lblRefID.Text = ReferenceId;
        }