protected void ddlSubCat_SelectedIndexChanged(object sender, EventArgs e) { if (ddlSubCat.SelectedIndex != 0) { ddlSubSubCat.Items.Clear(); PropSubCategory obj = new PropSubCategory(); obj.Id = Convert.ToInt32(ddlSubCat.SelectedItem.Value.ToString()); DataSet dsop = new DataSet(); dsop = BusinessNewPurchase.busSelectSubSubCategory(obj); if (dsop.Tables[0].Rows.Count > 0) { ddlSubSubCat.Visible = true; ddlSubSubCat.DataSource = dsop; ddlSubSubCat.DataBind(); } else { ddlSubSubCat.Visible = false; } } else { ddlSubSubCat.Items.Clear(); ddlSubSubCat.Items.Add("-Select-"); } }
protected void grdvViewPurchaseOrder_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow && grdvViewPurchaseOrder.EditIndex == e.Row.RowIndex) { PropCategory objcat = new PropCategory(); DropDownList dd2 = (DropDownList)e.Row.FindControl("drpEditCategory"); dd2.DataSource = BusinessNewPurchase.busSelectCategory(objcat); dd2.DataBind(); PropSubCategory objsub = new PropSubCategory(); DropDownList dd3 = (DropDownList)e.Row.FindControl("drpEditSubCategory"); dd3.DataSource = BusinessNewPurchase.busSelectSubCategoryGridview(objsub); dd3.DataBind(); //propunit objUnit = new propunit(); //DropDownList dd4 = (DropDownList)e.Row.FindControl("ddlUnit"); //dd4.DataSource = BusinessNewPurchase.busSelectUnit(objUnit); //dd4.DataBind(); PropSubSubCategory objsubsubsub = new PropSubSubCategory(); DropDownList dd5 = (DropDownList)e.Row.FindControl("drpEditSubSubCategory"); dd5.DataSource = BusinessNewPurchase.buseditmodefillsubcat(objsubsubsub); dd5.DataBind(); } }
protected void ddlSubCat_SelectedIndexChanged(object sender, EventArgs e) { if (ddlSubCat.SelectedIndex != 0) { ddlSubSubCat.Items.Clear(); PropSubCategory obj = new PropSubCategory(); obj.Id = Convert.ToInt32(ddlSubCat.SelectedItem.Value.ToString()); ddlSubSubCat.DataSource = BusinessNewPurchase.busSelectSubSubCategory(obj); ddlSubSubCat.DataBind(); } else { ddlSubSubCat.Items.Clear(); ddlSubSubCat.Items.Add("-Select-"); } }
public static DataSet busSelectSubSubCategory(PropSubCategory objSubSub) { return(DalItemPurchase.selectSubSubCategory(objSubSub)); }
public static DataSet busSelectSubCategoryGridview(PropSubCategory objSub) { return(DalItemPurchase.fillSubcategoryGridview(objSub)); }
public static DataSet selectSubSubCategory(PropSubCategory objsubSub) { return(DBManager.ExecuteDataset("spFillSubSubCategory ", objsubSub.Id)); }
public static DataSet fillSubcategoryGridview(PropSubCategory objsubcat) { return(DBManager.ExecuteDataset("fillsubcategoryGridview")); }