示例#1
0
    public static string deleteTwoGridInfo(string strValue)
    {
        bool isSuccess = new TEnvPSeabathItemLogic().Delete(strValue);

        if (isSuccess)
        {
            new PageBase().WriteLog("删除海水浴场监测点项目信息", "", new UserLogInfo().UserInfo.USER_NAME + "删除海水浴场监测点" + strValue + "项目信息");
        }
        return(isSuccess == true ? "1" : "0");
    }
示例#2
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"]);

        TEnvPSeabathItemVo TEnvPointRainItemVo = new TEnvPSeabathItemVo();

        //  TEnvPointRainItemVo.ID = oneGridId;
        TEnvPointRainItemVo.POINT_ID = oneGridId;
        //TEnvPointRainItemVo.ITEM_ID = strSortorder;
        DataTable dt            = new TEnvPSeabathItemLogic().SelectByTable(TEnvPointRainItemVo, intPageIndex, intPageSize);
        int       intTotalCount = new TEnvPSeabathItemLogic().GetSelectResultCount(TEnvPointRainItemVo);
        string    strJson       = CreateToJson(dt, intTotalCount);

        return(strJson);
    }