Ejemplo n.º 1
0
 public PatientSearchList(string surname, string firstname, string id, Login parent)
 {
     this.parent = parent;
     InitializeComponent();
     surname2 = surname;
     PopulateDataGridView(surname, firstname,id);
 }
Ejemplo n.º 2
0
 public HbcVisit(Login p)
 {
     parent = p;
     InitializeComponent();
     secure();
     patientNameLbl.Text = Entity.CurrentPatient.FirstName.ToUpper() + " " + Entity.CurrentPatient.Surname.ToUpper();
 }
Ejemplo n.º 3
0
 public SecurityMgmtUI(int tabId, Login p)
 {
     this.parent = p;
     InitializeComponent();
     FocusTab(tabId);
     PopulateGrids(tabId);
 }
Ejemplo n.º 4
0
 public RegPatient(Login parent)
 {
     this.parent = parent;
     InitializeComponent();
     initialiseCombos();
     btnClear.Visible = true;
 }
Ejemplo n.º 5
0
 public PatientSummary(Patient patient, Login p)
 {
     parent = p;
     InitializeComponent();
     this.patient = patient;
     //PopulateDataGridView();
     secure();
 }
Ejemplo n.º 6
0
        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;
        }
Ejemplo n.º 7
0
        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;
        }
Ejemplo n.º 8
0
 //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;
 }
Ejemplo n.º 9
0
 public DateEntries(Login parent)
 {
     this.parent = parent;
     InitializeComponent();
 }
Ejemplo n.º 10
0
 public SecurityMgmtUI(Login p)
 {
     this.parent = p;
     InitializeComponent();
 }
Ejemplo n.º 11
0
 public MainLogin(Login parent)
 {
     this.parent = parent;
     InitializeComponent();
     Name = "Open HBC";
 }
Ejemplo n.º 12
0
 public PatientSummary(Login parent)
 {
     this.parent = parent;
     InitializeComponent();
     secure();
 }
Ejemplo n.º 13
0
 public HomeHbC(Login parent)
 {
     this.parent = parent;
     InitializeComponent();
     secure();
 }
Ejemplo n.º 14
0
 public AddCompoundUI(Login p)
 {
     parent = p;
     InitializeComponent();
     cbxParish.Items.AddRange(regConcepts.Sites);
 }
Ejemplo n.º 15
0
 public ReportsBrowser(Login parent)
 {
     this.parent = parent;
     InitializeComponent();
 }
Ejemplo n.º 16
0
 public AddSectionUI(Login p)
 {
     this.parent = p;
     InitializeComponent();
     cbxParish.Items.AddRange(regConcepts.Sites);
 }