小习是哪个省的?

【小习当主席了,他以前是浙江省省长,浙江是不是又要崛起了】_仙居吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:106,250贴子:
【小习当主席了,他以前是浙江省省长,浙江是不是又要崛起了】收藏
马上预订吧!缤纷优惠安全简单的在线酒店预订100余万酒店优惠订!多数客房免费取消,到店付款,24h全球中文服务,价格更放心!
不是当好久了
身为浙江人的我,瞬间感觉自己高贵了很多
小习是陕西人
不雄起 GDP 就摆哪里了
他貌似是安徽的吧,安徽人才是牛逼,还有我们浙江人当不了领导的
只要当过新疆'''西藏'''内蒙古'''和直辖市的一把手都能进内阁'''''
全新实惠夏季仙居到云南旅游景点攻略,尽在云南品牌大社.仙居到云南旅游景点大全,免费咨询热线:400-
一楼的签名档看了还想看
人家是太子。。可惜不是浙江人
估计 对仙居 有点好处的 以前在东方住过 来过高迁
是省委书记吧
坐等楼主进小黑屋
就算浙江要崛起,小仙居也雄不起
他貌似以前还是福建省省长
青天白日旗 既然被删。
登录百度帐号推荐应用
为兴趣而生,贴吧更懂你。或小习爱是么意思_百度知道ADO.NET(7)
前台界面:
后台代码:
namespace _04省市联动
& & public partial class Form1 : Form
& & & & public Form1()
& & & & & & InitializeComponent();
& & & & private int r = 0;
& & & & private void Form1_Load(object sender, EventArgs e)
& & & & & & r = 1;
& & & & & & //所有省份显示到第一个下拉框中
& & & & & & LoadAreaByAreaPId(0);
& & & & private void LoadAreaByAreaPId(int v)
& & & & & & List&Area& list=new List&Area&();
& & & & & & list.Add(new Area() {AreaId = -1,AreaName = &---请选择---&});
& & & & & & string sql = &select AreaId,AreaName from TblArea &where AreaPId=&+v;
& & & & & & using (SqlDataReader reader=SqlHelper.ExecuteDataReader(sql))
& & & & & & {
& & & & & & & & if (reader.HasRows)
& & & & & & & & {
& & & & & & & & & & while (reader.Read())
& & & & & & & & & & {
& & & & & & & & & & & & Area a=new Area();
& & & & & & & & & & & & a.AreaId = Convert.ToInt32(reader[&AreaId&]);
& & & & & & & & & & & & a.AreaName = reader[&AreaName&].ToString();
& & & & & & & & & & & & list.Add(a);
& & & & & & & & & & }
& & & & & & & & }
& & & & & & }
& & & & & & if (r==1)
& & & & & & {
& & & & & & & & cbPro.DataSource =
& & & & & & & & cbPro.DisplayMember = &AreaName&;
& & & & & & & & cbPro.ValueMember = &AreaId&;
& & & & & & }
& & & & & & if(r==2)
& & & & & & {
& & & & & & & & cbCity.DataSource =
& & & & & & & & cbCity.DisplayMember = &AreaName&;
& & & & & & }
& & & & private void cbPro_SelectedIndexChanged(object sender, EventArgs e)
& & & & & & #region 练习用的代码
& & & & & & //if (cbPro.SelectedIndex != 0)
& & & & & & //{
& & & & & & // & &cbCity.Items.Clear();
& & & & & & // & &//获取当前省份的id
& & & & & & // & &int id = Convert.ToInt32(cbPro.SelectedValue);
& & & & & & // & &string sql = &select AreaId,AreaName from TblArea where AreaPId=& +
& & & & & & // & &//List&Area& list = new List&Area&();
& & & & & & // & &using (SqlDataReader reader = SqlHelper.ExecuteDataReader(sql))
& & & & & & // & &{
& & & & & & // & & & &if (reader.HasRows)
& & & & & & // & & & &{
& & & & & & // & & & & & &while (reader.Read())
& & & & & & // & & & & & &{
& & & & & & // & & & & & & & &Area a = new Area();
& & & & & & // & & & & & & & &a.AreaId = Convert.ToInt32(reader[&AreaId&]);
& & & & & & // & & & & & & & &a.AreaName = reader[&AreaName&].ToString();
& & & & & & // & & & & & & & &cbCity.Items.Add(a); &//重写了Area类的ToString()方法 &&public override string ToString()
& & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & &//否则添加的是类的命名空间 & & & & &{
& & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & &return this.AreaN
& & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & }
& & & & & & // & & & & & &}
& & & & & & // & & & &}
& & & & & & // & &}
& & & & & & //}&
& & & & & & #endregion
& & & & & & #region 简化写法,使用r变量判断事件
& & & & & & r = 2;
& & & & & & if (cbPro.SelectedIndex != 0)
& & & & & & {
& & & & & & & & int id = Convert.ToInt32(cbPro.SelectedValue);
& & & & & & & & LoadAreaByAreaPId(id);
& & & & & & }&
& & & & & & #endregion
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:4921次
排名:千里之外
原创:49篇
(1)(10)(21)(10)(10)什么是小市民习气_百度知道}

我要回帖

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信