Tecsitel_FactuGES2/Source/Modulos/Remesas de cliente/Servidor/srvRemesasCliente_Impl.dfm
2007-11-20 15:45:03 +00:00

551 lines
15 KiB
Plaintext

object srvRemesasCliente: TsrvRemesasCliente
OldCreateOrder = True
OnCreate = DARemoteServiceCreate
RequiresSession = True
SessionManager = dmServer.SessionManager
ConnectionName = 'IBX'
ServiceSchema = schRemesasCliente
ServiceDataStreamer = Bin2DataStreamer
ExportedDataTables = <>
BeforeAcquireConnection = DataAbstractServiceBeforeAcquireConnection
Height = 249
Width = 343
object Diagrams: TDADiagrams
Left = 150
Top = 74
DiagramData = '<Diagrams>'#13#10'</Diagrams>'#13#10
end
object DataDictionary: TDADataDictionary
Fields = <
item
Name = 'RemesasCliente_ID'
DataType = datAutoInc
GeneratorName = 'GEN_REMESAS_CLIENTE_ID'
Required = True
DisplayLabel = 'ID'
ServerAutoRefresh = True
end
item
Name = 'RemesasCliente_FECHA_REMESA'
DataType = datDateTime
end
item
Name = 'RemesasCliente_DESCRIPCION'
DataType = datString
Size = 255
ServerAutoRefresh = True
end
item
Name = 'RemesasCliente_USUARIO'
DataType = datString
Size = 20
end
item
Name = 'RemesasCliente_ID_EMPRESA'
DataType = datInteger
end
item
Name = 'RemesasCliente_ID_DATOS_BANCO'
DataType = datInteger
DisplayLabel = 'ID_DATOS_BANCO'
end
item
Name = 'RemesasCliente_FECHA_ALTA'
DataType = datDateTime
DisplayLabel = 'FECHA_ALTA'
end
item
Name = 'RemesasCliente_FECHA_MODIFICACION'
DataType = datDateTime
DisplayLabel = 'FECHA_MODIFICACION'
end
item
Name = 'RemesasCliente_NOMBRE'
DataType = datString
Size = 255
DisplayLabel = 'Banco'
end
item
Name = 'RemesasCliente_ENTIDAD'
DataType = datString
Size = 15
DisplayLabel = 'Cod. entidad'
end
item
Name = 'RemesasCliente_SUCURSAL'
DataType = datString
Size = 15
DisplayLabel = 'Cod. sucursal'
end
item
Name = 'RemesasCliente_DC'
DataType = datString
Size = 15
DisplayLabel = 'DC'
end
item
Name = 'RemesasCliente_CUENTA'
DataType = datString
Size = 15
DisplayLabel = 'Cuenta'
end
item
Name = 'RemesasCliente_SUFIJO_N19'
DataType = datString
Size = 3
DisplayLabel = 'Sufijo N19'
end
item
Name = 'RemesasCliente_SUFIJO_N58'
DataType = datString
Size = 3
DisplayLabel = 'Sufijo N58'
end
item
Name = 'RemesasCliente_Refresh_REFERENCIA'
DataType = datString
Size = 255
DisplayLabel = 'REFERENCIA'
ServerAutoRefresh = True
end
item
Name = 'RemesasCliente_REFERENCIA'
DataType = datString
Size = 255
DisplayLabel = 'REFERENCIA'
ServerAutoRefresh = True
end
item
Name = 'RemesasCliente_TIPO'
DataType = datString
Size = 40
DisplayLabel = 'Forma de cobro'
end
item
Name = 'RemesasCliente_IMPORTE_TOTAL'
DataType = datCurrency
DisplayLabel = 'Importe total'
Alignment = taRightJustify
ServerAutoRefresh = True
end>
Left = 150
Top = 22
end
object schRemesasCliente: TDASchema
ConnectionManager = dmServer.ConnectionManager
DataDictionary = DataDictionary
Diagrams = Diagrams
Datasets = <
item
Params = <
item
Name = 'CODIGO'
DataType = datString
Size = 50
Value = 'REF_REMESAS_CLIENTE'
ParamType = daptInput
end
item
Name = 'EMPRESA'
Value = '1'
ParamType = daptInput
end>
Statements = <
item
Connection = 'IBX'
TargetTable = 'REFERENCIAS'
SQL =
'SELECT VALOR'#10'FROM REFERENCIAS'#10'WHERE CODIGO = :CODIGO'#10'AND ID_EMPR' +
'ESA = :EMPRESA'
StatementType = stSQL
ColumnMappings = <
item
DatasetField = 'VALOR'
TableField = 'VALOR'
end>
end>
Name = 'darReferencia'
Fields = <
item
Name = 'VALOR'
DataType = datString
Size = 255
end>
end
item
Params = <>
Statements = <
item
Connection = 'IBX'
TargetTable = 'V_REMESAS_CLIENTE'
StatementType = stAutoSQL
ColumnMappings = <
item
DatasetField = 'ID'
TableField = 'ID'
end
item
DatasetField = 'ID_EMPRESA'
TableField = 'ID_EMPRESA'
end
item
DatasetField = 'REFERENCIA'
TableField = 'REFERENCIA'
end
item
DatasetField = 'TIPO'
TableField = 'TIPO'
end
item
DatasetField = 'FECHA_REMESA'
TableField = 'FECHA_REMESA'
end
item
DatasetField = 'DESCRIPCION'
TableField = 'DESCRIPCION'
end
item
DatasetField = 'ID_DATOS_BANCO'
TableField = 'ID_DATOS_BANCO'
end
item
DatasetField = 'FECHA_ALTA'
TableField = 'FECHA_ALTA'
end
item
DatasetField = 'FECHA_MODIFICACION'
TableField = 'FECHA_MODIFICACION'
end
item
DatasetField = 'USUARIO'
TableField = 'USUARIO'
end
item
DatasetField = 'NOMBRE'
TableField = 'NOMBRE'
end
item
DatasetField = 'ENTIDAD'
TableField = 'ENTIDAD'
end
item
DatasetField = 'SUCURSAL'
TableField = 'SUCURSAL'
end
item
DatasetField = 'DC'
TableField = 'DC'
end
item
DatasetField = 'CUENTA'
TableField = 'CUENTA'
end
item
DatasetField = 'SUFIJO_N19'
TableField = 'SUFIJO_N19'
end
item
DatasetField = 'SUFIJO_N58'
TableField = 'SUFIJO_N58'
end
item
DatasetField = 'IMPORTE_TOTAL'
TableField = 'IMPORTE_TOTAL'
end>
end>
Name = 'RemesasCliente'
Fields = <
item
Name = 'ID'
DataType = datAutoInc
GeneratorName = 'GEN_REMESAS_CLIENTE_ID'
ServerAutoRefresh = True
DictionaryEntry = 'RemesasCliente_ID'
InPrimaryKey = True
end
item
Name = 'ID_EMPRESA'
DataType = datInteger
DictionaryEntry = 'RemesasCliente_ID_EMPRESA'
end
item
Name = 'REFERENCIA'
DataType = datString
Size = 255
DictionaryEntry = 'RemesasCliente_REFERENCIA'
end
item
Name = 'TIPO'
DataType = datString
Size = 40
DictionaryEntry = 'RemesasCliente_TIPO'
end
item
Name = 'FECHA_REMESA'
DataType = datDateTime
DictionaryEntry = 'RemesasCliente_FECHA_REMESA'
end
item
Name = 'DESCRIPCION'
DataType = datString
Size = 255
DictionaryEntry = 'RemesasCliente_DESCRIPCION'
end
item
Name = 'ID_DATOS_BANCO'
DataType = datInteger
DictionaryEntry = 'RemesasCliente_ID_DATOS_BANCO'
end
item
Name = 'FECHA_ALTA'
DataType = datDateTime
DictionaryEntry = 'RemesasCliente_FECHA_ALTA'
end
item
Name = 'FECHA_MODIFICACION'
DataType = datDateTime
DictionaryEntry = 'RemesasCliente_FECHA_MODIFICACION'
end
item
Name = 'USUARIO'
DataType = datString
Size = 20
DictionaryEntry = 'RemesasCliente_USUARIO'
end
item
Name = 'NOMBRE'
DataType = datString
Size = 255
DictionaryEntry = 'RemesasCliente_NOMBRE'
end
item
Name = 'ENTIDAD'
DataType = datString
Size = 15
DictionaryEntry = 'RemesasCliente_ENTIDAD'
end
item
Name = 'SUCURSAL'
DataType = datString
Size = 15
DictionaryEntry = 'RemesasCliente_SUCURSAL'
end
item
Name = 'DC'
DataType = datString
Size = 15
DictionaryEntry = 'RemesasCliente_DC'
end
item
Name = 'CUENTA'
DataType = datString
Size = 15
DictionaryEntry = 'RemesasCliente_CUENTA'
end
item
Name = 'SUFIJO_N19'
DataType = datString
Size = 3
DictionaryEntry = 'RemesasCliente_SUFIJO_N19'
end
item
Name = 'SUFIJO_N58'
DataType = datString
Size = 3
DictionaryEntry = 'RemesasCliente_SUFIJO_N58'
end
item
Name = 'IMPORTE_TOTAL'
DataType = datCurrency
DictionaryEntry = 'RemesasCliente_IMPORTE_TOTAL'
end>
end>
JoinDataTables = <>
UnionDataTables = <>
Commands = <
item
Params = <
item
Name = 'VALOR'
Value = ''
end
item
Name = 'CODIGO'
Value = ''
end
item
Name = 'EMPRESA'
Value = ''
end>
Statements = <
item
Connection = 'IBX'
TargetTable = 'REFERENCIAS'
SQL =
'UPDATE REFERENCIAS SET'#10' VALOR = :VALOR'#10'WHERE CODIGO = :COD' +
'IGO AND'#10' ID_EMPRESA = :EMPRESA'#10
StatementType = stSQL
ColumnMappings = <>
end>
Name = 'ModificarReferencia'
end
item
Params = <
item
Name = 'ID'
DataType = datAutoInc
GeneratorName = 'GEN_REMESAS_CLIENTE_ID'
Value = ''
end
item
Name = 'REFERENCIA'
Value = ''
end
item
Name = 'TIPO'
Value = ''
end
item
Name = 'FECHA_REMESA'
Value = ''
end
item
Name = 'DESCRIPCION'
Value = ''
end
item
Name = 'USUARIO'
Value = ''
end
item
Name = 'ID_EMPRESA'
Value = ''
end
item
Name = 'ID_DATOS_BANCO'
Value = ''
end
item
Name = 'FECHA_ALTA'
Value = ''
end
item
Name = 'FECHA_MODIFICACION'
Value = ''
end>
Statements = <
item
Connection = 'IBX'
TargetTable = 'REMESAS_CLIENTE'
SQL =
'INSERT'#10' INTO REMESAS_CLIENTE'#10' (ID, REFERENCIA, TIPO, FECHA_R' +
'EMESA, DESCRIPCION, USUARIO, ID_EMPRESA,'#10' ID_DATOS_BANCO, FE' +
'CHA_ALTA, FECHA_MODIFICACION)'#10' VALUES'#10' (:ID, :REFERENCIA, :T' +
'IPO, :FECHA_REMESA, :DESCRIPCION, :USUARIO,'#10' :ID_EMPRESA, :I' +
'D_DATOS_BANCO, :FECHA_ALTA,'#10' :FECHA_MODIFICACION)'
StatementType = stSQL
ColumnMappings = <>
end>
Name = 'Insert_RemesasCliente'
end
item
Params = <
item
Name = 'OLD_ID'
Value = ''
end>
Statements = <
item
Connection = 'IBX'
TargetTable = 'REMESAS_CLIENTE'
SQL = 'DELETE '#10' FROM'#10' REMESAS_CLIENTE'#10' WHERE'#10' (ID = :OLD_ID)'
StatementType = stSQL
ColumnMappings = <>
end>
Name = 'Delete_RemesasCliente'
end
item
Params = <
item
Name = 'ID'
Value = ''
end
item
Name = 'REFERENCIA'
Value = ''
end
item
Name = 'TIPO'
Value = ''
end
item
Name = 'FECHA_REMESA'
Value = ''
end
item
Name = 'DESCRIPCION'
Value = ''
end
item
Name = 'USUARIO'
Value = ''
end
item
Name = 'ID_EMPRESA'
Value = ''
end
item
Name = 'ID_DATOS_BANCO'
Value = ''
end
item
Name = 'FECHA_ALTA'
Value = ''
end
item
Name = 'FECHA_MODIFICACION'
Value = ''
end
item
Name = 'OLD_ID'
Value = ''
end>
Statements = <
item
Connection = 'IBX'
TargetTable = 'REMESAS_CLIENTE'
SQL =
'UPDATE REMESAS_CLIENTE'#10' SET '#10' ID = :ID,'#10' REFERENCIA = :RE' +
'FERENCIA, '#10' TIPO = :TIPO,'#10' FECHA_REMESA = :FECHA_REMESA, '#10 +
' DESCRIPCION = :DESCRIPCION, '#10' USUARIO = :USUARIO, '#10' ID' +
'_EMPRESA = :ID_EMPRESA, '#10' ID_DATOS_BANCO = :ID_DATOS_BANCO,'#10' ' +
' FECHA_ALTA = :FECHA_ALTA, '#10' FECHA_MODIFICACION = :FECHA_MO' +
'DIFICACION'#10' WHERE'#10' (ID = :OLD_ID)'#10
StatementType = stSQL
ColumnMappings = <>
end>
Name = 'Update_RemesasCliente'
end>
RelationShips = <>
UpdateRules = <>
Version = 0
Left = 48
Top = 24
end
object bpRemesasCliente: TDABusinessProcessor
Schema = schRemesasCliente
InsertCommandName = 'Insert_RemesasCliente'
DeleteCommandName = 'Delete_RemesasCliente'
UpdateCommandName = 'Update_RemesasCliente'
ReferencedDataset = 'RemesasCliente'
ProcessorOptions = [poPrepareCommands]
UpdateMode = updWhereKeyOnly
Left = 248
Top = 24
end
object Bin2DataStreamer: TDABin2DataStreamer
Left = 48
Top = 88
end
end