protected void ClearItemData(bool NewItem) { // if NewItem is true, we are clearing after an item is entered BOMGridView.DataBind(); DetailUpdatePanel.Update(); ItemDescLabel.Text = ""; Wgt100Label.Text = ""; QtyUOMLabel.Text = ""; StdCostLabel.Text = ""; UPCLabel.Text = ""; WebLabel.Text = ""; CategoryLabel.Text = ""; NetWghtLabel.Text = ""; SuperEqLabel.Text = ""; ListLabel.Text = ""; HarmCodeLabel.Text = ""; PackGroupLabel.Text = ""; PlatingLabel.Text = ""; GrossWghtLabel.Text = ""; PriceUMLabel.Text = ""; CFVLabel.Text = ""; PPILabel.Text = ""; ParentLabel.Text = ""; StockLabel.Text = ""; CostUMLabel.Text = ""; CatVelLabel.Text = ""; PkgVelLabel.Text = ""; CreatedLabel.Text = ""; SelectorUpdatePanel.Update(); HeaderUpdatePanel.Update(); //CategorySpecLabel.Text = ""; MessageUpdatePanel.Update(); // HeadImageUpdatePanel.Visible = false; // BodyImageUpdatePanel.Visible = false; }
private void BindBOMGrid(DataTable StockData) { BOMGridView.DataSource = StockData; BOMGridView.DataBind(); Session["StockData"] = StockData; // dsResult = BOMComponents(ItemNo); //adding pete // Session["dtBOMData"] = dsResult.Tables[0].DefaultView.ToTable(); //adding pete }
protected void GetBOM(string ItemNo) { DataTable dtBOM = new DataTable(); dtBOM = BOMComponents(ItemNo); //Session["dtBOMData"] = dsResult.Tables[0].DefaultView.ToTable(); //adding pete if (dtBOM.Rows.Count > 0) { BOMGridView.DataSource = dtBOM.DefaultView.ToTable(); BOMGridView.DataBind(); } else { ShowPageMessage("A BOM does not exist for this item, do you want to create one?", 2); } smBOM.SetFocus("txtItemSearch"); }