646 lines
26 KiB
XML
646 lines
26 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- Generated with glade 3.18.3 -->
|
|
<interface>
|
|
<requires lib="gtk+" version="3.12"/>
|
|
<requires lib="" version="3.12"/>
|
|
<requires lib="vn" version="1.0"/>
|
|
<!-- interface-css-provider-path comparative.css -->
|
|
<object class="GtkAdjustment" id="adjustment">
|
|
<property name="upper">100</property>
|
|
<property name="step_increment">1</property>
|
|
<property name="page_increment">10</property>
|
|
</object>
|
|
<object class="VnBatch" id="batch-weeks">
|
|
<items>
|
|
<item id="store" param="field-store"/>
|
|
<item id="type" param="param-type"/>
|
|
</items>
|
|
</object>
|
|
<object class="VnSet" id="models">
|
|
<child>
|
|
<object class="VnModel" id="model-types">
|
|
<property name="sql">SELECT tipo_id, Tipo FROM Tipos WHERE #link ORDER BY Tipo</property>
|
|
<links>
|
|
<link field="Tipos.reino_id" param="field-realm" linked="True"/>
|
|
</links>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="VnModel" id="model-realm">
|
|
<property name="sql">SELECT id, reino FROM reinos WHERE display</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="VnModel" id="model-store">
|
|
<property name="sql">SELECT id, LEFT(name, 10) FROM warehouse WHERE NOT fuente</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="VnModel" id="model-color">
|
|
<property name="sql">SELECT Id_Color, Color FROM Colores</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="VnModel" id="model-weeks">
|
|
<property name="sql">CALL comparative_test (#from, #days, #store, #type, NULL)</property>
|
|
<property name="batch">batch-weeks</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<object class="VnSet" id="calcs">
|
|
<child>
|
|
<object class="DbCalc" id="calc-available">
|
|
<property name="model">model-weeks</property>
|
|
<property name="column_name">avalaible</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="DbCalc" id="calc-visible">
|
|
<property name="model">model-weeks</property>
|
|
<property name="column_name">visible</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<object class="GtkGrid" id="title-available">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="row_homogeneous">True</property>
|
|
<property name="column_homogeneous">True</property>
|
|
<child>
|
|
<object class="GtkLabel" id="label-available">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="yes">Available</property>
|
|
<attributes>
|
|
<attribute name="weight" value="bold"/>
|
|
</attributes>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="VnLabel" id="sum-available">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="master">calc-available</property>
|
|
<property name="format">%.0f</property>
|
|
<child internal-child="widget">
|
|
<object class="GtkLabel" id="label-widget1">
|
|
<property name="can_focus">False</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<object class="GtkGrid" id="title-visible">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="row_homogeneous">True</property>
|
|
<property name="column_homogeneous">True</property>
|
|
<child>
|
|
<object class="GtkLabel" id="label-visible">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="yes">Visible</property>
|
|
<attributes>
|
|
<attribute name="weight" value="bold"/>
|
|
</attributes>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="VnLabel" id="sum-visible">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="master">calc-visible</property>
|
|
<property name="format">%.0f</property>
|
|
<child internal-child="widget">
|
|
<object class="GtkLabel" id="label-widget2">
|
|
<property name="can_focus">False</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<object class="VnSet" id="iterators">
|
|
<child>
|
|
<object class="VnIterator" id="iterator-types">
|
|
<property name="model">model-types</property>
|
|
<property name="remember_selection">False</property>
|
|
<child>
|
|
<object class="DbParam" id="param-type">
|
|
<property name="column_name">tipo_id</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="VnIterator" id="iterator-weeks">
|
|
<property name="model">model-weeks</property>
|
|
<property name="remember_selection">False</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<object class="GtkDialog" id="dialog-swap">
|
|
<property name="can_focus">False</property>
|
|
<property name="title" translatable="yes">Swap item</property>
|
|
<property name="resizable">False</property>
|
|
<property name="modal">True</property>
|
|
<property name="destroy_with_parent">True</property>
|
|
<property name="type_hint">dialog</property>
|
|
<signal name="response" handler="vn_weeks_on_swap_response" swapped="yes"/>
|
|
<child internal-child="vbox">
|
|
<object class="GtkBox" id="dialog-vbox">
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">2</property>
|
|
<child internal-child="action_area">
|
|
<object class="GtkButtonBox" id="dialog-action-area">
|
|
<property name="can_focus">False</property>
|
|
<property name="layout_style">end</property>
|
|
<child>
|
|
<placeholder/>
|
|
</child>
|
|
<child>
|
|
<placeholder/>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">True</property>
|
|
<property name="pack_type">end</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkGrid" id="grid-swap">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="border_width">4</property>
|
|
<property name="row_spacing">4</property>
|
|
<property name="column_spacing">4</property>
|
|
<property name="row_homogeneous">True</property>
|
|
<child>
|
|
<object class="GtkLabel" id="label-swap">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">Change:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label-for">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">For:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="VnEntry" id="swap-item">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<child internal-child="widget">
|
|
<object class="GtkEntry" id="entry-widget1">
|
|
<property name="can_focus">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="VnEntry" id="swap-for">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<child internal-child="widget">
|
|
<object class="GtkEntry" id="entry-widget2">
|
|
<property name="can_focus">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label-from">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">From:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label-to">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">To:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">3</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="VnDateChooser" id="swap-from">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<child internal-child="widget">
|
|
<object class="GtkToggleButton" id="date-chooser-widget3">
|
|
<property name="can_focus">True</property>
|
|
<property name="receives_default">True</property>
|
|
<property name="relief">half</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="VnDateChooser" id="swap-to">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<child internal-child="widget">
|
|
<object class="GtkToggleButton" id="date-chooser-widget4">
|
|
<property name="can_focus">True</property>
|
|
<property name="receives_default">True</property>
|
|
<property name="relief">half</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">3</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<object class="GtkImage" id="image-swap">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="icon_name">view-refresh-symbolic</property>
|
|
</object>
|
|
<object class="GtkBox" id="main">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="border_width">4</property>
|
|
<property name="spacing">4</property>
|
|
<child>
|
|
<object class="GtkPaned" id="paned">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<child>
|
|
<object class="GtkScrolledWindow" id="scrolledwindow1">
|
|
<property name="width_request">380</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="vadjustment">adjustment</property>
|
|
<property name="window_placement">top-right</property>
|
|
<property name="shadow_type">in</property>
|
|
<child>
|
|
<object class="VnGrid" id="grid-items">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="search_column">0</property>
|
|
<property name="iterator">iterator-weeks</property>
|
|
<child internal-child="selection">
|
|
<object class="GtkTreeSelection" id="grid-selection">
|
|
<property name="mode">multiple</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="VnColumnEntry" id="column-item">
|
|
<property name="sizing">autosize</property>
|
|
<property name="max_width">50</property>
|
|
<property name="title" translatable="yes">Item
|
|
</property>
|
|
<property name="expand">True</property>
|
|
<property name="column_name">Article</property>
|
|
<child internal-child="cell">
|
|
<object class="GtkCellRendererText" id="column-entry-cell1"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="VnColumnEntry" id="column-size">
|
|
<property name="title" translatable="yes">Size
|
|
</property>
|
|
<property name="column_name">Medida</property>
|
|
<child internal-child="cell">
|
|
<object class="GtkCellRendererText" id="column-entry-cell2"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="VnColumnEntry" id="column-category">
|
|
<property name="title" translatable="yes">Cat
|
|
</property>
|
|
<property name="column_name">Categoria</property>
|
|
<child internal-child="cell">
|
|
<object class="GtkCellRendererText" id="column-entry-cell3"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="VnColumnEntry" id="column-origin">
|
|
<property name="title" translatable="yes">Origin
|
|
</property>
|
|
<property name="column_name">Origen</property>
|
|
<child internal-child="cell">
|
|
<object class="GtkCellRendererText" id="column-entry-cell4"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="VnColumnSpin" id="column-visible">
|
|
<property name="widget">title-visible</property>
|
|
<property name="column_name">visible</property>
|
|
<child internal-child="cell">
|
|
<object class="GtkCellRendererSpin" id="column-spin-cell1">
|
|
<property name="background_rgba">rgb(219,228,255)</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="VnColumnSpin" id="column-available">
|
|
<property name="widget">title-available</property>
|
|
<property name="column_name">avalaible</property>
|
|
<child internal-child="cell">
|
|
<object class="GtkCellRendererSpin" id="column-spin-cell2">
|
|
<property name="background_rgba">rgb(204,255,198)</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="resize">False</property>
|
|
<property name="shrink">True</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkScrolledWindow" id="scrolledwindow2">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="vadjustment">adjustment</property>
|
|
<property name="shadow_type">in</property>
|
|
<child>
|
|
<object class="VnGrid" id="grid-weeks">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="iterator">iterator-weeks</property>
|
|
<child internal-child="selection">
|
|
<object class="GtkTreeSelection" id="grid-selection1">
|
|
<property name="mode">multiple</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="resize">True</property>
|
|
<property name="shrink">True</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="box2">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">4</property>
|
|
<child>
|
|
<object class="GtkGrid" id="grid3">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="row_spacing">4</property>
|
|
<property name="column_spacing">4</property>
|
|
<property name="row_homogeneous">True</property>
|
|
<child>
|
|
<object class="GtkLabel" id="label6">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">From:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label7">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">To:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="VnDateChooser" id="field-from">
|
|
<property name="width_request">160</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<signal name="value-changed" handler="vn_weeks_on_from_changed" swapped="yes"/>
|
|
<child internal-child="widget">
|
|
<object class="GtkToggleButton" id="date-chooser-widget1">
|
|
<property name="can_focus">False</property>
|
|
<property name="receives_default">False</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="VnDateChooser" id="field-to">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<signal name="value-changed" handler="vn_weeks_on_to_changed" swapped="yes"/>
|
|
<child internal-child="widget">
|
|
<object class="GtkToggleButton" id="date-chooser-widget2">
|
|
<property name="can_focus">False</property>
|
|
<property name="receives_default">False</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label2">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">Store:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="VnCombo" id="field-store">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="model">model-store</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label4">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="xalign">1</property>
|
|
<property name="label" translatable="yes">Realm:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">3</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="VnCombo" id="field-realm">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="model">model-realm</property>
|
|
<child internal-child="widget">
|
|
<object class="GtkComboBox" id="combo-widget2">
|
|
<property name="can_focus">False</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">3</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkScrolledWindow" id="scrolledwindow3">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="shadow_type">in</property>
|
|
<child>
|
|
<object class="VnGrid" id="grid-types">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="search_column">1</property>
|
|
<property name="iterator">iterator-types</property>
|
|
<child internal-child="selection">
|
|
<object class="GtkTreeSelection" id="grid-selection2">
|
|
<property name="mode">multiple</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="VnColumnEntry" id="column-type">
|
|
<property name="sizing">autosize</property>
|
|
<property name="title" translatable="yes">Type</property>
|
|
<property name="column_name">Tipo</property>
|
|
<child internal-child="cell">
|
|
<object class="GtkCellRendererText" id="column-entry-cell5"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="button1">
|
|
<property name="label" translatable="yes">Swap item</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="receives_default">True</property>
|
|
<property name="image">image-swap</property>
|
|
<signal name="clicked" handler="vn_weeks_on_swap_clicked" swapped="yes"/>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">2</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</interface>
|