//private void GetBranch()
        //{
        //    DataTable dt = new DataTable();
        //    BranchBLL branchBll = new BranchBLL();
        //    try
        //    {
        //        dt = branchBll.GetBranchList();
        //        if (dt.Rows.Count > 0)
        //        {
        //            BranchDropDownList.DataSource = dt;
        //            BranchDropDownList.DataValueField = "BranchId";
        //            BranchDropDownList.DataTextField = "Name";
        //            BranchDropDownList.DataBind();
        //            BranchDropDownList.Items.Insert(0, "----------Select----------");
        //            //    BranchDropDownList.SelectedIndex = 0;
        //            BranchDropDownList.SelectedValue = (string)LumexSessionManager.Get("UserBranchId");
        //        }
        //        dt.Clear();
        //    }
        //    catch (Exception ex)
        //    {
        //        string message = ex.Message;
        //        if (ex.InnerException != null) { message += " --> " + ex.InnerException.Message; }
        //        MyAlertBox("ErrorAlert(\"" + ex.GetType() + "\", \"" + message + "\", \"\");");
        //    }
        //}
        protected void GetUserList()
        {
            UserBLL user = new UserBLL();

            try
            {
                DataTable dt = user.GetUserListByBruchId(LumexSessionManager.Get("UserBranchId").ToString());
                userListGridView.DataSource = dt;
                userListGridView.DataBind();

                if (dt.Rows.Count < 1)
                {
                    msgbox.Attributes.Add("Class", "alert alert-warning"); msgbox.Visible = true; msgTitleLabel.Text = "Data Not Found!!!"; msgDetailLabel.Text = "";
                }
                GridviewHeadStyle();
            }
            catch (Exception ex)
            {
                string message = ex.Message;
                if (ex.InnerException != null) { message += " --> " + ex.InnerException.Message; }
                MyAlertBox("ErrorAlert(\"" + ex.GetType() + "\", \"" + message + "\", \"\");");
            }
            finally
            {
                user = null;
            }
        }