/// <summary> /// 加载数据 /// </summary> /// <returns></returns> public string frmLoadData() { TEnvPRiverCityVVo TEnvPRiverCityV = new TEnvPRiverCityVVo(); TEnvPRiverCityV.ID = Request["id"].ToString(); TEnvPRiverCityVVo TEnvPRiverVTemp = new TEnvPRiverCityVLogic().Details(TEnvPRiverCityV); return(ToJson(TEnvPRiverVTemp)); }
public static string deleteTwoGridInfo(string strValue) { bool isSuccess = new TEnvPRiverCityVLogic().Delete(strValue); if (isSuccess) { new PageBase().WriteLog("删除城考垂线信息", "", new UserLogInfo().UserInfo.USER_NAME + "删除城考垂线信息" + strValue); } return(isSuccess == true ? "1" : "0"); }
/// <summary> /// 修改数据 /// </summary> /// <returns></returns> public string frmUpdate() { TEnvPRiverCityVVo TEnvPRiverCityV = autoBindRequest(Request, new TEnvPRiverCityVVo()); TEnvPRiverCityV.ID = Request["id"].ToString(); bool isSuccess = new TEnvPRiverCityVLogic().Edit(TEnvPRiverCityV); if (isSuccess) { WriteLog("编辑城考垂线", "", LogInfo.UserInfo.USER_NAME + "编辑城考垂线" + TEnvPRiverCityV.ID); } return(isSuccess == true ? "1" : "0"); }
/// <summary> /// 增加数据 /// </summary> /// <returns></returns> public string frmAdd() { TEnvPRiverCityVVo TEnvPRiverCityV = autoBindRequest(Request, new TEnvPRiverCityVVo()); TEnvPRiverCityV.ID = GetSerialNumber(SerialType.T_ENV_P_RIVER_CITY_V); TEnvPRiverCityV.SECTION_ID = this.formId.Value; bool isSuccess = new TEnvPRiverCityVLogic().Create(TEnvPRiverCityV); if (isSuccess) { WriteLog("添加城考垂线", "", LogInfo.UserInfo.USER_NAME + "添加城考垂线" + TEnvPRiverCityV.ID); } return(isSuccess == true ? "1" : "0"); }
/// <summary> /// 获取垂线信息 /// </summary> /// <param name="oneGridId">断面ID</param> /// <returns></returns> public string getTwoGridInfo(string oneGridId) { string strSortname = Request.Params["sortname"]; string strSortorder = Request.Params["sortorder"]; //当前页面 int intPageIndex = Convert.ToInt32(Request.Params["page"]); //每页记录数 int intPageSize = Convert.ToInt32(Request.Params["pagesize"]); TEnvPRiverCityVVo TEnvPRiverCityV = new TEnvPRiverCityVVo(); TEnvPRiverCityV.SECTION_ID = oneGridId; TEnvPRiverCityV.SORT_FIELD = strSortname; TEnvPRiverCityV.SORT_TYPE = strSortorder; DataTable dt = new TEnvPRiverCityVLogic().SelectByTable(TEnvPRiverCityV, intPageIndex, intPageSize); int intTotalCount = new TEnvPRiverCityVLogic().GetSelectResultCount(TEnvPRiverCityV); string strJson = CreateToJson(dt, intTotalCount); return(strJson); }