public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; LiuzhuanHelper liuzhuanHelper = new LiuzhuanHelper(); context.Response.Write(liuzhuanHelper.GetDataByReporter("liu3329")); }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; LiuzhuanHelper liuzhuanHelper = new LiuzhuanHelper(); context.Response.Write(liuzhuanHelper.GetDKBMLArray()); }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; if (context.Request["DKBM"] != null && context.Request["DKBM"].ToString() != "") { string dKBM = context.Request["DKBM"].ToString().Trim(); LiuzhuanHelper mdbHelper = new LiuzhuanHelper(); context.Response.Write(mdbHelper.GetDataByDKBM(dKBM)); } }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string Cjbm = context.Request["cjbm"].ToString().Trim(); float size = Convert.ToSingle(context.Request["size"].ToString().Trim()); LiuzhuanHelper liuzhuanHelper = new LiuzhuanHelper(); List <CBF> fbf = liuzhuanHelper.GetBigCBFBM(Cjbm, size); string jsonData = JsonConvert.SerializeObject(fbf); context.Response.Write(jsonData); }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string cJQYBM = context.Request["CJQYBM"].ToString().Trim(); LiuzhuanHelper liuzhuanHelper = new LiuzhuanHelper(); float liuzhuanArea = liuzhuanHelper.GetAreaByCjbm(cJQYBM); CJQYHelper cjqyHelper = new CJQYHelper(); CJQY cjqy = cjqyHelper.GetData(cJQYBM); float cjqyArea = Convert.ToSingle(cjqy.CountArea); float wlzArea = cjqyArea - liuzhuanArea; string json = "[{name:\"已流转面积\",value:" + liuzhuanArea + "},{name:\"未流转面积\",value:" + wlzArea + "}]"; context.Response.Write(json); }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string strReturn = "no"; if (context.Request["dataInfo"] != null) { string dataInfo = context.Request["dataInfo"]; Liuzhuan liuzhuan = (Liuzhuan)JsonConvert.DeserializeObject(dataInfo, typeof(Liuzhuan)); LiuzhuanHelper mdbHelper = new LiuzhuanHelper(); bool insertReturn = mdbHelper.Insert(liuzhuan); if (insertReturn) { strReturn = "yes"; } } context.Response.Write(strReturn); }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string json = ""; if (context.Request["CJQYBM"] != null && context.Request["CJQYBM"] != "") { string cJQYBM = context.Request["CJQYBM"].ToString().Trim(); LiuzhuanHelper liuzhuanHelper = new LiuzhuanHelper(); int liuzhuanCount = liuzhuanHelper.GetCountByCjbm(cJQYBM); CJQYHelper cjqyHelper = new CJQYHelper(); CJQY cjqy = cjqyHelper.GetData(cJQYBM); int cjqyCount = Convert.ToInt32(cjqy.NumFarmer); int wlzCount = cjqyCount - liuzhuanCount; json = "[{name:\"已流转户数\",value:" + liuzhuanCount + "},{name:\"未流转户数\",value:" + wlzCount + "}]"; } context.Response.Write(json); }