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);
        }
示例#3
0
        /// <summary>
        /// 绑定数据
        /// </summary>
        private void LoadDraftList()
        {
            //当前登录用户账号
            String l_strUserName = CurrentUserInfo.UserName;

            //得到检索条件
            M_EntityMenu l_entityDraft = GetSearchCondition();

            B_DraftBox l_busDraftBox = new B_DraftBox();

            l_entityDraft.Start = gvDraftList.PageIndex * gvDraftList.PageSize;
            l_entityDraft.End   = gvDraftList.PageIndex * gvDraftList.PageSize + gvDraftList.PageSize;
            l_entityDraft.Sort  = SortExpression;

            //得到草稿文件列表
            DataTable l_dtbDataTable = l_busDraftBox.GetDraftList(l_entityDraft);

            //绑定数据
            this.gvDraftList.RecordCount = l_entityDraft.RowCount;
            this.gvDraftList.DataSource  = l_dtbDataTable;
            this.gvDraftList.DataBind();
        }