コード例 #1
0
 /// <summary>
 /// 绑定支系下拉框
 /// </summary>
 /// <param name="ddl"></param>
 public static void BindRemus(System.Web.UI.WebControls.DropDownList ddl)
 {
     Comm.DDLBind("select * from remus_table where (disable<>1 or disable is null) order by code", ddl, "code", "name");
 }
コード例 #2
0
 /// <summary>
 /// 绑定指定省份下的支系下拉框
 /// </summary>
 /// <param name="ddl">下拉框控件</param>
 /// <param name="str_province">省份编码</param>
 public static void BindRemus(System.Web.UI.WebControls.DropDownList ddl, string str_province)
 {
     Comm.DDLBind("select * from remus_table where (disable<>1 or disable is null) and province='" + str_province + "'order by code", ddl, "code", "name");
 }
コード例 #3
0
 /// <summary>
 /// 绑定省份下拉框
 /// </summary>
 /// <param name="ddl"></param>
 public static void BindProvince(System.Web.UI.WebControls.DropDownList ddl)
 {
     Comm.DDLBind("select * from base_provinces order by code", ddl, "code", "name");
 }