protected string Zj(int id) { Model.card_type model = bllct.GetModel(id); if (model != null) { return(model.ct_name); } return(""); }
public void BindGV() { string roomsid = Request.QueryString["rooms"].ToString(); DataSet dts = fmmx.GetList(" room_number='" + roomsid + "' and occ_with='是' and state_id=0"); foreach (DataRow drs in dts.Tables[0].Rows) { if (txt_Info.Value == "") { txt_Info.Value += drs["room_number"].ToString() + "," + drs["occ_name"].ToString() + "," + drs["sex"].ToString() + "," + drs["brithday"].ToString() + "," + fsfBll.GetModel(Convert.ToInt32(drs["card_id"].ToString())).ct_name + "," + drs["card_no"].ToString() + "," + drs["address"].ToString(); } else { txt_Info.Value += "|" + drs["room_number"].ToString() + "," + drs["occ_name"].ToString() + "," + drs["sex"].ToString() + "," + drs["brithday"].ToString() + "," + fsfBll.GetModel(Convert.ToInt32(drs["card_id"].ToString())).ct_name + "," + drs["card_no"].ToString() + "," + drs["address"].ToString(); } } //string conteent = ""; // ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "qwwqwq", "GetBind('" + txt_Info.Value + "');", true); }
//获得证件类型 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); }