Beispiel #1
0
        public void ReadMethodInfo(string methodName)
        {
            BLL.GBT3354_Method bllts = new HR_Test.BLL.GBT3354_Method();
            DataSet            ds    = bllts.GetList("MethodName ='" + methodName + "'");

            if (ds.Tables[0].Rows.Count > 0)
            {
                _stuffSpec.Text     = ds.Tables[0].Rows[0]["sampleSpec"].ToString();
                _strengthPlate.Text = ds.Tables[0].Rows[0]["strengthPlate"].ToString();
                _adhesive.Text      = ds.Tables[0].Rows[0]["adhesive"].ToString();
                _getSample.Text     = ds.Tables[0].Rows[0]["getSample"].ToString();
                _testStandard.Text  = ds.Tables[0].Rows[0]["testStandard"].ToString();
                _sampleState.Text   = ds.Tables[0].Rows[0]["sampleState"].ToString();
                _sendCompany.Text   = ds.Tables[0].Rows[0]["sendCompany"].ToString();
                _temperature.Text   = ds.Tables[0].Rows[0]["temperature"].ToString();
                _humidity.Text      = ds.Tables[0].Rows[0]["humidity"].ToString();
                _lL.Text            = ds.Tables[0].Rows[0]["lL"].ToString();
                _lT.Text            = ds.Tables[0].Rows[0]["lT"].ToString();
                _εz1.Text           = ds.Tables[0].Rows[0]["εz1"].ToString();
                _εz2.Text           = ds.Tables[0].Rows[0]["εz2"].ToString();

                _mathineType.Text = ds.Tables[0].Rows[0]["mathineType"].ToString();
                _tester.Text      = ds.Tables[0].Rows[0]["tester"].ToString();
                _testMethod.Text  = ds.Tables[0].Rows[0]["testMethod"].ToString();
                _sign.Text        = ds.Tables[0].Rows[0]["sign"].ToString();

                //_w.Text = "";
                //_h.Text = "";
                //_d0.Text = "";
                //_Do.Text = "";
                //_S0.Text = "";

                //_condition = ds.Tables[0].Rows[0]["condition"].ToString();
                //_controlMode = ds.Tables[0].Rows[0]["controlmode"].ToString();
            }
            ds.Dispose();
        }
Beispiel #2
0
        public static List <TreeNode> ReadMethodList()
        {
            //tv.Nodes.Clear();
            //tv.Nodes.Add("试验方法");
            List <TreeNode> lstTn = new List <TreeNode>();

            BLL.GBT236152009_Method bll23615 = new HR_Test.BLL.GBT236152009_Method();
            DataSet ds23615 = bll23615.GetAllList();

            for (int k = 0; k < ds23615.Tables[0].Rows.Count; k++)
            {
                TreeNode tn = new TreeNode();
                tn.Tag  = "GB/T 23615.1-2009";
                tn.Text = ds23615.Tables[0].Rows[k]["methodName"].ToString();
                tn.Name = ds23615.Tables[0].Rows[k]["xmlPath"].ToString();
                lstTn.Add(tn);
            }

            BLL.GBT282892012_Method bll28289 = new HR_Test.BLL.GBT282892012_Method();
            DataSet ds28289 = bll28289.GetAllList();

            for (int k = 0; k < ds28289.Tables[0].Rows.Count; k++)
            {
                TreeNode tn = new TreeNode();
                tn.Tag  = "GB/T 28289-2012";// ds28289.Tables[0].Rows[k]["testStandard"].ToString();
                tn.Text = ds28289.Tables[0].Rows[k]["methodName"].ToString();
                tn.Name = ds28289.Tables[0].Rows[k]["xmlPath"].ToString();
                lstTn.Add(tn);
            }

            BLL.ControlMethod bllCm = new HR_Test.BLL.ControlMethod();
            DataSet           ds    = bllCm.GetAllList();

            for (int k = 0; k < ds.Tables[0].Rows.Count; k++)
            {
                TreeNode tn = new TreeNode();
                tn.Tag  = "GB/T 228-2010";// ds.Tables[0].Rows[k]["testStandard"].ToString();
                tn.Text = ds.Tables[0].Rows[k]["methodName"].ToString();
                tn.Name = ds.Tables[0].Rows[k]["xmlPath"].ToString();
                lstTn.Add(tn);
            }

            BLL.ControlMethod_C bllCm_C = new HR_Test.BLL.ControlMethod_C();
            DataSet             ds_C    = bllCm_C.GetAllList();

            for (int k = 0; k < ds_C.Tables[0].Rows.Count; k++)
            {
                TreeNode tn = new TreeNode();
                tn.Tag  = "GB/T 7314-2005";//ds_C.Tables[0].Rows[k]["testStandard"].ToString();
                tn.Text = ds_C.Tables[0].Rows[k]["methodName"].ToString();
                tn.Name = ds_C.Tables[0].Rows[k]["xmlPath"].ToString();
                lstTn.Add(tn);
            }
            BLL.ControlMethod_B bllCm_B = new HR_Test.BLL.ControlMethod_B();
            DataSet             ds_B    = bllCm_B.GetAllList();

            for (int k = 0; k < ds_B.Tables[0].Rows.Count; k++)
            {
                TreeNode tn = new TreeNode();
                tn.Tag  = "YB/T 5349-2006";// ds_B.Tables[0].Rows[k]["testStandard"].ToString();
                tn.Text = ds_B.Tables[0].Rows[k]["methodName"].ToString();
                tn.Name = ds_B.Tables[0].Rows[k]["xmlPath"].ToString();
                lstTn.Add(tn);
            }
            BLL.GBT3354_Method bll3354 = new HR_Test.BLL.GBT3354_Method();
            DataSet            ds3354  = bll3354.GetAllList();

            for (int k = 0; k < ds3354.Tables[0].Rows.Count; k++)
            {
                TreeNode tn = new TreeNode();
                tn.Tag  = "GB/T 3354-2014";
                tn.Text = ds3354.Tables[0].Rows[k]["methodName"].ToString();
                tn.Name = ds3354.Tables[0].Rows[k]["xmlPath"].ToString();
                lstTn.Add(tn);
            }
            return(lstTn);
            //tv.ExpandAll();
        }