/// <summary>
        /// Lista cu departamente
        /// </summary>
        protected void ListareDepartamente()
        {
            lblMessage.Text = "";
            try
            {
                TableRow  myRow  = new TableRow();
                TableCell myCell = new TableCell();

                // lista de banci existente
                myRow  = new TableRow();
                myCell = new TableCell();
                myCell.Attributes.Add("width", "100%");
                myCell.HorizontalAlign = HorizontalAlign.Center;
                myCell.VerticalAlign   = VerticalAlign.Top;

                myRow.Cells.Add(myCell);
                mainTable.Rows.Add(myRow);


                td_editLine.Visible = false;
                add_form.Style.Add("display", "none");
                btnEdit.Style.Add("display", "none");
                td_addLine.Visible     = true;
                add_buttonLine.Visible = true;
                tdTitle.InnerText      = "Adaugare Departament";

                UtilitiesDb utilDb = new UtilitiesDb(settings.ConnectionString);

                lstDeptParinte.Items.Clear();
                lstCentruCost.Items.Clear();
                //lstSecretara.Items.Clear();
                utilDb.CreateDepartamenteSelectBox(0, 0, this.lstDeptParinte);
                utilDb.CreateDepartamentAngajatiSelectBox(this.lstSef, this.GetAngajator());
                utilDb.CreateCentruCostSelectBox(this.lstCentruCost);
                //Modificat:Muntean Raluca Cristina  - am adaugat ca parametru si id-ul angajatorului
                utilDb.CreateDepartamentAngajatiSelectBox(this.lstInlocSef, this.GetAngajator());
                //utilDb.CreateDepartamentAngajatiSelectBox(this.lstSecretara, this.GetAngajator());

                //Modificat: Ionel Popa - adaugam in combo-ul cu inlocuitor sefi si optiunea vida ( "Nu exista inlocuitor")
                ListItem myItem = new ListItem("NU EXISTA INLOCUITOR", "-1");
                myItem.Selected = true;
                this.lstInlocSef.Items.Add(myItem);

                //ListItem myItem1 = new ListItem("NU EXISTA SECRETARA", "-1");
                //myItem1.Selected = true;
                //this.lstSecretara.Items.Add(myItem1);

                CreazaVarJSValoareDefault();

                if (lstDeptParinte.Items.Count == 0)
                {
                    lstDeptParinte.Visible             = false;
                    labelExistentaDepartamente.Visible = true;
                }
                else
                {
                    lstDeptParinte.Visible             = true;
                    labelExistentaDepartamente.Visible = false;
                }
            }
            catch (Exception ex)
            {
                litError.Text  = "The following error occurred: <br>";
                litError.Text += ex.Message;
            }
        }