Example #1
0
 public HttpResponseMessage LoadOrder(int oid)
 {
     SimpleSearchModel se = new SimpleSearchModel("S_Order");
     se["ID"] = oid;
     var result = se.LoadEntity<S_Order>();
     return this.JsonMessage(new { Order = result });
 }
Example #2
0
 public HttpResponseMessage LoadEditContent(int pid)
 {
     SimpleSearchModel se = new SimpleSearchModel("GreenLand");
     se["ID"] = pid;
     var green = se.LoadEntity<GreenLand>();
     return ExController.JsonMessage(new
     {
         STypes = HtmlSelect.GetHtmlSelectByEnum(typeof(EnumSType)),
         PStates = HtmlSelect.GetHtmlSelectByEnum(typeof(EnumGLState)),
         ProjectInfo = green
     });
 }