コード例 #1
0
 public JsonResult LoadOrder(int oid)
 {
     SimpleSearchModel se = new SimpleSearchModel("S_Order");
     se["ID"] = oid;
     var result = se.LoadEntity<S_Order>();
     return this.JsonNet(new { Order = result });
 }
コード例 #2
0
 public void AAAAA()
 {
     SimpleSearchModel se = new SimpleSearchModel("GreenLand");
     se["ID"] = 1;
     var green = se.LoadEntity<GreenLand>();
     Regex reg = new Regex(@"<img\b[^<>]*?\bsrc[\s\t\r\n]*=[\s\t\r\n]*[""']?[\s\t\r\n]*(?<imgUrl>[^\s\t\r\n""'<>]*)[^<>]*?/?[\s\t\r\n]*>", RegexOptions.IgnoreCase);
     var value= reg.Replace(green.Description, (match) => { return string.Format("<img _src='{0}' />", match.Groups[1].Value); });
 }
コード例 #3
0
 public JsonResult LoadEditContent(int pid)
 {
     SimpleSearchModel se = new SimpleSearchModel("GreenLand");
     se["ID"] = pid;
     var green = se.LoadEntity<GreenLand>();
     return ExController.JsonNet(new
     {
         STypes = HtmlSelect.GetHtmlSelectByEnum(typeof(EnumSType)),
         PStates = HtmlSelect.GetHtmlSelectByEnum(typeof(EnumGLState)),
         ProjectInfo = green
     });
 }
コード例 #4
0
        public JsonResult LoadOrderItems(SimpleSearchModel se, int page_g, int psize_g)
        {
            #region 查询条件初始化 Example:se["Field"] = "value";

            se.SearchID = "S_OrderItem";
            //.........................
            se.OrderBy("id", EnumOrderBy.Desc);

            #endregion

            se.PageIndex = page_g;
            se.PageSize = psize_g;
            var result = se.Load<S_OrderItem>();
            return ExController.JsonNet(result);
        }