コード例 #1
0
        private void editBox1_ButtonClick(object sender, EventArgs e)
        {
            fBrowseOffices f = new fBrowseOffices(AtMng);

            f.ShowDialog();

            if (f.OfficeId != 0)
            {
                isChanged = true;
                OfficeId  = f.OfficeId;
            }
            f.Close();
        }
コード例 #2
0
        private void ConvertToOfficer()
        {
            //find out what office they belong to
            fBrowseOffices f = new fBrowseOffices(FM.AtMng);

            if (f.ShowDialog() == DialogResult.OK)
            {

                int officeid = f.OfficeId;

                //get officemng
                atriumBE.OfficeManager ofm = FM.AtMng.GetOffice(officeid);

                //convert
                ofm.GetOfficer().AddFromContact(FM.GetPerson().Load(CurrentRow().ContactId), ofm.CurrentOffice);

                //goto new record to finish operation
                fFile ff = FileForm().MainForm.OpenFile(ofm.CurrentOffice.OfficeFileId);

                ff.MoreInfo("officer", CurrentRow().ContactId);
            }

        }