//根据用户编号查询相关信息 public static string GetUser(string userNo, int typeid) { Model.YH_user M_YH_user = new Model.YH_user(); BLL.YH_user B_YH_user = new BLL.YH_user(); string struserinfo = ""; M_YH_user = B_YH_user.GetModelList("yhbh='" + userNo + "'" + common_app.yydh_select + "")[0]; if (typeid == 1) { struserinfo = M_YH_user.yhmm; } else if (typeid == 2) { struserinfo = M_YH_user.yhxm; } else if (typeid == 3) { struserinfo = M_YH_user.R_lsbh; } else { struserinfo = M_YH_user.RoleName; } return(struserinfo); }
//邦定用户ComboBox列表 public static void Bindyh(ComboBox cB_hyrx) //会员类型邦定 { cB_hyrx.Items.Clear(); Model.YH_user M_YH_user = new Model.YH_user(); BLL.YH_user B_YH_user = new BLL.YH_user(); List <Model.YH_user> list = B_YH_user.GetModelList(""); if (list.Count > 0) { for (int i = 0; i < list.Count; i++) { cB_hyrx.Items.Add(list[i].yhxm.ToString()); } } }