| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 | 
							- using System;
 
- using System.Collections.Generic;
 
- using System.ComponentModel;
 
- using System.Data;
 
- using System.Data.SqlTypes;
 
- using System.Drawing;
 
- using System.Linq;
 
- using System.Text;
 
- using System.Threading.Tasks;
 
- using System.Windows.Forms;
 
- using PTMedicalInsurance.Common;
 
- using PTMedicalInsurance.Helper;
 
- using Newtonsoft.Json.Linq;
 
- using PTMedicalInsurance.Forms;
 
- using PTMedicalInsurance.Variables;
 
- namespace PTMedicalInsurance.Forms
 
- {
 
-     public partial class ChooseCard : Form
 
-     {
 
-         public int sL_CardType, personAccountUsedFlag;
 
-         public string sYMYWLX, sYLLB, QrCode, JZRQLX, WSBZ = "0", SJDSFBZ = "0";
 
-         public ChooseCard()
 
-         {
 
-             InitializeComponent();
 
-             this.StartPosition = FormStartPosition.CenterParent;
 
-         }
 
-         private void btCancle_Click(object sender, EventArgs e)
 
-         {
 
-             DialogResult = DialogResult.Cancel;
 
-         }
 
-         private void btnOk_Click(object sender, EventArgs e)
 
-         {
 
-             sL_CardType = rbgMdtrtCertType.SelectedIndex;  //就诊凭证类型
 
-             QrCode = edt_QrCode.Text;  //二维码
 
-             sYMYWLX = cbb_YMYWLX.Text.Trim().Substring(0, 5);   //用码业务类型    
 
-             if (chk_MedInsuShare.Checked)
 
-                 Global.pat.bMedInsuShare = true;
 
-             else
 
-                 Global.pat.bMedInsuShare = false;
 
-             DialogResult = DialogResult.OK;
 
-         }
 
-         private void edt_QrCode_KeyPress(object sender, KeyPressEventArgs e)
 
-         {
 
-             if (e.KeyChar == 13)//如果输入的是回车键 
 
-             {
 
-                 //业务逻辑
 
-                 btnOk_Click(sender, e);
 
-             }
 
-         }
 
-         private void btn_Search_Click(object sender, EventArgs e)
 
-         {
 
-             if (edt_QrCode.Text == "")
 
-             {
 
-                 MessageBox.Show("请输入医保编号");
 
-                 edt_QrCode.SelectAll();
 
-                 return;
 
-             } 
 
-             sL_CardType = rbgMdtrtCertType.SelectedIndex;  //就诊凭证类型
 
-             QrCode = edt_QrCode.Text;  //二维码
 
-             sYMYWLX = cbb_YMYWLX.Text.Trim().Substring(0, 5);   //用码业务类型    
 
-             if (chk_MedInsuShare.Checked)
 
-                 Global.pat.bMedInsuShare = true;
 
-             else
 
-                 Global.pat.bMedInsuShare = false;
 
-             DialogResult = DialogResult.OK;
 
-         }
 
-         private void ChooseCard_Load(object sender, EventArgs e)
 
-         {
 
-             rbgMdtrtCertType.SelectedIndex = 0;   //社保卡
 
-             cbb_YMYWLX.SelectedIndex = 0;         //用码业务类型
 
-             if (Global.inf.operationType == "RegisterOP") //门诊挂号结算时 才显示
 
-                 chk_MedInsuShare.Visible = true;
 
-         }
 
-         private void rbgMdtrtCertType_ValueChanged(object sender, int index, string text)
 
-         {
 
-             //电子凭证
 
-             if (rbgMdtrtCertType.SelectedIndex == 1)
 
-             {
 
-                 cbb_YMYWLX.Enabled = true;
 
-                 edt_QrCode.Focus();
 
-             }
 
-             else
 
-                 cbb_YMYWLX.Enabled = false;
 
-         }
 
-      
 
-     }
 
- }
 
 
  |