Beispiel #1
0
        // Default Constructor
        public BillingForm(PIMSController.BillingLineItem item)
        {
            InitializeComponent();
            tempItem = item;

            // Do not allow user to edit the idTextBox
            this.idTextBox.ReadOnly = true;

            // If we have line items to add
            // Add them
            if (item.itemId != 0)
            {
                this.idTextBox.Text = item.itemId.ToString();
                this.itemTextBox.Text = item.item;
                this.costTextBox.Text = Math.Round(((float)item.cost / 100.0), 2).ToString("N2");
                this.insPaidTextBox.Text = Math.Round(((float)item.insPaid / 100.0), 2).ToString("N2");
                this.paidTextBox.Text = Math.Round(((float)item.paid / 100.0), 2).ToString("N2");
                this.dateTimePicker1.Value = item.dueDate;
                // Makes the billing text box's not editable
                makeReadOnly();
            }
            // This is a new billing line item
            else
            {
                // Set the new line item id in Controller

                // Makes the patient's medical stats editable
                makeReadable();

                saveUpdateButton.Text = "Save New Billing Line Item";
            }

            
        }
Beispiel #2
0
        // Default Constructor
        public PrescriptionForm(PIMSController.PrescDrug drug)
        {
            tempDrug = drug;
            this.Size = Screen.PrimaryScreen.WorkingArea.Size;
            InitializeComponent();

            BindingSource bs = new BindingSource();
            bs.DataSource = PIMS.Program.drugs;
            comboBox1.DataSource = bs;

            if (drug.prescribingPhysician != "new")
            {
                this.physicanTextBox.Text = Program.currentUser.name;
            }

            // If we have drugs to add
            // Add them
            if (drug.id != 0)
            {
                this.comboBox1.Text = drug.drug.name;
                this.sigTextBox.Text = drug.SIG;
                this.dateTimePicker1.Value = drug.dateFilled;

                // Makes the patient's prescription text box's not editable
                makeReadOnly();
            }
            // This is a new drug
            else
            {
                // Makes the patient's prescription text box's editable
                makeReadable();

                saveUpdateButton.Text = "Save New Prescription";
            }
        }
Beispiel #3
0
 // Will add the rows to the resultsDataGridView
 private void addRows(PIMSController.Patient myPatient)
 {
     resultsDataGridView.Rows.Add(null,
                                               myPatient.directory.patientID,
                                               myPatient.directory.lName,
                                               myPatient.directory.fName,
                                               myPatient.directory.mName,
                                               myPatient.directory.DOB.ToString(@"MM\/dd\/yyyy"),
                                               myPatient.directory.gender ? "M" : "F",                                                     
                                               myPatient.directory.location.roomNum,
                                               myPatient.directory.location.bedNum,
                                               myPatient.directory.location.unit,
                                               Convert.ToBoolean(myPatient.directory.location.bedNum) ? "Y" : "N");
 }
        // Default Constructor
        public ScheduledProcedureForm(PIMSController.MedProcedure proc)
        {
            tempProc = proc;

            InitializeComponent();

            // If the text == "Update Procedure"
            // Do not allow Doctor to see the cancelButton
            if (saveUpdateButton.Text == "Update Procedure")
            {
                this.cancelButton.Visible = false;
            }

            // The text == "Save New Procedure"
            // The Docotor might not want to enter in a new procedure
            // Allow them to see the cancelButton
            if (saveUpdateButton.Text == "Save New Procedure")
            {
                this.cancelButton.Visible = true;
            }

            // If we have procdures to add
            // Add them
            if (proc.id != 0)
            {
                this.dateTimePicker1.Value = proc.when;
                this.dateTimePicker2.Value = proc.when;
                this.procdureTextBox.Text = proc.what;
                this.perforedByTextBox.Text = proc.who;
                this.locationTextBox.Text = proc.where;

                // Makes the patient's procdure text box's not editable
                makeReadOnly();
            }
            // This is a new procdure
            else
            {
                // Set the physicianTextBox 
                // Makes the patient's prescription text box's editable
                makeReadable();

                saveUpdateButton.Text = "Save New Procedure";
            }
        }
Beispiel #5
0
 public doctorsNotesGrid(PIMSController.Patient patient)
 {
     InitializeComponent();
 }
Beispiel #6
0
        // Default Constructor
        public NurseNotesForm(PIMSController.MedStaffNotes.patientStats stat)
        {
            tempStat = stat;

            InitializeComponent();

            // If the current user is not a MedicalStaff
            // Don't allow the user to see the saveUpdatebutton
            if (!(Program.currentUser is PIMSController.MedStaff))
            {
                saveUpdateButton.Visible = false;
                cancelButton.Visible = false;
            }

            // If the text == "Update Stat"
            // Do not allow Office staff user to see the cancelButton
            if (saveUpdateButton.Text == "Update Stat")
            {
                this.cancelButton.Visible = false;
            }

            // The text == "Save New Stat"
            // The MedicalStaff user might not want to enter in a new stat
            // Allow them to see the cancelButton
            if (saveUpdateButton.Text == "Save New Stat")
            {
                this.cancelButton.Visible = true;
            }

            // Do not allow user to edit nurseTextBox and dateTimePicker
            this.nurseTextBox.ReadOnly = true;
            this.dateTimePicker1.Enabled = true;

            // If we have stat's to add
            // Add them
            if (stat.idNum != 0)
            {
                if (Program.currentPatient.treatment.medStaffNotes.statList.Count > 0)
                {
                    this.nurseTextBox.Text = stat.nurse;
                    this.dateTimePicker1.Value = stat.time;
                    this.heightTextBox.Text = stat.patientHeight.ToString();
                    this.diaTextBox.Text = stat.bloodPressureDia.ToString();
                    this.sysTextBox.Text = stat.bloodPressureDia.ToString();
                    this.weightTextBox.Text = stat.patientWeight.ToString();
                    this.diaTextBox.Text = stat.bloodPressureDia.ToString();
                    this.sysTextBox.Text = stat.bloodPressureSys.ToString();
                    this.heartRateTextBox.Text = stat.heartrate.ToString();
                } 

                // Make the patient's medical stats not editable
                makeReadOnly();
            }
            // This is a new stat
            else
            {
                this.dateTimePicker1.Value = DateTime.Now;
                this.nurseTextBox.Text = Program.currentUser.name;
                
                // Make the patient's medical stats editable
                makeReadable();

                saveUpdateButton.Text = "Save New Stat";
            }
        }