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<72>culos no disponen de stok suficiente en el almac<61>n para realizar la salida. <20>Desea continuar?');
|
|||
|
|
Content.Add('');
|
|||
|
|
Content.AddStrings(AListaArticulos);
|
|||
|
|
Result := Execute;
|
|||
|
|
end;
|
|||
|
|
finally
|
|||
|
|
FreeAndNIL(dmInventarioUtils);
|
|||
|
|
end;
|
|||
|
|
end;
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
end.
|