コード例 #1
0
ファイル: OrgsList.cs プロジェクト: Kiselb/bps
        private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
        {
            switch (this.toolBar1.Buttons.IndexOf(e.Button))
            {
            case 0:
                addOrg();
                break;

            case 1:
                editOrg();
                break;

            case 2:
                deleteOrg();
                break;

            case 4:
                bllOrgs.Fill();
                break;

            case 6:
                this.applyFilter();
                break;

            case 7:
                this.dataView1.RowFilter = "";
                break;

            case 8:
                this.resetFilter();
                break;
            }
        }
コード例 #2
0
 public static void RefreshBook()
 {
     bllBank.Fill();
     bllCity.Fill();
     bllClients.FillClients();
     bllClients.FillGroups();
     bllOrgs.Fill();
     FillOrgsAccount();
 }
コード例 #3
0
        static App()
        {
            AM_Controls.Settings AMSet = new AM_Controls.Settings(new System.Configuration.AppSettingsReader());

            ReportsDirectory           = LoadDirectoryString("ReportsDirectory", "..\\..\\_Reports\\");
            AM_Controls.MsgBoxX.Header = "BPS";
            Connection = new System.Data.SqlClient.SqlConnection();
            System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
            Connection.ConnectionString =
                ConnectionString        = ((string)(configurationAppSettings.GetValue("ConnectionString", typeof(string))));
            OleDbConnectionString       = ((string)(configurationAppSettings.GetValue("OleDbConnectionString", typeof(string))));
            POFormatSettingsFileName    = ((string)(configurationAppSettings.GetValue("POFormatSettingsFile", typeof(string))));


            sqlData = new AM_Lib.sqlData(ConnectionString);

            AppSettingsGet();


            bllBank = new BPS.BLL.Bank.coBanks(Connection);
            bllBank.Fill();

            bllCity = new BPS.BLL.City.coCities(Connection);
            bllCity.Fill();

            bllCurrency = new BPS.BLL.Currency.coCurrency(Connection);
            bllCurrency.Fill();
            bllCurrency.FillHistory();

            bllOrgs = new BPS.BLL.Orgs.coOrgs(Connection);
            bllOrgs.Fill();

            bllRequests = new BPS.BLL.ClientsRequests.coRequest(Connection);
            bllRequests.FillDirectories();

            BPSClients                =
                bllClients            = new BPS.BLL.Clients.coClientEx(Connection);
            bllClients.DataGridStyle += new BPS.BLL.Clients.coClientEx.DataGridStyleEventHandler(OnSetStyle);
            bllClients.AddClient     += new BPS.BLL.Clients.coClientEx.AddClientEventHandler(OnAddingClient);

            DBLock = new AM_Lib.Lock(Connection);

            dsOrgsAccount1 = new BPS.dsOrgsAccount();
        }