private void Bindzj() { BLL.card_type bllct = new BLL.card_type(); CardType.DataSource = bllct.GetAllList(); CardType.DataTextField = "ct_name"; CardType.DataValueField = "id"; CardType.DataBind(); }
//获得证件类型 public string GetzjName(int id) { BLL.card_type fmtype = new BLL.card_type(); Model.card_type model = fmtype.GetModel(Convert.ToInt32(id.ToString())); return(model.ct_name); }
private string GetZJ(int id) { BLL.card_type bllct = new BLL.card_type(); return(bllct.GetModel(id).ct_name); }