当前位置: 首页>>代码示例>>C#>>正文


C# CoreDomain.User类代码示例

本文整理汇总了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);
 }
开发者ID:TalasZh,项目名称:opencbs,代码行数:7,代码来源:SavingServices.cs

示例2: NonWorkingDateManagement

 public NonWorkingDateManagement(User pUser)
     : base(pUser)
 {
     _user = pUser;
     dbParam = ApplicationSettings.GetInstance(pUser.Md5);
     nonWorkingDateHelper = NonWorkingDateSingleton.GetInstance(_user.Md5);
 }
开发者ID:aelhadi,项目名称:opencbs,代码行数:7,代码来源:NonWorkingDateManagement.cs

示例3: ProjectServices

 public ProjectServices(User pUser)
 {
     _user = pUser;
     _ProjectManager = new ProjectManager(pUser, true);
     _ClientServices = new ClientServices(pUser);
     _branchService = new BranchService(pUser);
 }
开发者ID:aelhadi,项目名称:opencbs,代码行数:7,代码来源:ProjectServices.cs

示例4: AccountingTransactionManager

 public AccountingTransactionManager(User pUser)
     : base(pUser)
 {
     _accountManagement = new AccountManager(pUser);
     _currencyManager = new CurrencyManager(pUser);
     _branchManager = new BranchManager(pUser);
 }
开发者ID:aelhadi,项目名称:opencbs,代码行数:7,代码来源:AccountingTransactionManager.cs

示例5: ClientServices

 public ClientServices(User pUser, string testDB)
 {
     _user = pUser;
     _clientManagement = new ClientManager(testDB);
     _dataParam = ApplicationSettings.GetInstance(pUser.Md5);
     _picturesServices = new PicturesServices(testDB);
 }
开发者ID:himmelreich-it,项目名称:opencbs,代码行数:7,代码来源:ClientServices.cs

示例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;
        }
开发者ID:himmelreich-it,项目名称:opencbs,代码行数:34,代码来源:UserManager.cs

示例7: UserServices

 public UserServices(User pUser, string pTestDb)
 {
     _userManager = new UserManager(pTestDb);
     _tellerManager = new TellerManager(pTestDb);
     roleServices = ServicesProvider.GetInstance().GetRoleServices();
     branchServices = ServicesProvider.GetInstance().GetBranchService();
 }
开发者ID:himmelreich-it,项目名称:opencbs,代码行数:7,代码来源:UserServices.cs

示例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;
                }
            }
        }
开发者ID:aelhadi,项目名称:opencbs,代码行数:25,代码来源:AccountingServices.cs

示例9: SavingServices

 public SavingServices(User pUser)
 {
     _user = pUser;
     _savingManager = new SavingManager(pUser);
     _savingEventManager = new SavingEventManager(pUser);
     _ePS = new EventProcessorServices(pUser);
     MefContainer.Current.Bind(this);
 }
开发者ID:aelhadi,项目名称:opencbs,代码行数:8,代码来源:SavingServices.cs

示例10: ApplicationSettingsServices

 public ApplicationSettingsServices(User pUser)
 {
     _user = pUser;
     _dataParamManager = new ApplicationSettingsManager(pUser);
     _nonWorkingDateManager = new NonWorkingDateManagement(pUser);
     _provisioningRuleManager = new ProvisioningRuleManager(pUser);
     _loanScaleManager = new LoanScaleManager(_user);
 }
开发者ID:aelhadi,项目名称:opencbs,代码行数:8,代码来源:ApplicationSettingsServices.cs

示例11: StandardBookingManager

 public StandardBookingManager(User pUser)
     : base(pUser)
 {
     _user = pUser;
     AccountManager _accountManagement =  new AccountManager(pUser);
     _chartOfAccounts = new ChartOfAccounts();
     _chartOfAccounts.Accounts = _accountManagement.SelectAllAccounts();
 }
开发者ID:aelhadi,项目名称:opencbs,代码行数:8,代码来源:StandardBookingManager.cs

示例12: FundingLineServices

        public FundingLineServices(User user)
        {
            _user = user;
            fundingLinesWithAmounts = new Hashtable();

            _fundingLineManager = new FundingLineManager(_user);
            _ePS = new EventProcessorServices(user);
        }
开发者ID:aelhadi,项目名称:opencbs,代码行数:8,代码来源:FundingLineServices.cs

示例13: SavingManager

 public SavingManager(string pTestDB)
     : base(pTestDB)
 {
     _savingProductManager = new SavingProductManager(pTestDB);
     _savingEventManager = new SavingEventManager(pTestDB);
     _loanManager = new LoanManager(pTestDB);
     _user = new User();
 }
开发者ID:TalasZh,项目名称:opencbs,代码行数:8,代码来源:SavingManager.cs

示例14: ProductServices

 public ProductServices(User user)
 {
     _user = user;
     _productManager = new LoanProductManager(user);
     _installmentTypeManager = new InstallmentTypeManager(user);
     _fundingLineManager = new FundingLineManager(user);
     _productManager.ProductLoaded += ProductLoaded;
 }
开发者ID:TalasZh,项目名称:opencbs,代码行数:8,代码来源:ProductServices.cs

示例15: TellerManager

 public TellerManager(User user)
     : base(user)
 {
     accountManager = new AccountManager(user);
     branchManager = new BranchManager(user);
     userManager = new UserManager(user);
     currencyManager = new CurrencyManager(user);
 }
开发者ID:aelhadi,项目名称:opencbs,代码行数:8,代码来源:TellerManager.cs


注:本文中的OpenCBS.CoreDomain.User类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。