本文整理汇总了C#中Claim.Submit方法的典型用法代码示例。如果您正苦于以下问题:C# Claim.Submit方法的具体用法?C# Claim.Submit怎么用?C# Claim.Submit使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Claim
的用法示例。
在下文中一共展示了Claim.Submit方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Install
public void Install() {
SVEN = EmployeeFixture.SVEN;
DICK = EmployeeFixture.DICK;
var date1 = new DateTime(2007, 7, 15);
SVEN_CLAIM_4 = CreateNewClaim(SVEN, DICK, "July 07 - 2 visits to Dublin", ProjectCodeFixture.CODE2, date1);
AddPrivateCarJourney(SVEN_CLAIM_4, date1, "Own car to airport", "Henley on Thames", "Heathrow", true, 50);
AddGeneralExpense(SVEN_CLAIM_4, date1, "Car Parking at Heathrow", Convert.ToDecimal(42.9));
AddAirfare(SVEN_CLAIM_4, date1, null, 165M, "Aer Lingus", "LHR", "DUB", true);
AddTaxi(SVEN_CLAIM_4, date1, "Taxis to & from Hotel", 30M, "Dublin Airport", "Alexander Hotel", true);
AddHotel(SVEN_CLAIM_4, date1, "Alexander Hotel", 0M, "http://ocallaghanhotels.visrez.com/dublinmain/Alexander.aspx", 1, 89M, Convert.ToDecimal(15.45), Convert.ToDecimal(3.5));
AddMeal(SVEN_CLAIM_4, date1, "Dinner", 28M);
date1 = new DateTime(2007, 7, 23);
AddPrivateCarJourney(SVEN_CLAIM_4, date1, "Own car to airport", "Henley on Thames", "Heathrow", true, 50);
AddGeneralExpense(SVEN_CLAIM_4, date1, "Car Parking at Heathrow", Convert.ToDecimal(42.9));
AddAirfare(SVEN_CLAIM_4, date1, null, 129M, "Aer Lingus", "LHR", "DUB", true);
AddTaxi(SVEN_CLAIM_4, date1, "Taxis to & from Hotel", 32M, "Dublin Airport", "Alexander Hotel", true);
AddHotel(SVEN_CLAIM_4, date1, "Alexander Hotel", 0M, "http://ocallaghanhotels.visrez.com/dublinmain/Alexander.aspx", 1, 89M, Convert.ToDecimal(15.45), Convert.ToDecimal(4.8));
AddMeal(SVEN_CLAIM_4, date1, "Dinner", 31M);
SVEN_CLAIM_4.Submit(DICK, false);
SVEN_CLAIM_4.ApproveItems(false);
}
示例2: Install
public void Install() {
SVEN = EmployeeFixture.SVEN;
DICK = EmployeeFixture.DICK;
SVEN_CLAIM_2 = CreateNewClaim(SVEN, null, "15th Mar - Sales call, London", ProjectCodeFixture.CODE1, new DateTime(2007, 4, 3));
var mar14th = new DateTime(2007, 3, 14);
AddTaxi(SVEN_CLAIM_2, mar14th, null, 18M, "Euston", "City", true);
AddMeal(SVEN_CLAIM_2, mar14th, "Lunch with client", 50M);
SVEN_CLAIM_2.Submit(DICK, false);
}
示例3: Install
public void Install() {
SVEN = EmployeeFixture.SVEN;
DICK = EmployeeFixture.DICK;
SVEN_CLAIM_3 = CreateNewClaim(SVEN, DICK, "23rd Feb - Sales trip, London", ProjectCodeFixture.CODE1, new DateTime(2007, 4, 3));
var feb23rd = new DateTime(2007, 2, 23);
AddTaxi(SVEN_CLAIM_3, feb23rd, null, 18M, "Euston", "City", false);
AddTaxi(SVEN_CLAIM_3, feb23rd, null, 10M, "City", "West End", false);
GeneralExpense meal = AddMeal(SVEN_CLAIM_3, feb23rd, "Lunch with client", 50M);
SVEN_CLAIM_3.Submit(DICK, false);
meal.Reject("Too expensive");
SVEN_CLAIM_3.ApproveItems(true);
SVEN_CLAIM_3.ReturnToClaimant("Please discuss Meal item with me", false);
}