/// <summary>
        /// 更新一条数据
        /// </summary>
        public bool Update(Model.CUX_IDTEXT_BK_20150731 model)
        {
            StringBuilder strSql = new StringBuilder();

            strSql.Append("update CUX_IDTEXT_BK_20150731 set ");
            strSql.Append("IDGROUP=:IDGROUP,");
            strSql.Append("ID=:ID,");
            strSql.Append("TEXT=:TEXT,");
            strSql.Append("SEQ=:SEQ");
            strSql.Append(" where ");
            OracleParameter[] parameters =
            {
                new OracleParameter(":IDGROUP", OracleType.VarChar,  20),
                new OracleParameter(":ID",      OracleType.VarChar,  70),
                new OracleParameter(":TEXT",    OracleType.VarChar, 100),
                new OracleParameter(":SEQ",     OracleType.Number, 2)
            };
            parameters[0].Value = model.IDGROUP;
            parameters[1].Value = model.ID;
            parameters[2].Value = model.TEXT;
            parameters[3].Value = model.SEQ;

            int rows = DbHelperOra.ExecuteSql(strSql.ToString(), parameters);

            if (rows > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public bool Add(Model.CUX_IDTEXT_BK_20150731 model)
        {
            StringBuilder strSql = new StringBuilder();

            strSql.Append("insert into CUX_IDTEXT_BK_20150731(");
            strSql.Append("IDGROUP,ID,TEXT,SEQ)");
            strSql.Append(" values (");
            strSql.Append(":IDGROUP,:ID,:TEXT,:SEQ)");
            OracleParameter[] parameters =
            {
                new OracleParameter(":IDGROUP", OracleType.VarChar,  20),
                new OracleParameter(":ID",      OracleType.VarChar,  70),
                new OracleParameter(":TEXT",    OracleType.VarChar, 100),
                new OracleParameter(":SEQ",     OracleType.Number, 2)
            };
            parameters[0].Value = model.IDGROUP;
            parameters[1].Value = model.ID;
            parameters[2].Value = model.TEXT;
            parameters[3].Value = model.SEQ;

            int rows = DbHelperOra.ExecuteSql(strSql.ToString(), parameters);

            if (rows > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public Model.CUX_IDTEXT_BK_20150731 GetModel()
        {
            //该表无主键信息,请自定义主键/条件字段
            StringBuilder strSql = new StringBuilder();

            strSql.Append("select IDGROUP,ID,TEXT,SEQ from CUX_IDTEXT_BK_20150731 ");
            strSql.Append(" where ");
            OracleParameter[] parameters =
            {
            };

            Model.CUX_IDTEXT_BK_20150731 model = new Model.CUX_IDTEXT_BK_20150731();
            DataSet ds = DbHelperOra.Query(strSql.ToString(), parameters);

            if (ds.Tables[0].Rows.Count > 0)
            {
                return(DataRowToModel(ds.Tables[0].Rows[0]));
            }
            else
            {
                return(null);
            }
        }
 /// <summary>
 /// 得到一个对象实体
 /// </summary>
 public Model.CUX_IDTEXT_BK_20150731 DataRowToModel(DataRow row)
 {
     Model.CUX_IDTEXT_BK_20150731 model = new Model.CUX_IDTEXT_BK_20150731();
     if (row != null)
     {
         if (row["IDGROUP"] != null)
         {
             model.IDGROUP = row["IDGROUP"].ToString();
         }
         if (row["ID"] != null)
         {
             model.ID = row["ID"].ToString();
         }
         if (row["TEXT"] != null)
         {
             model.TEXT = row["TEXT"].ToString();
         }
         if (row["SEQ"] != null && row["SEQ"].ToString() != "")
         {
             model.SEQ = decimal.Parse(row["SEQ"].ToString());
         }
     }
     return(model);
 }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Model.CUX_IDTEXT_BK_20150731 model)
 {
     return(dal.Update(model));
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(Model.CUX_IDTEXT_BK_20150731 model)
 {
     return(dal.Add(model));
 }