Exemplo n.º 1
0
    /// <summary>
    /// 加载数据
    /// </summary>
    /// <returns></returns>
    public string frmLoadData()
    {
        TEnvPointEstuariesVerticalVo TEnvPointEstuariesVerticalVo = new TEnvPointEstuariesVerticalVo();

        TEnvPointEstuariesVerticalVo.ID = Request["id"].ToString();
        TEnvPointEstuariesVerticalVo TEnvPointEstuariesVerticalVoTemp = new TEnvPointEstuariesVerticalLogic().Details(TEnvPointEstuariesVerticalVo);

        return(ToJson(TEnvPointEstuariesVerticalVoTemp));
    }
    public static string deleteTwoGridInfo(string strValue)
    {
        bool isSuccess = new TEnvPointEstuariesVerticalLogic().Delete(strValue);

        if (isSuccess)
        {
            new PageBase().WriteLog("删除入海河口垂线信息", "", new UserLogInfo().UserInfo.USER_NAME + "删除入海河口垂线信息" + strValue);
        }
        return(isSuccess == true ? "1" : "0");
    }
Exemplo n.º 3
0
    /// <summary>
    /// 修改数据
    /// </summary>
    /// <returns></returns>
    public string frmUpdate()
    {
        TEnvPointEstuariesVerticalVo TEnvPointEstuariesVerticalVo = autoBindRequest(Request, new TEnvPointEstuariesVerticalVo());

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

        if (isSuccess)
        {
            WriteLog("编辑入海河口垂线", "", LogInfo.UserInfo.USER_NAME + "编辑入海河口垂线" + TEnvPointEstuariesVerticalVo.ID);
        }
        return(isSuccess == true ? "1" : "0");
    }
Exemplo n.º 4
0
    /// <summary>
    /// 增加数据
    /// </summary>
    /// <returns></returns>
    public string frmAdd()
    {
        TEnvPointEstuariesVerticalVo TEnvPointEstuariesVerticalVo = autoBindRequest(Request, new TEnvPointEstuariesVerticalVo());

        TEnvPointEstuariesVerticalVo.ID         = GetSerialNumber("estuariespointvertical_id");
        TEnvPointEstuariesVerticalVo.SECTION_ID = this.formId.Value;
        bool isSuccess = new TEnvPointEstuariesVerticalLogic().Create(TEnvPointEstuariesVerticalVo);

        if (isSuccess)
        {
            WriteLog("添加入海河口垂线", "", LogInfo.UserInfo.USER_NAME + "添加入海河口垂线" + TEnvPointEstuariesVerticalVo.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"]);

        TEnvPointEstuariesVerticalVo TEnvPointEstuariesVerticalVo = new TEnvPointEstuariesVerticalVo();

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

        return(strJson);
    }