protected void Page_Load(object sender, EventArgs e) { ClassPhysician generatePhyId = new ClassPhysician(); txPhysicianId.Text = generatePhyId.GeneratePhysicianId(); ClassAddresses generateAddId = new ClassAddresses(); txNewAddressId.Text = generateAddId.GenerateAddressId(); btnUpdate.CssClass = "btn btn-warning disabled"; btnDelete.CssClass = "btn btn-danger disabled"; btnAddress.CssClass = "btn btn-primary disabled"; }
protected void GridViewPhysicians_SelectedIndexChanged(object sender, EventArgs e) { ClassPhysician loadData = new ClassPhysician(); loadData.LoadPhysicianUpdateData(this); ClassAddresses loadAddress = new ClassAddresses(); loadAddress.ViewAddress(this); btnUpdate.CssClass = "btn btn-warning"; btnDelete.CssClass = "btn btn-danger"; btnAddress.CssClass = "btn btn-primary"; lblDeletePhysicianId.Text = GridViewPhysicians.SelectedRow.Cells[1].Text; lblDeletePhysicianName.Text = GridViewPhysicians.SelectedRow.Cells[3].Text; }
protected void Page_Load(object sender, EventArgs e) { System.Web.UI.HtmlControls.HtmlGenericControl li = (System.Web.UI.HtmlControls.HtmlGenericControl) this.Page.Master.FindControl("liPhysician"); System.Web.UI.HtmlControls.HtmlGenericControl span1 = (System.Web.UI.HtmlControls.HtmlGenericControl) this.Page.Master.FindControl("spanPhysician1"); System.Web.UI.HtmlControls.HtmlGenericControl span2 = (System.Web.UI.HtmlControls.HtmlGenericControl) this.Page.Master.FindControl("spanPhysician2"); li.Attributes.Add("class", "item-menu active-menu"); span1.Attributes.Add("class", "fa fa-user-md fa-2x active-span"); span2.Attributes.Add("class", "menu active-span"); ClassPhysician generatePhyId = new ClassPhysician(); txPhysicianId.Text = generatePhyId.GeneratePhysicianId(); ClassAddresses generateAddId = new ClassAddresses(); txNewAddressId.Text = generateAddId.GenerateAddressId(); btnUpdate.CssClass = "btn btn-warning disabled"; btnDelete.CssClass = "btn btn-danger disabled"; btnAddress.CssClass = "btn btn-primary disabled"; }
protected void btnDeletePhysicianSubmit_Click(object sender, EventArgs e) { ClassPhysician deletePhysician = new ClassPhysician(); deletePhysician.DeletePhysician(this); }
protected void btnUpdatePhysicianSubmit_Click(object sender, EventArgs e) { ClassPhysician updatePhysician = new ClassPhysician(); updatePhysician.UpdatePhysician(this); }
protected void btnAddPhysicianSubmit_Click(object sender, EventArgs e) { ClassPhysician addPhysician = new ClassPhysician(); addPhysician.addNewPhysician(this); }
protected void btnPhysicianSearch_Click(object sender, EventArgs e) { ClassPhysician searchPhysician = new ClassPhysician(); searchPhysician.SearchPhysician(txPhysicianSearch, ddPhysicianSearch, GridViewPhysicians); }