111
This commit is contained in:
parent
9494acc603
commit
ef3eefe70d
|
|
@ -7,7 +7,7 @@ uses
|
||||||
Windows, Messages, forms, OleCtnrs, DateUtils, ExtCtrls, SyncObjs, cxClasses,
|
Windows, Messages, forms, OleCtnrs, DateUtils, ExtCtrls, SyncObjs, cxClasses,
|
||||||
System.ImageList,U_BaseDataLink,
|
System.ImageList,U_BaseDataLink,
|
||||||
dxCore, cxLocalization, dxLayoutLookAndFeels, cxImageList, cxGraphics, cxEdit,
|
dxCore, cxLocalization, dxLayoutLookAndFeels, cxImageList, cxGraphics, cxEdit,
|
||||||
cxContainer, dxSkinsForm, dxSkinsCore;
|
cxContainer, dxSkinsForm, dxSkinsCore, dxSkinWXI;
|
||||||
|
|
||||||
type
|
type
|
||||||
TMyThread = class(TThread)
|
TMyThread = class(TThread)
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ uses
|
||||||
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls,
|
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, cxGraphics, cxControls,
|
||||||
cxLookAndFeels, cxLookAndFeelPainters,
|
cxLookAndFeels, cxLookAndFeelPainters,
|
||||||
dxLayoutContainer, cxClasses, Vcl.Buttons, dxLayoutControl, cxGeometry,
|
dxLayoutContainer, cxClasses, Vcl.Buttons, dxLayoutControl, cxGeometry,
|
||||||
dxFramedControl, dxPanel, dxSkinsCore;
|
dxFramedControl, dxPanel, dxSkinsCore, dxSkinWXI;
|
||||||
|
|
||||||
type
|
type
|
||||||
TFrameKeyBoard = class(TFrame)
|
TFrameKeyBoard = class(TFrame)
|
||||||
|
|
|
||||||
|
|
@ -348,7 +348,7 @@ inherited frmMachRollMain: TfrmMachRollMain
|
||||||
#26080#38656#36716#25442
|
#26080#38656#36716#25442
|
||||||
#38271#24230#36716#20844#26020
|
#38271#24230#36716#20844#26020
|
||||||
#20928#37325#36716#38271#24230
|
#20928#37325#36716#38271#24230
|
||||||
#27611#37325#36716#38271#24230)
|
'')
|
||||||
Properties.OnChange = lblRuleConversionPropertiesChange
|
Properties.OnChange = lblRuleConversionPropertiesChange
|
||||||
Style.HotTrack = False
|
Style.HotTrack = False
|
||||||
Style.LookAndFeel.SkinName = 'WXI'
|
Style.LookAndFeel.SkinName = 'WXI'
|
||||||
|
|
@ -912,15 +912,8 @@ inherited frmMachRollMain: TfrmMachRollMain
|
||||||
ImageIndex = 5
|
ImageIndex = 5
|
||||||
OnClick = TrolldelClick
|
OnClick = TrolldelClick
|
||||||
end
|
end
|
||||||
object ToolButton4: TToolButton
|
|
||||||
Left = 142
|
|
||||||
Top = 0
|
|
||||||
AutoSize = True
|
|
||||||
Caption = #30133#28857#31649#29702
|
|
||||||
ImageIndex = 2
|
|
||||||
end
|
|
||||||
object ToolButton2: TToolButton
|
object ToolButton2: TToolButton
|
||||||
Left = 245
|
Left = 142
|
||||||
Top = 0
|
Top = 0
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #25171#21360#24211#23384#26631#31614
|
Caption = #25171#21360#24211#23384#26631#31614
|
||||||
|
|
@ -928,7 +921,7 @@ inherited frmMachRollMain: TfrmMachRollMain
|
||||||
OnClick = ToolButton2Click
|
OnClick = ToolButton2Click
|
||||||
end
|
end
|
||||||
object ToolButton1: TToolButton
|
object ToolButton1: TToolButton
|
||||||
Left = 380
|
Left = 277
|
||||||
Top = 0
|
Top = 0
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #25171#21367#35774#32622
|
Caption = #25171#21367#35774#32622
|
||||||
|
|
@ -936,14 +929,14 @@ inherited frmMachRollMain: TfrmMachRollMain
|
||||||
OnClick = ToolButton1Click
|
OnClick = ToolButton1Click
|
||||||
end
|
end
|
||||||
object Tlog: TToolButton
|
object Tlog: TToolButton
|
||||||
Left = 483
|
Left = 380
|
||||||
Top = 0
|
Top = 0
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #26085#24535
|
Caption = #26085#24535
|
||||||
ImageIndex = 30
|
ImageIndex = 30
|
||||||
end
|
end
|
||||||
object ToolButton8: TToolButton
|
object ToolButton8: TToolButton
|
||||||
Left = 554
|
Left = 451
|
||||||
Top = 0
|
Top = 0
|
||||||
AutoSize = True
|
AutoSize = True
|
||||||
Caption = #20851#38381
|
Caption = #20851#38381
|
||||||
|
|
@ -954,32 +947,33 @@ inherited frmMachRollMain: TfrmMachRollMain
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object cxGroupBox_keys: TcxGroupBox [2]
|
object cxGroupBox_keys: TcxGroupBox [2]
|
||||||
Left = 83
|
Left = 778
|
||||||
Top = 451
|
Top = 61
|
||||||
Caption = #34394#25311#38190#30424
|
Caption = #34394#25311#38190#30424
|
||||||
Style.LookAndFeel.NativeStyle = False
|
Style.LookAndFeel.NativeStyle = False
|
||||||
StyleDisabled.LookAndFeel.NativeStyle = False
|
StyleDisabled.LookAndFeel.NativeStyle = False
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
Transparent = True
|
Transparent = True
|
||||||
Visible = False
|
Visible = False
|
||||||
Height = 245
|
Height = 285
|
||||||
Width = 319
|
Width = 327
|
||||||
inline FrameKeyBoard1: TFrameKeyBoard
|
inline FrameKeyBoard1: TFrameKeyBoard
|
||||||
Left = 2
|
Left = 4
|
||||||
Top = 26
|
Top = 23
|
||||||
Width = 315
|
Width = 319
|
||||||
Height = 217
|
Height = 246
|
||||||
Align = alClient
|
Align = alClient
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
ExplicitLeft = 2
|
ExplicitLeft = 4
|
||||||
ExplicitTop = 26
|
ExplicitTop = 23
|
||||||
ExplicitWidth = 315
|
ExplicitWidth = 311
|
||||||
ExplicitHeight = 217
|
ExplicitHeight = 206
|
||||||
inherited dxPanel1: TdxPanel
|
inherited dxPanel1: TdxPanel
|
||||||
Width = 315
|
Width = 319
|
||||||
Height = 217
|
Height = 246
|
||||||
ExplicitWidth = 315
|
ExplicitTop = -8
|
||||||
ExplicitHeight = 217
|
ExplicitWidth = 311
|
||||||
|
ExplicitHeight = 261
|
||||||
inherited SpeedButton1: TSpeedButton
|
inherited SpeedButton1: TSpeedButton
|
||||||
OnClick = FrameKeyBoard1SpeedButton1Click
|
OnClick = FrameKeyBoard1SpeedButton1Click
|
||||||
end
|
end
|
||||||
|
|
@ -1031,8 +1025,8 @@ inherited frmMachRollMain: TfrmMachRollMain
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object MovePanel1: TMovePanel
|
object MovePanel1: TMovePanel
|
||||||
Left = 85
|
Left = 79
|
||||||
Top = -29
|
Top = -28
|
||||||
Width = 237
|
Width = 237
|
||||||
Height = 45
|
Height = 45
|
||||||
BevelOuter = bvNone
|
BevelOuter = bvNone
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ uses
|
||||||
U_KeyBoard, cxGroupBox, cxGridCustomPopupMenu, cxGridPopupMenu, MovePanel,
|
U_KeyBoard, cxGroupBox, cxGridCustomPopupMenu, cxGridPopupMenu, MovePanel,
|
||||||
RM_RichEdit, cxProgressBar, cxCurrencyEdit, dxSkinsCore, frxBarcode, frxRich,
|
RM_RichEdit, cxProgressBar, cxCurrencyEdit, dxSkinsCore, frxBarcode, frxRich,
|
||||||
frxOLE, frxTableObject, frxExportXLSX, frxClass, frxExportBaseDialog,
|
frxOLE, frxTableObject, frxExportXLSX, frxClass, frxExportBaseDialog,
|
||||||
frxExportPPTX, frxDBSet;
|
frxExportPPTX, frxDBSet, dxSkinWXI;
|
||||||
|
|
||||||
type
|
type
|
||||||
TfrmMachRollMain = class(TfrmBaseList)
|
TfrmMachRollMain = class(TfrmBaseList)
|
||||||
|
|
@ -152,7 +152,6 @@ type
|
||||||
ToolBar2: TToolBar;
|
ToolBar2: TToolBar;
|
||||||
ToolButton3: TToolButton;
|
ToolButton3: TToolButton;
|
||||||
Trolldel: TToolButton;
|
Trolldel: TToolButton;
|
||||||
ToolButton4: TToolButton;
|
|
||||||
ToolButton2: TToolButton;
|
ToolButton2: TToolButton;
|
||||||
ToolButton1: TToolButton;
|
ToolButton1: TToolButton;
|
||||||
Tlog: TToolButton;
|
Tlog: TToolButton;
|
||||||
|
|
@ -509,12 +508,12 @@ begin
|
||||||
end;
|
end;
|
||||||
if trim(fCanInputFs) = '1' then
|
if trim(fCanInputFs) = '1' then
|
||||||
begin
|
begin
|
||||||
cxGroupBox_keys.ClientHeight := round(cxGrid3.ClientHeight * 0.6);
|
// cxGroupBox_keys.ClientHeight := round(cxGrid3.ClientHeight * 0.6);
|
||||||
frameKeyBoard1.SpeedButton10.Visible := true;
|
frameKeyBoard1.SpeedButton10.Visible := true;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
cxGroupBox_keys.ClientHeight := round(cxGrid3.ClientHeight * 0.55);
|
// cxGroupBox_keys.ClientHeight := round(cxGrid3.ClientHeight * 0.55);
|
||||||
frameKeyBoard1.SpeedButton10.Visible := false;
|
frameKeyBoard1.SpeedButton10.Visible := false;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
|
||||||
|
|
@ -75,6 +75,7 @@ begin
|
||||||
pswd := 'rightsoft@5740';
|
pswd := 'rightsoft@5740';
|
||||||
DConString := 'Provider=SQLOLEDB.1;Password=' + pswd + ';Persist Security Info=True;User ID=' + user + ';Initial Catalog=' + dtbase + ';Data Source=' + server;
|
DConString := 'Provider=SQLOLEDB.1;Password=' + pswd + ';Persist Security Info=True;User ID=' + user + ';Initial Catalog=' + dtbase + ';Data Source=' + server;
|
||||||
// DParameters1:='高权限';
|
// DParameters1:='高权限';
|
||||||
|
Parameters1 := '管理';
|
||||||
// Parameters2 := '梭织';
|
// Parameters2 := '梭织';
|
||||||
Parameters4 := '新余';
|
Parameters4 := '新余';
|
||||||
DCode := 'ADMIN';
|
DCode := 'ADMIN';
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,8 @@ inherited frmTradeMarketInPut: TfrmTradeMarketInPut
|
||||||
List = True
|
List = True
|
||||||
ShowCaptions = True
|
ShowCaptions = True
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
|
ExplicitLeft = -8
|
||||||
|
ExplicitTop = -6
|
||||||
object TBSave: TToolButton
|
object TBSave: TToolButton
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 0
|
Top = 0
|
||||||
|
|
@ -110,6 +112,8 @@ inherited frmTradeMarketInPut: TfrmTradeMarketInPut
|
||||||
Height = 478
|
Height = 478
|
||||||
Align = alClient
|
Align = alClient
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
|
ExplicitLeft = -127
|
||||||
|
ExplicitTop = 42
|
||||||
object Tv1: TcxGridDBTableView
|
object Tv1: TcxGridDBTableView
|
||||||
OnMouseDown = Tv1MouseDown
|
OnMouseDown = Tv1MouseDown
|
||||||
Navigator.Buttons.CustomButtons = <>
|
Navigator.Buttons.CustomButtons = <>
|
||||||
|
|
@ -381,6 +385,8 @@ inherited frmTradeMarketInPut: TfrmTradeMarketInPut
|
||||||
Height = 41
|
Height = 41
|
||||||
Align = alTop
|
Align = alTop
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
|
ExplicitLeft = -23
|
||||||
|
ExplicitTop = 5
|
||||||
object Label33: TLabel
|
object Label33: TLabel
|
||||||
Left = 113
|
Left = 113
|
||||||
Top = 10
|
Top = 10
|
||||||
|
|
@ -397,7 +403,7 @@ inherited frmTradeMarketInPut: TfrmTradeMarketInPut
|
||||||
end
|
end
|
||||||
object QtyMX: TcxTextEdit
|
object QtyMX: TcxTextEdit
|
||||||
Left = 163
|
Left = 163
|
||||||
Top = 6
|
Top = 4
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
OnKeyPress = QtyMXKeyPress
|
OnKeyPress = QtyMXKeyPress
|
||||||
Width = 89
|
Width = 89
|
||||||
|
|
@ -411,6 +417,8 @@ inherited frmTradeMarketInPut: TfrmTradeMarketInPut
|
||||||
Align = alClient
|
Align = alClient
|
||||||
Caption = #21452#20987#21024#38500#26126#32454#20449#24687
|
Caption = #21452#20987#21024#38500#26126#32454#20449#24687
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
|
ExplicitLeft = -7
|
||||||
|
ExplicitTop = 48
|
||||||
object cxGrid2: TcxGrid
|
object cxGrid2: TcxGrid
|
||||||
Left = 2
|
Left = 2
|
||||||
Top = 23
|
Top = 23
|
||||||
|
|
@ -418,6 +426,8 @@ inherited frmTradeMarketInPut: TfrmTradeMarketInPut
|
||||||
Height = 412
|
Height = 412
|
||||||
Align = alClient
|
Align = alClient
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
|
ExplicitLeft = -22
|
||||||
|
ExplicitTop = 22
|
||||||
object TvMX: TcxGridDBTableView
|
object TvMX: TcxGridDBTableView
|
||||||
Navigator.Buttons.CustomButtons = <>
|
Navigator.Buttons.CustomButtons = <>
|
||||||
Navigator.Buttons.Delete.Enabled = False
|
Navigator.Buttons.Delete.Enabled = False
|
||||||
|
|
@ -490,6 +500,8 @@ inherited frmTradeMarketInPut: TfrmTradeMarketInPut
|
||||||
ParentCtl3D = False
|
ParentCtl3D = False
|
||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
OnClick = ScrollBox1Click
|
OnClick = ScrollBox1Click
|
||||||
|
ExplicitLeft = -8
|
||||||
|
ExplicitTop = 56
|
||||||
object Label3: TLabel
|
object Label3: TLabel
|
||||||
Left = 730
|
Left = 730
|
||||||
Top = 70
|
Top = 70
|
||||||
|
|
|
||||||
|
|
@ -517,8 +517,6 @@ begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
///////////////////// ±£´æÖ÷±í ///////////////////////////
|
///////////////////// ±£´æÖ÷±í ///////////////////////////
|
||||||
|
|
||||||
|
|
||||||
///////////////////// ±£´æ×Ó±í ///////////////////////////
|
///////////////////// ±£´æ×Ó±í ///////////////////////////
|
||||||
with CDS_1 do
|
with CDS_1 do
|
||||||
begin
|
begin
|
||||||
|
|
@ -561,6 +559,36 @@ begin
|
||||||
///////////////////// ±£´æ×Ó±í ///////////////////////////
|
///////////////////// ±£´æ×Ó±í ///////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
// with CDS_MX do
|
||||||
|
// begin
|
||||||
|
// First;
|
||||||
|
// while not Eof do
|
||||||
|
// begin
|
||||||
|
//
|
||||||
|
// with ADOCmd do
|
||||||
|
// begin
|
||||||
|
// Close;
|
||||||
|
// SQL.Clear;
|
||||||
|
// sql.Add('select * from Trade_Market_Sub_Qty where TMSQID=' + quotedstr(Trim(CDS_MX.FieldByName('TMSQID').AsString)));
|
||||||
|
// Open;
|
||||||
|
// end;
|
||||||
|
// with ADOCmd do
|
||||||
|
// begin
|
||||||
|
// if Trim(CDS_MX.fieldbyname('TMSQID').AsString) = '' then
|
||||||
|
// Append
|
||||||
|
// else
|
||||||
|
// Edit;
|
||||||
|
// RTSetSaveDataCDS(ADOCmd, TvMX, CDS_MX, 'Trade_Market_Sub_Qty', 0);
|
||||||
|
// Post;
|
||||||
|
// end;
|
||||||
|
// Next;
|
||||||
|
// end;
|
||||||
|
// end;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
with ADOCmd do
|
with ADOCmd do
|
||||||
begin
|
begin
|
||||||
Close;
|
Close;
|
||||||
|
|
|
||||||
|
|
@ -408,6 +408,27 @@ inherited frmTradeMarketList: TfrmTradeMarketList
|
||||||
HeaderAlignmentHorz = taCenter
|
HeaderAlignmentHorz = taCenter
|
||||||
Width = 104
|
Width = 104
|
||||||
end
|
end
|
||||||
|
object Tv1Column22: TcxGridDBColumn
|
||||||
|
Caption = #20986#24211#25968#37327
|
||||||
|
DataBinding.FieldName = 'Qty2'
|
||||||
|
DataBinding.IsNullValueType = True
|
||||||
|
HeaderAlignmentHorz = taCenter
|
||||||
|
Width = 84
|
||||||
|
end
|
||||||
|
object Tv1Column23: TcxGridDBColumn
|
||||||
|
Caption = #21333#20215
|
||||||
|
DataBinding.FieldName = 'Price'
|
||||||
|
DataBinding.IsNullValueType = True
|
||||||
|
HeaderAlignmentHorz = taCenter
|
||||||
|
Width = 70
|
||||||
|
end
|
||||||
|
object Tv1Column24: TcxGridDBColumn
|
||||||
|
Caption = #37329#39069
|
||||||
|
DataBinding.FieldName = 'Amount'
|
||||||
|
DataBinding.IsNullValueType = True
|
||||||
|
HeaderAlignmentHorz = taCenter
|
||||||
|
Width = 70
|
||||||
|
end
|
||||||
object Tv1Column13: TcxGridDBColumn
|
object Tv1Column13: TcxGridDBColumn
|
||||||
Caption = #25253#21333#21333#20301
|
Caption = #25253#21333#21333#20301
|
||||||
DataBinding.FieldName = 'OrderUnit'
|
DataBinding.FieldName = 'OrderUnit'
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,9 @@ type
|
||||||
Tv1Column21: TcxGridDBColumn;
|
Tv1Column21: TcxGridDBColumn;
|
||||||
N5: TMenuItem;
|
N5: TMenuItem;
|
||||||
N6: TMenuItem;
|
N6: TMenuItem;
|
||||||
|
Tv1Column22: TcxGridDBColumn;
|
||||||
|
Tv1Column23: TcxGridDBColumn;
|
||||||
|
Tv1Column24: TcxGridDBColumn;
|
||||||
procedure FormDestroy(Sender: TObject);
|
procedure FormDestroy(Sender: TObject);
|
||||||
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
procedure FormCreate(Sender: TObject);
|
procedure FormCreate(Sender: TObject);
|
||||||
|
|
@ -309,7 +312,7 @@ begin
|
||||||
SqlStr := SqlStr + ' , @Status=''10'' ';
|
SqlStr := SqlStr + ' , @Status=''10'' ';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
// ShowMessage(SqlStr);
|
||||||
InitCDSData(ADOQueryMain, Order_Main, Tv1, SqlStr, FilterStr, 'TMMId');
|
InitCDSData(ADOQueryMain, Order_Main, Tv1, SqlStr, FilterStr, 'TMMId');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user