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


C# Whitfieldcore.GetAllSubMaterials方法代码示例

本文整理汇总了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);
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:8,代码来源:Newestimate_material.aspx.cs

示例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());
        }
    }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:14,代码来源:submaterial.ascx.cs

示例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;
                }
        }
    }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:63,代码来源:master_materials.aspx.cs

示例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();
        // }
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:14,代码来源:Newestimate_material.aspx.cs

示例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();
     }
 }
开发者ID:frdharish,项目名称:WhitfieldAPPs,代码行数:13,代码来源:estimate_material.aspx.cs


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