コード例 #1
0
        public void UpdateVIPPrice(Tz888.Model.Register.SetVIPPriceModel model)
        {
            int rowsAffected;

            SqlParameter[] parameters =
            {
                new SqlParameter("@VIPPriceID",           SqlDbType.SmallInt,  2),
                new SqlParameter("@PriceCode",            SqlDbType.VarChar,  20),
                new SqlParameter("@CycleID",              SqlDbType.SmallInt,  2),
                new SqlParameter("@ManageTypeID",         SqlDbType.Char,     10),
                new SqlParameter("@Price",                SqlDbType.Float,     8),
                new SqlParameter("@PresentPoint",         SqlDbType.Float,     8),
                new SqlParameter("@PresentIntegral",      SqlDbType.Int,       4),
                new SqlParameter("@PresentExtension",     SqlDbType.Int,       4),
                new SqlParameter("@PresentCustomMessage", SqlDbType.Int,       4),
                new SqlParameter("@remark",               SqlDbType.VarChar, 200)
            };
            parameters[0].Value = model.VIPPriceID;
            parameters[1].Value = model.PriceCode;
            parameters[2].Value = model.CycleID;
            parameters[3].Value = model.ManageTypeID;
            parameters[4].Value = model.Price;
            parameters[5].Value = model.PresentPoint;
            parameters[6].Value = model.PresentIntegral;
            parameters[7].Value = model.PresentExtension;
            parameters[8].Value = model.PresentCustomMessage;
            parameters[9].Value = model.remark;

            DbHelperSQL.RunProcedure("UP_SetVIPPriceTab_Update", parameters, out rowsAffected);
        }
コード例 #2
0
 public void UpdateVIPPrice(Tz888.Model.Register.SetVIPPriceModel model)
 {
     dal.UpdateVIPPrice(model);
 }