Esempio n. 1
0
        private void MyBind()
        {
            M_UserInfo mu = buser.GetLogin();
            DataTable  dt = oaBll.SelDocByUid(mu.UserID);

            wait_sp.InnerText = dt.Rows.Count.ToString();//待办
            Span2.InnerText   = msgBll.GetUnReadMail(mu.UserID).Rows.Count.ToString();
            //论坛交流
            RPT.DataSource = barBll.SelFocus();
            RPT.DataBind();
        }
Esempio n. 2
0
        public void ProcessRequest(HttpContext context)
        {
            //弹出提示存Cookies中吧,用于标记是否弹出过
            B_User    buser  = new B_User();
            string    result = "";
            DataTable dt     = new DataTable();
            string    action = context.Request.Form["action"];

            switch (action)
            {
            case "GetUnreadMail":    //Default.aspx
                B_Message msgBll = new B_Message();
                dt = msgBll.GetUnReadMail(buser.GetLogin().UserID);
                if (dt.Rows.Count > 0)
                {
                    result = "{\"num\":\"" + dt.Rows.Count + "\"}";
                }
                else
                {
                    result = "0";
                }
                break;

            case "GetAffir":    //待办公文和事务
                                //B_OA_Document oaBll = new B_OA_Document();
                                //dt = oaBll.SelByRefer(buser.GetLogin().UserID, 1);
                                //DataTable dt2 = oaBll.SelByDocType(buser.GetLogin().UserID, 1,1);
                                //    result = "{\"affair\":\"" + dt.Rows.Count + "\",\"affair2\":\""+dt2.Rows.Count+"\"}";
                break;

            default:
                result = "-1";
                break;
            }
            context.Response.Write(result);
            context.Response.End();
        }
Esempio n. 3
0
        public int GetUnreadMsg()
        {
            DataTable dt = mBll.GetUnReadMail(uMod.UserID);

            return(dt.Rows.Count);
        }