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