public override void LocalControlToServer(Mercury.Server.Application.FormControl parentControl, Mercury.Server.Application.FormControl serverControl)
        {
            base.LocalControlToServer(parentControl, serverControl);

            ((Mercury.Server.Application.FormControlSelection)serverControl).SelectionType = selectionType;


            ((Mercury.Server.Application.FormControlSelection)serverControl).Columns = columns;

            ((Mercury.Server.Application.FormControlSelection)serverControl).Rows = rows;

            ((Mercury.Server.Application.FormControlSelection)serverControl).Direction = direction;

            ((Mercury.Server.Application.FormControlSelection)serverControl).Wrap = wrap;

            ((Mercury.Server.Application.FormControlSelection)serverControl).MaxLength = maxLength;

            ((Mercury.Server.Application.FormControlSelection)serverControl).ReadOnly = readOnly;

            ((Mercury.Server.Application.FormControlSelection)serverControl).SelectionMode = selectionMode;

            ((Mercury.Server.Application.FormControlSelection)serverControl).DataSource = dataSource;

            ((Mercury.Server.Application.FormControlSelection)serverControl).ReferenceSource = referenceSource;


            ((Mercury.Server.Application.FormControlSelection)serverControl).AllowCustomText = allowCustomText;

            ((Mercury.Server.Application.FormControlSelection)serverControl).CustomText = customText;


            ((Mercury.Server.Application.FormControlSelection)serverControl).Items = new Mercury.Server.Application.FormControlSelectionItem[items.Count];

            Int32 currentItemIndex = 0;

            foreach (Structures.SelectionItem currentItem in items)
            {
                ((Mercury.Server.Application.FormControlSelection)serverControl).Items[currentItemIndex] = currentItem.ToServerItem();

                currentItemIndex = currentItemIndex + 1;
            }

            //foreach (Mercury.Server.Application.FormControlSelectionItem currentItem in items) {

            //    Mercury.Server.Application.FormControlSelectionItem copiedItem = new Mercury.Server.Application.FormControlSelectionItem ();

            //    copiedItem.Text = currentItem.Text;

            //    copiedItem.Value = currentItem.Value;

            //    copiedItem.Enabled = currentItem.Enabled;

            //    copiedItem.Selected = currentItem.Selected;

            //    ((Mercury.Server.Application.FormControlSelection) serverControl).Items[currentItemIndex] = copiedItem;

            //    currentItemIndex = currentItemIndex + 1;

            //}

            ((Mercury.Server.Application.FormControlSelection)serverControl).Label = new Mercury.Server.Application.FormControlLabel();

            label.LocalControlToServer(serverControl, ((Mercury.Server.Application.FormControlSelection)serverControl).Label);

            return;
        }
Example #2
0
        public override void LocalControlToServer(Mercury.Server.Application.FormControl parentControl, Mercury.Server.Application.FormControl serverControl)
        {
            base.LocalControlToServer(parentControl, serverControl);


            ((Mercury.Server.Application.FormControlCollection)serverControl).CollectionType = collectionType;

            ((Mercury.Server.Application.FormControlCollection)serverControl).Items = new Int64[items.Count];

            Items.CopyTo(((Mercury.Server.Application.FormControlCollection)serverControl).Items, 0);

            ((Mercury.Server.Application.FormControlCollection)serverControl).SelectedItem = selectedItem;


            ((Mercury.Server.Application.FormControlCollection)serverControl).Label = new Mercury.Server.Application.FormControlLabel();

            label.LocalControlToServer(serverControl, ((Mercury.Server.Application.FormControlCollection)serverControl).Label);

            return;
        }
        override public void BaseConstructor(Application applicationReference, Mercury.Client.Core.Forms.Control parentControl, Mercury.Server.Application.FormControl serverControl)
        {
            base.BaseConstructor(applicationReference, parentControl, serverControl);


            Mercury.Server.Application.FormControlSelection serverSelection = (Mercury.Server.Application.FormControlSelection)serverControl;

            selectionType = serverSelection.SelectionType;


            columns = serverSelection.Columns;

            rows = serverSelection.Rows;

            direction = serverSelection.Direction;

            wrap = serverSelection.Wrap;

            maxLength = serverSelection.MaxLength;

            readOnly = serverSelection.ReadOnly;

            selectionMode = serverSelection.SelectionMode;


            dataSource = serverSelection.DataSource;

            referenceSource = serverSelection.ReferenceSource;


            allowCustomText = serverSelection.AllowCustomText;

            customText = serverSelection.CustomText;


            items = new List <Mercury.Client.Core.Forms.Structures.SelectionItem> ();

            foreach (Mercury.Server.Application.FormControlSelectionItem currentServerItem in serverSelection.Items)
            {
                Structures.SelectionItem selectionItem = new Mercury.Client.Core.Forms.Structures.SelectionItem(currentServerItem);

                items.Add(selectionItem);
            }

            //items = new List<Mercury.Server.Application.FormControlSelectionItem> ();

            //items.AddRange (serverSelection.Items);


            label = new Label(Application, this, serverSelection.Label);

            return;
        }
Example #4
0
        public override void LocalControlToServer(Mercury.Server.Application.FormControl parentControl, Mercury.Server.Application.FormControl serverControl)
        {
            base.LocalControlToServer(parentControl, serverControl);

            ((Mercury.Server.Application.FormControlMetric)serverControl).MemberId = memberId;

            ((Mercury.Server.Application.FormControlMetric)serverControl).MemberMetricId = memberMetricId;

            ((Mercury.Server.Application.FormControlMetric)serverControl).MetricId = metricId;

            ((Mercury.Server.Application.FormControlMetric)serverControl).MetricName = metricName;

            ((Mercury.Server.Application.FormControlMetric)serverControl).MetricDate = metricDate;

            ((Mercury.Server.Application.FormControlMetric)serverControl).MetricValue = metricValue;


            ((Mercury.Server.Application.FormControlMetric)serverControl).Label = new Mercury.Server.Application.FormControlLabel();

            label.LocalControlToServer(serverControl, ((Mercury.Server.Application.FormControlMetric)serverControl).Label);

            return;
        }
Example #5
0
        override public void BaseConstructor(Application applicationReference, Mercury.Client.Core.Forms.Control parentControl, Mercury.Server.Application.FormControl serverControl)
        {
            base.BaseConstructor(applicationReference, parentControl, serverControl);


            Mercury.Server.Application.FormControlCollection serverCollection = (Mercury.Server.Application.FormControlCollection)serverControl;

            collectionType = serverCollection.CollectionType;


            if (serverCollection.Label != null)
            {
                label = new Label(Application, this, serverCollection.Label);
            }


            items.Clear();

            items.AddRange(serverCollection.Items);

            SelectedItem = serverCollection.SelectedItem;

            return;
        }
Example #6
0
        public override void LocalControlToServer(Mercury.Server.Application.FormControl parentControl, Mercury.Server.Application.FormControl serverControl)
        {
            base.LocalControlToServer(parentControl, serverControl);

            ((Mercury.Server.Application.FormControlService)serverControl).MemberId = MemberId;

            ((Mercury.Server.Application.FormControlService)serverControl).MemberServiceId = MemberServiceId;

            ((Mercury.Server.Application.FormControlService)serverControl).ServiceId = serviceId;

            ((Mercury.Server.Application.FormControlService)serverControl).ServiceName = serviceName;

            ((Mercury.Server.Application.FormControlService)serverControl).ServiceDate = serviceDate;

            ((Mercury.Server.Application.FormControlService)serverControl).ServiceDateVisible = serviceDateVisible;

            ((Mercury.Server.Application.FormControlService)serverControl).MostRecentMemberServiceId = MostRecentMemberServiceId;

            ((Mercury.Server.Application.FormControlService)serverControl).MostRecentMemberServiceDate = MostRecentMemberServiceDate;

            ((Mercury.Server.Application.FormControlService)serverControl).MostRecentMemberServiceDateVisible = mostRecentMemberServiceDateVisible;


            ((Mercury.Server.Application.FormControlService)serverControl).Label = new Mercury.Server.Application.FormControlLabel();

            label.LocalControlToServer(serverControl, ((Mercury.Server.Application.FormControlService)serverControl).Label);

            return;
        }
Example #7
0
        override public void BaseConstructor(Application applicationReference, Mercury.Client.Core.Forms.Control parentControl, Mercury.Server.Application.FormControl serverControl)
        {
            base.BaseConstructor(applicationReference, parentControl, serverControl);


            Mercury.Server.Application.FormControlMetric serverMetric = (Mercury.Server.Application.FormControlMetric)serverControl;


            memberId = serverMetric.MemberId;

            memberMetricId = serverMetric.MemberMetricId;

            metricId = serverMetric.MetricId;

            metricName = serverMetric.MetricName;

            metricDate = serverMetric.MetricDate;

            metricValue = serverMetric.MetricValue;


            label = new Label(Application, this, serverMetric.Label);

            return;
        }
Example #8
0
        public override void LocalControlToServer(Mercury.Server.Application.FormControl parentControl, Mercury.Server.Application.FormControl serverControl)
        {
            base.LocalControlToServer(parentControl, serverControl);

            ((Mercury.Server.Application.FormControlText)serverControl).Text = text;

            return;
        }
Example #9
0
        override public void BaseConstructor(Application applicationReference, Mercury.Client.Core.Forms.Control parentControl, Mercury.Server.Application.FormControl serverControl)
        {
            base.BaseConstructor(applicationReference, parentControl, serverControl);


            Mercury.Server.Application.FormControlService serverService = (Mercury.Server.Application.FormControlService)serverControl;


            memberId = serverService.MemberId;

            memberServiceId = serverService.MemberServiceId;

            serviceId = serverService.ServiceId;

            serviceName = serverService.ServiceName;

            serviceDate = serverService.ServiceDate;

            serviceDateVisible = serverService.ServiceDateVisible;

            mostRecentMemberServiceId = serverService.MostRecentMemberServiceId;

            mostRecentMemberServiceDate = serverService.MostRecentMemberServiceDate;

            mostRecentMemberServiceDateVisible = serverService.MostRecentMemberServiceDateVisible;


            label = new Label(Application, this, serverService.Label);

            return;
        }
Example #10
0
        public override void LocalControlToServer(Mercury.Server.Application.FormControl parentControl, Mercury.Server.Application.FormControl serverControl)
        {
            base.LocalControlToServer(parentControl, serverControl);

            ((Mercury.Server.Application.FormControlSection)serverControl).PageBreakAfterSection = pageBreakAfterSection;

            return;
        }
Example #11
0
        public override void LocalControlToServer(Mercury.Server.Application.FormControl parentControl, Mercury.Server.Application.FormControl serverControl)
        {
            base.LocalControlToServer(parentControl, serverControl);

            ((Mercury.Server.Application.FormControlAddress)serverControl).EntityAddressId = EntityAddressId;

            ((Mercury.Server.Application.FormControlAddress)serverControl).AddressType = AddressType;

            ((Mercury.Server.Application.FormControlAddress)serverControl).EffectiveDate = EffectiveDate;

            ((Mercury.Server.Application.FormControlAddress)serverControl).TerminationDate = TerminationDate;

            ((Mercury.Server.Application.FormControlAddress)serverControl).Line1 = Line1;

            ((Mercury.Server.Application.FormControlAddress)serverControl).Line2 = Line2;

            ((Mercury.Server.Application.FormControlAddress)serverControl).City = City;

            ((Mercury.Server.Application.FormControlAddress)serverControl).State = State;

            ((Mercury.Server.Application.FormControlAddress)serverControl).ZipCode = ZipCode;

            ((Mercury.Server.Application.FormControlAddress)serverControl).ZipPlus4 = ZipPlus4;

            ((Mercury.Server.Application.FormControlAddress)serverControl).PostalCode = PostalCode;


            ((Mercury.Server.Application.FormControlAddress)serverControl).Label = new Mercury.Server.Application.FormControlLabel();

            label.LocalControlToServer(serverControl, ((Mercury.Server.Application.FormControlAddress)serverControl).Label);
        }
Example #12
0
        override public void BaseConstructor(Application applicationReference, Mercury.Client.Core.Forms.Control parentControl, Mercury.Server.Application.FormControl serverControl)
        {
            base.BaseConstructor(applicationReference, parentControl, serverControl);


            Mercury.Server.Application.FormControlAddress serverAddress = (Mercury.Server.Application.FormControlAddress)serverControl;

            EntityAddressId = serverAddress.EntityAddressId;

            AddressType = serverAddress.AddressType;

            EffectiveDate = serverAddress.EffectiveDate;

            TerminationDate = serverAddress.TerminationDate;

            Line1 = serverAddress.Line1;

            Line2 = serverAddress.Line2;

            City = serverAddress.City;

            State = serverAddress.State;

            ZipCode = serverAddress.ZipCode;

            ZipPlus4 = serverAddress.ZipPlus4;

            PostalCode = serverAddress.PostalCode;


            label = new Label(Application, this, serverAddress.Label);

            return;
        }
Example #13
0
        public override void LocalControlToServer(Mercury.Server.Application.FormControl parentControl, Mercury.Server.Application.FormControl serverControl)
        {
            base.LocalControlToServer(parentControl, serverControl);

            ((Mercury.Server.Application.FormControlInput)serverControl).InputType = inputType;

            ((Mercury.Server.Application.FormControlInput)serverControl).Text = text;

            ((Mercury.Server.Application.FormControlInput)serverControl).TextMode = textMode;

            ((Mercury.Server.Application.FormControlInput)serverControl).Columns = columns;

            ((Mercury.Server.Application.FormControlInput)serverControl).Rows = rows;

            ((Mercury.Server.Application.FormControlInput)serverControl).Wrap = wrap;

            ((Mercury.Server.Application.FormControlInput)serverControl).MaxLength = maxLength;

            ((Mercury.Server.Application.FormControlInput)serverControl).EmptyMessage = emptyMessage;

            ((Mercury.Server.Application.FormControlInput)serverControl).Validation = validation;

            ((Mercury.Server.Application.FormControlInput)serverControl).ReadOnly = readOnly;

            ((Mercury.Server.Application.FormControlInput)serverControl).SelectionOnFocus = selectionOnFocus;

            ((Mercury.Server.Application.FormControlInput)serverControl).Mask = mask;

            ((Mercury.Server.Application.FormControlInput)serverControl).NumericType = numericType;

            ((Mercury.Server.Application.FormControlInput)serverControl).MinValue = minValue;

            ((Mercury.Server.Application.FormControlInput)serverControl).MaxValue = maxValue;

            ((Mercury.Server.Application.FormControlInput)serverControl).ShowSpinButtons = showSpinButtons;

            ((Mercury.Server.Application.FormControlInput)serverControl).ButtonPosition = buttonPosition;

            ((Mercury.Server.Application.FormControlInput)serverControl).DateFormat = dateFormat;

            ((Mercury.Server.Application.FormControlInput)serverControl).DisplayDateFormat = displayDateFormat;

            ((Mercury.Server.Application.FormControlInput)serverControl).MinDate = minDate;

            ((Mercury.Server.Application.FormControlInput)serverControl).MaxDate = maxDate;

            ((Mercury.Server.Application.FormControlInput)serverControl).Label = new Mercury.Server.Application.FormControlLabel();

            label.LocalControlToServer(serverControl, ((Mercury.Server.Application.FormControlInput)serverControl).Label);

            return;
        }
Example #14
0
        override public void BaseConstructor(Application applicationReference, Mercury.Client.Core.Forms.Control parentControl, Mercury.Server.Application.FormControl serverControl)
        {
            base.BaseConstructor(applicationReference, parentControl, serverControl);


            Mercury.Server.Application.FormControlInput serverInput = (Mercury.Server.Application.FormControlInput)serverControl;

            inputType = serverInput.InputType;

            text = serverInput.Text;

            textMode = serverInput.TextMode;

            columns = serverInput.Columns;

            rows = serverInput.Rows;

            wrap = serverInput.Wrap;

            maxLength = serverInput.MaxLength;

            emptyMessage = serverInput.EmptyMessage;

            validation = serverInput.Validation;

            readOnly = serverInput.ReadOnly;

            selectionOnFocus = serverInput.SelectionOnFocus;

            mask = serverInput.Mask;

            numericType = serverInput.NumericType;

            minValue = serverInput.MinValue;

            maxValue = serverInput.MaxValue;

            showSpinButtons = serverInput.ShowSpinButtons;

            buttonPosition = serverInput.ButtonPosition;

            dateFormat = serverInput.DateFormat;

            displayDateFormat = serverInput.DisplayDateFormat;

            minDate = serverInput.MinDate;

            maxDate = serverInput.MaxDate;


            label = new Label(Application, this, serverInput.Label);

            return;
        }