Esempio n. 1
0
        void LoadTestInformation()
        {
            try
            {
                LoadedTestInfo   = GCIDB.GetTestPins(SelectedPartName, SelectedBoardName);
                GCItoDUTMap      = new Dictionary <int, int>();
                GCItoDeviceIndex = new Dictionary <int, int>();

                if (LoadedTestInfo.Count > 0)
                {
                    LoadedTestBoardID = LoadedTestInfo[0].TestBoardID;
                }

                List <string> SlotNames   = new List <string>();
                List <int>    SocketIndex = new List <int>();
                foreach (TestPinEntity Pin in LoadedTestInfo)
                {
                    if (SlotNames.Contains(Pin.SocketName) == false)
                    {
                        SlotNames.Add(Pin.SocketName);
                        SocketIndex.Add(Pin.SocketIndex);
                    }

                    if (GCItoDUTMap.ContainsKey(Pin.GCIPin) == false)
                    {
                        GCItoDUTMap.Add(Pin.GCIPin, Pin.DUTPin);
                    }

                    if (GCItoDeviceIndex.ContainsKey(Pin.GCIPin) == false)
                    {
                        GCItoDeviceIndex.Add(Pin.GCIPin, Pin.SocketIndex);
                    }
                }
                listLifetimeInfo1.Clear();

                for (int i = 0; i < SlotNames.Count; i++)
                {
                    String     Slot          = SlotNames[i];
                    int        Index         = SocketIndex[i];
                    List <int> GCIPinsToTest = GetGCITestPinsFromIndex(Index);
                    listLifetimeInfo1.AddLifetimeTestSlot(Slot, Index, LoadedTestBoardID, GCIPinsToTest, ExistingSerialNumbers);
                }
                buttonStart.IsEnabled = true;
            }
            catch (Exception ex)
            {
                MessageBox.Show("LoadTestInformation(): " + ex.ToString());
            }
        }
Esempio n. 2
0
        void LoadTestInformation()
        {
            LoadedTestInfo   = GCIDB.GetTestPins(SelectedPartName, SelectedBoardName);
            GCItoDUTMap      = new Dictionary <int, int>();
            GCItoDeviceIndex = new Dictionary <int, int>();

            if (LoadedTestInfo.Count > 0)
            {
                LoadedTestBoardID = LoadedTestInfo[0].TestBoardID;
            }

            List <string> SlotNames   = new List <string>();
            List <int>    SocketIndex = new List <int>();

            foreach (TestPinEntity Pin in LoadedTestInfo)
            {
                if (SlotNames.Contains(Pin.SocketName) == false)
                {
                    SlotNames.Add(Pin.SocketName);
                    SocketIndex.Add(Pin.SocketIndex);
                }

                if (GCItoDUTMap.ContainsKey(Pin.GCIPin) == false)
                {
                    GCItoDUTMap.Add(Pin.GCIPin, Pin.DUTPin);
                }

                if (GCItoDeviceIndex.ContainsKey(Pin.GCIPin) == false)
                {
                    GCItoDeviceIndex.Add(Pin.GCIPin, Pin.SocketIndex);
                }
            }
            listProductionInfo1.Clear();

            for (int i = 0; i < SlotNames.Count; i++)
            {
                String     Slot          = SlotNames[i];
                int        Index         = SocketIndex[i];
                List <int> GCIPinsToTest = GetGCITestPinsFromIndex(Index);
                listProductionInfo1.AddProductionTestSlot(Slot, Index, LoadedTestBoardID, GCIPinsToTest);
            }
        }
Esempio n. 3
0
        private void selectBoard_listBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (selectBoard_listBox.Items.Count > 0)
            {
                if (selectBoard_listBox.SelectedItem == null)
                {
                    return;
                }

                if (SelectedBoardName == selectBoard_listBox.SelectedItem.ToString())
                {
                    return;
                }
                SelectedBoardName = selectBoard_listBox.SelectedItem.ToString();

                LoadedTestInfo = GCIDB.GetTestPins(SelectedPartName, SelectedBoardName);
                testBoardList1.ClearPins();
                //  test
                String LastDeviceName = string.Empty;
                foreach (TestPinEntity Pin in LoadedTestInfo)
                {
                    if (LastDeviceName.Length > 0 && (LastDeviceName != Pin.SocketName))
                    {
                        testBoardList1.ExtraSpace += 20;
                    }

                    testBoardList1.AddPinMap(Pin);
                    LastDeviceName = Pin.SocketName;
                }

                SelectedPartName = part_listBox.SelectedItem.ToString();
                GCIDB.Initialize();
                GCIDB.OpenConnection();
                List <string> boardNames = GCIDB.GetTestBoardList(SelectedPartName);
                SelectedBoardName = string.Empty;
                selectBoard_listBox.ItemsSource = boardNames;

                SelectedBoardName = selectBoard_listBox.SelectedItem.ToString();
            }
        }