object FViewOrders: TFViewOrders
  Width = 676
  Height = 480
  CSSLibrary = cssBootstrap
  ElementFont = efCSS
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'Tahoma'
  Font.Style = []
  ParentFont = False
  Visible = True
  OnCreate = WebFormCreate
  OnShow = WebFormShow
  object lblEntries: TWebLabel
    Left = 59
    Top = 113
    Width = 77
    Height = 13
    Caption = 'Showing 0 of ...'
    ElementID = 'lblentries'
    ElementFont = efCSS
    HeightStyle = ssAuto
    HeightPercent = 100.000000000000000000
    WidthPercent = 100.000000000000000000
  end
  object btnAddOrder: TWebButton
    Left = 59
    Top = 79
    Width = 96
    Height = 25
    Caption = 'Add Order'
    ChildOrder = 5
    ElementID = 'btnaddorder'
    ElementFont = efCSS
    HeightStyle = ssAuto
    HeightPercent = 100.000000000000000000
    TabOrder = 6
    TabStop = False
    WidthPercent = 100.000000000000000000
    OnClick = btnAddOrderClick
  end
  object btnSearch: TWebButton
    Left = 462
    Top = 79
    Width = 96
    Height = 25
    Caption = 'Search'
    ChildOrder = 6
    ElementID = 'btnfilters'
    ElementFont = efCSS
    HeightStyle = ssAuto
    HeightPercent = 100.000000000000000000
    TabOrder = 9
    TabStop = False
    WidthPercent = 100.000000000000000000
    OnClick = btnSearchClick
  end
  object WebButton1: TWebButton
    Left = 188
    Top = 79
    Width = 96
    Height = 25
    Caption = 'Set Status'
    ChildOrder = 11
    ElementID = 'btnsetstatus'
    ElementFont = efCSS
    HeightStyle = ssAuto
    HeightPercent = 100.000000000000000000
    TabOrder = 7
    TabStop = False
    WidthPercent = 100.000000000000000000
    OnClick = WebButton1Click
  end
  object btnPDF: TWebButton
    Left = 332
    Top = 79
    Width = 96
    Height = 25
    Caption = 'PDF'
    ChildOrder = 12
    ElementID = 'btngeneratepdf'
    ElementFont = efCSS
    HeightStyle = ssAuto
    HeightPercent = 100.000000000000000000
    TabOrder = 8
    TabStop = False
    WidthPercent = 100.000000000000000000
    OnClick = btnPDFClick
  end
  object wdbtcOrders: TWebDBTableControl
    Left = 26
    Top = 132
    Width = 631
    Height = 200
    ElementClassName = 'table'
    ElementId = 'tblPhoneGrid'
    BorderColor = clSilver
    ChildOrder = 11
    ElementFont = efCSS
    ElementHeaderClassName = 'thead-light sticky-top bg-light border-light'
    ElementPosition = epRelative
    ElementTableClassName = 'table table-striped table-hover table-bordered text-sm'
    Footer.ButtonActiveElementClassName = 'btn btn-primary'
    Footer.ButtonElementClassName = 'btn btn-light'
    Footer.DropDownElementClassName = 'form-control'
    Footer.InputElementClassName = 'form-control'
    Footer.LinkActiveElementClassName = 'link-primary'
    Footer.LinkElementClassName = 'link-secondary'
    Footer.ListElementClassName = 'pagination'
    Footer.ListItemElementClassName = 'page-item'
    Footer.ListLinkElementClassName = 'page-link'
    Header.ButtonActiveElementClassName = 'btn btn-primary'
    Header.ButtonElementClassName = 'btn btn-light'
    Header.DropDownElementClassName = 'form-control'
    Header.InputElementClassName = 'form-control'
    Header.LinkActiveElementClassName = 'link-primary'
    Header.LinkElementClassName = 'link-secondary'
    Header.ListElementClassName = 'pagination'
    Header.ListItemElementClassName = 'page-item'
    Header.ListLinkElementClassName = 'page-link'
    WordWrap = True
    OnClickCell = wdbtcOrdersClickCell
    OnDblClickCell = wdbtcOrdersDblClickCell
    Columns = <
      item
        DataField = 'DBID'
        Title = 'Order Num'
      end
      item
        DataField = 'IN_QB'
        Title = 'In QB'
      end
      item
        DataField = 'ID'
        Title = 'Customer ID'
      end
      item
        DataField = 'companyName'
        Title = 'Customer Name'
      end
      item
        DataField = 'jobName'
        Title = 'Job Name'
      end
      item
        DataField = 'orderType'
        Title = 'Order Type'
      end
      item
        DataField = 'orderDate'
        Title = 'Order Date'
      end
      item
        DataField = 'proofDue'
        Title = 'Proof Due'
      end
      item
        ElementClassName = 'tbl-min-120'
        DataField = 'proofDone'
        Title = 'Proof Done'
        TitleElementClassName = 'tbl-min-120'
      end
      item
        DataField = 'artDue'
        Title = 'Art Due'
      end
      item
        ElementClassName = 'tbl-min-120'
        DataField = 'artDone'
        Title = 'Art Done'
        TitleElementClassName = 'tbl-min-120'
      end
      item
        DataField = 'plateDue'
        Title = 'Plate Due'
      end
      item
        ElementClassName = 'tbl-min-120'
        DataField = 'plateDone'
        Title = 'Plate Done'
        TitleElementClassName = 'tbl-min-120'
      end
      item
        DataField = 'mountDue'
        Title = 'Mount Due'
      end
      item
        ElementClassName = 'tbl-min-120'
        DataField = 'mountDone'
        Title = 'Mount Done'
        TitleElementClassName = 'tbl-min-120'
      end
      item
        DataField = 'shipDue'
        Title = 'Ship Due'
      end
      item
        ElementClassName = 'tbl-min-120'
        DataField = 'shipDone'
        Title = 'Ship Done'
        TitleElementClassName = 'tbl-min-120'
      end
      item
        DataField = 'price'
        Title = 'Price'
      end
      item
        ElementClassName = 'text-nowrap'
        DataField = 'qbRefNum'
        Title = 'QB Order Num'
        TitleElementClassName = 'min-w-80'
      end
      item
        DataField = 'colors'
        Title = 'Colors'
      end>
    DataSource = wdsOrders
  end
  object wcbPageSize: TWebComboBox
    Left = 22
    Top = 52
    Width = 145
    Height = 21
    ElementClassName = 'custom-select'
    ElementID = 'wcbpagesize'
    ElementFont = efCSS
    HeightStyle = ssAuto
    HeightPercent = 100.000000000000000000
    Text = '500'
    WidthPercent = 100.000000000000000000
    OnChange = wcbPageSizeChange
    ItemIndex = -1
    Items.Strings = (
      '100'
      '250'
      '500'
      '1000')
  end
  object wlcbOrderBy: TWebLookupComboBox
    Left = 188
    Top = 52
    Width = 145
    Height = 22
    ElementClassName = 'custom-select'
    ElementID = 'wlcborderby'
    ElementFont = efCSS
    HeightPercent = 100.000000000000000000
    WidthPercent = 100.000000000000000000
    OnChange = wlcbOrderByChange
    ItemIndex = -1
    LookupValues = <
      item
        Value = 'o.ORDER_ID'
        DisplayText = 'Order Num'
      end
      item
        Value = 'c.NAME'
        DisplayText = 'Company Name'
      end
      item
        Value = 'o.JOB_NAME'
        DisplayText = 'Job Name'
      end
      item
        Value = 
          'COALESCE(cpo.staff_fields_order_date, wpo.staff_fields_order_dat' +
          'e, cdo.staff_fields_order_date)'
        DisplayText = 'Order Date'
      end
      item
        Value = 'PROOF_DUE'
        DisplayText = 'Proof Due'
      end
      item
        Value = 'PROOF_DONE'
        DisplayText = 'Proof Done'
      end
      item
        Value = 'ART_DUE'
        DisplayText = 'Art Due'
      end
      item
        Value = 'ART_DONE'
        DisplayText = 'Art Done'
      end
      item
        Value = 'PLATE_DUE'
        DisplayText = 'Plate Due'
      end
      item
        Value = 'PLATE_DONE'
        DisplayText = 'Plate Done'
      end
      item
        Value = 'MOUNT_DUE'
        DisplayText = 'Mount Due'
      end
      item
        Value = 'MOUNT_DONE'
        DisplayText = 'Mount Done'
      end
      item
        Value = 'SHIP_DUE'
        DisplayText = 'Ship Due'
      end
      item
        Value = 'SHIP_DONE'
        DisplayText = 'Ship Done'
      end>
  end
  object edtSearch: TWebEdit
    Left = 428
    Top = 110
    Width = 121
    Height = 22
    ChildOrder = 10
    ElementClassName = 'form-control'
    ElementID = 'edtsearch'
    ElementFont = efCSS
    Enabled = False
    HeightStyle = ssAuto
    HeightPercent = 100.000000000000000000
    WidthPercent = 100.000000000000000000
  end
  object btnOrderBy: TWebButton
    Left = 339
    Top = 46
    Width = 96
    Height = 25
    Caption = 'Descending'
    ChildOrder = 9
    ElementID = 'btnorderby'
    ElementFont = efCSS
    HeightStyle = ssAuto
    HeightPercent = 100.000000000000000000
    TabOrder = 100
    TabStop = False
    WidthPercent = 100.000000000000000000
    OnClick = btnOrderByClick
  end
  object XDataWebClient1: TXDataWebClient
    Connection = DMConnection.ApiConnection
    Left = 28
    Top = 410
  end
  object xdwdsOrders: TXDataWebDataSet
    Connection = DMConnection.ApiConnection
    Left = 70
    Top = 410
    object xdwdsOrdersDBID: TStringField
      FieldName = 'DBID'
    end
    object xdwdsOrdersID: TStringField
      FieldName = 'ID'
    end
    object xdwdsOrderscompanyName: TStringField
      FieldName = 'companyName'
    end
    object xdwdsOrdersjobName: TStringField
      FieldName = 'jobName'
    end
    object xdwdsOrdersorderType: TStringField
      FieldName = 'orderType'
    end
    object xdwdsOrdersorderDate: TStringField
      FieldName = 'orderDate'
    end
    object xdwdsOrdersproofDue: TStringField
      FieldName = 'proofDue'
    end
    object xdwdsOrdersproofDone: TStringField
      DisplayWidth = 40
      FieldName = 'proofDone'
    end
    object xdwdsOrdersartDue: TStringField
      FieldName = 'artDue'
    end
    object xdwdsOrdersartDone: TStringField
      FieldName = 'artDone'
    end
    object xdwdsOrdersplateDue: TStringField
      FieldName = 'plateDue'
    end
    object xdwdsOrdersplateDone: TStringField
      FieldName = 'plateDone'
    end
    object xdwdsOrdersmountDue: TStringField
      FieldName = 'mountDue'
    end
    object xdwdsOrdersmountDone: TStringField
      FieldName = 'mountDone'
    end
    object xdwdsOrdersshipDue: TStringField
      FieldName = 'shipDue'
    end
    object xdwdsOrdersshipDone: TStringField
      FieldName = 'shipDone'
    end
    object xdwdsOrdersprice: TStringField
      FieldName = 'price'
    end
    object xdwdsOrderscolors: TStringField
      FieldName = 'colors'
    end
    object xdwdsOrdersIN_QB: TStringField
      FieldName = 'IN_QB'
    end
    object xdwdsOrdersqbRefNum: TStringField
      FieldName = 'qbRefNum'
    end
  end
  object wdsOrders: TWebDataSource
    DataSet = xdwdsOrders
    Left = 120
    Top = 410
  end
  object wdsCustomers: TWebDataSource
    DataSet = xdwdsCustomers
    Left = 518
    Top = 414
  end
  object xdwdsCustomers: TXDataWebDataSet
    Connection = DMConnection.ApiConnection
    Left = 422
    Top = 412
    object xdwdsCustomersNAME: TStringField
      FieldName = 'NAME'
    end
    object xdwdsCustomersID: TIntegerField
      FieldName = 'ID'
    end
    object xdwdsCustomersCURR_ID: TIntegerField
      FieldName = 'CURR_ID'
    end
  end
  object xdwdsSave: TXDataWebDataSet
    Connection = DMConnection.ApiConnection
    Left = 188
    Top = 408
    object xdwdsSaveCURR_ID: TIntegerField
      FieldName = 'CURR_ID'
    end
  end
  object wdsSave: TWebDataSource
    DataSet = xdwdsSave
    Left = 346
    Top = 412
  end
  object tmrReturn: TWebTimer
    Enabled = False
    OnTimer = tmrReturnTimer
    Left = 292
    Top = 414
  end
end
