本文整理汇总了C#中CustomerType类的典型用法代码示例。如果您正苦于以下问题:C# CustomerType类的具体用法?C# CustomerType怎么用?C# CustomerType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CustomerType类属于命名空间,在下文中一共展示了CustomerType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Account
//Constructors
public Account(CustomerType type, decimal balance, decimal interestRate)
{
this.Type = type;
this.Balance = balance;
this.InterestRate = interestRate;
this.existance = 0;
}
开发者ID:nikolovk,项目名称:TelerikAcademy,代码行数:8,代码来源:Account.cs
示例2: Account
public Account(string customer, CustomerType customerType, decimal balance, decimal interestRate)
{
this.Customer = customer;
this.CustomerType = customerType;
this.Balance = balance;
this.InterestRate = interestRate;
}
开发者ID:CuST0M1z3,项目名称:OOP,代码行数:7,代码来源:Account.cs
示例3: SetValidData
public void SetValidData()
{
dataAccessFacadeStub = new DataAccessFacadeStub();
validName = "VF Jan";
validNote = "8 Persons";
validType = CustomerType.Bureau;
}
开发者ID:Klockz,项目名称:LonelyTreeExam,代码行数:7,代码来源:CustomerTest.cs
示例4: Customer
public Customer(string companyName,string userName /*,string password */)
{
this.companyName = companyName;
this.username = userName;
//this.password = password;
this.customerType = CustomerType.Company;
}
开发者ID:frontwalker,项目名称:Necl2,代码行数:7,代码来源:Customer.cs
示例5: Types
// Methods
public static List<CustomerType> Types()
{
List<CustomerType> list = new List<CustomerType>();
string str = "SELECT CustomerType, ShortDescription FROM CodeCustomerType order by ShortDescription ";
SqlConnection connection = new SqlConnection();
SqlCommand command = new SqlCommand();
connection.ConnectionString = ConfigurationManager.ConnectionStrings["ChargeProgramConnectionString"].ConnectionString;
command.CommandText = str;
command.Connection = connection;
connection.Open();
SqlDataReader reader = command.ExecuteReader(CommandBehavior.SingleResult);
CustomerType item = new CustomerType();
item.description = "ALL";
item.type = "ALL";
list.Add(item);
while (reader.Read())
{
CustomerType type2 = new CustomerType();
type2.Type = reader["CustomerType"].ToString();
type2.Description = reader["ShortDescription"].ToString();
list.Add(type2);
}
reader.Close();
connection.Close();
return list;
}
开发者ID:geoffritchey,项目名称:cafeteria,代码行数:27,代码来源:CustomerType.cs
示例6: Customer
internal Customer(CustomerType type, string note, string name, IDataAccessFacade dataAccessFacade)
{
validateName(name);
this.dataAccessFacade = dataAccessFacade;
_customerEntity = dataAccessFacade.CreateCustomer(type, note, name);
initializeParty(_customerEntity);
}
开发者ID:Klockz,项目名称:LonelyTreeExam,代码行数:7,代码来源:Customer.cs
示例7: Account
public Account(string customerName, CustomerType type, decimal interest, decimal amount)
{
this.Customer = customerName;
this.Type = type;
this.Interest = interest;
this.Balance = amount;
}
开发者ID:GAlex7,项目名称:TA,代码行数:7,代码来源:Account.cs
示例8: Customer
public Customer(CustomerType customerType,string customerName)
{
this.CustomerType = customerType;
this.CustomerName = customerName;
customerIndexator++;
}
开发者ID:VasilenaDragancheva,项目名称:OOP,代码行数:7,代码来源:Customer.cs
示例9: GetAllProductFor
public IList<Product> GetAllProductFor(CustomerType customerType)
{
IDiscountStrategy discountStrategy = DiscountFactory.GetDiscountStrtegyFor(customerType);
IList<Product> products = _productRepository.Findall();
products.Apply(discountStrategy);
return products;
}
开发者ID:Hotjava,项目名称:Practise_Code,代码行数:7,代码来源:ProductService.cs
示例10: RegisterCustomer
public void RegisterCustomer(string name, CustomerType customerType)
{
try
{
using (var transaction = new TransactionScope())
{
Customer customer = new Customer();
customer.Name = name;
customer.Type = customerType;
customer.Agreements.Add(
new Agreement
{
Number = agreementManagementService.GenerateAgreementNumber(),
CreatedOn = DateTime.Now,
Customer = customer
});
repository.Save(customer);
repository.Commit();
transaction.Complete();
}
}
catch (Exception ex)
{
throw new RegistrationException(string.Format("Failed to register customer with name '{0}' and type {1}.", name, customerType), ex);
}
}
开发者ID:RytisCapas,项目名称:InventoryManagement,代码行数:29,代码来源:RegistrationService.cs
示例11: Customer
public Customer(string name,CustomerType customerType)
{
this.CustomerType = customerType;
this.Name = name;
}
开发者ID:asenAce,项目名称:Software_University_Bulgaria,代码行数:7,代码来源:Customer.cs
示例12: Create
internal Customer Create(CustomerType type, string note, string name)
{
//Adds a new customer object and adds it to the list.
Customer customer = new Customer(type, note, name, dataAccessFacade);
customers.Add(customer);
return customer;
}
开发者ID:Klockz,项目名称:LonelyTreeExam,代码行数:7,代码来源:CustomerCollection.cs
示例13: AbstractCustomer
public AbstractCustomer(CustomerType customerType)
{
this._accountList = new List<IAccount>();
this._customerType = customerType;
this._validator = Validation.VALIDATOR;
this._accountFactory = AccountFactory.ACCOUNT_FACTORY;
}
开发者ID:mgulubov,项目名称:SoftUniCourse-OOP,代码行数:7,代码来源:AbstractCustomer.cs
示例14: Account
public Account(DateTime date, CustomerType customer, decimal balance)
{
this.CreatedOn = date;
this.Customer = customer;
this.Balance = balance;
this.InterestRate = this.CalculateInterestRate();
this.NumberOfMonths = this.CalcMonths();
}
开发者ID:AYankova,项目名称:Telerik-Academy-HW,代码行数:8,代码来源:Account.cs
示例15: Deposit
public Deposit(CustomerType customer, decimal balance, decimal interestRate)
: base(customer, balance, interestRate)
{
if (this.InterestRate <= 0 || this.Balance <= 0)
{
throw new ArgumentException("Balance and interest rate must be greater than zero.");
}
}
开发者ID:NikolovNikolay,项目名称:Telerik-Homeworks,代码行数:8,代码来源:Deposit.cs
示例16: Account
protected Account(string customerID,CustomerType customerType,decimal balance,decimal interest)
{
this.CustomerID = customerID;
this.Balance = balance;
this.Interest = interest;
this.startDate = DateTime.Today;
this.CustomerType=customerType;
}
开发者ID:VasilenaDragancheva,项目名称:OOP,代码行数:8,代码来源:Account.cs
示例17: Account
public Account(string customerFirstName, string customerLastName, CustomerType customerType, double balance, double interestRate)
{
this.customerFirstName = customerFirstName;
this.customerLastName = customerLastName;
this.customerType = customerType;
this.balance = balance;
this.interestRate = interestRate;
}
开发者ID:quela,项目名称:myprojects,代码行数:8,代码来源:Account.cs
示例18: Edit
//
// GET: /Platform/SysDepartment/Edit/5
public ActionResult Edit(Guid? id)
{
var item = new CustomerType();
if (id.HasValue)
{
item = _iCustomerTypeService.GetById(id.Value);
}
return View(item);
}
开发者ID:b9502032,项目名称:MySite,代码行数:11,代码来源:CustomerTypeController.cs
示例19: Insert_CustomerType
public CustomerType Insert_CustomerType()
{
CustomerType customerType = new CustomerType();
customerType.Id = 1;
customerType.Name = "Bireysel";
customerTypeDao.Insert(customerType);
return customerType;
}
开发者ID:BosphorusTeam,项目名称:bosphorus.dao,代码行数:9,代码来源:Generic.cs
示例20: Account
public Account(CustomerType customer, double balance,
double monthlyInterest, int numberOfMonths, AccountType account)
{
this.BankCustomer = customer;
this.Balance = balance;
this.MonthlyInterest = monthlyInterest;
this.NumberOfMonths = numberOfMonths;
this.BankAccount = account;
}
开发者ID:powerslider,项目名称:TelerikAcademyHomeworks,代码行数:9,代码来源:Account.cs
注:本文中的CustomerType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论