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 MedicalInsurance.Common;
- namespace MedicalInsurance.Forms
- {
- public partial class ChooseCard : Form
- {
- public string cardType;
- public string businessType;
- public string ID;
- public ChooseCard()
- {
- InitializeComponent();
- }
- private void uiPanel2_Click(object sender, EventArgs e)
- {
- }
- private void btOk_Click(object sender, EventArgs e)
- {
- // 市医保密码860228
- cardType = "0" + (rbgCardType.SelectedIndex +1).ToString();
- businessType = "01" + cbBusinessType.Text.Substring(0,3);
- GlobalVariables.business_type = businessType;
- if (rbgCardType.SelectedIndex == 1)
- {
- if (tbID.Text == "")
- {
- ID = "";
- }
- else
- {
- ID = tbID.Text;
- }
- }
- DialogResult = DialogResult.OK;
- }
- private void ChooseCard_Load(object sender, EventArgs e)
- {
- rbgCardType.SelectedIndex = 0;
- cbBusinessType.SelectedIndex = 0;
- }
- private void rbgCardType_ValueChanged(object sender, int index, string text)
- {
- if (rbgCardType.SelectedIndex == 0)
- {
- cbBusinessType.Enabled = true;
- }
- else
- {
- cbBusinessType.Enabled = false;
- }
- if (rbgCardType.SelectedIndex == 1)
- {
- tbID.Enabled = true;
- tbName.Enabled = true;
- }
- else
- {
- tbID.Enabled = false;
- tbName.Enabled = false;
- }
- if (rbgCardType.SelectedIndex == 2)
- {
- cbCardType.SelectedIndex = 0;
- cbCardLevel.SelectedIndex = 2;
- cbCardType.Enabled = true;
- tbPassword.Enabled = true;
- //tbPassword.Text = "";
- }
- else
- {
- cbCardType.Enabled = false;
- tbPassword.Enabled = false;
- }
- }
- private void btCancle_Click(object sender, EventArgs e)
- {
- DialogResult = DialogResult.Cancel;
- }
- }
- }
|