Esempio n. 1
0
        /// <summary>
        ///----------------------------------------- DISCONTINUED-----------------------------------
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Funcionarios_Load(object sender, EventArgs e)
        {
            var loadBankInformaacoaoControle = new InformacoesControl();

            panelInfo.Controls.Add(loadBankInformaacoaoControle);
            //DataTable _dt;

            //_dt = DataSQL.GetFuncionariosToList();
            //if (_dt.Rows.Count > 0)
            //{
            //    //GetFuncionariosToList(_dt);
            //}

            /// HAS TO BE MOVED TO ITS OWN CONTROLLER.

            #region DOCUMENTO CONTROLLER TO
            //ColumnHeader header0 = new ColumnHeader();
            //ColumnHeader header1 = new ColumnHeader();
            //string[] columns = { "Documento", "Obrigatorio" };

            //header0.Text = "Documento";
            //header0.Width = 80;
            //header0.TextAlign = HorizontalAlignment.Center;
            //listviewDocuments.Columns.Add(header0);
            //header1.Text = "Obrigatorio";
            //header1.Width = 100;
            //header1.TextAlign = HorizontalAlignment.Center;
            //listviewDocuments.Columns.Add(header1);



            //listviewDocuments.View = View.Details;
            #endregion
        }
Esempio n. 2
0
        private void LoadSelectedFuncionarioInfo()
        {
            var objSql     = new DataBaseHandler();
            var objHandler = new SqlToSharpHandler();

            //buscar informacoes do funcionario
            if (listBox1.SelectedIndex >= 0)
            {
                FuncionarioItem funcionario = objHandler.ConvertoFromSqlTo_1_FuncionarioItem(objSql.GetFuncionariosInfo(_previewList[listBox1.SelectedIndex].Idfuncionario.ToString()));
                objSql.GetDocuments(funcionario.IdFuncionario);
                var functesteequals     = funcionario;
                var funcionarioSelected = new FuncionarioItemEdit();

                funcionarioSelected.SetFuncionarioEdit(functesteequals);
                bool teste          = funcionario.Equals(funcionarioSelected.GetFuncionarioEdit());
                var  objInformacoes = new InformacoesControl(funcionarioSelected.GetFuncionarioEdit());
                panelInfo.Controls.Clear();
                panelInfo.Controls.Add(objInformacoes);
            }
        }