예제 #1
0
        public CheckOrgTo(BLL.ClientsRequests.DataSets.dsClientsRequests.ClientsRequestsRow rw, int iCheckType, int iOrgIDOrgAccountID)
        {
            //
            // Required for Windows Form Designer support
            //
            this.rwReq      = rw;
            this.iCheckType = iCheckType;
            //App.FillOrgsAccount();
            this.iOrgID        = iOrgIDOrgAccountID;
            this.iOrgAccountID = iOrgIDOrgAccountID;
            InitializeComponent();

            if (iCheckType == 2)
            {
                App.FillOrgsAccount();
                this.dvRAccounts.Table     = App.DsOrgsAccount.OrgsAccounts;
                this.dvRAccounts.RowFilter = "OrgID=" + iOrgID + " and CurrencyID='" + rw.CurrencyFrom + "'";
                this.dataGrid1.DataSource  = this.dvRAccounts;
                App.SetDataGridTableStyle(this.dataGridTableStyle2);
                this.dataGridTableStyle2.SelectionForeColor = System.Drawing.Color.Red;
                if (this.dvRAccounts.Count == 0)
                {
                    this.bnSelect.Enabled = false;
                }
                this.tbMessage.Text = "Не найден р.счёт организации получателя <" + rw.OrgTo + "> с ИНН " + rw.OrgToINN + ".\r\n Возможно есть неточность в реквизитах.\r\n" +
                                      "Если в списке счетов имеется подходящий, выделите его и нажмите кнопку <Выбрать>.\r\n Для создания нового счёта нажмите <Новый>.";
            }
            else
            {
                bllBank = new BPS.BLL.Bank.coBanks();
                bllCity = new BPS.BLL.City.coCities();
                bllBank.Fill();
                bllCity.Fill();
//				this.dvBanks.Table = App.DsBanks.Banks;
                this.dvBanks.Table        = bllBank.DataSet.Banks;
                this.dataGrid1.DataSource = this.dvBanks;
                App.SetDataGridTableStyle(this.dataGridTableStyle3);
                this.dataGridTableStyle3.SelectionForeColor = System.Drawing.Color.Red;
                this.tbMessage.Text = "Не найден банк организации получателя <" + rw.OrgTo + "> с ИНН " + rw.OrgToINN + ".\r\n Возможно есть неточность в реквизитах.\r\n" +
                                      "Если в списке банков имеется подходящий, выделите его и нажмите кнопку <Выбрать>. \r\nДля создания нового банка нажмите <Новый>.";
            }
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
예제 #2
0
        public CheckOrgTo(BLL.ClientsRequests.DataSets.dsClientsRequests.ClientsRequestsRow rw, int iCheckType)
        {
            //
            // Required for Windows Form Designer support
            //
            this.rwReq      = rw;
            this.iCheckType = iCheckType;
            //App.FillOrgsAccount();
            InitializeComponent();

            if (iCheckType == 1)
            {
                App.SetDataGridTableStyle(this.dataGridTableStyle1);
                this.dataGridTableStyle1.SelectionForeColor = System.Drawing.Color.Red;
                this.tbMessage.Text = "Не найдена организация получатель <" + rw.OrgTo + "> с ИНН " + rw.OrgToINN + ".\r\n Возможно есть неточность в реквизитах.\r\n" +
                                      "Если в списке организаций имеется подходящая, выделите её и нажмите кнопку <Выбрать>. \r\nДля создания новой организации нажмите <Новая>.";
                this.dvOrgs.Table = App.DsOrgs.Orgs;
            }
        }