//
        // FilterJLinersReadyToLine
        //
        private void FilterJLinersReadyToLine(TDSJLinersReadyToLine dataSet)
        {
            //--- Initialize
            int indexMA = 0;
            int recordsMA = dataSet.JLinersReadyToLine.Count;
            //--- Move in MASTER_AREA records
            while (recordsMA > 0)
            {
                //--- Initialize
                int numJL = 0; //rows in LFS_JUNCTION_LINER
                int numC1 = 0; //rows in LFS_JUNCTION_LINER with MeauredLatLength and LinerInStock condition
                int numC2 = 0; //rows in LFS_JUNCTION_LINER with LinerInstalled condition
                TDSJLinersReadyToLine.JLinersReadyToLineRow rowMA = dataSet.JLinersReadyToLine[indexMA];
                //--- Move in LFS_JUNCTION_LINER records
                foreach (TDSJLinersReadyToLine.LFS_JUNCTION_LINERRow lfsJunctionLinerRow in dataSet.LFS_JUNCTION_LINER)
                {
                    //--- Verify condition
                    if ((lfsJunctionLinerRow.ID == rowMA["ID"].ToString()) && (lfsJunctionLinerRow.COMPANY_ID.ToString() == rowMA["COMPANY_ID"].ToString()))
                    {
                        numJL++;
                        if ((!lfsJunctionLinerRow.IsNull("MeasuredLatLength")) && (lfsJunctionLinerRow.LinerInStock == true))
                        {
                            numC1++;
                            if (lfsJunctionLinerRow.IsNull("LinerInstalled"))
                            {
                                numC2++;
                            }
                        }
                    }
                }

                //--- Move forward or delete LFS_MASTER_AREA record
                if ((numJL == numC1) && (numC2>0))
                {
                    indexMA++;
                }
                else
                {
                    rowMA.Delete();
                    dataSet.AcceptChanges();
                }
                recordsMA--;
            }
        }