2007-09-12 14:11:44 +00:00
|
|
|
|
unit uViewClientes;
|
|
|
|
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
|
|
|
|
uses
|
|
|
|
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
|
|
|
|
Dialogs, uViewContactos, cxStyles, cxCustomData, cxGraphics, cxFilter,
|
|
|
|
|
|
cxData, cxDataStorage, cxEdit, DB, cxDBData, ActnList, uDADataTable,
|
|
|
|
|
|
cxGridLevel, cxGridCustomTableView, cxGridTableView, cxGridDBTableView,
|
|
|
|
|
|
cxClasses, cxControls, cxGridCustomView, cxGrid, JvComponent,
|
|
|
|
|
|
JvFormAutoSize, cxImage, PngImageList, ImgList, dxPSGlbl, dxPSUtl,
|
|
|
|
|
|
dxPSEngn, dxPrnPg, dxBkgnd, dxWrap, dxPrnDev, dxPSCompsProvider,
|
|
|
|
|
|
dxPSFillPatterns, dxPSEdgePatterns, cxIntlPrintSys3, dxPSCore,
|
|
|
|
|
|
dxPScxCommon, cxImageComboBox, cxGridCustomPopupMenu, cxGridPopupMenu,
|
2008-01-04 11:16:59 +00:00
|
|
|
|
dxPScxGrid6Lnk, ExtCtrls, JvComponentBase, JvBalloonHint, JvHint,
|
2007-10-15 07:53:45 +00:00
|
|
|
|
uViewFiltroBase, dxPgsDlg, TB2Item, TBX, TB2Toolbar, TBXDkPanels, TB2Dock,
|
2009-11-19 16:46:25 +00:00
|
|
|
|
uDAInterfaces, cxTextEdit, Menus, uCustomView, uViewBase;
|
2007-09-12 14:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
type
|
|
|
|
|
|
IViewClientes = interface(IViewContactos)
|
|
|
|
|
|
['{7964E0AB-3075-43E7-94BC-513D80A1C116}']
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
TfrViewClientes = class(TfrViewContactos, IViewClientes)
|
|
|
|
|
|
cxGridViewNOMBRE_COMERCIAL: TcxGridDBColumn;
|
|
|
|
|
|
cxGridViewBLOQUEADO: TcxGridDBColumn;
|
|
|
|
|
|
cxGridViewTiendaWeb: TcxGridDBColumn;
|
2009-11-19 16:46:25 +00:00
|
|
|
|
cxGridViewFELICITACION: TcxGridDBColumn;
|
2008-01-04 17:17:08 +00:00
|
|
|
|
procedure cxGridViewICONOGetCellHint(Sender: TcxCustomGridTableItem;
|
|
|
|
|
|
ARecord: TcxCustomGridRecord; ACellViewInfo: TcxGridTableDataCellViewInfo;
|
|
|
|
|
|
const AMousePos: TPoint; var AHintText: TCaption;
|
|
|
|
|
|
var AIsHintMultiLine: Boolean; var AHintTextRect: TRect);
|
2009-11-19 16:46:25 +00:00
|
|
|
|
procedure cxGridViewFELICITACIONGetCellHint(Sender: TcxCustomGridTableItem;
|
|
|
|
|
|
ARecord: TcxCustomGridRecord; ACellViewInfo: TcxGridTableDataCellViewInfo;
|
|
|
|
|
|
const AMousePos: TPoint; var AHintText: TCaption;
|
|
|
|
|
|
var AIsHintMultiLine: Boolean; var AHintTextRect: TRect);
|
2007-09-12 14:11:44 +00:00
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
|
|
|
|
uses uViewGridBase;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{$R *.dfm}
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-11-19 16:46:25 +00:00
|
|
|
|
procedure TfrViewClientes.cxGridViewFELICITACIONGetCellHint(
|
|
|
|
|
|
Sender: TcxCustomGridTableItem; ARecord: TcxCustomGridRecord;
|
|
|
|
|
|
ACellViewInfo: TcxGridTableDataCellViewInfo; const AMousePos: TPoint;
|
|
|
|
|
|
var AHintText: TCaption; var AIsHintMultiLine: Boolean;
|
|
|
|
|
|
var AHintTextRect: TRect);
|
|
|
|
|
|
begin
|
|
|
|
|
|
inherited;
|
|
|
|
|
|
if (cxGridView.DataController.DisplayTexts[ARecord.Index, cxGridViewFELICITACION.Index] = '1') then
|
|
|
|
|
|
AHintText := 'Enviar felicitaci<63>n navide<64>a';
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2008-01-04 17:17:08 +00:00
|
|
|
|
procedure TfrViewClientes.cxGridViewICONOGetCellHint(
|
|
|
|
|
|
Sender: TcxCustomGridTableItem; ARecord: TcxCustomGridRecord;
|
|
|
|
|
|
ACellViewInfo: TcxGridTableDataCellViewInfo; const AMousePos: TPoint;
|
|
|
|
|
|
var AHintText: TCaption; var AIsHintMultiLine: Boolean;
|
|
|
|
|
|
var AHintTextRect: TRect);
|
|
|
|
|
|
begin
|
|
|
|
|
|
if (cxGridView.DataController.DisplayTexts[ARecord.Index, cxGridViewBLOQUEADO.Index] = '1') then
|
|
|
|
|
|
AHintText := 'Cliente bloqueado';
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
2007-09-12 14:11:44 +00:00
|
|
|
|
end.
|