本文整理汇总了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;
}
示例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();
}
示例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();
}
示例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();
}
示例5: BindEdll
private void BindEdll()
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID);
DataTable dt = dal.GetDistinctRecord("Relation");
this.txtRelation.DataSource = dt;
}
示例6: BindEdll
private void BindEdll()
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
DataTable dt = dal.GetDistinctRecord("Area");
this.txtArea.DataSource = dt;
}
示例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;
}