265 lines
7.5 KiB
Plaintext
265 lines
7.5 KiB
Plaintext
object srvControles: TsrvControles
|
|
OldCreateOrder = True
|
|
SessionManager = dmServer.SessionManager
|
|
AcquireConnection = True
|
|
ServiceSchema = schControles
|
|
ServiceAdapter = DABINAdapter
|
|
OnAfterProcessTransactionAction = pptaNone
|
|
ExportedDataTables = <>
|
|
CacheElements = <>
|
|
Options = [rsoProcessDeltasWithoutUpdateRules]
|
|
Height = 297
|
|
Width = 298
|
|
object schControles: TDASchema
|
|
ConnectionManager = dmServer.ConnectionManager
|
|
DataDictionary = dmServer.DataDictionary
|
|
Diagrams = dmServer.DADiagrams
|
|
Datasets = <
|
|
item
|
|
Params = <
|
|
item
|
|
Name = 'CATEGORIA'
|
|
DataType = datString
|
|
Value = 'vebyas'
|
|
ParamType = daptInput
|
|
end>
|
|
Statements = <
|
|
item
|
|
Connection = 'GFT_VARELA'
|
|
TargetTable = 'RDX_INFORMES'
|
|
SQL =
|
|
'SELECT '#10' ID, CATEGORIA, MODIFICABLE, ICONO, NOMBRE, DESCRIPCI' +
|
|
'ON, ORDEN, VISTA'#10' FROM'#10' RDX_INFORMES'#10' WHERE CATEGORIA = :CA' +
|
|
'TEGORIA'
|
|
StatementType = stSQL
|
|
ColumnMappings = <
|
|
item
|
|
DatasetField = 'ID'
|
|
TableField = 'ID'
|
|
end
|
|
item
|
|
DatasetField = 'CATEGORIA'
|
|
TableField = 'CATEGORIA'
|
|
end
|
|
item
|
|
DatasetField = 'ICONO'
|
|
TableField = 'ICONO'
|
|
end
|
|
item
|
|
DatasetField = 'NOMBRE'
|
|
TableField = 'NOMBRE'
|
|
end
|
|
item
|
|
DatasetField = 'DESCRIPCION'
|
|
TableField = 'DESCRIPCION'
|
|
end
|
|
item
|
|
DatasetField = 'ORDEN'
|
|
TableField = 'ORDEN'
|
|
end
|
|
item
|
|
DatasetField = 'VISTA'
|
|
TableField = 'VISTA'
|
|
end
|
|
item
|
|
DatasetField = 'MODIFICABLE'
|
|
TableField = 'MODIFICABLE'
|
|
end>
|
|
end>
|
|
Name = 'ListaControlesPorCategoria'
|
|
Fields = <
|
|
item
|
|
Name = 'ID'
|
|
DataType = datAutoInc
|
|
Required = True
|
|
ServerAutoRefresh = True
|
|
InPrimaryKey = True
|
|
end
|
|
item
|
|
Name = 'CATEGORIA'
|
|
DataType = datString
|
|
Size = 15
|
|
end
|
|
item
|
|
Name = 'MODIFICABLE'
|
|
DataType = datString
|
|
Size = 1
|
|
DefaultValue = 'S'
|
|
end
|
|
item
|
|
Name = 'ICONO'
|
|
DataType = datSmallInt
|
|
end
|
|
item
|
|
Name = 'NOMBRE'
|
|
DataType = datString
|
|
Size = 50
|
|
end
|
|
item
|
|
Name = 'DESCRIPCION'
|
|
DataType = datString
|
|
Size = 255
|
|
end
|
|
item
|
|
Name = 'ORDEN'
|
|
DataType = datSmallInt
|
|
end
|
|
item
|
|
Name = 'VISTA'
|
|
DataType = datMemo
|
|
end>
|
|
end>
|
|
JoinDataTables = <>
|
|
UnionDataTables = <>
|
|
Commands = <
|
|
item
|
|
Params = <
|
|
item
|
|
Name = 'CATEGORIA'
|
|
DataType = datString
|
|
Size = 15
|
|
Value = ''
|
|
ParamType = daptInput
|
|
end
|
|
item
|
|
Name = 'MODIFICABLE'
|
|
DataType = datString
|
|
Size = 1
|
|
Value = ''
|
|
ParamType = daptInput
|
|
end
|
|
item
|
|
Name = 'ICONO'
|
|
DataType = datInteger
|
|
Value = ''
|
|
ParamType = daptInput
|
|
end
|
|
item
|
|
Name = 'NOMBRE'
|
|
DataType = datString
|
|
Size = 50
|
|
Value = ''
|
|
ParamType = daptInput
|
|
end
|
|
item
|
|
Name = 'DESCRIPCION'
|
|
DataType = datString
|
|
Size = 255
|
|
Value = ''
|
|
ParamType = daptInput
|
|
end
|
|
item
|
|
Name = 'ORDEN'
|
|
DataType = datInteger
|
|
Value = ''
|
|
ParamType = daptInput
|
|
end
|
|
item
|
|
Name = 'VISTA'
|
|
DataType = datMemo
|
|
Value = ''
|
|
ParamType = daptInput
|
|
end>
|
|
Statements = <
|
|
item
|
|
Connection = 'GFT_VARELA'
|
|
TargetTable = 'RDX_INFORMES'
|
|
SQL =
|
|
'INSERT'#10' INTO RDX_INFORMES'#10' (CATEGORIA, MODIFICABLE, ICONO, N' +
|
|
'OMBRE, DESCRIPCION, ORDEN, VISTA)'#10' VALUES'#10' (:CATEGORIA, :MOD' +
|
|
'IFICABLE, :ICONO, :NOMBRE, :DESCRIPCION, :ORDEN,'#10' :VISTA)'
|
|
StatementType = stSQL
|
|
ColumnMappings = <>
|
|
end>
|
|
Name = 'Insert_ControlesPorCategoria'
|
|
end
|
|
item
|
|
Params = <
|
|
item
|
|
Name = 'CATEGORIA'
|
|
DataType = datString
|
|
Size = 15
|
|
Value = ''
|
|
ParamType = daptInput
|
|
end
|
|
item
|
|
Name = 'MODIFICABLE'
|
|
DataType = datString
|
|
Size = 1
|
|
Value = ''
|
|
ParamType = daptInput
|
|
end
|
|
item
|
|
Name = 'ICONO'
|
|
DataType = datInteger
|
|
Value = ''
|
|
ParamType = daptInput
|
|
end
|
|
item
|
|
Name = 'NOMBRE'
|
|
DataType = datString
|
|
Size = 50
|
|
Value = ''
|
|
ParamType = daptInput
|
|
end
|
|
item
|
|
Name = 'DESCRIPCION'
|
|
DataType = datString
|
|
Size = 255
|
|
Value = ''
|
|
ParamType = daptInput
|
|
end
|
|
item
|
|
Name = 'ORDEN'
|
|
DataType = datInteger
|
|
Value = ''
|
|
ParamType = daptInput
|
|
end
|
|
item
|
|
Name = 'VISTA'
|
|
DataType = datMemo
|
|
Value = ''
|
|
ParamType = daptInput
|
|
end
|
|
item
|
|
Name = 'OLD_ID'
|
|
DataType = datInteger
|
|
Value = ''
|
|
ParamType = daptInput
|
|
end>
|
|
Statements = <
|
|
item
|
|
Connection = 'GFT_VARELA'
|
|
TargetTable = 'RDX_INFORMES'
|
|
SQL =
|
|
'UPDATE RDX_INFORMES'#10' SET '#10' CATEGORIA = :CATEGORIA, '#10' MODI' +
|
|
'FICABLE = :MODIFICABLE,'#10' ICONO = :ICONO, '#10' NOMBRE = :NOMBR' +
|
|
'E, '#10' DESCRIPCION = :DESCRIPCION, '#10' ORDEN = :ORDEN, '#10' VI' +
|
|
'STA = :VISTA'#10' WHERE'#10' (ID = :OLD_ID)'
|
|
StatementType = stSQL
|
|
ColumnMappings = <>
|
|
end>
|
|
Name = 'Update_ControlesPorCategoria'
|
|
end>
|
|
RelationShips = <>
|
|
UpdateRules = <>
|
|
Version = 0
|
|
Left = 40
|
|
Top = 24
|
|
end
|
|
object bpControles: TDABusinessProcessor
|
|
Schema = schControles
|
|
InsertCommandName = 'Insert_ControlesPorCategoria'
|
|
UpdateCommandName = 'Update_ControlesPorCategoria'
|
|
ReferencedDataset = 'ListaControlesPorCategoria'
|
|
ProcessorOptions = [poAutoGenerateDelete, poAutoGenerateRefreshDataset, poPrepareCommands, poIgnoreRowsAffected]
|
|
UpdateMode = updWhereKeyOnly
|
|
Left = 144
|
|
Top = 24
|
|
end
|
|
object DABINAdapter: TDABINAdapter
|
|
Left = 40
|
|
Top = 96
|
|
end
|
|
end
|