Esempio n. 1
0
        public JsonResult SaveBenefit(HQ_DisplayPanel entity)
        {
            if (entity.ID == 0)
            {
                #region 维护新增数据

                entity.DPanelType = (int)EnumDPanelType.MemberBenefit;
                entity.CreateBy = LoginInfo.Current.Name;
                entity.CreateOn = DateTime.Now;

                #endregion
            }
            else
            {
                #region 维护修改数据

                entity.EditBy = LoginInfo.Current.Name;
                entity.EditOn = DateTime.Now;

                #endregion
            }

            var r = entity.Save();
            if (r > 0)
            {
                return ExController.JsonNet(entity);
            }
            return ExController.JsonNet(new { ID = 0 });
        }
Esempio n. 2
0
 public long DeletePanel(HQ_DisplayPanel entity)
 {
     return entity.Delete();
 }