/// <summary>
    /// 加载数据
    /// </summary>
    /// <returns></returns>
    public string frmLoadData()
    {
        TEnvPLakeVVo TEnvPLakeV = new TEnvPLakeVVo();

        TEnvPLakeV.ID = Request["id"].ToString();
        TEnvPLakeVVo TEnvPLakeVTemp = new TEnvPLakeVLogic().Details(TEnvPLakeV);

        return(ToJson(TEnvPLakeVTemp));
    }
Exemple #2
0
    public static string deleteTwoGridInfo(string strValue)
    {
        bool isSuccess = new TEnvPLakeVLogic().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()
    {
        TEnvPLakeVVo TEnvPLakeV = autoBindRequest(Request, new TEnvPLakeVVo());

        TEnvPLakeV.ID = Request["id"].ToString();
        bool isSuccess = new TEnvPLakeVLogic().Edit(TEnvPLakeV);

        if (isSuccess)
        {
            WriteLog("编辑湖库垂线", "", LogInfo.UserInfo.USER_NAME + "编辑湖库垂线" + TEnvPLakeV.ID);
        }
        return(isSuccess == true ? "1" : "0");
    }
    /// <summary>
    /// 增加数据
    /// </summary>
    /// <returns></returns>
    public string frmAdd()
    {
        TEnvPLakeVVo TEnvPLakeV = autoBindRequest(Request, new TEnvPLakeVVo());

        TEnvPLakeV.ID         = GetSerialNumber(SerialType.T_ENV_P_RIVER_V);
        TEnvPLakeV.SECTION_ID = this.formId.Value;
        bool isSuccess = new TEnvPLakeVLogic().Create(TEnvPLakeV);

        if (isSuccess)
        {
            WriteLog("添加湖库垂线", "", LogInfo.UserInfo.USER_NAME + "添加湖库垂线" + TEnvPLakeV.ID);
        }
        return(isSuccess == true ? "1" : "0");
    }
Exemple #5
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"]);

        TEnvPLakeVVo TEnvPLakeV = new TEnvPLakeVVo();

        TEnvPLakeV.SECTION_ID = oneGridId;
        TEnvPLakeV.SORT_FIELD = strSortname;
        TEnvPLakeV.SORT_TYPE  = strSortorder;
        DataTable dt            = new TEnvPLakeVLogic().SelectByTable(TEnvPLakeV, intPageIndex, intPageSize);
        int       intTotalCount = new TEnvPLakeVLogic().GetSelectResultCount(TEnvPLakeV);
        string    strJson       = CreateToJson(dt, intTotalCount);

        return(strJson);
    }