protected override void SetData() { { ClassE calc = new ClassE(GetDirectory() + userDir); calc.setGlobalVar(); calc.runsql("DELETE * FROM tblbomTree;"); if (dropListProducts.Items.Count > 0 && dropListProducts.SelectedItem == null) { dropListProducts.SelectedIndex = 0; } try { calc.MakeIbomTree(0, int.Parse(dropListProducts.SelectedValue), 0); } catch (Exception) { } calc.Close(); } if (!checkAllSubComponents.Checked) { tableQueryString += " WHERE Show = -1"; } base.SetData(); }
protected override void SetData() { { ClassE calc = new ClassE(GetDirectory() + userDir); calc.setGlobalVar(); calc.runsql("DELETE * FROM tblbomTree;"); if (dropListProducts.Items.Count > 0 && dropListProducts.SelectedItem == null) { dropListProducts.SelectedIndex = 0; } try { calc.MakeIbomTree(0, int.Parse(dropListProducts.SelectedValue), 0); } catch (Exception) { } calc.Close(); } if (!checkAllSubComponents.Checked) { //tableQueryString += " WHERE Show = -1"; tableQueryString += " WHERE Level = 1"; } else { tableQueryString += " WHERE Level >= 1"; } base.SetData(); GridViewRow myRow = grid.FooterRow; TextBox myText = (TextBox)myRow.Cells[2].Controls[0].Controls[0]; myText.Text = "1"; }