Ejemplo n.º 1
0
        /// <summary>
        /// 修改盗窃信息
        /// </summary>
        /// <param name="St"></param>
        /// <returns></returns>
        public int PutCP_Steal(CP_Steal St)
        {
            string sql = $"update CP_Steal set SS_Name={St.SS_Name},SS_Phone={St.SS_Phone},SS_Time={St.SS_Time} where  SS_Id={St.SS_Id}";
            int    n   = DBHelper.ExecuteNonQuery(sql);

            return(n);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 添加盗窃信息
        /// </summary>
        /// <returns></returns>
        public int PostCP_Steal(CP_Steal St)
        {
            string sql = $"insert into CP_Steal values ('{St.SS_Name}','{St.SS_Phone}','{St.SS_Time}')";
            int    n   = DBHelper.ExecuteNonQuery(sql);

            return(n);;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 修改盗窃信息
 /// </summary>
 /// <param name="St"></param>
 /// <returns></returns>
 public int PutCP_Steal(CP_Steal St)
 {
     return(dal.PutCP_Steal(St));
 }