本文整理汇总了C#中Whitfieldcore.GetAllSubMaterials方法的典型用法代码示例。如果您正苦于以下问题:C# Whitfieldcore.GetAllSubMaterials方法的具体用法?C# Whitfieldcore.GetAllSubMaterials怎么用?C# Whitfieldcore.GetAllSubMaterials使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Whitfieldcore
的用法示例。
在下文中一共展示了Whitfieldcore.GetAllSubMaterials方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PageResultGrid1
public void PageResultGrid1(object sender, DataGridPageChangedEventArgs e)
{
DataSet dsGridResults;
grdRpResults.CurrentPageIndex = e.NewPageIndex;
Whitfieldcore wUser = new Whitfieldcore();
dsGridResults = wUser.GetAllSubMaterials(ddlMatType.SelectedItem.Value, "Grid");
this.PopulateDataGrid(dsGridResults);
}
示例2: DisplayGrid
private void DisplayGrid(Int32 material_id)
{
try
{
Whitfieldcore _DbClass = new Whitfieldcore();
DataSet dsSubMats = _DbClass.GetAllSubMaterials(material_id);
PopulateDataGrid(dsSubMats, grdpl1);
}
catch (Exception exp)
{
Response.Write(exp.Message.ToString());
}
}
示例3: grdpl1_Itemcommand
public void grdpl1_Itemcommand(Object sender, DataGridCommandEventArgs e)
{
Int32 Material_ID = 0;
DataSet dsExpand = new DataSet();
Whitfieldcore _dbClass = new Whitfieldcore();
switch (e.CommandName)
{
case "Expand":
{
Material_ID = Convert.ToInt32(grdpl1.DataKeys[Convert.ToInt32(e.Item.ItemIndex)]);
Material_ID = Convert.ToInt32(grdpl1.DataKeys[e.Item.ItemIndex]);
dsExpand = _dbClass.GetAllSubMaterials(Material_ID);
PlaceHolder exp = new PlaceHolder();
exp = (System.Web.UI.WebControls.PlaceHolder)e.Item.Cells[6].FindControl("ExpandedContent");
ImageButton img = new ImageButton();
img = (System.Web.UI.WebControls.ImageButton)e.Item.Cells[0].FindControl("btnExpand");
if (dsExpand.Tables[0].Rows.Count > 0)
{
if (img.ImageUrl == "assets/img/Plus.gif")
{
img.ImageUrl = "assets/img/Minus.gif";
exp.Visible = true;
((submaterial)(e.Item.FindControl("DynamicTable1"))).Visible = true;
((submaterial)(e.Item.FindControl("DynamicTable1"))).Material_ID = Material_ID;
((submaterial)(e.Item.FindControl("DynamicTable1"))).FetchSubMaterials(dsExpand);
}
else
{
exp.Visible = false;
((submaterial)(e.Item.FindControl("DynamicTable1"))).Visible = false;
img.ImageUrl = "assets/img/Plus.gif";
}
}
else
{
if (img.ImageUrl == "assets/img/Plus.gif")
{
//((ViewDesignAdmin)(e.Item.FindControl("DynamicTable1"))).Visible = true;
img.ImageUrl = "assets/img/Minus.gif";
exp.Visible = true;
((submaterial)(e.Item.FindControl("DynamicTable1"))).Visible = true;
((submaterial)(e.Item.FindControl("DynamicTable1"))).Material_ID = Material_ID;
((submaterial)(e.Item.FindControl("DynamicTable1"))).FetchSubMaterials(dsExpand);
}
else
{
exp.Visible = false;
((submaterial)(e.Item.FindControl("DynamicTable1"))).Visible = false;
img.ImageUrl = "assets/img/Plus.gif";
}
}
break;
}
default:
{
break;
}
}
}
示例4: BindSubMaterials
private void BindSubMaterials()
{
DataSet dsGrp = new DataSet();
Whitfieldcore wUser = new Whitfieldcore();
dsGrp = wUser.GetAllSubMaterials(ddlMatType.SelectedItem.Value,"Grid");
this.PopulateDataGrid(dsGrp);
// if (dsGrp.Tables[0].Rows.Count > 0)
// {
//RdoPrjClient.DataSource = dsGrp;
//RdoPrjClient.DataTextField = "matdesc";
//RdoPrjClient.DataValueField = "sub_mat_id";
//RdoPrjClient.DataBind();
// }
}
示例5: BindSubMaterials
private void BindSubMaterials()
{
DataSet dsGrp = new DataSet();
Whitfieldcore wUser = new Whitfieldcore();
dsGrp = wUser.GetAllSubMaterials(ddlMatType.SelectedItem.Value);
if (dsGrp.Tables[0].Rows.Count > 0)
{
RdoPrjClient.DataSource = dsGrp;
RdoPrjClient.DataTextField = "matdesc";
RdoPrjClient.DataValueField = "sub_mat_id";
RdoPrjClient.DataBind();
}
}