private void cbDischargeType_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (loaded)
     {
         patient.dischargeTypeId = (DischargeTypeId)ComboBoxUtils.GetSelectedValue(cbDischargeType);
         SetDischargeType();
     }
 }
Exemplo n.º 2
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     ward.number       = tbNumber.Text.Trim();
     ward.wardTypeId   = (WardTypeId)ComboBoxUtils.GetSelectedValue(cbWardType);
     ward.numberOfBeds = (int)nudNumberOfBeds.Value;
     using (GmConnection conn = App.CreateConnection())
     {
         ward.Save(conn);
     }
 }
Exemplo n.º 3
0
 private void Save()
 {
     dataRow["PrescriptionTypeId"]   = ComboBoxUtils.GetSelectedValue(cbPrescriptionType);
     dataRow["PrescriptionTypeName"] = ComboBoxUtils.GetSelectedText(cbPrescriptionType);
     dataRow["StartDate"]            = dtpStartDate.Value;
     dataRow["EndDate"]         = dtpEndDate.Value;
     dataRow["Dose"]            = nudDose.Value;
     dataRow["Multiplicity"]    = (int)nudMultiplicity.Value;
     dataRow["Duration"]        = (int)nudDuration.Value;
     dataRow["ReanimationFlag"] = (bool)chkReanimation.Checked;
 }
 void LoadData()
 {
     ComboBoxUtils.Fill(colHandbookGroupId, App.Config.GetHandbookGroups("analysis"));
     using (GmConnection conn = App.CreateConnection())
     {
         dataAdapter = conn.CreateDataAdapter("select * from AnalysisTypes");
         dataAdapter.Fill(dataTable);
     }
     dataTable.DefaultView.Sort = "Name";
     gridView.DataSource        = dataTable;
 }
Exemplo n.º 5
0
 internal void Save()
 {
     if (!loaded)
     {
         return;
     }
     ucHandbooksInfo.Save();
     patient.admissionDate         = dtpAdmissionDate.Value;
     patient.patientTypeId         = (PatientTypeId)ComboBoxUtils.GetSelectedValue(cbPatientType);
     patient.wardId                = ComboBoxUtils.GetSelectedValue(cbWard);
     patientData.descriptionTime   = dtpDescriptionTime.Value;
     patientData.sickListStartDate = dtpSickListStartDate.Value;
     patient.dietNumber            = cbDiet.Text;
 }
 private void btnOk_Click(object sender, EventArgs e)
 {
     product.name         = tbName.Text.Trim();
     product.code         = tbCode.Text.Trim();
     product.packedNumber = (int)nudPackedNumber.Value;
     product.medicamentId = ComboBoxUtils.GetSelectedValue(cbMedicament);
     product.maker        = tbMaker.Text.Trim();
     product.baseUnitId   = ComboBoxUtils.GetSelectedValue(cbBaseUnit);
     product.unitCount    = nudUnitCount.Value;
     product.medLists     = cbMedLists.Text;
     using (GmConnection conn = App.CreateConnection())
     {
         product.Save(conn);
     }
 }