~
This commit is contained in:
parent
7286eac99e
commit
112de07f06
|
|
@ -1654,10 +1654,10 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
OnKeyPress = MJstr3KeyPress
|
OnKeyPress = MJstr3KeyPress
|
||||||
end
|
end
|
||||||
object BTPrint: TButton
|
object BTPrint: TButton
|
||||||
Left = 10
|
Left = 178
|
||||||
Top = 471
|
Top = 615
|
||||||
Width = 99
|
Width = 79
|
||||||
Height = 66
|
Height = 34
|
||||||
Caption = #25552#20132
|
Caption = #25552#20132
|
||||||
Font.Charset = GB2312_CHARSET
|
Font.Charset = GB2312_CHARSET
|
||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
|
|
@ -1666,6 +1666,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
Font.Style = [fsBold]
|
Font.Style = [fsBold]
|
||||||
ParentFont = False
|
ParentFont = False
|
||||||
TabOrder = 19
|
TabOrder = 19
|
||||||
|
Visible = False
|
||||||
OnClick = BTPrintClick
|
OnClick = BTPrintClick
|
||||||
end
|
end
|
||||||
object Edit3: TEdit
|
object Edit3: TEdit
|
||||||
|
|
@ -1830,9 +1831,10 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
Font.Style = [fsBold]
|
Font.Style = [fsBold]
|
||||||
ImeName = #20013#25991' ('#31616#20307') - '#25628#29399#25340#38899#36755#20837#27861
|
ImeName = #20013#25991' ('#31616#20307') - '#25628#29399#25340#38899#36755#20837#27861
|
||||||
ItemHeight = 27
|
ItemHeight = 27
|
||||||
|
ItemIndex = 1
|
||||||
ParentFont = False
|
ParentFont = False
|
||||||
TabOrder = 15
|
TabOrder = 15
|
||||||
Text = '1'
|
Text = '2'
|
||||||
Items.Strings = (
|
Items.Strings = (
|
||||||
'1'
|
'1'
|
||||||
'2'
|
'2'
|
||||||
|
|
@ -2229,10 +2231,10 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
OnKeyPress = MJstr3KeyPress
|
OnKeyPress = MJstr3KeyPress
|
||||||
end
|
end
|
||||||
object Button5: TButton
|
object Button5: TButton
|
||||||
Left = 126
|
Left = 14
|
||||||
Top = 470
|
Top = 606
|
||||||
Width = 151
|
Width = 131
|
||||||
Height = 139
|
Height = 35
|
||||||
Caption = #25552#20132#31859#25968
|
Caption = #25552#20132#31859#25968
|
||||||
Font.Charset = GB2312_CHARSET
|
Font.Charset = GB2312_CHARSET
|
||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
|
|
@ -2241,13 +2243,14 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
Font.Style = [fsBold]
|
Font.Style = [fsBold]
|
||||||
ParentFont = False
|
ParentFont = False
|
||||||
TabOrder = 39
|
TabOrder = 39
|
||||||
|
Visible = False
|
||||||
OnClick = Button5Click
|
OnClick = Button5Click
|
||||||
end
|
end
|
||||||
object Button14: TButton
|
object Button14: TButton
|
||||||
Left = 305
|
Left = 393
|
||||||
Top = 470
|
Top = 632
|
||||||
Width = 163
|
Width = 80
|
||||||
Height = 139
|
Height = 41
|
||||||
Caption = #25552#20132#37325#37327
|
Caption = #25552#20132#37325#37327
|
||||||
Font.Charset = GB2312_CHARSET
|
Font.Charset = GB2312_CHARSET
|
||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
|
|
@ -2256,6 +2259,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
Font.Style = [fsBold]
|
Font.Style = [fsBold]
|
||||||
ParentFont = False
|
ParentFont = False
|
||||||
TabOrder = 40
|
TabOrder = 40
|
||||||
|
Visible = False
|
||||||
OnClick = Button14Click
|
OnClick = Button14Click
|
||||||
end
|
end
|
||||||
object note: TEdit
|
object note: TEdit
|
||||||
|
|
@ -2371,6 +2375,54 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
#39068#33394
|
#39068#33394
|
||||||
#32568#21495)
|
#32568#21495)
|
||||||
end
|
end
|
||||||
|
object cxButton1: TcxButton
|
||||||
|
Left = 152
|
||||||
|
Top = 480
|
||||||
|
Width = 145
|
||||||
|
Height = 129
|
||||||
|
Caption = #25552#20132#31859#25968
|
||||||
|
Font.Charset = GB2312_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -19
|
||||||
|
Font.Name = #23435#20307
|
||||||
|
Font.Style = [fsBold]
|
||||||
|
ParentFont = False
|
||||||
|
TabOrder = 48
|
||||||
|
OnClick = Button5Click
|
||||||
|
Colors.Pressed = clRed
|
||||||
|
end
|
||||||
|
object cxButton2: TcxButton
|
||||||
|
Left = 24
|
||||||
|
Top = 488
|
||||||
|
Width = 105
|
||||||
|
Height = 57
|
||||||
|
Caption = #25552#20132
|
||||||
|
Font.Charset = GB2312_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -19
|
||||||
|
Font.Name = #23435#20307
|
||||||
|
Font.Style = [fsBold]
|
||||||
|
ParentFont = False
|
||||||
|
TabOrder = 49
|
||||||
|
OnClick = BTPrintClick
|
||||||
|
Colors.Pressed = clRed
|
||||||
|
end
|
||||||
|
object cxButton3: TcxButton
|
||||||
|
Left = 312
|
||||||
|
Top = 480
|
||||||
|
Width = 153
|
||||||
|
Height = 129
|
||||||
|
Caption = #25552#20132#37325#37327
|
||||||
|
Font.Charset = GB2312_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -19
|
||||||
|
Font.Name = #23435#20307
|
||||||
|
Font.Style = [fsBold]
|
||||||
|
ParentFont = False
|
||||||
|
TabOrder = 50
|
||||||
|
OnClick = Button14Click
|
||||||
|
Colors.Pressed = clRed
|
||||||
|
end
|
||||||
end
|
end
|
||||||
object MovePanel1: TMovePanel
|
object MovePanel1: TMovePanel
|
||||||
Left = 1406
|
Left = 1406
|
||||||
|
|
@ -3517,6 +3569,7 @@ object frmMJManageNewFDNewSF: TfrmMJManageNewFDNewSF
|
||||||
ParentFont = False
|
ParentFont = False
|
||||||
ReadOnly = True
|
ReadOnly = True
|
||||||
TabOrder = 9
|
TabOrder = 9
|
||||||
|
Text = #8730
|
||||||
OnClick = Edit5Click
|
OnClick = Edit5Click
|
||||||
end
|
end
|
||||||
object Edit13: TEdit
|
object Edit13: TEdit
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ unit U_MJManageNewFDNew;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Windows, Messages, SysUtils, Variants, math, Classes, Graphics, Controls,
|
Windows, Messages, SysUtils, Variants, math, Classes, Graphics, Controls,
|
||||||
Forms, Dialogs, StdCtrls, cxStyles, cxCustomData, cxGraphics, cxFilter, cxData,
|
Forms, Dialogs, StdCtrls, cxStyles, cxCustomData, cxGraphics, cxFilter, cxData,
|
||||||
cxDataStorage, cxEdit, DB, cxDBData, cxCalendar, cxGridLevel,
|
cxDataStorage, cxEdit, DB, cxDBData, cxCalendar, cxGridLevel,
|
||||||
|
|
@ -24,7 +24,7 @@ uses
|
||||||
dxSkinSharp, dxSkinSharpPlus, dxSkinSilver, dxSkinSpringTime, dxSkinStardust,
|
dxSkinSharp, dxSkinSharpPlus, dxSkinSilver, dxSkinSpringTime, dxSkinStardust,
|
||||||
dxSkinSummer2008, dxSkinTheAsphaltWorld, dxSkinsDefaultPainters,
|
dxSkinSummer2008, dxSkinTheAsphaltWorld, dxSkinsDefaultPainters,
|
||||||
dxSkinValentine, dxSkinVS2010, dxSkinWhiteprint, dxSkinXmas2008Blue,
|
dxSkinValentine, dxSkinVS2010, dxSkinWhiteprint, dxSkinXmas2008Blue,
|
||||||
dxSkinscxPCPainter;
|
dxSkinscxPCPainter, Menus, cxButtons;
|
||||||
|
|
||||||
type
|
type
|
||||||
TfrmMJManageNewFDNewSF = class(TForm)
|
TfrmMJManageNewFDNewSF = class(TForm)
|
||||||
|
|
@ -343,6 +343,9 @@ type
|
||||||
Button18: TButton;
|
Button18: TButton;
|
||||||
Button19: TButton;
|
Button19: TButton;
|
||||||
ComboBox3: TComboBox;
|
ComboBox3: TComboBox;
|
||||||
|
cxButton1: TcxButton;
|
||||||
|
cxButton2: TcxButton;
|
||||||
|
cxButton3: TcxButton;
|
||||||
procedure FormDestroy(Sender: TObject);
|
procedure FormDestroy(Sender: TObject);
|
||||||
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
procedure TBCloseClick(Sender: TObject);
|
procedure TBCloseClick(Sender: TObject);
|
||||||
|
|
@ -2751,7 +2754,7 @@ begin
|
||||||
sql.Add(' else isnull((select max(cast(baoNO as int)) from WFB_MJJY X where X.mainID=C.mainID ),0) end ');
|
sql.Add(' else isnull((select max(cast(baoNO as int)) from WFB_MJJY X where X.mainID=C.mainID ),0) end ');
|
||||||
sql.Add('from JYOrder_Sub C');
|
sql.Add('from JYOrder_Sub C');
|
||||||
SQL.Add('inner join JYOrder_Main B on B.MainId=C.MainId ');
|
SQL.Add('inner join JYOrder_Main B on B.MainId=C.MainId ');
|
||||||
SQL.Add('left join WFB_MJJY A on A.MainId=A.MainId ');
|
SQL.Add('left join WFB_MJJY A on A.MainId=A.MainId and A.subid=C.subid ');
|
||||||
sql.Add('where C.SubID=''' + Trim(APID.Text) + '''');
|
sql.Add('where C.SubID=''' + Trim(APID.Text) + '''');
|
||||||
// SQL.Add('and A.dingdanhao=''' + trim(dingdanhao.text) + ''' ');
|
// SQL.Add('and A.dingdanhao=''' + trim(dingdanhao.text) + ''' ');
|
||||||
// sql.Add('and A.FillTime>=getdate()-1');
|
// sql.Add('and A.FillTime>=getdate()-1');
|
||||||
|
|
@ -3738,22 +3741,22 @@ procedure TfrmMJManageNewFDNewSF.Button14Click(Sender: TObject);
|
||||||
var
|
var
|
||||||
FMJID1: string;
|
FMJID1: string;
|
||||||
mzlen, jzlen: Double;
|
mzlen, jzlen: Double;
|
||||||
fPrintFile: string;
|
fPrintFile: string;
|
||||||
mvalue: Double;
|
mvalue: Double;
|
||||||
mvalue1: integer;
|
mvalue1: integer;
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
begin
|
begin
|
||||||
// Y1 := false;
|
// Y1 := false;
|
||||||
PState := 33;
|
PState := 33;
|
||||||
if Edit9.text <> '' then
|
// if Edit9.text <> '' then
|
||||||
begin
|
// begin
|
||||||
if (strtofloatdef(trim(MJMaoZ.Text), 0) = 0) then
|
if (strtofloatdef(trim(MJMaoZ.Text), 0) <= 0) or (strtofloatdef(trim(MJQty4.Text), 0) <= 0) then
|
||||||
begin
|
begin
|
||||||
application.MessageBox('重量不能为零!', '提示信息', 0);
|
application.MessageBox('重量不能为零!', '提示信息', 0);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
end;
|
// end;
|
||||||
|
|
||||||
with ADOQuery1 do
|
with ADOQuery1 do
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user