示例#1
0
        public bool UpdateCustomerPrice(int CustomerId, int sPriceId, string PriceName, DateTime sSaleDate, decimal sSalePriceAdvance,
                                        double sWeightAmount, decimal sDeliveryPrice, bool IsDefault)
        {
            try
            {
                using (var context = new RubberSoftEntities())
                {
                    var query = context.spt_UpdateCustomerPrice(sPriceId, PriceName, CustomerId, sSaleDate, sSalePriceAdvance,
                                                                sWeightAmount, sDeliveryPrice, IsDefault);

                    return(true);
                }
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(ex.Message);
                return(false);
            }
        }