1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- 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 Newtonsoft.Json.Linq;
- namespace BJShouXinYB_Demo
- {
- public partial class ChooseCard : Form
- {
- public int sL_CardType, iOtherProvLocal, personAccountUsedFlag;
- public string sYMYWLX, QrCode, JZRQLX, WSBZ = "0", SJDSFBZ = "0";
- public ChooseCard()
- {
- InitializeComponent();
- this.StartPosition = FormStartPosition.CenterParent;
- }
- private void btn_Search_Click(object sender, EventArgs e)
- {
- if (edt_QrCode.Text == "")
- {
- MessageBox.Show("请输入医保编号");
- edt_QrCode.SelectAll();
- return;
- }
- if (chk_ZHZF.Checked)
- personAccountUsedFlag = 1;
- else
- personAccountUsedFlag = 0;
- DialogResult = DialogResult.OK;
- }
- private void btOk_Click(object sender, EventArgs e)
- {
- if (rbgOtherProv.SelectedIndex == 0)
- iOtherProvLocal = 0; //本地
- else
- iOtherProvLocal = 1; //异地
- sL_CardType = rbgMdtrtCertType.SelectedIndex; //就诊凭证类型
- QrCode = edt_QrCode.Text; //二维码
- sYMYWLX = cbb_YMYWLX.Text.Trim().Substring(0, 5); //用码业务类型
- DialogResult = DialogResult.OK;
- }
- private void ChooseCard_Load(object sender, EventArgs e)
- {
- rbgMdtrtCertType.SelectedIndex = 0; //社保卡
- cbb_YMYWLX.SelectedIndex = 0; //用码业务类型
- rbgOtherProv.SelectedIndex = 0; //本地
- iOtherProvLocal = 0;
- }
- private void ChooseCard_FormClosed(object sender, FormClosedEventArgs e)
- {
- if (cbb_JZRQLX.SelectedIndex >= 0)
- JZRQLX = cbb_JZRQLX.Text.Trim().Substring(0, 1);
- WSBZ = chk_WSBZ.Checked.ToString();
- SJDSFBZ = chk_SJDSFBZ.Checked.ToString();
- }
- private void rbgMdtrtCertType_ValueChanged(object sender, int index, string text)
- {
- //电子凭证
- if (rbgMdtrtCertType.SelectedIndex == 1)
- {
- edt_QrCode.Enabled = true;
- cbb_YMYWLX.Enabled = true;
- edt_QrCode.Focus();
- }
- else
- {
- edt_QrCode.Enabled = false;
- cbb_YMYWLX.Enabled = false;
- }
- }
- private void btCancle_Click(object sender, EventArgs e)
- {
- DialogResult = DialogResult.Cancel;
- }
-
- }
- }
|