/// <summary> /// 근태기록 추가 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnInsert_Click(object sender, EventArgs e) { //dtpTotaltime.Value = TimeSpan.FromHours.dtpTotaltime; var at = new AttendanceVO() { Empno = txtEmpno.Text, Date = DateTime.Parse(dtpDate.Text), TotalPay = float.Parse(txtTotalpay.Text), TimeIn = DateTime.Parse(dtpIn.Text), TimeOut = DateTime.Parse(dtpOut.Text), OverTime = DateTime.Parse(dtpOvertime.Text), TotalTime = DateTime.Parse(dtpTotaltime.Text), Note = txtNote.Text }; if (atd.InsertAttendance(at)) { MessageBox.Show("입력 성공"); } else { MessageBox.Show("입력 실패"); } }