private void StoreProductForm_Load(object sender, EventArgs e)
        {
            if (DesignMode)
            {
                return;
            }

            lblProductInfo.Text = (string)dataRow["Name"];
            nudPrice.Value      = (decimal)dataRow["Price"];
            nudCount.Value      = (decimal)dataRow["Count"];
            tbSeries.Text       = (string)dataRow["Series"];
            DateTimePickerUtils.Init(dpExpiredDate, dataRow["ExpiredDate"]);

            /*			tbMedicament.Text=dataRow["ProductName"].ToString();
             *          using (GmConnection conn = App.CreateConnection())
             *          {
             *              ComboBoxUtils.Fill(cbStoreProductType,conn,"select Id, Name from StoreProductTypes order by Name",(int)dataRow["StoreProductTypeId"]);
             *          }
             *          dpExpiredDate.Value = (DateTime)dataRow["StartDate"];
             *          dtpEndDate.Value=(DateTime)dataRow["ExpiredDate"];
             *          nudDose.Value = (decimal)dataRow["Dose"];
             *          nudMultiplicity.Value = (int)dataRow["Multiplicity"];
             *          lblUnit.Text = dataRow["BaseUnitName"].ToString();
             *          dpExpiredDate.ShowUpDown = true;
             *          dtpEndDate.ShowUpDown = true;
             *          nudDuration.Value = (int)dataRow["Duration"];
             *          chkReanimation.Checked = (bool)dataRow["ReanimationFlag"];
             */
        }
 private void PatientConsultationForm_Load(object sender, EventArgs e)
 {
     if (DesignMode)
     {
         return;
     }
     DateTimePickerUtils.Init(dtpRequestDate, patientConsultation.requestDate);
     DateTimePickerUtils.Init(dtpExecutionDate, patientConsultation.executionDate);
     ucHandbooksInfo.Init(patientConsultation.consultationData, App.Config[HandbookGroupId.ConsultationData]);
 }
 private void PatientIdentificationUserControl_Load(object sender, EventArgs e)
 {
     if (base.DesignMode)
     {
         return;
     }
     ucHandbooksInfo.Init(patientIdentification.identificationData, App.Config[HandbookGroupId.PatientIdentification]);
     using (GmConnection conn = App.CreateConnection())
     {
         cbGender.Fill(conn, "select Id, Name from Genders", (int)patientIdentification.gender, "");
     }
     DateTimePickerUtils.Init(dtpBirthday, patientIdentification.birthday);
     tbMiddleName.Text = patientIdentification.middleName;
     tbName.Text       = patientIdentification.name;
     tbSurname.Text    = patientIdentification.surname;
     loaded            = true;
 }
 private void DischargeForm_Load(object sender, EventArgs e)
 {
     if (DesignMode)
     {
         return;
     }
     if (patient.dischargeTypeId == DischargeTypeId.None)
     {
         patient.dischargeTypeId = DischargeTypeId.Discharge;
     }
     DateTimePickerUtils.Init(dtpDischargeDate, patient.dischargeDate);
     using (GmConnection conn = App.CreateConnection())
     {
         patientName = patient.GetPatientName(conn);
         cbDischargeType.Fill(conn, "select * from DischargeTypes", (int)patient.dischargeTypeId);
     }
     SetDischargeType();
     loaded = true;
 }
예제 #5
0
        private void AnalysisForm_Load(object sender, EventArgs e)
        {
            if (DesignMode)
            {
                return;
            }
            DateTimePickerUtils.Init(dtpRequestDate, analysis.requestDate);
            DateTimePickerUtils.Init(dtpExecutionDate, analysis.executionDate);
            AnalysisType analysisType;

            using (GmConnection conn = App.CreateConnection())
            {
                analysisType = analysis.GetAnalysisType(conn);
            }
            base.Text = analysisType.name;
            HandbookGroup hg = App.Config.GetHandbookGroup(analysisType.handbookGroupId);

            if (hg != null)
            {
                ucHandbooksInfo.Init(analysis.analysisData, hg);
            }
        }