Esempio n. 1
0
    // TODO: 是否缓冲一下,提高速度?
    bool ExistStatisFile(
        // LibraryChannel channel,
        string strDate8)
    {
        LibraryChannel channel = sessioninfo.GetChannel(true);

        try
        {
            DateExist[] dates    = null;
            string      strError = "";
            long        lRet     = channel.ExistStatisInfo(
                strDate8,
                out dates,
                out strError);
            if (lRet == -1)
            {
                return(false);
            }
            if (dates == null || dates.Length == 0)
            {
                return(false);
            }
            if (dates[0].Exist == true)
            {
                return(true);
            }
            return(false);
        }
        finally
        {
            sessioninfo.ReturnChannel(channel);
        }
    }
Esempio n. 2
0
 // TODO: 是否缓冲一下,提高速度?
 bool ExistStatisFile(
     LibraryChannel channel,
     string strDate8)
 {
     DateExist [] dates = null;
     string strError = "";
     long lRet = channel.ExistStatisInfo(
         strDate8,
         out dates,
         out strError);
     if (lRet == -1)
         return false;
     if (dates == null || dates.Length == 0)
         return false;
     if (dates[0].Exist == true)
         return true;
     return false;
 }