コード例 #1
0
        public ChartOfAccount(CommonExchange.SysAccess userInfo, ChartOfAccountLogic chartOfAccountManager)
        {
            this.InitializeComponent();

            _userInfo = userInfo;
            _chartOfAccountManager = chartOfAccountManager;

            _errProvider = new ErrorProvider();

            _toolTip = new ToolTip();

            _toolTip.SetToolTip(this.btnSearchSummaryAccount, "Search summary account");
            _toolTip.SetToolTip(this.btnClearSummaryAccount, "Delete summary account");

            this.Load += new EventHandler(ClassLoad);
            this.cboAccountCategory.SelectedIndexChanged += new EventHandler(cboAccountCategorySelectedIndexChanged);
            this.txtAccountCode.Validated           += new EventHandler(txtAccountCodeValidated);
            this.txtAccountName.Validated           += new EventHandler(txtAccountNameValidated);
            this.txtAccountDescription.Validated    += new EventHandler(txtAccountDescriptionValidated);
            this.txtCompanyPolicy.Validated         += new EventHandler(txtCompanyPolicyValidated);
            this.rdbYesDebitSide.CheckedChanged     += new EventHandler(rdbIsDebitIncreaseCheckedChanged);
            this.rdbNoDebitSide.CheckedChanged      += new EventHandler(rdbNoDebitSideCheckedChanged);
            this.rdbYesActiveAccount.CheckedChanged += new EventHandler(rdbYesActiveAccountCheckedChanged);
            this.rdbNoActiveAccount.CheckedChanged  += new EventHandler(rdbNoActiveAccountCheckedChanged);
            this.btnSearchSummaryAccount.Click      += new EventHandler(btnSearchSummaryAccountClick);
            this.btnClearSummaryAccount.Click       += new EventHandler(btnClearSummaryAccountClick);
        }
コード例 #2
0
        public ChartOfAccountCreate(CommonExchange.SysAccess userInfo, ChartOfAccountLogic chartOfAccountManager)
            : base(userInfo, chartOfAccountManager)
        {
            this.InitializeComponent();

            this.FormClosing     += new FormClosingEventHandler(ClassClossing);
            this.btnCancel.Click += new EventHandler(btnCancelClick);
            this.btnCreate.Click += new EventHandler(btnCreateClick);
        }
コード例 #3
0
        public ChartOfAccountsSearchedOnTextBoxList(CommonExchange.SysAccess userInfo, ChartOfAccountLogic chartOfAccountManager, Boolean isForUpdateChartOfAccount)
        {
            this.InitializeComponent();

            _userInfo = userInfo;
            _chartOfAccountManager = chartOfAccountManager;

            _isForUpdateChartOfAccount = isForUpdateChartOfAccount;

            this.pbxRefresh.Click += new EventHandler(pbxRefreshClick);
        }
コード例 #4
0
        public ChartOfAccountManager(CommonExchange.SysAccess userInfo)
        {
            this.InitializeComponent();

            _userInfo = userInfo;

            _chartOfAccountManager = new ChartOfAccountLogic(_userInfo);

            this.Load           += new EventHandler(ClassLoad);
            this.btnClose.Click += new EventHandler(btnCloseClick);
            this.btnCreateChartOfAccount.Click += new EventHandler(btnCreateChartOfAccountClick);
            this.btnSearchChartOfAccount.Click += new EventHandler(btnSearchChartOfAccountClick);
            this.btnPrintChartOfAccounts.Click += new EventHandler(btnPrintChartOfAccountsClick);
        }
コード例 #5
0
        public ChartOfAccountUpdate(CommonExchange.SysAccess userInfo, CommonExchange.ChartOfAccount chartOfAccountInfo, ChartOfAccountLogic chartOfAccountManager)
            : base(userInfo, chartOfAccountManager)
        {
            this.InitializeComponent();

            _chartOfAccountInfo     = chartOfAccountInfo;
            _tempChartOfAccountInfo = (CommonExchange.ChartOfAccount)chartOfAccountInfo;

            this.FormClosing     += new FormClosingEventHandler(ClassClossing);
            this.btnClose.Click  += new EventHandler(btnCloseClick);
            this.btnUpdate.Click += new EventHandler(btnUpdateClick);
        }