protected void Page_Load(object sender, EventArgs e) { var id = Request["ID"]; Item = string.IsNullOrEmpty(id) ? new Tuyen() : TuyenDal.SelectById(Convert.ToInt32(id)); Add.Item = Item; }
//FrmLoaiXe7Cho LoaiXe = new FrmLoaiXe7Cho(); public void HoaDonTinhTien_Load(object sender, EventArgs e) { txtTuyenDuong.Text = Tuyen.ToString(); txtSoGhe.Text = Ghe.ToString(); txtGiaCuoc.Text = Tien.ToString(); txtSoXe.Text = SoXe.ToString(); txtGioKH.Text = Ngay.ToString(); txtGio.Text = Gio.ToString(); txtHanhKhach.Text = THK.ToString(); txtSDTHK.Text = SDT.ToString(); }
public string TuyenDuongID(string TenTuyenDuong) { try { DataTable dt = new Tuyen().TableTuyenDuongbyTen(TenTuyenDuong); if (dt != null && dt.Rows.Count > 0) { return(dt.Rows[0]["TuyenDuongID"].ToString()); } else { return(null); } } catch (Exception ex) { LogError.WriteLogError("TuyenDuong.TuyenDuongID", ex); return(null); } }