Пример #1
0
        private void gridViewQueue_DoubleClick(object sender, System.EventArgs e)
        {
            buttonPayment.Enabled = true;
            PrescriptionBusiness presBsn = new PrescriptionBusiness();
            var row = gridViewQueue.GetFocusedDataRow();

            textMedicalRecordID.EditValue = row["MedicalRecordID"];
            textPatientName.Text          = row["FullName"].ToString();
            textPatientID.Text            = row["PatientID"].ToString();
            textDateOfBirth.Text          = ((DateTime)row["DateOfBirth"]).ToShortDateString();
            ServiceDetailBusiness serviceDetainBns = new ServiceDetailBusiness();
            DataTable             ServiceListTable = serviceDetainBns.GetById((int)row["MedicalRecordID"]);

            ServiceListTable.Columns.Add("NotCalFee", typeof(bool));
            medicineFee = presBsn.GetMedicineFee((int)row["MedicalRecordID"]);
            var rowService = ServiceListTable.NewRow();

            rowService["ServiceID"]   = ServiceListTable.Rows.Count + 1;
            rowService["ServiceName"] = "Tiền thuốc";
            rowService["ServiceFee"]  = medicineFee;
            ServiceListTable.Rows.Add(rowService);
            foreach (DataRow addrow in ServiceListTable.Rows)
            {
                addrow["NotCalFee"] = false;
            }


            gridServiceList.DataSource = ServiceListTable;
            // Get total fee
            serviceFee        = serviceDetainBns.GetTotalFee((int)row["MedicalRecordID"]);
            totalFee          = (serviceFee + medicineFee);
            textTotalFee.Text = totalFee.ToString();
        }
Пример #2
0
 public ExamineForm()
 {
     InitializeComponent();
     queueBusiness         = new QueueBusiness();
     medicalRecordBusiness = new MedicalRecordBusiness();
     serviceDetailBusiness = new ServiceDetailBusiness();
     serviceBusiness       = new ServiceBusiness();
 }
 public ServicesDetailController(MardisContext mardisContext,
                                 ILoggerFactory _loggerFactory,
                                 RedisCache distributedCache)
 {
     _serviceDetailBusiness = new ServiceDetailBusiness(mardisContext);
     _questionBusiness      = new QuestionBusiness(mardisContext);
     _qestionDetailBusiness = new QuestionDetailBusiness(mardisContext);
     _taskCampaignBusiness  = new TaskCampaignBusiness(mardisContext, distributedCache);
     _logger = _loggerFactory.CreateLogger("Mardis.Engine.Services");
 }
Пример #4
0
        public ServiceDetailController(UserManager <ApplicationUser> userManager,
                                       IHttpContextAccessor httpContextAccessor,
                                       MardisContext mardisContext,
                                       ILogger <ServiceDetailController> logger,
                                       ILogger <ServicesFilterController> loggeFilter,
                                       IDataProtectionProvider protectorProvider,
                                       IMemoryCache memoryCache)
            : base(userManager, httpContextAccessor, mardisContext, logger)
        {
            ControllerName         = CTask.Controller;
            TableName              = CTask.TableName;
            _serviceDetailBusiness = new ServiceDetailBusiness(mardisContext);

            _idAccount = ApplicationUserCurrent.AccountId;
        }