protected void Page_Load(object sender, EventArgs e)
        {
            if (!Context.User.IsInRole("Store Clerk"))
            {
                Response.Redirect("~/ErrorPages/Unauthorised");
            }
            else
            {
                if (!IsPostBack)
                {
                    SSAEntities context = new SSAEntities();
                    int         count   = context.Orders.Count();
                    count = count - 1;
                    List <Order> midlist = context.Orders.ToList <Order>();
                    poNumber = io.FindLastPoNumber() + 1;
                    doNumber = io.FindLastDoNumber() + 1;

                    lblPONumber.Text      = poNumber.ToString();
                    gvSupplier.DataSource = isu.FindAllSuppliers();
                    gvSupplier.DataBind();
                    DateTime dt = DateTime.Today;
                    lblDateofOrder.Text = string.Format("{0:dd MMM yyyy}", dt);
                    lblSupplier.Text    = "please choose a supplier...";
                    lblTotalAmount.Text = "0";
                    btnCancel.Attributes.Add("onclick", "return confirm('Are you sure that you want to cancel this order?');");
                    btnSubmit.Attributes.Add("onclick", "return confirm('Are you sure that you want to submit this order?');");
                    lblitemList.Text     = "";
                    lblOrderDetails.Text = "";
                    lblMessage1.Text     = "";
                }
            }
        }