public string[] GetDealItemCount(string userName)
        {
            try
            {
                string waitTaskCount   = "0";
                string commonTaskCount = "0";
                string waitReadCount   = "0";

                string completedTaskCount = "0";
                string completedReadCount = "0";

                //待办文件数目
                B_TaskFile   l_busTaskFile   = new B_TaskFile();
                M_EntityMenu searchCondition = new M_EntityMenu();
                searchCondition.LoginUserID = userName;
                waitTaskCount = l_busTaskFile.GetWaitingHandleCount(searchCondition);

                //公办文件数目
                B_CommonTaskFile l_busCommonTaskFile = new B_CommonTaskFile();
                M_EntityMenu     m_GongBanFile       = new M_EntityMenu();
                m_GongBanFile.LoginUserID = userName;
                commonTaskCount           = l_busCommonTaskFile.GetCommonWaitingHandleCount(m_GongBanFile);

                //待阅文件
                M_EntityMenu mSearchCond    = new M_EntityMenu();
                B_Circulate  l_busCirculate = new B_Circulate(String.Empty);
                mSearchCond.LoginUserID = userName;
                mSearchCond.Is_Inbox    = false;
                mSearchCond.Is_Read     = 0;
                waitReadCount           = l_busCirculate.GetWaitingReadCount(mSearchCond);

                //已办
                B_CompletedTaskFile l_busCompletedTaskFile = new B_CompletedTaskFile();
                M_CompleteFile      m_CompleteFile         = new M_CompleteFile();
                m_CompleteFile.LoginUserID = userName;
                completedTaskCount         = l_busCompletedTaskFile.GetCompletedFileCount(m_CompleteFile);

                //已阅
                mSearchCond.Is_Read = 1;
                completedReadCount  = l_busCirculate.GetWaitingReadCount(mSearchCond);

                string[] strArr = new string[5];
                strArr[0] = waitTaskCount;
                strArr[1] = commonTaskCount; //公办
                strArr[2] = waitReadCount;
                strArr[3] = completedTaskCount;
                strArr[4] = completedReadCount;
                return(strArr);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public string[] GetDealItemCount(string userName)
        {
            try
            {
                string waitTaskCount = "0";
                string commonTaskCount = "0";
                string waitReadCount = "0";

                string completedTaskCount = "0";
                string completedReadCount = "0";

                //待办文件数目
                B_TaskFile l_busTaskFile = new B_TaskFile();
                M_EntityMenu searchCondition = new M_EntityMenu();
                searchCondition.LoginUserID = userName;
                waitTaskCount = l_busTaskFile.GetWaitingHandleCount(searchCondition);

                //公办文件数目
                B_CommonTaskFile l_busCommonTaskFile = new B_CommonTaskFile();
                M_EntityMenu m_GongBanFile = new M_EntityMenu();
                m_GongBanFile.LoginUserID = userName;
                commonTaskCount = l_busCommonTaskFile.GetCommonWaitingHandleCount(m_GongBanFile);

                //待阅文件
                M_EntityMenu mSearchCond = new M_EntityMenu();
                B_Circulate l_busCirculate = new B_Circulate(String.Empty);
                mSearchCond.LoginUserID = userName;
                mSearchCond.Is_Inbox = false;
                mSearchCond.Is_Read = 0;
                waitReadCount = l_busCirculate.GetWaitingReadCount(mSearchCond);

                //已办
                B_CompletedTaskFile l_busCompletedTaskFile = new B_CompletedTaskFile();
                M_CompleteFile m_CompleteFile = new M_CompleteFile();
                m_CompleteFile.LoginUserID = userName;
                completedTaskCount = l_busCompletedTaskFile.GetCompletedFileCount(m_CompleteFile);

                //已阅
                mSearchCond.Is_Read = 1;
                completedReadCount = l_busCirculate.GetWaitingReadCount(mSearchCond);

                string[] strArr = new string[5];
                strArr[0] = waitTaskCount;
                strArr[1] = commonTaskCount; //公办
                strArr[2] = waitReadCount;
                strArr[3] = completedTaskCount;
                strArr[4] = completedReadCount;
                return strArr;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        private void GetAllCount()
        {
            //草稿箱文件数目
            B_DraftBox l_busDraftBox = new B_DraftBox();
            l_strDraftCount = l_busDraftBox.GetDraftCount(CurrentUserInfo.UserName);

            //待办文件数目
            B_TaskFile l_busTaskFile = new B_TaskFile();
            M_EntityMenu m_TaskFileSearchCondition = new M_EntityMenu();
            m_TaskFileSearchCondition.LoginUserID = CurrentUserInfo.UserName;
            m_strWaitHandleCount = l_busTaskFile.GetWaitingHandleCount(m_TaskFileSearchCondition);

            //公办文件数目
            B_CommonTaskFile l_busCommonTaskFile = new B_CommonTaskFile();
            M_EntityMenu m_GongBanFile = new M_EntityMenu();
            m_GongBanFile.LoginUserID = CurrentUserInfo.UserName;
            m_strCommonWaitHandleCount = l_busCommonTaskFile.GetCommonWaitingHandleCount(m_GongBanFile);

            //待阅文件
            M_EntityMenu mSearchCond = new M_EntityMenu();
            mSearchCond.LoginUserID = CurrentUserInfo.UserName;
            mSearchCond.Is_Read = 0;
            B_Circulate l_busCirculate = new B_Circulate(String.Empty);
            m_strWaitReadCount = l_busCirculate.GetWaitingReadCount(mSearchCond);
        }
        private void GetAllCount()
        {
            //草稿箱文件数目
            B_DraftBox l_busDraftBox = new B_DraftBox();

            l_strDraftCount = l_busDraftBox.GetDraftCount(CurrentUserInfo.UserName);

            //待办文件数目
            B_TaskFile   l_busTaskFile             = new B_TaskFile();
            M_EntityMenu m_TaskFileSearchCondition = new M_EntityMenu();

            m_TaskFileSearchCondition.LoginUserID = CurrentUserInfo.UserName;
            m_strWaitHandleCount = l_busTaskFile.GetWaitingHandleCount(m_TaskFileSearchCondition);

            //公办文件数目
            B_CommonTaskFile l_busCommonTaskFile = new B_CommonTaskFile();
            M_EntityMenu     m_GongBanFile       = new M_EntityMenu();

            m_GongBanFile.LoginUserID  = CurrentUserInfo.UserName;
            m_strCommonWaitHandleCount = l_busCommonTaskFile.GetCommonWaitingHandleCount(m_GongBanFile);

            //待阅文件
            M_EntityMenu mSearchCond = new M_EntityMenu();

            mSearchCond.LoginUserID = CurrentUserInfo.UserName;
            mSearchCond.Is_Read     = 0;
            B_Circulate l_busCirculate = new B_Circulate(String.Empty);

            m_strWaitReadCount = l_busCirculate.GetWaitingReadCount(mSearchCond);
        }