當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。