Exemple #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            BindInfoLogic dil = new BindInfoLogic();

            CBCardNo.Text   = dil.CreateCardNo();
            button1.Enabled = true;
        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            BindInfoLogic bindLogic = new BindInfoLogic();
            DataSet       ds        = new DataSet();
            string        strText   = "";

            // 换读卡器前的读卡号调用的方法;
            //strText = weighingLogic.GetCardNo(icdev);

            // 换读卡器后的读卡号调用的方法;
            strText = weighingLogic.Get_CardNo();
            if (!strText.Trim().Equals(""))
            {
                if (strText.Length > 15)
                {
                    strText = strText.Remove(15, strText.Length - 15);
                    ds      = bindLogic.GetBindInfo("", "", strText);
                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        CBTruckNo.Text = ds.Tables[0].Rows[0]["车牌号"].ToString();
                    }
                }
            }
        }
Exemple #3
0
        // 读取卡中存储的卡号信息;
        public string Get_CardNo()
        {
            BindInfoLogic bindInfoLogic = new BindInfoLogic();

            return(bindInfoLogic.ReadCard());
        }