private void btnRaportSefiEchipa_Click(object sender, EventArgs e)
        {
            ManagerRaport m = null;
            IList<RaportCumulatMuncitorIMO> list = null;

            try
            {
                m = new ManagerRaport();
                if (scanareCurenta == null)
                {
                    return;
                }

                else
                {
                    list = m.RaportSefiEchipa((cmbFirme.SelectedItem as Firma).Id, cmbSefiEchipa.Text == "Toti sefi echipa" ? 0 : (cmbSefiEchipa.SelectedItem as PersoanaIMO).Id, txtDataStart.Value, txtDataEnd.Value);
                    //raportMuncitori = m.RaportTotalMuncitori(txtDataStart.Value, txtDataEnd.Value);
                }
                RaportSefiEchipaR.SefiEchipa = list;

                //foreach (ScanareIMO i in scanari)
                //{
                //    foreach (ScanareDetaliiIMO d in i.Detalii)
                //    {
                //        //foreach (RaportDetaliiMuncitorIMO det in d.Detalii)
                //        //{
                //        list.Add(new RaportCumulatMuncitorIMO(i, d));
                //        //}
                //    }

                //}

                ReportForm frm = new ReportForm("Rapoarte/RaportSefiEchipa.aspx", this.Text);
                frm.ShowDialog();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }