Пример #1
0
 internal ConstantInterval(decimal singlePoint, double value)
 {
     LowerBoundary = singlePoint;
     UpperBoundary = singlePoint;
     Value = value;
     _start = null;
 }
Пример #2
0
 internal ConstantInterval(decimal lowerBoundary, decimal upperBoundary, double value)
 {
     LowerBoundary = lowerBoundary;
     UpperBoundary = upperBoundary;
     Value = value;
     _start = null;
 }
Пример #3
0
 public ChangeOrderContract()
 {
     this.projectKey = null;
     this.number = 0;
     this.effectiveDate = DateTime.Now;
     this.contractor = null;
     this.description = string.Empty;
     this.originalConstructionCost = 0;
     this.newConstructionCost = 0;
     this.currentProject = null;
     this.changeType = null;
     this.changeTypeDirection = ChangeDirectionContract.Unchanged;
     this.previousTimeChangedTotal = null;
     this.previousAuthorizedChangeOrderAmount = null;
     this.amountChanged = 0;
     this.timeChangeDirection = ChangeDirectionContract.Unchanged;
     this.timeChanged = 0;
     this.dateOfSubstantialCompletion = null;
     this.routingItems = new List<RoutingItemContract>();
     this.status = null;
     this.agencyApprovedDate = null;
     this.dateToField = null;
     this.ownerSignatureDate = null;
     this.architectSignatureDate = null;
     this.contractorSignatureDate = null;
 }
Пример #4
0
        /// <summary>
        /// Crea una Scadenza valida
        /// </summary>
        public ScadenzaFattura(Spesa spesa, DateTime? scadenza, decimal? importo)
        {
            _spesaRiferimento = spesa;
            _scadenza = scadenza;
            _importo = importo;
            Stato = StatoSpesaEnum.Inserita;

            if (spesa != null && spesa.ImportoRitenuta != 0 && spesa.ImportoLordo != 0)
            {
                var denominatore = spesa.ImportoLordo - spesa.ImportoRitenuta.GetValueOrDefault();
                if(denominatore != 0)
                    ImportoRitenuta = (importo / denominatore) * spesa.ImportoRitenuta;
                else
                    ImportoRitenuta = spesa.ImportoRitenuta;
            }

            if (spesa != null)
            {
                var autorizzata = spesa.Autorizzata;
                if (autorizzata)
                {
                    Stato = StatoSpesaEnum.Autorizzata;
                    _importoAutorizzato = _importo;
                }

                spesa.Scadenze.Add(this);
            }
        }
Пример #5
0
 public ChangeOrder(object key, object projectKey, 
     int number) : base(key)
 {
     this.projectKey = projectKey;
     this.number = number;
     this.effectiveDate = DateTime.Now;
     this.contractor = null;
     this.description = string.Empty;
     this.changeType = null;
     this.priceChangeDirection = ChangeDirection.Unchanged;
     this.previousAuthorizedAmount = null;
     this.previousTimeChangedTotal = null;
     this.amountChanged = 0;
     this.timeChangeDirection = ChangeDirection.Unchanged;
     this.timeChanged = 0;
     this.routingItems = new List<RoutingItem>();
     this.status = null;
     this.agencyApprovedDate = null;
     this.dateToField = null;
     this.ownerSignatureDate = null;
     this.architectSignatureDate = null;
     this.contractorSignatureDate = null;
     this.numberSpecification =
         new NumberSpecification<ChangeOrder>();
     this.descriptionSpecification = new DescriptionSpecification<ChangeOrder>();
     this.ValidateInitialization();
 }
Пример #6
0
		internal MDEntry(XmlElement inc)
		{
			//TODO: NOL3 na razie nie przesyła wcale pola "UpdtAct".
			UpdateAction = MDUpdateAction.Change; //MDUpdateActionUtil.Read(inc, "UpdtAct");
			EntryType = MDEntryTypeUtil.Read(inc, "Typ");
			Instrument = FixmlInstrument.Read(inc, "Instrmt");
			if (EntryType.In(MDEntryTypes.HasPrice))
			{
				PriceStr = FixmlUtil.ReadString(inc, "Px");
				if (!(new[] { "PKC", "PCR", "PCRO" }).Contains(PriceStr))
					Price = FixmlUtil.ReadDecimal(inc, "Px");
			}
			if (EntryType.In(MDEntryTypes.HasCurrency))
				Currency = FixmlUtil.ReadString(inc, "CCy");
			if (EntryType.In(MDEntryTypes.HasSize))
				try { Size = FixmlUtil.ReadUInt(inc, "Sz"); }
				catch (FixmlException e) { e.PrintWarning(); }
			if (EntryType.In(MDEntryTypes.HasTurnover))
				Turnover = FixmlUtil.ReadDecimal(inc, "Tov", EntryType.In(MDEntryTypes.OpenClose));
			if (EntryType.In(MDEntryTypes.BasicBook))
			{
				Level = FixmlUtil.ReadUInt(inc, "MDPxLvl");
				Orders = FixmlUtil.ReadUInt(inc, "NumOfOrds");
			}
			if (EntryType == MDEntryType.Trade)
				DateTime = FixmlUtil.ReadDateTime(inc, "Dt", "Tm");
		}
Пример #7
0
 public GSM(string model, string manufacturer)
 {
     this.model = model;
     this.manufacturer = manufacturer;
     price = null;
     owner = null;
 }
 private void CalcutingAmountOfAlready(Account currentOfAccount, Account accountOfOld, decimal currentOfAmount)
 {
     this.BusyForWork(AppResources.CalculatingAmountInfoMessage);
     System.Threading.ThreadPool.QueueUserWorkItem(delegate(object callBack)
     {
         System.Func<Repayment, decimal> selector = null;
         Account account1 = currentOfAccount;
         CurrencyType newCurrency = account1.Currency;
         decimal decimal2 = 0.0M;
         if (selector == null)
         {
             selector = p => p.GetMoneyForRepayOrReceive(new CurrencyType?(newCurrency));
         }
         this.alreadyAmountInOriginalCurrency = new decimal?(this.currentObject.RepayToOrGetBackFrom.RepayToOrGetBackFromItems.ToList<Repayment>().AsEnumerable<Repayment>().Select<Repayment, decimal>(selector).Sum());
         decimal2 = currentOfAmount;
         decimal conversionRateTo = this.currentObject.BorrowLoanCurrency.GetConversionRateTo(newCurrency);
         decimal totalExchanged = conversionRateTo * this.currentObject.RepayToOrGetBackFrom.Amount;
         decimal decimal1 = conversionRateTo * decimal2;
         string symBol = account1.CurrencyTypeSymbol;
         decimal alreadyExchanged = this.alreadyAmountInOriginalCurrency.GetValueOrDefault();
         decimal rangeEnding = totalExchanged - alreadyExchanged;
         this.Dispatcher.BeginInvoke(delegate
         {
             this.TotalNeedRepayOrReceieveAmount.Text = newCurrency.GetAmountInfoWithCurrencySymbol(symBol, totalExchanged.ToMoneyF2());
             this.AlreadyRepayOrReceieveAmount.Text = newCurrency.GetAmountInfoWithCurrencySymbol(symBol, alreadyExchanged.ToMoneyF2());
             this.RangeOfThisTimeAmount.Text = "{0}1.00 ~ {1}".FormatWith(new object[] { symBol, newCurrency.GetAmountInfoWithCurrencySymbol(symBol, rangeEnding.ToMoneyF2()) });
             this.MaxAmount = totalExchanged;
             this.WorkDone();
         });
     });
 }
Пример #9
0
 public Wallet()
 {
     mRemain = 100;
     decimal? total = mStocks.Sum(s => s.DayValue * s.Quantity);
     mWorth = total ?? 0;
     mStocks = new ObservableCollection<Stock>(new List<Stock>());
 }
Пример #10
0
 public BudgetTracker(Department department)
 {
     budgetTrackerDAL = new BudgetTrackerDAL();
     budgetAmount = department.MonthlyBudget;
     //companyMonthlyBudget = GetCompanyMonthlyBudget();
     totalExpenseAmount = budgetTrackerDAL.TotalExpenseAmountByDept(department.DepartmentId);
 }
Пример #11
0
        public void AddRate(Rate newRate)
        {
            if(newRate == null)
            {
                throw new ArgumentNullException(nameof(newRate));
            }

            var roundedTime = newRate.Time.RoundDown(period);
            if(roundedTime < this.timestamp)
            {
                throw new Exception("Data stream is not advancing in time");
            }

            if(timestamp == null)
            {
                this.timestamp = roundedTime;
                this.open = newRate.MidPoint;
            }

            if(roundedTime > this.timestamp)
            {
                OnNewCandleCreated(new CandleBuilderEventArgs(CurrentCandle));
                this.timestamp = roundedTime;
                this.open = newRate.MidPoint;
            }

            this.high = newRate.MidPoint >= this.high.GetValueOrDefault(newRate.MidPoint) ? newRate.MidPoint : high;
            this.low = newRate.MidPoint <= this.low.GetValueOrDefault(newRate.MidPoint) ? newRate.MidPoint :  low;
            this.close = newRate.MidPoint;
        }
Пример #12
0
        public override void Copy(ODataObject source, JsonSerializer serializer)
        {
            if(source == null || serializer == null) return;
            base.Copy(source, serializer);

            var typedSource = source as MarketAnalytics;
            if(typedSource != null)
            {
                ConversionIndex = typedSource.ConversionIndex;
                ConversionIndex2 = typedSource.ConversionIndex2;
                LtvIndex = typedSource.LtvIndex;
                PlanValue = typedSource.PlanValue;
            }
            else
            {
                JToken token;
                if(source.TryGetProperty("ConversionIndex", out token) && token.Type != JTokenType.Null)
                {
                    ConversionIndex = (decimal?)serializer.Deserialize(token.CreateReader(), typeof(decimal?));
                }
                if(source.TryGetProperty("ConversionIndex2", out token) && token.Type != JTokenType.Null)
                {
                    ConversionIndex2 = (decimal?)serializer.Deserialize(token.CreateReader(), typeof(decimal?));
                }
                if(source.TryGetProperty("LtvIndex", out token) && token.Type != JTokenType.Null)
                {
                    LtvIndex = (decimal?)serializer.Deserialize(token.CreateReader(), typeof(decimal?));
                }
                if(source.TryGetProperty("PlanValue", out token) && token.Type != JTokenType.Null)
                {
                    PlanValue = (decimal?)serializer.Deserialize(token.CreateReader(), typeof(decimal?));
                }
            }
        }
Пример #13
0
        public CalculateFormula(string itemname, string CalculateFormulaStr, string CalculateFormulaCode, string money)
        {
            InitializeComponent();
            this.amount = (string.IsNullOrEmpty(money)) ? 0 : money.ToInt32();
            this.symbol = "";
            itemName = itemname;
            tbItemName.Text = itemname + Utility.GetResourceStr("CALFORMULA");
            if (CalculateFormulaCode == "-1") CalculateFormulaCode = string.Empty;
            txtContentCode.Text = CalculateFormulaCode;
            if (!string.IsNullOrEmpty(CalculateFormulaStr))
            {
                //coesign = false;
                //namesign = false;
                //symbolsign = true;
                txtContent.Text = CalculateFormulaStr;
            }
            else
            {
                //coesign = true;
                //namesign = true;
                //symbolsign = false;
            }
            InitPara();
            LoadTree();

            listEntityName.ItemsSource = Utility.GetSystemEntity();
            listEntityProperty.ItemsSource = Utility.GetEntityPropertyByName(Utility.GetAllEntityName().FirstOrDefault());
       
        }
Пример #14
0
Файл: GSM.cs Проект: rsmont/OOP
 public GSM(string model, string manufacturer)
 {
     this.Model = model;
     this.Manufacturer = manufacturer;
     this.price = null;
     this.owner = null;
 }
Пример #15
0
 public void DevolverJogo(DateTime dataDevolucao)
 {
     this.DataDevolucao = dataDevolucao;
     int diasDeAtraso = (int)(dataDevolucao - DataPrevistaDevolucao).TotalDays;
     int multaPorAtraso = 5 * diasDeAtraso;
     this.valoTotal = ValorInicial + multaPorAtraso;
 }
Пример #16
0
        public async Task CanGetEventStatsAsync() {
            // capture start date before generating data to make sure that our time range for stats includes all items
            var startDate = DateTime.UtcNow.SubtractDays(60);
            var  values = new decimal?[] { null, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 };
            await RemoveDataAsync();
            await CreateDataAsync(0, false);

            foreach (var value in values)
                await CreateEventsAsync(1, null, value);
            
            var fields = FieldAggregationProcessor.Process("avg:value:0,distinct:value:0,sum:value,min:value:0,max:value", false);
            Assert.True(fields.IsValid);
            Assert.Equal(5, fields.Aggregations.Count);

            var ntsr = await _stats.GetNumbersTimelineStatsAsync(fields.Aggregations, startDate, DateTime.UtcNow, null, userFilter: $"project:{TestConstants.ProjectId}");
            Assert.Equal(values.Length, ntsr.Total);
            Assert.Equal(values.Length, ntsr.Timeline.Sum(t => t.Total));
            Assert.Equal(5, ntsr.Numbers.Length);
            Assert.Equal(50, ntsr.Numbers[0]); // average
            Assert.Equal(11, ntsr.Numbers[1]); // distinct
            Assert.Equal(550, ntsr.Numbers[2]); // sum
            Assert.Equal(0, ntsr.Numbers[3]); // min
            Assert.Equal(100, ntsr.Numbers[4]); // max

            var nsr = await _stats.GetNumbersStatsAsync(fields.Aggregations, startDate, DateTime.UtcNow, null, userFilter: $"project:{TestConstants.ProjectId}");
            Assert.Equal(values.Length, nsr.Total);
            Assert.Equal(5, nsr.Numbers.Length);
            Assert.Equal(50, nsr.Numbers[0]); // average
            Assert.Equal(11, nsr.Numbers[1]); // distinct
            Assert.Equal(550, nsr.Numbers[2]); // sum
            Assert.Equal(0, nsr.Numbers[3]); // min
            Assert.Equal(100, nsr.Numbers[4]); // max
        }
Пример #17
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                string PreviousURL = Request.ServerVariables["HTTP_REFERER"] == null ? string.Empty : Request.ServerVariables["HTTP_REFERER"].ToString();
                string orderId = Request.QueryString["orderid"];
                if (string.IsNullOrEmpty(orderId))
                {
                    Response.Redirect(PreviousURL);
                    return;
                }
                else
                {
                    IDonateRecordService iRecordSec = GetBusinessInterface<IDonateRecordService>();
                    IOrderInfoService iOrderSec = GetBusinessInterface<IOrderInfoService>();
                    ORDERID = orderId;
                    OrderInfo orderModel = iOrderSec.GetModel(ORDERID);

                    this.RepGoodies.DataSource = iRecordSec.GetGoodybyOrderId(ORDERID);
                    this.RepGoodies.DataBind();

                    CurStr = orderModel.CurrencyStr;
                    PSPID = "supportyourlocals";
                    LANGUAGE = Request.Cookies["my_Language"] == null ? "en_US" : Request.Cookies["my_Language"].Value;
                    CN = orderModel.ReceiverName;
                    EMAIL = orderModel.User == null ? string.Empty : orderModel.User.EmailAddress;
                    OWNERZIP = orderModel.User == null ? string.Empty : orderModel.User.Zip;
                    OWNERADDRESS = orderModel.User == null ? string.Empty : orderModel.User.Address;
                    OWNERTOWN = orderModel.User == null ? string.Empty : orderModel.User.Town;
                    SumPrice = orderModel.TotalPrice;
                    SHASIGN = SetSHAString();
                }
            }
        }
Пример #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateOrderRequest"/> class
 /// </summary>
 /// <param name="time">The time the request was submitted</param>
 /// <param name="orderId">The order id to be updated</param>
 /// <param name="fields">The fields defining what should be updated</param>
 public UpdateOrderRequest(DateTime time, int orderId, UpdateOrderFields fields)
     : base(time, orderId, fields.Tag)
 {
     Quantity = fields.Quantity;
     LimitPrice = fields.LimitPrice;
     StopPrice = fields.StopPrice;
 }
		public void Deserialize(XmlNode node)
		{
			foreach (XmlNode childNode in node.ChildNodes)
			{
				switch (childNode.Name)
				{
					case "Statement":
						Statement = childNode.InnerText;
						break;
					case "MonthlyInvestment":
						{
							decimal temp;
							if (Decimal.TryParse(childNode.InnerText, out temp))
								MonthlyInvestment = temp;
						}
						break;
					case "TotalInvestment":
						{
							decimal temp;
							if (Decimal.TryParse(childNode.InnerText, out temp))
								TotalInvestment = temp;
						}
						break;

				}
			}
		}
 //, bool validationEnabled = false)
 public BalanceDateBankAccountItemViewModel(BalanceDateBankAccount entity)
 {
     this.entity = entity;
     if (this.entity.BalanceDateBankAccountId > 0) balanceAmount = this.entity.BalanceAmount;
     //base.ValidationHelper.Enabled = validationEnabled;
     isBalanceAmountValid = true;
 }
Пример #21
0
        public void Get(int id)
        {
            SqlParameter pId = new SqlParameter() { ParameterName = "id_contract", Value = id, DbType = DbType.Int32 };

            DataTable dt = ExecuteQueryStoredProcedure(Db.Db.Srvpl.sp, "getContract", pId);

            if (dt.Rows.Count > 0)
            {
                DataRow dr = dt.Rows[0];

                Id = (int)dr["id_contract"];
                Number = dr["number"].ToString();
                Price = GetValueDeciamlOrNull(dr["price"].ToString());
                IdServiceType = GetValueIntOrNull(dr["id_service_type"].ToString());
                IdContractType = (int)dr["id_contract_type"];
                IdContractor = (int)dr["id_contractor"];
                IdContractStatus = (int)dr["id_contract_status"];
                IdManager = (int)dr["id_manager"];
                DateBegin = GetValueDateTimeOrNull(dr["date_begin"].ToString());
                DateEnd = GetValueDateTimeOrNull(dr["date_end"].ToString());
                IdCreator = GetValueIntOrNull(dr["id_creator"].ToString());
                IdZipState = GetValueIntOrNull(dr["id_zip_state"].ToString());
                Note = dr["note"].ToString();
                IdContractProlong = GetValueIntOrNull(dr["id_contract_prolong"].ToString());
                IdPriceDiscount = GetValueIntOrNull(dr["id_price_discount"].ToString());
                PeriodReduction = GetValueBool(dr["period_reduction"].ToString());
                HandlingDevices = GetValueIntOrNull(dr["handling_devices"].ToString());
            }
        }
        public HandParserGeneralHandTests(string site, 
                                          long expectedHandId,
                                          string expectedDateOfHand,
                                          int expectedDealerButtonPosition,
                                          int expectedNumberOfPlayers,
                                          double? expectedRake,
                                          double? expectedPotSize,
                                          string handFile)
            : base(site)
        {
            _expectedHandId = expectedHandId;
            _expectedDealerButtonPosition = expectedDealerButtonPosition;
            _expectedNumberOfPlayers = expectedNumberOfPlayers;
            _handFile = handFile;
            if (expectedRake != null) _expectedRake = (decimal)expectedRake;
            if (expectedPotSize != null) _expectedPotSize = (decimal)expectedPotSize;

            try
            {
                _expectedDateTime = DateTime.Parse(expectedDateOfHand, new CultureInfo("en-US"));

                _handText = SampleHandHistoryRepository.GetGeneralHandHistoryText(PokerFormat.CashGame, Site, _handFile);
            }
            catch (Exception ex)
            {
                Assert.Fail(ex.Message);
            }
        }
Пример #23
0
 public BudgetTracker()
 {
     budgetTrackerDAL = new BudgetTrackerDAL();
     budgetAmount = 0;
     totalExpenseAmount = 0;
     totalExpenseProcessedCompany = 0;
     companyMonthlyBudget = GetCompanyMonthlyBudget();
 }
Пример #24
0
 protected void Equals(object sender, EventArgs e)
 {
     this.result.Value = FlushOperation("x");
     number = (decimal)previousArg;
     previousArg = 0;
     previousOperation = null;
     separator = false;
 }
 public void CumulativeMovingAverageNullableDecimalTest() {
     var source = new decimal?[] { 1, 2, 3, 4, null, null, 5, 6, 7, 8, 9, 10, 11, 12, 13 };
     var expected = new decimal?[] { 1, 1.5m, 2, 2.5m, 3, 3.5m, 4, 4.5m, 5, 5.5m, 6, 6.5m, 7 };
     var actual = source.CumulativeMovingAverage().ToList();
     if(IsDebugEnabled)
         log.Debug(@"expected=[{0}], actual=[{1}]", expected.CollectionToString(), actual.CollectionToString());
     Assert.IsTrue(expected.SequenceEqual(actual));
 }
Пример #26
0
 protected void Clear(object sender, EventArgs e)
 {
     number = 0;
     previousArg = 0;
     previousOperation = null;
     separator = false;
     this.result.Value = number.ToString();
 }
Пример #27
0
        public void MarkAsSold(decimal sellPrice)
        {
            if (IsSold)
                throw new ApplicationException(string.Format("Set {0} is already sold", Number));

            IsSold = true;
            SellPrice = SellPrice;
        }
Пример #28
0
 /*! When a derived result structure is defined for an instrument,
  * this method should be overridden to read from it.
  * This is mandatory in case a pricing engine is used.  */
 public virtual void fetchResults(IPricingEngineResults r)
 {
     var results = r as Results;
     if (results == null) throw new ArgumentException("no results returned from pricing engine");
     NPV = results.value;
     errorEstimateValue = results.errorEstimate;
     additionalResultsMap = results.additionalResults;
 }
		public void ReadInitialResponse()
		{
			HttpContext c = HttpContext.Current;
			sig = c.Request.QueryString["sig"];
			transactionToken = c.Request.QueryString["tx"];
			amount = decimal.Parse(c.Request.QueryString["amt"]);
			countryCode = c.Request.QueryString["cc"];
		}
 public static void CheckUnaryArithmeticNegateCheckedNullableDecimalTest(bool useInterpreter)
 {
     decimal?[] values = new decimal?[] { null, decimal.Zero, decimal.One, decimal.MinusOne, decimal.MinValue, decimal.MaxValue };
     for (int i = 0; i < values.Length; i++)
     {
         VerifyArithmeticNegateCheckedNullableDecimal(values[i], useInterpreter);
     }
 }
Пример #31
0
        public StarScannedEvent(DateTime timestamp, string name, string stellarclass, decimal solarmass, decimal radius, decimal absolutemagnitude, string luminosityclass, long age, decimal temperature, decimal distancefromarrival, decimal?orbitalperiod, decimal rotationperiod, decimal?semimajoraxis, decimal?eccentricity, decimal?orbitalinclination, decimal?periapsis, List <Ring> rings, bool dssEquipped) : base(timestamp, NAME)
        {
            this.name              = name;
            this.stellarclass      = stellarclass;
            this.solarmass         = solarmass;
            this.radius            = radius;
            this.absolutemagnitude = absolutemagnitude;
            this.luminosityclass   = luminosityclass;
            this.age                 = age;
            this.temperature         = temperature;
            this.distancefromarrival = distancefromarrival;
            this.orbitalperiod       = orbitalperiod;
            this.rotationperiod      = rotationperiod;
            this.semimajoraxis       = semimajoraxis;
            this.eccentricity        = eccentricity;
            this.orbitalinclination  = orbitalinclination;
            this.periapsis           = periapsis;
            this.rings               = rings;
            solarradius              = StarClass.solarradius(radius);
            luminosity               = StarClass.luminosity(absolutemagnitude);
            StarClass starClass = StarClass.FromName(this.stellarclass);

            if (starClass != null)
            {
                massprobability   = StarClass.sanitiseCP(starClass.stellarMassCP(solarmass));
                radiusprobability = StarClass.sanitiseCP(starClass.stellarRadiusCP(this.solarradius));
                tempprobability   = StarClass.sanitiseCP(starClass.tempCP(this.temperature));
                ageprobability    = StarClass.sanitiseCP(starClass.ageCP(this.age));
                chromaticity      = starClass.chromaticity.localizedName;
                if (radius != 0 && temperature != 0)
                {
                    // Minimum estimated single-star habitable zone (target black body temperature of 315°K / 42°C / 107°F or less)
                    estimatedhabzoneinner      = StarClass.DistanceFromStarForTemperature(maxHabitableTempKelvin, Convert.ToDouble(radius), Convert.ToDouble(temperature));
                    this.estimatedhabzoneinner = estimatedhabzoneinner;

                    // Maximum estimated single-star habitable zone (target black body temperature of 223.15°K / -50°C / -58°F or more)
                    estimatedhabzoneouter      = StarClass.DistanceFromStarForTemperature(minHabitableTempKelvin, Convert.ToDouble(radius), Convert.ToDouble(temperature));
                    this.estimatedhabzoneouter = estimatedhabzoneouter;
                }
            }
            this.estimatedvalue = estimateValue(dssEquipped);
        }
Пример #32
0
        public IResponse WatchSearch(string searchExp, int?pageNumber = null, int?pageSize = null, int?brandId = null, Movement?movement = null, decimal?minPrice = null, decimal?maxPrice = null, Condition?condition = null)
        {
            PagedResult <Models.Watch> result = new PagedResult <Models.Watch>();

            result.Data = watchBusiness.SearchWatch(searchExp, pageNumber, pageSize, brandId, movement, minPrice, maxPrice, condition, out result.Count);

            return(new Response <Models.Watch>
            {
                Result = result
            });
        }
Пример #33
0
 public CandidatoConsultable(
     int?id,
     string nombre,
     string correo,
     string telefono,
     DateTime?fechaDeNacimiento,
     string estadoCivil,
     string lugarNacimiento,
     string generalesComentarios,
     DateTime?fechaDeActualizacion,
     string compañia,
     decimal?añosDeExperiencia,
     decimal?sueldoActual,
     string motivoDeSeparacion,
     string carrera,
     string institucion,
     EstatusAcademico?estatusAcademico,
     string cursos,
     string certificaciones,
     string competenciasOHabilidades,
     string tecnologiasQueDomina,
     string softwareQueDomina,
     string nivelDeIngles,
     decimal?nivelDeInglesHablado,
     decimal?nivelDeInglesEscrito,
     decimal?nivelDeInglesLectura,
     int?solicitudPersonalFolio,
     int?puestoClave,
     string puestoNombre,
     string proyectoNombre,
     DateTime?fechaDeRecepcionCurriculum,
     DateTime?fechaDeContacto,
     DateTime?fechaPreentrevistaTelefonica,
     DateTime?fechaRecepcionSolicitudRegistro,
     string quienLoContacto,
     BolsaTrabajo?bolsa,
     string bolsaOtra,
     RolCandidato?rol,
     string rolOtro,
     decimal?expectativaEconomica,
     EstatusCandidato?estatus,
     string reclutamientoComentarios,
     string examenPsicometricoNombre,
     string examenPsicometricoResultados,
     string examenPsicometricoObservaciones,
     DateTime?examenProgramacionFecha,
     string examenProgramacionIpComputadora,
     string examenProgramacionId,
     int?examenProgramacionUmlCalificacion,
     int?examenProgramacionUmlTotalReactivos,
     int?examenProgramacionAdooCalificacion,
     int?examenProgramacionAdooTotalReactivos,
     int?examenProgramacionPooCalificacion,
     int?examenProgramacionPooTotalReactivos,
     int?examenProgramacionLogicaCalificacion,
     int?examenProgramacionLogicaTotalReactivos,
     int?examenProgramacionWebCalificacion,
     int?examenProgramacionWebTotalReactivos,
     int?examenProgramacionJavascriptCalificacion,
     int?examenProgramacionJavascriptTotalReactivos,
     int?examenProgramacionScrumCalificacion,
     int?examenProgramacionScrumTotalReactivos,
     int?examenProgramacionTecnologiaCalificacion,
     int?examenProgramacionTecnologiaTotalReactivos,
     int?examenProgramacionAciertos,
     int?examenProgramacionTotalReactivos,
     string examenProgramacionRango,
     DateTime?examenAnalistaFecha,
     string examenAnalistaIpComputadora,
     string examenAnalistaTeoricoId,
     int?examenAnalistaTeoricoAciertos,
     int?examenAnalistaTeoricoTotalReactivos,
     string examenAnalistaTeoricoRango,
     string examenAnalistaPracticoId,
     int?examenAnalistaPracticoNumeroCaso,
     int?examenAnalistaPracticoAciertos,
     int?examenAnalistaPracticoTotalReactivos,
     string examenAnalistaPracticoRango,
     DateTime?examenIngenieroPruebasFecha,
     string examenIngenieroPruebasIpComputadora,
     int?examenIngenieroPruebasTeoricoId,
     int?examenIngenieroPruebasTeoricoAciertos,
     int?examenIngenieroPruebasTeoricoTotalReactivos,
     string examenIngenieroPruebasTeoricoRango,
     int?examenIngenieroPruebasPracticoId,
     decimal?examenIngenieroPruebasPracticoCalificacion,
     int?examenIngenieroPruebasPracticoPuntos,
     string examenIngenieroPruebasPracticoRango,
     int?examenIngenieroPruebasSqlTotalReactivos,
     decimal?examenIngenieroPruebasSqlCalificacion,
     DateTime?examenAdministradorProyectoFecha,
     string examenAdministradorProyectoIpComputadora,
     int?examenAdministradorProyectoId,
     int?examenAdministradorProyectoAciertos,
     int?examenAdministradorProyectoTotalReactivos,
     string examenAdministradorProyectoRango,
     DateTime?examenPracticoSoporteBdFecha,
     int?examenPracticoSoporteBdAciertos,
     int?examenPracticoSoporteBdTotalReactivos,
     string examenPracticoSoporteBdRango,
     DateTime?entrevistaCapitalHumanoFecha,
     string entrevistaCapitalHumanoComentarios,
     DateTime?entrevistaCoordinadorYEquipoTecnicoFecha,
     string entrevistaCoordinadorYEquipoTecnicoComentarios,
     DateTime?entrevistaInglesFecha,
     string entrevistaInglesComentarios,
     DateTime?entrevistaGerenteAreaFecha,
     string entrevistaGerenteAreaComentarios,
     VeredictoFinalCandidato?veredictoFinal,
     string veredictoFinalNivelIdentificado,
     string veredictoFinalComentarios,
     DateTime?propuestaEconomicaFecha,
     PropuestaEconomicaEstatus?propuestaEconomicaEstatus,
     decimal?propuestaEconomicaSueldo,
     string propuestaEconomicaComentarios,
     DateTime?ingresoFecha,
     string ingresoTipoContrato,
     DateTime?ingresoVencimientoContratoDeterminado,
     string ingresoObservaciones,
     byte[] curriculum,
     string curriculumFileName
     )
 {
     Id                                             = id;
     Nombre                                         = nombre;
     Correo                                         = correo;
     Telefono                                       = telefono;
     FechaDeNacimiento                              = fechaDeNacimiento;
     EstadoCivil                                    = estadoCivil;
     LugarNacimiento                                = lugarNacimiento;
     GeneralesComentarios                           = generalesComentarios;
     FechaDeActualizacion                           = fechaDeActualizacion;
     Compañia                                       = compañia;
     AñosDeExperiencia                              = añosDeExperiencia;
     SueldoActual                                   = sueldoActual;
     MotivoDeSeparacion                             = motivoDeSeparacion;
     Carrera                                        = carrera;
     Institucion                                    = institucion;
     EstatusAcademico                               = estatusAcademico;
     Cursos                                         = cursos;
     Certificaciones                                = certificaciones;
     CompetenciasOHabilidades                       = competenciasOHabilidades;
     TecnologiasQueDomina                           = tecnologiasQueDomina;
     SoftwareQueDomina                              = softwareQueDomina;
     NivelDeIngles                                  = nivelDeIngles;
     NivelDeInglesHablado                           = nivelDeInglesHablado;
     NivelDeInglesEscrito                           = nivelDeInglesEscrito;
     NivelDeInglesLectura                           = nivelDeInglesLectura;
     SolicitudPersonalFolio                         = solicitudPersonalFolio;
     PuestoClave                                    = puestoClave;
     PuestoNombre                                   = puestoNombre;
     ProyectoNombre                                 = proyectoNombre;
     FechaDeRecepcionCurriculum                     = fechaDeRecepcionCurriculum;
     FechaDeContacto                                = fechaDeContacto;
     FechaPreentrevistaTelefonica                   = fechaPreentrevistaTelefonica;
     FechaRecepcionSolicitudRegistro                = fechaRecepcionSolicitudRegistro;
     QuienLoContacto                                = quienLoContacto;
     Bolsa                                          = bolsa;
     BolsaOtra                                      = bolsaOtra;
     Rol                                            = rol;
     RolOtro                                        = rolOtro;
     ExpectativaEconomica                           = expectativaEconomica;
     Estatus                                        = estatus;
     ReclutamientoComentarios                       = reclutamientoComentarios;
     ExamenPsicometricoNombre                       = examenPsicometricoNombre;
     ExamenPsicometricoResultados                   = examenPsicometricoResultados;
     ExamenPsicometricoObservaciones                = examenPsicometricoObservaciones;
     ExamenProgramacionFecha                        = examenProgramacionFecha;
     ExamenProgramacionIpComputadora                = examenProgramacionIpComputadora;
     ExamenProgramacionId                           = examenProgramacionId;
     ExamenProgramacionUmlCalificacion              = examenProgramacionUmlCalificacion;
     ExamenProgramacionUmlTotalReactivos            = examenProgramacionUmlTotalReactivos;
     ExamenProgramacionAdooCalificacion             = examenProgramacionAdooCalificacion;
     ExamenProgramacionAdooTotalReactivos           = examenProgramacionAdooTotalReactivos;
     ExamenProgramacionPooCalificacion              = examenProgramacionPooCalificacion;
     ExamenProgramacionPooTotalReactivos            = examenProgramacionPooTotalReactivos;
     ExamenProgramacionLogicaCalificacion           = examenProgramacionLogicaCalificacion;
     ExamenProgramacionLogicaTotalReactivos         = examenProgramacionLogicaTotalReactivos;
     ExamenProgramacionWebCalificacion              = examenProgramacionWebCalificacion;
     ExamenProgramacionWebTotalReactivos            = examenProgramacionWebTotalReactivos;
     ExamenProgramacionJavascriptCalificacion       = examenProgramacionJavascriptCalificacion;
     ExamenProgramacionJavascriptTotalReactivos     = examenProgramacionJavascriptTotalReactivos;
     ExamenProgramacionScrumCalificacion            = examenProgramacionScrumCalificacion;
     ExamenProgramacionScrumTotalReactivos          = examenProgramacionScrumTotalReactivos;
     ExamenProgramacionTecnologiaCalificacion       = examenProgramacionTecnologiaCalificacion;
     ExamenProgramacionTecnologiaTotalReactivos     = examenProgramacionTecnologiaTotalReactivos;
     ExamenProgramacionAciertos                     = examenProgramacionAciertos;
     ExamenProgramacionTotalReactivos               = examenProgramacionTotalReactivos;
     ExamenProgramacionRango                        = examenProgramacionRango;
     ExamenAnalistaFecha                            = examenAnalistaFecha;
     ExamenAnalistaIpComputadora                    = examenAnalistaIpComputadora;
     ExamenAnalistaTeoricoId                        = examenAnalistaTeoricoId;
     ExamenAnalistaTeoricoAciertos                  = examenAnalistaTeoricoAciertos;
     ExamenAnalistaTeoricoTotalReactivos            = examenAnalistaTeoricoTotalReactivos;
     ExamenAnalistaTeoricoRango                     = examenAnalistaTeoricoRango;
     ExamenAnalistaPracticoId                       = examenAnalistaPracticoId;
     ExamenAnalistaPracticoNumeroCaso               = examenAnalistaPracticoNumeroCaso;
     ExamenAnalistaPracticoAciertos                 = examenAnalistaPracticoAciertos;
     ExamenAnalistaPracticoTotalReactivos           = examenAnalistaPracticoTotalReactivos;
     ExamenAnalistaPracticoRango                    = examenAnalistaPracticoRango;
     ExamenIngenieroPruebasFecha                    = examenIngenieroPruebasFecha;
     ExamenIngenieroPruebasIpComputadora            = examenIngenieroPruebasIpComputadora;
     ExamenIngenieroPruebasTeoricoId                = examenIngenieroPruebasTeoricoId;
     ExamenIngenieroPruebasTeoricoAciertos          = examenIngenieroPruebasTeoricoAciertos;
     ExamenIngenieroPruebasTeoricoTotalReactivos    = examenIngenieroPruebasTeoricoTotalReactivos;
     ExamenIngenieroPruebasTeoricoRango             = examenIngenieroPruebasTeoricoRango;
     ExamenIngenieroPruebasPracticoId               = examenIngenieroPruebasPracticoId;
     ExamenIngenieroPruebasPracticoCalificacion     = examenIngenieroPruebasPracticoCalificacion;
     ExamenIngenieroPruebasPracticoPuntos           = examenIngenieroPruebasPracticoPuntos;
     ExamenIngenieroPruebasPracticoRango            = examenIngenieroPruebasPracticoRango;
     ExamenIngenieroPruebasSqlTotalReactivos        = examenIngenieroPruebasSqlTotalReactivos;
     ExamenIngenieroPruebasSqlCalificacion          = examenIngenieroPruebasSqlCalificacion;
     ExamenAdministradorProyectoFecha               = examenAdministradorProyectoFecha;
     ExamenAdministradorProyectoIpComputadora       = examenAdministradorProyectoIpComputadora;
     ExamenAdministradorProyectoId                  = examenAdministradorProyectoId;
     ExamenAdministradorProyectoAciertos            = examenAdministradorProyectoAciertos;
     ExamenAdministradorProyectoTotalReactivos      = examenAdministradorProyectoTotalReactivos;
     ExamenAdministradorProyectoRango               = examenAdministradorProyectoRango;
     ExamenPracticoSoporteBdFecha                   = examenPracticoSoporteBdFecha;
     ExamenPracticoSoporteBdAciertos                = examenPracticoSoporteBdAciertos;
     ExamenPracticoSoporteBdTotalReactivos          = examenPracticoSoporteBdTotalReactivos;
     ExamenPracticoSoporteBdRango                   = examenPracticoSoporteBdRango;
     EntrevistaCapitalHumanoFecha                   = entrevistaCapitalHumanoFecha;
     EntrevistaCapitalHumanoComentarios             = entrevistaCapitalHumanoComentarios;
     EntrevistaCoordinadorYEquipoTecnicoFecha       = entrevistaCoordinadorYEquipoTecnicoFecha;
     EntrevistaCoordinadorYEquipoTecnicoComentarios = entrevistaCoordinadorYEquipoTecnicoComentarios;
     EntrevistaInglesFecha                          = entrevistaInglesFecha;
     EntrevistaInglesComentarios                    = entrevistaInglesComentarios;
     EntrevistaGerenteAreaFecha                     = entrevistaGerenteAreaFecha;
     EntrevistaGerenteAreaComentarios               = entrevistaGerenteAreaComentarios;
     VeredictoFinal                                 = veredictoFinal;
     VeredictoFinalNivelIdentificado                = veredictoFinalNivelIdentificado;
     VeredictoFinalComentarios                      = veredictoFinalComentarios;
     PropuestaEconomicaFecha                        = propuestaEconomicaFecha;
     PropuestaEconomicaEstatus                      = propuestaEconomicaEstatus;
     PropuestaEconomicaSueldo                       = propuestaEconomicaSueldo;
     PropuestaEconomicaComentarios                  = propuestaEconomicaComentarios;
     IngresoFecha                                   = ingresoFecha;
     IngresoTipoContrato                            = ingresoTipoContrato;
     IngresoVencimientoContratoDeterminado          = ingresoVencimientoContratoDeterminado;
     IngresoObservaciones                           = ingresoObservaciones;
 }
Пример #34
0
        public decimal GetTotalGST(ApplicationDbContext db)
        {
            decimal?totalGST = GetSubtotal(db) * Convert.ToDecimal(0.15);

            return(totalGST ?? decimal.Zero);
        }
Пример #35
0
    public static IEnumerator TransferEth(string privateKey, string accountAddress, string toAddress, decimal etherAmount, decimal?gasPriceGwei, BigInteger?gas, System.Action <string, bool, string> callback)
    {
        var _transactionSignedUnityRequest = new TransactionSignedUnityRequest(_url, privateKey, accountAddress);
        var transactionInput = new TransactionInput()
        {
            To       = toAddress,
            From     = accountAddress,
            GasPrice = gasPriceGwei == null ? null : new HexBigInteger(UnitConversion.Convert.ToWei(gasPriceGwei.Value, UnitConversion.EthUnit.Gwei)),
            Value    = new HexBigInteger(UnitConversion.Convert.ToWei(etherAmount)),
            Gas      = gas == null ? null : new HexBigInteger(gas.Value)
        };

        yield return(_transactionSignedUnityRequest.SignAndSendTransaction(transactionInput));

        if (_transactionSignedUnityRequest.Exception == null)
        {
            // If we don't have exceptions we just display the result, congrats!
            UnityEngine.Debug.Log("transfer submitted: " + _transactionSignedUnityRequest.Result);
            callback(_transactionSignedUnityRequest.Result, true, toAddress);
        }
        else
        {
            // if we had an error in the UnityRequest we just display the Exception error
            UnityEngine.Debug.Log("Error submitting transfer tx: " + _transactionSignedUnityRequest.Exception.Message);
            callback(_transactionSignedUnityRequest.Exception.Message, false, toAddress);
        }
    }
Пример #36
0
        public static Item ToItem(this ProductRoot input) {
            var product = input.Product;
            var detail = input.Detail;
            var links = input.Links;
            var hierarchies = input.Hierarchy;
            var marketing = input.Marketing;
            var specifications = input.Specifications;
            var options = input.Options;
            decimal? height = null;
            decimal? width = null;
            decimal? depth = null;

            if (specifications.LabeledItems.TryFindDimensionsInSpecifications(out var dim, "dimenmet", "dimenus")) {
                if (dim != null) {
                    var dimension = dim.Value;
                    height = dimension.GetHeightInMillimeter();
                    width = dimension.GetWidthInMillimeter();
                    depth = dimension.GetDepthInMillimeter();
                }
            }

            var arr = new string[input.ProductVariants.Count + 1];
            arr[0] = "";
            for (var i = 0; i < input.ProductVariants.Count; i++) arr[i + 1] = input.ProductVariants[i].Opt;
            return new Item {
                PartnerPartNumber = input.PartnerPartNumber,
                Product = {
                    PartnerPartNumber = product.PartnerPartNumber,
                    PartNumber = product.PartNumber,
                    CategoryID = product.CategoryID,
                    CategoryName = product.CategoryName,
                    PartnerHierarchyCode = product.PartnerHierarchyCode,
                    AlternateCategoryID = input.Product.AlternateCategoryID,
                    AlternateCategoryName = product.AlternateCategoryName,
                    AlternatePartnerHierarchyCode = product.AlternatePartnerHierarchyCode,
                    Description = product.Description,
                    DescriptionLong = product.DescriptionLong ?? product.Description,
                    ChangeDate = product.ChangeDate,
                    IsEol = product.IsEol,
                    ManufacturerCode = product.ManufacturerCode,
                    ManufacturerName = product.ManufacturerName,
                    ProductCode = product.ProductCode
                },
                Detail = {
                    PartnerPartNumber = input.PartnerPartNumber,
                    Unspsc = detail.Unspsc,
                    //ProductPartnerID = detail.ProductPartnerID,
                    EndOfSupport = detail.EndOfSupport,
                    Weight = detail.Weight ??
                             specifications.LabeledItems.TryFindWeightInSpecifications("weightmet", "weightus"),
                    WeightwithPackage = detail.WeightWithPackage,
                    Volume = detail.Volume,
                    PalletSize = detail.PalletSize,
                    Width = detail.Width ?? width,
                    Height = detail.Height ?? height,
                    Depth = detail.Depth ?? depth,
                    PackQty = detail.PackQty,
                    MinimumOrderQty = detail.MinimumOrderQty,
                    IsRequireSerialNumber = detail.IsRequireSerialNumber,
                    ManufacturingCountry = detail.ManufacturingCountry,
                    CustomsStatisticsNumber = detail.CustomsStatisticsNumber,
                    ExtendedWarranty = detail.ExtendedWarranty,
                    ErpAltPartNumber = detail.ErpAltPartNumber,
                    TeleSalesFlag = detail.TeleSalesFlag,
                    ItemDefFulfillSource = detail.ItemDefFulfillSource,
                    MeterEnabled = detail.MeterEnabled,
                    SwedishChemicalTaxReduction = detail.SwedishChemicalTaxReduction,
                    WarrantyTime = detail.WarrantyTime
                },
                Link = {
                    PartnerPartNumber = input.PartnerPartNumber,
                    PdfLinkDataSheet = links.PdfLinkDataSheet,
                    PdfLinkManual = links.PdfLinkManual,
                    Images = links.SelectedImages.Select(x => new Image {
                            ContentType = x.ContentType,
                            Height = x.Height,
                            Width = x.Width,
                            Url = x.ImageUrlHttp,
                            Title = x.FullTitle
                        }
                    ).ToList()
                },
                Hierarchies = {
                    PartnerPartNumber = input.PartnerPartNumber,
                    Items = hierarchies.Select(x =>
                        new Model.Hierarchy {
                            CategoryID = x.CategoryID,
                            CategoryName = x.CategoryName,
                            Level = x.Level,
                            Name = x.Name,
                            ParentCategoryID = x.ParentCategoryID
                        }
                    ).ToList()
                },
                Marketing = {
                    PartnerPartNumber = input.PartnerPartNumber,
                    LanguageId = input.LanguageId,
                    MarketingCode = marketing.MarketingCode,
                    MarketingText = marketing.MarketingText
                },
                Specifications = {
                    PartnerPartNumber = input.PartnerPartNumber,
                    Items = specifications.LabeledItems.Select(x => new Specification {
                        GroupId = x.GroupId,
                        GroupName = x.GroupName,
                        Id = x.Id,
                        Name = x.Name,
                        Type = x.Type,
                        UnitOfMeasure = x.UnitOfMeasure,
                        Value = x.Value,
                        Label = x.Label
                    }).ToList()
                },
                Supplier = {
                    PartnerPartNumber = input.PartnerPartNumber,
                    SupplierId = product.ManufacturerCode,
                    SupplierName = product.ManufacturerName
                },
                Options = {
                    PartnerPartNumber = input.PartnerPartNumber,
                    Items = options.Items.Select(x => new Option {
                        GroupId = x.OptionGroupCode.RemoveLineEndings(),
                        GroupName = x.OptionGroupName.RemoveLineEndings(),
                        Name = x.ManufacturerCode.RemoveLineEndings(),
                        PartNumber = x.OptionPartnerPartNumber.RemoveLineEndings()
                    }).ToList()
                },
                ProductVariants = arr
            };
        }
Пример #37
0
 public GroupVolumeCommissionTierQualification(decimal minimum, decimal?maximum = null)
     : base(minimum, maximum)
 {
 }
Пример #38
0
 public static void CheckRow(this ServicesItem servicesItem, string name, decimal?price, string quantity, decimal?totalPrice, string workerName = null)
 {
     servicesItem.CardName.Text.Wait().EqualTo(name);
     servicesItem.Quantity.Text.Wait().EqualTo(quantity);
     servicesItem.Price.Value.Wait().EqualTo(price);
     servicesItem.TotalPrice.Value.Wait().EqualTo(totalPrice);
     if (workerName != null)
     {
         servicesItem.Worker.Text.Wait().EqualTo(workerName);
     }
 }
Пример #39
0
 public PRODUTONFCEEntity(int PRODUTONFCEID, int?CUPOMELETRONICOID, int?IDPRODUTO, decimal?QUANTIDADE, decimal?VALORUNITARIO, decimal?VALORTOTAL, decimal?ALICMS, decimal?BASEICMS, decimal?REDICMS, decimal?VALORICMS, decimal?ALIPI, decimal?VALORIPI, int?IDUNIDADE, int?IDCFOP, decimal?ALIQPIS, decimal?VALORPIS, decimal?ALIQCOFINS, decimal?VALORCOFINS, decimal?VLBASEST, decimal?VLICMSST, decimal?VLALIQST, decimal?VLOUTROS, decimal?VLTRIBUTOAPROX, int?ITEM)
 {
     this._PRODUTONFCEID     = PRODUTONFCEID;
     this._CUPOMELETRONICOID = CUPOMELETRONICOID;
     this._IDPRODUTO         = IDPRODUTO;
     this._QUANTIDADE        = QUANTIDADE;
     this._VALORUNITARIO     = VALORUNITARIO;
     this._VALORTOTAL        = VALORTOTAL;
     this._ALICMS            = ALICMS;
     this._BASEICMS          = BASEICMS;
     this._REDICMS           = REDICMS;
     this._VALORICMS         = VALORICMS;
     this._ALIPI             = ALIPI;
     this._VALORIPI          = VALORIPI;
     this._IDUNIDADE         = IDUNIDADE;
     this._IDCFOP            = IDCFOP;
     this._ALIQPIS           = ALIQPIS;
     this._VALORPIS          = VALORPIS;
     this._ALIQCOFINS        = ALIQCOFINS;
     this._VALORCOFINS       = VALORCOFINS;
     this._VLBASEST          = VLBASEST;
     this._VLICMSST          = VLICMSST;
     this._VLALIQST          = VLALIQST;
     this._VLOUTROS          = VLOUTROS;
     this._VLTRIBUTOAPROX    = VLTRIBUTOAPROX;
     this._ITEM = ITEM;
 }
Пример #40
0
        public async Task <ManufacturerModel> Handle(GetManufacturer request, CancellationToken cancellationToken)
        {
            var model = request.Manufacturer.ToModel(request.Language);

            if (request.Command != null && request.Command.OrderBy == null && request.Manufacturer.DefaultSort >= 0)
            {
                request.Command.OrderBy = request.Manufacturer.DefaultSort;
            }

            //view/sorting/page size
            var options = await _mediator.Send(new GetViewSortSizeOptions()
            {
                Command = request.Command,
                PagingFilteringModel           = request.Command,
                Language                       = request.Language,
                AllowCustomersToSelectPageSize = request.Manufacturer.AllowCustomersToSelectPageSize,
                PageSizeOptions                = request.Manufacturer.PageSizeOptions,
                PageSize                       = request.Manufacturer.PageSize
            });

            model.PagingFilteringContext = options.command;

            //price ranges
            await model.PagingFilteringContext.PriceRangeFilter.LoadPriceRangeFilters(request.Manufacturer.PriceRanges, _webHelper, _priceFormatter, _currencyService, request.Currency);

            var     selectedPriceRange = model.PagingFilteringContext.PriceRangeFilter.GetSelectedPriceRange(_webHelper, request.Manufacturer.PriceRanges);
            decimal?minPriceConverted  = null;
            decimal?maxPriceConverted  = null;

            if (selectedPriceRange != null)
            {
                if (selectedPriceRange.From.HasValue)
                {
                    minPriceConverted = await _currencyService.ConvertToPrimaryStoreCurrency(selectedPriceRange.From.Value, request.Currency);
                }

                if (selectedPriceRange.To.HasValue)
                {
                    maxPriceConverted = await _currencyService.ConvertToPrimaryStoreCurrency(selectedPriceRange.To.Value, request.Currency);
                }
            }

            //featured products
            if (!_catalogSettings.IgnoreFeaturedProducts)
            {
                IPagedList <Product> featuredProducts = null;

                //We cache a value indicating whether we have featured products
                string cacheKey = string.Format(ModelCacheEventConst.MANUFACTURER_HAS_FEATURED_PRODUCTS_KEY,
                                                request.Manufacturer.Id,
                                                string.Join(",", request.Customer.GetCustomerRoleIds()),
                                                request.Store.Id);
                var hasFeaturedProductsCache = await _cacheManager.GetAsync <bool?>(cacheKey, async() =>
                {
                    var featuredProducts = (await _mediator.Send(new GetSearchProductsQuery()
                    {
                        PageSize = _catalogSettings.LimitOfFeaturedProducts,
                        ManufacturerId = request.Manufacturer.Id,
                        Customer = request.Customer,
                        StoreId = request.Store.Id,
                        VisibleIndividuallyOnly = true,
                        FeaturedProducts = true
                    })).products;
                    return(featuredProducts.Any());
                });

                if (hasFeaturedProductsCache.Value && featuredProducts == null)
                {
                    //cache indicates that the manufacturer has featured products
                    //let's load them
                    featuredProducts = (await _mediator.Send(new GetSearchProductsQuery()
                    {
                        PageSize = _catalogSettings.LimitOfFeaturedProducts,
                        ManufacturerId = request.Manufacturer.Id,
                        Customer = request.Customer,
                        StoreId = request.Store.Id,
                        VisibleIndividuallyOnly = true,
                        FeaturedProducts = true
                    })).products;
                }
                if (featuredProducts != null && featuredProducts.Any())
                {
                    model.FeaturedProducts = (await _mediator.Send(new GetProductOverview()
                    {
                        Products = featuredProducts,
                    })).ToList();
                }
            }

            IList <string> alreadyFilteredSpecOptionIds = await model.PagingFilteringContext.SpecificationFilter.GetAlreadyFilteredSpecOptionIds
                                                              (_httpContextAccessor, _specificationAttributeService);

            var products = (await _mediator.Send(new GetSearchProductsQuery()
            {
                LoadFilterableSpecificationAttributeOptionIds = !_catalogSettings.IgnoreFilterableSpecAttributeOption,
                ManufacturerId = request.Manufacturer.Id,
                Customer = request.Customer,
                StoreId = request.Store.Id,
                VisibleIndividuallyOnly = true,
                FeaturedProducts = _catalogSettings.IncludeFeaturedProductsInNormalLists ? null : (bool?)false,
                PriceMin = minPriceConverted,
                PriceMax = maxPriceConverted,
                FilteredSpecs = alreadyFilteredSpecOptionIds,
                OrderBy = (ProductSortingEnum)request.Command.OrderBy,
                PageIndex = request.Command.PageNumber - 1,
                PageSize = request.Command.PageSize
            }));

            model.Products = (await _mediator.Send(new GetProductOverview()
            {
                Products = products.products,
                PrepareSpecificationAttributes = _catalogSettings.ShowSpecAttributeOnCatalogPages
            })).ToList();

            model.PagingFilteringContext.LoadPagedList(products.products);

            //specs
            await model.PagingFilteringContext.SpecificationFilter.PrepareSpecsFilters(alreadyFilteredSpecOptionIds,
                                                                                       products.filterableSpecificationAttributeOptionIds,
                                                                                       _specificationAttributeService, _webHelper, _cacheManager, request.Language.Id);

            return(model);
        }
Пример #41
0
        private void CreateEdition(string displayName, string name, decimal?monthlyPrice, decimal?annualPrice)
        {
            var edition = new SubscribableEdition
            {
                DisplayName  = displayName,
                Name         = name,
                MonthlyPrice = monthlyPrice,
                AnnualPrice  = annualPrice
            };

            _context.SubscribableEditions.Add(edition);
            _context.SaveChanges();
        }
 /// <summary>
 /// Initializes a new instance of the CashoutModel class.
 /// </summary>
 public CashoutModel(string clientPubKey = default(string), string cashoutAddress = default(string), string hotWalletAddress = default(string), string asset = default(string), decimal?amount = default(decimal?))
 {
     ClientPubKey     = clientPubKey;
     CashoutAddress   = cashoutAddress;
     HotWalletAddress = hotWalletAddress;
     Asset            = asset;
     Amount           = amount;
 }
 public override string DoOrder(CUtility.OrderType type, decimal?cost, decimal amount, ref string orderId,
                                bool marketOrder)
 {
     //we dont do orders
     throw new NotImplementedException();
 }
Пример #44
0
        public SetExpressCheckoutResponseType SetExpressCheckout(PayPalProcessPaymentRequest processPaymentRequest, IList <OrganizedShoppingCartItem> cart)
        {
            var result         = new SetExpressCheckoutResponseType();
            var store          = Services.StoreService.GetStoreById(processPaymentRequest.StoreId);
            var settings       = Services.Settings.LoadSetting <PayPalExpressPaymentSettings>(processPaymentRequest.StoreId);
            var payPalCurrency = GetApiCurrency(store.PrimaryStoreCurrency);

            var req = new SetExpressCheckoutReq
            {
                SetExpressCheckoutRequest = new SetExpressCheckoutRequestType
                {
                    Version = ApiVersion,
                    SetExpressCheckoutRequestDetails = new SetExpressCheckoutRequestDetailsType()
                }
            };

            var details = new SetExpressCheckoutRequestDetailsType
            {
                PaymentAction          = GetPaymentAction(settings),
                PaymentActionSpecified = true,
                CancelURL = Services.WebHelper.GetStoreLocation(store.SslEnabled) + "cart",
                ReturnURL = Services.WebHelper.GetStoreLocation(store.SslEnabled) + "Plugins/SmartStore.PayPal/PayPalExpress/GetDetails",
                //CallbackURL = _webHelper.GetStoreLocation(currentStore.SslEnabled) + "Plugins/SmartStore.PayPal/PayPalExpress/ShippingOptions?CustomerID=" + _workContext.CurrentCustomer.Id.ToString(),
                //CallbackTimeout = _payPalExpressPaymentSettings.CallbackTimeout.ToString()
                ReqConfirmShipping = settings.ConfirmedShipment.ToString(),
                NoShipping         = settings.NoShipmentAddress.ToString()
            };

            // populate cart
            decimal itemTotal = decimal.Zero;
            var     cartItems = new List <PaymentDetailsItemType>();

            foreach (OrganizedShoppingCartItem item in cart)
            {
                decimal shoppingCartUnitPriceWithDiscountBase = _priceCalculationService.GetUnitPrice(item, true);
                decimal shoppingCartUnitPriceWithDiscount     = _currencyService.ConvertFromPrimaryStoreCurrency(shoppingCartUnitPriceWithDiscountBase, Services.WorkContext.WorkingCurrency);
                decimal priceIncludingTier = shoppingCartUnitPriceWithDiscount;

                cartItems.Add(new PaymentDetailsItemType()
                {
                    Name     = item.Item.Product.Name,
                    Number   = item.Item.Product.Sku,
                    Quantity = item.Item.Quantity.ToString(),
                    Amount   = new BasicAmountType() // this is the per item cost
                    {
                        currencyID = payPalCurrency,
                        Value      = (priceIncludingTier).ToString("N", new CultureInfo("en-us"))
                    }
                });
                itemTotal += (item.Item.Quantity * priceIncludingTier);
            }
            ;

            // additional handling fee
            var additionalHandlingFee = GetAdditionalHandlingFee(cart);

            cartItems.Add(new PaymentDetailsItemType()
            {
                Name     = T("Plugins.Payments.PayPal.PaymentMethodFee").Text,
                Quantity = "1",
                Amount   = new BasicAmountType()
                {
                    currencyID = payPalCurrency,
                    Value      = (additionalHandlingFee).ToString("N", new CultureInfo("en-us"))
                }
            });
            itemTotal += GetAdditionalHandlingFee(cart);

            //shipping
            decimal shippingTotal = decimal.Zero;

            if (cart.RequiresShipping())
            {
                decimal?shoppingCartShippingBase = OrderTotalCalculationService.GetShoppingCartShippingTotal(cart);
                if (shoppingCartShippingBase.HasValue && shoppingCartShippingBase > 0)
                {
                    shippingTotal = _currencyService.ConvertFromPrimaryStoreCurrency(shoppingCartShippingBase.Value, Services.WorkContext.WorkingCurrency);
                }
                else
                {
                    shippingTotal = settings.DefaultShippingPrice;
                }
            }

            //This is the default if the Shipping Callback fails
            //var shippingOptions = new List<ShippingOptionType>();
            //shippingOptions.Add(new ShippingOptionType()
            //{
            //    ShippingOptionIsDefault = "true",
            //    ShippingOptionName = "Standard Shipping",
            //    ShippingOptionAmount = new BasicAmountType()
            //    {
            //        Value = shippingTotal.ToString(), //This is the default value used for shipping if the Instant Update API returns an error or does not answer within the callback time
            //        currencyID = PaypalHelper.GetPaypalCurrency(_currencyService.GetCurrencyById(_currencySettings.PrimaryStoreCurrencyId))
            //    }
            //});
            //details.FlatRateShippingOptions = shippingOptions.ToArray();
            //details.TotalType = TotalType.EstimatedTotal;

            // get total tax
            //SortedDictionary<decimal, decimal> taxRates = null;
            //decimal shoppingCartTaxBase = OrderTotalCalculationService.GetTaxTotal(cart, out taxRates);
            //decimal shoppingCartTax = _currencyService.ConvertFromPrimaryStoreCurrency(shoppingCartTaxBase, CommonServices.WorkContext.WorkingCurrency);

            // discount
            decimal discount = -processPaymentRequest.Discount;

            if (discount != 0)
            {
                cartItems.Add(new PaymentDetailsItemType()
                {
                    Name     = T("Plugins.Payments.PayPal.ThreadrockDiscount").Text,
                    Quantity = "1",
                    Amount   = new BasicAmountType() // this is the total discount
                    {
                        currencyID = payPalCurrency,
                        Value      = discount.ToString("N", new CultureInfo("en-us"))
                    }
                });

                itemTotal += discount;
            }

            // get customer
            int customerId = Convert.ToInt32(Services.WorkContext.CurrentCustomer.Id.ToString());
            var customer   = _customerService.GetCustomerById(customerId);

            if (!cart.IsRecurring())
            {
                //we don't apply gift cards for recurring products
                var giftCards = _giftCardService.GetActiveGiftCardsAppliedByCustomer(customer);
                if (giftCards != null)
                {
                    foreach (var gc in giftCards)
                    {
                        if (itemTotal > decimal.Zero)
                        {
                            decimal remainingAmount = gc.GetGiftCardRemainingAmount();
                            decimal amountCanBeUsed = decimal.Zero;
                            if (itemTotal > remainingAmount)
                            {
                                amountCanBeUsed = remainingAmount;
                            }
                            else
                            {
                                amountCanBeUsed = itemTotal - .01M;
                            }

                            decimal amountToSubtract = -amountCanBeUsed;

                            cartItems.Add(new PaymentDetailsItemType()
                            {
                                Name     = T("Plugins.Payments.PayPal.GiftcardApplied").Text,
                                Quantity = "1",
                                Amount   = new BasicAmountType()
                                {
                                    currencyID = payPalCurrency,
                                    Value      = amountToSubtract.ToString("N", new CultureInfo("en-us"))
                                }
                            });

                            //reduce subtotal
                            itemTotal += amountToSubtract;
                        }
                    }
                }
            }

            // populate payment details
            var paymentDetails = new PaymentDetailsType
            {
                ItemTotal = new BasicAmountType
                {
                    Value      = Math.Round(itemTotal, 2).ToString("N", new CultureInfo("en-us")),
                    currencyID = payPalCurrency
                },
                ShippingTotal = new BasicAmountType
                {
                    Value      = Math.Round(shippingTotal, 2).ToString("N", new CultureInfo("en-us")),
                    currencyID = payPalCurrency
                },
                //TaxTotal = new BasicAmountType
                //{
                //    Value = Math.Round(shoppingCartTax, 2).ToString("N", new CultureInfo("en-us")),
                //    currencyID = PayPalHelper.GetPaypalCurrency(_currencyService.GetCurrencyById(_currencySettings.PrimaryStoreCurrencyId))
                //},
                OrderTotal = new BasicAmountType
                {
                    Value      = Math.Round(itemTotal + shippingTotal, 2).ToString("N", new CultureInfo("en-us")),
                    currencyID = payPalCurrency
                },
                Custom             = processPaymentRequest.OrderGuid.ToString(),
                ButtonSource       = SmartStoreVersion.CurrentFullVersion,
                PaymentAction      = GetPaymentAction(settings),
                PaymentDetailsItem = cartItems.ToArray()
            };

            details.PaymentDetails = new[] { paymentDetails };

            details.ShippingMethodSpecified = true;

            req.SetExpressCheckoutRequest.SetExpressCheckoutRequestDetails.Custom = processPaymentRequest.OrderGuid.ToString();
            req.SetExpressCheckoutRequest.SetExpressCheckoutRequestDetails        = details;

            using (var service = GetApiAaService(settings))
            {
                result = service.SetExpressCheckout(req);
            }

            _httpContext.GetCheckoutState().CustomProperties.Add("PayPalExpressButtonUsed", true);
            return(result);
        }
Пример #45
0
        public decimal GetGrandTotal(ApplicationDbContext db)
        {
            decimal?totalAmount = GetSubtotal(db) * Convert.ToDecimal(1.15);

            return(totalAmount ?? decimal.Zero);
        }
        public long Add(DebtDealRow deal)
        {
            /*
             *     *** Notes on parallel execution ***
             *
             * If two debt deals have 4 unique involved people id-s,
             * these same deals may be processed in parallel in this register
             * (but may need serialization while other registers handle
             * DebtDealAdded event).
             *
             * Need to consider validity of initialGiverDebtToTaker.
             *
             * Other cases:
             *  three unique involved id-s:
             *      same giver, different takers: => parallel-ok
             *
             *      different givers, same taker: => parallel-ok
             *
             *  two unique involved id-s:
             *      same giver, same taker => serialize (case a)
             *
             *      D1.giver = D2.taker, D1.taker = D2.giver
             *          => serialize (case b)
             *
             *
             * Here, parallel execution has to be serialized when register
             * has not finished processing two deals which match one of these:
             *     a) if giver and taker are the same for two deals,
             *        later deal must wait till earlier one is fully processed.
             *        (consider small and complete pay-back immediately
             *         followed by a big credit - if D1 is processed after D2
             *         was fully processed, big credit could be considered
             *         as mostly a GIFT, confusing it with a payback)
             *
             *     b) if D1.giver = D2.taker, D1.taker = D2.giver
             *        (consider pay and repay of the same amount -
             *         in case of parallel execution of both deals,
             *         payback could be missed and DB would get corrupt)
             */

            long addedDebtDealId;

            using (var transaction = this.dbc.Database.BeginTransaction()) {
                this.dbc.DebtDeals.Add(deal);
                this.dbc.SaveChanges(); // need deal.Id
                addedDebtDealId = deal.Id;

                decimal initialGiverDebtToTaker = GiverDebtToTaker();
                decimal?repayGiftAmount         = null;
                if (initialGiverDebtToTaker > 0m)
                {
                    repayGiftAmount
                        = Math.Max(0m,
                                   deal.Amount - initialGiverDebtToTaker);
                }

                var analysisRow = new DebtDealAnalysisRow()
                {
                    DebtDealId = deal.Id,
                    IsPayback  = initialGiverDebtToTaker > 0m
                };
                this.dbc.DebtDealsAnalysis.Add(analysisRow);
                this.dbc.SaveChanges();

                DebtDealReceived?.Invoke(this,
                                         new DebtDealReceivedEventData()
                {
                    Deal            = deal,
                    Analysis        = analysisRow,
                    RepayGiftAmount = repayGiftAmount
                });

                transaction.Commit();
            }

            DebtDealAdded?.Invoke(this,
                                  new DebtDealAddedEventData()
            {
                AddedDebtDealId = addedDebtDealId
            });

            return(addedDebtDealId);

            decimal GiverDebtToTaker()
            {
                return(this.dbc.CurrentDebts.Where(cd =>
                                                   cd.CreditorId == deal.TakerId &&
                                                   cd.DebtorId == deal.GiverId
                                                   ).Select(cd => cd.DebtTotal).FirstOrDefault());
            }
        }
Пример #47
0
        private void AdicionaFormaPagamento(int x, int larguraLinhaMargemDireita, Graphics g, FormaPagamento?formaPagamento, decimal?vPag)
        {
            AdicionarTexto textoFormaPagamento = new AdicionarTexto(g, ObtemDescricao(formaPagamento), 7);

            textoFormaPagamento.Desenhar(x, _y);

            AdicionarTexto textoValorFormaPagamento  = new AdicionarTexto(g, vPag.Value.ToString("N2"), 7);
            int            textoValorFormaPagamentoX = (larguraLinhaMargemDireita - textoValorFormaPagamento.Medida.Largura);

            textoValorFormaPagamento.Desenhar(textoValorFormaPagamentoX, _y);

            _y += textoFormaPagamento.Medida.Altura;
        }
    private async Task <IActionResult> UpdateManualCriticScore(Guid publisherID, Guid publisherGameID, decimal?manualCriticScore)
    {
        var leagueYearPublisherGameRecord = await GetExistingLeagueYearAndPublisherGame(publisherID, publisherGameID, ActionProcessingModeBehavior.Ban, RequiredRelationship.LeagueManager, RequiredYearStatus.YearNotFinishedDraftFinished);

        if (leagueYearPublisherGameRecord.FailedResult is not null)
        {
            return(leagueYearPublisherGameRecord.FailedResult);
        }
        var validResult   = leagueYearPublisherGameRecord.ValidResult !;
        var leagueYear    = validResult.LeagueYear;
        var publisherGame = validResult.PublisherGame;

        await _fantasyCriticService.ManuallyScoreGame(publisherGame, manualCriticScore);

        await _fantasyCriticService.UpdatePublisherGameCalculatedStats(leagueYear);

        return(Ok());
    }
 /// <summary>Часть. Получение нормы по возрасту</summary>
 public string f_GetPartNormValue(Cl_User.E_Sex a_Sex, byte a_Age, out decimal?a_Min, out decimal?a_Max)
 {
     a_Min = null;
     a_Max = null;
     if (p_IsPartNorm)
     {
         a_Max = p_PartNorm;
         return(p_PartNorm.ToString());
     }
     else if (p_IsPartNormRange && p_PartAgeNorms != null && p_PartAgeNorms.Count > 0)
     {
         Cl_AgeNorm ageNorm = p_PartAgeNorms.FirstOrDefault(a => a.p_AgeFrom <= a_Age && a.p_AgeTo >= a_Age);
         if (ageNorm != null)
         {
             a_Min = ageNorm.f_GetMin(a_Sex, p_NumberRound);
             a_Max = ageNorm.f_GetMax(a_Sex, p_NumberRound);
             return(string.Format("{0} - {1}", a_Min, a_Max));
         }
     }
     return("");
 }
 protected void AddConditionAndParam(ref string query, string fieldName, string parameterName, decimal?parameterValue, ParamSet ps)
 {
     if (parameterValue.HasValue)
     {
         query += string.Format(CultureInfo.InvariantCulture, " AND {0} = $P<{1}> ", fieldName, parameterName);
         ps.AddParam(parameterName, DbType.Decimal, parameterValue.Value);
     }
 }
Пример #51
0
        }//点击事件

        private bool ValidateConverts(string productname, bool skuEnabled, out int displaySequence, out decimal salePrice, out decimal?costPrice, out decimal?marketPrice, out int stock, out decimal?weight, out int showSaleCounts, out decimal firstCommission, out decimal secondCommission, out decimal thirdCommission, out decimal cubicMeter, out decimal freightWeight)
        {
            string text = string.Empty;

            if (string.IsNullOrEmpty(productname))
            {
                text += Formatter.FormatErrorMessage("请输入商品名称");
            }
            if (!int.TryParse(this.txtShowSaleCounts.Text.Trim(), out showSaleCounts))
            {
                showSaleCounts = 0;
            }
            costPrice       = null;
            marketPrice     = null;
            weight          = null;
            displaySequence = (stock = 0);
            salePrice       = 0m;
            if (string.IsNullOrEmpty(this.txtDisplaySequence.Text) || !int.TryParse(this.txtDisplaySequence.Text, out displaySequence))
            {
                text += Formatter.FormatErrorMessage("请正确填写商品排序");
            }
            decimal num;

            if (decimal.TryParse(this.txtMarketPrice.Text, out num))
            {
                marketPrice = new decimal?(num);
            }
            else
            {
                text += Formatter.FormatErrorMessage("请正确填写商品原价");
            }
            if (!skuEnabled)
            {
                if (string.IsNullOrEmpty(this.txtSalePrice.Text) || !decimal.TryParse(this.txtSalePrice.Text, out salePrice))
                {
                    text += Formatter.FormatErrorMessage("请正确填写商品现价");
                }
                if (!string.IsNullOrEmpty(this.txtCostPrice.Text))
                {
                    decimal value;
                    if (decimal.TryParse(this.txtCostPrice.Text, out value))
                    {
                        costPrice = new decimal?(value);
                    }
                    else
                    {
                        text += Formatter.FormatErrorMessage("请正确填写商品的成本价");
                    }
                }
                if (string.IsNullOrEmpty(this.txtStock.Text) || !int.TryParse(this.txtStock.Text, out stock))
                {
                    text += Formatter.FormatErrorMessage("请正确填写商品库存");
                }
                if (!string.IsNullOrEmpty(this.txtWeight.Text))
                {
                    decimal value2;
                    if (decimal.TryParse(this.txtWeight.Text, out value2))
                    {
                        weight = new decimal?(value2);
                    }
                    else
                    {
                        text += Formatter.FormatErrorMessage("请正确填写商品的重量");
                    }
                }
            }
            else if (!string.IsNullOrEmpty(this.txtSalePrice.Text))
            {
                if (decimal.TryParse(this.txtMarketPrice.Text, out num))
                {
                    salePrice = num;
                }
                else
                {
                    text += Formatter.FormatErrorMessage("请正确填写商品现价");
                }
            }
            if (this.txtThirdCommission.Text.Trim() == "")
            {
                thirdCommission = 0m;
            }
            else if (decimal.TryParse(this.txtThirdCommission.Text, out num))
            {
                thirdCommission = num;
            }
            else
            {
                thirdCommission = 0m;
                text           += Formatter.FormatErrorMessage("请正确填写上二级佣金比例");
            }
            if (this.txtSecondCommission.Text.Trim() == "")
            {
                secondCommission = 0m;
            }
            else if (decimal.TryParse(this.txtSecondCommission.Text, out num))
            {
                secondCommission = num;
            }
            else
            {
                secondCommission = 0m;
                text            += Formatter.FormatErrorMessage("请正确填写上一级佣金比例");
            }
            if (this.txtFirstCommission.Text.Trim() == "")
            {
                firstCommission = 0m;
            }
            else if (decimal.TryParse(this.txtFirstCommission.Text, out num))
            {
                firstCommission = num;
            }
            else
            {
                firstCommission = 0m;
                text           += Formatter.FormatErrorMessage("请正确填写成交店铺佣金比例");
            }
            if (decimal.TryParse(this.txtCubicMeter.Text, out num))
            {
                cubicMeter = num;
            }
            else
            {
                cubicMeter = 0m;
            }
            if (decimal.TryParse(this.txtFreightWeight.Text, out num))
            {
                freightWeight = num;
            }
            else
            {
                freightWeight = 0m;
            }
            if (this.rbtIsSetTemplate.Checked && this.FreightTemplateDownList1.SelectedValue < 1)
            {
                text += Formatter.FormatErrorMessage("请选择运费模版");
            }
            if (!string.IsNullOrEmpty(text))
            {
                this.ShowMsg(text, false);
                return(false);
            }
            return(true);
        }
Пример #52
0
 /// <summary>
 /// Initializes a new instance of the MicrosoftDynamicsCRMactivityparty
 /// class.
 /// </summary>
 /// <param name="donotemail">Information about whether to allow sending
 /// email to the activity party.</param>
 /// <param name="scheduledend">Scheduled end time of the
 /// activity.</param>
 /// <param name="_partyidValue">Unique identifier of the party
 /// associated with the activity.</param>
 /// <param name="_activityidValue">Unique identifier of the activity
 /// associated with the activity party. (A "party" is any person who is
 /// associated with an activity.)</param>
 /// <param name="exchangeentryid">For internal use only.</param>
 /// <param name="activitypartyid">Unique identifier of the activity
 /// party.</param>
 /// <param name="donotpostalmail">Information about whether to allow
 /// sending postal mail to the lead.</param>
 /// <param name="participationtypemask">Role of the person in the
 /// activity, such as sender, to, cc, bcc, required, optional,
 /// organizer, regarding, or owner.</param>
 /// <param name="scheduledstart">Scheduled start time of the
 /// activity.</param>
 /// <param name="_owneridValue">Unique identifier of the user or team
 /// who owns the activity_party.</param>
 /// <param name="effort">Amount of effort used by the resource in a
 /// service appointment activity.</param>
 /// <param name="instancetypecode">Type of instance of a recurring
 /// series.</param>
 /// <param name="donotphone">Information about whether to allow phone
 /// calls to the lead.</param>
 /// <param name="ispartydeleted">Information about whether the
 /// underlying entity record is deleted.</param>
 /// <param name="addressusedemailcolumnnumber">Email address column
 /// number from associated party.</param>
 /// <param name="donotfax">Information about whether to allow sending
 /// faxes to the activity party.</param>
 /// <param name="addressused">Email address to which an email is
 /// delivered, and which is associated with the target entity.</param>
 /// <param name="_resourcespecidValue">Unique identifier of the
 /// resource specification for the activity party.</param>
 public MicrosoftDynamicsCRMactivityparty(bool?donotemail = default(bool?), System.DateTimeOffset?scheduledend = default(System.DateTimeOffset?), string _partyidValue = default(string), string _activityidValue = default(string), string exchangeentryid = default(string), string activitypartyid = default(string), bool?donotpostalmail = default(bool?), string versionnumber = default(string), int?participationtypemask = default(int?), System.DateTimeOffset?scheduledstart = default(System.DateTimeOffset?), string _owneridValue = default(string), decimal?effort = default(decimal?), int?instancetypecode = default(int?), bool?donotphone = default(bool?), bool?ispartydeleted = default(bool?), int?addressusedemailcolumnnumber = default(int?), bool?donotfax = default(bool?), string addressused = default(string), string _resourcespecidValue = default(string), MicrosoftDynamicsCRMcampaignactivity partyidCampaignactivity = default(MicrosoftDynamicsCRMcampaignactivity), MicrosoftDynamicsCRMincident partyidIncident = default(MicrosoftDynamicsCRMincident), MicrosoftDynamicsCRMserviceappointment activityidServiceappointment = default(MicrosoftDynamicsCRMserviceappointment), IList <MicrosoftDynamicsCRMsyncerror> activityPartySyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), MicrosoftDynamicsCRMrecurringappointmentmaster activityidRecurringappointmentmaster = default(MicrosoftDynamicsCRMrecurringappointmentmaster), MicrosoftDynamicsCRMinvoice partyidInvoice = default(MicrosoftDynamicsCRMinvoice), MicrosoftDynamicsCRMcontract partyidContract = default(MicrosoftDynamicsCRMcontract), MicrosoftDynamicsCRMcampaignactivity activityidCampaignactivity = default(MicrosoftDynamicsCRMcampaignactivity), MicrosoftDynamicsCRMsocialactivity activityidSocialactivity = default(MicrosoftDynamicsCRMsocialactivity), MicrosoftDynamicsCRMappointment activityidAppointment = default(MicrosoftDynamicsCRMappointment), MicrosoftDynamicsCRMqueue partyidQueue = default(MicrosoftDynamicsCRMqueue), MicrosoftDynamicsCRMsystemuser partyidSystemuser = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMfax activityidFax = default(MicrosoftDynamicsCRMfax), MicrosoftDynamicsCRMsalesorder partyidSalesorder = default(MicrosoftDynamicsCRMsalesorder), MicrosoftDynamicsCRMphonecall activityidPhonecall = default(MicrosoftDynamicsCRMphonecall), MicrosoftDynamicsCRMtask activityidTask = default(MicrosoftDynamicsCRMtask), MicrosoftDynamicsCRMcampaignresponse activityidCampaignresponse = default(MicrosoftDynamicsCRMcampaignresponse), MicrosoftDynamicsCRMquoteclose activityidQuoteclose = default(MicrosoftDynamicsCRMquoteclose), MicrosoftDynamicsCRMresourcespec resourcespecid = default(MicrosoftDynamicsCRMresourcespec), MicrosoftDynamicsCRMletter activityidLetter = default(MicrosoftDynamicsCRMletter), MicrosoftDynamicsCRMorderclose activityidOrderclose = default(MicrosoftDynamicsCRMorderclose), MicrosoftDynamicsCRMbulkoperation partyidBulkoperation = default(MicrosoftDynamicsCRMbulkoperation), MicrosoftDynamicsCRMquote partyidQuote = default(MicrosoftDynamicsCRMquote), MicrosoftDynamicsCRMemail activityidEmail = default(MicrosoftDynamicsCRMemail), MicrosoftDynamicsCRMknowledgearticle partyidKnowledgearticle = default(MicrosoftDynamicsCRMknowledgearticle), MicrosoftDynamicsCRMlead partyidLead = default(MicrosoftDynamicsCRMlead), MicrosoftDynamicsCRMopportunityclose activityidOpportunityclose = default(MicrosoftDynamicsCRMopportunityclose), MicrosoftDynamicsCRMequipment partyidEquipment = default(MicrosoftDynamicsCRMequipment), MicrosoftDynamicsCRMopportunity partyidOpportunity = default(MicrosoftDynamicsCRMopportunity), MicrosoftDynamicsCRMcampaign partyidCampaign = default(MicrosoftDynamicsCRMcampaign), MicrosoftDynamicsCRMaccount partyidAccount = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMincidentresolution activityidIncidentresolution = default(MicrosoftDynamicsCRMincidentresolution), MicrosoftDynamicsCRMactivitypointer activityidActivitypointer = default(MicrosoftDynamicsCRMactivitypointer), MicrosoftDynamicsCRMcontact partyidContact = default(MicrosoftDynamicsCRMcontact), MicrosoftDynamicsCRMabsScheduledprocessexecution activityidAbsScheduledprocessexecutionActivityparty = default(MicrosoftDynamicsCRMabsScheduledprocessexecution), MicrosoftDynamicsCRMadoxioApplication partyidAdoxioApplication = default(MicrosoftDynamicsCRMadoxioApplication), MicrosoftDynamicsCRMadoxioLicences partyidAdoxioLicences = default(MicrosoftDynamicsCRMadoxioLicences))
 {
     Donotemail            = donotemail;
     Scheduledend          = scheduledend;
     this._partyidValue    = _partyidValue;
     this._activityidValue = _activityidValue;
     Exchangeentryid       = exchangeentryid;
     Activitypartyid       = activitypartyid;
     Donotpostalmail       = donotpostalmail;
     Versionnumber         = versionnumber;
     Participationtypemask = participationtypemask;
     Scheduledstart        = scheduledstart;
     this._owneridValue    = _owneridValue;
     Effort                               = effort;
     Instancetypecode                     = instancetypecode;
     Donotphone                           = donotphone;
     Ispartydeleted                       = ispartydeleted;
     Addressusedemailcolumnnumber         = addressusedemailcolumnnumber;
     Donotfax                             = donotfax;
     Addressused                          = addressused;
     this._resourcespecidValue            = _resourcespecidValue;
     PartyidCampaignactivity              = partyidCampaignactivity;
     PartyidIncident                      = partyidIncident;
     ActivityidServiceappointment         = activityidServiceappointment;
     ActivityPartySyncErrors              = activityPartySyncErrors;
     ActivityidRecurringappointmentmaster = activityidRecurringappointmentmaster;
     PartyidInvoice                       = partyidInvoice;
     PartyidContract                      = partyidContract;
     ActivityidCampaignactivity           = activityidCampaignactivity;
     ActivityidSocialactivity             = activityidSocialactivity;
     ActivityidAppointment                = activityidAppointment;
     PartyidQueue                         = partyidQueue;
     PartyidSystemuser                    = partyidSystemuser;
     ActivityidFax                        = activityidFax;
     PartyidSalesorder                    = partyidSalesorder;
     ActivityidPhonecall                  = activityidPhonecall;
     ActivityidTask                       = activityidTask;
     ActivityidCampaignresponse           = activityidCampaignresponse;
     ActivityidQuoteclose                 = activityidQuoteclose;
     Resourcespecid                       = resourcespecid;
     ActivityidLetter                     = activityidLetter;
     ActivityidOrderclose                 = activityidOrderclose;
     PartyidBulkoperation                 = partyidBulkoperation;
     PartyidQuote                         = partyidQuote;
     ActivityidEmail                      = activityidEmail;
     PartyidKnowledgearticle              = partyidKnowledgearticle;
     PartyidLead                          = partyidLead;
     ActivityidOpportunityclose           = activityidOpportunityclose;
     PartyidEquipment                     = partyidEquipment;
     PartyidOpportunity                   = partyidOpportunity;
     PartyidCampaign                      = partyidCampaign;
     PartyidAccount                       = partyidAccount;
     ActivityidIncidentresolution         = activityidIncidentresolution;
     ActivityidActivitypointer            = activityidActivitypointer;
     PartyidContact                       = partyidContact;
     ActivityidAbsScheduledprocessexecutionActivityparty = activityidAbsScheduledprocessexecutionActivityparty;
     PartyidAdoxioApplication = partyidAdoxioApplication;
     PartyidAdoxioLicences    = partyidAdoxioLicences;
     CustomInit();
 }
        public void Insert(int?Sexo, int?Edad, decimal?SD4neg, decimal?SD3neg, decimal?SD2neg, decimal?SD1neg, decimal?SD0, decimal?SD1, decimal?SD2, decimal?SD3, decimal?SD4)
        {
            AprZScoreIMCEdad item = new AprZScoreIMCEdad();

            item.Sexo = Sexo;

            item.Edad = Edad;

            item.SD4neg = SD4neg;

            item.SD3neg = SD3neg;

            item.SD2neg = SD2neg;

            item.SD1neg = SD1neg;

            item.SD0 = SD0;

            item.SD1 = SD1;

            item.SD2 = SD2;

            item.SD3 = SD3;

            item.SD4 = SD4;


            item.Save(UserName);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="FundTransaction" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Type">Type (required).</param>
 /// <param name="Amount">Amount (required).</param>
 /// <param name="Description">Description.</param>
 /// <param name="Status">Status.</param>
 /// <param name="StatusReason">StatusReason.</param>
 /// <param name="Note">Note.</param>
 /// <param name="CreditCardId">CreditCardId.</param>
 /// <param name="ExternalId">ExternalId.</param>
 /// <param name="Created">Created.</param>
 /// <param name="Updated">Updated.</param>
 /// <param name="WorkOrder">WorkOrder.</param>
 /// <param name="CreditCard">CreditCard.</param>
 /// <param name="Bank">Bank.</param>
 /// <param name="BillingAddress">BillingAddress.</param>
 public FundTransaction(int?Id = default(int?), TypeEnum?Type = default(TypeEnum?), decimal?Amount = default(decimal?), string Description = default(string), StatusEnum?Status = default(StatusEnum?), string StatusReason = default(string), string Note = default(string), string CreditCardId = default(string), string ExternalId = default(string), DateTime?Created = default(DateTime?), DateTime?Updated = default(DateTime?), WorkOrder WorkOrder = default(WorkOrder), CreditCard CreditCard = default(CreditCard), Bank Bank = default(Bank), BillingAddress BillingAddress = default(BillingAddress))
 {
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for FundTransaction and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     // to ensure "Amount" is required (not null)
     if (Amount == null)
     {
         throw new InvalidDataException("Amount is a required property for FundTransaction and cannot be null");
     }
     else
     {
         this.Amount = Amount;
     }
     this.Id             = Id;
     this.Description    = Description;
     this.Status         = Status;
     this.StatusReason   = StatusReason;
     this.Note           = Note;
     this.CreditCardId   = CreditCardId;
     this.ExternalId     = ExternalId;
     this.Created        = Created;
     this.Updated        = Updated;
     this.WorkOrder      = WorkOrder;
     this.CreditCard     = CreditCard;
     this.Bank           = Bank;
     this.BillingAddress = BillingAddress;
 }
Пример #55
0
        /// <summary>
        /// Updates a record, can be used with the Object Data Source
        /// </summary>
        public static void Update(int varIdCategoriaPrestacion, string varTema, string varCategoria, string varCodigo, string varCategoriaPadre, int?varIdNomencladorDetalle, decimal?varPrecio, string varNeo, string varCeroacinco, int varIdGrupoPrestacion, string varSeisanueve, string varAdol, string varAdulto, string varF, string varM, int?varDiasUti, int?varDiasSala, int?varDiasTotal, int?varDiasMax)
        {
            PnGrupoPrestacion item = new PnGrupoPrestacion();

            item.IdCategoriaPrestacion = varIdCategoriaPrestacion;

            item.Tema = varTema;

            item.Categoria = varCategoria;

            item.Codigo = varCodigo;

            item.CategoriaPadre = varCategoriaPadre;

            item.IdNomencladorDetalle = varIdNomencladorDetalle;

            item.Precio = varPrecio;

            item.Neo = varNeo;

            item.Ceroacinco = varCeroacinco;

            item.IdGrupoPrestacion = varIdGrupoPrestacion;

            item.Seisanueve = varSeisanueve;

            item.Adol = varAdol;

            item.Adulto = varAdulto;

            item.F = varF;

            item.M = varM;

            item.DiasUti = varDiasUti;

            item.DiasSala = varDiasSala;

            item.DiasTotal = varDiasTotal;

            item.DiasMax = varDiasMax;

            item.IsNew = false;
            if (System.Web.HttpContext.Current != null)
            {
                item.Save(System.Web.HttpContext.Current.User.Identity.Name);
            }
            else
            {
                item.Save(System.Threading.Thread.CurrentPrincipal.Identity.Name);
            }
        }
        public void Update(int Id, int?Sexo, int?Edad, decimal?SD4neg, decimal?SD3neg, decimal?SD2neg, decimal?SD1neg, decimal?SD0, decimal?SD1, decimal?SD2, decimal?SD3, decimal?SD4)
        {
            AprZScoreIMCEdad item = new AprZScoreIMCEdad();

            item.MarkOld();
            item.IsLoaded = true;

            item.Id = Id;

            item.Sexo = Sexo;

            item.Edad = Edad;

            item.SD4neg = SD4neg;

            item.SD3neg = SD3neg;

            item.SD2neg = SD2neg;

            item.SD1neg = SD1neg;

            item.SD0 = SD0;

            item.SD1 = SD1;

            item.SD2 = SD2;

            item.SD3 = SD3;

            item.SD4 = SD4;

            item.Save(UserName);
        }
        protected void button_Create_Supplier_Click(object sender, EventArgs e)
        {
            if (this.Page.IsValid)
            {
                bool l_Supplier_Successfully_Created = false;
                int  l_New_Supplier_Id = 0;

                string exception_During_Process            = "";
                string exception_During_Process_Extra_Data = "";

                int    p_User_Id      = base.Authenticated_User_ID;
                string p_Company_Name = this.textbox_Company_Name.Text;
                string p_Website_URL  = this.textbox_Website_URL.Text;
                short  p_Country_Id   = short.Parse(this.dropdown_Country.SelectedValue);
                short? p_State_Id     = new short?();
                if (this.dropdown_State.Items.Count > 0)
                {
                    p_State_Id = short.Parse(this.dropdown_State.SelectedValue);
                }

                string p_City    = this.textbox_City.Text;
                string p_Address = this.textbox_Address.Text;
                string p_ZipCode = this.textbox_Zipcode.Text;

                byte?p_Default_Currency = new byte?();
                if (!string.IsNullOrEmpty(this.dropdown_Currency.SelectedValue))
                {
                    p_Default_Currency = byte.Parse(this.dropdown_Currency.SelectedValue);
                }

                decimal?p_Default_Vat_Percentage = new decimal?();
                if (!string.IsNullOrEmpty(this.textbox_Vat_Percentage.Text))
                {
                    decimal parsed_Vat_Percentage = 0;
                    if (decimal.TryParse(this.textbox_Vat_Percentage.Text, out parsed_Vat_Percentage))
                    {
                        p_Default_Vat_Percentage = parsed_Vat_Percentage;
                    }
                }

                string p_Telephone    = this.textbox_Telephone.Text;
                string p_Mobile_Phone = this.textbox_Mobile_Phone.Text;

                short  p_Supplier_Type_Id = short.Parse(this.dropdown_Supplier_Type.SelectedValue);
                string p_Supplier_Tax_Reference_Number = this.textbox_Supplier_Tax_Reference_Number.Text;

                string p_Main_Contact_FullName      = this.textbox_Main_Contact_FullName.Text;
                string p_Main_Contact_Email_Address = this.textbox_Main_Contact_Email_Address.Text;
                string p_Main_Contact_Phone_Number  = this.textbox_Main_Contact_Phone_Number.Text;

                DateTime?p_Supplier_From_Date = new DateTime?();
                DateTime l_Supplier_From_Date_For_Parsing_Result = new DateTime();
                DateTime?p_Supplier_To_Date = new DateTime?();
                DateTime l_Supplier_To_Date_For_Parsing_Result = new DateTime();
                DateTime?p_First_Contract_Date = new DateTime?();
                DateTime l_First_Contract_Date_For_Parsing_Result = new DateTime();

                bool l_Parsed_Successfully = DateTime.TryParseExact(this.textbox_Supplier_From_Date.Text,
                                                                    "dd/MM/yyyy", null, System.Globalization.DateTimeStyles.None, out l_Supplier_From_Date_For_Parsing_Result);
                if (l_Parsed_Successfully)
                {
                    p_Supplier_From_Date = l_Supplier_From_Date_For_Parsing_Result;
                }

                l_Parsed_Successfully = DateTime.TryParseExact(this.textbox_Supplier_To_Date.Text,
                                                               "dd/MM/yyyy", null, System.Globalization.DateTimeStyles.None, out l_Supplier_To_Date_For_Parsing_Result);
                if (l_Parsed_Successfully)
                {
                    p_Supplier_To_Date = l_Supplier_To_Date_For_Parsing_Result;
                }

                l_Parsed_Successfully = DateTime.TryParseExact(this.textbox_First_Contract_Date.Text,
                                                               "dd/MM/yyyy", null, System.Globalization.DateTimeStyles.None, out l_First_Contract_Date_For_Parsing_Result);
                if (l_Parsed_Successfully)
                {
                    p_First_Contract_Date = l_First_Contract_Date_For_Parsing_Result;
                }

                string p_First_Contract_Signed_With_Contact_Full_Name  = this.textbox_First_Contract_Signed_With_Contact_Full_Name.Text;
                string p_First_Contract_Signed_In_Location_Description = this.textbox_First_Contract_Signed_In_Location_Description.Text;

                bool p_Is_Active = this.checkbox_Is_Active.Checked;
                int  p_Logged_In_Administrative_User_Id = base.Authenticated_User_ID;

                TimeLineDashboard.Shared.Models.Suppliers new_Supplier_Details = null;

                try
                {
                    new_Supplier_Details = Business_Logic_Layer_Facade.Instance.Suppliers_Insert_New_Supplier_Administrative_Registration_Process(
                        p_User_Id, p_Company_Name, p_Website_URL, p_Country_Id,
                        p_State_Id, p_City, p_Address, p_ZipCode, p_Default_Currency, p_Default_Vat_Percentage,
                        p_Telephone, p_Mobile_Phone, p_Supplier_Type_Id,
                        p_Supplier_Tax_Reference_Number, p_Main_Contact_FullName,
                        p_Main_Contact_Email_Address, p_Main_Contact_Phone_Number,
                        p_Supplier_From_Date, p_Supplier_To_Date, p_First_Contract_Date,
                        p_First_Contract_Signed_With_Contact_Full_Name, p_First_Contract_Signed_In_Location_Description,
                        p_Is_Active, p_Logged_In_Administrative_User_Id
                        );

                    l_New_Supplier_Id = new_Supplier_Details.Supplier_Id;
                    l_Supplier_Successfully_Created = true;
                }
                catch (Exception exc)
                {
                    exception_During_Process = exc.Message;
                    if (exc.InnerException != null)
                    {
                        exception_During_Process_Extra_Data = exc.InnerException.Message;
                    }
                }

                if (l_Supplier_Successfully_Created && l_New_Supplier_Id > 0)
                {
                    // The user details was successfully created..
                    // Show success message and redirect the user to view page or back to users page (depends on where the user came from)
                    Response.Redirect("list_Suppliers.aspx");
                }
                else
                {
                    // show error message to the user for the failed process
                    this.lbl_Insert_Process_Error_Result.Text = exception_During_Process;
                    if (!string.IsNullOrEmpty(exception_During_Process_Extra_Data))
                    {
                        this.lbl_Insert_Process_Error_Result.Text += " (" + exception_During_Process_Extra_Data + ")";
                    }
                }
            }
        }
Пример #58
0
 public LIS_CONHECIMENTOTRANSPEntity(int?IDCONHECIMENTOTRANSP, DateTime?DATA, string NDOCUMENTO, string MODELO, string SERIE, int?IDTRANSPORTADORA, string NOMETRANSPORTADORA, int?IDCFOP, string CODCFOP, string DESCCFOP, decimal?VLTOTAL, decimal?VLBASEICMS, decimal?VLICMS, decimal?OUTRAS, string OBSERVACAO, string MODALIDADE)
 {
     this._IDCONHECIMENTOTRANSP = IDCONHECIMENTOTRANSP;
     this._DATA               = DATA;
     this._NDOCUMENTO         = NDOCUMENTO;
     this._MODELO             = MODELO;
     this._SERIE              = SERIE;
     this._IDTRANSPORTADORA   = IDTRANSPORTADORA;
     this._NOMETRANSPORTADORA = NOMETRANSPORTADORA;
     this._IDCFOP             = IDCFOP;
     this._CODCFOP            = CODCFOP;
     this._DESCCFOP           = DESCCFOP;
     this._VLTOTAL            = VLTOTAL;
     this._VLBASEICMS         = VLBASEICMS;
     this._VLICMS             = VLICMS;
     this._OUTRAS             = OUTRAS;
     this._OBSERVACAO         = OBSERVACAO;
     this._MODALIDADE         = MODALIDADE;
 }
Пример #59
0
 /// <summary>
 /// 带参构造函数
 /// </summary>
 ///<param name="iD">标识</param>
 ///<param name="bWLXID">办文类型ID</param>
 ///<param name="bWCLID">办文材料ID</param>
 ///<param name="cLYS">材料页数</param>
 ///<param name="iSCONFIG">是否可配置</param>
 ///<param name="bBCLBS">必备材料标识</param>
 ///<param name="dATAORIGIN">0或null系统生成数据,1迁移数据,2初始录入</param>
 public BWLXBWCLRLT(string iD, string bWLXID, string bWCLID, decimal?yJFS, decimal?fYJFS, decimal?cLYS, decimal iSCONFIG, decimal?bBCLBS, decimal?dATAORIGIN)
     : this()
 {
     this.ID     = iD;
     this.BWLXID = bWLXID;
     this.BWCLID = bWCLID;
     //this.YJFS = yJFS;
     //this.FYJFS = fYJFS;
     this.CLYS       = cLYS;
     this.ISCONFIG   = iSCONFIG;
     this.BBCLBS     = bBCLBS;
     this.DATAORIGIN = dATAORIGIN;
 }
Пример #60
0
 public static string FormatValueEmpty(this decimal?value)
 {
     return(FormatValueEmpty(value ?? 0));
 }