public PatientSearchList(string surname, string firstname, string id, Login parent) { this.parent = parent; InitializeComponent(); surname2 = surname; PopulateDataGridView(surname, firstname,id); }
public HbcVisit(Login p) { parent = p; InitializeComponent(); secure(); patientNameLbl.Text = Entity.CurrentPatient.FirstName.ToUpper() + " " + Entity.CurrentPatient.Surname.ToUpper(); }
public SecurityMgmtUI(int tabId, Login p) { this.parent = p; InitializeComponent(); FocusTab(tabId); PopulateGrids(tabId); }
public RegPatient(Login parent) { this.parent = parent; InitializeComponent(); initialiseCombos(); btnClear.Visible = true; }
public PatientSummary(Patient patient, Login p) { parent = p; InitializeComponent(); this.patient = patient; //PopulateDataGridView(); secure(); }
public ReportAllPatients(Login p) { parent = p; MysqlDbUtility db = new MysqlDbUtility(); InitializeComponent(); ReportDocument reportdoc = new ReportDocument(); string sql = "SELECT r.`patientID`, r.`firstname`, r.`middle_name`, r.`surname`, r.`Sex`, r.`dateofbirth`, r.`nrc_number` FROM registration r;"; DataSet s = db.getDataSet(sql); s.Tables[0].TableName = "Command"; int count = s.Tables[0].Rows.Count; string printer = reportdoc.PrintOptions.PrinterName; reportdoc.Load(Application.StartupPath + "\\rpt-all_patients.rpt"); reportdoc.SetDataSource(s); //crystalReportViewer1.ReportSource = Application.StartupPath + "\\patientList.rpt"; crystalReportViewer1.ReportSource = reportdoc; crystalReportViewer1.ShowFirstPage(); this.Show(); //this.crystalReportViewer1.ShowFirstPage(); this.Visible = true; }
public ReportPainManagement(string reportName, Login parent) { this.parent = parent; InitializeComponent(); //Get text from the text property of the buttons that have been pressed switch (reportName) { case "Pain Management": CreatePainManagementReport(); break; case "All Patients": CreateReportAllPatients(); break; case "Female Patients": CreateReportAllFemalePatients() ; break; case "Male Patients": CreateReportAllMalePatients() ; break; case "Patients Under 15 yrs": CreateReportPatientsUnder15() ; break; case "Confirmed HIV+": CreateReportConfirmedStatus() ; break; case "Under 15 yrs Confirmed HIV+": CreateReportConfirmedStatusUnder15() ; break; default: MessageBox.Show("There is no implementation for the requested report"); return; } InitialiseAndShowReport(); //this.crystalReportViewer1.ShowFirstPage(); this.Visible = true; }
//Gets the name of the report from the text property of the button that has been pressed public DateEntries(string reportname, Login p) { parent = p; InitializeComponent(); reportNameSelected = reportname; }
public DateEntries(Login parent) { this.parent = parent; InitializeComponent(); }
public SecurityMgmtUI(Login p) { this.parent = p; InitializeComponent(); }
public MainLogin(Login parent) { this.parent = parent; InitializeComponent(); Name = "Open HBC"; }
public PatientSummary(Login parent) { this.parent = parent; InitializeComponent(); secure(); }
public HomeHbC(Login parent) { this.parent = parent; InitializeComponent(); secure(); }
public AddCompoundUI(Login p) { parent = p; InitializeComponent(); cbxParish.Items.AddRange(regConcepts.Sites); }
public ReportsBrowser(Login parent) { this.parent = parent; InitializeComponent(); }
public AddSectionUI(Login p) { this.parent = p; InitializeComponent(); cbxParish.Items.AddRange(regConcepts.Sites); }