示例#1
0
        private void btnInsertTech_Click(object sender, EventArgs e)
        {
            string name           = txtTechName.Text;
            string surname        = txtTechSurname.Text;
            string deployed       = txtTechDeployed.Text;
            string deployeDate    = txtTechDeployDate.Text;
            string specialization = cmbSpecialization.Text;

            TechnicalStaff ts = new TechnicalStaff();

            ts.InsertTechnical(name, surname, specialization);

            FormManagement fm = new FormManagement();

            fm.RefreshPage();

            this.Close();
        }
示例#2
0
        private void btnUpdateOrder_Click(object sender, EventArgs e)
        {
            int    id             = int.Parse(lblTechID.Text);
            string name           = txtTechName.Text;
            string surname        = txtTechSurname.Text;
            string specialization = cmbSpecialization.Text;
            string deployed       = txtTechDeployed.Text;
            string deploymentDate = dtpDeployDate.Value.ToString("dd/MM/yyyy");

            TechnicalStaff ts = new TechnicalStaff();

            ts.UpdateBLTechnical(id, name, surname, specialization, deployed, deploymentDate);

            MessageBox.Show(deploymentDate);
            FormManagement fm = new FormManagement();

            fm.RefreshPage();

            UpdateTechForm utf = new UpdateTechForm();

            utf.Close();
        }