Files
MBS/PROYECTO/ipdir/ipfmmt017.4fd
T
jpegueroandClaude Sonnet 5 bb9d9a05a1 Corregir ipprmt017: columnas sin titulo, toolbar incompleto y checkbox Elimina
- Agregar titulo a columnas Unidad y Moneda, ocultar campo interno idrow
- Agregar a ToolBar1 los botones Busca Informacion, Limpia Screen,
  Conversion Moneda y Cancela operacion (estaban definidos como
  ActionDefault pero nunca agregados a la barra, por eso no se veian)
- Capturar el idrow generado al insertar un precio nuevo (antes quedaba
  NULL en memoria, rompiendo el eliminar de esa misma fila en la misma
  sesion)
- Corregir el checkbox "Elimina": el clic con mouse marcaba la casilla
  visualmente pero no actualizaba el valor real hasta perder el foco con
  Tab (bug de renderizado de GST). Se cambio el trigger de AFTER FIELD a
  ON CHANGE, que si sincroniza el valor de inmediato con clic de mouse

Pendiente: falta la prueba final completa del flujo eliminar en
ipprmt017 (se hizo hasta confirmar que ON CHANGE captura el valor
correctamente, falta probar el guardado + verificacion en BD)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 17:00:17 -04:00

84 lines
12 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<ManagedForm databaseName="smarmotech" fileVersion="31400" gstVersion="31408" name="ManagedForm" uid="{498c095c-463f-4f78-91c7-0d483bf3ce4b}">
<AGSettings>
<DynamicProperties version="2"/>
</AGSettings>
<Record additionalTables="" joinLeft="" joinOperator="" joinRight="" name="lproducto" order="" uid="{e5ee9265-fd12-40a8-8d40-d83a40fe5686}" where="">
<RecordField colName="progreso" fieldIdRef="20" name="progreso" sqlTabName="formonly" table_alias_name="" uid="{7ce42bac-0b6c-453b-86ec-1af7118d42cb}"/>
</Record>
<Record additionalTables="" joinLeft="" joinOperator="" joinRight="" name="lproducto2" order="" uid="{d27b9f57-b7f8-4818-a09e-345c31d2c834}" where="">
<RecordField colName="elimina" defaultValue="N" fieldIdRef="1" name="elimina" sqlTabName="formonly" sqlType="CHAR" table_alias_name="" uid="{8e30728c-e1d8-445c-8975-34c84bd3041c}"/>
<RecordField colName="idrow" fieldIdRef="2" length="12" name="idrow" sqlTabName="formonly" table_alias_name="" uid="{c1867ba6-9e03-437a-b841-70a2bcc0a8be}"/>
<RecordField colName="codlista" defaultValue="1" fieldIdRef="3" name="codlista" sqlTabName="formonly" table_alias_name="" uid="{effebc5f-edfe-471c-8043-6c03609f6a8d}"/>
<RecordField colName="codn" fieldIdRef="4" name="codn" sqlTabName="formonly" table_alias_name="" uid="{b26628fd-bb1e-4918-8c52-6567b391829a}"/>
<RecordField colName="codgrupo" fieldIdRef="5" name="codgrupo" sqlTabName="formonly" table_alias_name="" uid="{298b990d-3982-4316-9853-311a18fefa12}"/>
<RecordField colName="codtipo" fieldIdRef="6" name="codtipo" sqlTabName="formonly" table_alias_name="" uid="{eeed6994-fccf-4ba4-9271-5c85744f04de}"/>
<RecordField colName="codsec" fieldIdRef="7" name="codsec" sqlTabName="formonly" table_alias_name="" uid="{a053a5ca-679c-4988-8f3c-4ab73170aebf}"/>
<RecordField colName="descripcion_p" fieldIdRef="8" name="descripcion_p" sqlTabName="formonly" table_alias_name="" uid="{2916cfe4-8297-44a6-b020-78ceca492971}"/>
<RecordField colName="unidadmed" fieldIdRef="9" name="unidadmed" sqlTabName="formonly" table_alias_name="" uid="{7625d462-10d6-4768-a452-694c562bed3f}"/>
<RecordField colName="tipocliente" fieldIdRef="10" name="tipocliente" sqlTabName="formonly" table_alias_name="" uid="{1849884b-8295-4f71-b3e5-a5e853a294bf}"/>
<RecordField colName="seccliente" fieldIdRef="11" name="seccliente" sqlTabName="formonly" table_alias_name="" uid="{76885756-6f9d-426f-b863-54cfb2e1cf66}"/>
<RecordField colName="nombrecliente" fieldIdRef="12" name="nombrecliente" sqlTabName="formonly" table_alias_name="" uid="{ff2bdcaf-a038-40cf-a0d3-c6bb241ce2ff}"/>
<RecordField colName="ventas" fieldIdRef="13" name="ventas" sqlTabName="formonly" table_alias_name="" uid="{db2e223f-36ba-4b1e-9272-b37702910e60}"/>
<RecordField colName="moneda" fieldIdRef="14" name="moneda" sqlTabName="formonly" table_alias_name="" uid="{9f773d25-51be-4271-85a0-e9baa851940e}"/>
<RecordField colName="pprecio" fieldIdRef="15" name="pprecio" sqlTabName="formonly" table_alias_name="" uid="{a75b27eb-9b00-49c8-9e8c-27be17c3d5fd}"/>
<RecordField colName="costo_std" fieldIdRef="16" name="costo_std" sqlTabName="formonly" table_alias_name="" uid="{0a143a10-aaed-4973-adb7-0acac3464d6f}"/>
<RecordField colName="costo_lq" fieldIdRef="17" name="costo_lq" sqlTabName="formonly" table_alias_name="" uid="{68ce2832-db1b-46de-8ba1-a849bafaded8}"/>
<RecordField colName="fecha_liq" fieldIdRef="18" name="fecha_liq" sqlTabName="formonly" table_alias_name="" uid="{57fd7385-8170-4010-b524-afe9907f8b66}"/>
<RecordField colName="existencia" fieldIdRef="19" name="existencia" sqlTabName="formonly" table_alias_name="" uid="{1ad1e346-efa5-4abf-90f3-4f05fae9de29}"/>
</Record>
<Form gridHeight="21" gridWidth="235" name="ipfmmt017" style="basic" text="ADMINISTRACION PRECIOS">
<ActionDefaultList name="ActionDefaultList1">
<ActionDefault image="find" name="buscalista" text="Busca Informacion"/>
<ActionDefault image="clear" name="limpia" text="Limpia Screen"/>
<ActionDefault image="stop" name="cancel" text="Cancela operacion"/>
<ActionDefault image="dollar" name="conversion" text="Conversion Moneda"/>
</ActionDefaultList>
<ToolBar name="ToolBar1">
<ToolBarItem comment="ADMINISTRACION PRECIOS" image="money" name="nuevo" text="Precio"/>
<ToolBarItem image="find" name="buscalista" text="Busca Informacion"/>
<ToolBarItem image="clear" name="limpia" text="Limpia Screen"/>
<ToolBarItem image="dollar" name="conversion" text="Conversion Moneda"/>
<ToolBarItem image="stop" name="cancel" text="Cancela operacion"/>
<ToolBarSeparator name="ToolBarSeparator1"/>
<ToolBarItem image="quit" name="salir" text="Salir"/>
</ToolBar>
<Folder gridHeight="21" gridWidth="235" name="Folder1" posX="0" posY="0">
<Page name="p1" text="LISTA PRODUCTOS">
<Grid gridHeight="9" gridWidth="221" name="grid1" posX="1" posY="1">
<ProgressBar aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="progreso" color="green" fieldId="20" gridHeight="1" gridWidth="24" name="progreso" posX="5" posY="1" sqlTabName="formonly" table_alias_name="" valueMax="100" valueMin="0" widget="ProgressBar"/>
<Table gridHeight="7" gridWidth="220" name="Table1" posX="1" posY="2" totalRows="6" unitWidth="characters" width="207">
<CheckBox aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="elimina" defaultValue="N" fieldId="1" gridHeight="1" gridWidth="1" name="elimina" notNull="true" posX="0" posY="0" required="false" sqlTabName="formonly" sqlType="CHAR" tabIndex="-1" table_alias_name="" title="Elimina" valueChecked="S" valueUnchecked="N" widget="CheckBox"/>
<Edit aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="idrow" fieldId="2" gridHeight="1" gridWidth="12" hidden="true" length="12" name="idrow" noEntry="true" posX="1" posY="0" sqlTabName="formonly" tabIndex="-1" table_alias_name="" widget="Edit"/>
<ComboBox aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="codlista" defaultValue="1" fieldId="3" gridHeight="1" gridWidth="4" items="GENERAL, OUTLET PUNTA CANA, OFERTA, SD OUTLET, TIENDA SAN CRISTOBAL" name="codlista" posX="13" posY="0" sqlTabName="formonly" tabIndex="-1" table_alias_name="" title="Codigo Lista" widget="ComboBox">
<Item name="1" text="GENERAL"/>
<Item lstrtext="false" name="4" text="OUTLET PUNTA CANA"/>
<Item lstrtext="true" name="2" text="OFERTA"/>
<Item lstrtext="true" name="3" text="SD OUTLET"/>
<Item lstrtext="false" name="10" text="TIENDA SAN CRISTOBAL"/>
</ComboBox>
<Edit aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="codn" fieldId="4" gridHeight="1" gridWidth="3" name="codn" posX="17" posY="0" sqlTabName="formonly" tabIndex="-1" table_alias_name="" title="Clase" widget="Edit"/>
<Edit aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="codgrupo" fieldId="5" gridHeight="1" gridWidth="4" name="codgrupo" posX="20" posY="0" sqlTabName="formonly" tabIndex="-1" table_alias_name="" title="Grupo" widget="Edit"/>
<Edit aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="codtipo" fieldId="6" gridHeight="1" gridWidth="4" name="codtipo" posX="24" posY="0" sqlTabName="formonly" tabIndex="-1" table_alias_name="" title="Tipo" widget="Edit"/>
<Edit aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="codsec" fieldId="7" gridHeight="1" gridWidth="5" name="codsec" posX="28" posY="0" sqlTabName="formonly" tabIndex="-1" table_alias_name="" title="Medida" widget="Edit"/>
<FFLabel aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="descripcion_p" fieldId="8" gridHeight="1" gridWidth="33" name="descripcion_p" posX="33" posY="0" sqlTabName="formonly" table_alias_name="" title="Producto" widget="FFLabel"/>
<FFLabel aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="unidadmed" fieldId="9" gridHeight="1" gridWidth="4" name="unidadmed" posX="66" posY="0" sqlTabName="formonly" table_alias_name="" title="Unidad" widget="FFLabel"/>
<Edit aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="tipocliente" fieldId="10" gridHeight="1" gridWidth="2" name="tipocliente" posX="70" posY="0" sqlTabName="formonly" tabIndex="-1" table_alias_name="" title="Tipo Cliente" widget="Edit"/>
<Edit aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="seccliente" fieldId="11" gridHeight="1" gridWidth="6" name="seccliente" posX="72" posY="0" sqlTabName="formonly" tabIndex="-1" table_alias_name="" title="Codigo Cliente" widget="Edit"/>
<FFLabel aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="nombrecliente" fieldId="12" gridHeight="1" gridWidth="31" name="nombrecliente" posX="78" posY="0" sqlTabName="formonly" table_alias_name="" title="Nombre" widget="FFLabel"/>
<ComboBox aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="ventas" fieldId="13" gridHeight="1" gridWidth="15" items="" name="ventas" posX="109" posY="0" sqlTabName="formonly" tabIndex="-1" table_alias_name="" title="Ventas" widget="ComboBox"/>
<FFLabel aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="moneda" fieldId="14" gridHeight="1" gridWidth="4" name="moneda" posX="124" posY="0" sqlTabName="formonly" table_alias_name="" title="Moneda" widget="FFLabel"/>
<Edit aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="pprecio" fieldId="15" gridHeight="1" gridWidth="11" name="pprecio" posX="128" posY="0" sqlTabName="formonly" tabIndex="-1" table_alias_name="" title="PRECIO" widget="Edit"/>
<FFLabel aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="costo_std" fieldId="16" gridHeight="1" gridWidth="13" name="costo_std" posX="139" posY="0" sqlTabName="formonly" table_alias_name="" title="Costo STD" widget="FFLabel"/>
<FFLabel aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="costo_lq" fieldId="17" gridHeight="1" gridWidth="15" name="costo_lq" posX="152" posY="0" sqlTabName="formonly" table_alias_name="" title="Costo Liquidado" widget="FFLabel"/>
<Edit aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="fecha_liq" fieldId="18" format="dd/mm/yyyy" gridHeight="1" gridWidth="10" name="fecha_liq" posX="167" posY="0" sqlTabName="formonly" tabIndex="-1" table_alias_name="" title="FECHA LQ" widget="Edit"/>
<Edit aggregateColName="" aggregateName="" aggregateTableAliasName="" aggregateTableName="" colName="existencia" fieldId="19" format="---,--&amp;.##" gridHeight="1" gridWidth="12" name="existencia" posX="177" posY="0" sqlTabName="formonly" tabIndex="-1" table_alias_name="" title="EXISTENCIA" widget="Edit"/>
</Table>
</Grid>
</Page>
</Folder>
</Form>
<DiagramLayout>
<![CDATA[AAAAAgAAAEwAewBkADIANwBiADkAZgA1ADcALQBiADcAZgA4AC0ANAA4ADEAOAAtAGEAMAA5AGUALQAzADQANQBjADMAMQBkADIAYwA4ADMANAB9QDgAADYAADdAOAAANgAANwAAAAAAAAAAAQAAAEwAewBlADUAZQBlADkAMgA2ADUALQBmAGQAMQAyAC0ANAAwAGEAOAAtADgAZAA0ADAALQBkADgAMwBhADQAMABmAGUANQA2ADgANgB9AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ==]]>
</DiagramLayout>
</ManagedForm>