private void button2_Click(object sender, EventArgs e) { string idcard = this.txtIdCard.Text.Trim(); if (idcard.Length == 15) { idcard = FT.Commons.Tools.IDCardHelper.IdCard15To18(idcard); this.txtIdCard.Text = idcard; } ArrayList lists = FT.DAL.Orm.SimpleOrmOperator.QueryConditionList<StudentInfo>(" where c_idcard='" + FT.DAL.DALSecurityTool.TransferInsertField(idcard) + "' order by date_baoming desc"); if (lists != null && lists.Count > 0) { StudentInfo info = lists[0] as StudentInfo; StudentBrowser form = new StudentBrowser(info); form.ShowInTaskbar = false; form.ShowDialog(); } else { FT.Commons.Tools.MessageBoxHelper.Show("û���ҵ����֤������Ϊ" + idcard + "��ѧԱ��"); } }
private void button2_Click(object sender, EventArgs e) { string idcard = this.txtIdCard.Text.Trim(); if (idcard.Length == 15) { idcard = FT.Commons.Tools.IDCardHelper.IdCard15To18(idcard); this.txtIdCard.Text = idcard; } ArrayList lists = FT.DAL.Orm.SimpleOrmOperator.QueryConditionList <StudentInfo>(" where c_idcard='" + FT.DAL.DALSecurityTool.TransferInsertField(idcard) + "' order by date_baoming desc"); if (lists != null && lists.Count > 0) { StudentInfo info = lists[0] as StudentInfo; StudentBrowser form = new StudentBrowser(info); form.ShowInTaskbar = false; form.ShowDialog(); } else { FT.Commons.Tools.MessageBoxHelper.Show("没有找到身份证明号码为" + idcard + "的学员!"); } }