Ejemplo n.º 1
0
        private void createReturnWareStepControls()
        {
            returnWareControls = new ReturnWareControls();

            int top = TOPMOST_CONTROL_Y_POSITION;


            returnWareControls.WareLabel = MainProcess.CreateLabel(string.Empty, 5, top, 230,
                                                                   MobileFontSize.Little, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Regular);

            top += VERTICAL_DISTANCE_BETWEEN_CONTROLS;
            returnWareControls.PartyLabel = MainProcess.CreateLabel(string.Empty, 5, top, 230,
                                                                    MobileFontSize.Little, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Regular);

            top += VERTICAL_DISTANCE_BETWEEN_CONTROLS;
            returnWareControls.QuantityLabel = MainProcess.CreateLabel("Кол-во единиц", 5, top, 160,
                                                                       MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Regular);
            returnWareControls.UnitsCountTextBox = MainProcess.CreateTextBox(195, top, 40, string.Empty,
                                                                             ControlsStyle.LabelNormal, null, false);


            top += VERTICAL_DISTANCE_BETWEEN_CONTROLS;
            returnWareControls.QuantityBoxesLabel = MainProcess.CreateLabel("Кол-во упак.", 5, top, 160,
                                                                            MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Regular);
            returnWareControls.PacksCountTextBox = MainProcess.CreateTextBox(195, top, 40, string.Empty,
                                                                             ControlsStyle.LabelNormal, null, false);


            top += VERTICAL_DISTANCE_BETWEEN_CONTROLS;
            returnWareControls.LinerButton = MainProcess.CreateButton("<без прокладки>", 5, top, 230, 30, string.Empty,
                                                                      chooseLiner_ButtonClick);

            top += VERTICAL_DISTANCE_BETWEEN_CONTROLS + 10;
            returnWareControls.LinersQuantityLabel = MainProcess.CreateLabel("Кол-во прокл.", 5, top, 160,
                                                                             MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Regular);
            returnWareControls.LinersCountTextBox = MainProcess.CreateTextBox(195, top, 40, string.Empty,
                                                                              ControlsStyle.LabelNormal, null, false);

            updateLinerName();

            top += VERTICAL_DISTANCE_BETWEEN_CONTROLS;
            returnWareControls.ScanPalletLabel = MainProcess.CreateLabel(string.Empty, 5, top, 230,
                                                                         MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Bold);

            top += VERTICAL_DISTANCE_BETWEEN_CONTROLS;
            returnWareControls.NewPalletButton = MainProcess.CreateButton("Новая паллета", 5, top, 230, 40, string.Empty,
                                                                          newPallet_ButtonClick);
        }
Ejemplo n.º 2
0
        private void createReturnWareStepControls()
        {
            returnWareControls = new ReturnWareControls();

            int top = TOPMOST_CONTROL_Y_POSITION;

            returnWareControls.WareLabel = MainProcess.CreateLabel(string.Empty, 5, top, 230,
                MobileFontSize.Little, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Regular);

            top += VERTICAL_DISTANCE_BETWEEN_CONTROLS;
            returnWareControls.PartyLabel = MainProcess.CreateLabel(string.Empty, 5, top, 230,
                MobileFontSize.Little, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Regular);

            top += VERTICAL_DISTANCE_BETWEEN_CONTROLS;
            returnWareControls.QuantityLabel = MainProcess.CreateLabel("Кол-во единиц", 5, top, 160,
                MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Regular);
            returnWareControls.UnitsCountTextBox = MainProcess.CreateTextBox(195, top, 40, string.Empty,
                ControlsStyle.LabelNormal, null, false);

            top += VERTICAL_DISTANCE_BETWEEN_CONTROLS;
            returnWareControls.QuantityBoxesLabel = MainProcess.CreateLabel("Кол-во упак.", 5, top, 160,
                MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Regular);
            returnWareControls.PacksCountTextBox = MainProcess.CreateTextBox(195, top, 40, string.Empty,
                ControlsStyle.LabelNormal, null, false);

            top += VERTICAL_DISTANCE_BETWEEN_CONTROLS;
            returnWareControls.LinerButton = MainProcess.CreateButton("<без прокладки>", 5, top, 230, 30, string.Empty,
                chooseLiner_ButtonClick);

            top += VERTICAL_DISTANCE_BETWEEN_CONTROLS + 10;
            returnWareControls.LinersQuantityLabel = MainProcess.CreateLabel("Кол-во прокл.", 5, top, 160,
                MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Regular);
            returnWareControls.LinersCountTextBox = MainProcess.CreateTextBox(195, top, 40, string.Empty,
                ControlsStyle.LabelNormal, null, false);

            updateLinerName();

            top += VERTICAL_DISTANCE_BETWEEN_CONTROLS;
            returnWareControls.ScanPalletLabel = MainProcess.CreateLabel(string.Empty, 5, top, 230,
                MobileFontSize.Normal, MobileFontPosition.Left, MobileFontColors.Default, FontStyle.Bold);

            top += VERTICAL_DISTANCE_BETWEEN_CONTROLS;
            returnWareControls.NewPalletButton = MainProcess.CreateButton("Новая паллета", 5, top, 230, 40, string.Empty,
                newPallet_ButtonClick);
        }