检查所有表的DeleteAction是否Unknow

static void NJ_MF_CheckAllTable(Args _args)
{
    inventtable         invent;
    Dictionary          dictionary = new Dictionary();
    DictTable           dictTable;

    int                 i,m,n;
    ;

    for (i=1; i<=dictionary.tableCnt(); i++)
    {
         dictTable = new DictTable(dictionary.tableCnt2Id(i));

         for (m=1; m<=dictTable.relationCnt(); m++)
         {
            if (dictTable.relation(m) == "")
            {
                print dictTable.name();
            }
         }
         for (n=1; n<=dictTable.deleteActionCnt(); n++)
         {
            if (dictTable.deleteActionTableId(n) == 0)
            {
                print dictTable.name();
                //if(i > 10 )
                //pause;
            }
         }

    }

    //dictTable = new dictTable(tablenum("NJ_CustomInvTable"));
    //print dictTable.deleteActionTableId(2);
    //print dictTable.relation(0);
    //print dictTable.name();
    pause;
}

posted @ 2011-12-22 09:31  perock  阅读(252)  评论(0编辑  收藏  举报