Exemple #1
0
    protected void btnAddNew_Click(object sender, EventArgs e)
    {
        Session["JobType"] = "Cancel";

        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.GetNewJobNoForCancellation(UserBranch);
        txtJobNo.ForeColor        = Color.White;
        Session["SessionedJobNo"] = txtJobNo.Text;
    }