private void ClientInfo_Load(object sender, EventArgs e) { FillDropDowns(); _clientObj = EditMode ? ClientInformation.GetClientInfo(ClientId) : new ClientInformation() { State = "NY", Gender = 0, MaritalStatus = 0, DateOfBirth = DateTime.Today.ToShortDateString(), InsuredDateOfBirth = DateTime.Today.ToShortDateString(), RelationshipToInsured = 0 }; bindingSourceClient.DataSource = _clientObj; }
private void ProgressNoteEntry_Load(object sender, EventArgs e) { // fill in the mental status drop downs AppearanceTextEdit.Properties.Items.AddRange(typeof(ProgressNoteInformation.AppearanceOptions).GetEnumValues()); BehaviorTextEdit.Properties.Items.AddRange(typeof(ProgressNoteInformation.BehaviorOptions).GetEnumValues()); MoodAffectComboBoxEdit.Properties.Items.AddRange(typeof(ProgressNoteInformation.MoodAffectOptions).GetEnumValues()); CognitionsComboBoxEdit.Properties.Items.AddRange(typeof(ProgressNoteInformation.CognitionsOptions).GetEnumValues()); // set the data source progressNoteBindingSource.DataSource = CurrentNote; //this.progressNoteTableAdapter.Fill(this.lCScheduleDataDataSet.ProgressNote); // Write out the client name simpleLabelItemClientName.Text = ClientInformation.GetClientInfo(CurrentNote.ClientId).FullName; }
private void ShowClientInfoReport(int clientId) { ClientInformation selClientInfo = ClientInformation.GetClientInfo(clientId); if (selClientInfo != null) { ClientInfoReport infoReport = new ClientInfoReport { objectDataSourceClient = { DataSource = selClientInfo } }; documentViewerMain.PrintingSystem = infoReport.PrintingSystem; infoReport.CreateDocument(); } }
/// <summary> /// Add your code to obtain a custom field value and fill the editor with data. /// </summary> public override void LoadFormData(Appointment appointment) { // if we are editing an existing client, then display it if (ClientId > 0) { // fill in the selected client ClientInformation selClient = ClientInformation.GetClientInfo(ClientId); comboBoxEditClients.EditValue = selClient; } else { tbLocation.Text = "Office"; edtLabel.SelectedIndex = 2; } base.LoadFormData(appointment); }
private void barButtonItemEditProgressNote_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { // get the client id int clientId = GetSelectedNodeId(); if (clientId > 0) { ProgressNoteLists noteLists = new ProgressNoteLists(); noteLists.Client = ClientInformation.GetClientInfo(clientId); noteLists.ShowDialog(); } // Attach a client //int noteId = GetSelectedNodeId(); //if (noteId < 0) //{ // ShowProgressNote(0, Math.Abs(noteId)); // ShowProgressNoteReport(Math.Abs(noteId)); //} //else //{ // MessageBox.Show("Please select a progress note from the current client list.", "Select Note", // MessageBoxButtons.OK, MessageBoxIcon.Information); //} }
private void ProgressNoteForm_Load(object sender, EventArgs e) { // Fill the mental status drop downs FillDropDownLists(); // Only can delete a note that previously exists ButtonDeleteNote.Enabled = EditMode; // Write out the full name labelControlClientName.Text = ClientInformation.GetClientInfo(CurrentProgressNote.ClientId).FullName; //if (CurrentProgressNote.NextSession == null) //{ // DateTime? nextAppt = AppointmentExtender.GetNextClientAppointment(CurrentProgressNote.ClientId); // if (nextAppt != null) // { // CurrentProgressNote.NextSession = Convert.ToDateTime(nextAppt); // } //} // Set the binding source progressNoteBindingSource.DataSource = CurrentProgressNote; }