Example #1
0
 private void btnUpload_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     long lngRes = 0;
     string message = "";            
     string strlsh0 = this.m_strGenerateZYLSH0(this.objPatient_VO.RegisterID);
     lngRes = objSvc.m_lngInsertRegister(strlsh0, this.objPatient_VO.Zyh);
     switch (lngRes)
     {
         case 1:
             message = "上传预出院病人信息成功";
             break;
         case 0:
             message = "找不到预出院病人信息";
             break;
         default:
             message = "上传预出院病人信息失败";
             break;
     }
     lngRes = objSvc.m_lngInsertRegisterCharge(strlsh0, this.objPatient_VO.Zyh);
     switch (lngRes)
     {
         case 1:
             message += "\r\n\r\n上传费用明细成功";
             break;
         case 0:
             message = "\r\n\r\n上传 0 条费用明细记录";
             break;
         default:
             message = "\r\n\r\n上传费用明细失败";
             break;
     }
     this.Cursor = Cursors.Default;
     MessageBox.Show(this, message, "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
 }
Example #2
0
 /// <summary>
 /// 直接上传病人信息
 /// </summary>
 /// <param name="p_strRegisterID"></param>
 /// <param name="p_strZyh"></param>
 public void m_mthUploadYbInfo(string p_strRegisterID, string p_strZyh)
 {
     long lngRes = 0;
     this.txtYBpay.ReadOnly = true;
     this.txtYBpay.BackColor = Color.White;
     this.txtSbmny.ReadOnly = true;
     this.txtSbmny.BackColor = Color.White;
     if (!m_blnIsRecived)
         btnComplete.Enabled = false;
     this.m_mthGetZYLSH0();
     objSvc = new clsDcl_Charge();
     string strlsh0 = this.m_strGenerateZYLSH0(this.objPatient_VO.RegisterID);
     lngRes = this.objSvc.m_lngDelYBInfo(strlsh0);
     lngRes = objSvc.m_lngInsertRegister(strlsh0, this.objPatient_VO.Zyh);
     lngRes = objSvc.m_lngInsertRegisterCharge(strlsh0, this.objPatient_VO.Zyh);
     this.btnUpload.Enabled = false;
     this.btnDel.Enabled = false;
 }