Ejemplo n.º 1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            ConsultBillService aConsultBillService = new ConsultBillService();
            ConsultantCall     aConsultantCall     = new ConsultantCall();

            aConsultantCall.OpId         = txtPatientID.Text;
            aConsultantCall.ConsultantId = searchLookUpEditConsultant.EditValue.ToString();
            aConsultantCall.Id           = Convert.ToInt32(txtVoucherNo.Text);

            aConsultBillService.OPID            = txtPatientID.Text;
            aConsultBillService.ConsultId       = searchLookUpEditConsultant.EditValue.ToString();
            aConsultBillService.ConsultBillDate = dateServiceDate.Text;
            aConsultBillService.ConFee          = Convert.ToDouble(txtFee.Text);
            aConsultBillService.ConQty          = 1;
            aConsultBillService.VchNo           = Convert.ToInt64(txtVoucherNo.Text);

            MessageModel message = new ConsultantCallManager().SaveConsultantCall(aConsultantCall, aConsultBillService);

            if (message.MessageTitle == "Successful")
            {
                MetroFramework.MetroMessageBox.Show(this, message.MessageBody, message.MessageTitle, MessageBoxButtons.OK, MessageBoxIcon.Information);
                Refresh();
            }
            else
            {
                MetroFramework.MetroMessageBox.Show(this, message.MessageBody, message.MessageTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
Ejemplo n.º 2
0
        public void GenerateVoucherNo()
        {
            DataTable data = new ConsultantCallManager().GenerateVoucherNo();

            if (data.Rows.Count > 0)
            {
                txtVoucherNo.Text = data.Rows[0]["VchNo"].ToString();
            }
        }
Ejemplo n.º 3
0
        public void GetAllIpPatient()
        {
            DataTable dt = new DataTable();

            dt = new ConsultantCallManager().GetAllIpAdmissionInfo();

            if (dt.Rows.Count > 0)
            {
                searchLookUpGetPatient.Properties.DataSource    = dt;
                searchLookUpGetPatient.Properties.DisplayMember = "PatientName";
                searchLookUpGetPatient.Properties.ValueMember   = "OPID";
            }
        }
Ejemplo n.º 4
0
        public void ViewConsultant()
        {
            DataTable dt = new ConsultantCallManager().ViewConsultantMaster(FromDate.Value, ToDate.Value);

            gridControl1.DataSource = dt;
        }