示例#1
0
    /// <summary>
    /// 加载数据
    /// </summary>
    /// <returns></returns>
    public string frmLoadData()
    {
        TEnvPRiverPlanVVo TEnvPRiverPlanV = new TEnvPRiverPlanVVo();

        TEnvPRiverPlanV.ID = Request["id"].ToString();
        TEnvPRiverPlanVVo TEnvPRiverVTemp = new TEnvPRiverPlanVLogic().Details(TEnvPRiverPlanV);

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

        if (isSuccess)
        {
            new PageBase().WriteLog("删除规划垂线信息", "", new UserLogInfo().UserInfo.USER_NAME + "删除规划垂线信息" + strValue);
        }
        return(isSuccess == true ? "1" : "0");
    }
示例#3
0
    /// <summary>
    /// 修改数据
    /// </summary>
    /// <returns></returns>
    public string frmUpdate()
    {
        TEnvPRiverPlanVVo TEnvPRiverPlanV = autoBindRequest(Request, new TEnvPRiverPlanVVo());

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

        if (isSuccess)
        {
            WriteLog("编辑规划垂线", "", LogInfo.UserInfo.USER_NAME + "编辑规划垂线" + TEnvPRiverPlanV.ID);
        }
        return(isSuccess == true ? "1" : "0");
    }
示例#4
0
    /// <summary>
    /// 增加数据
    /// </summary>
    /// <returns></returns>
    public string frmAdd()
    {
        TEnvPRiverPlanVVo TEnvPRiverPlanV = autoBindRequest(Request, new TEnvPRiverPlanVVo());

        TEnvPRiverPlanV.ID         = GetSerialNumber(SerialType.T_ENV_P_RIVER_PLAN_V);
        TEnvPRiverPlanV.SECTION_ID = this.formId.Value;
        bool isSuccess = new TEnvPRiverPlanVLogic().Create(TEnvPRiverPlanV);

        if (isSuccess)
        {
            WriteLog("添加规划垂线", "", LogInfo.UserInfo.USER_NAME + "添加规划垂线" + TEnvPRiverPlanV.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"]);

        TEnvPRiverPlanVVo TEnvPRiverPlanV = new TEnvPRiverPlanVVo();

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

        return(strJson);
    }