This commit is contained in:
DESKTOP-E401PHE\Administrator 2025-08-30 10:58:21 +08:00
parent 5bc2a25bce
commit 45d496c3ad
14 changed files with 1341 additions and 1134 deletions

View File

@ -16,7 +16,6 @@ object frmClientPrintRmf: TfrmClientPrintRmf
OnCreate = FormCreate
OnDestroy = FormDestroy
OnShow = FormShow
OnStartDock = FormStartDock
PixelsPerInch = 96
TextHeight = 11
object ADOQueryTemp: TADOQuery
@ -3871,7 +3870,6 @@ object frmClientPrintRmf: TfrmClientPrintRmf
Top = 153
end
object ADOQueryReport: TADOQuery
Connection = DataLink_MYSC.ADOLink
Parameters = <>
Left = 183
Top = 65503

View File

@ -42,7 +42,6 @@ type
procedure FormShow(Sender: TObject);
procedure FormDestroy(Sender: TObject);
procedure TV1DblClick(Sender: TObject);
procedure FormStartDock(Sender: TObject; var DragObject: TDragDockObject);
private
IsDebug, FPreviewPrint, fIsPreview: Boolean;
FLMType, FLBName: string;
@ -53,7 +52,7 @@ type
procedure PrintReport();
procedure ExportReport();
procedure InitAdo(Ado: TADOQuery; SqlStr: string);
procedure TfrmClientPrintRmf.GetQrCode();
procedure GetQrCode(Txt: string);
procedure InitArgs();
{ Private declarations }
public
@ -79,31 +78,31 @@ begin
FPrintJson := JsonArgs;
end;
procedure TfrmClientPrintRmf.GetQrCode(Txt: string; );
procedure TfrmClientPrintRmf.GetQrCode(Txt: string);
var
fPrintFile: string;
fImagePath: string;
Moudle: THandle;
Makebar: TMakebar;
Mixtext: TMixtext;
// Makebar: TMakebar;
// Mixtext: TMixtext;
CurRow: Integer;
begin
try
Moudle := LoadLibrary('MakeQRBarcode.dll');
@Makebar := GetProcAddress(Moudle, 'Make');
@Mixtext := GetProcAddress(Moudle, 'MixText');
Txt := Trim(ADOQueryPrint.fieldbyname('MXID').AsString);
fImagePath := ExtractFilePath(Application.ExeName) + 'image\temp.bmp';
if not DirectoryExists(pchar(ExtractFilePath(Application.ExeName) + 'image')) then
CreateDirectory(pchar(ExtractFilePath(Application.ExeName) + 'image'), nil);
if FileExists(fImagePath) then
DeleteFile(fImagePath);
Makebar(pchar(Txt), Length(Txt), 3, 3, 0, PChar(fImagePath), 3);
except
application.MessageBox('条形码生成失败!', '提示信息', MB_ICONERROR);
Order_Main.EnableControls;
exit;
end;
// try
// Moudle := LoadLibrary('MakeQRBarcode.dll');
// @Makebar := GetProcAddress(Moudle, 'Make');
// @Mixtext := GetProcAddress(Moudle, 'MixText');
// Txt := Trim(ADOQueryPrint.fieldbyname('MXID').AsString);
// fImagePath := ExtractFilePath(Application.ExeName) + 'image\temp.bmp';
// if not DirectoryExists(pchar(ExtractFilePath(Application.ExeName) + 'image')) then
// CreateDirectory(pchar(ExtractFilePath(Application.ExeName) + 'image'), nil);
// if FileExists(fImagePath) then
// DeleteFile(fImagePath);
// Makebar(pchar(Txt), Length(Txt), 3, 3, 0, PChar(fImagePath), 3);
// except
// application.MessageBox('条形码生成失败!', '提示信息', MB_ICONERROR);
// Order_Main.EnableControls;
// exit;
// end;
end;
@ -311,10 +310,5 @@ begin
frmClientPrintRmf := nil;
end;
procedure TfrmClientPrintRmf.FormStartDock(Sender: TObject; var DragObject: TDragDockObject);
begin
end;
end.

View File

@ -306,14 +306,8 @@ object frmYMTRKInPut: TfrmYMTRKInPut
ImageIndex = 15
OnClick = TBSaveClick
end
object ToolButton1: TToolButton
Left = 63
Top = 0
Caption = #22810#34892#26032#22686
ImageIndex = 22
end
object TBAdd: TToolButton
Left = 146
Left = 63
Top = 0
AutoSize = True
Caption = #26032#22686
@ -321,7 +315,7 @@ object frmYMTRKInPut: TfrmYMTRKInPut
OnClick = TBAddClick
end
object TBDel: TToolButton
Left = 209
Left = 126
Top = 0
AutoSize = True
Caption = #21024#38500
@ -329,14 +323,14 @@ object frmYMTRKInPut: TfrmYMTRKInPut
OnClick = TBDelClick
end
object ToolButton2: TToolButton
Left = 272
Left = 189
Top = 0
Caption = #19968#38190#26367#25442
ImageIndex = 22
OnClick = ToolButton2Click
end
object TBClose: TToolButton
Left = 355
Left = 272
Top = 0
AutoSize = True
Caption = #20851#38381

View File

@ -59,7 +59,6 @@ type
v1Column17: TcxGridDBColumn;
v1Column18: TcxGridDBColumn;
v1Column19: TcxGridDBColumn;
ToolButton1: TToolButton;
v1Column20: TcxGridDBColumn;
v1Column21: TcxGridDBColumn;
ToolButton2: TToolButton;

View File

@ -194,7 +194,7 @@ object frmGYSList: TfrmGYSList
Left = 294
Top = 11
Width = 125
Height = 23
Height = 20
TabOrder = 0
OnChange = CustomerNoNameChange
end
@ -203,7 +203,7 @@ object frmGYSList: TfrmGYSList
Left = 86
Top = 11
Width = 125
Height = 23
Height = 20
TabOrder = 1
OnChange = CustomerNoNameChange
end
@ -212,7 +212,7 @@ object frmGYSList: TfrmGYSList
Left = 510
Top = 11
Width = 121
Height = 23
Height = 20
ReadOnly = True
TabOrder = 2
OnBtnUpClick = KHTypeBtnUpClick

View File

@ -6,25 +6,24 @@ uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, ComCtrls, ToolWin, cxStyles, cxCustomData,
cxGraphics, cxFilter, cxData, cxDataStorage, cxEdit, DB, cxDBData, ADODB,
cxGridCustomPopupMenu, cxGridPopupMenu, cxGridLevel, cxClasses,
cxControls, cxGridCustomView, cxGridCustomTableView, cxGridTableView,
cxGridDBTableView, cxGrid, DBClient, cxCheckBox, cxCalendar, cxSplitter,
RM_Dataset, RM_System, RM_Common, RM_Class, RM_GridReport, RM_e_Xls,
Menus, cxButtonEdit, cxDropDownEdit, BtnEdit, cxLookAndFeels,
cxLookAndFeelPainters, cxNavigator, dxSkinsCore,
dxSkinDarkRoom,
dxSkinOffice2013White,
dxSkinSharpPlus,
dxSkinSpringTime,
dxSkinsDefaultPainters,
dxSkinscxPCPainter;
cxGridCustomPopupMenu, cxGridPopupMenu, cxGridLevel, cxClasses, cxControls,
cxGridCustomView, cxGridCustomTableView, cxGridTableView, cxGridDBTableView,
cxGrid, DBClient, cxCheckBox, cxCalendar, cxSplitter, RM_Dataset, RM_System,
RM_Common, RM_Class, RM_GridReport, RM_e_Xls, Menus, cxButtonEdit,
cxDropDownEdit, BtnEdit, cxLookAndFeels, cxLookAndFeelPainters, cxNavigator,
dxSkinsCore, dxSkinDarkRoom, dxSkinOffice2013White, dxSkinSharpPlus,
dxSkinSpringTime, dxSkinsDefaultPainters, dxSkinscxPCPainter, dxSkinBlack,
dxSkinBlue, dxSkinBlueprint, dxSkinCaramel, dxSkinCoffee, dxSkinDarkSide,
dxSkinDevExpressDarkStyle, dxSkinDevExpressStyle, dxSkinFoggy,
dxSkinGlassOceans, dxSkinHighContrast, dxSkiniMaginary, dxSkinLilian,
dxSkinLiquidSky, dxSkinLondonLiquidSky, dxSkinMcSkin, dxSkinMetropolis,
dxSkinMetropolisDark, dxSkinMoneyTwins, dxSkinOffice2007Black,
dxSkinOffice2007Blue, dxSkinOffice2007Green, dxSkinOffice2007Pink,
dxSkinOffice2007Silver, dxSkinOffice2010Black, dxSkinOffice2010Blue,
dxSkinOffice2010Silver, dxSkinOffice2013DarkGray, dxSkinOffice2013LightGray,
dxSkinPumpkin, dxSkinSeven, dxSkinSevenClassic, dxSkinSharp, dxSkinSilver,
dxSkinStardust, dxSkinSummer2008, dxSkinTheAsphaltWorld, dxSkinValentine,
dxSkinVS2010, dxSkinWhiteprint, dxSkinXmas2008Blue;
type
TfrmGYSList = class(TForm)
@ -79,14 +78,14 @@ type
procedure KHTypeBtnDnClick(Sender: TObject);
procedure KHTypeBtnUpClick(Sender: TObject);
private
DQdate:TDateTime;
XZKHTYpe,canshu1:string;
DQdate: TDateTime;
XZKHTYpe, canshu1: string;
procedure InitGrid();
procedure InitForm();
function DelData():Boolean;
function DelData(): Boolean;
{ Private declarations }
public
FFInt,FCloth:Integer;
FFInt, FCloth: Integer;
{ Public declarations }
end;
@ -95,32 +94,32 @@ var
frmGYSList: TfrmGYSList;
implementation
uses
U_DataLink,U_RTFun,U_ZDYHelp,U_SCPerson,U_PBGYSInPutMain;
U_DataLink, U_RTFun, U_ZDYHelp, U_SCPerson, U_PBGYSInPutMain;
{$R *.dfm}
procedure TfrmGYSList.FormDestroy(Sender: TObject);
begin
frmGYSList:=nil;
frmGYSList := nil;
end;
procedure TfrmGYSList.FormClose(Sender: TObject;
var Action: TCloseAction);
procedure TfrmGYSList.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Action:=caFree;
Action := caFree;
end;
procedure TfrmGYSList.FormCreate(Sender: TObject);
begin
cxgrid1.Align:=alClient;
cxgrid1.Align := alClient;
end;
procedure TfrmGYSList.TBCloseClick(Sender: TObject);
begin
Close;
WriteCxGrid('供应商登记',Tv1,'供应商管理');
WriteCxGrid('供应商登记', Tv1, '供应商管理');
end;
@ -130,7 +129,7 @@ begin
ADOQueryMain.DisableControls;
with ADOQueryMain do
begin
Filtered:=False;
Filtered := False;
Close;
sql.Clear;
sql.Add('select *,zjm=dbo.getpinyin(KHName) ');
@ -142,25 +141,24 @@ begin
end;}
Open;
end;
SCreateCDS20(ADOQueryMain,Order_Main);
SInitCDSData20(ADOQueryMain,Order_Main);
SCreateCDS20(ADOQueryMain, Order_Main);
SInitCDSData20(ADOQueryMain, Order_Main);
TBFind.Click;
finally
ADOQueryMain.EnableControls;
end;
end;
procedure TfrmGYSList.InitForm();
begin
ReadCxGrid(self.Caption,Tv1,'贸易生产管理');
KHType.Visible:=true;
label34.Visible:=true;
ToolButton1.Visible:=true;
canshu1:=Trim(DParameters1);
if Trim(canshu1)<>'高权限' then
ReadCxGrid(self.Caption, Tv1, '贸易生产管理');
KHType.Visible := true;
label34.Visible := true;
ToolButton1.Visible := true;
canshu1 := Trim(DParameters1);
if Trim(canshu1) <> '高权限' then
begin
ToolButton1.Visible:=false;
ToolButton1.Visible := false;
end;
InitGrid();
@ -168,20 +166,22 @@ end;
procedure TfrmGYSList.TBFindClick(Sender: TObject);
begin
if ADOQueryMain.Active=False then Exit;
SDofilter(ADOQueryMain,SGetFilters(Panel1,1,2));
SCreateCDS20(ADOQueryMain,Order_Main);
SInitCDSData20(ADOQueryMain,Order_Main);
if ADOQueryMain.Active = False then
Exit;
SDofilter(ADOQueryMain, SGetFilters(Panel1, 1, 2));
SCreateCDS20(ADOQueryMain, Order_Main);
SInitCDSData20(ADOQueryMain, Order_Main);
end;
procedure TfrmGYSList.TBEditClick(Sender: TObject);
begin
if Order_Main.IsEmpty then Exit;
if Trim(canshu1)='' then
if Order_Main.IsEmpty then
Exit;
if Trim(canshu1) = '' then
begin
if Trim(Order_Main.fieldbyname('Filler').AsString)<>Trim(DName) then
if Trim(Order_Main.fieldbyname('Filler').AsString) <> Trim(DName) then
begin
Application.MessageBox('不能操作他人的数据!','提示',0);
Application.MessageBox('不能操作他人的数据!', '提示', 0);
Exit;
end;
end;
@ -189,38 +189,40 @@ end;
procedure TfrmGYSList.TBDelClick(Sender: TObject);
begin
if Order_Main.IsEmpty then Exit;
if Trim(Order_Main.fieldbyname('Filler').AsString)<>Trim(DName) then
if Order_Main.IsEmpty then
Exit;
if Trim(Order_Main.fieldbyname('Filler').AsString) <> Trim(DName) then
begin
Application.MessageBox('不能操作他人的数据!','提示',0);
Application.MessageBox('不能操作他人的数据!', '提示', 0);
Exit;
end;
if Application.MessageBox('确定要删除数据吗?','提示',32+4)<>IDYES then Exit;
if Application.MessageBox('确定要删除数据吗?', '提示', 32 + 4) <> IDYES then
Exit;
if DelData() then
begin
Order_Main.Delete;
end;
end;
function TfrmGYSList.DelData():Boolean;
function TfrmGYSList.DelData(): Boolean;
begin
try
Result:=false;
Result := false;
ADOQueryCmd.Connection.BeginTrans;
with ADOQueryCmd do
begin
Close;
sql.Clear;
sql.Add('Update ZH_KH_Info Set Valid=''N'' where ZKId='''+Trim(Order_Main.fieldbyname('ZKId').AsString)+'''');
sql.Add('Update ZH_KH_Info Set Valid=''N'' where ZKId=''' + Trim(Order_Main.fieldbyname('ZKId').AsString) + '''');
ExecSQL;
end;
ADOQueryCmd.Connection.CommitTrans;
Result:=True;
Result := True;
except
ADOQueryCmd.Connection.RollbackTrans;
Result:=False;
Application.MessageBox('数据删除异常!','提示',0);
Result := False;
Application.MessageBox('数据删除异常!', '提示', 0);
end;
end;
@ -246,65 +248,70 @@ end;
procedure TfrmGYSList.N1Click(Sender: TObject);
var
fPrintFile:string;
Porderno:string;
fPrintFile: string;
Porderno: string;
begin
if Order_Main.IsEmpty then Exit;
fPrintFile:= ExtractFilePath(Application.ExeName) + 'Report\生产指示单10.rmf' ;
SDofilter(ADOQueryMain,' OrderNoM='''+Trim(Order_Main.fieldbyname('OrderNoM').AsString)+'''');
SCreateCDS20(ADOQueryMain,Order_Main);
SInitCDSData20(ADOQueryMain,Order_Main);
Porderno:=Trim(Order_Main.fieldbyname('OrderNoM').AsString);
if Order_Main.IsEmpty then
Exit;
fPrintFile := ExtractFilePath(Application.ExeName) + 'Report\生产指示单10.rmf';
SDofilter(ADOQueryMain, ' OrderNoM=''' + Trim(Order_Main.fieldbyname('OrderNoM').AsString) + '''');
SCreateCDS20(ADOQueryMain, Order_Main);
SInitCDSData20(ADOQueryMain, Order_Main);
Porderno := Trim(Order_Main.fieldbyname('OrderNoM').AsString);
if FileExists(fPrintFile) then
begin
RM1.LoadFromFile(fPrintFile);
RM1.ShowReport;
end else
end
else
begin
Application.MessageBox(PChar('没有找'+ExtractFilePath(Application.ExeName)+'Report\生产指示单10.rmf'),'提示',0);
Application.MessageBox(PChar('没有找' + ExtractFilePath(Application.ExeName) + 'Report\生产指示单10.rmf'), '提示', 0);
end;
SDofilter(ADOQueryMain,'');
SCreateCDS20(ADOQueryMain,Order_Main);
SInitCDSData20(ADOQueryMain,Order_Main);
Order_Main.Locate('ordernoM',Porderno,[]);
SDofilter(ADOQueryMain, '');
SCreateCDS20(ADOQueryMain, Order_Main);
SInitCDSData20(ADOQueryMain, Order_Main);
Order_Main.Locate('ordernoM', Porderno, []);
end;
procedure TfrmGYSList.N2Click(Sender: TObject);
var
fPrintFile:string;
Porderno:string;
fPrintFile: string;
Porderno: string;
begin
if Order_Main.IsEmpty then Exit;
fPrintFile:= ExtractFilePath(Application.ExeName) + 'Report\生产指示单.rmf' ;
SDofilter(ADOQueryMain,' OrderNoM='''+Trim(Order_Main.fieldbyname('OrderNoM').AsString)+'''');
SCreateCDS20(ADOQueryMain,Order_Main);
SInitCDSData20(ADOQueryMain,Order_Main);
Porderno:=Trim(Order_Main.fieldbyname('OrderNoM').AsString);
if Order_Main.IsEmpty then
Exit;
fPrintFile := ExtractFilePath(Application.ExeName) + 'Report\生产指示单.rmf';
SDofilter(ADOQueryMain, ' OrderNoM=''' + Trim(Order_Main.fieldbyname('OrderNoM').AsString) + '''');
SCreateCDS20(ADOQueryMain, Order_Main);
SInitCDSData20(ADOQueryMain, Order_Main);
Porderno := Trim(Order_Main.fieldbyname('OrderNoM').AsString);
if FileExists(fPrintFile) then
begin
RM1.LoadFromFile(fPrintFile);
RM1.ShowReport;
end else
end
else
begin
Application.MessageBox(PChar('没有找'+ExtractFilePath(Application.ExeName)+'Report\生产指示单.rmf'),'提示',0);
Application.MessageBox(PChar('没有找' + ExtractFilePath(Application.ExeName) + 'Report\生产指示单.rmf'), '提示', 0);
end;
SDofilter(ADOQueryMain,'');
SCreateCDS20(ADOQueryMain,Order_Main);
SInitCDSData20(ADOQueryMain,Order_Main);
Order_Main.Locate('ordernoM',Porderno,[]);
SDofilter(ADOQueryMain, '');
SCreateCDS20(ADOQueryMain, Order_Main);
SInitCDSData20(ADOQueryMain, Order_Main);
Order_Main.Locate('ordernoM', Porderno, []);
end;
procedure TfrmGYSList.ToolButton3Click(Sender: TObject);
begin
ModalResult:=1;
ModalResult := 1;
end;
procedure TfrmGYSList.CustomerNoNameChange(Sender: TObject);
begin
if ADOQueryMain.Active=False then Exit;
SDofilter(ADOQueryMain,SGetFilters(Panel1,1,2));
SCreateCDS20(ADOQueryMain,Order_Main);
SInitCDSData20(ADOQueryMain,Order_Main);
if ADOQueryMain.Active = False then
Exit;
SDofilter(ADOQueryMain, SGetFilters(Panel1, 1, 2));
SCreateCDS20(ADOQueryMain, Order_Main);
SInitCDSData20(ADOQueryMain, Order_Main);
end;
procedure TfrmGYSList.Tv1DblClick(Sender: TObject);
@ -315,32 +322,33 @@ end;
procedure TfrmGYSList.ToolButton1Click(Sender: TObject);
begin
try
frmSCPerson:=TfrmSCPerson.Create(Application);
frmSCPerson := TfrmSCPerson.Create(Application);
with frmSCPerson do
begin
FlagStr:='GYSType';
if ShowModal=1 then
FlagStr := 'GYSType';
if ShowModal = 1 then
begin
XZKHTYpe:=Trim(FSDPerson);
XZKHTYpe := Trim(FSDPerson);
end;
end;
finally
frmSCPerson.Free;
end;
if Trim(XZKHTYpe)='' then Exit;
if Trim(XZKHTYpe) = '' then
Exit;
try
frmPBGYSInPutMain:=TfrmPBGYSInPutMain.Create(Application);
frmPBGYSInPutMain := TfrmPBGYSInPutMain.Create(Application);
with frmPBGYSInPutMain do
begin
FKHMainid:='';
FKHFlag:='GYS';
frmPBGYSInPutMain.KHType.Text:=Trim(XZKHTYpe);
frmPBGYSInPutMain.KHType.Enabled:=False;
frmPBGYSInPutMain.KHType.Color:=clMenu;
if ShowModal=1 then
FKHMainid := '';
FKHFlag := 'GYS';
frmPBGYSInPutMain.KHType.Text := Trim(XZKHTYpe);
frmPBGYSInPutMain.KHType.Enabled := False;
frmPBGYSInPutMain.KHType.Color := clMenu;
if ShowModal = 1 then
begin
TBRafresh.Click;
Order_Main.Locate('KHMainId',FKHMainid,[]);
Order_Main.Locate('KHMainId', FKHMainid, []);
end;
end;
finally
@ -350,21 +358,21 @@ end;
procedure TfrmGYSList.KHTypeBtnDnClick(Sender: TObject);
begin
KHType.Text:='';
KHType.TxtCode:='';
KHType.Text := '';
KHType.TxtCode := '';
end;
procedure TfrmGYSList.KHTypeBtnUpClick(Sender: TObject);
begin
try
frmSCPerson:=TfrmSCPerson.Create(Application);
frmSCPerson := TfrmSCPerson.Create(Application);
with frmSCPerson do
begin
FlagStr:='GYSType';
if ShowModal=1 then
FlagStr := 'GYSType';
if ShowModal = 1 then
begin
Self.KHType.Text:=Trim(FSDPerson);
Self.KHType.TxtCode:=Trim(FSDPerson);
Self.KHType.Text := Trim(FSDPerson);
Self.KHType.TxtCode := Trim(FSDPerson);
end;
end;
finally
@ -374,3 +382,4 @@ begin
end;
end.

File diff suppressed because it is too large Load Diff

View File

@ -51,14 +51,8 @@ type
Label13: TLabel;
CRTime: TDateTimePicker;
Panel5: TPanel;
Label12: TLabel;
Label14: TLabel;
Label15: TLabel;
Label16: TLabel;
Label31: TLabel;
Label32: TLabel;
MYKZ: TEdit;
MYMF: TEdit;
PS: TEdit;
Qty: TEdit;
KgQty: TEdit;
@ -82,12 +76,6 @@ type
IdFTP1: TIdFTP;
SaveDialog1: TSaveDialog;
adoqueryPicture: TADOQuery;
Label2: TLabel;
MYCF: TEdit;
Label3: TLabel;
MYJWS: TEdit;
Label11: TLabel;
MYMD: TEdit;
Label23: TLabel;
MYPrice: TEdit;
Label24: TLabel;
@ -123,23 +111,12 @@ type
Label45: TLabel;
Label49: TLabel;
Label50: TLabel;
Panel14: TPanel;
Label51: TLabel;
MYMDPrice: TEdit;
Label43: TLabel;
MDMFlag: TCheckBox;
MDKGFlag: TCheckBox;
Panel15: TPanel;
Label22: TLabel;
MYCode: TEdit;
MYName: TBtnEditA;
Panel2: TPanel;
Label6: TLabel;
MoneyChaE: TEdit;
Label1: TLabel;
Note: TEdit;
HSFlag: TCheckBox;
BHSFlag: TCheckBox;
ADOQueryTemp: TADOQuery;
Label7: TLabel;
RKNo: TEdit;
@ -163,8 +140,32 @@ type
Label30: TLabel;
YGSunHao: TEdit;
Label35: TLabel;
Panel6: TPanel;
Label22: TLabel;
MYCode: TEdit;
MYName: TBtnEditA;
Label12: TLabel;
Label14: TLabel;
Label15: TLabel;
Label16: TLabel;
Label2: TLabel;
Label3: TLabel;
Label11: TLabel;
Label36: TLabel;
MYKZ: TEdit;
MYMF: TEdit;
MYCF: TEdit;
MYJWS: TEdit;
MYMD: TEdit;
GCCodeName: TEdit;
Panel14: TPanel;
Label51: TLabel;
Label43: TLabel;
MYMDPrice: TEdit;
MDMFlag: TCheckBox;
MDKGFlag: TCheckBox;
HSFlag: TCheckBox;
BHSFlag: TCheckBox;
procedure liClick(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure TBSaveClick(Sender: TObject);
@ -897,6 +898,9 @@ begin
if ShowModal = 1 then
begin
InitData();
Self.MXHZPS.Text := frmLLRKMXInPutMH_PBMX.MXHZPS.Text;
Self.MXHZKGQty.Text := frmLLRKMXInPutMH_PBMX.MXHZKGQty.Text;
Self.MXHZQty.Text := frmLLRKMXInPutMH_PBMX.MXHZQty.Text;
end;
end;
finally

View File

@ -1,25 +1,25 @@
object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
Left = 189
Top = 135
Left = 1038
Top = 596
Width = 1120
Height = 654
Caption = #22383#24067#26126#32454#30721#21333#24405#20837
Color = clBtnFace
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -19
Font.Height = -15
Font.Name = #23435#20307
Font.Style = []
OldCreateOrder = False
Position = poScreenCenter
OnClose = FormClose
OnShow = FormShow
PixelsPerInch = 120
TextHeight = 19
PixelsPerInch = 96
TextHeight = 15
object ToolBar1: TToolBar
Left = 0
Top = 0
Width = 1102
Width = 1112
Height = 30
ButtonHeight = 30
ButtonWidth = 79
@ -57,18 +57,19 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
Top = 0
Caption = #20445#23384
ImageIndex = 5
Wrap = True
OnClick = TBSaveClick
end
object Label19: TLabel
Left = 115
Top = 0
Width = 384
object Label21: TLabel
Left = 0
Top = 30
Width = 432
Height = 30
Caption = ' '
end
object labMYType: TLabel
Left = 499
Top = 0
Left = 432
Top = 30
Width = 180
Height = 30
Caption = #22383#24067#26126#32454#30721#21333
@ -79,16 +80,16 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
Font.Style = [fsBold]
ParentFont = False
end
object Label21: TLabel
Left = 679
Top = 0
Width = 432
object Label19: TLabel
Left = 612
Top = 30
Width = 384
Height = 30
Caption = ' '
end
object TBClose: TToolButton
Left = 1111
Top = 0
Left = 996
Top = 30
AutoSize = True
Caption = #20851#38381
ImageIndex = 21
@ -96,16 +97,16 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
end
end
object Panel16: TPanel
Left = 568
Top = 292
Width = 315
Height = 38
Left = 448
Top = 231
Width = 249
Height = 30
BevelOuter = bvNone
Caption = #27491#22312#20445#23384#25968#25454#65292#35831#31245#21518#12290#12290#12290
Color = clSkyBlue
Font.Charset = GB2312_CHARSET
Font.Color = clRed
Font.Height = -18
Font.Height = -15
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
@ -115,151 +116,21 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
object Panel6: TPanel
Left = 0
Top = 30
Width = 1102
Height = 579
Width = 1112
Height = 593
Align = alClient
BevelInner = bvRaised
BevelOuter = bvLowered
TabOrder = 2
object Panel8: TPanel
Left = 2
Top = 2
Width = 1098
Height = 46
Align = alTop
BevelInner = bvRaised
BevelOuter = bvLowered
Color = clSkyBlue
TabOrder = 0
object Label25: TLabel
Left = 424
Top = 9
Width = 71
Height = 27
Caption = #25968#37327':'
Font.Charset = GB2312_CHARSET
Font.Color = clBlack
Font.Height = -27
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label30: TLabel
Left = 547
Top = 9
Width = 28
Height = 27
Caption = #31859
Font.Charset = GB2312_CHARSET
Font.Color = clBlack
Font.Height = -27
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label35: TLabel
Left = 656
Top = 9
Width = 56
Height = 27
Caption = #20844#26020
Font.Charset = GB2312_CHARSET
Font.Color = clBlack
Font.Height = -27
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object BtnDel: TButton
Left = 282
Top = 3
Width = 82
Height = 42
Caption = #21024#38500
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -25
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 1
OnClick = BtnDelClick
end
object Button1: TButton
Left = 158
Top = 3
Width = 83
Height = 41
Caption = #22686#34892
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -25
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 0
OnClick = Button1Click
end
object Button5: TButton
Left = 655
Top = 64
Width = 84
Height = 42
Caption = #20445#23384
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -18
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 2
Visible = False
OnClick = Button5Click
end
object UnitM: TEdit
Left = 495
Top = 4
Width = 45
Height = 32
Color = clMenuBar
Font.Charset = GB2312_CHARSET
Font.Color = clBlack
Font.Height = -27
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
ReadOnly = True
TabOrder = 3
OnChange = UnitMChange
OnClick = UnitMClick
end
object UnitKg: TEdit
Left = 605
Top = 4
Width = 44
Height = 32
Color = clMenuBar
Font.Charset = GB2312_CHARSET
Font.Color = clBlack
Font.Height = -27
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
ReadOnly = True
TabOrder = 4
OnChange = UnitKgChange
OnClick = UnitKgClick
end
end
object cxGrid1: TcxGrid
Left = 2
Top = 48
Width = 1098
Height = 486
Top = 38
Width = 1108
Height = 519
Align = alClient
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -18
Font.Height = -15
Font.Name = #23435#20307
Font.Style = []
ParentFont = False
@ -660,246 +531,376 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
GridView = TV1
end
end
object Panel8: TPanel
Left = 2
Top = 2
Width = 1108
Height = 36
Align = alTop
BevelInner = bvRaised
BevelOuter = bvLowered
Color = clSkyBlue
TabOrder = 0
object Label25: TLabel
Left = 335
Top = 7
Width = 56
Height = 21
Caption = #25968#37327':'
Font.Charset = GB2312_CHARSET
Font.Color = clBlack
Font.Height = -21
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label30: TLabel
Left = 432
Top = 7
Width = 22
Height = 21
Caption = #31859
Font.Charset = GB2312_CHARSET
Font.Color = clBlack
Font.Height = -21
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label35: TLabel
Left = 518
Top = 7
Width = 44
Height = 21
Caption = #20844#26020
Font.Charset = GB2312_CHARSET
Font.Color = clBlack
Font.Height = -21
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object BtnDel: TButton
Left = 223
Top = 2
Width = 64
Height = 34
Caption = #21024#38500
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -20
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 1
OnClick = BtnDelClick
end
object Button1: TButton
Left = 125
Top = 2
Width = 65
Height = 33
Caption = #22686#34892
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -20
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 0
OnClick = Button1Click
end
object Button5: TButton
Left = 517
Top = 51
Width = 66
Height = 33
Caption = #20445#23384
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 2
Visible = False
OnClick = Button5Click
end
object UnitM: TEdit
Left = 391
Top = 3
Width = 35
Height = 35
Color = clMenuBar
Font.Charset = GB2312_CHARSET
Font.Color = clBlack
Font.Height = -21
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
ReadOnly = True
TabOrder = 3
OnChange = UnitMChange
OnClick = UnitMClick
end
object UnitKg: TEdit
Left = 478
Top = 3
Width = 34
Height = 35
Color = clMenuBar
Font.Charset = GB2312_CHARSET
Font.Color = clBlack
Font.Height = -21
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
ReadOnly = True
TabOrder = 4
OnChange = UnitKgChange
OnClick = UnitKgClick
end
end
object Panel10: TPanel
Left = 2
Top = 534
Width = 1098
Height = 43
Top = 557
Width = 1108
Height = 34
Align = alBottom
BevelInner = bvRaised
BevelOuter = bvLowered
Color = clSkyBlue
TabOrder = 2
object Label41: TLabel
Left = 18
Top = 12
Width = 105
Height = 20
Left = 14
Top = 9
Width = 85
Height = 16
Caption = #20844#26020#25968#22343#25968
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -20
Font.Height = -16
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label42: TLabel
Left = 222
Top = 12
Width = 84
Height = 20
Left = 175
Top = 9
Width = 68
Height = 16
Caption = #31859#25968#22343#25968
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -20
Font.Height = -16
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label4: TLabel
Left = 466
Top = 61
Width = 90
Height = 17
Left = 368
Top = 48
Width = 70
Height = 13
Caption = #26680#23545#25968#37327#65306
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label5: TLabel
Left = 619
Top = 61
Width = 18
Height = 17
Left = 489
Top = 48
Width = 14
Height = 13
Caption = #21305
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label29: TLabel
Left = 938
Top = 61
Width = 54
Height = 17
Left = 741
Top = 48
Width = 42
Height = 13
Caption = #37329#39069#65306
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label44: TLabel
Left = 757
Top = 61
Width = 18
Height = 17
Left = 598
Top = 48
Width = 14
Height = 13
Caption = #31859
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label49: TLabel
Left = 887
Top = 61
Width = 36
Height = 17
Left = 700
Top = 48
Width = 28
Height = 13
Caption = #20844#26020
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label9: TLabel
Left = 466
Top = 80
Width = 90
Height = 17
Left = 368
Top = 63
Width = 70
Height = 13
Caption = #25968#37327#23545#27604#65306
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label10: TLabel
Left = 619
Top = 80
Width = 18
Height = 17
Left = 489
Top = 63
Width = 14
Height = 13
Caption = #21305
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label17: TLabel
Left = 757
Top = 80
Width = 18
Height = 17
Left = 598
Top = 63
Width = 14
Height = 13
Caption = #31859
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label18: TLabel
Left = 887
Top = 80
Width = 36
Height = 17
Left = 700
Top = 63
Width = 28
Height = 13
Caption = #20844#26020
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label6: TLabel
Left = 938
Top = 80
Width = 54
Height = 17
Left = 741
Top = 63
Width = 42
Height = 13
Caption = #37329#39069#65306
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label31: TLabel
Left = 448
Top = 91
Width = 108
Height = 34
Left = 354
Top = 72
Width = 84
Height = 26
Caption = #30721#21333#24635#25968#37327#65306#13#10' ('#24405#20837')'
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label32: TLabel
Left = 619
Top = 93
Width = 18
Height = 17
Left = 489
Top = 73
Width = 14
Height = 13
Caption = #21305
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label28: TLabel
Left = 938
Top = 93
Width = 54
Height = 17
Left = 741
Top = 73
Width = 42
Height = 13
Caption = #37329#39069#65306
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label45: TLabel
Left = 757
Top = 93
Width = 18
Height = 17
Left = 598
Top = 73
Width = 14
Height = 13
Caption = #31859
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Label50: TLabel
Left = 887
Top = 93
Width = 36
Height = 17
Left = 700
Top = 73
Width = 28
Height = 13
Caption = #20844#26020
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object Button10: TButton
Left = 655
Top = 64
Width = 84
Height = 42
Left = 517
Top = 51
Width = 66
Height = 33
Caption = #20445#23384
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -18
Font.Height = -15
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
@ -908,14 +909,14 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
end
object KgQtyAvg: TEdit
Tag = 99
Left = 127
Top = 8
Width = 69
Height = 23
Left = 100
Top = 6
Width = 55
Height = 25
Color = clMenuBar
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
@ -924,14 +925,14 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
end
object QtyAvg: TEdit
Tag = 99
Left = 312
Top = 10
Width = 66
Height = 23
Left = 246
Top = 8
Width = 52
Height = 25
Color = clMenuBar
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
@ -940,14 +941,14 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
end
object MXHZPS: TEdit
Tag = 2
Left = 550
Top = 53
Width = 65
Height = 23
Left = 434
Top = 42
Width = 52
Height = 25
Color = clMenuBar
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
@ -955,14 +956,14 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
TabOrder = 3
end
object MXHZQty: TEdit
Left = 658
Top = 53
Width = 94
Height = 23
Left = 519
Top = 42
Width = 75
Height = 25
Color = clMenuBar
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
@ -970,14 +971,14 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
TabOrder = 4
end
object MXHZKgQty: TEdit
Left = 790
Top = 53
Width = 92
Height = 23
Left = 624
Top = 42
Width = 72
Height = 25
Color = clMenuBar
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
@ -986,27 +987,27 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
end
object MYHDMoney: TEdit
Tag = 2
Left = 988
Top = 53
Width = 95
Height = 23
Left = 780
Top = 42
Width = 75
Height = 25
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 6
end
object PSChaE: TEdit
Left = 550
Top = 72
Width = 65
Height = 23
Left = 434
Top = 57
Width = 52
Height = 25
Color = clMenuBar
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
@ -1014,14 +1015,14 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
TabOrder = 7
end
object QtyChaE: TEdit
Left = 658
Top = 72
Width = 94
Height = 23
Left = 519
Top = 57
Width = 75
Height = 25
Color = clMenuBar
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
@ -1029,14 +1030,14 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
TabOrder = 8
end
object KgQtyChaE: TEdit
Left = 790
Top = 72
Width = 92
Height = 23
Left = 624
Top = 57
Width = 72
Height = 25
Color = clMenuBar
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
@ -1045,13 +1046,13 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
end
object MoneyChaE: TEdit
Tag = 2
Left = 988
Top = 72
Width = 95
Height = 23
Left = 780
Top = 57
Width = 75
Height = 25
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
@ -1059,13 +1060,13 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
end
object PS: TEdit
Tag = 2
Left = 550
Top = 89
Width = 64
Height = 23
Left = 434
Top = 70
Width = 51
Height = 25
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
@ -1073,13 +1074,13 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
end
object Qty: TEdit
Tag = 2
Left = 657
Top = 88
Width = 94
Height = 23
Left = 519
Top = 69
Width = 74
Height = 25
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
@ -1087,13 +1088,13 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
end
object KgQty: TEdit
Tag = 2
Left = 790
Top = 89
Width = 92
Height = 23
Left = 624
Top = 70
Width = 72
Height = 25
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
@ -1101,13 +1102,13 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
end
object MYMDMoney: TEdit
Tag = 2
Left = 988
Top = 88
Width = 95
Height = 23
Left = 780
Top = 69
Width = 75
Height = 25
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -17
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
@ -1196,7 +1197,7 @@ object frmLLRKMXInPutMH_PBMX: TfrmLLRKMXInPutMH_PBMX
end
end
object cxStyleRepository1: TcxStyleRepository
PixelsPerInch = 120
PixelsPerInch = 96
object cxStyle1: TcxStyle
AssignedValues = [svFont]
Font.Charset = ANSI_CHARSET

View File

@ -14,7 +14,20 @@ uses
cxGridCustomPopupMenu, cxGridPopupMenu, cxGroupBox, cxCheckBox,
RM_Dataset, RM_System, RM_Common, RM_Class, RM_GridReport, Menus,
cxGridBandedTableView, cxGridDBBandedTableView, cxLookAndFeels,
cxLookAndFeelPainters, cxNavigator;
cxLookAndFeelPainters, 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;
type
TfrmLLRKMXInPutMH_PBMX = class(TForm)
@ -265,6 +278,7 @@ begin
sql.Add('select * from CK_MYSC_CR_MX where MXID='''+Trim(maxmxno)+'''');
Open;
end;
with ADOCmd do
begin
Append;
@ -277,6 +291,7 @@ begin
FieldByName('FillerCode').Value:=Trim(DCode);
Post;
end;
with ADOCmd do
begin
Close;
@ -285,6 +300,7 @@ begin
Parameters.ParamByName('MYID').Value:=Trim(FMainId);
ExecSQL;
end;
with ADOCmd do
begin
Close;
@ -304,6 +320,7 @@ begin
end;
end;
ClientDataSet1.EnableControls;
with ADOCmd do
begin
Close;

View File

@ -295,10 +295,11 @@ object frmPBCGRKList: TfrmPBCGRKList
Color = clSkyBlue
TabOrder = 1
object Label34: TLabel
Left = 239
Left = 15
Top = 13
Width = 80
Width = 96
Height = 15
Alignment = taRightJustify
Caption = #20379#24212#21830#31616#31216
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
@ -308,8 +309,8 @@ object frmPBCGRKList: TfrmPBCGRKList
ParentFont = False
end
object Label2: TLabel
Left = 36
Top = 13
Left = 360
Top = 45
Width = 32
Height = 15
Caption = #21697#21517
@ -321,10 +322,11 @@ object frmPBCGRKList: TfrmPBCGRKList
ParentFont = False
end
object Label1: TLabel
Left = 36
Top = 40
Width = 32
Left = 700
Top = 45
Width = 80
Height = 15
Alignment = taRightJustify
Caption = #22791#27880
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
@ -334,8 +336,8 @@ object frmPBCGRKList: TfrmPBCGRKList
ParentFont = False
end
object Label3: TLabel
Left = 239
Top = 40
Left = 15
Top = 45
Width = 96
Height = 15
Caption = #36827#20179#21333#20301#31616#31216
@ -347,7 +349,7 @@ object frmPBCGRKList: TfrmPBCGRKList
ParentFont = False
end
object Label4: TLabel
Left = 583
Left = 550
Top = 13
Width = 48
Height = 15
@ -360,8 +362,8 @@ object frmPBCGRKList: TfrmPBCGRKList
ParentFont = False
end
object Label5: TLabel
Left = 583
Top = 40
Left = 550
Top = 45
Width = 48
Height = 15
Caption = #37319#36141#20154
@ -373,8 +375,8 @@ object frmPBCGRKList: TfrmPBCGRKList
ParentFont = False
end
object Label6: TLabel
Left = 733
Top = 40
Left = 700
Top = 13
Width = 80
Height = 15
Caption = #22383#24067#32852#31995#21495
@ -386,7 +388,7 @@ object frmPBCGRKList: TfrmPBCGRKList
ParentFont = False
end
object Label7: TLabel
Left = 775
Left = 360
Top = 13
Width = 32
Height = 15
@ -426,13 +428,13 @@ object frmPBCGRKList: TfrmPBCGRKList
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 8
TabOrder = 6
end
object Note: TEdit
Tag = 2
Left = 70
Top = 36
Width = 141
Left = 789
Top = 41
Width = 140
Height = 23
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
@ -440,7 +442,7 @@ object frmPBCGRKList: TfrmPBCGRKList
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 4
TabOrder = 3
OnChange = CustomerNoNameChange
end
object CheckBox1: TCheckBox
@ -460,33 +462,9 @@ object frmPBCGRKList: TfrmPBCGRKList
TabOrder = 2
OnClick = CheckBox1Click
end
object JCDanWeiJC: TEdit
Tag = 2
Left = 339
Top = 36
Width = 118
Height = 23
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 5
OnChange = CustomerNoNameChange
end
object Button1: TButton
Left = 458
Top = 35
Width = 27
Height = 24
Caption = '...'
TabOrder = 3
OnClick = Button1Click
end
object filler: TEdit
Tag = 2
Left = 635
Left = 607
Top = 9
Width = 84
Height = 23
@ -501,8 +479,8 @@ object frmPBCGRKList: TfrmPBCGRKList
end
object JCKHNo: TEdit
Tag = 2
Left = 485
Top = 36
Left = 269
Top = 41
Width = 82
Height = 23
Font.Charset = GB2312_CHARSET
@ -511,13 +489,13 @@ object frmPBCGRKList: TfrmPBCGRKList
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 6
TabOrder = 4
OnChange = CustomerNoNameChange
end
object CGName: TEdit
Tag = 2
Left = 635
Top = 36
Left = 607
Top = 41
Width = 84
Height = 23
Font.Charset = GB2312_CHARSET
@ -526,29 +504,29 @@ object frmPBCGRKList: TfrmPBCGRKList
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 5
OnChange = CustomerNoNameChange
end
object PBBatchNo: TEdit
Tag = 2
Left = 789
Top = 9
Width = 140
Height = 23
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 7
OnChange = CustomerNoNameChange
end
object PBBatchNo: TEdit
Tag = 2
Left = 808
Top = 36
Width = 122
Height = 23
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -15
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 9
OnChange = CustomerNoNameChange
end
object MYCode: TEdit
Tag = 2
Left = 808
Left = 401
Top = 9
Width = 121
Width = 140
Height = 23
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
@ -556,13 +534,13 @@ object frmPBCGRKList: TfrmPBCGRKList
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 10
TabOrder = 8
OnChange = CustomerNoNameChange
end
object MYName: TComboBox
Tag = 2
Left = 72
Top = 6
Left = 401
Top = 41
Width = 140
Height = 23
Color = clScrollBar
@ -573,13 +551,13 @@ object frmPBCGRKList: TfrmPBCGRKList
Font.Style = [fsBold]
ItemHeight = 15
ParentFont = False
TabOrder = 11
TabOrder = 9
OnChange = CustomerNoNameChange
end
object KHNameJC: TComboBox
Tag = 2
Left = 340
Top = 6
Left = 120
Top = 9
Width = 140
Height = 23
Color = clScrollBar
@ -590,13 +568,13 @@ object frmPBCGRKList: TfrmPBCGRKList
Font.Style = [fsBold]
ItemHeight = 15
ParentFont = False
TabOrder = 12
TabOrder = 10
OnChange = KHNameJCChange
end
object KHNo: TEdit
Tag = 2
Left = 486
Top = 8
Left = 269
Top = 9
Width = 82
Height = 23
Font.Charset = GB2312_CHARSET
@ -605,9 +583,26 @@ object frmPBCGRKList: TfrmPBCGRKList
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 13
TabOrder = 11
OnChange = CustomerNoNameChange
end
object JCDanWeiJC: TBtnEditA
Tag = 2
Left = 120
Top = 40
Width = 140
Height = 25
Enabled = False
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -16
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 12
OnChange = CustomerNoNameChange
OnBtnClick = JCDanWeiJCBtnClick
end
end
object Panel3: TPanel
Left = 687

View File

@ -73,8 +73,6 @@ type
v1MYMDMoney: TcxGridDBColumn;
v1JCDanWeiJC: TcxGridDBColumn;
Label3: TLabel;
JCDanWeiJC: TEdit;
Button1: TButton;
v1filler: TcxGridDBColumn;
Label4: TLabel;
filler: TEdit;
@ -139,6 +137,7 @@ type
ADOQuery1: TADOQuery;
ADOQuery2: TADOQuery;
KHNo: TEdit;
JCDanWeiJC: TBtnEditA;
procedure FormDestroy(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormCreate(Sender: TObject);
@ -167,6 +166,7 @@ type
procedure ToRCNameBtnClick(Sender: TObject);
procedure N5Click(Sender: TObject);
procedure KHNameJCChange(Sender: TObject);
procedure JCDanWeiJCBtnClick(Sender: TObject);
private
canshu1: string;
DQdate: TDateTime;
@ -768,6 +768,7 @@ begin
if ShowModal = 1 then
begin
Self.JCDanWeiJC.Text := Trim(frmGYSList.Order_Main.fieldbyname('KHNameJC').AsString);
Self.JCKHNo.Text := Trim(frmGYSList.Order_Main.fieldbyname('KHNo').AsString);
TBFind.Click;
end;
end;
@ -1348,5 +1349,25 @@ begin
KHNo.Text := Trim(ADOQuery2.fieldbyname('KHNo').AsString);
end;
procedure TfrmPBCGRKList.JCDanWeiJCBtnClick(Sender: TObject);
begin
try
frmGYSList := TfrmGYSList.Create(Application);
with frmGYSList do
begin
KHType.Text := 'Ⱦ³§';
KHType.TxtCode := 'Ⱦ³§';
if ShowModal = 1 then
begin
Self.JCDanWeiJC.Text := Trim(frmGYSList.Order_Main.fieldbyname('KHNameJC').AsString);
Self.JCKHNo.Text := Trim(frmGYSList.Order_Main.fieldbyname('KHNo').AsString);
TBFind.Click;
end;
end;
finally
frmGYSList.Free;
end;
end;
end.

View File

@ -675,6 +675,161 @@ object frmZHCPInPut: TfrmZHCPInPut
Visible = False
OnDblClick = Image2DblClick
end
object Panel12: TPanel
Left = 22
Top = 55
Width = 201
Height = 88
TabOrder = 0
Visible = False
object Label32: TLabel
Left = 8
Top = 31
Width = 52
Height = 12
Caption = #25991#20214#21517#31216
Font.Charset = GB2312_CHARSET
Font.Color = clBlack
Font.Height = -12
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
end
object btn1: TButton
Left = 9
Top = 55
Width = 51
Height = 26
Caption = #26159
Font.Charset = GB2312_CHARSET
Font.Color = clBlack
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 2
OnClick = Button2Click
end
object Panel13: TPanel
Left = 1
Top = 1
Width = 199
Height = 20
Align = alTop
Alignment = taLeftJustify
BevelOuter = bvNone
Caption = ' '#26159#21542#26356#25913#25991#20214#21517#31216'?'
Color = clSkyBlue
Font.Charset = GB2312_CHARSET
Font.Color = clRed
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 0
object img1: TImage
Left = 175
Top = 2
Width = 22
Height = 18
ParentShowHint = False
Picture.Data = {
07544269746D617076040000424D760400000000000036000000280000001500
0000110000000100180000000000400400000000000000000000000000000000
0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FF00FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FF00FFFFFFFFFFFFF0CAA6F0CAA6F0CAA6F0CAA6F0CAA6F0CAA6F0CAA6F0CAA6
F0CAA6F0CAA6F0CAA6F0CAA6F0CAA6F0CAA6F0CAA6F0CAA6F0CAA6FFFFFFFFFF
FF00FFFFFFFFFFFF404040404040404040404040404040404040404040404040
404040404040404040404040404040404040404040404040F0CAA6FFFFFFFFFF
FF00FFFFFFFFFFFFFFFFFF808080808080808080808080808080808080808080
808080808080808080808080808080808080808080404040F0CAA6FFFFFFFFFF
FF00FFFFFFFFFFFFFFFFFFC8D0D4C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4
C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4808080404040F0CAA6FFFFFFFFFF
FF00FFFFFFFFFFFFFFFFFFC8D0D4C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4
C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4808080404040F0CAA6FFFFFFFFFF
FF00FFFFFFFFFFFFFFFFFFC8D0D4C8D0D4C8D0D4000000000000C8D0D4C8D0D4
C8D0D4C8D0D4000000000000C8D0D4C8D0D4808080404040F0CAA6FFFFFFFFFF
FF00FFFFFFFFFFFFFFFFFFC8D0D4C8D0D4C8D0D4C8D0D4000000000000C8D0D4
C8D0D4000000000000C8D0D4C8D0D4C8D0D4808080404040F0CAA6FFFFFFFFFF
FF00FFFFFFFFFFFFFFFFFFC8D0D4C8D0D4C8D0D4C8D0D4C8D0D4000000000000
000000000000C8D0D4C8D0D4C8D0D4C8D0D4808080404040F0CAA6FFFFFFFFFF
FF00FFFFFFFFFFFFFFFFFFC8D0D4C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4000000
000000C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4808080404040F0CAA6FFFFFFFFFF
FF00FFFFFFFFFFFFFFFFFFC8D0D4C8D0D4C8D0D4C8D0D4C8D0D4000000000000
000000000000C8D0D4C8D0D4C8D0D4C8D0D4808080404040F0CAA6FFFFFFFFFF
FF00FFFFFFFFFFFFFFFFFFC8D0D4C8D0D4C8D0D4C8D0D4000000000000C8D0D4
C8D0D4000000000000C8D0D4C8D0D4C8D0D4808080404040F0CAA6FFFFFFFFFF
FF00FFFFFFFFFFFFFFFFFFC8D0D4C8D0D4C8D0D4000000000000C8D0D4C8D0D4
C8D0D4C8D0D4000000000000C8D0D4C8D0D4808080404040F0CAA6FFFFFFFFFF
FF00FFFFFFFFFFFFFFFFFFC8D0D4C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4
C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4808080404040F0CAA6FFFFFFFFFF
FF00FFFFFFFFFFFFFFFFFFC8D0D4C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4
C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4C8D0D4808080404040F0CAA6FFFFFFFFFF
FF00FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FF00}
ShowHint = True
Transparent = True
end
end
object WJName: TEdit
Left = 61
Top = 28
Width = 134
Height = 20
Font.Charset = GB2312_CHARSET
Font.Color = clBlack
Font.Height = -12
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 1
end
object btn2: TButton
Left = 141
Top = 55
Width = 49
Height = 25
Caption = #21542
Font.Charset = GB2312_CHARSET
Font.Color = clBlack
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 4
end
object WJPach: TEdit
Left = 83
Top = 185
Width = 285
Height = 28
Font.Charset = GB2312_CHARSET
Font.Color = clWindowText
Font.Height = -20
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 5
end
object btn3: TButton
Left = 76
Top = 55
Width = 50
Height = 25
Caption = #30830#23450
Font.Charset = GB2312_CHARSET
Font.Color = clBlack
Font.Height = -13
Font.Name = #23435#20307
Font.Style = [fsBold]
ParentFont = False
TabOrder = 3
end
end
end
object Panel2: TPanel
Left = 258
@ -1006,26 +1161,26 @@ object frmZHCPInPut: TfrmZHCPInPut
Connection = DataLink_MYSC.ADOLink
LockType = ltReadOnly
Parameters = <>
Left = 584
Top = 5
Left = 773
Top = 317
end
object ADOCmd: TADOQuery
Connection = DataLink_MYSC.ADOLink
Parameters = <>
Left = 552
Top = 5
Left = 621
Top = 317
end
object ADOQuery1: TADOQuery
Connection = DataLink_MYSC.ADOLink
Parameters = <>
Left = 728
Top = 5
Left = 659
Top = 317
end
object CDS_PRT: TClientDataSet
Aggregates = <>
Params = <>
Left = 700
Top = 6
Left = 621
Top = 355
end
object RM1: TRMGridReport
ThreadPrepareReport = True
@ -1044,43 +1199,43 @@ object frmZHCPInPut: TfrmZHCPInPut
CompressThread = False
LaterBuildEvents = True
OnlyOwnerDataSet = False
Left = 757
Top = 5
Left = 773
Top = 355
ReportData = {}
end
object ODPat: TOpenDialog
Options = [ofReadOnly, ofAllowMultiSelect, ofPathMustExist, ofFileMustExist, ofEnableSizing]
Left = 484
Top = 5
Left = 697
Top = 355
end
object IdFTP1: TIdFTP
MaxLineAction = maException
ReadTimeout = 0
ProxySettings.ProxyType = fpcmNone
ProxySettings.Port = 0
Left = 517
Top = 4
Left = 659
Top = 355
end
object SaveDialog1: TSaveDialog
Left = 457
Top = 5
Left = 621
Top = 393
end
object adoqueryPicture: TADOQuery
Connection = DataLink_MYSC.ADOLink
Parameters = <>
Left = 615
Top = 5
Left = 735
Top = 317
end
object RMDBMain: TRMDBDataSet
Visible = True
DataSet = CDS_PRT
Left = 657
Top = 5
Left = 735
Top = 355
end
object ADOQueryCmd: TADOQuery
Connection = DataLink_MYSC.ADOLink
Parameters = <>
Left = 208
Top = 208
Left = 697
Top = 317
end
end

View File

@ -104,6 +104,15 @@ type
TSHGYCB: TEdit;
Label31: TLabel;
CPSSL: TEdit;
Panel12: TPanel;
Label32: TLabel;
btn1: TButton;
Panel13: TPanel;
img1: TImage;
WJName: TEdit;
btn2: TButton;
WJPach: TEdit;
btn3: TButton;
procedure TBCloseClick(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure TBSaveClick(Sender: TObject);