Ejemplo n.º 1
0
        public Business(string ID)
        {
            lObj = new TableWrapper("Business");
            lObj.Fields["Bus_ID"].Value = ID;
            lObj.Load();

            PhysicalAddress = new Address(
                lObj.Fields["Addr1"],
                lObj.Fields["Addr2"],
                lObj.Fields["City"],
                lObj.Fields["State"],
                lObj.Fields["Zip"],
                lObj.Fields["Contact"]
                );

            MailingAddress = new Address(
                lObj.Fields["BAddr1"],
                lObj.Fields["BAddr2"],
                lObj.Fields["B_City"],
                lObj.Fields["B_State"],
                lObj.Fields["B_Zip"],
                lObj.Fields["BContact"]
                );

            BillingAddress = new Address(
                lObj.Fields["MAddr1"],
                lObj.Fields["MAddr2"],
                lObj.Fields["M_City"],
                lObj.Fields["M_State"],
                lObj.Fields["M_Zip"],
                lObj.Fields["MContact"]
                );

            m_custom = new BusinessCustom();
            m_custom.Initialize();
            m_custom.Load(ID);
        }