Example #1
0
        public JsonResult SaveYySend(string psbz, string psdate, string psy, string sid)
        {
            JsonData            d  = new JsonData();
            SessionUserValidate iv = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                B_YySend bfm = new B_YySend();
                bfm.sid     = sid;
                bfm.sperson = psy;
                bfm.pdate   = CommonBll.GetBdate(psdate);
                bfm.pbz     = psbz;
                bfm.maker   = iv.u.ename;
                bfm.cdate   = DateTime.Now.ToString();
                if (bysb.Add(bfm) > 0)
                {
                    d.d = "S";
                }
                else
                {
                    d.d = "F";
                }
            }
            else
            {
                d.d = iv.badstr;
            }
            return(Json(d));
        }
Example #2
0
        public JsonResult QueryYySend(string sid)
        {
            JsonData            d  = new JsonData();
            SessionUserValidate iv = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                B_YySend bfm = bysb.Query(" and sid='" + sid + "' order by id desc");
                d.d = js.Serialize(bfm);
            }
            else
            {
                d.d = iv.badstr;
            }
            return(Json(d));
        }