本文整理汇总了C#中Whitfieldcore.GetAllMaterialTypes方法的典型用法代码示例。如果您正苦于以下问题:C# Whitfieldcore.GetAllMaterialTypes方法的具体用法?C# Whitfieldcore.GetAllMaterialTypes怎么用?C# Whitfieldcore.GetAllMaterialTypes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Whitfieldcore
的用法示例。
在下文中一共展示了Whitfieldcore.GetAllMaterialTypes方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BindMaterials
private void BindMaterials()
{
DataSet dsGrp = new DataSet();
Whitfieldcore wUser = new Whitfieldcore();
dsGrp = wUser.GetAllMaterialTypes();
if (dsGrp.Tables[0].Rows.Count > 0)
{
ddlType.DataSource = dsGrp;
ddlType.DataTextField = "Mat_type_Desc";
ddlType.DataValueField = "Mat_type_id";
ddlType.DataBind();
ddlType.Items.Insert(0, common.AddItemToList("Select Type", ""));
}
}
示例2: BindMaterialTypes
private void BindMaterialTypes()
{
try
{
Whitfieldcore _dbClass = new Whitfieldcore();
DataSet dsportfolio = new DataSet();
dsportfolio = _dbClass.GetAllMaterialTypes();
if (dsportfolio.Tables[0].Rows.Count > 0)
{
ddlMatType.DataSource = dsportfolio;
ddlMatType.DataTextField = "Mat_type_Desc";
ddlMatType.DataValueField = "Mat_type_id";
ddlMatType.DataBind();
ddlMatType.Items.Insert(0, common.AddItemToList("Fetch All Material Types", "0"));
}
}
catch (Exception ex)
{
HttpResponse objResponse = HttpContext.Current.Response;
objResponse.Write(ex.Message);
}
}