Example #1
0
        public JsonResult Update(tbl_jiaolian model)
        {
            model.editer   = SessionUser.UserNo;
            model.editdate = DateTime.Now;
            JiaxInfo           jiaxinfo = new JiaxInfo();
            OperateResultModel orm      = jiaxinfo.UpdateJiaolian(model);

            return(JsonResultHelper.ConvertToJsonResult(orm));
        }
Example #2
0
        public PartialViewResult Edit(string jiaolh)
        {
            JiaxInfo     jiaxinfo = new JiaxInfo();
            tbl_jiaolian model    = null;

            if (!string.IsNullOrEmpty(jiaolh))
            {
                model = jiaxinfo.QueryJiaolian(jiaolh);
            }
            return(PartialView(model));
        }
Example #3
0
        /// <summary>
        /// 更新信息
        /// </summary>
        /// <param name="model">实体</param>
        /// <returns></returns>
        public OperateResultModel UpdateJiaolian(tbl_jiaolian model)
        {
            TblJiaolianDal dal = new TblJiaolianDal();

            return(dal.Update(model));
        }
Example #4
0
        /// <summary>
        /// 插入信息
        /// </summary>
        /// <param name="model">实体</param>
        /// <returns></returns>
        public OperateResultModel InsertJiaolian(tbl_jiaolian model)
        {
            TblJiaolianDal dal = new TblJiaolianDal();

            return(dal.Insert(model));
        }