예제 #1
0
 private void FillFormEditingOrg()
 {
     comboAteName.SelectedValue    = OrgAddEdit.GetCurrentAte(idOO);
     comboMembership.SelectedValue = OrgAddEdit.GetCurrentMembership(idOO);
     tbOOCode.Text        = more.Organization.ooCode.ToString();
     tbLongName.Text      = more.Organization.ooLongName.ToString();
     tbShortName.Text     = more.Organization.ooShortName.ToString();
     checkIsPPE9.Checked  = more.Organization.isPPE9;
     checkIsPPE11.Checked = more.Organization.isPPE11;
     tbDirector.Text      = more.Organization.DirectorFIO.ToString();
     tbEmail.Text         = more.Organization.Email.ToString();
     tbPhone.Text         = more.Organization.Phone.ToString();
     tbAdress.Text        = more.Organization.Adress.ToString();
 }
예제 #2
0
        public SelectOrgForContractForm(int idOO)
        {
            try
            {
                LoadForTwoModes();
                OrgId = idOO;

                comboATEs.SelectedValue = OrgAddEdit.GetCurrentAte(idOO);
                tbSearchQuery.Text      = idOO.ToString();
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message);
            }
        }