home *** CD-ROM | disk | FTP | other *** search
/ PC Format Collection 48 / SENT14D.ISO / tech / delphi / disk15 / mastapp.pak / CUSTORD.DFM / CUSTORD.txt
Encoding:
Text File  |  1995-08-24  |  6.3 KB  |  273 lines

  1. object BrCustOrdForm: TBrCustOrdForm
  2.   Left = 199
  3.   Top = 102
  4.   AutoScroll = False
  5.   HelpContext = 1
  6.   ActiveControl = CustGrid
  7.   BorderIcons = [biSystemMenu, biMinimize]
  8.   BorderStyle = bsSingle
  9.   Caption = 'Orders By Customer'
  10.   ClientHeight = 307
  11.   ClientWidth = 405
  12.   Font.Color = clBlack
  13.   Font.Height = -11
  14.   Font.Name = 'MS Sans Serif'
  15.   Font.Style = []
  16.   PixelsPerInch = 96
  17.   Position = poScreenCenter
  18.   OnCreate = FormCreate
  19.   TextHeight = 13
  20.   object CtrlsPanel: TPanel
  21.     Left = 0
  22.     Top = 118
  23.     Width = 405
  24.     Height = 36
  25.     Align = alTop
  26.     TabOrder = 1
  27.     object ActivateBtn: TSpeedButton
  28.       Left = 277
  29.       Top = 8
  30.       Width = 85
  31.       Height = 21
  32.       AllowAllUp = True
  33.       GroupIndex = 1
  34.       Caption = '&Activate Query'
  35.       OnClick = ActivateQuery
  36.     end
  37.     object DefineBtn: TSpeedButton
  38.       Left = 167
  39.       Top = 8
  40.       Width = 85
  41.       Height = 21
  42.       AllowAllUp = True
  43.       Caption = '&Define Query'
  44.       OnClick = SetQuery
  45.     end
  46.     object Navigator: TDBNavigator
  47.       Left = 8
  48.       Top = 7
  49.       Width = 136
  50.       Height = 21
  51.       DataSource = CustSource
  52.       VisibleButtons = [nbFirst, nbPrior, nbNext, nbLast, nbRefresh]
  53.       ParentShowHint = False
  54.       ShowHint = True
  55.       TabOrder = 0
  56.     end
  57.   end
  58.   object BtnPanel: TPanel
  59.     Left = 0
  60.     Top = 271
  61.     Width = 405
  62.     Height = 36
  63.     Align = alClient
  64.     TabOrder = 3
  65.     object EditBtn: TButton
  66.       Left = 205
  67.       Top = 6
  68.       Width = 89
  69.       Height = 25
  70.       Caption = '&Edit'
  71.       Font.Color = clBlack
  72.       Font.Height = -11
  73.       Font.Name = 'MS Sans Serif'
  74.       Font.Style = [fsBold]
  75.       ParentFont = False
  76.       TabOrder = 0
  77.       OnClick = EditBtnClick
  78.     end
  79.     object CloseBtn: TButton
  80.       Left = 308
  81.       Top = 6
  82.       Width = 89
  83.       Height = 25
  84.       Cancel = True
  85.       Caption = '&Close'
  86.       Default = True
  87.       Font.Color = clBlack
  88.       Font.Height = -11
  89.       Font.Name = 'MS Sans Serif'
  90.       Font.Style = [fsBold]
  91.       ParentFont = False
  92.       TabOrder = 1
  93.       OnClick = CloseBtnClick
  94.     end
  95.   end
  96.   object CustPanel: TPanel
  97.     Left = 0
  98.     Top = 0
  99.     Width = 405
  100.     Height = 118
  101.     Align = alTop
  102.     TabOrder = 0
  103.     object CustGrid: TDBGrid
  104.       Left = 6
  105.       Top = 6
  106.       Width = 391
  107.       Height = 104
  108.       DataSource = CustSource
  109.       Options = [dgTitles, dgIndicator, dgColLines, dgRowLines, dgRowSelect]
  110.       TabOrder = 0
  111.       TitleFont.Color = clBlack
  112.       TitleFont.Height = -11
  113.       TitleFont.Name = 'MS Sans Serif'
  114.       TitleFont.Style = []
  115.       OnDblClick = EditBtnClick
  116.       OnEnter = CustGridEnter
  117.     end
  118.   end
  119.   object OrdersPanel: TPanel
  120.     Left = 0
  121.     Top = 154
  122.     Width = 405
  123.     Height = 117
  124.     Align = alTop
  125.     TabOrder = 2
  126.     object OrdersGrid: TDBGrid
  127.       Left = 6
  128.       Top = 6
  129.       Width = 390
  130.       Height = 104
  131.       DataSource = OrdersSource
  132.       Options = [dgTitles, dgIndicator, dgColLines, dgRowLines, dgRowSelect]
  133.       TabOrder = 0
  134.       TitleFont.Color = clBlack
  135.       TitleFont.Height = -11
  136.       TitleFont.Name = 'MS Sans Serif'
  137.       TitleFont.Style = []
  138.       OnDblClick = EditBtnClick
  139.       OnEnter = OrdersGridEnter
  140.     end
  141.   end
  142.   object Orders: TTable
  143.     Active = True
  144.     OnCalcFields = OrdersCalcFields
  145.     DatabaseName = 'MAST'
  146.     IndexFieldNames = 'CUSTNO'
  147.     MasterFields = 'CUSTNO'
  148.     MasterSource = CustSource
  149.     ReadOnly = True
  150.     TableName = 'ORDERS'
  151.     Left = 12
  152.     Top = 204
  153.     object OrdersOrderNo: TFloatField
  154.       Alignment = taLeftJustify
  155.       DisplayWidth = 10
  156.       FieldName = 'OrderNo'
  157.     end
  158.     object OrdersCustNo: TFloatField
  159.       FieldName = 'CustNo'
  160.       Visible = False
  161.     end
  162.     object OrdersSaleDate: TDateTimeField
  163.       DisplayWidth = 9
  164.       FieldName = 'SaleDate'
  165.       DisplayFormat = 'MM/DD/YY'
  166.     end
  167.     object OrdersShipDate: TDateTimeField
  168.       DisplayWidth = 9
  169.       FieldName = 'ShipDate'
  170.       DisplayFormat = 'MM/DD/YY'
  171.     end
  172.     object OrdersItemsTotal: TCurrencyField
  173.       FieldName = 'ItemsTotal'
  174.       Visible = False
  175.       Currency = True
  176.     end
  177.     object OrdersTaxRate: TFloatField
  178.       FieldName = 'TaxRate'
  179.       Visible = False
  180.     end
  181.     object OrdersFreight: TCurrencyField
  182.       FieldName = 'Freight'
  183.       Visible = False
  184.       Currency = True
  185.     end
  186.     object OrdersAmountPaid: TCurrencyField
  187.       DisplayWidth = 14
  188.       FieldName = 'AmountPaid'
  189.       Currency = True
  190.     end
  191.     object OrdersAmountDue: TCurrencyField
  192.       Calculated = True
  193.       DisplayWidth = 14
  194.       FieldName = 'AmountDue'
  195.       Currency = True
  196.     end
  197.   end
  198.   object Cust: TTable
  199.     Active = True
  200.     BeforeOpen = CustBeforeOpen
  201.     DatabaseName = 'MAST'
  202.     ReadOnly = True
  203.     TableName = 'CUSTOMER'
  204.     Left = 120
  205.     Top = 5
  206.     object CustCustNo: TFloatField
  207.       Alignment = taLeftJustify
  208.       DisplayWidth = 6
  209.       FieldName = 'CustNo'
  210.     end
  211.     object CustCompany: TStringField
  212.       DisplayWidth = 26
  213.       FieldName = 'Company'
  214.       Size = 30
  215.     end
  216.     object CustPhone: TStringField
  217.       DisplayWidth = 15
  218.       FieldName = 'Phone'
  219.       Size = 15
  220.     end
  221.     object CustLastInvoiceDate: TDateTimeField
  222.       DisplayLabel = 'LastInvoice'
  223.       DisplayWidth = 10
  224.       FieldName = 'LastInvoiceDate'
  225.       DisplayFormat = 'MM/DD/YY'
  226.     end
  227.   end
  228.   object CustSource: TDataSource
  229.     DataSet = Cust
  230.     Left = 148
  231.     Top = 5
  232.   end
  233.   object OrdersSource: TDataSource
  234.     DataSet = Orders
  235.     Left = 41
  236.     Top = 204
  237.   end
  238.   object CustQuery: TQuery
  239.     DatabaseName = 'MAST'
  240.     SQL.Strings = (
  241.       'select Customer.CustNo, Customer.Company, '
  242.       '         Customer.LastInvoiceDate, Customer.Phone '
  243.       '  from customer'
  244.       '  where '
  245.       '    (customer.LastInvoiceDate >= :FromDate) and'
  246.       '    (customer.LastInvoiceDate <= :ToDate)')
  247.     Params.Data = {010002000846726F6D446174650000000006546F4461746500000000}
  248.     Left = 176
  249.     Top = 5
  250.     object CustQueryCustNo: TFloatField
  251.       Alignment = taLeftJustify
  252.       DisplayWidth = 6
  253.       FieldName = 'CustNo'
  254.     end
  255.     object CustQueryCompany: TStringField
  256.       DisplayWidth = 26
  257.       FieldName = 'Company'
  258.       Size = 30
  259.     end
  260.     object CustQueryPhone: TStringField
  261.       DisplayWidth = 15
  262.       FieldName = 'Phone'
  263.       Size = 15
  264.     end
  265.     object CustQueryLastInvoiceDate: TDateTimeField
  266.       DisplayLabel = 'LastInvoice'
  267.       DisplayWidth = 10
  268.       FieldName = 'LastInvoiceDate'
  269.       DisplayFormat = 'MM/DD/YY'
  270.     end
  271.   end
  272. end
  273.