/// <summary>
        /// 增加一条数据
        /// </summary>
        public void Add(university.Model.CCOM.View_GetExaminee model)
        {
            StringBuilder strSql = new StringBuilder();

            strSql.Append("insert into View_GetExaminee(");
            strSql.Append("UP_CCOM_number,Period_id,Agency_id,User_id,User_realname,Agency_name,UP_calculation_status");
            strSql.Append(") values (");
            strSql.Append("@UP_CCOM_number,@Period_id,@Agency_id,@User_id,@User_realname,@Agency_name,@UP_calculation_status");
            strSql.Append(") ");

            SqlParameter[] parameters =
            {
                new SqlParameter("@UP_CCOM_number",        SqlDbType.VarChar,  16),
                new SqlParameter("@Period_id",             SqlDbType.Int,       4),
                new SqlParameter("@Agency_id",             SqlDbType.Int,       4),
                new SqlParameter("@User_id",               SqlDbType.BigInt,    8),
                new SqlParameter("@User_realname",         SqlDbType.VarChar, 128),
                new SqlParameter("@Agency_name",           SqlDbType.VarChar, 128),
                new SqlParameter("@UP_calculation_status", SqlDbType.Int, 4)
            };

            parameters[0].Value = model.UP_CCOM_number;
            parameters[1].Value = model.Period_id;
            parameters[2].Value = model.Agency_id;
            parameters[3].Value = model.User_id;
            parameters[4].Value = model.User_realname;
            parameters[5].Value = model.Agency_name;
            parameters[6].Value = model.UP_calculation_status;
            DBSQL.ExecuteSql(strSql.ToString(), parameters);
        }
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public bool Update(university.Model.CCOM.View_GetExaminee model)
        {
            StringBuilder strSql = new StringBuilder();

            strSql.Append("update View_GetExaminee set ");

            strSql.Append(" UP_CCOM_number = @UP_CCOM_number , ");
            strSql.Append(" Period_id = @Period_id , ");
            strSql.Append(" Agency_id = @Agency_id , ");
            strSql.Append(" User_id = @User_id , ");
            strSql.Append(" User_realname = @User_realname , ");
            strSql.Append(" Agency_name = @Agency_name , ");
            strSql.Append(" UP_calculation_status = @UP_calculation_status  ");
            strSql.Append(" where  ");

            SqlParameter[] parameters =
            {
                new SqlParameter("@UP_CCOM_number",        SqlDbType.VarChar,  16),
                new SqlParameter("@Period_id",             SqlDbType.Int,       4),
                new SqlParameter("@Agency_id",             SqlDbType.Int,       4),
                new SqlParameter("@User_id",               SqlDbType.BigInt,    8),
                new SqlParameter("@User_realname",         SqlDbType.VarChar, 128),
                new SqlParameter("@Agency_name",           SqlDbType.VarChar, 128),
                new SqlParameter("@UP_calculation_status", SqlDbType.Int, 4)
            };

            parameters[0].Value = model.UP_CCOM_number;
            parameters[1].Value = model.Period_id;
            parameters[2].Value = model.Agency_id;
            parameters[3].Value = model.User_id;
            parameters[4].Value = model.User_realname;
            parameters[5].Value = model.Agency_name;
            parameters[6].Value = model.UP_calculation_status;
            int rows = DBSQL.ExecuteSql(strSql.ToString(), parameters);

            if (rows > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public university.Model.CCOM.View_GetExaminee GetModel()
        {
            StringBuilder strSql = new StringBuilder();

            strSql.Append("select UP_CCOM_number, Period_id, Agency_id, User_id, User_realname, Agency_name, UP_calculation_status  ");
            strSql.Append("  from View_GetExaminee ");
            strSql.Append(" where ");
            SqlParameter[] parameters =
            {
            };


            university.Model.CCOM.View_GetExaminee model = new university.Model.CCOM.View_GetExaminee();
            DataSet ds = DBSQL.Query(strSql.ToString(), parameters);

            if (ds.Tables[0].Rows.Count > 0)
            {
                model.UP_CCOM_number = ds.Tables[0].Rows[0]["UP_CCOM_number"].ToString();
                if (ds.Tables[0].Rows[0]["Period_id"].ToString() != "")
                {
                    model.Period_id = int.Parse(ds.Tables[0].Rows[0]["Period_id"].ToString());
                }
                if (ds.Tables[0].Rows[0]["Agency_id"].ToString() != "")
                {
                    model.Agency_id = int.Parse(ds.Tables[0].Rows[0]["Agency_id"].ToString());
                }
                if (ds.Tables[0].Rows[0]["User_id"].ToString() != "")
                {
                    model.User_id = long.Parse(ds.Tables[0].Rows[0]["User_id"].ToString());
                }
                model.User_realname = ds.Tables[0].Rows[0]["User_realname"].ToString();
                model.Agency_name   = ds.Tables[0].Rows[0]["Agency_name"].ToString();
                if (ds.Tables[0].Rows[0]["UP_calculation_status"].ToString() != "")
                {
                    model.UP_calculation_status = int.Parse(ds.Tables[0].Rows[0]["UP_calculation_status"].ToString());
                }

                return(model);
            }
            else
            {
                return(null);
            }
        }