Esempio n. 1
0
 private void Button4_Click(object sender, EventArgs e)
 {
     textBox_UNP_Update_Delete.Clear();
     textBox_Full_Name_Org_Update_Delete.Clear();
     textBox_Short_Name_Org_Update_Delete.Clear();
     maskedTextBox_Create_date_Org.Clear();
     maskedTextBox_Create_date_Org.Clear();
     comboBox_Countyr_Org.SelectedValue  = "(не выбрано)";
     comboBox_Countyr_Pers.SelectedValue = "(не выбрано)";
     comboBox_Section.SelectedValue      = "(не выбрано)";
     checkBox_Ownership_Org.Checked      = false;
     Tax_Debt.Checked                    = false;
     Prev_Broker_Client.Checked          = false;
     Debts_Enforcement_Documents.Checked = false;
     False_Business.Checked              = false;
     Special_Risc.Checked                = false;
     Execute_Proc.Checked                = false;
     Bankruptcy_Proc.Checked             = false;
     Liquidation_Proc.Checked            = false;
     Resident.Checked                    = false;
     Broker_Client.Checked               = false;
     Trading_experience.Checked          = false;
     Trader.Checked        = false;
     First_Accred.Checked  = false;
     Second_Accred.Checked = false;
     Manufacturer.Checked  = false;
     Exchenge_Trading_Disorders.Checked = false;
     Negativ_Data.Checked      = false;
     Reputation.Checked        = false;
     Prev_Liquidated.Checked   = false;
     Prev_Bankruptcy.Checked   = false;
     Prev_Execute_Proc.Checked = false;
     Prev_Tax_Debt.Checked     = false;
     Prev_State_Debt.Checked   = false;
     Negativ_Data_Pers.Checked = false;
     Name_Owner.Clear();
     TextBox_Name_Head.Clear();
     Description_Pers.Clear();
     Description_ORG.Clear();
     textBox_BrokerOpinion.Clear();
     textBox_Section_Head_Opinion.Clear();
     textBox_Auditor_Opinion.Clear();
     checkBox_Forced_Deposite_Small.Checked = false;
     checkBox_Forced_Deposite_Large.Checked = false;
     Risc_Level.Visible = false;
     label_Not_Two_Depos_Small.Visible = false;
     label_Not_Two_Depos_Largw.Visible = false;
 }
Esempio n. 2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(textBox_UNP_Update_Delete.Text) && string.IsNullOrWhiteSpace(textBox_UNP_Update_Delete.Text))
            {
                ORG.UNP_Org = null;
            }
            else
            {
                ORG.UNP_Org = textBox_UNP_Update_Delete.Text;
            }

            if (string.IsNullOrEmpty(textBox_Short_Name_Org_Update_Delete.Text))
            {
                ORG.Short_Name_Org = null;
            }
            else
            {
                ORG.Short_Name_Org = textBox_Short_Name_Org_Update_Delete.Text;
            }

            if (string.IsNullOrEmpty(textBox_Full_Name_Org_Update_Delete.Text))
            {
                ORG.Full_Name_Org = null;
            }
            else
            {
                ORG.Full_Name_Org = textBox_Full_Name_Org_Update_Delete.Text;
            }

            SQL_ADD_Parametrs sQL_Parametrs_Apdate = new SQL_ADD_Parametrs();

            sQL_Parametrs_Apdate.Find_For_Update_ORG(oRG);

            textBox_UNP_Update_Delete.Text            = ORG.UNP_Org;
            textBox_Short_Name_Org_Update_Delete.Text = ORG.Short_Name_Org;
            textBox_Full_Name_Org_Update_Delete.Text  = ORG.Full_Name_Org;

            maskedTextBox_Create_date_Org.Text = Convert.ToString(ORG.Create_date_Org);
            comboBox_Countyr_Org.Text          = ORG.Countyr_Org;
            comboBox_Section.Text = ORG.Name_Section;

            Description_ORG.Text       = ORG.Description_ORG;
            comboBox_Countyr_Pers.Text = ORG.Country_Pers;
            Name_Owner.Text            = ORG.Owner_Name;

            if (ORG.Ownership_Org == 1)
            {
                checkBox_Ownership_Org.Checked = true;
            }
            else
            {
                checkBox_Ownership_Org.Checked = false;
            }
            if (ORG.Tax_Debt == 1)
            {
                Tax_Debt.Checked = true;
            }
            else
            {
                Tax_Debt.Checked = false;
            }
            if (ORG.Debts_Enforcement_Documents == 1)
            {
                Debts_Enforcement_Documents.Checked = false;
            }
            else
            {
                Debts_Enforcement_Documents.Checked = false;
            }
            if (ORG.Debts_Enforcement_Documents == 1)
            {
                Debts_Enforcement_Documents.Checked = true;
            }
            else
            {
                Debts_Enforcement_Documents.Checked = false;
            }
            if (ORG.False_Business == 1)
            {
                False_Business.Checked = true;
            }
            else
            {
                False_Business.Checked = false;
            }
            if (ORG.Special_Risc == 1)
            {
                Special_Risc.Checked = true;
            }
            else
            {
                Special_Risc.Checked = false;
            }
            if (ORG.Special_Risc == 1)
            {
                Special_Risc.Checked = true;
            }
            else
            {
                Special_Risc.Checked = false;
            }
            if (ORG.Execute_Proc == 1)
            {
                Execute_Proc.Checked = true;
            }
            else
            {
                Execute_Proc.Checked = false;
            }
            if (ORG.Bankruptcy_Proc == 1)
            {
                Bankruptcy_Proc.Checked = true;
            }
            else
            {
                Bankruptcy_Proc.Checked = false;
            }
            if (ORG.Liquidation_Proc == 1)
            {
                Liquidation_Proc.Checked = true;
            }
            else
            {
                Liquidation_Proc.Checked = false;
            }
            if (ORG.Resident == 1)
            {
                Resident.Checked = true;
            }
            else
            {
                Resident.Checked = false;
            }
            if (ORG.Broker_Client == 1)
            {
                Broker_Client.Checked = true;
            }
            else
            {
                Broker_Client.Checked = false;
            }
            if (ORG.Prev_Broker_Client == 1)
            {
                Prev_Broker_Client.Checked = true;
            }
            else
            {
                Prev_Broker_Client.Checked = false;
            }
            if (ORG.Trading_experience == 1)
            {
                Trading_experience.Checked = true;
            }
            else
            {
                Trading_experience.Checked = false;
            }
            if (ORG.Trader == 1)
            {
                Trader.Checked = true;
            }
            else
            {
                Trader.Checked = false;
            }
            if (ORG.Manufacturer == 1)
            {
                Manufacturer.Checked = true;
            }
            else
            {
                Manufacturer.Checked = false;
            }
            if (ORG.First_Accred == 1)
            {
                First_Accred.Checked = true;
            }
            else
            {
                First_Accred.Checked = false;
            }
            if (ORG.Second_Accred == 1)
            {
                Second_Accred.Checked = true;
            }
            else
            {
                Second_Accred.Checked = false;
            }
            if (ORG.Exchenge_Trading_Disorders == 1)
            {
                Exchenge_Trading_Disorders.Checked = true;
            }
            else
            {
                Exchenge_Trading_Disorders.Checked = false;
            }
            if (ORG.Negativ_Data == 1)
            {
                Negativ_Data.Checked = true;
            }
            else
            {
                Negativ_Data.Checked = false;
            }
            if (ORG.Negativ_Data_Pers == 1)
            {
                Negativ_Data_Pers.Checked = true;
            }
            else
            {
                Negativ_Data_Pers.Checked = false;
            }
            if (ORG.Reputation == 1)
            {
                Reputation.Checked = true;
            }
            else
            {
                Reputation.Checked = false;
            }
            if (ORG.Prev_Liquidated == 1)
            {
                Prev_Liquidated.Checked = true;
            }
            else
            {
                Prev_Liquidated.Checked = false;
            }
            if (ORG.Prev_Bankruptcy == 1)
            {
                Prev_Bankruptcy.Checked = true;
            }
            else
            {
                Prev_Bankruptcy.Checked = false;
            }
            if (ORG.Prev_State_Debt == 1)
            {
                Prev_State_Debt.Checked = true;
            }
            else
            {
                Prev_State_Debt.Checked = false;
            }
            if (ORG.Prev_Tax_Debt == 1)
            {
                Prev_Tax_Debt.Checked = true;
            }
            else
            {
                Prev_Tax_Debt.Checked = false;
            }
            if (ORG.Prev_Execute_Proc == 1)
            {
                Prev_Execute_Proc.Checked = true;
            }
            else
            {
                Prev_Execute_Proc.Checked = false;
            }
            if (ORG.Broker_Opinion == "нет")
            {
                textBox_BrokerOpinion.Clear();
            }
            else
            {
                textBox_BrokerOpinion.Text = ORG.Broker_Opinion;
            }
            if (ORG.Section_Head_Opinion == "нет")
            {
                textBox_Section_Head_Opinion.Clear();
            }
            else
            {
                textBox_Section_Head_Opinion.Text = ORG.Section_Head_Opinion;
            }
            if (ORG.Auditor_Opinion == "нет")
            {
                textBox_Auditor_Opinion.Clear();
            }
            else
            {
                textBox_Auditor_Opinion.Text = ORG.Auditor_Opinion;
            }
            if (ORG.Head_Name == "нет")
            {
                TextBox_Name_Head.Clear();
            }
            else
            {
                TextBox_Name_Head.Text = ORG.Head_Name;
            }
            if (ORG.Description_Pers == "нет")
            {
                Description_Pers.Clear();
            }
            else
            {
                Description_Pers.Text = ORG.Description_Pers;
            }
            if (ORG.Forced_Deposite_Small == 1)
            {
                checkBox_Forced_Deposite_Small.Checked = true;
            }
            else
            {
                checkBox_Forced_Deposite_Small.Checked = false;
            }
            if (ORG.Forced_Deposite_Large == 1)
            {
                checkBox_Forced_Deposite_Large.Checked = true;
            }
            else
            {
                checkBox_Forced_Deposite_Large.Checked = false;
            }

            Risc_Level.Text    = Convert.ToString(ORG.Risc_Level);
            Risc_Level.Visible = true;
        }