コード例 #1
0
 protected void MakeResultsTree(string productId)
 {
     try {
         ClassE classE = new ClassE(GetDirectory() + userDir);
         classE.setGlobalVar();
         int prodId = int.Parse(productId);
         classE.m_makeResultsTree(prodId);
         classE.place_tree(prodId);
         classE.Close();
     } catch (Exception ex) {
         logFiles.ErrorLog(ex);
         Master.ShowErrorMessage("MPX internal error has occured.");
     }
 }
    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();
    }
コード例 #3
0
    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";
    }