Exemple #1
0
    /// <summary>
    /// 加载数据
    /// </summary>
    /// <returns></returns>
    public string frmLoadData()
    {
        TEnvPPolluteTypeVo TEnvPRiverV = new TEnvPPolluteTypeVo();

        TEnvPRiverV.ID = Request["id"].ToString();
        TEnvPPolluteTypeVo TEnvPRiverVTemp = new TEnvPPolluteTypeLogic().Details(TEnvPRiverV);

        return(ToJson(TEnvPRiverVTemp));
    }
Exemple #2
0
    /// <summary>
    /// 修改数据
    /// </summary>
    /// <returns></returns>
    public string frmUpdate()
    {
        bool isSuccess = true;
        TEnvPPolluteTypeVo TEnvPRiverV = autoBindRequest(Request, new TEnvPPolluteTypeVo());

        TEnvPRiverV.ID     = Request["id"].ToString();
        TEnvPRiverV.IS_DEL = "0";
        isSuccess          = new TEnvPPolluteTypeLogic().Edit(TEnvPRiverV);
        if (isSuccess)
        {
            WriteLog("编辑类别", "", LogInfo.UserInfo.USER_NAME + "编辑类别" + TEnvPRiverV.ID);
        }
        return(isSuccess == true ? "1" : "0");
    }
Exemple #3
0
    public static string deleteTwoGridInfo(string strValue)
    {
        TEnvPPolluteTypeVo TEnvPEnterInfo = new TEnvPPolluteTypeVo();

        TEnvPEnterInfo.ID     = strValue;
        TEnvPEnterInfo.IS_DEL = "1";
        bool isSuccess = new TEnvPPolluteTypeLogic().Edit(TEnvPEnterInfo);

        if (isSuccess)
        {
            new PageBase().WriteLog("删除类别信息", "", new UserLogInfo().UserInfo.USER_NAME + "删除类别信息" + strValue);
        }
        return(isSuccess == true ? "1" : "0");
    }
Exemple #4
0
    /// <summary>
    /// 增加数据
    /// </summary>
    /// <returns></returns>
    public string frmAdd()
    {
        bool isSuccess = true;
        TEnvPPolluteTypeVo TEnvPPolluteType = autoBindRequest(Request, new TEnvPPolluteTypeVo());

        TEnvPPolluteType.ID          = GetSerialNumber(SerialType.T_ENV_POINT_POLLUTETYPE);
        TEnvPPolluteType.SATAIONS_ID = this.formId.Value;
        TEnvPPolluteType.IS_DEL      = "0";
        isSuccess = new TEnvPPolluteTypeLogic().Create(TEnvPPolluteType);
        if (isSuccess)
        {
            WriteLog("添加类别", "", LogInfo.UserInfo.USER_NAME + "添加类别" + TEnvPPolluteType.ID);
        }
        return(isSuccess == true ? "1" : "0");
    }
Exemple #5
0
    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"]);
        TEnvPPolluteTypeVo TEnvPPolluteType = new TEnvPPolluteTypeVo();

        TEnvPPolluteType.SATAIONS_ID = oneGridId;
        TEnvPPolluteType.SORT_FIELD  = strSortname;
        TEnvPPolluteType.SORT_TYPE   = strSortorder;
        TEnvPPolluteType.IS_DEL      = "0";
        DataTable dt            = new TEnvPPolluteTypeLogic().SelectByTable(TEnvPPolluteType, intPageIndex, intPageSize);
        int       intTotalCount = new TEnvPPolluteTypeLogic().GetSelectResultCount(TEnvPPolluteType);
        string    strJson       = CreateToJson(dt, intTotalCount);

        return(strJson);
    }