当前位置: 首页>>代码示例>>C#>>正文


C# Quotation类代码示例

本文整理汇总了C#中Quotation的典型用法代码示例。如果您正苦于以下问题:C# Quotation类的具体用法?C# Quotation怎么用?C# Quotation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Quotation类属于命名空间,在下文中一共展示了Quotation类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Make

 public static SCode Make(Primitive2 rator, Quotation rand0, SCode rand1)
 {
     return
         (rand1 is Argument) ? PrimitiveIsCharEqQA.Make (rator, rand0, (Argument) rand1) :
         (rand1 is StaticVariable) ? PrimitiveIsCharEqQS.Make (rator, rand0, (StaticVariable) rand1) :
         new PrimitiveIsCharEqQ (rator, rand0, rand1);
 }
开发者ID:NotJRM,项目名称:jrm-code-project,代码行数:7,代码来源:PrimitiveIsEq.cs

示例2: SubInflation

 private static void SubInflation(Quotation Quotation, decimal inflation)
 {
     Quotation.Close = Quotation.Close * (1 - inflation);
     Quotation.Open = Quotation.Open * (1 - inflation);
     Quotation.High = Quotation.High * (1 - inflation);
     Quotation.Low = Quotation.Low * (1 - inflation);
 }
开发者ID:kuritka,项目名称:CommodityQuotations,代码行数:7,代码来源:InflationExtensions.cs

示例3: Create

        public static Quotation Create(PrimitiveQuotation primitiveQuotation, ConfigMetadata metadata)
        {
            Quotation quotation = new Quotation(primitiveQuotation);
            quotation.SourceId = metadata.GetSourceId(primitiveQuotation.SourceName);
            quotation.InstrumentId = metadata.GetInstrumentId(primitiveQuotation.InstrumentCode);

            return quotation;
        }
开发者ID:BlueSky007,项目名称:ExchangeManager,代码行数:8,代码来源:Quotation.cs

示例4: CreateQuote

        public Quotation CreateQuote(QuotationRequest request)
        {
            var quote = new Quotation(
                guidProvider.CreateGuid(),
                dateTimeProvider.GetCurrent(),
                request.Items.Select(i => i.CreateLineItem(new Money("GBP", i.Quantity.Value/100.00)))
                );

            return quotes.GetOrAdd(quote.Id, quote);
        }
开发者ID:iansrobinson,项目名称:Restbucks,代码行数:10,代码来源:QuotationEngine.cs

示例5: Create

        public ActionResult Create(int? id)
        {
            Quotation _item = new Quotation();

            ViewBag.idmas_GST = new SelectList(gstSvc.GetAll(), "Id", "Code");
            ViewBag.CustomerId = cHelper.GetCustomerDropDown(id);
            ViewBag.NewDetail = new OrderDetail();

            _item.OrderNumber = optionsSvc.GetNextQuotationNumber();
            _item.OrderDate = DateTime.Today;

            return View(_item);
        }
开发者ID:tuanzhang7,项目名称:acct.aspnet,代码行数:13,代码来源:QuotationController.cs

示例6: AddQuotation

        //----------------------->>>>>Add quotation and services here.....
        public JsonResult AddQuotation(srv[] ar, quotation ob)
        {
            if (ModelState.IsValid)
            {
                return this.Json("-------", JsonRequestBehavior.AllowGet);
            }
            try
            {
                Quotation obj = new Quotation();
                obj.Date = ob.date;
                obj.ShipperId = ob.shipperid;
                obj.ComodityId = ob.comodityid;
                obj.Quantity = ob.quantity;
                obj.PackingId = ob.packingid;
                obj.Weight = ob.weight;
                obj.LoadingPort = ob.loadingport;
                obj.DischargePort = ob.dischargeport;
                obj.FlightNo = ob.flightno;
                obj.SailingDate = ob.sailingdate;
                obj.ArrivalDate = ob.arrivaldate;
                obj.ConsigneeId = ob.consigneeid;
                obj.Status = "inactive";
                obj.PayedAmount = 0;

                db.Quotations.Add(obj);
                db.SaveChanges();

                int id = obj.Id;

                ServiceForQuotation sample = new ServiceForQuotation();

                foreach (var a in ar)
                {
                    sample.Quantity = a.quantity;
                    sample.UnitPrice = a.price;
                    sample.QuotationId = id;
                    sample.ServiceId = a.id;
                    db.ServiceForQuotations.Add(sample);
                    db.SaveChanges();
                }
                return this.Json("success", JsonRequestBehavior.AllowGet);
            }
            catch(Exception e)
            {
                return this.Json("-------", JsonRequestBehavior.AllowGet);
            }
        }
开发者ID:bsef12m508,项目名称:AgentManagementSystem,代码行数:48,代码来源:QuotationsController.cs

示例7: frmNewQuoteForm

        public frmNewQuoteForm()
        {
            InitializeComponent();

            //initialize new quotation item data table.
            newQuotationItemTable.Columns.Add("SequenceNumber", typeof(string));
            newQuotationItemTable.Columns.Add("ItemName", typeof(string));
            newQuotationItemTable.Columns.Add("Description", typeof(string));
            newQuotationItemTable.Columns.Add("Quantity", typeof(string));
            newQuotationItemTable.Columns.Add("UnitPrice", typeof(string));
            newQuotationItemTable.Columns.Add("Value", typeof(string));

            //initialize billing business object.
            quotation = new Quotation();

            //initialize client business object.
            client = new Client();
        }
开发者ID:NSBMDevTeam,项目名称:CityElectricalHardwareIMSWinFormApp,代码行数:18,代码来源:frmNewQuoteForm.cs

示例8: Add

 public void Add(Quotation quotation)
 {
     using (var db = GetDataContext())
     {
         var entity = db.Inventorys.FirstOrDefault(e => e.CID == quotation.CID);
         if (entity != null)
         {
             entity.Number += quotation.Number;
         }
         else
         {
             db.Inventorys.Add(new Inventory { 
                 CID=quotation.CID,
                 Number=quotation.Number
             });
         }
         db.SaveChanges();
     }
 }
开发者ID:LooWooTech,项目名称:SCM,代码行数:19,代码来源:InventoryManager.cs

示例9: Button1_Click

 protected void Button1_Click(object sender, EventArgs e)
 {
     Quotation q = new Quotation();
     if (rbTwoWheeler.Checked)
     {
         q.VehicleType = "two wheeler";
     }
     else
     {
         q.VehicleType = "four wheeler";
     }
     q.Brand = ddlBrand.SelectedItem.Text;
     q.Model = ddlModel.SelectedItem.Text;
     q.Price = Convert.ToDouble(Label4.Text);
     Quotation q1 = bi.Insert(q);
     Label6.Text = q1.Qid.ToString();
     Label7.Text = q1.Premium.ToString();
     Label8.Text = q1.Cover.ToString();
 }
开发者ID:al-main,项目名称:OnlineBankingSystem,代码行数:19,代码来源:AddQuotation.aspx.cs

示例10: Make

 public static PrimitiveRecordSetSQ Make(StaticVariable arg0, Quotation arg1, SCode arg2)
 {
     return
         (arg2 is Quotation) ? new PrimitiveRecordSetSQQ (arg0, arg1, (Quotation) arg2) :
         (arg2 is StaticVariable) ? new PrimitiveRecordSetSQS (arg0, arg1, (StaticVariable) arg2) :
         new PrimitiveRecordSetSQ (arg0, arg1, arg2);
 }
开发者ID:NotJRM,项目名称:jrm-code-project,代码行数:7,代码来源:PrimitiveRecordSet.cs

示例11: PrimitiveRecordSetSQQ

 internal PrimitiveRecordSetSQQ(StaticVariable arg0, Quotation arg1, Quotation arg2)
     : base(arg0, arg1, arg2)
 {
     this.rand2Value = arg2.Quoted;
 }
开发者ID:NotJRM,项目名称:jrm-code-project,代码行数:5,代码来源:PrimitiveRecordSet.cs

示例12: Make

 internal static SCode Make(PrimitiveIsSymbolA1 predicate, SCode consequent, Quotation alternative)
 {
     return new PCondIsSymbolA1SQ (predicate, consequent, alternative);
 }
开发者ID:NotJRM,项目名称:jrm-code-project,代码行数:4,代码来源:PCondIsSymbol.cs

示例13: PCondIsNullAXQ

 protected PCondIsNullAXQ(PrimitiveIsNullA predicate, SCode consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
     this.alternativeValue = alternative.Quoted;
 }
开发者ID:NotJRM,项目名称:jrm-code-project,代码行数:5,代码来源:PCondIsNull.cs

示例14: Make

 public static SCode Make(PrimitiveIsNullS predicate, Quotation consequent, SCode alternative)
 {
     return
         new PCondIsNullSQ (predicate, consequent, alternative);
 }
开发者ID:NotJRM,项目名称:jrm-code-project,代码行数:5,代码来源:PCondIsNull.cs

示例15: PrimitiveStringSetSQQ

 protected PrimitiveStringSetSQQ(StaticVariable arg0, Quotation arg1, Quotation arg2)
     : base(arg0, arg1, arg2)
 {
     this.rand2Value = arg2.Quoted;
 }
开发者ID:NotJRM,项目名称:jrm-code-project,代码行数:5,代码来源:PrimitiveStringSet.cs


注:本文中的Quotation类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。