private void Login_Click(object sender, EventArgs e) { if (doAction.authenticateProvider(UsernameBox.Text, PassCodeBox.Text) == 0) { this.Hide(); ISingleResult <getProviderInfoResult> result = doAction.getProviderInfo(UsernameBox.Text); foreach (getProviderInfoResult r in result) { thisProviderFirstName = r.FirstName; thisProviderLastName = r.LastName; thisProviderID = r.USERNAME; thisProviderTitle = r.Title; } string ProviderFullName = thisProviderFirstName + " " + thisProviderLastName + " " + thisProviderTitle; ProviderMain providerName = new ProviderMain(ProviderFullName, thisProviderID); providerName.Show(); } else { MessageBox.Show("Please Check Your Username and Password"); } }
public PatientHomePage(string name, string number, string gender, string age, string maritalStatus, DateTime DOB, int selectedPatientID, ProviderMain providerMain) { InitializeComponent(); this.PatientNameLabel.Text = name; this.PhoneNumberLabel.Text = "Phone Number: " + number; this.PatientGenderLabel.Text = gender; this.PatientAgeLabel.Text = "Age: " + age; this.DOBLabel.Text = "DOB: " + DOB.ToShortDateString(); this.MaritalStatusLabel.Text = "Marital Status:" + maritalStatus; this.thisProviderID = providerMain.GetProviderID(); SetVitals(selectedPatientID); thisPatientID = selectedPatientID; this.thisProviderMain = providerMain; this.FinishVisitButton.Hide(); thisGenerateReport = new ToolStripMenuItem("Generate Report"); thisGenerateReport.Click += new System.EventHandler(GenerateReportClick); thisPrintPrescriptions = new ToolStripMenuItem("Print Prescriptions"); thisPrintPrescriptions.Click += new System.EventHandler(PrintPrescriptionsClick); thisPrintLabs = new ToolStripMenuItem("Print Lab Orders"); thisPrintLabs.Click += new System.EventHandler(PrintLabs); thisPrintScansProcedures = new ToolStripMenuItem("Print Procedure Orders"); thisPrintScansProcedures.Click += new System.EventHandler(PrintScansProcedures); thisProviderMain.menuStrip2.Items.Add(thisGenerateReport); thisProviderMain.menuStrip2.Items.Add(thisPrintPrescriptions); thisProviderMain.menuStrip2.Items.Add(thisPrintLabs); thisProviderMain.menuStrip2.Items.Add(thisPrintScansProcedures); }
public NewPatient(ProviderMain providerMain) { InitializeComponent(); PregnantBox.Hide(); PregnantLabel.Hide(); NotPregnantBox.Hide(); ProviderList.Hide(); ChooseProviderLabel.Hide(); this.providerMain = providerMain; providerIDList.Add(providerMain.GetProviderID()); }
public PatientHomePage(string name, string number, string gender, string maritalStatus, string age, DateTime DOB, int selectedPatientID, ProviderMain providerMain, SchedulingCalendar schedulingCalendar, CalendarItem item) { InitializeComponent(); this.PatientNameLabel.Text = name; this.PhoneNumberLabel.Text = "Phone Number: " + number; this.PatientGenderLabel.Text = gender; this.PatientAgeLabel.Text = "Age: " + age; this.DOBLabel.Text = "DOB: " + DOB.ToShortDateString(); this.MaritalStatusLabel.Text = "Marital Status: " + maritalStatus; SetVitals(selectedPatientID); thisPatientID = selectedPatientID; this.thisProviderMain = providerMain; this.schedulingCalendar = schedulingCalendar; this.FinishVisitButton.Show(); this.NoteHistoryTable.AutoGenerateColumns = false; this.LabsTable.AutoGenerateColumns = false; this.AllergiesTable.AutoGenerateColumns = false; this.VitalHistoryTable.AutoGenerateColumns = false; this.ScansTable.AutoGenerateColumns = false; this.ProblemListView.AutoGenerateColumns = false; this.MedicationsListDataGridView.AutoGenerateColumns = false; thisGenerateReport = new ToolStripMenuItem("Generate Report"); thisGenerateReport.Click += new System.EventHandler(GenerateReportClick); thisPrintPrescriptions = new ToolStripMenuItem("Print Prescriptions"); thisPrintPrescriptions.Click += new System.EventHandler(PrintPrescriptionsClick); thisPrintLabs = new ToolStripMenuItem("Print Lab Orders"); thisPrintLabs.Click += new System.EventHandler(PrintLabs); thisPrintScansProcedures = new ToolStripMenuItem("Print Procedure Orders"); thisPrintScansProcedures.Click += new System.EventHandler(PrintScansProcedures); thisProviderMain.menuStrip2.Items.Add(thisGenerateReport); thisProviderMain.menuStrip2.Items.Add(thisPrintPrescriptions); thisProviderMain.menuStrip2.Items.Add(thisPrintLabs); thisProviderMain.menuStrip2.Items.Add(thisPrintScansProcedures); this.thisProviderID = providerMain.GetProviderID(); this.item = item; this.WindowState = FormWindowState.Maximized; }
public SchedulingCalendar(int patientID, ProviderMain providerMain, PatientHomePage patientHome) { InitializeComponent(); monthView1.MonthTitleColor = monthView1.MonthTitleColorInactive = CalendarColorTable.FromHex("#C2DAFC"); monthView1.ArrowsColor = CalendarColorTable.FromHex("#77A1D3"); monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52"); monthView1.DaySelectedTextColor = monthView1.ForeColor; this.MdiParent = providerMain; this.thisPatientID = patientID; this.WindowState = FormWindowState.Maximized; ProviderComboBox.Hide(); SelectProviderLabel.Hide(); this.thisProviderID = providerMain.GetProviderID(); panel1.Hide(); this.patientHome = patientHome; Type = "Provider"; }
public AppointmentListView(ProviderMain providerMain) { InitializeComponent(); this.MdiParent = providerMain; this.WindowState = FormWindowState.Maximized; thisProviderMain = providerMain; this.AppointmentListView1.Columns.Remove("Status"); DataGridViewTextBoxColumn status = new DataGridViewTextBoxColumn { DataPropertyName = "Status" }; status.DefaultCellStyle.Font = new Font("Bahnschrift Light", 10); status.Name = "ProviderStatus"; status.HeaderText = "Status"; this.AppointmentListView1.Columns.Insert(7, status); }
public PatientListView(ProviderMain providerMain) { InitializeComponent(); this.MdiParent = providerMain; this.WindowState = FormWindowState.Maximized; this.PatientListView1.Columns.Remove("PatientID"); DataGridViewButtonColumn patientID = new DataGridViewButtonColumn { DataPropertyName = "PatientID" }; patientID.DefaultCellStyle.Font = new Font("Bahnschrift Light", 10); patientID.Name = "PatientID"; patientID.HeaderText = "Patient ID"; this.PatientListView1.Columns.Insert(0, patientID); parentType = "provider"; this.providerMain = providerMain; }
public SchedulingCalendar(string providerID, ProviderMain providerMain) { InitializeComponent(); this.thisProviderID = providerID; this.MdiParent = providerMain; providerIDList.Add(thisProviderID); //Monthview colors monthView1.MonthTitleColor = monthView1.MonthTitleColorInactive = CalendarColorTable.FromHex("#C2DAFC"); monthView1.ArrowsColor = CalendarColorTable.FromHex("#77A1D3"); monthView1.DaySelectedBackgroundColor = CalendarColorTable.FromHex("#F4CC52"); monthView1.DaySelectedTextColor = monthView1.ForeColor; //Initialize only double clicking for physicians this.calendar1.ItemDoubleClick += new System.Windows.Forms.Calendar.Calendar.CalendarItemEventHandler(this.calendar1_ItemDoubleClick); this.providerMain = providerMain ?? new ProviderMain(thisProviderID, thisProviderID); ProviderComboBox.Hide(); SelectProviderLabel.Hide(); panel1.Hide(); calendar1.Location = new Point(213, 0); calendar1.Dock = DockStyle.Top; calendar1.SetViewRange(DateTime.Today, DateTime.Today.Add(new TimeSpan(7, 0, 0, 0))); this.MdiParent = providerMain; this.WindowState = FormWindowState.Maximized; Type = "Provider"; CancelButton2.Hide(); }