2025-04-30 16:20:38 +08:00
unit U_ClothContractListHZ;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, ComCtrls, ToolWin, cxStyles, cxCustomData,
cxGraphics, cxFilter, cxData, cxDataStorage, cxEdit, DB, cxDBData, ADODB,
2025-11-21 09:37:23 +08:00
cxGridCustomPopupMenu, cxGridPopupMenu, cxGridLevel, cxClasses, cxControls,
cxGridCustomView, cxGridCustomTableView, cxGridTableView, cxGridDBTableView,
cxGrid, DBClient, cxCalendar, cxButtonEdit, cxSplitter, RM_Common, RM_Class,
RM_e_Xls, RM_Dataset, RM_System, RM_GridReport, cxTextEdit, cxPC,
cxLookAndFeels, cxLookAndFeelPainters, dxBarBuiltInMenu, cxNavigator,
dxSkinsCore, dxSkinBlack, dxSkinBlue, dxSkinBlueprint, dxSkinCaramel,
dxSkinCoffee, dxSkinDarkRoom, dxSkinDarkSide, dxSkinDevExpressDarkStyle,
dxSkinDevExpressStyle, dxSkinFoggy, dxSkinGlassOceans, dxSkinHighContrast,
dxSkiniMaginary, dxSkinLilian, dxSkinLiquidSky, dxSkinLondonLiquidSky,
dxSkinMcSkin, dxSkinMetropolis, dxSkinMetropolisDark, dxSkinMoneyTwins,
dxSkinOffice2007Black, dxSkinOffice2007Blue, dxSkinOffice2007Green,
dxSkinOffice2007Pink, dxSkinOffice2007Silver, dxSkinOffice2010Black,
dxSkinOffice2010Blue, dxSkinOffice2010Silver, dxSkinOffice2013DarkGray,
dxSkinOffice2013LightGray, dxSkinOffice2013White, dxSkinPumpkin, dxSkinSeven,
dxSkinSevenClassic, dxSkinSharp, dxSkinSharpPlus, dxSkinSilver,
dxSkinSpringTime, dxSkinStardust, dxSkinSummer2008, dxSkinTheAsphaltWorld,
dxSkinsDefaultPainters, dxSkinValentine, dxSkinVS2010, dxSkinWhiteprint,
dxSkinXmas2008Blue, dxSkinscxPCPainter, cxCheckBox;
2025-04-30 16:20:38 +08:00
type
TfrmClothContractListHZ = class( TForm)
ToolBar1: TToolBar;
TBRafresh: TToolButton;
TBFind: TToolButton;
TBAdd: TToolButton;
TBEdit: TToolButton;
TBDel: TToolButton;
TBPrint: TToolButton;
TBClose: TToolButton;
Panel1: TPanel;
BegDate: TDateTimePicker;
EndDate: TDateTimePicker;
Label1: TLabel;
Label2: TLabel;
cxGridPopupMenu1: TcxGridPopupMenu;
ADOQueryCmd: TADOQuery;
ADOQueryMain: TADOQuery;
ADOQueryTemp: TADOQuery;
DataSource1: TDataSource;
Label3: TLabel;
ConNoM: TEdit;
Label5: TLabel;
C_CodeNameM: TEdit;
TBExport: TToolButton;
Order_Main: TClientDataSet;
Label4: TLabel;
C_Spec: TEdit;
RM1: TRMGridReport;
RMDBMain: TRMDBDataSet;
RMXLSExport1: TRMXLSExport;
CDS_PRT: TClientDataSet;
cxPageControl1: TcxPageControl;
cxTabSheet1: TcxTabSheet;
cxTabSheet2: TcxTabSheet;
cxTabSheet3: TcxTabSheet;
cxTabSheet4: TcxTabSheet;
cxTabSheet5: TcxTabSheet;
cxGrid2: TcxGrid;
Tv2: TcxGridDBTableView;
cxGridDBColumn1: TcxGridDBColumn;
cxGridDBColumn2: TcxGridDBColumn;
cxGridDBColumn3: TcxGridDBColumn;
cxGridDBColumn5: TcxGridDBColumn;
cxGridDBColumn6: TcxGridDBColumn;
cxGridDBColumn7: TcxGridDBColumn;
cxGridDBColumn8: TcxGridDBColumn;
cxGridDBColumn9: TcxGridDBColumn;
cxGridDBColumn10: TcxGridDBColumn;
cxGridDBColumn11: TcxGridDBColumn;
cxGridDBColumn12: TcxGridDBColumn;
cxGridDBColumn13: TcxGridDBColumn;
cxGridLevel1: TcxGridLevel;
cxGrid4: TcxGrid;
Tv4: TcxGridDBTableView;
cxGridDBColumn26: TcxGridDBColumn;
cxGridDBColumn27: TcxGridDBColumn;
cxGridDBColumn28: TcxGridDBColumn;
cxGridDBColumn29: TcxGridDBColumn;
cxGridDBColumn30: TcxGridDBColumn;
cxGridDBColumn31: TcxGridDBColumn;
cxGridDBColumn32: TcxGridDBColumn;
cxGridDBColumn33: TcxGridDBColumn;
cxGridDBColumn34: TcxGridDBColumn;
cxGridDBColumn35: TcxGridDBColumn;
cxGridDBColumn36: TcxGridDBColumn;
cxGridDBColumn37: TcxGridDBColumn;
cxGridLevel3: TcxGridLevel;
cxGrid5: TcxGrid;
Tv5: TcxGridDBTableView;
cxGridDBColumn38: TcxGridDBColumn;
cxGridDBColumn39: TcxGridDBColumn;
cxGridDBColumn40: TcxGridDBColumn;
cxGridDBColumn41: TcxGridDBColumn;
cxGridDBColumn42: TcxGridDBColumn;
cxGridDBColumn43: TcxGridDBColumn;
cxGridDBColumn44: TcxGridDBColumn;
cxGridDBColumn45: TcxGridDBColumn;
cxGridDBColumn46: TcxGridDBColumn;
cxGridDBColumn47: TcxGridDBColumn;
cxGridDBColumn48: TcxGridDBColumn;
cxGridDBColumn49: TcxGridDBColumn;
cxGridLevel4: TcxGridLevel;
cxGrid3: TcxGrid;
Tv3: TcxGridDBTableView;
cxGridDBColumn4: TcxGridDBColumn;
cxGridDBColumn14: TcxGridDBColumn;
cxGridDBColumn15: TcxGridDBColumn;
cxGridDBColumn16: TcxGridDBColumn;
cxGridDBColumn17: TcxGridDBColumn;
cxGridDBColumn18: TcxGridDBColumn;
v1PRTMF: TcxGridDBColumn;
v1PRTKZ: TcxGridDBColumn;
cxGridDBColumn19: TcxGridDBColumn;
cxGridDBColumn20: TcxGridDBColumn;
cxGridDBColumn21: TcxGridDBColumn;
cxGridDBColumn22: TcxGridDBColumn;
cxGridDBColumn23: TcxGridDBColumn;
cxGridDBColumn24: TcxGridDBColumn;
cxGridDBColumn25: TcxGridDBColumn;
cxGridLevel2: TcxGridLevel;
cxTabSheet6: TcxTabSheet;
cxGrid6: TcxGrid;
Tv6: TcxGridDBTableView;
cxGridDBColumn50: TcxGridDBColumn;
cxGridDBColumn51: TcxGridDBColumn;
cxGridDBColumn52: TcxGridDBColumn;
cxGridDBColumn53: TcxGridDBColumn;
cxGridDBColumn54: TcxGridDBColumn;
cxGridDBColumn55: TcxGridDBColumn;
cxGridDBColumn56: TcxGridDBColumn;
cxGridDBColumn57: TcxGridDBColumn;
cxGridDBColumn58: TcxGridDBColumn;
cxGridDBColumn59: TcxGridDBColumn;
cxGridDBColumn60: TcxGridDBColumn;
cxGridDBColumn61: TcxGridDBColumn;
cxGridLevel5: TcxGridLevel;
ToolButton1: TToolButton;
cxGrid1: TcxGrid;
Tv1: TcxGridDBTableView;
v1OrderNo: TcxGridDBColumn;
v1Column2: TcxGridDBColumn;
v1DeliveryDate: TcxGridDBColumn;
v1Column5: TcxGridDBColumn;
v1FactoryNo1Name: TcxGridDBColumn;
v1PRTSpec: TcxGridDBColumn;
v1Qty1: TcxGridDBColumn;
v1PRTOrderQty: TcxGridDBColumn;
v1OrderUnit: TcxGridDBColumn;
v1Column1: TcxGridDBColumn;
v1PRTUnit: TcxGridDBColumn;
v1PRTQty: TcxGridDBColumn;
v1Column4: TcxGridDBColumn;
cxGrid1Level1: TcxGridLevel;
ToolButton2: TToolButton;
v1Column3: TcxGridDBColumn;
2025-11-21 09:37:23 +08:00
TCK: TToolButton;
TnoCK: TToolButton;
cxTabControl1: TcxTabControl;
Tv1Column1: TcxGridDBColumn;
2025-04-30 16:20:38 +08:00
procedure FormDestroy( Sender: TObject) ;
procedure FormClose( Sender: TObject; var Action: TCloseAction) ;
procedure TBCloseClick( Sender: TObject) ;
procedure TBFindClick( Sender: TObject) ;
procedure TBEditClick( Sender: TObject) ;
procedure TBDelClick( Sender: TObject) ;
procedure TBExportClick( Sender: TObject) ;
procedure TBPrintClick( Sender: TObject) ;
procedure TBRafreshClick( Sender: TObject) ;
procedure TBAddClick( Sender: TObject) ;
procedure ConNoMChange( Sender: TObject) ;
procedure FormShow( Sender: TObject) ;
procedure conPress( Sender: TObject; var Key: Char ) ;
procedure cxPageControl1Change( Sender: TObject) ;
procedure ToolButton1Click( Sender: TObject) ;
procedure ToolButton2Click( Sender: TObject) ;
2025-11-21 09:37:23 +08:00
procedure TCKClick( Sender: TObject) ;
procedure TnoCKClick( Sender: TObject) ;
procedure cxTabControl1Change( Sender: TObject) ;
2025-04-30 16:20:38 +08:00
private
2025-11-21 09:37:23 +08:00
FInt, PFInt: Integer ;
2025-04-30 16:20:38 +08:00
procedure InitGrid( ) ;
procedure InitForm( ) ;
2025-11-21 09:37:23 +08:00
procedure SetStatus( ) ;
function DelData( ) : Boolean ;
2025-04-30 16:20:38 +08:00
{ Private declarations }
public
2025-11-21 09:37:23 +08:00
{ Public declarations }
2025-04-30 16:20:38 +08:00
end ;
var
frmClothContractListHZ: TfrmClothContractListHZ;
implementation
2025-11-21 09:37:23 +08:00
2025-04-30 16:20:38 +08:00
uses
2025-11-21 09:37:23 +08:00
U_DataLink, U_ClothContractInPutSX, U_Fun, U_ProductOrderList, U_ZDYHelp,
U_ClothContractInPutSXMX, U_ClothContractInPutHZ, U_ClothContractInPutPB,
U_FjList_RZ;
2025-04-30 16:20:38 +08:00
{$R *.dfm}
procedure TfrmClothContractListHZ. FormDestroy( Sender: TObject) ;
begin
2025-11-21 09:37:23 +08:00
frmClothContractListHZ : = nil ;
2025-04-30 16:20:38 +08:00
end ;
2025-11-21 09:37:23 +08:00
procedure TfrmClothContractListHZ. FormClose( Sender: TObject; var Action: TCloseAction) ;
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
Action : = caFree;
2025-04-30 16:20:38 +08:00
end ;
procedure TfrmClothContractListHZ. TBCloseClick( Sender: TObject) ;
begin
Close;
2025-11-21 09:37:23 +08:00
WriteCxGrid( '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ͬ<EFBFBD> <CDAC> <EFBFBD> <EFBFBD> <EFBFBD> б <EFBFBD> SX' , Tv1, 'ָʾ <D6B8> <CABE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ) ;
WriteCxGrid( 'ɴ<> ӹ<DFBC> <D3B9> <EFBFBD> ͬ' , Tv2, 'ָʾ <D6B8> <CABE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ) ;
WriteCxGrid( '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> ɹ<EFBFBD> <C9B9> <EFBFBD> ͬ' , Tv3, 'ָʾ <D6B8> <CABE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ) ;
WriteCxGrid( 'Ⱦɫ<C8BE> <C9AB> ͬ' , Tv4, 'ָʾ <D6B8> <CABE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ) ;
WriteCxGrid( '<27> <> <EFBFBD> ӹ<EFBFBD> <D3B9> <EFBFBD> ͬ' , Tv5, 'ָʾ <D6B8> <CABE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ) ;
2025-04-30 16:20:38 +08:00
end ;
procedure TfrmClothContractListHZ. InitGrid( ) ;
2025-11-21 09:37:23 +08:00
var
strwhere: string ;
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
strwhere : = '' ;
// if Trim(DParameters1) <> '<27> <> Ȩ<EFBFBD> <C8A8> ' then
// strwhere := strwhere + ' and Filler=''' + Trim(DName) + '''';
strwhere : = strwhere + ' and FillTime>=' '' + Trim( FormatDateTime( 'yyyy-MM-dd' , BegDate. DateTime) ) + '' '' + ' and FillTime<' '' + Trim( FormatDateTime( 'yyyy-MM-dd' , EndDate. DateTime + 1 ) ) + '' '' ;
if cxTabControl1. TabIndex < 2 then
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
strwhere : = strwhere + ' and isnull(OM.ChkStatus,' '0' ')=' '' + inttostr( cxTabControl1. TabIndex) + '' '' ;
end ;
try
ADOQueryMain. DisableControls;
with ADOQueryMain do
begin
Filtered : = False ;
Close;
sql. Clear;
sql. Add( 'exec ClothContractSX_QryList :MainId,:WSql' ) ;
Parameters. ParamByName( 'WSql' ) . Value : = strwhere;
// Parameters.ParamByName('WSql').Value := ' and FillTime>=''' + Trim(FormatDateTime('yyyy-MM-dd', BegDate.DateTime)) + '''' + ' and FillTime<''' + Trim(FormatDateTime('yyyy-MM-dd', EndDate.DateTime + 1)) + '''';
Open;
2025-04-30 16:20:38 +08:00
end ;
2025-11-21 09:37:23 +08:00
SCreateCDS20( ADOQueryMain, Order_Main) ;
SInitCDSData20( ADOQueryMain, Order_Main) ;
finally
ADOQueryMain. EnableControls;
2025-04-30 16:20:38 +08:00
end ;
end ;
procedure TfrmClothContractListHZ. InitForm( ) ;
begin
2025-11-21 09:37:23 +08:00
ReadCxGrid( '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ͬ<EFBFBD> <CDAC> <EFBFBD> <EFBFBD> <EFBFBD> б <EFBFBD> SX' , Tv1, 'ָʾ <D6B8> <CABE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ) ;
ReadCxGrid( 'ɴ<> ӹ<DFBC> <D3B9> <EFBFBD> ͬ' , Tv2, 'ָʾ <D6B8> <CABE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ) ;
ReadCxGrid( '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> ɹ<EFBFBD> <C9B9> <EFBFBD> ͬ' , Tv3, 'ָʾ <D6B8> <CABE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ) ;
ReadCxGrid( 'Ⱦɫ<C8BE> <C9AB> ͬ' , Tv4, 'ָʾ <D6B8> <CABE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ) ;
ReadCxGrid( '<27> <> <EFBFBD> ӹ<EFBFBD> <D3B9> <EFBFBD> ͬ' , Tv5, 'ָʾ <D6B8> <CABE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ) ;
// if Trim(DParameters1) = '1' then
// begin
// TBPrint.Visible := False;
// v1Column1.Visible := False;
// v1Column1.Hidden := True;
// v1PRTUnit.Visible := False;
// v1PRTUnit.Hidden := True;
// v1PRTQty.Visible := False;
// v1PRTQty.Hidden := True;
// end
// else
// begin
// v1Column1.Visible := True;
// v1Column1.Hidden := False;
// v1PRTUnit.Visible := True;
// v1PRTUnit.Hidden := False;
// v1PRTQty.Visible := True;
// v1PRTQty.Hidden := False;
// TBPrint.Visible := True;
// end;
BegDate. DateTime : = SGetServerDate10( ADOQueryTemp) - 7 ;
EndDate. DateTime : = SGetServerDate10( ADOQueryTemp) ;
SetStatus( ) ;
2025-04-30 16:20:38 +08:00
InitGrid( ) ;
end ;
procedure TfrmClothContractListHZ. TBFindClick( Sender: TObject) ;
begin
2025-11-21 09:37:23 +08:00
if ADOQueryMain. Active = False then
Exit;
SDofilter( ADOQueryMain, SGetFilters( Panel1, 1 , 2 ) ) ;
SCreateCDS20( ADOQueryMain, Order_Main) ;
SInitCDSData20( ADOQueryMain, Order_Main) ;
2025-04-30 16:20:38 +08:00
end ;
procedure TfrmClothContractListHZ. TBEditClick( Sender: TObject) ;
begin
2025-11-21 09:37:23 +08:00
if Order_Main. IsEmpty then
Exit;
if cxPageControl1. ActivePageIndex = 0 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutSXMX : = TfrmClothContractInPutSXMX. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutSXMX do
begin
2025-11-21 09:37:23 +08:00
PState : = 1 ;
FMainId : = Trim( Self. Order_Main. fieldbyname( 'MainId' ) . AsString) ;
FConNo : = Trim( Self. Order_Main. fieldbyname( 'ConNoM' ) . AsString) ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutSXMX. Free;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 1 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutHZ : = TfrmClothContractInPutHZ. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutHZ do
begin
2025-11-21 09:37:23 +08:00
PState : = 1 ;
FMainId : = Trim( Self. Order_Main. fieldbyname( 'MainId' ) . AsString) ;
FConNo : = Trim( Self. Order_Main. fieldbyname( 'ConNo' ) . AsString) ;
CPFlag : = 'ClothSX' ;
CPFlagName : = 'ɴ<> <C9B4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
Caption : = 'Ⱦɴ<C8BE> <C9B4> ͬ' ;
FactoryFlag : = 'PBFactory' ;
v1Column3. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> ' ;
v1Price. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
FConType : = 'ɴ<> <C9B4> ǰ<EFBFBD> ӹ<EFBFBD> ' ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutHZ. Free;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 2 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutHZ : = TfrmClothContractInPutHZ. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutHZ do
begin
2025-11-21 09:37:23 +08:00
PState : = 1 ;
FMainId : = Trim( Self. Order_Main. fieldbyname( 'MainId' ) . AsString) ;
FConNo : = Trim( Self. Order_Main. fieldbyname( 'ConNo' ) . AsString) ;
CPFlag : = 'ClothSX' ;
CPFlagName : = 'ɴ<> <C9B4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
Caption : = '֯<> <D6AF> <EFBFBD> <EFBFBD> ͬ' ;
FactoryFlag : = 'PBFactory' ;
v1Column3. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> ' ;
v1Price. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
FConType : = 'ɴ<> ӹ<DFBC> ' ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutHZ. Free;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 3 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutPB : = TfrmClothContractInPutPB. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutPB do
begin
2025-11-21 09:37:23 +08:00
PState : = 1 ;
FMainId : = Trim( Self. Order_Main. fieldbyname( 'MainId' ) . AsString) ;
FConNo : = Trim( Self. Order_Main. fieldbyname( 'ConNoM' ) . AsString) ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutPB. Free;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 4 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutHZ : = TfrmClothContractInPutHZ. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutHZ do
begin
2025-11-21 09:37:23 +08:00
PState : = 1 ;
FMainId : = Trim( Self. Order_Main. fieldbyname( 'MainId' ) . AsString) ;
FConNo : = Trim( Self. Order_Main. fieldbyname( 'ConNo' ) . AsString) ;
CPFlag : = 'Cloth' ;
CPFlagName : = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
Caption : = 'Ⱦɫ<C8BE> ӹ<EFBFBD> <D3B9> <EFBFBD> ͬ' ;
FactoryFlag : = 'RanFactory' ;
v1Column3. Caption : = 'Ⱦ<> <C8BE> ' ;
v1Price. Caption : = 'Ⱦɫ<C8BE> <C9AB> <EFBFBD> <EFBFBD> ' ;
FConType : = 'Ⱦɫ<C8BE> ӹ<EFBFBD> ' ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutHZ. Free;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 5 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutHZ : = TfrmClothContractInPutHZ. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutHZ do
begin
2025-11-21 09:37:23 +08:00
PState : = 1 ;
FMainId : = Trim( Self. Order_Main. fieldbyname( 'MainId' ) . AsString) ;
FConNo : = Trim( Self. Order_Main. fieldbyname( 'ConNo' ) . AsString) ;
CPFlag : = 'Cloth' ;
CPFlagName : = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
Caption : = '<27> <> <EFBFBD> ӹ<EFBFBD> <D3B9> <EFBFBD> ͬ' ;
FactoryFlag : = 'HZLFactory' ;
v1Column3. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> ' ;
v1Price. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
FConType : = '<27> <> <EFBFBD> ӹ<EFBFBD> ' ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutHZ. Free;
end ;
end ;
end ;
procedure TfrmClothContractListHZ. TBDelClick( Sender: TObject) ;
begin
2025-11-21 09:37:23 +08:00
if Order_Main. IsEmpty then
Exit;
2025-04-30 16:20:38 +08:00
2025-11-21 09:37:23 +08:00
if cxPageControl1. ActivePageIndex = 0 then
2025-04-30 16:20:38 +08:00
begin
with ADOQueryTemp do
begin
Close;
sql. Clear;
sql. Add( 'select * from ContractSX_Sub_MX B inner join Contract_Sub C on B.SubId=C.SubId ' ) ;
2025-11-21 09:37:23 +08:00
sql. Add( ' where C.Mainid=' '' + Trim( Order_Main. fieldbyname( 'Mainid' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
Open;
end ;
2025-11-21 09:37:23 +08:00
if ADOQueryTemp. IsEmpty = False then
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
Application. MessageBox( '<27> Ѿ<EFBFBD> <D1BE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ݲ<EFBFBD> <DDB2> <EFBFBD> ɾ<EFBFBD> <C9BE> !' , '<27> <> ʾ ' , 0 ) ;
2025-04-30 16:20:38 +08:00
Exit;
end ;
2025-11-21 09:37:23 +08:00
if Application. MessageBox( 'ȷ<> <C8B7> Ҫɾ<D2AA> <C9BE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , '<27> <> ʾ ' , 3 2 + 4 ) < > IDYES then
Exit;
2025-04-30 16:20:38 +08:00
if DelData( ) then
begin
//TBRafresh.Click;
//TBFind.Click;
Order_Main. Delete;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 1 then
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
if Application. MessageBox( 'ȷ<> <C8B7> Ҫɾ<D2AA> <C9BE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , '<27> <> ʾ ' , 3 2 + 4 ) < > IDYES then
Exit;
2025-04-30 16:20:38 +08:00
with ADOQueryCmd do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'delete ContractHZ_Sub where SubId=' '' + Trim( Order_Main. fieldbyname( 'SubId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
ExecSQL;
end ;
with ADOQueryTemp do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'select * from ContractHZ_Sub where MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
Open;
end ;
if ADOQueryTemp. IsEmpty then
begin
with ADOQueryCmd do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'delete ContractHZ_Main where MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
ExecSQL;
end ;
end ;
Order_Main. Delete;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 2 then
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
if Application. MessageBox( 'ȷ<> <C8B7> Ҫɾ<D2AA> <C9BE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , '<27> <> ʾ ' , 3 2 + 4 ) < > IDYES then
Exit;
2025-04-30 16:20:38 +08:00
with ADOQueryCmd do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'delete ContractHZ_Sub where SubId=' '' + Trim( Order_Main. fieldbyname( 'SubId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
ExecSQL;
end ;
with ADOQueryTemp do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'select * from ContractHZ_Sub where MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
Open;
end ;
if ADOQueryTemp. IsEmpty then
begin
with ADOQueryCmd do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'delete ContractHZ_Main where MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
ExecSQL;
end ;
end ;
Order_Main. Delete;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 3 then
2025-04-30 16:20:38 +08:00
begin
with ADOQueryTemp do
begin
Close;
sql. Clear;
sql. Add( 'select * from Contract_Sub_MX B inner join Contract_Sub C on B.SubId=C.SubId ' ) ;
2025-11-21 09:37:23 +08:00
sql. Add( ' where C.Mainid=' '' + Trim( Order_Main. fieldbyname( 'Mainid' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
Open;
end ;
2025-11-21 09:37:23 +08:00
if ADOQueryTemp. IsEmpty = False then
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
Application. MessageBox( '<27> Ѿ<EFBFBD> <D1BE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ݲ<EFBFBD> <DDB2> <EFBFBD> ɾ<EFBFBD> <C9BE> !' , '<27> <> ʾ ' , 0 ) ;
2025-04-30 16:20:38 +08:00
Exit;
end ;
2025-11-21 09:37:23 +08:00
if Application. MessageBox( 'ȷ<> <C8B7> Ҫɾ<D2AA> <C9BE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , '<27> <> ʾ ' , 3 2 + 4 ) < > IDYES then
Exit;
2025-04-30 16:20:38 +08:00
with ADOQueryCmd do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'delete Contract_Sub where SubId=' '' + Trim( Order_Main. fieldbyname( 'SubId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
ExecSQL;
end ;
with ADOQueryTemp do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'select * from Contract_Sub where MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
Open;
end ;
if ADOQueryTemp. IsEmpty then
begin
with ADOQueryCmd do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'delete Contract_Main where MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
ExecSQL;
end ;
end ;
2025-11-21 09:37:23 +08:00
if Trim( Order_Main. fieldbyname( 'SubId' ) . AsString) = '' then
2025-04-30 16:20:38 +08:00
begin
with ADOQueryCmd do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'delete Contract_Main where MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
ExecSQL;
end ;
end ;
Order_Main. Delete;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 4 then
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
if Application. MessageBox( 'ȷ<> <C8B7> Ҫɾ<D2AA> <C9BE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , '<27> <> ʾ ' , 3 2 + 4 ) < > IDYES then
Exit;
2025-04-30 16:20:38 +08:00
with ADOQueryCmd do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'delete ContractHZ_Sub where SubId=' '' + Trim( Order_Main. fieldbyname( 'SubId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
ExecSQL;
end ;
with ADOQueryTemp do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'select * from ContractHZ_Sub where MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
Open;
end ;
if ADOQueryTemp. IsEmpty then
begin
with ADOQueryCmd do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'delete ContractHZ_Main where MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
ExecSQL;
end ;
end ;
Order_Main. Delete;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 5 then
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
if Application. MessageBox( 'ȷ<> <C8B7> Ҫɾ<D2AA> <C9BE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' , '<27> <> ʾ ' , 3 2 + 4 ) < > IDYES then
Exit;
2025-04-30 16:20:38 +08:00
with ADOQueryCmd do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'delete ContractHZ_Sub where SubId=' '' + Trim( Order_Main. fieldbyname( 'SubId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
ExecSQL;
end ;
with ADOQueryTemp do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'select * from ContractHZ_Sub where MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
Open;
end ;
if ADOQueryTemp. IsEmpty then
begin
with ADOQueryCmd do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'delete ContractHZ_Main where MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
ExecSQL;
end ;
end ;
Order_Main. Delete;
end ;
end ;
2025-11-21 09:37:23 +08:00
function TfrmClothContractListHZ. DelData( ) : Boolean ;
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
Result : = false ;
2025-04-30 16:20:38 +08:00
ADOQueryCmd. Connection. BeginTrans;
with ADOQueryCmd do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'delete ContractSX_Sub where SubId=' '' + Trim( Order_Main. fieldbyname( 'SubId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
ExecSQL;
end ;
with ADOQueryTemp do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'select * from ContractSX_Sub where MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
Open;
end ;
if ADOQueryTemp. IsEmpty then
begin
with ADOQueryCmd do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'delete ContractSX_Main where MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
ExecSQL;
end ;
end ;
2025-11-21 09:37:23 +08:00
if Trim( Order_Main. fieldbyname( 'SubId' ) . AsString) = '' then
2025-04-30 16:20:38 +08:00
begin
with ADOQueryCmd do
begin
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
sql. Add( 'delete ContractSX_Main where MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
ExecSQL;
end ;
end ;
ADOQueryCmd. Connection. CommitTrans;
2025-11-21 09:37:23 +08:00
Result : = True ;
2025-04-30 16:20:38 +08:00
except
ADOQueryCmd. Connection. RollbackTrans;
2025-11-21 09:37:23 +08:00
Result : = False ;
Application. MessageBox( '<27> <> <EFBFBD> <EFBFBD> ɾ<EFBFBD> <C9BE> <EFBFBD> 쳣<EFBFBD> <ECB3A3> ' , '<27> <> ʾ ' , 0 ) ;
2025-04-30 16:20:38 +08:00
end ;
end ;
procedure TfrmClothContractListHZ. TBExportClick( Sender: TObject) ;
begin
2025-11-21 09:37:23 +08:00
if ADOQueryMain. IsEmpty then
Exit;
TcxGridToExcel( '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ͬ<EFBFBD> <CDAC> <EFBFBD> <EFBFBD> <EFBFBD> б <EFBFBD> ' , cxGrid1) ;
2025-04-30 16:20:38 +08:00
end ;
procedure TfrmClothContractListHZ. TBPrintClick( Sender: TObject) ;
var
2025-11-21 09:37:23 +08:00
fPrintFile, FConNoM: string ;
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
if Order_Main. IsEmpty then
Exit;
if cxPageControl1. ActivePageIndex = 0 then
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
fPrintFile : = ExtractFilePath( Application. ExeName) + 'Report\ɴ<> ߶<EFBFBD> <DFB6> <EFBFBD> <EFBFBD> <EFBFBD> ͬ.rmf' ;
2025-04-30 16:20:38 +08:00
with ADOQueryTemp do
begin
2025-11-21 09:37:23 +08:00
Filtered : = False ;
2025-04-30 16:20:38 +08:00
Close;
sql. Clear;
sql. Add( 'exec ClothContractSX_QryList :MainId,:WSql' ) ;
2025-11-21 09:37:23 +08:00
Parameters. ParamByName( 'WSql' ) . Value : = ' and FillTime>=' '' + Trim( FormatDateTime( 'yyyy-MM-dd' , BegDate. DateTime) ) + '' '' + ' and FillTime<' '' + Trim( FormatDateTime( 'yyyy-MM-dd' , EndDate. DateTime + 1 ) ) + '' '' ;
Parameters. ParamByName( 'MainId' ) . Value : = Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) ;
Parameters. ParamByName( 'WSql' ) . Value : = '' ;
2025-04-30 16:20:38 +08:00
Open;
end ;
2025-11-21 09:37:23 +08:00
SCreateCDS20( ADOQueryTemp, CDS_PRT) ;
SInitCDSData20( ADOQueryTemp, CDS_PRT) ;
FConNoM : = Trim( CDS_PRT. fieldbyname( 'ConNoM' ) . AsString) ;
end
else if cxPageControl1. ActivePageIndex = 1 then
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
fPrintFile : = ExtractFilePath( Application. ExeName) + 'Report\ɴ<> <C9B4> ǰ<EFBFBD> ӹ<EFBFBD> <D3B9> <EFBFBD> ͬ.rmf' ;
2025-04-30 16:20:38 +08:00
with ADOQueryTemp do
begin
2025-11-21 09:37:23 +08:00
Filtered : = False ;
2025-04-30 16:20:38 +08:00
Close;
sql. Clear;
sql. Add( 'select * from ContractHZ_Main A inner join ContractHZ_Sub B on A.MainId=B.MainId' ) ;
2025-11-21 09:37:23 +08:00
SQL. Add( ' where A.MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
Open;
end ;
2025-11-21 09:37:23 +08:00
SCreateCDS20( ADOQueryTemp, CDS_PRT) ;
SInitCDSData20( ADOQueryTemp, CDS_PRT) ;
FConNoM : = Trim( CDS_PRT. fieldbyname( 'ConNo' ) . AsString) ;
end
else if cxPageControl1. ActivePageIndex = 2 then
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
fPrintFile : = ExtractFilePath( Application. ExeName) + 'Report\ɴ<> ӹ<DFBC> <D3B9> <EFBFBD> ͬ.rmf' ;
2025-04-30 16:20:38 +08:00
with ADOQueryTemp do
begin
2025-11-21 09:37:23 +08:00
Filtered : = False ;
2025-04-30 16:20:38 +08:00
Close;
sql. Clear;
sql. Add( 'select * from ContractHZ_Main A inner join ContractHZ_Sub B on A.MainId=B.MainId' ) ;
2025-11-21 09:37:23 +08:00
SQL. Add( ' where A.MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
Open;
end ;
2025-11-21 09:37:23 +08:00
SCreateCDS20( ADOQueryTemp, CDS_PRT) ;
SInitCDSData20( ADOQueryTemp, CDS_PRT) ;
FConNoM : = Trim( CDS_PRT. fieldbyname( 'ConNo' ) . AsString) ;
end
else if cxPageControl1. ActivePageIndex = 3 then
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
fPrintFile : = ExtractFilePath( Application. ExeName) + 'Report\<5C> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ͬ.rmf' ;
2025-04-30 16:20:38 +08:00
with ADOQueryTemp do
begin
2025-11-21 09:37:23 +08:00
Filtered : = False ;
2025-04-30 16:20:38 +08:00
Close;
sql. Clear;
sql. Add( 'exec ClothContract_QryList :MainId,:WSql' ) ;
2025-11-21 09:37:23 +08:00
Parameters. ParamByName( 'WSql' ) . Value : = ' and FillTime>=' '' + Trim( FormatDateTime( 'yyyy-MM-dd' , BegDate. DateTime) ) + '' '' + ' and FillTime<' '' + Trim( FormatDateTime( 'yyyy-MM-dd' , EndDate. DateTime + 1 ) ) + '' '' ;
Parameters. ParamByName( 'MainId' ) . Value : = Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) ;
Parameters. ParamByName( 'WSql' ) . Value : = '' ;
2025-04-30 16:20:38 +08:00
Open;
end ;
2025-11-21 09:37:23 +08:00
SCreateCDS20( ADOQueryTemp, CDS_PRT) ;
SInitCDSData20( ADOQueryTemp, CDS_PRT) ;
FConNoM : = Trim( CDS_PRT. fieldbyname( 'ConNoM' ) . AsString) ;
end
else if cxPageControl1. ActivePageIndex = 4 then
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
fPrintFile : = ExtractFilePath( Application. ExeName) + 'Report\Ⱦɫ<C8BE> <C9AB> ͬ.rmf' ;
2025-04-30 16:20:38 +08:00
with ADOQueryTemp do
begin
2025-11-21 09:37:23 +08:00
Filtered : = False ;
2025-04-30 16:20:38 +08:00
Close;
sql. Clear;
sql. Add( 'select * from ContractHZ_Main A inner join ContractHZ_Sub B on A.MainId=B.MainId' ) ;
2025-11-21 09:37:23 +08:00
SQL. Add( 'where A.MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
Open;
end ;
2025-11-21 09:37:23 +08:00
SCreateCDS20( ADOQueryTemp, CDS_PRT) ;
SInitCDSData20( ADOQueryTemp, CDS_PRT) ;
FConNoM : = Trim( CDS_PRT. fieldbyname( 'ConNo' ) . AsString) ;
end
else if cxPageControl1. ActivePageIndex = 5 then
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
fPrintFile : = ExtractFilePath( Application. ExeName) + 'Report\<5C> <> <EFBFBD> ӹ<EFBFBD> <D3B9> <EFBFBD> ͬ.rmf' ;
2025-04-30 16:20:38 +08:00
with ADOQueryTemp do
begin
2025-11-21 09:37:23 +08:00
Filtered : = False ;
2025-04-30 16:20:38 +08:00
Close;
sql. Clear;
sql. Add( 'select * from ContractHZ_Main A inner join ContractHZ_Sub B on A.MainId=B.MainId' ) ;
2025-11-21 09:37:23 +08:00
SQL. Add( 'where A.MainId=' '' + Trim( Order_Main. fieldbyname( 'MainId' ) . AsString) + '' '' ) ;
2025-04-30 16:20:38 +08:00
Open;
end ;
2025-11-21 09:37:23 +08:00
SCreateCDS20( ADOQueryTemp, CDS_PRT) ;
SInitCDSData20( ADOQueryTemp, CDS_PRT) ;
FConNoM : = Trim( CDS_PRT. fieldbyname( 'ConNo' ) . AsString) ;
2025-04-30 16:20:38 +08:00
end ;
if FileExists( fPrintFile) then
begin
//RMVariables['begindate']:=begindate.DateTime;
//RMVariables['enddate']:=enddate.DateTime;
//RMVariables['printtime']:=Now;
//RMVariables['printer']:=Trim(gUserName);
RM1. LoadFromFile( fPrintFile) ;
RM1. ShowReport;
2025-11-21 09:37:23 +08:00
end
else
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
Application. MessageBox( PChar( 'û<> <C3BB> <EFBFBD> <EFBFBD> ' + ExtractFilePath( Application. ExeName) + 'Report\<5C> <> <EFBFBD> <EFBFBD> Ӧ<EFBFBD> ĺ<EFBFBD> ͬ<EFBFBD> <CDAC> <EFBFBD> <EFBFBD> .rmf' ) , '<27> <> ʾ ' , 0 ) ;
2025-04-30 16:20:38 +08:00
end ;
end ;
procedure TfrmClothContractListHZ. TBRafreshClick( Sender: TObject) ;
begin
InitGrid( ) ;
end ;
procedure TfrmClothContractListHZ. TBAddClick( Sender: TObject) ;
begin
2025-11-21 09:37:23 +08:00
if cxPageControl1. ActivePageIndex = 0 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutSXMX : = TfrmClothContractInPutSXMX. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutSXMX do
begin
2025-11-21 09:37:23 +08:00
PState : = 0 ;
FMainId : = '' ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutSXMX. Free;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 1 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutHZ : = TfrmClothContractInPutHZ. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutHZ do
begin
2025-11-21 09:37:23 +08:00
PState : = 0 ;
FMainId : = '' ;
CPFlag : = 'ClothSX' ;
CPFlagName : = 'ɴ<> <C9B4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
Caption : = 'Ⱦɴ<C8BE> <C9B4> ͬ' ;
FactoryFlag : = 'PBFactory' ;
v1Column3. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> ' ;
v1Price. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
FConType : = 'ɴ<> <C9B4> ǰ<EFBFBD> ӹ<EFBFBD> ' ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutHZ. Free;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 2 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutHZ : = TfrmClothContractInPutHZ. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutHZ do
begin
2025-11-21 09:37:23 +08:00
PState : = 0 ;
FMainId : = '' ;
CPFlag : = 'ClothSX' ;
CPFlagName : = 'ɴ<> <C9B4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
Caption : = '֯<> <D6AF> <EFBFBD> <EFBFBD> ͬ' ;
FactoryFlag : = 'PBFactory' ;
v1Column3. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> ' ;
v1Price. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
FConType : = 'ɴ<> ӹ<DFBC> ' ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutHZ. Free;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 3 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutPB : = TfrmClothContractInPutPB. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutPB do
begin
2025-11-21 09:37:23 +08:00
PState : = 0 ;
FMainId : = '' ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutPB. Free;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 4 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutHZ : = TfrmClothContractInPutHZ. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutHZ do
begin
2025-11-21 09:37:23 +08:00
PState : = 0 ;
FMainId : = '' ;
CPFlag : = 'Cloth' ;
CPFlagName : = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
Caption : = 'Ⱦɫ<C8BE> ӹ<EFBFBD> <D3B9> <EFBFBD> ͬ' ;
FactoryFlag : = 'RanFactory' ;
v1Column3. Caption : = 'Ⱦ<> <C8BE> ' ;
v1Price. Caption : = 'Ⱦɫ<C8BE> <C9AB> <EFBFBD> <EFBFBD> ' ;
FConType : = 'Ⱦɫ<C8BE> ӹ<EFBFBD> ' ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutHZ. Free;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 5 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutHZ : = TfrmClothContractInPutHZ. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutHZ do
begin
2025-11-21 09:37:23 +08:00
PState : = 0 ;
FMainId : = '' ;
CPFlag : = 'Cloth' ;
CPFlagName : = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
Caption : = '<27> <> <EFBFBD> ӹ<EFBFBD> <D3B9> <EFBFBD> ͬ' ;
FactoryFlag : = 'HZLFactory' ;
v1Column3. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> ' ;
v1Price. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
FConType : = '<27> <> <EFBFBD> ӹ<EFBFBD> ' ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutHZ. Free;
end ;
end ;
end ;
procedure TfrmClothContractListHZ. ConNoMChange( Sender: TObject) ;
begin
2025-11-21 09:37:23 +08:00
if ADOQueryMain. Active = False then
Exit;
SDofilter( ADOQueryMain, SGetFilters( Panel1, 1 , 2 ) ) ;
SCreateCDS20( ADOQueryMain, Order_Main) ;
SInitCDSData20( ADOQueryMain, Order_Main) ;
2025-04-30 16:20:38 +08:00
end ;
procedure TfrmClothContractListHZ. FormShow( Sender: TObject) ;
begin
InitForm( ) ;
end ;
2025-11-21 09:37:23 +08:00
procedure TfrmClothContractListHZ. conPress( Sender: TObject; var Key: Char ) ;
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
if Key = #13 then
2025-04-30 16:20:38 +08:00
begin
2025-11-21 09:37:23 +08:00
if Length( Trim( ConNoM. Text ) ) < 3 then
Exit;
2025-04-30 16:20:38 +08:00
try
ADOQueryMain. DisableControls;
with ADOQueryMain do
begin
2025-11-21 09:37:23 +08:00
Filtered : = False ;
2025-04-30 16:20:38 +08:00
Close;
sql. Clear;
2025-11-21 09:37:23 +08:00
if cxPageControl1. ActivePageIndex = 0 then
2025-04-30 16:20:38 +08:00
begin
sql. Add( 'exec ClothContractSX_QryList :MainId,:WSql' ) ;
2025-11-21 09:37:23 +08:00
Parameters. ParamByName( 'WSql' ) . Value : = ' and OM.conNo like ' '' + '%' + Trim( ConNoM. Text ) + '%' + '' '' ;
end
else if cxPageControl1. ActivePageIndex = 1 then
2025-04-30 16:20:38 +08:00
begin
sql. Add( 'select A.*,B.*,Money=(B.Price*B.C_Qty) from ContractHZ_Main A inner join ContractHZ_Sub B on A.Mainid=B.MainId ' ) ;
2025-11-21 09:37:23 +08:00
SQL. Add( ' where A.ConNO like' '' + '%' + Trim( ConNoM. Text ) + '%' + '' '' ) ;
2025-04-30 16:20:38 +08:00
sql. Add( ' and A.ConType=' 'ɴ<> ӹ<DFBC> ' '' ) ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 2 then
2025-04-30 16:20:38 +08:00
begin
sql. Add( 'exec ClothContract_QryList :MainId,:WSql' ) ;
2025-11-21 09:37:23 +08:00
Parameters. ParamByName( 'WSql' ) . Value : = ' and OM.conNo like ' '' + '%' + Trim( ConNoM. Text ) + '%' + '' '' ;
end
else if cxPageControl1. ActivePageIndex = 3 then
2025-04-30 16:20:38 +08:00
begin
sql. Add( 'select A.*,B.*,Money=(B.Price*B.C_Qty) from ContractHZ_Main A inner join ContractHZ_Sub B on A.Mainid=B.MainId ' ) ;
2025-11-21 09:37:23 +08:00
SQL. Add( ' where A.ConNO like' '' + '%' + Trim( ConNoM. Text ) + '%' + '' '' ) ;
2025-04-30 16:20:38 +08:00
sql. Add( ' and A.ConType=' 'Ⱦɫ<C8BE> ӹ<EFBFBD> ' '' ) ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 4 then
2025-04-30 16:20:38 +08:00
begin
sql. Add( 'select A.*,B.*,Money=(B.Price*B.C_Qty) from ContractHZ_Main A inner join ContractHZ_Sub B on A.Mainid=B.MainId ' ) ;
2025-11-21 09:37:23 +08:00
SQL. Add( ' where A.ConNO like' '' + '%' + Trim( ConNoM. Text ) + '%' + '' '' ) ;
2025-04-30 16:20:38 +08:00
sql. Add( ' and A.ConType=' '<27> <> <EFBFBD> ӹ<EFBFBD> ' '' ) ;
end ;
Open;
end ;
2025-11-21 09:37:23 +08:00
SCreateCDS20( ADOQueryMain, Order_Main) ;
SInitCDSData20( ADOQueryMain, Order_Main) ;
2025-04-30 16:20:38 +08:00
finally
ADOQueryMain. EnableControls;
end ;
end ;
end ;
procedure TfrmClothContractListHZ. cxPageControl1Change( Sender: TObject) ;
begin
InitGrid( ) ;
end ;
procedure TfrmClothContractListHZ. ToolButton1Click( Sender: TObject) ;
begin
2025-11-21 09:37:23 +08:00
if Order_Main. IsEmpty then
Exit;
if cxPageControl1. ActivePageIndex = 0 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutSXMX : = TfrmClothContractInPutSXMX. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutSXMX do
begin
2025-11-21 09:37:23 +08:00
PState : = 1 ;
FMainId : = Trim( Self. Order_Main. fieldbyname( 'MainId' ) . AsString) ;
FConNo : = Trim( Self. Order_Main. fieldbyname( 'ConNoM' ) . AsString) ;
PCopyInt : = 1 ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutSXMX. Free;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 1 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutHZ : = TfrmClothContractInPutHZ. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutHZ do
begin
2025-11-21 09:37:23 +08:00
PState : = 1 ;
PCopyInt : = 1 ;
FMainId : = Trim( Self. Order_Main. fieldbyname( 'MainId' ) . AsString) ;
FConNo : = Trim( Self. Order_Main. fieldbyname( 'ConNo' ) . AsString) ;
CPFlag : = 'ClothSX' ;
CPFlagName : = 'ɴ<> <C9B4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
Caption : = 'Ⱦɴ<C8BE> <C9B4> ͬ' ;
FactoryFlag : = 'PBFactory' ;
v1Column3. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> ' ;
v1Price. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
FConType : = 'ɴ<> <C9B4> ǰ<EFBFBD> ӹ<EFBFBD> ' ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutHZ. Free;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 2 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutHZ : = TfrmClothContractInPutHZ. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutHZ do
begin
2025-11-21 09:37:23 +08:00
PState : = 1 ;
PCopyInt : = 1 ;
FMainId : = Trim( Self. Order_Main. fieldbyname( 'MainId' ) . AsString) ;
FConNo : = Trim( Self. Order_Main. fieldbyname( 'ConNo' ) . AsString) ;
CPFlag : = 'ClothSX' ;
CPFlagName : = 'ɴ<> <C9B4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
Caption : = '֯<> <D6AF> <EFBFBD> <EFBFBD> ͬ' ;
FactoryFlag : = 'PBFactory' ;
v1Column3. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> ' ;
v1Price. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
FConType : = 'ɴ<> ӹ<DFBC> ' ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutHZ. Free;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 3 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutPB : = TfrmClothContractInPutPB. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutPB do
begin
2025-11-21 09:37:23 +08:00
PState : = 1 ;
PCopyInt : = 1 ;
FMainId : = Trim( Self. Order_Main. fieldbyname( 'MainId' ) . AsString) ;
FConNo : = Trim( Self. Order_Main. fieldbyname( 'ConNoM' ) . AsString) ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutPB. Free;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 4 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutHZ : = TfrmClothContractInPutHZ. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutHZ do
begin
2025-11-21 09:37:23 +08:00
PState : = 1 ;
PCopyInt : = 1 ;
FMainId : = Trim( Self. Order_Main. fieldbyname( 'MainId' ) . AsString) ;
FConNo : = Trim( Self. Order_Main. fieldbyname( 'ConNo' ) . AsString) ;
CPFlag : = 'Cloth' ;
CPFlagName : = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
Caption : = 'Ⱦɫ<C8BE> ӹ<EFBFBD> <D3B9> <EFBFBD> ͬ' ;
FactoryFlag : = 'RanFactory' ;
v1Column3. Caption : = 'Ⱦ<> <C8BE> ' ;
v1Price. Caption : = 'Ⱦɫ<C8BE> <C9AB> <EFBFBD> <EFBFBD> ' ;
FConType : = 'Ⱦɫ<C8BE> ӹ<EFBFBD> ' ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutHZ. Free;
end ;
2025-11-21 09:37:23 +08:00
end
else if cxPageControl1. ActivePageIndex = 5 then
2025-04-30 16:20:38 +08:00
begin
try
2025-11-21 09:37:23 +08:00
frmClothContractInPutHZ : = TfrmClothContractInPutHZ. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmClothContractInPutHZ do
begin
2025-11-21 09:37:23 +08:00
PState : = 1 ;
PCopyInt : = 1 ;
FMainId : = Trim( Self. Order_Main. fieldbyname( 'MainId' ) . AsString) ;
FConNo : = Trim( Self. Order_Main. fieldbyname( 'ConNo' ) . AsString) ;
CPFlag : = 'Cloth' ;
CPFlagName : = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
Caption : = '<27> <> <EFBFBD> ӹ<EFBFBD> <D3B9> <EFBFBD> ͬ' ;
FactoryFlag : = 'HZLFactory' ;
v1Column3. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> ' ;
v1Price. Caption : = '<27> ӹ<EFBFBD> <D3B9> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
FConType : = '<27> <> <EFBFBD> ӹ<EFBFBD> ' ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmClothContractInPutHZ. Free;
end ;
end ;
end ;
procedure TfrmClothContractListHZ. ToolButton2Click( Sender: TObject) ;
begin
2025-11-21 09:37:23 +08:00
if Order_Main. IsEmpty then
Exit;
2025-04-30 16:20:38 +08:00
try
2025-11-21 09:37:23 +08:00
frmFjList_RZ : = TfrmFjList_RZ. Create( Application) ;
2025-04-30 16:20:38 +08:00
with frmFjList_RZ do
begin
// PState:=1;
2025-11-21 09:37:23 +08:00
// if Trim(canshu1)<>'<27> <> Ȩ<EFBFBD> <C8A8> ' then cxButton1.Visible:=false;
fkeyNO : = Trim( Self. Order_Main. fieldbyname( 'MainId' ) . AsString) ;
fType : = '<27> <> ƥ<EFBFBD> ɹ<EFBFBD> ' ;
if ShowModal = 1 then
2025-04-30 16:20:38 +08:00
begin
end ;
end ;
finally
frmFjList_RZ. Free;
end ;
end ;
2025-11-21 09:37:23 +08:00
procedure TfrmClothContractListHZ. TCKClick( Sender: TObject) ;
begin
if Order_Main. IsEmpty then
exit;
try
with ADOQueryCmd do
begin
close;
sql. Clear;
sql. Add( 'update ContractSX_Main SET ChkStatus=' '1' ',chktime=getdate(),chker=' + quotedstr( trim( Dname) ) ) ;
sql. Add( 'where MainId=' + quotedstr( trim( Order_Main. fieldbyname( 'MainId' ) . AsString) ) ) ;
execsql;
end ;
application. MessageBox( 'ɴ<> ߲ɹ<DFB2> <C9B9> <EFBFBD> <EFBFBD> ˳ɹ<CBB3> <C9B9> <EFBFBD> ' , '<27> <> ʾ <EFBFBD> <CABE> Ϣ' ) ;
TBRafresh. Click;
except
application. MessageBox( 'ɴ<> ߲ɹ<DFB2> <C9B9> <EFBFBD> <EFBFBD> <EFBFBD> ʧ<EFBFBD> ܣ<EFBFBD> ' , '<27> <> ʾ <EFBFBD> <CABE> Ϣ' , 0 ) ;
end ;
end ;
procedure TfrmClothContractListHZ. TnoCKClick( Sender: TObject) ;
begin
if Order_Main. IsEmpty then
exit;
try
with ADOQueryCmd do
begin
close;
sql. Clear;
sql. Add( 'update ContractSX_Main SET ChkStatus=' '0' ',chktime=null,Chker=' '' ' ' ) ;
sql. Add( 'where MainId=' + quotedstr( trim( Order_Main. fieldbyname( 'MainId' ) . AsString) ) ) ;
execsql;
end ;
application. MessageBox( 'ɴ<> ߲ɹ<DFB2> <C9B9> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ˳ɹ<CBB3> <C9B9> <EFBFBD> ' , '<27> <> ʾ <EFBFBD> <CABE> Ϣ' ) ;
TBRafresh. Click;
except
application. MessageBox( 'ɴ<> ߲ɹ<DFB2> <C9B9> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ʧ<EFBFBD> ܣ<EFBFBD> ' , '<27> <> ʾ <EFBFBD> <CABE> Ϣ' , 0 ) ;
end ;
end ;
procedure TfrmClothContractListHZ. cxTabControl1Change( Sender: TObject) ;
begin
SetStatus( ) ;
InitGrid( ) ;
end ;
procedure TfrmClothContractListHZ. SetStatus( ) ;
begin
tbedit. Visible : = false ;
tbdel. Visible : = false ;
TCK. Visible : = false ;
TnoCK. Visible : = false ;
if Trim( DParameters1) = '<27> <> Ȩ<EFBFBD> <C8A8> ' then
begin
case cxTabControl1. TabIndex of
0 :
begin
tbedit. Visible : = true ;
tbdel. Visible : = true ;
TCK. Visible : = true ;
end ;
1 :
begin
TnoCK. Visible : = true ;
end ;
end ;
end
else
begin
case cxTabControl1. TabIndex of
0 :
begin
tbedit. Visible : = true ;
tbdel. Visible : = true ;
end ;
1 :
begin
end ;
end ;
end ;
end ;
2025-04-30 16:20:38 +08:00
end .
2025-11-21 09:37:23 +08:00