Exemplo n.º 1
0
        public frmPatientDataUpdate(string PatientID)
        {
            InitializeComponent();
            dtpVST.DateTime = DateTime.Now.Date;
            PID             = PatientID;

            Patient        p  = new Patient();
            PatientContext px = new PatientContext();

            p           = px.GetPatient(PatientID);
            txtPID.Text = p.ID;
            txtPNM.Text = p.PatientName;
            txtADR.Text = p.Address;
            txtPHN.Text = p.PhoneNo;

            MedicineContext mx = new MedicineContext();
            ServerToClient  sc = new ServerToClient();

            sc = mx.GetMedicines();

            for (int i = 0; i <= sc.Count - 1; i++)
            {
                cboMED.Properties.Items.Add(sc.DT.Rows[i].ItemArray[0].ToString());
            }
        }
Exemplo n.º 2
0
        public frmPatient(string PatientID)
        {
            InitializeComponent();
            ID = PatientID;

            Patient        p  = new Patient();
            PatientContext px = new PatientContext();

            p = px.GetPatient(ID);

            txtPID.Text     = ID;
            txtPNM.Text     = p.PatientName;
            cboSEX.Text     = p.Sex;
            dtpDOB.DateTime = p.DateOfBirth;
            txtPHN.Text     = p.PhoneNo;
            txtADR.Text     = p.Address;
            txtCMT.Text     = p.Comments;
            txtHIS.Text     = p.MedicalHistory;
            btnSave.Text    = "&Update";
        }
Exemplo n.º 3
0
        public rptPatientDetail(string PatientID)
        {
            InitializeComponent();

            ServerToClient   sc = new ServerToClient();
            Patient          p  = new Patient();
            PatientContext   px = new PatientContext();
            TreatmentContext tx = new TreatmentContext();

            p = px.GetPatient(PatientID);

            lbPID.Text = p.ID;
            lbPNM.Text = p.PatientName;
            lbADR.Text = p.Address;
            lbHIS.Text = p.MedicalHistory;
            lbCMT.Text = p.Comments;
            lbPHN.Text = p.PhoneNo;
            lbAGE.Text = p.Age.ToString();
            lbSEX.Text = p.Sex;

            sc         = tx.GetTreatments(PatientID);
            DataSource = sc.DT;

            GroupField tdt = new GroupField("TreatmentDate");

            GroupHeader1.GroupFields.Add(tdt);
            XRSummary amt = new XRSummary();

            lbTDT.DataBindings.Add("Text", null, "TreatmentDate", "{0:dd-MM-yyyy}");
            lbCMP.DataBindings.Add("Text", null, "MainComplain");
            lbEXM.DataBindings.Add("Text", null, "Examination");
            lbTMP.DataBindings.Add("Text", null, "Treatment");
            lbMED.DataBindings.Add("Text", null, "Medicine");
            lbAMT.DataBindings.Add("Text", null, "Amount", "{0:C2}");
            lbTAM.DataBindings.Add("Text", null, "Amount");

            amt.FormatString = "{0:C2}";
            amt.Running      = SummaryRunning.Report;

            lbTAM.Summary = amt;
        }