コード例 #1
0
        private void Inspect_One_Inspect_Exfo(InspectEventArgs e, ResultEventArgs _Result)
        {
            //检测-Exfo
            string temWhere_Exfo = _M_User_Exfo.GetSql_Where(_GLL_WorkOrder, _GLL_Standard_PigtailList, e.SN);

            Maticsoft.DAL.My_GetTestData.GetDataEventArgs GetData_Exfo_e = new Maticsoft.DAL.My_GetTestData.GetDataEventArgs(temWhere_Exfo, e.SN);
            _Result.Data_Exfo = _GLL_TestData.Start_GetData_Exfo(GetData_Exfo_e);
            ArrayList Inspect_Exfo = isEqual(_GLL_Standard_PigtailList, GetData_Exfo_e.PigtailList);

            if (Inspect_Exfo.Count > 0)
            {
                _Result.Fill_Exfo   = ArrayListToString(Inspect_Exfo);
                _Result.Result_Exfo = false;
            }
            else
            {
                //更新数据
                Maticsoft.DAL.My_GetTestData.UpDataEventArgs UpData_Exfo_e =
                    new Maticsoft.DAL.My_GetTestData.UpDataEventArgs(GetData_Exfo_e.TestData, _GLL_WorkOrder, _GLL_PackBatch.BatchNo, e.SN);
                _GLL_TestData.Start_UpData_Exfo(UpData_Exfo_e);
                _Result.Result_Exfo = true;

                //判断3D是否OK 进行添加打印数据
                if (_Result.Result_3D)
                {
                    //如果需要打印标签
                    if (My_Print.IsPrint)
                    {
                        //添加打印数据
                        My_Print.Add_PrintData(_M_Pack_Exfo.GetList("ClientSN='" + e.SN + "' AND (Wave = '1550nm')"));
                    }
                }
            }
        }
コード例 #2
0
        /// <summary>
        /// 两码两签 检测Exfo
        /// </summary>
        private void Inspect_TwoSnToLab_Inspect_Exfo(InspectEventArgs e, ResultEventArgs _Result)
        {
            //------------------------------------------------检测-Exfo
            string temWhere_Exfo = _M_User_Exfo.GetSql_Where(_GLL_WorkOrder, _GLL_Standard_PigtailList);

            Maticsoft.DAL.My_GetTestData.GetDataEventArgs GetData_Exfo_e = new Maticsoft.DAL.My_GetTestData.GetDataEventArgs(temWhere_Exfo, e.ClientSN);
            _Result.Data_Exfo = _GLL_TestData.Start_GetData_Exfo(GetData_Exfo_e);
            ArrayList Inspect_Exfo = isEqual(_GLL_Standard_PigtailList, GetData_Exfo_e.PigtailList);

            if (Inspect_Exfo.Count > 0)
            {
                _Result.Fill_Exfo   = ArrayListToString(Inspect_Exfo);
                _Result.Result_Exfo = false;
            }
            else
            {
                //更新数据
                Maticsoft.DAL.My_GetTestData.UpDataEventArgs UpData_Exfo_e =
                    new Maticsoft.DAL.My_GetTestData.UpDataEventArgs(GetData_Exfo_e.TestData, _GLL_WorkOrder, _GLL_PackBatch.BatchNo, e.SN);
                _GLL_TestData.Start_UpData_Exfo(UpData_Exfo_e);
                _Result.Result_Exfo = true;

                if (_Result.Result_3D)  //如果3D为良品
                {
                    //如果需要打印标签
                    if (My_Print.IsPrint)
                    {
                        foreach (string temSN in _GLL_Standard_PigtailList)
                        {
                            //添加打印数据
                            DataSet temds = _M_Pack_Exfo.GetList("ClientSN='" + temSN + "' AND (Wave = '1550nm')");
                            My_Print.Add_PrintData(temds);
                        }
                    }
                }
            }

            //设置配组 为未完成 因为不需要进行配组
            _Result.Combination = false;
        }