• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Quotation类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: PrimitiveStringSetSQ

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


示例17: PrimitiveStringSetA0Q

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


示例18: PrimitiveRecordSetSQS

 internal PrimitiveRecordSetSQS(StaticVariable arg0, Quotation arg1, StaticVariable arg2)
     : base(arg0, arg1, arg2)
 {
     this.rand2Name = arg2.Name;
     this.rand2Offset = arg2.Offset;
 }
开发者ID:NotJRM,项目名称:jrm-code-project,代码行数:6,代码来源:PrimitiveRecordSet.cs


示例19: PCondIsSymbolA1LQ

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


示例20: Make

 public static PrimitiveStringSetA0 Make(Argument0 arg0, Quotation arg1, SCode arg2)
 {
     return
         new PrimitiveStringSetA0Q (arg0, arg1, arg2);
 }
开发者ID:NotJRM,项目名称:jrm-code-project,代码行数:5,代码来源:PrimitiveStringSet.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Quote类代码示例发布时间:2022-05-24
下一篇:
C# QuickIOPathInfo类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap