コード例 #1
0
 /// <summary>
 /// 老化上架时间更新
 /// </summary>
 /// <param name="lhs"></param>
 /// <param name="SQLCommand"></param>
 /// <returns></returns>
 public bool updateProjectorInformation_MainTable_LHSBll(ProjectorInformation_LHS lhs, string SQLCommand)
 {
     if (pmtd.updateProjectorInformation_MainTable_LHSDal(lhs, SQLCommand) > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
コード例 #2
0
        /// <summary>
        /// 老化上架时间更新
        /// </summary>
        /// <param name="lhs"></param>
        /// <param name="SQLCommand"></param>
        /// <returns></returns>
        public int updateProjectorInformation_MainTable_LHSDal(ProjectorInformation_LHS lhs, string SQLCommand)
        {
            string sql = SQLhelp.GetSQLCommand(SQLCommand);

            SqlParameter[] pms = new SqlParameter[]
            {
                new SqlParameter("@FuselageCode", SqlDbType.VarChar, 80)
                {
                    Value = lhs.FuselageCode
                },
                new SqlParameter("@AgeingBeginTime", SqlDbType.DateTime)
                {
                    Value = lhs.AgeingBeginTime
                }
            };

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