Exemple #1
0
        bool CheckPub(int GDV, string idclaim)
        {
            int  PUBGDV   = gdvdao.LayMaPub(GDV);
            int  PUBCLAIM = cldao.LayMaPUB(idclaim);
            bool kt       = false;

            if (PUBGDV == 1)
            {
                kt = true;
            }
            else
            if (PUBGDV == 2 && PUBGDV == PUBCLAIM)
            {
                kt = true;
            }
            else
            if (PUBGDV == 3 && PUBGDV == PUBCLAIM)
            {
                kt = true;
            }
            return(kt);
        }