protected void Page_Load(object sender, EventArgs e) { phong = (new PMPhong(this)).GetOne(ID); tenphong.Value = Ten; loaiphong.Value = IdLoaiPhong.ToString(); status.Value = StatusId.ToString(); if (StatusId == 3) { tgbatdau.Text = TGStart.ToString("dd/MM/yyyy HH:mm:ss"); tenkh.Value = TenKH; ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "chi", "btnbatdauclick();", true); } ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "loadjs", "ctphong_ready();", true); }
protected void RadGrid1_OnNeedDataSource(object sender, GridNeedDataSourceEventArgs e) { try { RadGrid1.DataSource = (new PMCT_HDDV(this)).List_HD((new PMHoaDonDV(this)).GetLastByRom(ID).ID); } catch (NullReferenceException) { RadGrid1.DataSource = new List <object>(); } if (StatusId == 3) { tgbatdau.Text = TGStart.ToString("dd/MM/yyyy HH:mm:ss"); ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "onded", "btnbatdauclick();", true); } }