Exemple #1
0
    //=====================================================================
    //  FunctionName : InitalizeDataBind
    /// <summary>
    /// 初始化数据绑定
    /// </summary>
    //=====================================================================
    protected void InitalizeDataBind()
    {
        // 查询报告列表
        FilterReportDataBind((string)Session[ConstantsManager.SESSION_USER_ID], FilterReportList);

        // 主表

        // 初始化发布栏目(FBLM)下拉列表
        FBLM.DataSource     = GetDataSource_FBLM_AdvanceSearch();
        FBLM.DataTextField  = "LMM";
        FBLM.DataValueField = "LMH";
        FBLM.DataBind();
        FBLM.RepeatColumns = 1;

        // 初始化发布部门(FBBM)下拉列表
        FBBM.DataSource     = GetDataSource_FBBM_AdvanceSearch();
        FBBM.DataTextField  = "DWMC";
        FBBM.DataValueField = "DWBH";
        FBBM.DataBind();
        FBBM.Items.Insert(0, new ListItem("选择发布部门", ""));

        // 初始化信息类型(XXLX)下拉列表
        XXLX.DataSource     = GetDataSource_XXLX_AdvanceSearch();
        XXLX.DataTextField  = "MC";
        XXLX.DataValueField = "DM";
        XXLX.DataBind();
        XXLX.Items.Insert(0, new ListItem("选择信息类型", ""));

        // 初始化是否置顶(IsTop)下拉列表
        IsTop.DataSource     = GetDataSource_IsTop_AdvanceSearch();
        IsTop.DataTextField  = "MC";
        IsTop.DataValueField = "DM";
        IsTop.DataBind();
        IsTop.Items.Insert(0, new ListItem("选择是否置顶", ""));

        // 初始化推荐(IsBest)下拉列表
        IsBest.DataSource     = GetDataSource_IsBest_AdvanceSearch();
        IsBest.DataTextField  = "MC";
        IsBest.DataValueField = "DM";
        IsBest.DataBind();
        IsBest.Items.Insert(0, new ListItem("选择推荐", ""));

        // 一对一相关表
    }
Exemple #2
0
    //=====================================================================
    //  FunctionName : InitalizeDataBind
    /// <summary>
    /// 初始化数据绑定
    /// </summary>
    //=====================================================================
    protected void InitalizeDataBind()
    {
        // 初始化发布栏目(FBLM)下拉列表
        FBLM.DataSource     = GetDataSource_FBLM();
        FBLM.DataTextField  = "LMM";
        FBLM.DataValueField = "LMH";
        FBLM.DataBind();

        // 初始化发布部门(FBBM)下拉列表
        FBBM.DataSource     = GetDataSource_FBBM();
        FBBM.DataTextField  = "DWMC";
        FBBM.DataValueField = "DWBH";
        FBBM.DataBind();
        FBBM.Items.Insert(0, new ListItem("请选择发布部门", ""));

        // 初始化信息类型(XXLX)下拉列表
        XXLX.DataSource     = GetDataSource_XXLX();
        XXLX.DataTextField  = "MC";
        XXLX.DataValueField = "DM";
        XXLX.DataBind();

        // 初始化信息状态(XXZT)下拉列表
        XXZT.DataSource     = GetDataSource_XXZT();
        XXZT.DataTextField  = "MC";
        XXZT.DataValueField = "DM";
        XXZT.DataBind();
        XXZT.Items.Insert(0, new ListItem("请选择信息状态", ""));

        // 初始化是否置顶(IsTop)下拉列表
        IsTop.DataSource     = GetDataSource_IsTop();
        IsTop.DataTextField  = "MC";
        IsTop.DataValueField = "DM";
        IsTop.DataBind();
        IsTop.Items.Insert(0, new ListItem("请选择是否置顶", ""));

        // 初始化推荐(IsBest)下拉列表
        IsBest.DataSource     = GetDataSource_IsBest();
        IsBest.DataTextField  = "MC";
        IsBest.DataValueField = "DM";
        IsBest.DataBind();
        IsBest.Items.Insert(0, new ListItem("请选择推荐", ""));
    }