Beispiel #1
0
        private void OnAddNewChiefComplainClick(object sender, EventArgs e)
        {
            ChiefComplain obj = new ChiefComplain(this.mHistoryProcedure);

            ChiefComplainForm.ShowForm(obj);
            ChiefComplainCollection chiefComplainList = new ChiefComplainCollection();

            this.cmbChiefComplain.DataSource    = chiefComplainList;
            this.cmbChiefComplain.DisplayMember = "DisplayName";
        }
        protected override void OnDataShow()
        {
            base.OnDataShow();
            ChiefComplainCollection opdtreatmentcollection = new ChiefComplainCollection();

            if (!Objectbase.IsNullOrEmpty(this.mEntry))
            {
                this.CheckPermission();
                this.txtMedicine.Text    = this.mEntry.Name;
                this.txtDescription.Text = this.mEntry.Description;
                txtMedicine.Focus();
            }
        }
        protected override void OnDataShow()
        {
            base.OnDataShow();
            ChiefComplainCollection opdtreatmentcollection = new ChiefComplainCollection();

            this.cmbChiefComplain.DataSource    = opdtreatmentcollection;
            this.cmbChiefComplain.DisplayMember = "DisplayName";
            this.cmbChiefComplain.SelectedItem  = null;

            if (!Objectbase.IsNullOrEmpty(this.mEntry))
            {
                this.CheckPermission();
                this.cmbChiefComplain.SelectedItem = this.mEntry.chiefcomplain;
                this.txtTreatment.Text             = this.mEntry.Name;
                this.txtDescription.Text           = this.mEntry.Description;
                this.cmbChiefComplain.Select();
            }
        }
Beispiel #4
0
        protected override void OnDataShow()
        {
            base.OnDataShow();
            this.cmbChiefComplain.Select();
            this.Text = "History Procedure";

            ChiefComplainCollection chiefComplainList = new ChiefComplainCollection();

            this.cmbChiefComplain.DataSource    = chiefComplainList;
            this.cmbChiefComplain.DisplayMember = "DisplayName";
            this.cmbChiefComplain.SelectedItem  = null;


            AssociateComplainCollection associateComplainList = new AssociateComplainCollection();

            this.cmbAssociateComplain.DataSource    = associateComplainList;
            this.cmbAssociateComplain.DisplayMember = "DisplayName";
            this.cmbAssociateComplain.SelectedItem  = null;

            HistoryCollection historyList = new HistoryCollection();

            this.cmbHistoryOfProblem.DataSource    = historyList;
            this.cmbHistoryOfProblem.DisplayMember = "DisplayName";
            this.cmbHistoryOfProblem.SelectedItem  = null;

            this.txtProblemSince.Text = this.mHistoryProcedure.ProblemSince;
            this.txtAssociateComplainDuration.Text = this.mHistoryProcedure.AssociateComplainDuration;
            this.txtFamilyHistory.Text             = this.mHistoryProcedure.FamilyHistory;
            this.txtFamilyHistoryDuration.Text     = this.mHistoryProcedure.FamilyHistoryDuration;
            this.txtBP.Text         = this.mHistoryProcedure.BP;
            this.txtHR.Text         = this.mHistoryProcedure.HR;
            this.txtRR.Text         = this.mHistoryProcedure.RR;
            this.txtTemp.Text       = this.mHistoryProcedure.Temp;
            this.txtRBS.Text        = this.mHistoryProcedure.RBS;
            this.txtECG.Text        = this.mHistoryProcedure.ECG;
            this.txtWt.Text         = this.mHistoryProcedure.Wt;
            this.txtOther.Text      = this.mHistoryProcedure.Other;
            this.txtMLC.Text        = this.mHistoryProcedure.MLCNo;
            this.txtTimeHour.Text   = this.mHistoryProcedure.TimeHour;
            this.txtTimeMinute.Text = this.mHistoryProcedure.TimeMinute;
            this.txtTimeAMPM.Text   = this.mHistoryProcedure.TimeAMPM;
            if (!string.IsNullOrEmpty(this.mHistoryProcedure.FollowUpDate.Date.ToString()) && (this.mHistoryProcedure.FollowUpDate != DateTime.MinValue))
            {
                this.dtpFollowUp.Checked = true;
                this.dtpFollowUp.Value   = this.mHistoryProcedure.FollowUpDate;
            }
            if (!string.IsNullOrEmpty(this.mHistoryProcedure.Date.ToString()) && (this.mHistoryProcedure.Date != DateTime.MinValue))
            {
                this.dtpHistoryDate.Value = this.mHistoryProcedure.Date;
            }

            //ChiefComplain
            if (this.OPDChiefComplains.Count > 0)
            {
                for (int i = 0; i < cmbChiefComplain.Items.Count; i++)
                {
                    for (int j = 0; j < this.OPDChiefComplains.Count; j++)
                    {
                        if (OPDChiefComplains[j].ChiefComplainGuid == new Guid(cmbChiefComplain.Items[i].ToString()))
                        {
                            cmbChiefComplain.SetItemChecked(i, true);
                            break;
                        }
                    }
                }
            }

            //Associate Complain

            if (this.OPDAssociateComplains.Count > 0)
            {
                for (int i = 0; i < cmbAssociateComplain.Items.Count; i++)
                {
                    for (int j = 0; j < this.OPDAssociateComplains.Count; j++)
                    {
                        if (OPDAssociateComplains[j].AssociateComplainGuid == new Guid(cmbAssociateComplain.Items[i].ToString()))
                        {
                            cmbAssociateComplain.SetItemChecked(i, true);
                            break;
                        }
                    }
                }
            }

            //History

            if (this.OPDHistorys.Count > 0)
            {
                for (int i = 0; i < cmbHistoryOfProblem.Items.Count; i++)
                {
                    for (int j = 0; j < this.OPDHistorys.Count; j++)
                    {
                        if (OPDHistorys[j].HistoryGuid == new Guid(cmbHistoryOfProblem.Items[i].ToString()))
                        {
                            cmbHistoryOfProblem.SetItemChecked(i, true);
                            break;
                        }
                    }
                }
            }

            LoadHistoryProcedure(GetSelectedProcedure(this.dgvHistoryData));
        }