本文整理汇总了C#中Price.AddMarkup方法的典型用法代码示例。如果您正苦于以下问题:C# Price.AddMarkup方法的具体用法?C# Price.AddMarkup怎么用?C# Price.AddMarkup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Price
的用法示例。
在下文中一共展示了Price.AddMarkup方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DoAvailableProcess
//.........这里部分代码省略.........
else
{
try
{
GetAirBookingCondition(ref passengers, tGoup);
}
catch (Exception E)
{
log.Error(E.Message, E);
}
}
AirService.PreBookAirline2(ref airMaterial, passengers);
airMaterial = flightMerchandiseManager.EditMaterialGroupMarkup(airMaterial);
}
catch (Exception ex)
{
DoErrorProcess(ex);
log.Error(ex.Message, ex);
bclError = true;
DisplayCannotbook();
return;
}
if (bclError)
{
DisplayCannotbook();
return;
}
if (Convert.ToBoolean(tGoup.Profile.GetParam("ISWEBFARE")))
{
tGoup.FareType = AirFareType.Published;
Price price = new Price();
price.SetAmount(TERMS.Common.PassengerType.Adult,new FareAmount(Convert.ToDecimal(tGoup.Profile.GetParam("PUBLISHED_ADULT_FARE"))));
price.SetAmount(TERMS.Common.PassengerType.Child,new FareAmount(Convert.ToDecimal(tGoup.Profile.GetParam("PUBLISHED_CHILD_FARE"))));
Markup mk = FlightMerchandise.AirProduct.GetMarkup(tGoup);
price.AddMarkup(mk);
tGoup.SetPrice(price);
}
//
//if (IsPriceChanged())
airMaterial = EditFare(airMaterial);
newPrice = GetTotalPrice(airMaterial);
SelectAirMaterial = tGoup;
//���õ�ǰҳ��
SetCurrentPageNumber();
SetCurrentTabFlag();
if (isClickAvailable == true && IsChangeNotLess(newPrice, originalPrice))
{
OperaterAdvice.DoAdvice(Terms.Configuration.Utility.ConfigurationConst.OperateType.IBE_AvailableFareChanged, this);
ScriptManager.RegisterStartupScript(upSelect, upSelect.GetType(), "alt", "<script>$('ctl00_MainContent_pnlSelectProcessing').style.display ='none';</script>", false);
Label lblCurrentMsg = null;
Panel pnlCurrentComfirm = null;
if (isClickAvailable == false)
{
lblCurrentMsg = lblSoldOutMsg_Select;
pnlCurrentComfirm = pnlComfirm_Select;
}
else
{
lblCurrentMsg = lblSoldOutMsg;
pnlCurrentComfirm = pnlComfirm;
}
if (IsLittleChanged(originalPrice, newPrice))
{
lblCurrentMsg.Text = string.Format(LittleChangedSoldoutMsg, ((decimal)(newPrice - originalPrice)).ToString("#,###.##"));
}
else
{
lblCurrentMsg.Text = string.Format(LargeChangedSoldoutMsg, ((decimal)(newPrice - originalPrice)).ToString("#,###.##"));
}
pnlCurrentComfirm.Attributes.Add("style", "display:block;");
}
else
{
ScriptManager.RegisterStartupScript(upSelect, upSelect.GetType(), "alt", "<script>$('ctl00_MainContent_pnlSelectProcessing').style.display ='none';document.getElementById('maskDIV').style.display = 'none';</script>", false);
Response.Redirect("Step3_confirm.aspx?ConditionID=" + Request.Params["ConditionID"]);
}
//Response.Redirect("Step3_bulk.aspx");
}