object frmPlanificacionMasasProduccion: TfrmPlanificacionMasasProduccion
  Left = 0
  Top = 0
  Caption = 'Planificaci'#243'n de Masas y Lotes de Producci'#243'n'
  ClientHeight = 720
  ClientWidth = 1200
  Color = 15921906
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -12
  Font.Name = 'Segoe UI'
  Font.Style = []
  Position = poScreenCenter
  OnCreate = FormCreate
  OnDestroy = FormDestroy
  OnShow = FormShow
  TextHeight = 15
  object pnlTop: TPanel
    Left = 0
    Top = 0
    Width = 1200
    Height = 72
    Align = alTop
    BevelOuter = bvNone
    Color = 2894892
    ParentBackground = False
    TabOrder = 0
    object lblTitle: TLabel
      Left = 18
      Top = 10
      Width = 600
      Height = 25
      Caption = 'PLANIFICACI'#211'N DE PRODUCCI'#211'N Y '#211'RDENES DE FABRICACI'#211'N'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWhite
      Font.Height = -19
      Font.Name = 'Segoe UI'
      Font.Style = [fsBold]
      ParentFont = False
    end
    object lblSubtitle: TLabel
      Left = 19
      Top = 38
      Width = 780
      Height = 15
      Caption = 'Gesti'#243'n de masas base, subrecetas de masa madre y 1er empaste, reparto de sabores, lotes correlativos y stock envasado PENDIENTE'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = 13816530
      Font.Height = -12
      Font.Name = 'Segoe UI'
      Font.Style = []
      ParentFont = False
    end
    object pnlKpis: TPanel
      Left = 820
      Top = 4
      Width = 370
      Height = 64
      Align = alRight
      BevelOuter = bvNone
      Color = 2894892
      ParentBackground = False
      TabOrder = 0
      object pnlKpiRecetas: TPanel
        Left = 4
        Top = 2
        Width = 115
        Height = 58
        BevelOuter = bvNone
        Color = 4210752
        ParentBackground = False
        TabOrder = 0
        object lblKpiRecetasVal: TLabel
          Left = 0
          Top = 6
          Width = 115
          Height = 25
          Alignment = taCenter
          AutoSize = False
          Caption = '0'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = 65535
          Font.Height = -19
          Font.Name = 'Segoe UI'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object lblKpiRecetasLbl: TLabel
          Left = 0
          Top = 34
          Width = 115
          Height = 15
          Alignment = taCenter
          AutoSize = False
          Caption = 'Recetas c/D'#233'ficit'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = 14474460
          Font.Height = -11
          Font.Name = 'Segoe UI'
          Font.Style = []
          ParentFont = False
        end
      end
      object pnlKpiMasas: TPanel
        Left = 125
        Top = 2
        Width = 120
        Height = 58
        BevelOuter = bvNone
        Color = 4210752
        ParentBackground = False
        TabOrder = 1
        object lblKpiMasasVal: TLabel
          Left = 0
          Top = 6
          Width = 120
          Height = 25
          Alignment = taCenter
          AutoSize = False
          Caption = '0.00'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = 8454016
          Font.Height = -19
          Font.Name = 'Segoe UI'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object lblKpiMasasLbl: TLabel
          Left = 0
          Top = 34
          Width = 120
          Height = 15
          Alignment = taCenter
          AutoSize = False
          Caption = 'Total Masas Plan'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = 14474460
          Font.Height = -11
          Font.Name = 'Segoe UI'
          Font.Style = []
          ParentFont = False
        end
      end
      object pnlKpiUnidades: TPanel
        Left = 250
        Top = 2
        Width = 115
        Height = 58
        BevelOuter = bvNone
        Color = 4210752
        ParentBackground = False
        TabOrder = 2
        object lblKpiUnidadesVal: TLabel
          Left = 0
          Top = 6
          Width = 115
          Height = 25
          Alignment = taCenter
          AutoSize = False
          Caption = '0'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = 16768880
          Font.Height = -19
          Font.Name = 'Segoe UI'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object lblKpiUnidadesLbl: TLabel
          Left = 0
          Top = 34
          Width = 115
          Height = 15
          Alignment = taCenter
          AutoSize = False
          Caption = 'Uds a Fabricar'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = 14474460
          Font.Height = -11
          Font.Name = 'Segoe UI'
          Font.Style = []
          ParentFont = False
        end
      end
    end
  end
  object pnlOptions: TPanel
    Left = 0
    Top = 72
    Width = 1200
    Height = 44
    Align = alTop
    BevelOuter = bvNone
    Color = clWhite
    ParentBackground = False
    TabOrder = 1
    object lblFechaLote: TLabel
      Left = 14
      Top = 13
      Width = 101
      Height = 15
      Caption = 'Fecha Lote / Prod.:'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = 'Segoe UI Semibold'
      Font.Style = [fsBold]
      ParentFont = False
    end
    object lblAlmacen: TLabel
      Left = 230
      Top = 13
      Width = 92
      Height = 15
      Caption = 'Almac'#233'n Destino:'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = 'Segoe UI Semibold'
      Font.Style = [fsBold]
      ParentFont = False
      Visible = False
    end
    object lblObrador: TLabel
      Left = 235
      Top = 13
      Width = 47
      Height = 15
      Caption = 'Obrador:'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = 'Segoe UI Semibold'
      Font.Style = [fsBold]
      ParentFont = False
    end
    object dtpFechaLote: TDateTimePicker
      Left = 120
      Top = 9
      Width = 100
      Height = 23
      Date = 46312.000000000000000000
      Time = 0.500000000000000000
      TabOrder = 0
      OnChange = dtpFechaLoteChange
    end
    object cbbAlmacen: TComboBox
      Left = 326
      Top = 9
      Width = 175
      Height = 23
      Style = csDropDownList
      TabOrder = 1
      Visible = False
      OnChange = cbbAlmacenChange
    end
    object cbbObrador: TComboBox
      Left = 290
      Top = 9
      Width = 155
      Height = 23
      Style = csDropDownList
      TabOrder = 2
      OnChange = cbbObradorChange
    end
    object btnDuplicarPlan: TBitBtn
      Tag = 999
      Left = 460
      Top = 8
      Width = 195
      Height = 26
      Caption = ' Duplicar Plan a otro d'#237'a...'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clNavy
      Font.Height = -12
      Font.Name = 'Segoe UI Semibold'
      Font.Style = [fsBold]
      ParentFont = False
      TabOrder = 3
      OnClick = btnDuplicarPlanClick
    end
    object chkSoloConDeficit: TCheckBox
      Left = 485
      Top = 12
      Width = 170
      Height = 17
      Caption = 'S'#243'lo recetas con d'#233'ficit'
      Checked = True
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = 'Segoe UI Semibold'
      Font.Style = [fsBold]
      ParentFont = False
      State = cbChecked
      TabOrder = 3
      Visible = False
      OnClick = chkSoloConDeficitClick
    end
    object btnRecalcular: TBitBtn
      Left = 930
      Top = 7
      Width = 105
      Height = 27
      Caption = ' Recalcular'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = 'Segoe UI'
      Font.Style = []
      ParentFont = False
      TabOrder = 4
      Visible = False
      OnClick = btnRecalcularClick
    end
  end
  object pnlBody: TPanel
    Left = 0
    Top = 116
    Width = 1200
    Height = 552
    Align = alClient
    BevelOuter = bvNone
    TabOrder = 2
    object pcModo: TPageControl
      Left = 0
      Top = 0
      Width = 1200
      Height = 552
      ActivePage = tsPlanManual
      Align = alClient
      TabOrder = 0
      OnChange = pcModoChange
      object tsPlanManual: TTabSheet
        Caption = 'Planificaci'#243'n de Producci'#243'n por Receta y Reparto'
        object pnlPlanLeft: TPanel
          Left = 0
          Top = 0
          Width = 730
          Height = 522
          Align = alLeft
          BevelOuter = bvNone
          Color = clWhite
          ParentBackground = False
          TabOrder = 0
          object pnlSelReceta: TPanel
            Left = 0
            Top = 0
            Width = 710
            Height = 90
            Align = alTop
            BevelOuter = bvNone
            Color = clWhite
            ParentBackground = False
            TabOrder = 0
            object lblRecetaPlan: TLabel
              Left = 14
              Top = 8
              Width = 195
              Height = 15
              Caption = 'Receta Principal / Base a Elaborar:'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI Semibold'
              Font.Style = [fsBold]
              ParentFont = False
            end
            object lblCantidadMasas: TLabel
              Left = 14
              Top = 58
              Width = 95
              Height = 15
              Caption = 'Cantidad Masas:'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI Semibold'
              Font.Style = [fsBold]
              ParentFont = False
            end
            object cbbRecetaPlan: TComboBox
              Left = 14
              Top = 27
              Width = 680
              Height = 23
              Style = csDropDownList
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI'
              Font.Style = [fsBold]
              ParentFont = False
              TabOrder = 0
              OnChange = cbbRecetaPlanChange
            end
            object edtCantidadMasas: TEdit
              Left = 115
              Top = 55
              Width = 45
              Height = 23
              Alignment = taCenter
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI'
              Font.Style = [fsBold]
              NumbersOnly = True
              ParentFont = False
              TabOrder = 1
              Text = '1'
              OnChange = edtCantidadMasasChange
              OnExit = edtCantidadMasasExit
              OnKeyDown = edtCantidadMasasKeyDown
            end
            object cbbPorcionMasa: TComboBox
              Left = 168
              Top = 55
              Width = 155
              Height = 23
              Style = csDropDownList
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI'
              Font.Style = []
              ItemIndex = 0
              ParentFont = False
              TabOrder = 2
              Tag = 999
              Text = '100% (Masa Completa)'
              Items.Strings = (
                '100% (Masa Completa)'
                '75% (3/4 Masa)'
                '50% (1/2 Masa)'
                '25% (1/4 Masa)')
            end
            object btnAplicarMasas: TBitBtn
              Left = 330
              Top = 54
              Width = 150
              Height = 26
              Caption = ' Establecer Masas'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI'
              Font.Style = []
              ParentFont = False
              TabOrder = 3
              Tag = 999
              OnClick = btnAplicarMasasClick
            end
            object btnAnadirMasas: TBitBtn
              Left = 488
              Top = 54
              Width = 150
              Height = 26
              Caption = '+ A'#241'adir Masas'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI'
              Font.Style = [fsBold]
              ParentFont = False
              TabOrder = 4
              Tag = 999
              OnClick = btnAnadirMasasClick
            end
          end
          object pnlMasaMadreParams: TPanel
            Left = 0
            Top = 90
            Width = 710
            Height = 138
            Align = alTop
            BevelOuter = bvNone
            Color = 16185850
            ParentBackground = False
            TabOrder = 1
            object lblMasaMadreTitle: TLabel
              Left = 14
              Top = 6
              Width = 255
              Height = 15
              Caption = 'PAR'#193'METROS DE MASA MADRE Y SUBRECETAS'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = 3355443
              Font.Height = -12
              Font.Name = 'Segoe UI'
              Font.Style = [fsBold]
              ParentFont = False
            end
            object lblSubrecetasInfo: TLabel
              Left = 14
              Top = 26
              Width = 460
              Height = 15
              AutoSize = False
              Caption = #8226' Requiere 1er Empaste (Receta 22) y Masa Madre'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = 10494010
              Font.Height = -11
              Font.Name = 'Segoe UI'
              Font.Style = [fsItalic]
              ParentFont = False
            end
            object lblPesoMasaMadreKg: TLabel
              Left = 14
              Top = 48
              Width = 220
              Height = 15
              Caption = 'Peso Masa Madre por masa (kg):'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI'
              Font.Style = []
              ParentFont = False
            end
            object edtPesoMasaMadreKg: TEdit
              Left = 260
              Top = 45
              Width = 65
              Height = 23
              Alignment = taCenter
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI'
              Font.Style = [fsBold]
              ParentFont = False
              TabOrder = 0
              Text = '11.00'
              OnChange = edtPesoMasaMadreKgChange
            end
            object lblMasaMadreManana: TLabel
              Left = 14
              Top = 76
              Width = 220
              Height = 15
              Caption = 'Masas base a producir MA'#209'ANA:'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI'
              Font.Style = []
              ParentFont = False
            end
            object edtMasasBaseManana: TEdit
              Left = 260
              Top = 73
              Width = 65
              Height = 23
              Alignment = taCenter
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI'
              Font.Style = [fsBold]
              NumbersOnly = True
              ParentFont = False
              TabOrder = 1
              Text = '0'
              OnChange = edtMasasBaseMananaChange
            end
            object lblMasaMadreExtra: TLabel
              Left = 14
              Top = 104
              Width = 235
              Height = 15
              Caption = 'Masa Madre EXTRA calculada (kg):'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI'
              Font.Style = []
              ParentFont = False
            end
            object edtMasaMadreExtraKg: TEdit
              Left = 260
              Top = 101
              Width = 65
              Height = 23
              Alignment = taCenter
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI'
              Font.Style = [fsBold]
              ParentFont = False
              TabOrder = 2
              Text = '0.00'
              OnChange = edtMasaMadreExtraKgChange
            end
          end
          object pnlRepartoSabores: TPanel
            Left = 0
            Top = 228
            Width = 710
            Height = 294
            Align = alClient
            BevelOuter = bvNone
            Color = clWhite
            ParentBackground = False
            TabOrder = 2
            object pnlRepartoHeader: TPanel
              Left = 0
              Top = 0
              Width = 710
              Height = 65
              Align = alTop
              BevelOuter = bvNone
              Color = clWhite
              ParentBackground = False
              TabOrder = 0
              object lblRepartoTitle: TLabel
                Left = 14
                Top = 6
                Width = 460
                Height = 15
                Caption = 'REPARTO DIN'#193'MICO DE MASAS, FORMATOS Y ART'#205'CULOS FINALES'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = 3355443
                Font.Height = -12
                Font.Name = 'Segoe UI'
                Font.Style = [fsBold]
                ParentFont = False
              end
              object pnlTemplateButtons: TPanel
                Left = 14
                Top = 28
                Width = 460
                Height = 30
                BevelOuter = bvNone
                Color = 15329769
                ParentBackground = False
                TabOrder = 0
                object btnTpl100: TBitBtn
                  Left = 4
                  Top = 2
                  Width = 105
                  Height = 26
                  Caption = '100% '#218'nico'
                  Font.Charset = DEFAULT_CHARSET
                  Font.Color = clWindowText
                  Font.Height = -11
                  Font.Name = 'Segoe UI'
                  Font.Style = [fsBold]
                  ParentFont = False
                  TabOrder = 0
                  OnClick = btnTpl100Click
                end
                object btnTpl5050: TBitBtn
                  Left = 115
                  Top = 2
                  Width = 105
                  Height = 26
                  Caption = '50% + 50%'
                  Font.Charset = DEFAULT_CHARSET
                  Font.Color = clWindowText
                  Font.Height = -11
                  Font.Name = 'Segoe UI'
                  Font.Style = [fsBold]
                  ParentFont = False
                  TabOrder = 1
                  OnClick = btnTpl5050Click
                end
                object btnTpl7525: TBitBtn
                  Left = 226
                  Top = 2
                  Width = 105
                  Height = 26
                  Caption = '75% + 25%'
                  Font.Charset = DEFAULT_CHARSET
                  Font.Color = clWindowText
                  Font.Height = -11
                  Font.Name = 'Segoe UI'
                  Font.Style = [fsBold]
                  ParentFont = False
                  TabOrder = 2
                  OnClick = btnTpl7525Click
                end
                object btnTpl4x25: TBitBtn
                  Left = 337
                  Top = 2
                  Width = 115
                  Height = 26
                  Caption = '4 x 25%'
                  Font.Charset = DEFAULT_CHARSET
                  Font.Color = clWindowText
                  Font.Height = -11
                  Font.Name = 'Segoe UI'
                  Font.Style = [fsBold]
                  ParentFont = False
                  TabOrder = 3
                  OnClick = btnTpl4x25Click
                end
              end
            end
            object pnlGridHeader: TPanel
              Left = 0
              Top = 65
              Width = 710
              Height = 24
              Align = alTop
              BevelOuter = bvNone
              Color = 15329769
              ParentBackground = False
              TabOrder = 1
              object lblHdrMasa: TLabel
                Left = 8
                Top = 5
                Width = 65
                Height = 14
                Caption = 'Masa'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clWindowText
                Font.Height = -11
                Font.Name = 'Segoe UI'
                Font.Style = [fsBold]
                ParentFont = False
              end
              object lblHdrPorc: TLabel
                Left = 74
                Top = 5
                Width = 62
                Height = 14
                Alignment = taCenter
                Caption = '% Masa'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clWindowText
                Font.Height = -11
                Font.Name = 'Segoe UI'
                Font.Style = [fsBold]
                ParentFont = False
              end
              object lblHdrArt: TLabel
                Left = 138
                Top = 5
                Width = 310
                Height = 14
                Caption = 'Art'#237'culo Final / Formato'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clWindowText
                Font.Height = -11
                Font.Name = 'Segoe UI'
                Font.Style = [fsBold]
                ParentFont = False
              end
              object lblHdrUds: TLabel
                Left = 454
                Top = 5
                Width = 60
                Height = 14
                Alignment = taCenter
                Caption = 'Unidades'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clWindowText
                Font.Height = -11
                Font.Name = 'Segoe UI'
                Font.Style = [fsBold]
                ParentFont = False
              end
              object lblHdrAcum: TLabel
                Left = 518
                Top = 5
                Width = 68
                Height = 14
                Alignment = taCenter
                Caption = 'Tot. Acum.'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clNavy
                Font.Height = -11
                Font.Name = 'Segoe UI'
                Font.Style = [fsBold]
                ParentFont = False
              end
              object lblHdrLote: TLabel
                Left = 590
                Top = 5
                Width = 92
                Height = 14
                Alignment = taCenter
                Caption = 'C'#243'd. Lote'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clWindowText
                Font.Height = -11
                Font.Name = 'Segoe UI'
                Font.Style = [fsBold]
                ParentFont = False
              end
            end
            object sbxLineasMasa: TScrollBox
              Left = 0
              Top = 89
              Width = 710
              Height = 171
              Align = alClient
              BevelOuter = bvNone
              BorderStyle = bsNone
              Color = clWhite
              ParentBackground = False
              ParentColor = False
              TabOrder = 2
            end
            object pnlRepartoFooter: TPanel
              Left = 0
              Top = 260
              Width = 710
              Height = 34
              Align = alBottom
              BevelOuter = bvNone
              Color = 16185850
              ParentBackground = False
              TabOrder = 3
              object lblSumaPorc: TLabel
                Left = 10
                Top = 9
                Width = 380
                Height = 15
                Caption = 'Total Reparto Masa: 100% (Correcto)'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = 32768
                Font.Height = -12
                Font.Name = 'Segoe UI'
                Font.Style = [fsBold]
                ParentFont = False
              end
              object btnGuardarMasaReparto: TBitBtn
                Left = 530
                Top = 4
                Width = 165
                Height = 26
                Caption = ' Recalcular Plan'
                Font.Charset = DEFAULT_CHARSET
                Font.Color = clWindowText
                Font.Height = -11
                Font.Name = 'Segoe UI'
                Font.Style = []
                ParentFont = False
                TabOrder = 0
                OnClick = btnGuardarMasaRepartoClick
              end
            end
          end
        end
        object splManual: TSplitter
          Left = 710
          Top = 0
          Width = 6
          Height = 522
          Beveled = True
        end
        object pnlPlanRight: TPanel
          Left = 496
          Top = 0
          Width = 696
          Height = 522
          Align = alClient
          BevelOuter = bvNone
          Color = clWhite
          ParentBackground = False
          TabOrder = 1
          object pnlTreeHeader: TPanel
            Left = 0
            Top = 0
            Width = 696
            Height = 28
            Align = alTop
            BevelOuter = bvNone
            Color = 15329769
            ParentBackground = False
            TabOrder = 0
            object lblTreeTitle: TLabel
              Left = 12
              Top = 6
              Width = 470
              Height = 15
              Caption = 'ESTRUCTURA DE FABRICACI'#211'N, LOTES Y TRAZABILIDAD (Visualizaci'#243'n en '#193'rbol)'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = 3355443
              Font.Height = -12
              Font.Name = 'Segoe UI'
              Font.Style = [fsBold]
              ParentFont = False
            end
            object btnModificarLote: TBitBtn
              Left = 510
              Top = 2
              Width = 175
              Height = 24
              Anchors = [akTop, akRight]
              Caption = ' '#9998' Modificar Lote (F2)'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -11
              Font.Name = 'Segoe UI'
              Font.Style = [fsBold]
              ParentFont = False
              TabOrder = 0
              OnClick = btnModificarLoteClick
            end
          end
          object tvProduccion: TTreeView
            Left = 0
            Top = 28
            Width = 696
            Height = 458
            Align = alClient
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clWindowText
            Font.Height = -13
            Font.Name = 'Segoe UI'
            Font.Style = []
            HideSelection = False
            Indent = 24
            ParentFont = False
            PopupMenu = pmTreeProduccion
            ReadOnly = True
            RowSelect = True
            TabOrder = 1
            OnDblClick = tvProduccionDblClick
            OnKeyDown = tvProduccionKeyDown
          end
          object pnlTreeFooter: TPanel
            Left = 0
            Top = 486
            Width = 696
            Height = 36
            Align = alBottom
            BevelOuter = bvNone
            Color = 16382457
            ParentBackground = False
            TabOrder = 2
            object lblKpiTreeMasas: TLabel
              Left = 15
              Top = 10
              Width = 140
              Height = 15
              Caption = 'Masas Base Planificadas: 0'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI Semibold'
              Font.Style = [fsBold]
              ParentFont = False
            end
            object lblKpiTreeMM: TLabel
              Left = 200
              Top = 10
              Width = 150
              Height = 15
              Caption = 'Masa Madre Total: 0.0 kg'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI Semibold'
              Font.Style = [fsBold]
              ParentFont = False
            end
            object lblKpiTreeUds: TLabel
              Left = 400
              Top = 10
              Width = 160
              Height = 15
              Caption = 'Panettones Estimados: 0 uds'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clWindowText
              Font.Height = -12
              Font.Name = 'Segoe UI Semibold'
              Font.Style = [fsBold]
              ParentFont = False
            end
          end
        end
      end
      object tsCalculoPedidos: TTabSheet
        Caption = 'C'#225'lculo Autom'#225'tico por Pedidos Pendientes (D'#233'ficit)'
        ImageIndex = 1
        object splRecetas: TSplitter
          Left = 0
          Top = 250
          Width = 1192
          Height = 6
          Cursor = crVSplit
          Align = alTop
          Beveled = True
        end
        object pnlRecetas: TPanel
          Left = 0
          Top = 0
          Width = 1192
          Height = 250
          Align = alTop
          BevelOuter = bvNone
          TabOrder = 0
          object pnlRecetasHeader: TPanel
            Left = 0
            Top = 0
            Width = 1192
            Height = 28
            Align = alTop
            BevelOuter = bvNone
            Color = 15329769
            ParentBackground = False
            TabOrder = 0
            object lblRecetasTitle: TLabel
              Left = 12
              Top = 6
              Width = 570
              Height = 15
              Caption = 'RECETAS DE MASAS Y RENDIMIENTO CONSOLIDADO (Ajuste al alza en m'#250'ltiplos de 0.25 masas)'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = 3355443
              Font.Height = -12
              Font.Name = 'Segoe UI'
              Font.Style = [fsBold]
              ParentFont = False
            end
          end
          object dbgRecetas: TDBGrid
            Left = 0
            Top = 28
            Width = 1192
            Height = 222
            Align = alClient
            DataSource = dsRecetas
            Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit]
            TabOrder = 1
            TitleFont.Charset = DEFAULT_CHARSET
            TitleFont.Color = clWindowText
            TitleFont.Height = -12
            TitleFont.Name = 'Segoe UI'
            TitleFont.Style = []
            OnDrawColumnCell = dbgRecetasDrawColumnCell
          end
        end
        object pnlArticulos: TPanel
          Left = 0
          Top = 256
          Width = 1192
          Height = 266
          Align = alClient
          BevelOuter = bvNone
          TabOrder = 1
          object pnlArticulosHeader: TPanel
            Left = 0
            Top = 0
            Width = 1192
            Height = 28
            Align = alTop
            BevelOuter = bvNone
            Color = 15329769
            ParentBackground = False
            TabOrder = 0
            object lblArticulosTitle: TLabel
              Left = 12
              Top = 6
              Width = 550
              Height = 15
              Caption = 'ART'#205'CULOS QUE COMPARTEN LA RECETA SELECCIONADA (Desglose individual y aportaci'#243'n de masa)'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = 3355443
              Font.Height = -12
              Font.Name = 'Segoe UI'
              Font.Style = [fsBold]
              ParentFont = False
            end
          end
          object dbgArticulos: TDBGrid
            Left = 0
            Top = 28
            Width = 1192
            Height = 238
            Align = alClient
            DataSource = dsArticulos
            Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit]
            TabOrder = 1
            TitleFont.Charset = DEFAULT_CHARSET
            TitleFont.Color = clWindowText
            TitleFont.Height = -12
            TitleFont.Name = 'Segoe UI'
            TitleFont.Style = []
            OnDrawColumnCell = dbgArticulosDrawColumnCell
          end
        end
      end
    end
  end
  object pnlFooter: TPanel
    Left = 0
    Top = 668
    Width = 1200
    Height = 52
    Align = alBottom
    BevelOuter = bvNone
    Color = 15329769
    ParentBackground = False
    TabOrder = 3
    object btnGuardarPlan: TBitBtn
      Left = 12
      Top = 10
      Width = 310
      Height = 32
      Caption = ' Guardar '#211'rdenes, Lotes y Stock PENDIENTE'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = 22720
      Font.Height = -12
      Font.Name = 'Segoe UI'
      Font.Style = [fsBold]
      ParentFont = False
      TabOrder = 0
      OnClick = btnGuardarPlanClick
    end
    object btnVerInforme: TBitBtn
      Left = 330
      Top = 10
      Width = 210
      Height = 32
      Caption = ' Ver Informe y Materias Primas'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = 10494010
      Font.Height = -12
      Font.Name = 'Segoe UI'
      Font.Style = [fsBold]
      ParentFont = False
      TabOrder = 1
      OnClick = btnVerInformeClick
    end
    object btnVerOrdenesFabricacion: TBitBtn
      Tag = 999
      Left = 548
      Top = 10
      Width = 185
      Height = 32
      Caption = ' Ver '#211'rdenes Fabricaci'#243'n'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clNavy
      Font.Height = -12
      Font.Name = 'Segoe UI'
      Font.Style = [fsBold]
      ParentFont = False
      TabOrder = 2
      OnClick = btnVerOrdenesFabricacionClick
    end
    object btnDuplicarPlanFooter: TBitBtn
      Tag = 999
      Left = 741
      Top = 10
      Width = 195
      Height = 32
      Caption = ' Duplicar a otro d'#237'a'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clNavy
      Font.Height = -12
      Font.Name = 'Segoe UI'
      Font.Style = [fsBold]
      ParentFont = False
      TabOrder = 3
      OnClick = btnDuplicarPlanClick
    end
    object btnGenerarLoteReceta: TBitBtn
      Left = 605
      Top = 10
      Width = 220
      Height = 32
      Caption = ' Crear Lote Receta (Pedidos)'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = 'Segoe UI'
      Font.Style = []
      ParentFont = False
      TabOrder = 2
      Visible = False
      OnClick = btnGenerarLoteRecetaClick
    end
    object btnGenerarTodosLotes: TBitBtn
      Left = 835
      Top = 10
      Width = 220
      Height = 32
      Caption = ' Crear Lotes TODAS (Pedidos)'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = 'Segoe UI'
      Font.Style = []
      ParentFont = False
      TabOrder = 3
      Visible = False
      OnClick = btnGenerarTodosLotesClick
    end
    object btnExportar: TBitBtn
      Left = 950
      Top = 10
      Width = 125
      Height = 32
      Anchors = [akTop, akRight]
      Caption = ' Exportar CSV'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = 'Segoe UI'
      Font.Style = []
      ParentFont = False
      TabOrder = 4
      OnClick = btnExportarClick
    end
    object btnCerrar: TBitBtn
      Left = 1085
      Top = 10
      Width = 100
      Height = 32
      Anchors = [akTop, akRight]
      Caption = ' Cerrar'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -12
      Font.Name = 'Segoe UI'
      Font.Style = []
      ParentFont = False
      TabOrder = 5
      OnClick = btnCerrarClick
    end
  end
  object dsRecetas: TDataSource
    DataSet = mtRecetas
    Left = 240
    Top = 200
  end
  object dsArticulos: TDataSource
    DataSet = mtArticulos
    Left = 240
    Top = 380
  end
  object mtRecetas: TFDMemTable
    FetchOptions.AssignedValues = [evMode]
    FetchOptions.Mode = fmAll
    ResourceOptions.AssignedValues = [rvSilentMode]
    ResourceOptions.SilentMode = True
    UpdateOptions.AssignedValues = [uvCheckRequired, uvAutoCommitUpdates]
    UpdateOptions.CheckRequired = False
    UpdateOptions.AutoCommitUpdates = True
    AfterScroll = mtRecetasAfterScroll
    Left = 160
    Top = 200
  end
  object mtArticulos: TFDMemTable
    FetchOptions.AssignedValues = [evMode]
    FetchOptions.Mode = fmAll
    ResourceOptions.AssignedValues = [rvSilentMode]
    ResourceOptions.SilentMode = True
    UpdateOptions.AssignedValues = [uvCheckRequired, uvAutoCommitUpdates]
    UpdateOptions.CheckRequired = False
    UpdateOptions.AutoCommitUpdates = True
    Left = 160
    Top = 380
  end
  object qAlmacenes: TFDQuery
    Left = 360
    Top = 200
  end
  object qObradores: TFDQuery
    Left = 440
    Top = 200
  end
  object qCargaPlan: TFDQuery
    Left = 520
    Top = 200
  end
  object qExec: TFDQuery
    Left = 600
    Top = 200
  end
  object saveDlgExport: TSaveDialog
    DefaultExt = 'csv'
    Filter = 'Archivos CSV (*.csv)|*.csv|Todos los archivos (*.*)|*.*'
    Left = 700
    Top = 200
  end
  object pmTreeProduccion: TPopupMenu
    Left = 780
    Top = 200
    object miModificarLote: TMenuItem
      Caption = 'Modificar C'#243'digo de Lote...'
      ShortCut = 113
      OnClick = btnModificarLoteClick
    end
  end
end
