Ejemplo n.º 1
0
 /// <summary>
 /// 主板表更新数据
 /// </summary>
 /// <param name="proje"></param>
 /// <param name="SQLCommand"></param>
 /// <returns></returns>
 public bool updateProjectorInformation_MainBoardBll(ProjectorInformation_MainBoard proje, string SQLCommand)
 {
     if (pimd.updateProjectorInformation_MainBoardDal(proje, SQLCommand) > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 主板表更新数据
        /// </summary>
        /// <param name="proje"></param>
        /// <param name="SQLCommand"></param>
        /// <returns></returns>
        public int updateProjectorInformation_MainBoardDal(ProjectorInformation_MainBoard proje, string SQLCommand)
        {
            string sql = SQLhelp.GetSQLCommand(SQLCommand);

            SqlParameter[] pms = new SqlParameter[]
            {
                new SqlParameter("@MainBoardCode", SqlDbType.VarChar, 50)
                {
                    Value = proje.MainBoardCode
                },
                new SqlParameter("@MainBoardTime", SqlDbType.DateTime)
                {
                    Value = proje.MainBoardTime
                }
            };

            return(SQLhelp.ExecuteNonQuery(sql, CommandType.Text, pms));
        }