예제 #1
0
 /// <summary>
 /// 保存体检病人信息到HIS
 /// </summary>
 /// <param name="patient"></param>
 /// <returns></returns>
 protected YY_BRXX SavePatientInfo(PhysicalExaminePatient patient)
 {
     try
     {
         string sexCode  = patient.Sex == "男" ? "1" : "2";
         string csrq     = "";
         Guid   brxxid   = Guid.Empty;
         int    err_code = 0;
         string err_text = "";
         if (patient.BornDay != null)
         {
             csrq = patient.BornDay.Value.ToString("yyyy-MM-dd 00:00:00");
         }
         int brlx = 1;
         YY_BRXX.BrxxDj(Guid.Empty, patient.Name, sexCode, csrq, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", brlx, 0, "",
                        _CurrentUser.EmployeeId, 2, out brxxid, out err_code, out err_text, _Database);
         if (err_code != 0 || brxxid == Guid.Empty)
         {
             throw new Exception("保存病人信息失败" + err_text);
         }
         return(new YY_BRXX(brxxid, _Database));
     }
     catch (Exception error)
     {
         throw error;
     }
 }
예제 #2
0
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex == -1)
     {
         return;
     }
     if (this.dataGridView1.Columns[e.ColumnIndex].Name == COL_SELECTED.Name)
     {
         PhysicalExaminePatient patient = (PhysicalExaminePatient)dataGridView1.CurrentRow.DataBoundItem;
         selectedPatient   = patient;
         this.DialogResult = DialogResult.OK;
         this.Close();
     }
 }
예제 #3
0
 /// <summary>
 /// 执行收费
 /// </summary>
 /// <returns></returns>
 public abstract bool ExecPricing(PhysicalExaminePatient patient);