Exemplo n.º 1
0
 private void txtCTMaPhieuMuon_TextChanged(object sender, EventArgs e)
 {
     try
     {
         PhieuMuonDAO pm = new PhieuMuonDAO();
         DateTime     dt = new DateTime();
         dt = pm.GetTimeNgayMuonByMaPhieu(txtCTMaPhieuMuon.Text);
         dateTimeCTMuonMuon.Value = dt;
         dt = pm.GetTimeNgayTraByMaPhieu(txtCTMaPhieuMuon.Text);
         dateTimeCTTraMuon.Value = dt;
     }
     catch
     {
     }
 }