Exemplo n.º 1
0
partial         void AfterUpdateData(SalesTeamMember e, ref ActionResult ar)
        {
            ar = this.Json(new AjaxOperationResult {
                Data = this.ToJson(e),
                Successful = true
            });
        }
Exemplo n.º 2
0
 private object ToJson(SalesTeamMember e)
 {
     return new {
             Id=e.Id,
         SalesTeamId=e.SalesTeamId,
         UserId=e.UserId,
         IsLeader=e.IsLeader
         };
 }
Exemplo n.º 3
0
 public ActionResult Add(SalesTeamMember e)
 {
     ActionResult ar = null;
     try {
         this.BeforeAddData(e, ref ar);
         if (ar == null) {
             this.Service.Add(e);
             e = this.Service.FindById(e.Id);
             //ar = this.Json(new AjaxOperationResult { Data = e, Successful = true });
             this.AfterAddData(e, ref ar);
         }
     } catch (Exception ex) {
         ar = this.Json(new AjaxOperationResult { Successful = false, Message = ex.Message });
     }
     return ar;
 }
Exemplo n.º 4
0
partial         void BeforeUpdateData(SalesTeamMember e, ref ActionResult ar);
Exemplo n.º 5
0
partial         void BeforeShowEditView(SalesTeamMember e);
Exemplo n.º 6
0
partial         void AfterUpdateData(SalesTeamMember e, ref ActionResult ar);
Exemplo n.º 7
0
partial         void AddRowToGridModel(LigerGridModel m, SalesTeamMember e);
Exemplo n.º 8
0
partial         void AddRowToGridModel(LigerGridModel m, SalesTeamMember e)
        {
            m.Rows.Add(this.ToJson(e));
        }