git-svn-id: https://192.168.0.254/svn/Proyectos.AbetoDesign_FactuGES/trunk@2 93f398dd-4eb6-7a46-baf6-13f46f578da2
46 lines
973 B
ObjectPascal
46 lines
973 B
ObjectPascal
unit uInventarioUtils;
|
|
|
|
interface
|
|
|
|
uses
|
|
SysUtils, Classes, JSDialog, pngimage;
|
|
|
|
type
|
|
TdmInventarioUtils = class(TDataModule)
|
|
JsArticulosSinStock: TJSDialog;
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
end;
|
|
|
|
function ShowConfirmMessage_ArticulosSinStock(AListaArticulos : TStringList): Integer;
|
|
|
|
implementation
|
|
|
|
{$R *.dfm}
|
|
|
|
var
|
|
dmInventarioUtils: TdmInventarioUtils;
|
|
|
|
|
|
function ShowConfirmMessage_ArticulosSinStock(AListaArticulos : TStringList): Integer;
|
|
begin
|
|
dmInventarioUtils := TdmInventarioUtils.Create(nil);
|
|
try
|
|
with dmInventarioUtils.JsArticulosSinStock do
|
|
begin
|
|
Content.Add('Los siguientes artículos no disponen de stok suficiente en el almacén para realizar la salida. ¿Desea continuar?');
|
|
Content.Add('');
|
|
Content.AddStrings(AListaArticulos);
|
|
Result := Execute;
|
|
end;
|
|
finally
|
|
FreeAndNIL(dmInventarioUtils);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
end.
|