Esempio n. 1
0
        public void BindData(atriumDB.FileContactDataTable dt)
        {
            sstMngr = FM.GetSSTMng();

            ucAddress1.FM = FM;
            addressBindingSource.DataMember = FM.DB.Address.TableName;
            addressBindingSource.DataSource = FM.DB;

            partyBindingSource.DataSource = dt.DataSet;
            partyBindingSource.DataMember = "Contact";

            filePartyBindingSource.DataSource = dt.DataSet;
            filePartyBindingSource.DataMember = dt.TableName;

            ucAddress1.DataSource = addressBindingSource;


            UIHelper.ComboBoxInit("vcontacttypeparty", contactTypeCodeucMultiDropDown, FM);
            UIHelper.ComboBoxInit("HearingMethod", mccHearingMethod, FM);
            UIHelper.ComboBoxInit("HearingMethod", filePartyGridEX.DropDowns["ddHearingMethod"], FM);
            UIHelper.ComboBoxInit("vcontacttypeparty", filePartyGridEX.DropDowns["ddContactType"], FM);

            UIHelper.ComboBoxInit("Sex", sexCodeucMultiDropDown, FM);
            UIHelper.ComboBoxInit("LanguageCode", languageCodeucMultiDropDown, FM);

            LoadContactIdDataView();

            dt.ColumnChanged            += new DataColumnChangeEventHandler(dt_ColumnChanged);
            FM.DB.Contact.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged);
            FM.DB.Address.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged);
            FM.GetFileContact().OnUpdate += new atLogic.UpdateEventHandler(ucFileParty_OnUpdate);
            FM.GetPerson().OnUpdate      += new atLogic.UpdateEventHandler(ucFileParty_OnUpdate);
            FM.GetAddress().OnUpdate     += new atLogic.UpdateEventHandler(ucFileParty_OnUpdate);
        }
Esempio n. 2
0
 internal FileContactBE(FileManager pBEMng)
     : base(pBEMng, pBEMng.DB.FileContact)
 {
     myA             = pBEMng;
     myFileContactDT = (atriumDB.FileContactDataTable)myDT;
     if (!myA.AtMng.AppMan.UseService && myODAL == null)
     {
         myODAL = myA.AtMng.DALMngr.GetFileContact();
     }
 }
Esempio n. 3
0
        public void BindFileContactData(atriumDB.FileContactDataTable dt)
        {
            UIHelper.ComboBoxInit("ContactType", ucMultiDropDown1, FM);
            UIHelper.ComboBoxInit("LanguageCode", languageCodeucMultiDropDown, FM);
            UIHelper.ComboBoxInit("NativeLanguage", ucMultiDDNativeLanguage, FM);

            ucAddress1.FM = FM;
            if (FM.GetSSTMng() == null)
            {
                cmdEditParticipant.Text = "Edit Contact Info";
                NativeLang.Visible = false;
                ucMultiDDNativeLanguage.Visible = false;
                chkInterpreter.Visible = false;
                notesEditBox.Top = 74;
                notesLabel.Top = 78;
                fileContactGridEX.RootTable.Columns["isParty"].Visible = false;
                fileContactGridEX.RootTable.Columns["isPending"].Visible = false;
            }
            else
                fileContactGridEX.RootTable.Columns["isOfficer"].Visible = false;

            addressBindingSource.DataMember = FM.DB.Address.TableName;
            addressBindingSource.DataSource = FM.DB;

 
            contactBindingSource.DataMember = "Contact";
            contactBindingSource.DataSource = dt.DataSet;
            

            ucAddress1.DataSource = addressBindingSource;

        
            DataView dv = new DataView(dt, "", "", DataViewRowState.ModifiedCurrent | DataViewRowState.Unchanged);
            fileContactBindingSource.DataSource = dv;
            fileContactBindingSource.DataMember = "";
            
            UIHelper.ComboBoxInit("ContactType", fileContactGridEX.DropDowns["ddContactType"], FM);
            //UIHelper.ComboBoxInit("vofficelist", fileContactGridEX.DropDowns["ddOffice"], FM);
            //UIHelper.ComboBoxInit("vofficelist", fileContactGridEX.DropDowns["ddOfficeCode"], FM);
            ucOfficeSelectBox1.AtMng = FM.AtMng;

            dt.ColumnChanged+= new DataColumnChangeEventHandler(dt_ColumnChanged);
            FM.DB.Contact.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged);
            FM.DB.Address.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged);

            FM.GetFileContact().OnUpdate += new atLogic.UpdateEventHandler(ucFileContact_OnUpdate);
            FM.GetPerson().OnUpdate += new atLogic.UpdateEventHandler(ucFileContact_OnUpdate);
            FM.GetAddress().OnUpdate += new atLogic.UpdateEventHandler(ucFileContact_OnUpdate);
        }