Exemplo n.º 1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            string fullName = DB.currentEmployee.Field <string>("surname") + " " +
                              DB.currentEmployee.Field <string>("name") + " " + DB.currentEmployee.Field <string>("patronymic");
            string   position    = DB.currentEmployee.Field <string>("position_name");
            string   department  = DB.currentEmployee.Field <string>("department_name");
            DateTime data_when   = dpLeave.Value;
            string   reason      = inputReason.Text;
            DateTime currentDate = DateTime.Now;

            Documents.CreateLeave(fullName, position, department, data_when, reason, currentDate);

            panelMenu.OpenChildForm(new FormDocs(panelMenu, database));
        }