Exemplo n.º 1
0
        //private CountryController               CntrlCY;


        public ClientForm()
        {
            InitializeComponent(); if (DesignMode || (Site != null && Site.DesignMode))
            {
                return;
            }
            //template
            Mapper["Id"]        = txtId;
            Mapper["CreatedBy"] = txtCreatedBy;
            Mapper["CreatedOn"] = txtCreatedOn;
            Mapper["UpdatedBy"] = txtUpdatedBy;
            Mapper["UpdatedOn"] = txtUpdatedOn;
            Mapper["ReadOnly"]  = chkReadOnly;
            //data
            Mapper["ClientTypeId"]   = txtClientTypeId;
            Mapper["ShortName"]      = txtShortName;
            Mapper["LongName"]       = txtLongName;
            Mapper["NameArabic"]     = txtNameArabic;
            Mapper["DateOfBirth"]    = txtDateOfBirth;
            Mapper["IsActive"]       = chkIsActive;
            Mapper["BillingAddress"] = txtBillingAddress;
            Mapper["PhoneNumber"]    = txtPhoneNumber;
            Mapper["FaxNumber"]      = txtFaxNumber;
            Mapper["Website"]        = txtWebsite;
            Mapper["CountryId"]      = txtCountryId;
            //actions
            SaveButton   = btnSave;
            DeleteButton = btnDelete;
            NewButton    = btnNew;
            //pick lists
            PickList[btnPLCountry]         = txtCountryId;
            PickList[btnPLClientType]      = txtClientTypeId;
            PickList[btnPLClientShortName] = txtId;

            CntrlCO = DBControllersFactory.Contact();
            CntrlCI = DBControllersFactory.ClientIdentification();
            CntrlID = DBControllersFactory.Identification();
            CntrlCC = DBControllersFactory.ClientContact();
        }