/// <summary> Saves the data rendered by this element to the provided bibliographic object during postback </summary> /// <param name="Bib"> Object into which to save the user's data, entered into the html rendered by this element </param> public override void Save_To_Bib(SobekCM_Item Bib) { // Pull the standard values NameValueCollection form = HttpContext.Current.Request.Form; string advice = String.Empty; string notes = String.Empty; foreach (string thisKey in form.AllKeys) { if (thisKey.IndexOf("dispositionadvice_select") == 0) { advice = form[thisKey]; } if (thisKey.IndexOf("dispositionadvice_text") == 0) { notes = form[thisKey]; } } if (advice.Length > 0) { Bib.Tracking.Disposition_Advice = (short)SobekCM_Library_Settings.Disposition_ID_Future(advice); Bib.Tracking.Disposition_Advice_Notes = notes; } }
private void okButton_Button_Pressed(object sender, EventArgs e) { notes = textBox1.Text; typeId = SobekCM_Library_Settings.Disposition_ID_Future(comboBox1.Text); DialogResult = DialogResult.OK; Close(); }