Exemplo n.º 1
0
        public void JTInsert()
        {
            JTService jts = new JTService();

            jts.Add(new Models.BaseInfo.zxjc_t_jstc()
            {
                jtid   = Guid.NewGuid().ToString(),
                jcbh   = "001",
                jcmc   = "关于×××的通知",
                jcms   = "描述",
                jwdx   = 100,
                fpr    = "a",
                fp_flg = "Y",
                fp_sj  = DateTime.Now,
                gcdm   = "9100",
                scpc   = "pc",
                scry   = "admin",
                scsj   = DateTime.Now,
                scx    = "1",
                wjfl   = "fdp",
                wjlj   = "upload/",
                yxqx1  = DateTime.Now,
                yxqx2  = DateTime.Now.AddDays(5)
            });
        }
Exemplo n.º 2
0
 public IHttpActionResult JTAdd(List <zxjc_t_jstc> entitys)
 {
     try
     {
         JTService jts = new JTService();
         int       ret = jts.Add(entitys);
         if (ret > 0)
         {
             return(Json(new { code = 1, msg = "数据保存成功" }));
         }
         else
         {
             return(Json(new { code = 0, msg = "数据保存失败" }));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }