protected void Page_Load(object sender, EventArgs e) { if (Session["userid"] == null) { Response.Redirect("~/Login.aspx"); } else { userid = int.Parse(Session["userid"].ToString()); Empname = Session["Empname"].ToString(); BRANCH_ID = int.Parse(Session["Branch_id"].ToString()); User_Role_Id = Session["Role_Id"].ToString(); } if (Session["client_Id"] != "" && Session["subProcess_id"] != "") { client_Id = int.Parse(Session["client_Id"].ToString()); Subprocess_id = int.Parse(Session["subProcess_id"].ToString()); } if (!IsPostBack) { DivCreate.Visible = false; DivView.Visible = true; Gridview_Bind_Orders(); Get_Count_Of_Orders(); dbc.BindClientName(ddl_ClientName); dbc.BindState(ddl_State); dbc.BindProduct_Type(ddl_Product_Type); dbc.BindOrderType(ddl_ordertype); dbc.BindOrderStatus(ddl_orderstatus); dbc.BindOrderTask(ddl_ordersTask); GetMaximum_OrderNumber(); ConfigureColors(); LoadGraphData(); CreatePieGraph(); if (User_Role_Id == "2") { } else if (User_Role_Id == "1") { list_itemque.Attributes.Add("class", "active"); //li_queue.Visible = true; //divque.Visible = true; } } }