Exemplo n.º 1
0
 /// <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);
     }
 }
Exemplo n.º 2
0
        public UserActiveView()
        {
            InitializeComponent();
            this.titleLabel.Text = "用户上机";

            simpleButton2.Enabled = simpleButton3.Enabled = simpleButton1.Enabled = false;
            StructCard.Builder card = 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);

            card.Head = inputString;

            InitUI(card.Build());
            //  MemberNetOperation.MemberInfo(MemberInfoResult, card);
        }