Bugs solved
This commit is contained in:
parent
c1cf88e44d
commit
f0dcd47baf
|
@ -3,24 +3,23 @@
|
||||||
_Items
|
_Items
|
||||||
</h1>
|
</h1>
|
||||||
<div id="actions">
|
<div id="actions">
|
||||||
<htk-search-entry
|
<htk-search-entry lot="hash" name="search"/>
|
||||||
param="filter"/>
|
|
||||||
</div>
|
</div>
|
||||||
<div id="main" class="items">
|
<div id="main" class="items">
|
||||||
<div class="card list">
|
<div class="card list">
|
||||||
<htk-repeater form-id="iter" empty-message="_Enter a search term">
|
<htk-repeater empty-message="_Enter a search term">
|
||||||
<db-model property="model" batch="hash">
|
<db-model property="model" lot="hash">
|
||||||
SELECT Id_Article, Article, Medida, Categoria, Foto
|
SELECT Id_Article, Article, Medida, Categoria, Foto
|
||||||
FROM vn2008.Articles
|
FROM vn2008.Articles
|
||||||
WHERE Article LIKE CONCAT('%', #filter, '%')
|
WHERE Article LIKE CONCAT('%', #search, '%')
|
||||||
OR Id_Article = #filter
|
OR Id_Article = #search
|
||||||
ORDER BY Article LIMIT 50
|
ORDER BY Article LIMIT 50
|
||||||
</db-model>
|
</db-model>
|
||||||
<custom>
|
<custom>
|
||||||
<div class="list-row">
|
<div class="list-row">
|
||||||
<htk-image
|
<htk-image
|
||||||
form="iter"
|
lot="iter"
|
||||||
column="Foto"
|
name="Foto"
|
||||||
class="photo"
|
class="photo"
|
||||||
directory="catalog"
|
directory="catalog"
|
||||||
subdir="200x200"
|
subdir="200x200"
|
||||||
|
@ -28,15 +27,13 @@
|
||||||
editable="true"
|
editable="true"
|
||||||
conn="conn"/>
|
conn="conn"/>
|
||||||
<p class="concept">
|
<p class="concept">
|
||||||
<htk-text form="iter" column="Article"/>
|
{{Article}} {{Medida}} {{Categoria}}
|
||||||
<htk-text form="iter" column="Medida"/>
|
|
||||||
<htk-text form="iter" column="Categoria"/>
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<htk-text form="iter" column="Id_Article"/>
|
@{{Id_Article}}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<htk-text form="iter" column="Foto"/>
|
{{Foto}}
|
||||||
</p>
|
</p>
|
||||||
<div class="clear"/>
|
<div class="clear"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
{{Cliente}}
|
{{Cliente}}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{{id}} - {{name}}
|
@{{id}} - {{name}}
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
</custom>
|
</custom>
|
||||||
|
|
|
@ -137,7 +137,6 @@ Hedera.Confirm = new Class
|
||||||
|
|
||||||
,onConfirmClick: function ()
|
,onConfirmClick: function ()
|
||||||
{
|
{
|
||||||
console.log (this.$.lot.params);
|
|
||||||
this.disableButtons (true);
|
this.disableButtons (true);
|
||||||
this.$.confirmQuery.execute ();
|
this.$.confirmQuery.execute ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<div>
|
<div>
|
||||||
<p class="important ticket-id">
|
<p class="important ticket-id">
|
||||||
<htk-text name="id" lot="ticket"/>
|
@<htk-text name="id" lot="ticket"/>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<htk-text lot="ticket" name="delivery" format="%D"/>
|
<htk-text lot="ticket" name="delivery" format="%D"/>
|
||||||
|
|
|
@ -69,8 +69,8 @@ module.exports = new Class
|
||||||
if (this.node)
|
if (this.node)
|
||||||
{
|
{
|
||||||
this.gui.setForm (this.node);
|
this.gui.setForm (this.node);
|
||||||
this.gui.setTitle (scope.$.title);
|
this.gui.setTitle (this.$.title);
|
||||||
this.gui.setActions (scope.$.actions);
|
this.gui.setActions (this.$.actions);
|
||||||
this.activate ();
|
this.activate ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -153,28 +153,6 @@ module.exports = new Class
|
||||||
attribute, node.tagName);
|
attribute, node.tagName);
|
||||||
}
|
}
|
||||||
|
|
||||||
,postCompile: function (contextMap)
|
|
||||||
{
|
|
||||||
var links = this._links;
|
|
||||||
|
|
||||||
for (var i = links.length - 1; i >= 0; i--)
|
|
||||||
{
|
|
||||||
var link = links[i];
|
|
||||||
var context = link.context;
|
|
||||||
var contextId = contextMap[link.objectId];
|
|
||||||
|
|
||||||
if (contextId == undefined)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (link.prop)
|
|
||||||
context.objectProps[link.prop] = contextId;
|
|
||||||
else
|
|
||||||
context.childs.push (contextId);
|
|
||||||
|
|
||||||
links.splice (i, 1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
,addLink: function (context, prop, objectId)
|
,addLink: function (context, prop, objectId)
|
||||||
{
|
{
|
||||||
this._links.push ({
|
this._links.push ({
|
||||||
|
@ -206,7 +184,7 @@ module.exports = new Class
|
||||||
var object = objects[link.context.id];
|
var object = objects[link.context.id];
|
||||||
var objectRef = scope.$[link.objectId];
|
var objectRef = scope.$[link.objectId];
|
||||||
|
|
||||||
if (objectRef == null)
|
if (objectRef === undefined)
|
||||||
{
|
{
|
||||||
this.showError ('Referenced unexistent object with id \'%s\'',
|
this.showError ('Referenced unexistent object with id \'%s\'',
|
||||||
link.objectId);
|
link.objectId);
|
||||||
|
|
Loading…
Reference in New Issue