/// <summary> /// 加载数据 /// </summary> /// <returns></returns> public string frmLoadData() { TEnvPRiver30VVo TEnvPRiver30V = new TEnvPRiver30VVo(); TEnvPRiver30V.ID = Request["id"].ToString(); TEnvPRiver30VVo TEnvPRiver30VTemp = new TEnvPRiver30VLogic().Details(TEnvPRiver30V); return(ToJson(TEnvPRiver30VTemp)); }
public static string deleteTwoGridInfo(string strValue) { bool isSuccess = new TEnvPRiver30VLogic().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() { TEnvPRiver30VVo TEnvPRiver30V = autoBindRequest(Request, new TEnvPRiver30VVo()); TEnvPRiver30V.ID = Request["id"].ToString(); bool isSuccess = new TEnvPRiver30VLogic().Edit(TEnvPRiver30V); if (isSuccess) { WriteLog("编辑双三十废水垂线", "", LogInfo.UserInfo.USER_NAME + "编辑双三十废水垂线" + TEnvPRiver30V.ID); } return(isSuccess == true ? "1" : "0"); }
/// <summary> /// 增加数据 /// </summary> /// <returns></returns> public string frmAdd() { TEnvPRiver30VVo TEnvPRiver30V = autoBindRequest(Request, new TEnvPRiver30VVo()); TEnvPRiver30V.ID = GetSerialNumber(SerialType.T_ENV_P_RIVER30_V); TEnvPRiver30V.SECTION_ID = this.formId.Value; bool isSuccess = new TEnvPRiver30VLogic().Create(TEnvPRiver30V); if (isSuccess) { WriteLog("添加双三十废水垂线", "", LogInfo.UserInfo.USER_NAME + "添加双三十废水垂线" + TEnvPRiver30V.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"]); TEnvPRiver30VVo TEnvPRiver30V = new TEnvPRiver30VVo(); TEnvPRiver30V.SECTION_ID = oneGridId; TEnvPRiver30V.SORT_FIELD = strSortname; TEnvPRiver30V.SORT_TYPE = strSortorder; DataTable dt = new TEnvPRiver30VLogic().SelectByTable(TEnvPRiver30V, intPageIndex, intPageSize); int intTotalCount = new TEnvPRiver30VLogic().GetSelectResultCount(TEnvPRiver30V); string strJson = CreateToJson(dt, intTotalCount); return(strJson); }