Exemplo n.º 1
0
    protected void btnAddNew_Click(object sender, EventArgs e)
    {
        Session["JobType"] = "Endorsement";

        Session["SessionedJobNo"] = "";
        Session["QuotationNo"]    = "";


        ManageFormComponents("NEW");

        Session["Mode"] = "NEW";

        string     UserBranch = "";
        HttpCookie reqCookies = Request.Cookies["userInfo"];

        if (reqCookies != null)
        {
            UserBranch = reqCookies["UserBranch"].ToString();
            txtEnteredBranchCode.Text = UserBranch;
        }


        ProposalUploadController proposalUploadController = new ProposalUploadController();

        txtJobNo.Text      = proposalUploadController.GetNewJobNoForEndorsement(UserBranch);
        txtJobNo.ForeColor = Color.White;

        Session["SessionedJobNo"] = txtJobNo.Text;
    }