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


C# BaseDal.GetDistinctRecord方法代码示例

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


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

示例1: BindEdll

    private void BindEdll()
    {
        Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID);
        string filter = "1=1";
        if (this.rbFileType2.Checked)
            filter = "1=2";
        DataTable dt = dal.GetDistinctRecord("FileDesc", filter);

        if (this.rbFileType2.Checked)
        {
            DataRow dr = dt.NewRow();
            dr["FileDesc"] = Resources.Resource.EP_ProductDesc;
            dt.Rows.Add(dr);

            dr = dt.NewRow();
            dr["FileDesc"] = Resources.Resource.EP_ProductResumeDesc;
            dt.Rows.Add(dr);

            dr = dt.NewRow();
            dr["FileDesc"] = Resources.Resource.EP_ProductLogistics;
            dt.Rows.Add(dr);

        }
        this.txtFileDesc.DataSource = dt;
    }
开发者ID:qq5013,项目名称:SenseDigital,代码行数:25,代码来源:Upload.aspx.cs

示例2: BindDropDownList

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

示例3: BindEdll

    private void BindEdll()
    {
        Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
        DataTable dt = dal.GetDistinctRecord("Country");

        this.EddlCountry.DataSource = dt;
        this.EddlCountry.DataTextField = "Country";
        this.EddlCountry.DataValueField = "Country";
        this.EddlCountry.DataBind();
    }
开发者ID:qq5013,项目名称:SenseDigital,代码行数:10,代码来源:MemberEdit.aspx.cs

示例4: BindDropDownList

    private void BindDropDownList()
    {
        Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
        DataTable dt = dal.GetDistinctRecord("GroupName");
        this.ddlGroupName.DataSource = dt;
        this.ddlGroupName.DataTextField = "GroupName";
        this.ddlGroupName.DataValueField = "GroupName";
        this.ddlGroupName.DataBind();

        dt = dal.GetDistinctRecord("ClassName");
        this.ddlClassName.DataSource = dt;
        this.ddlClassName.DataTextField = "ClassName";
        this.ddlClassName.DataValueField = "ClassName";
        this.ddlClassName.DataBind();
    }
开发者ID:qq5013,项目名称:SenseDigital,代码行数:15,代码来源:ProductView.aspx.cs

示例5: BindEdll

 private void BindEdll()
 {
     Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID);
     DataTable dt = dal.GetDistinctRecord("Relation");
     this.txtRelation.DataSource = dt;
 }
开发者ID:qq5013,项目名称:SenseDigital,代码行数:6,代码来源:PersonEdit.aspx.cs

示例6: BindEdll

 private void BindEdll()
 {
     Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
     DataTable dt = dal.GetDistinctRecord("Area");
     this.txtArea.DataSource = dt;
 }
开发者ID:qq5013,项目名称:SenseDigital,代码行数:6,代码来源:ProductLogisticsEdit.aspx.cs

示例7: BindEdll

    private void BindEdll()
    {
        Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
        DataTable dt = dal.GetDistinctRecord("GroupName");
        this.txtGroupName.DataSource = dt;

        dt = dal.GetDistinctRecord("ClassName");
        this.txtClassName.DataSource = dt;
    }
开发者ID:qq5013,项目名称:SenseDigital,代码行数:9,代码来源:ProductEdit.aspx.cs


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