Beispiel #1
0
 public ActionResult DeleteOILType(string keyValue)
 {
     using (var app = new OILTypeApp())
     {
         var data = app.DeleteOILType(keyValue);
         return(Content(data.ToJson()));
     }
 }
Beispiel #2
0
 public ActionResult Sumbit(T_OILType entity, string keyValue)
 {
     using (var app = new OILTypeApp())
     {
         var data = app.SumbitOILType(entity, keyValue);
         return(Content(data.ToJson()));
     }
 }
Beispiel #3
0
 public ActionResult GetFormJson(string keyValue)
 {
     using (var app = new OILTypeApp())
     {
         var data = app.GetFormJson(keyValue);
         return(Content(data.ToJson()));
     }
 }
Beispiel #4
0
 public ActionResult GetOILTypes()
 {
     using (var app = new OILTypeApp())
     {
         var data = app.GetOILTypes();
         return(Content(data.ToJson()));
     }
 }
Beispiel #5
0
 // GET: YdkManage/OILType
 public ActionResult GetGridJson(Pagination pagination, string keyword)
 {
     using (var app = new OILTypeApp())
     {
         var data = new
         {
             rows    = app.GetGridJson(pagination, keyword),
             total   = pagination.total,
             page    = pagination.page,
             records = pagination.records
         };
         return(Content(data.ToJson()));
     }
 }