本文整理汇总了C#中OpenCBS.CoreDomain.User类的典型用法代码示例。如果您正苦于以下问题:C# User类的具体用法?C# User怎么用?C# User使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
User类属于OpenCBS.CoreDomain命名空间,在下文中一共展示了User类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SavingServices
public SavingServices(User pUser)
{
_user = pUser;
_savingManager = new SavingManager(pUser);
_savingEventManager = new SavingEventManager(pUser);
_ePS = new EventProcessorServices(pUser);
}
示例2: NonWorkingDateManagement
public NonWorkingDateManagement(User pUser)
: base(pUser)
{
_user = pUser;
dbParam = ApplicationSettings.GetInstance(pUser.Md5);
nonWorkingDateHelper = NonWorkingDateSingleton.GetInstance(_user.Md5);
}
示例3: ProjectServices
public ProjectServices(User pUser)
{
_user = pUser;
_ProjectManager = new ProjectManager(pUser, true);
_ClientServices = new ClientServices(pUser);
_branchService = new BranchService(pUser);
}
示例4: AccountingTransactionManager
public AccountingTransactionManager(User pUser)
: base(pUser)
{
_accountManagement = new AccountManager(pUser);
_currencyManager = new CurrencyManager(pUser);
_branchManager = new BranchManager(pUser);
}
示例5: ClientServices
public ClientServices(User pUser, string testDB)
{
_user = pUser;
_clientManagement = new ClientManager(testDB);
_dataParam = ApplicationSettings.GetInstance(pUser.Md5);
_picturesServices = new PicturesServices(testDB);
}
示例6: AddUser
public int AddUser(User pUser)
{
const string sqlText = @"INSERT INTO [Users] (
[deleted],
[role_code],
[user_name],
[user_pass],
[first_name],
[last_name],
[mail],
[sex],
[phone])
VALUES(
@deleted,
@roleCode,
@username,
@userpass,
@firstname,
@lastname,
@mail,
@sex,
@phone)
SELECT SCOPE_IDENTITY()";
using (SqlConnection conn = GetConnection())
using (OpenCbsCommand sqlCommand = new OpenCbsCommand(sqlText, conn))
{
sqlCommand.AddParam("@deleted", false);
SetUser(sqlCommand, pUser);
pUser.Id = int.Parse(sqlCommand.ExecuteScalar().ToString());
SaveUsersRole(pUser.Id, pUser.UserRole.Id);
}
return pUser.Id;
}
示例7: UserServices
public UserServices(User pUser, string pTestDb)
{
_userManager = new UserManager(pTestDb);
_tellerManager = new TellerManager(pTestDb);
roleServices = ServicesProvider.GetInstance().GetRoleServices();
branchServices = ServicesProvider.GetInstance().GetBranchService();
}
示例8: BookManualEntry
public void BookManualEntry(Booking booking, User currentUser)
{
using (SqlConnection conn = _movementSetManagement.GetConnection())
{
SqlTransaction sqlTransac = conn.BeginTransaction();
try
{
if (booking.Amount <= 0)
throw new OpenCbsAccountException(OpenCbsAccountExceptionsEnum.IncorrectAmountFormat);
if (booking.DebitAccount.Id == booking.CreditAccount.Id)
{
throw new OpenCbsAccountException(OpenCbsAccountExceptionsEnum.EqualAccounts);
}
_movementSetManagement.InsertManualMovment(booking, sqlTransac);
sqlTransac.Commit();
}
catch (Exception ex)
{
sqlTransac.Rollback();
throw ex;
}
}
}
示例9: SavingServices
public SavingServices(User pUser)
{
_user = pUser;
_savingManager = new SavingManager(pUser);
_savingEventManager = new SavingEventManager(pUser);
_ePS = new EventProcessorServices(pUser);
MefContainer.Current.Bind(this);
}
示例10: ApplicationSettingsServices
public ApplicationSettingsServices(User pUser)
{
_user = pUser;
_dataParamManager = new ApplicationSettingsManager(pUser);
_nonWorkingDateManager = new NonWorkingDateManagement(pUser);
_provisioningRuleManager = new ProvisioningRuleManager(pUser);
_loanScaleManager = new LoanScaleManager(_user);
}
示例11: StandardBookingManager
public StandardBookingManager(User pUser)
: base(pUser)
{
_user = pUser;
AccountManager _accountManagement = new AccountManager(pUser);
_chartOfAccounts = new ChartOfAccounts();
_chartOfAccounts.Accounts = _accountManagement.SelectAllAccounts();
}
示例12: FundingLineServices
public FundingLineServices(User user)
{
_user = user;
fundingLinesWithAmounts = new Hashtable();
_fundingLineManager = new FundingLineManager(_user);
_ePS = new EventProcessorServices(user);
}
示例13: SavingManager
public SavingManager(string pTestDB)
: base(pTestDB)
{
_savingProductManager = new SavingProductManager(pTestDB);
_savingEventManager = new SavingEventManager(pTestDB);
_loanManager = new LoanManager(pTestDB);
_user = new User();
}
示例14: ProductServices
public ProductServices(User user)
{
_user = user;
_productManager = new LoanProductManager(user);
_installmentTypeManager = new InstallmentTypeManager(user);
_fundingLineManager = new FundingLineManager(user);
_productManager.ProductLoaded += ProductLoaded;
}
示例15: TellerManager
public TellerManager(User user)
: base(user)
{
accountManager = new AccountManager(user);
branchManager = new BranchManager(user);
userManager = new UserManager(user);
currencyManager = new CurrencyManager(user);
}