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

        TEnvPMudSeaV.ID = Request["id"].ToString();
        TEnvPMudSeaVVo TEnvPRiverVTemp = new TEnvPMudSeaVLogic().Details(TEnvPMudSeaV);

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

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

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

        if (isSuccess)
        {
            WriteLog("编辑沉积物(海水)垂线", "", LogInfo.UserInfo.USER_NAME + "编辑沉积物(海水)垂线" + TEnvPMudSeaV.ID);
        }
        return(isSuccess == true ? "1" : "0");
    }
Ejemplo n.º 4
0
    /// <summary>
    /// 增加数据
    /// </summary>
    /// <returns></returns>
    public string frmAdd()
    {
        TEnvPMudSeaVVo TEnvPMudSeaV = autoBindRequest(Request, new TEnvPMudSeaVVo());

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

        if (isSuccess)
        {
            WriteLog("添加沉积物(海水)垂线", "", LogInfo.UserInfo.USER_NAME + "添加沉积物(海水)垂线" + TEnvPMudSeaV.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"]);

        TEnvPMudSeaVVo TEnvPMudSeaV = new TEnvPMudSeaVVo();

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

        return(strJson);
    }