Example #1
0
        public void setlemeDongusu()
        {
            if (cGenel.MAKINE_ADI == cGenel.MAKINE_ADI_LH)
            {
                float lastTBTNO = tbtgalcDoor.TBTGalcLastTBTNO_Read_LH();

                if (barkodIslem.barkod_FRL_RRL_Count_0() == 0)
                {
                    listTBTGalc_LH.Clear();
                    listTBTGalc_LH = tbtgalcDoor.TBTGalcDoorSpecRead_LH(lastTBTNO);
                    if (listTBTGalc_LH.Count > 0)
                    {
                        lastTBTNO = listTBTGalc_LH[(listTBTGalc_LH.Count - 1)]._TBTNO;
                        barkodIslem.barcodsNewAdd_LH(listTBTGalc_LH);
                    }
                    tbtgalcDoor.TBTGalcLastTBTNO_Write_LH(lastTBTNO + 1);

                    if (karkasIslem.gorevDurumIslemYokveyaYapiliyorDollyLH()._ID == 0) //(v1.0 -->urunBarkod.barkod_FRR_RRR_Count() > 0)
                    {
                        karkasIslem.gorevOlustur_LH(999);                              //v2.0
                    }
                }
            }
            else if (cGenel.MAKINE_ADI == cGenel.MAKINE_ADI_RH)
            {
                float lastTBTNO = tbtgalcDoor.TBTGalcLastTBTNO_Read_RH();
                if (barkodIslem.barkod_FRR_RRR_Count_0() == 0)
                {
                    listTBTGalc_RH.Clear();
                    listTBTGalc_RH = tbtgalcDoor.TBTGalcDoorSpecRead_RH(lastTBTNO);
                    if (listTBTGalc_RH.Count > 0)
                    {
                        lastTBTNO = listTBTGalc_RH[(listTBTGalc_RH.Count - 1)]._TBTNO;
                        barkodIslem.barcodsNewAdd_RH(listTBTGalc_RH);
                    }
                    tbtgalcDoor.TBTGalcLastTBTNO_Write_RH(lastTBTNO + 1);

                    if (karkasIslem.gorevDurumIslemYokveyaYapiliyorDollyRH()._ID == 0) //(v1.0 -->urunBarkod.barkod_FRR_RRR_Count() > 0)
                    {
                        karkasIslem.gorevOlustur_RH(999);                              //v2.0
                    }
                }
            }
        }