public void AddObject(qGis_Object gis_object) { object_list.Add(gis_object); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { populateSchoolDistricts(); if (!String.IsNullOrEmpty(Request.QueryString["schoolID"])) { school_id = Convert.ToInt32(Request.QueryString["schoolID"]); qOrg_School school = new qOrg_School(school_id); lblTitle.Text = "Edit School (ID: " + school.SchoolID + ")"; txtName.Text = school.School; ddlType.SelectedValue = school.SchoolType; txtAddress1.Text = school.Address1; txtAddress2.Text = school.Address2; txtCity.Text = school.City; ddlState.SelectedValue = school.StateProvince; txtPostalCode.Text = school.PostalCode; txtPhone.Text = school.SchoolPhone; rblAvailable.SelectedValue = school.Available; ddlSchoolDistrict.SelectedValue = Convert.ToString(school.SchoolDistrictID); qGis_Object map = new qGis_Object(); map = qGis_Object.GetGISObjectByContentTypeAndReference((int)qSoc_ContentType.Types.School, school_id); if (map != null) { if (map.GISObjectID > 0) { plhMap.Visible = true; school_name = school.School; address1 = school.Address1; address2 = school.Address2; city = school.City; state_province = school.StateProvince; postal_code = school.PostalCode; phone = school.SchoolPhone; longitude = Convert.ToString(map.Longitude); latitude = Convert.ToString(map.Latitude); } } } else { lblTitle.Text = "New School"; plhTools.Visible = false; rblAvailable.SelectedValue = "Yes"; } if (Convert.ToString(Request.QueryString["mode"]) == "add-successful") { lblMessage.Text = "*** Record Successfully Added ***"; lblMessageBottom.Text = "*** Record Successfully Added ***"; } else if (Convert.ToString(Request.QueryString["mode"]) == "update-successful") { lblMessage.Text = "*** Record Successfully Updated ***"; lblMessageBottom.Text = "*** Record Successfully Updated ***"; } } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (!String.IsNullOrEmpty(Request.QueryString["healthProviderID"])) { health_provider_id = Convert.ToInt32(Request.QueryString["healthProviderID"]); qHtl_HealthProvider provider = new qHtl_HealthProvider(health_provider_id); lblTitle.Text = "Edit Health Provider (ID: " + provider.HealthProviderID + ")"; txtName.Text = provider.Name; txtSummary.Text = provider.Description; ddlType.SelectedValue = provider.HealthProviderType; txtAddress1.Text = provider.Address1; txtAddress2.Text = provider.Address2; txtCity.Text = provider.City; ddlCountry.SelectedValue = provider.Country; ddlState.SelectedValue = provider.StateProvince; txtPostalCode.Text = provider.PostalCode; txtPhone.Text = provider.Phone; rblAvailable.SelectedValue = provider.Available; qGis_Object map = new qGis_Object(); map = qGis_Object.GetGISObjectByContentTypeAndReference((int)qSoc_ContentType.Types.HealthProvider, health_provider_id); if (map != null) { if (map.GISObjectID > 0) { plhMap.Visible = true; provider_name = provider.Name; address1 = provider.Address1; address2 = provider.Address2; city = provider.City; state_province = provider.StateProvince; postal_code = provider.PostalCode; phone = provider.Phone; longitude = Convert.ToString(map.Longitude); latitude = Convert.ToString(map.Latitude); } } } else { lblTitle.Text = "New Health Provider"; plhTools.Visible = false; rblAvailable.SelectedValue = "Yes"; } if (Convert.ToString(Request.QueryString["mode"]) == "add-successful") { lblMessage.Text = "*** Record Successfully Added ***"; lblMessageBottom.Text = "*** Record Successfully Added ***"; } } }