本文整理汇总了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);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
}
示例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();
}
示例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();
}
}
示例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();
}
示例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);
}
示例11: PrimitiveRecordSetSQQ
internal PrimitiveRecordSetSQQ(StaticVariable arg0, Quotation arg1, Quotation arg2)
: base(arg0, arg1, arg2)
{
this.rand2Value = arg2.Quoted;
}
示例12: Make
internal static SCode Make(PrimitiveIsSymbolA1 predicate, SCode consequent, Quotation alternative)
{
return new PCondIsSymbolA1SQ (predicate, consequent, alternative);
}
示例13: PCondIsNullAXQ
protected PCondIsNullAXQ(PrimitiveIsNullA predicate, SCode consequent, Quotation alternative)
: base(predicate, consequent, alternative)
{
this.alternativeValue = alternative.Quoted;
}
示例14: Make
public static SCode Make(PrimitiveIsNullS predicate, Quotation consequent, SCode alternative)
{
return
new PCondIsNullSQ (predicate, consequent, alternative);
}
示例15: PrimitiveStringSetSQQ
protected PrimitiveStringSetSQQ(StaticVariable arg0, Quotation arg1, Quotation arg2)
: base(arg0, arg1, arg2)
{
this.rand2Value = arg2.Quoted;
}