protected void btXoa_Click(object sender, EventArgs e)
 {
     if (Session["Id"] != null)
     {
         group = objGroup.GetSalary_Group(Int32.Parse(Session["Id"].ToString()));
         objGroup.DeleteSalary_Group(group);
         Response.Redirect(DotNetNuke.Common.Globals.ApplicationPath + "/danhmuc/hesoluong/tabid/81/Default.aspx");
         Session.Remove("Id");
     }
 }
        protected void callbackPanelEmployees_Callback(object source, DevExpress.Web.ASPxClasses.CallbackEventArgsBase e)
        {
            if (e.Parameter.Equals(""))
            {
                if (Session["edit"] != null)
                {
                    this.group           = objGroup.GetSalary_Group(Int32.Parse(Session["Id"].ToString()));
                    this.group.groupname = txtName.Text.ToString();
                    this.group.type      = true;
                    this.group.ghichu    = txtGhiChuCDThuocNhom.Text.Trim();
                    if (cboParentPosition.SelectedIndex >= 0)
                    {
                        group.parentId = Int32.Parse(cboParentPosition.SelectedItem.Value.ToString());
                    }
                    objGroup.UpdateSalary_Group(this.group);

                    this.txtName.Text         = "";
                    txtGhiChuCDThuocNhom.Text = "";
                    Session.Remove("edit");
                }
                else
                {
                    group.id = -1;
                    if (cboParentPosition.SelectedIndex >= 0)
                    {
                        group.parentId = Int32.Parse(cboParentPosition.SelectedItem.Value.ToString());
                    }
                    this.group.ghichu = txtGhiChuCDThuocNhom.Text.Trim();
                    group.groupname   = txtName.Text;
                    group.type        = true;
                    objGroup.AddSalary_Group(group);


                    txtGhiChuCDThuocNhom.Text = "";
                    this.txtName.Text         = "";
                }
            }
            else if (e.Parameter.Equals("1"))
            {
                this.txtName.Text         = "";
                txtGhiChuCDThuocNhom.Text = "";
                Session.Remove("edit");
                string str = hiddenViTriBac.Value.ToString();
                if (hiddenIDNhom.Value != null)
                {
                    ListEditItem item = cboParentPosition.Items.FindByValue(hiddenIDNhom.Value.ToString());
                    if (item != null)
                    {
                        item.Selected = true;
                    }
                }
            }
            else if (e.Parameter.Equals("2"))
            {
                //hiddenIdNhomChuaBac.Value = Session["Id"].ToString();
                this.group = objGroup.GetSalary_Group(Int32.Parse(Session["Id"].ToString()));
                if (this.group != null)
                {
                    txtName.Text = group.groupname;
                    txtGhiChuCDThuocNhom.Text = group.ghichu.Trim();
                    Session["edit"]           = "edit";
                    ListEditItem item = this.cboParentPosition.Items.FindByValue(group.parentId.ToString());
                    if (item != null)
                    {
                        item.Selected = true;
                    }
                    else
                    {
                        cboParentPosition.SelectedIndex = -1;
                    }
                }
            }
        }