/// <summary> /// 直接进入开通会员界面 /// </summary> /// <param name="card">若card为null自动生成card</param> public OpenMemberView(StructCard card) { InitializeComponent(); if (card == null) { StructCard.Builder newcard = new StructCard.Builder() { Name = "xx22", Gender = 1, Nation = "2112", Number = ToolsManage.RandomCard, Birthday = "2012-09-01", Address = "海南省", Organization = "海南", Head = "#dasdasd#", Vld = "", }; Bitmap b = Imgs.test; string inputString = ToolsManage.BitmapToDataSring(b); newcard.Head = inputString; InitUI(newcard.Build()); } else { InitUI(card); IdCardReaderManage.ReadCard(ReadCardResult, null, null); } }
public UserActiveView(StructCard readCard) { InitializeComponent(); this.titleLabel.Text = "用户上机"; simpleButton2.Enabled = simpleButton3.Enabled = simpleButton1.Enabled = false; IdCardReaderManage.ReadCard(ReadCardResult, null, null); InitUI(readCard); }
// 激活上网 private void UserActive_ButtonClick(object sender, EventArgs e) { #if PRODUCT //先连接设备进行读卡 this.IsActiveCard = true; IdCardReaderManage.ReadCard(ReadCardResult, ConnectReaderResult, AuthenticateCardResult); #else UserActiveView view = new UserActiveView(); ToolsManage.ShowForm(view, false); #endif }
//开通会员 private void OpenMember_ButtonClick(object sender, EventArgs e) { #if PRODUCT //先连接设备进行读卡 this.IsOpenMember = true; IdCardReaderManage.ReadCard(ReadCardResult, ConnectReaderResult, AuthenticateCardResult); #else OpenMemberView view = new OpenMemberView(null); MainViewManage.ShowView(view); #endif }