当前位置: 首页>>代码示例>>C#>>正文


C# BaseDal.GetIDNameList方法代码示例

本文整理汇总了C#中Js.BLL.BaseDal.GetIDNameList方法的典型用法代码示例。如果您正苦于以下问题:C# BaseDal.GetIDNameList方法的具体用法?C# BaseDal.GetIDNameList怎么用?C# BaseDal.GetIDNameList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Js.BLL.BaseDal的用法示例。


在下文中一共展示了BaseDal.GetIDNameList方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: BindDropDownList

    private void BindDropDownList()
    {
        Js.BLL.BaseDal dal = new Js.BLL.BaseDal("BU_Enterprise");
        string filter = "1=1";
        if (Session["UserType"].ToString() == "EP")
            filter = string.Format("EnterpriseID='{0}'", Session["EnterpriseID"].ToString());
        this.ddlEnterpriseID.DataSource = dal.GetIDNameList(filter);
        this.ddlEnterpriseID.DataTextField = "IDName";
        this.ddlEnterpriseID.DataValueField = "ID";
        this.ddlEnterpriseID.DataBind();

        if (Session["EnterpriseID"] != null)
            this.ddlEnterpriseID.SelectedValue = Session["EnterpriseID"].ToString();
    }
开发者ID:qq5013,项目名称:SenseDigital,代码行数:14,代码来源:QueryChecked.aspx.cs

示例2: dataSearch

    /// <summary>
    /// 綁定查詢
    /// </summary>
    private void dataSearch()
    {
        Js.BLL.Sys.SysComDal dal = new Js.BLL.Sys.SysComDal();
        this.ddlFieldName.DataSource = dal.SearchTable(FormID, false).Tables[0];
        this.ddlFieldName.DataTextField = "FieldCName";
        this.ddlFieldName.DataValueField = "FieldName";
        this.ddlFieldName.DataBind();

        this.ddlPageSize.Items.Add(new ListItem("15", "15"));
        this.ddlPageSize.Items.Add(new ListItem("20", "20"));
        this.ddlPageSize.Items.Add(new ListItem("25", "25"));
        this.ddlPageSize.Items.Add(new ListItem("30", "30"));
        this.ddlPageSize.Items.Add(new ListItem("40", "40"));
        this.ddlPageSize.Items.Add(new ListItem("50", "50"));

        Js.BLL.BaseDal bdal = new Js.BLL.BaseDal("BU_Enterprise");
        string filter = "1=1";
        if (Session["UserType"].ToString() == "EP")
            filter = string.Format("EnterpriseID='{0}'", Session["EnterpriseID"].ToString());
        this.ddlEnterpriseID.DataSource = bdal.GetIDNameList(filter);
        this.ddlEnterpriseID.DataTextField = "IDName";
        this.ddlEnterpriseID.DataValueField = "ID";
        this.ddlEnterpriseID.DataBind();

        if (Session["UserType"].ToString() == "BU")
            this.ddlEnterpriseID.Items.Insert(0, new ListItem("", ""));
        if (Session["EnterpriseID"] != null)
            this.ddlEnterpriseID.SelectedValue = Session["EnterpriseID"].ToString();
    }
开发者ID:qq5013,项目名称:SenseDigital,代码行数:32,代码来源:EnableLabelNo.aspx.cs

示例3: BindDropDownList

 private void BindDropDownList()
 {
     Js.BLL.BaseDal dal = new Js.BLL.BaseDal("BU_EnterpriseCategory");
     DataTable dt = dal.GetIDNameList("");
     this.ddlCategoryID.DataSource = dt;
     this.ddlCategoryID.DataTextField = "IDName";
     this.ddlCategoryID.DataValueField = "ID";
     this.ddlCategoryID.DataBind();
 }
开发者ID:qq5013,项目名称:SenseDigital,代码行数:9,代码来源:EnterpriseView.aspx.cs

示例4: BindDropDownList

 private void BindDropDownList()
 {
     Js.BLL.BaseDal dal = new Js.BLL.BaseDal("BU_Department");
     DataTable dt = dal.GetIDNameList("");
     this.ddlDepartmentID.DataSource = dt;
     this.ddlDepartmentID.DataTextField = "IDName";
     this.ddlDepartmentID.DataValueField = "ID";
     this.ddlDepartmentID.DataBind();
 }
开发者ID:qq5013,项目名称:SenseDigital,代码行数:9,代码来源:BU_User.aspx.cs

示例5: BindDepartment

    private void BindDepartment()
    {
        Js.BLL.BaseDal dal = new Js.BLL.BaseDal("EP_Department", cnKey);

        string filter = string.Format("EnterpriseID='{0}'", this.ddlEnterpriseID.SelectedValue);
        DataTable dt = dal.GetIDNameList(filter);
        this.ddlDepartmentID.DataSource = dt;
        this.ddlDepartmentID.DataTextField = "IDName";
        this.ddlDepartmentID.DataValueField = "ID";
        this.ddlDepartmentID.DataBind();
    }
开发者ID:qq5013,项目名称:SenseDigital,代码行数:11,代码来源:EP_User.aspx.cs

示例6: BindEdll

 private void BindEdll()
 {
     Js.BLL.BaseDal dal = new Js.BLL.BaseDal("LB_ProductionUnit",cnKey);
     DataTable dt = dal.GetIDNameList("");
     this.ddlProductionUnitID.DataSource = dt;
     this.ddlProductionUnitID.DataTextField = "IDName";
     this.ddlProductionUnitID.DataValueField = "ID";
     this.ddlProductionUnitID.DataBind();
 }
开发者ID:qq5013,项目名称:SenseDigital,代码行数:9,代码来源:ProductionEdit.aspx.cs


注:本文中的Js.BLL.BaseDal.GetIDNameList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。