CY_ZZJY.Web/admin/dictionaries/list.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using CY_ZZJY.Service.Sys;
namespace CY_ZZJY.Web.admin.dictionaries
{
public partial class list : System.Web.UI.Page
{
public string StrDicType = string.Empty;
private SYS_DICTIONARIES_Service _SYS_DICTIONARIES_Service = new SYS_DICTIONARIES_Service();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
this.InitDicCombBox();
}
/// <summary>
/// 初始化数据字典下拉列表
/// </summary>
private void InitDicCombBox()
{
DataTable dt = this._SYS_DICTIONARIES_Service.QueryDicType();
StrDicType += "<option value=\"全部\" selected=\"selected\">全部</option>";
if (dt != null && dt.Rows.Count > 0)
{
foreach (DataRow row in dt.Rows)
{ StrDicType += string.Format("<option value=\"{0}\">{1}</option>", row["NAME"].ToString().Trim(), row["NAME"].ToString().Trim()); }
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。