Example #1
0
        public static int UpdateProductStepPrice(ProductStepPriceInfo entity)
        {
            DataCommand cmd = DataCommandManager.GetDataCommand("UpdateProductStepPrice");

            cmd.SetParameterValue("@SysNo", entity.SysNo);
            cmd.SetParameterValue("@BaseCount", entity.BaseCount);
            cmd.SetParameterValue("@TopCount", entity.TopCount);
            cmd.SetParameterValue("@StepPrice", entity.StepPrice);
            cmd.SetParameterValue("@EditUser", entity.InUser);
            return(cmd.ExecuteNonQuery());
        }
        public static int CreateProductStepPrice(ProductStepPriceInfo entity)
        {
            if (entity.SysNo != null)
            {
                ProductStepPriceDA.UpdateProductStepPrice(entity);
            }
            else
            {
                ProductStepPriceDA.CreateProductStepPrice(entity);
            }

            return(1);
        }
Example #3
0
 public int CreateProductStepPrice(ProductStepPriceInfo entity)
 {
     return(ProductStepPriceProcessor.CreateProductStepPrice(entity));
 }