Ejemplo n.º 1
0
 private void btnNext_BtnClicked(object sender, EventArgs e)
 {
     // if (btnNext.Title.Equals("确认"))
     {
         if (string.IsNullOrEmpty(txtPacuNo.Text))
         {
             MessageBoxFormPC.Show("复苏床位为必填项目!",
                                   "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
             return;
         }
         if (!_isSelectMark)
         {
             if (!InPacuRoom())
             {
                 return;
             }
             //monitor.Save();
         }
         SelectDateTime = Convert.ToDateTime(txtInPacuTime.EditValue);
         if (ApplicationConfiguration.IsUpdateHisStatus)
         {
             string ret = new SyncInfoRepository().SyncOPER503W(_patientID, _visitID, _operID, 45).Data;
         }
         result = DialogResult.OK;
         ParentForm.DialogResult = DialogResult.OK;
     }
 }
Ejemplo n.º 2
0
        private void btnNext_BtnClicked(object sender, EventArgs e)
        {
            if (radioStatusOperTurnTo.SelectedIndex < 0)
            {
                MessageBoxFormPC.Show("请填写术后去向!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            if (OutPacuRoom())
            {
                statusTime = timeControl.DateTimes;
                if (ApplicationConfiguration.IsUpdateHisStatus)
                {
                    MED_OPERATION_MASTER operMaster = operationInfoRepository.GetOperMaster(ExtendApplicationContext.Current.PatientContextExtend.PatientID, ExtendApplicationContext.Current.PatientContextExtend.VisitID, ExtendApplicationContext.Current.PatientContextExtend.OperID).Data;
                    Logger.Error("SyncOPER503W前:" + operMaster.PATIENT_ID + "|" + operMaster.VISIT_ID + "|" + operMaster.OPER_ID + "|" + operMaster.OPER_STATUS_CODE + "|" + operMaster.IN_PACU_DATE_TIME + "|" + operMaster.OUT_PACU_DATE_TIME);

                    string ret = new SyncInfoRepository().SyncOPER503W(_patientID, _visitID, _operID, 55).Data;

                    operMaster = operationInfoRepository.GetOperMaster(ExtendApplicationContext.Current.PatientContextExtend.PatientID, ExtendApplicationContext.Current.PatientContextExtend.VisitID, ExtendApplicationContext.Current.PatientContextExtend.OperID).Data;

                    Logger.Error("SyncOPER503W后:" + operMaster.PATIENT_ID + "|" + operMaster.VISIT_ID + "|" + operMaster.OPER_ID + "|" + operMaster.OPER_STATUS_CODE + "|" + operMaster.IN_PACU_DATE_TIME + "|" + operMaster.OUT_PACU_DATE_TIME);
                }
                result = DialogResult.OK;
                ParentForm.DialogResult = DialogResult.OK;
            }
        }
Ejemplo n.º 3
0
 static DataAccess()
 {
     try
     {
         SyncInfoRepository    = new SyncInfoRepository();
         RewardLevelRepository = new RewardLevelRepository();
     }
     catch (Exception e)
     {
         Debug.WriteLine(e);
     }
 }