Ejemplo n.º 1
0
        /// <summary>
        /// 对象编辑
        /// </summary>
        /// <param name="tEnvPointRain">用户对象</param>
        /// <returns>是否成功</returns>
        public bool Edit(TEnvPointRainVo tEnvPointRain)
        {
            string strSQL = SqlHelper.BuildUpdateExpress(tEnvPointRain, TEnvPointRainVo.T_ENV_POINT_RAIN_TABLE);

            strSQL += string.Format(" where ID='{0}' ", tEnvPointRain.ID);
            return(SqlHelper.ExecuteNonQuery(CommandType.Text, strSQL) > 0 ? true : false);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 获取对象DataTable
        /// </summary>
        /// <param name="tEnvPointRain">对象</param>
        /// <param name="iIndex">起始页码</param>
        /// <param name="iCount">每页数目</param>
        /// <returns>返回结果</returns>
        public DataTable SelectByTable(TEnvPointRainVo tEnvPointRain, int iIndex, int iCount)
        {
            string strSQL = " select * from T_ENV_P_RAIN {0} order by YEAR desc,len(MONTH) desc,MONTH desc ";

            strSQL = String.Format(strSQL, BuildWhereStatement(tEnvPointRain));
            return(SqlHelper.ExecuteDataTable(BuildPagerExpress(strSQL, iIndex, iCount)));
        }
    private void GetPoint()
    {
        string          year      = Request["year"];
        string          month     = Request["month"];
        TEnvPointRainVo Dustpoint = new TEnvPointRainVo();//降尘点位

        Dustpoint.YEAR   = year;
        Dustpoint.MONTH  = month;
        Dustpoint.IS_DEL = "0";//删除标志
        DataTable dt = new i3.BusinessLogic.Channels.Env.Point.Rain.TEnvPointRainLogic().SelectByTable(Dustpoint);
        //加入全部
        DataRow dr = dt.NewRow();

        dr["POINT_NAME"] = "--全部--";
        dt.Rows.InsertAt(dr, 0);
        string json = DataTableToJson(dt);

        //TEnvPointRainVo model = new TEnvPointRainVo();
        //model.YEAR = year;
        //DataTable dt = new TEnvPointRainLogic().SelectByTable(model);

        //string json = DataTableToJson(dt);

        Response.ContentType = "application/json;charset=utf-8";
        Response.Write(json);
        Response.End();
    }
Ejemplo n.º 4
0
        /// <summary>
        /// 对象编辑
        /// </summary>
        /// <param name="tEnvPointRain_UpdateSet">UpdateSet用户对象</param>
        /// <param name="tEnvPointRain_UpdateWhere">UpdateWhere用户对象</param>
        /// <returns>是否成功</returns>
        public bool Edit(TEnvPointRainVo tEnvPointRain_UpdateSet, TEnvPointRainVo tEnvPointRain_UpdateWhere)
        {
            string strSQL = SqlHelper.BuildUpdateExpress(tEnvPointRain_UpdateSet, TEnvPointRainVo.T_ENV_POINT_RAIN_TABLE);

            strSQL += this.BuildWhereStatement(tEnvPointRain_UpdateWhere);
            return(SqlHelper.ExecuteNonQuery(CommandType.Text, strSQL) > 0 ? true : false);
        }
    /// <summary>
    /// 增加数据
    /// </summary>
    /// <returns></returns>
    public string frmAdd()
    {
        string          strMsg          = "";
        bool            isSuccess       = true;
        TEnvPointRainVo TEnvPointRainVo = autoBindRequest(Request, new TEnvPointRainVo());

        //   TEnvPointRainVo.ID = GetSerialNumber("rainpoint_id");
        TEnvPointRainVo.IS_DEL = "0";
        string Meg = new CommonLogic().isExistDatas(TEnvPointRainVo.T_ENV_POINT_RAIN_TABLE, TEnvPointRainVo.YEAR, TEnvPointRainVo.SelectMonths, TEnvPointRainVo.POINT_NAME_FIELD, TEnvPointRainVo.POINT_NAME, TEnvPointRainVo.POINT_CODE_FIELD, TEnvPointRainVo.POINT_CODE, TEnvPointRainVo.ID_FIELD, TEnvPointRainVo.ID, 0);

        if (!string.IsNullOrEmpty(Meg))
        {
            strMsg = Meg; isSuccess = false;
        }
        else
        {
            isSuccess = new TEnvPointRainLogic().Create(TEnvPointRainVo, SerialType.T_ENV_P_RAIN);
            if (isSuccess)
            {
                WriteLog("添加降水监测点", "", LogInfo.UserInfo.USER_NAME + "添加降水监测点:" + TEnvPointRainVo.ID);
                strMsg = "数据保存成功";
            }
            else
            {
                strMsg = "数据保存失败";
            }
        }
        return(isSuccess == true ? "{\"result\":\"success\",\"msg\":\"" + strMsg + "\"}" : "{\"result\":\"fail\",\"msg\":\"" + strMsg + "\"}");

        //    isSuccess = new TEnvPointRainLogic().Create(TEnvPointRainVo,SerialType.T_ENV_P_RAIN);
        //   if (isSuccess)
        //       WriteLog("添加降水监测点", "", LogInfo.UserInfo.USER_NAME + "添加降水监测点" + TEnvPointRainVo.ID);
        //   return isSuccess == true ? "1" : "0";
    }
Ejemplo n.º 6
0
        /// <summary>
        /// 对象删除
        /// </summary>
        /// <param name="Id">ID</param>
        /// <returns>是否成功</returns>
        public bool Delete(TEnvPointRainVo tEnvPointRain)
        {
            string strSQL = "delete from T_ENV_P_RAIN ";

            strSQL += this.BuildWhereStatement(tEnvPointRain);

            return(SqlHelper.ExecuteNonQuery(CommandType.Text, strSQL) > 0 ? true : false);
        }
Ejemplo n.º 7
0
    public static string deleteOneGridInfo(string strValue)
    {
        TEnvPointRainVo TEnvPointRainVo = new TEnvPointRainVo();

        TEnvPointRainVo.ID     = strValue;
        TEnvPointRainVo.IS_DEL = "1";
        bool isSuccess = new TEnvPointRainLogic().Edit(TEnvPointRainVo);

        if (isSuccess)
        {
            new PageBase().WriteLog("删除降水监测点", "", new UserLogInfo().UserInfo.USER_NAME + "删除降水监测点" + TEnvPointRainVo.ID);
        }
        return(isSuccess == true ? "1" : "0");
    }
    /// <summary>
    /// 加载数据
    /// </summary>
    /// <returns></returns>
    public string frmLoadData()
    {
        TEnvPointRainVo TEnvPointRainVo = new TEnvPointRainVo();

        TEnvPointRainVo.ID     = Request["id"].ToString();
        TEnvPointRainVo.IS_DEL = "0";
        TEnvPointRainVo TEnvPointRainVoTemp = new TEnvPointRainLogic().Details(TEnvPointRainVo);
        //条件项ID
        string strConditionId = TEnvPointRainVoTemp.CONDITION_ID;
        //根据条件项获取评价标准名称
        //string strStanderId = new i3.BusinessLogic.Channels.Base.Evaluation.TBaseEvaluationConInfoLogic().Details(strConditionId).STANDARD_ID;
        //根据评价标准ID获取评价标准名称
        string strStanderName = new i3.BusinessLogic.Channels.Base.Evaluation.TBaseEvaluationInfoLogic().Details(strConditionId).STANDARD_NAME;

        TEnvPointRainVoTemp.REMARK1 = strStanderName;
        return(ToJson(TEnvPointRainVoTemp));
    }
Ejemplo n.º 9
0
        /// <summary>
        /// 对象添加(ljn.2013/6/14)
        /// </summary>
        /// <param name="tEnvPAir">对象</param>
        /// <returns>是否成功</returns>
        public bool Create(TEnvPointRainVo tEnvPointRain, string Number)
        {
            ArrayList     list   = new ArrayList();
            string        strSQL = string.Empty;
            List <string> values = tEnvPointRain.SelectMonths.Split(';').ToList();

            tEnvPointRain.SelectMonths = string.Empty;
            foreach (string valueTemp in values)
            {
                tEnvPointRain.ID    = GetSerialNumber(Number);
                tEnvPointRain.MONTH = valueTemp;
                strSQL = SqlHelper.BuildInsertExpress(tEnvPointRain, TEnvPointRainVo.T_ENV_POINT_RAIN_TABLE);
                list.Add(strSQL);
            }

            return(SqlHelper.ExecuteSQLByTransaction(list));
            //string strSQL = SqlHelper.BuildInsertExpress(tEnvPAir, TEnvPAirVo.T_ENV_P_AIR_TABLE);
            //return SqlHelper.ExecuteNonQuery(CommandType.Text, strSQL) > 0 ? true : false;
        }
    /// <summary>
    /// 修改数据
    /// </summary>
    /// <returns></returns>
    public string frmUpdate()
    {
        TEnvPointRainVo TEnvPointRainVo = autoBindRequest(Request, new TEnvPointRainVo());

        TEnvPointRainVo.ID     = Request["id"].ToString();
        TEnvPointRainVo.IS_DEL = "0";
        string strMsg    = "";
        bool   isSuccess = true;

        if (hidYear.Value.Trim() != TEnvPointRainVo.YEAR || hidMonth.Value.Trim() != TEnvPointRainVo.MONTH || hidValue.Value.Trim() != TEnvPointRainVo.POINT_NAME || hidValues.Value.Trim() != TEnvPointRainVo.POINT_CODE)
        {
            //验证数据是否重复
            strMsg = new CommonLogic().isExistDatas(TEnvPointRainVo.T_ENV_POINT_RAIN_TABLE, TEnvPointRainVo.YEAR, TEnvPointRainVo.MONTH, TEnvPointRainVo.POINT_NAME_FIELD, TEnvPointRainVo.POINT_NAME, TEnvPointRainVo.POINT_CODE_FIELD, TEnvPointRainVo.POINT_CODE, TEnvPointRainVo.ID_FIELD, TEnvPointRainVo.ID, 0);
            if (string.IsNullOrEmpty(strMsg))
            {
                isSuccess = true;
            }
            else
            {
                isSuccess = false;
            }
        }

        if (isSuccess)
        {
            isSuccess = new TEnvPointRainLogic().Edit(TEnvPointRainVo);
            if (isSuccess)
            {
                WriteLog("编辑降尘监测点", "", LogInfo.UserInfo.USER_NAME + "编辑降尘监测点" + TEnvPointRainVo.ID);
                strMsg = "数据更新成功";
            }
            else
            {
                strMsg = "数据更新失败";
            }
        }
        return(isSuccess == true ? "{\"result\":\"success\",\"msg\":\"" + strMsg + "\"}" : "{\"result\":\"fail\",\"msg\":\"" + strMsg + "\"}");
        //bool isSuccess = new TEnvPointRainLogic().Edit(TEnvPointRainVo);
        //if (isSuccess)
        //    WriteLog("编辑降水监测点", "", LogInfo.UserInfo.USER_NAME + "编辑降水监测点" + TEnvPointRainVo.ID);
        //return isSuccess == true ? "1" : "0";
    }
Ejemplo n.º 11
0
    /// <summary>
    /// 获取监测点信息
    /// </summary>
    /// <returns></returns>
    private string getOneGridInfo()
    {
        string strSortname  = Request.Params["sortname"];
        string strSortorder = Request.Params["sortorder"];
        //当前页面
        int intPageIndex = Convert.ToInt32(Request.Params["page"]);
        //每页记录数
        int intPageSize = Convert.ToInt32(Request.Params["pagesize"]);

        TEnvPointRainVo TEnvPointRainVo = new TEnvPointRainVo();

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

        return(strJson);
    }
Ejemplo n.º 12
0
        /// <summary>
        /// 获得查询结果总行数,用于分页
        /// </summary>
        /// <param name="tEnvPointRain">对象</param>
        /// <returns>返回行数</returns>
        public int GetSelectResultCount(TEnvPointRainVo tEnvPointRain)
        {
            string strSQL = "select Count(*) from T_ENV_P_RAIN " + this.BuildWhereStatement(tEnvPointRain);

            return(Convert.ToInt32(SqlHelper.ExecuteScalar(strSQL)));
        }
Ejemplo n.º 13
0
        /// <summary>
        /// 根据对象构造条件语句
        /// </summary>
        /// <param name="tEnvPointRain"></param>
        /// <returns></returns>
        public string BuildWhereStatement(TEnvPointRainVo tEnvPointRain)
        {
            StringBuilder strWhereStatement = new StringBuilder(" Where 1=1 ");

            if (null != tEnvPointRain)
            {
                //主键ID
                if (!String.IsNullOrEmpty(tEnvPointRain.ID.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND ID = '{0}'", tEnvPointRain.ID.ToString()));
                }
                //年度
                if (!String.IsNullOrEmpty(tEnvPointRain.YEAR.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND YEAR = '{0}'", tEnvPointRain.YEAR.ToString()));
                }
                //月份
                if (!String.IsNullOrEmpty(tEnvPointRain.MONTH.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND MONTH = '{0}'", tEnvPointRain.MONTH.ToString()));
                }
                //测站ID(字典项)
                if (!String.IsNullOrEmpty(tEnvPointRain.SATAIONS_ID.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND SATAIONS_ID = '{0}'", tEnvPointRain.SATAIONS_ID.ToString()));
                }
                //测点编号
                if (!String.IsNullOrEmpty(tEnvPointRain.POINT_CODE.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND POINT_CODE = '{0}'", tEnvPointRain.POINT_CODE.ToString()));
                }
                //测点名称
                if (!String.IsNullOrEmpty(tEnvPointRain.POINT_NAME.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND POINT_NAME = '{0}'", tEnvPointRain.POINT_NAME.ToString()));
                }
                //行政区ID(字典项)
                if (!String.IsNullOrEmpty(tEnvPointRain.AREA_ID.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND AREA_ID = '{0}'", tEnvPointRain.AREA_ID.ToString()));
                }
                //控制级别ID(字典项)
                if (!String.IsNullOrEmpty(tEnvPointRain.CONTRAL_LEVEL.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND CONTRAL_LEVEL = '{0}'", tEnvPointRain.CONTRAL_LEVEL.ToString()));
                }
                //经度(度)
                if (!String.IsNullOrEmpty(tEnvPointRain.LONGITUDE_DEGREE.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND LONGITUDE_DEGREE = '{0}'", tEnvPointRain.LONGITUDE_DEGREE.ToString()));
                }
                //经度(分)
                if (!String.IsNullOrEmpty(tEnvPointRain.LONGITUDE_MINUTE.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND LONGITUDE_MINUTE = '{0}'", tEnvPointRain.LONGITUDE_MINUTE.ToString()));
                }
                //经度(秒)
                if (!String.IsNullOrEmpty(tEnvPointRain.LONGITUDE_SECOND.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND LONGITUDE_SECOND = '{0}'", tEnvPointRain.LONGITUDE_SECOND.ToString()));
                }
                //纬度(度)
                if (!String.IsNullOrEmpty(tEnvPointRain.LATITUDE_DEGREE.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND LATITUDE_DEGREE = '{0}'", tEnvPointRain.LATITUDE_DEGREE.ToString()));
                }
                //纬度(分)
                if (!String.IsNullOrEmpty(tEnvPointRain.LATITUDE_MINUTE.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND LATITUDE_MINUTE = '{0}'", tEnvPointRain.LATITUDE_MINUTE.ToString()));
                }
                //纬度(秒)
                if (!String.IsNullOrEmpty(tEnvPointRain.LATITUDE_SECOND.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND LATITUDE_SECOND = '{0}'", tEnvPointRain.LATITUDE_SECOND.ToString()));
                }
                //具体位置
                if (!String.IsNullOrEmpty(tEnvPointRain.LOCATION.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND LOCATION = '{0}'", tEnvPointRain.LOCATION.ToString()));
                }
                //条件项
                if (!String.IsNullOrEmpty(tEnvPointRain.CONDITION_ID.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND CONDITION_ID = '{0}'", tEnvPointRain.CONDITION_ID.ToString()));
                }
                //使用状态(0为启用、1为停用)
                if (!String.IsNullOrEmpty(tEnvPointRain.IS_DEL.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND IS_DEL = '{0}'", tEnvPointRain.IS_DEL.ToString()));
                }
                //序号
                if (!String.IsNullOrEmpty(tEnvPointRain.NUM.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND NUM = '{0}'", tEnvPointRain.NUM.ToString()));
                }
                //备注1
                if (!String.IsNullOrEmpty(tEnvPointRain.REMARK1.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND REMARK1 = '{0}'", tEnvPointRain.REMARK1.ToString()));
                }
                //备注2
                if (!String.IsNullOrEmpty(tEnvPointRain.REMARK2.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND REMARK2 = '{0}'", tEnvPointRain.REMARK2.ToString()));
                }
                //备注3
                if (!String.IsNullOrEmpty(tEnvPointRain.REMARK3.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND REMARK3 = '{0}'", tEnvPointRain.REMARK3.ToString()));
                }
                //备注4
                if (!String.IsNullOrEmpty(tEnvPointRain.REMARK4.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND REMARK4 = '{0}'", tEnvPointRain.REMARK4.ToString()));
                }
                //备注5
                if (!String.IsNullOrEmpty(tEnvPointRain.REMARK5.ToString().Trim()))
                {
                    strWhereStatement.Append(string.Format(" AND REMARK5 = '{0}'", tEnvPointRain.REMARK5.ToString()));
                }
            }
            return(strWhereStatement.ToString());
        }
 /// <summary>
 /// 对象编辑
 /// </summary>
 /// <param name="tEnvPointRain">用户对象</param>
 /// <returns>是否成功</returns>
 public bool Edit(TEnvPointRainVo tEnvPointRain)
 {
     return(access.Edit(tEnvPointRain));
 }
 /// <summary>
 /// 对象添加(ljn.2013/6/14)
 /// </summary>
 /// <param name="sysRole">对象</param>
 /// <returns>是否成功</returns>
 public bool Create(TEnvPointRainVo tEnvPointRain, string Number)
 {
     return(access.Create(tEnvPointRain, Number));
 }
 /// <summary>
 /// 对象删除
 /// </summary>
 /// <param name="Id">ID</param>
 /// <returns>是否成功</returns>
 public bool Delete(TEnvPointRainVo tEnvPointRain)
 {
     return(access.Delete(tEnvPointRain));
 }
 /// <summary>
 /// 对象编辑
 /// </summary>
 /// <param name="tEnvPointRain_UpdateSet">UpdateSet用户对象</param>
 /// <param name="tEnvPointRain_UpdateWhere">UpdateWhere用户对象</param>
 /// <returns>是否成功</returns>
 public bool Edit(TEnvPointRainVo tEnvPointRain_UpdateSet, TEnvPointRainVo tEnvPointRain_UpdateWhere)
 {
     return(access.Edit(tEnvPointRain_UpdateSet, tEnvPointRain_UpdateWhere));
 }
Ejemplo n.º 18
0
        /// <summary>
        /// 根据对象特征获取单一对象
        /// </summary>
        /// <param name="tEnvPointRain">对象</param>
        /// <returns></returns>
        public TEnvPointRainVo SelectByObject(TEnvPointRainVo tEnvPointRain)
        {
            string strSQL = "select * from T_ENV_P_RAIN " + this.BuildWhereStatement(tEnvPointRain);

            return(SqlHelper.ExecuteObject(new TEnvPointRainVo(), strSQL));
        }
 /// <summary>
 /// 获取对象DataTable
 /// </summary>
 /// <param name="tEnvPointRain">对象</param>
 /// <param name="iIndex">起始页码</param>
 /// <param name="iCount">每页数目</param>
 /// <returns>返回结果</returns>
 public DataTable SelectByTable(TEnvPointRainVo tEnvPointRain, int iIndex, int iCount)
 {
     return(access.SelectByTable(tEnvPointRain, iIndex, iCount));
 }
 /// <summary>
 /// 获得查询结果总行数,用于分页
 /// </summary>
 /// <param name="tEnvPointRain">对象</param>
 /// <returns>返回行数</returns>
 public int GetSelectResultCount(TEnvPointRainVo tEnvPointRain)
 {
     return(access.GetSelectResultCount(tEnvPointRain));
 }
 public TEnvPointRainLogic(TEnvPointRainVo _tEnvPointRain)
 {
     tEnvPointRain = _tEnvPointRain;
     access        = new TEnvPointRainAccess();
 }
 /// <summary>
 /// 对象添加
 /// </summary>
 /// <param name="sysRole">对象</param>
 /// <returns>是否成功</returns>
 public bool Create(TEnvPointRainVo tEnvPointRain)
 {
     return(access.Create(tEnvPointRain));
 }
 /// <summary>
 /// 对象明细
 /// </summary>
 /// <param name="tEnvPointRain">对象条件</param>
 /// <returns>对象</returns>
 public TEnvPointRainVo Details(TEnvPointRainVo tEnvPointRain)
 {
     return(access.Details(tEnvPointRain));
 }
 /// <summary>
 /// 获取对象List
 /// </summary>
 /// <param name="tEnvPointRain">对象</param>
 /// <param name="iIndex">起始页码</param>
 /// <param name="iCount">每页数目</param>
 /// <returns>返回结果</returns>
 public List <TEnvPointRainVo> SelectByObject(TEnvPointRainVo tEnvPointRain, int iIndex, int iCount)
 {
     return(access.SelectByObject(tEnvPointRain, iIndex, iCount));
 }
Ejemplo n.º 25
0
        /// <summary>
        /// 对象明细
        /// </summary>
        /// <param name="tEnvPointRain">对象条件</param>
        /// <returns>对象</returns>
        public TEnvPointRainVo Details(TEnvPointRainVo tEnvPointRain)
        {
            string strSQL = String.Format("select * from  T_ENV_P_RAIN " + this.BuildWhereStatement(tEnvPointRain));

            return(SqlHelper.ExecuteObject(new TEnvPointRainVo(), strSQL));
        }
Ejemplo n.º 26
0
        /// <summary>
        /// 对象添加
        /// </summary>
        /// <param name="tEnvPointRain">对象</param>
        /// <returns>是否成功</returns>
        public bool Create(TEnvPointRainVo tEnvPointRain)
        {
            string strSQL = SqlHelper.BuildInsertExpress(tEnvPointRain, TEnvPointRainVo.T_ENV_POINT_RAIN_TABLE);

            return(SqlHelper.ExecuteNonQuery(CommandType.Text, strSQL) > 0 ? true : false);
        }
Ejemplo n.º 27
0
        /// <summary>
        /// 获取对象List
        /// </summary>
        /// <param name="tEnvPointRain">对象</param>
        /// <param name="iIndex">起始页码</param>
        /// <param name="iCount">每页数目</param>
        /// <returns>返回结果</returns>
        public List <TEnvPointRainVo> SelectByObject(TEnvPointRainVo tEnvPointRain, int iIndex, int iCount)
        {
            string strSQL = String.Format("select * from  T_ENV_P_RAIN " + this.BuildWhereStatement(tEnvPointRain));

            return(SqlHelper.ExecuteObjectList(tEnvPointRain, BuildPagerExpress(strSQL, iIndex, iCount)));
        }
 /// <summary>
 /// 根据对象获取全部数据,用Table承载
 ///  数据量较小时使用【不推荐】
 /// </summary>
 /// <param name="tEnvPointRain"></param>
 /// <returns></returns>
 public DataTable SelectByTable(TEnvPointRainVo tEnvPointRain)
 {
     return(access.SelectByTable(tEnvPointRain));
 }
Ejemplo n.º 29
0
        /// <summary>
        /// 根据对象获取全部数据,用Table承载
        ///  数据量较小时使用【不推荐】
        /// </summary>
        /// <param name="tEnvPointRain"></param>
        /// <returns></returns>
        public DataTable SelectByTable(TEnvPointRainVo tEnvPointRain)
        {
            string strSQL = "select * from T_ENV_P_RAIN " + this.BuildWhereStatement(tEnvPointRain);

            return(SqlHelper.ExecuteDataTable(strSQL));
        }
 /// <summary>
 /// 根据对象特征获取单一对象
 /// </summary>
 /// <param name="tEnvPointRain">对象</param>
 /// <returns></returns>
 public TEnvPointRainVo SelectByObject(TEnvPointRainVo tEnvPointRain)
 {
     return(access.SelectByObject(tEnvPointRain));
 }