Esempio n. 1
0
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            DAL.Model.Pathology saveService = new DAL.Model.Pathology();
            saveService.VoucherNo = txtVoucherNo.Text;
            MessageModel message = new DoctorWisePatientManager().DeletePathologyPayment(saveService);

            MessageBox.Show(message.MessageBody, message.MessageTitle, MessageBoxButtons.OK, MessageBoxIcon.Information);
            Clear();
        }
Esempio n. 2
0
        public MessageModel SaveConsultantPayment(DAL.Model.Pathology aService)
        {
            int saveService = new DoctorWisePatientGatway().SaveConsultantPayment(aService);

            if (saveService > 0)
            {
                messageModel.MessageBody  = " save successfully!";
                messageModel.MessageTitle = "Successfull";
            }
            return(messageModel);
        }
Esempio n. 3
0
        private void simpleButton4_Click(object sender, EventArgs e)
        {
            DAL.Model.Pathology saveService = new DAL.Model.Pathology();
            saveService.VoucherNo   = txtVoucherNo.Text;
            saveService.Particulars = pathology;
            saveService.Date        = datePathology.Value;
            saveService.Description = txtDescription.Text;
            saveService.Inword      = lblInward.Text;
            saveService.Amount      = Convert.ToDecimal(txtTotalAmount.Text);
            saveService.UserId      = MainWindow.userName;
            MessageModel message = new DoctorWisePatientManager().UpdatePathologyPayment(saveService);

            MessageBox.Show(message.MessageBody, message.MessageTitle, MessageBoxButtons.OK, MessageBoxIcon.Information);
            Clear();
        }