1
This commit is contained in:
parent
a68893445e
commit
25211fde53
|
|
@ -47,8 +47,8 @@ uses
|
|||
U_ZSDSelist in 'U_ZSDSelist.pas' {frmZSDSelist},
|
||||
U_PBKCList in 'U_PBKCList.pas' {frmPBKCList},
|
||||
U_JGCKListSel in 'U_JGCKListSel.pas' {frmJJGCKListSel},
|
||||
U_JGCKInPut in 'U_JGCKInPut.pas' {frmJGCKInPut},
|
||||
U_JGCKList in 'U_JGCKList.pas' {frmJGCKList},
|
||||
U_LLCKInPut in 'U_LLCKInPut.pas' {frmLLCKInPut},
|
||||
U_LLCKList in 'U_LLCKList.pas' {frmLLCKList},
|
||||
U_MLSCDXZ in 'U_MLSCDXZ.pas' {frmmlscdxz},
|
||||
U_ZSDXZ in 'U_ZSDXZ.pas' {frmzsdxz};
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ uses
|
|||
U_MJManageNewFDNew_New, U_JYJT_New, U_MainWFBCKList, U_MianWFBKCList,
|
||||
U_MPDRKList, U_PBKCList, U_JGCKList, U_PBRKMX, U_MCGCKList, U_MCGKCList,
|
||||
U_CGCX, U_MLSC, U_MLX, U_MCP, U_MCGKCListNew, U_MPZKCListNew, U_MPDRKListNew,
|
||||
U_MPDCKListNew, U_NameDY;
|
||||
U_MPDCKListNew, U_NameDY, U_LLCKList, U_LLKCList;
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// 功能说明:取Dll中得窗体 //
|
||||
|
|
@ -46,7 +46,6 @@ var
|
|||
frmMCGRKListOld, frmMCGRKListNew: TfrmMCGRKList;
|
||||
frmMCPGL, frmMCPLR: TfrmMCP;
|
||||
|
||||
|
||||
function GetDllForm(App: Tapplication; FormH: hwnd; FormID: integer; Language: integer; WinStyle: integer; GCode: Pchar; GName: Pchar; DataBase: Pchar; Title: PChar; Parameters1: PChar; Parameters2: PChar; Parameters3: PChar; Parameters4: PChar; Parameters5: PChar; Parameters6: PChar; Parameters7: PChar; Parameters8: PChar; Parameters9: PChar; Parameters10: PChar; DataBaseStr: PChar): hwnd;
|
||||
var
|
||||
i: Integer;
|
||||
|
|
@ -513,6 +512,46 @@ begin
|
|||
mnewHandle := frmLLRKList.Handle;
|
||||
end;
|
||||
|
||||
23: //客户来料出库
|
||||
begin
|
||||
if frmLLCKList = nil then
|
||||
begin
|
||||
frmLLCKList := TfrmLLCKList.Create(application.MainForm);
|
||||
with frmLLCKList do
|
||||
begin
|
||||
caption := Trim(Title);
|
||||
FormStyle := mstyle;
|
||||
windowState := mstate;
|
||||
BorderStyle := mborderstyle;
|
||||
//show;
|
||||
end;
|
||||
end
|
||||
else
|
||||
frmLLCKList.BringToFront;
|
||||
//句柄
|
||||
mnewHandle := frmLLCKList.Handle;
|
||||
end;
|
||||
|
||||
24: //客户来料库存
|
||||
begin
|
||||
if frmLLKCList = nil then
|
||||
begin
|
||||
frmLLKCList := TfrmLLKCList.Create(application.MainForm);
|
||||
with frmLLKCList do
|
||||
begin
|
||||
caption := Trim(Title);
|
||||
FormStyle := mstyle;
|
||||
windowState := mstate;
|
||||
BorderStyle := mborderstyle;
|
||||
//show;
|
||||
end;
|
||||
end
|
||||
else
|
||||
frmLLKCList.BringToFront;
|
||||
//句柄
|
||||
mnewHandle := frmLLKCList.Handle;
|
||||
end;
|
||||
|
||||
21: //外加工入库
|
||||
begin
|
||||
if frmLLRKList_WJG = nil then
|
||||
|
|
|
|||
1039
云翔生产管理(MYSC.dll)/U_LLCKInPut.dfm
Normal file
1039
云翔生产管理(MYSC.dll)/U_LLCKInPut.dfm
Normal file
File diff suppressed because it is too large
Load Diff
883
云翔生产管理(MYSC.dll)/U_LLCKInPut.pas
Normal file
883
云翔生产管理(MYSC.dll)/U_LLCKInPut.pas
Normal file
|
|
@ -0,0 +1,883 @@
|
|||
unit U_LLCKInPut;
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
||||
Dialogs, cxStyles, cxCustomData, cxGraphics, cxFilter, cxData, cxDataStorage,
|
||||
cxEdit, DB, cxDBData, cxGridLevel, cxGridCustomTableView, cxGridTableView,
|
||||
cxGridDBTableView, cxClasses, cxControls, cxGridCustomView, cxGrid, cxMemo,
|
||||
cxRichEdit, ComCtrls, cxContainer, cxTextEdit, cxMaskEdit, cxButtonEdit,
|
||||
StdCtrls, ToolWin, DBClient, ADODB, ExtCtrls, BtnEdit, cxCalendar, StrUtils,
|
||||
cxDropDownEdit, jpeg, IdBaseComponent, IdComponent, IdTCPConnection,
|
||||
IdTCPClient, IdFTP, cxPC, cxGridCustomPopupMenu, cxGridPopupMenu, cxGroupBox,
|
||||
cxCheckBox, RM_Dataset, RM_System, RM_Common, RM_Class, RM_GridReport,
|
||||
IniFiles, Menus, ImgList, ShellAPI, cxGridBandedTableView,
|
||||
cxGridDBBandedTableView, cxLookAndFeels, 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
|
||||
TfrmLLCKInPut = class(TForm)
|
||||
ToolBar1: TToolBar;
|
||||
TBClose: TToolButton;
|
||||
ADOTemp: TADOQuery;
|
||||
ADOCmd: TADOQuery;
|
||||
ADOQuery1: TADOQuery;
|
||||
TBSave: TToolButton;
|
||||
DataSource1: TDataSource;
|
||||
ClientDataSet1: TClientDataSet;
|
||||
Label26: TLabel;
|
||||
Panel3: TPanel;
|
||||
labMYType: TLabel;
|
||||
Panel4: TPanel;
|
||||
Label13: TLabel;
|
||||
CRTime: TDateTimePicker;
|
||||
Panel5: TPanel;
|
||||
Label31: TLabel;
|
||||
Label32: TLabel;
|
||||
PS: TEdit;
|
||||
Qty: TEdit;
|
||||
KgQty: TEdit;
|
||||
Panel7: TPanel;
|
||||
Panel1: TPanel;
|
||||
Label20: TLabel;
|
||||
PTID: TEdit;
|
||||
Label23: TLabel;
|
||||
MYPrice: TEdit;
|
||||
Label24: TLabel;
|
||||
PopupMenu2: TPopupMenu;
|
||||
MenuItem1: TMenuItem;
|
||||
N3: TMenuItem;
|
||||
MenuItem2: TMenuItem;
|
||||
N4: TMenuItem;
|
||||
ImageList1: TImageList;
|
||||
ADOQueryCmd: TADOQuery;
|
||||
ADOQueryTmp: TADOQuery;
|
||||
ADOQuery2: TADOQuery;
|
||||
Label45: TLabel;
|
||||
Label50: TLabel;
|
||||
ADOQueryTemp: TADOQuery;
|
||||
cxStyleRepository1: TcxStyleRepository;
|
||||
cxStyle1: TcxStyle;
|
||||
Label33: TLabel;
|
||||
GYSName: TBtnEditA;
|
||||
Label22: TLabel;
|
||||
MYName: TEdit;
|
||||
Label12: TLabel;
|
||||
Label14: TLabel;
|
||||
Label15: TLabel;
|
||||
Label16: TLabel;
|
||||
MYKZ: TEdit;
|
||||
MYMF: TEdit;
|
||||
Label2: TLabel;
|
||||
Label11: TLabel;
|
||||
MYHX: TEdit;
|
||||
MYColor: TEdit;
|
||||
Label4: TLabel;
|
||||
MYColorNo: TEdit;
|
||||
Label43: TLabel;
|
||||
MDMFlag: TCheckBox;
|
||||
MDKGFlag: TCheckBox;
|
||||
Label1: TLabel;
|
||||
Note: TEdit;
|
||||
Label3: TLabel;
|
||||
ToGYSName: TBtnEditA;
|
||||
Panel2: TPanel;
|
||||
Panel6: TPanel;
|
||||
Label5: TLabel;
|
||||
KHNameJC: TBtnEditA;
|
||||
Label8: TLabel;
|
||||
MLConNo: TEdit;
|
||||
Label10: TLabel;
|
||||
Label17: TLabel;
|
||||
PBBatchNo: TEdit;
|
||||
MLOrderNo: TcxButtonEdit;
|
||||
Panel8: TPanel;
|
||||
Panel9: TPanel;
|
||||
cxGrid1: TcxGrid;
|
||||
Tv1: TcxGridDBTableView;
|
||||
v1Column11: TcxGridDBColumn;
|
||||
cxGrid1Level1: TcxGridLevel;
|
||||
Label18: TLabel;
|
||||
Label19: TLabel;
|
||||
Edit1: TEdit;
|
||||
Tv1Column1: TcxGridDBColumn;
|
||||
Tv1Column2: TcxGridDBColumn;
|
||||
ToolButton1: TToolButton;
|
||||
procedure TBCloseClick(Sender: TObject);
|
||||
procedure FormShow(Sender: TObject);
|
||||
procedure TBSaveClick(Sender: TObject);
|
||||
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||
procedure MDMFlagClick(Sender: TObject);
|
||||
procedure MDKGFlagClick(Sender: TObject);
|
||||
procedure GYSNameBtnClick(Sender: TObject);
|
||||
procedure ToGYSNameBtnClick(Sender: TObject);
|
||||
procedure KHNameJCBtnClick(Sender: TObject);
|
||||
procedure MLOrderNoPropertiesButtonClick(Sender: TObject; AButtonIndex: Integer);
|
||||
procedure Edit1KeyPress(Sender: TObject; var Key: Char);
|
||||
procedure Tv1CellDblClick(Sender: TcxCustomGridTableView; ACellViewInfo: TcxGridTableDataCellViewInfo; AButton: TMouseButton; AShift: TShiftState; var AHandled: Boolean);
|
||||
procedure ToolButton1Click(Sender: TObject);
|
||||
private
|
||||
procedure InitData();
|
||||
function SaveData(): Boolean;
|
||||
function YFData(): Boolean;
|
||||
procedure InitDataSel(FFMYID: string);
|
||||
{ Private declarations }
|
||||
public
|
||||
canshu1: string;
|
||||
PState, CopyInt: Integer;
|
||||
FMainId: string;
|
||||
FRead: string;
|
||||
FMYType, FMYTypeFlag, FML, FNewMainId, FNewSubid: string;
|
||||
{ Public declarations }
|
||||
end;
|
||||
|
||||
var
|
||||
frmLLCKInPut: TfrmLLCKInPut;
|
||||
|
||||
implementation
|
||||
|
||||
uses
|
||||
U_DataLink, U_ZDYHelp, U_RTFun, U_GYSList, U_OrderListSel, U_PBCGRKListSel,
|
||||
U_OrderMXSelist, U_JGCKListSel;
|
||||
|
||||
{$R *.dfm}
|
||||
function TfrmLLCKInPut.YFData(): Boolean;
|
||||
var
|
||||
CRID, OrdMainId, YFID, FComTaiTou, FCRID, FFactoryName, FFactoryNo: string;
|
||||
begin
|
||||
Result := False;
|
||||
FFactoryName := Trim(GYSName.Text);
|
||||
FFactoryNo := Trim(GYSName.TxtCode);
|
||||
with ADOQueryTemp do
|
||||
begin
|
||||
Close;
|
||||
SQL.Clear;
|
||||
sql.Add('select * from YS_Money_KC where FactoryNo=' + quotedstr(Trim(FFactoryNo)));
|
||||
sql.Add(' and KCType=''GYS'' ');
|
||||
Open;
|
||||
end;
|
||||
if ADOQueryTemp.IsEmpty = False then
|
||||
begin
|
||||
CRID := ADOQueryTemp.fieldbyname('CRID').AsString;
|
||||
end
|
||||
else
|
||||
begin
|
||||
with ADOQueryTemp do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('select * from YS_Money_CRID');
|
||||
Open;
|
||||
end;
|
||||
if ADOQueryTemp.IsEmpty = False then
|
||||
begin
|
||||
with ADOQueryCmd do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('Update YS_Money_CRID set CRID=CRID+1');
|
||||
sql.Add('select * from YS_Money_CRID ');
|
||||
Open;
|
||||
end;
|
||||
end
|
||||
else
|
||||
begin
|
||||
with ADOQueryCmd do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('insert into YS_Money_CRID select 0 ');
|
||||
sql.Add('select * from YS_Money_CRID ');
|
||||
Open;
|
||||
end;
|
||||
end;
|
||||
|
||||
CRID := ADOQueryCmd.fieldbyname('CRID').AsString;
|
||||
with ADOQueryCmd do
|
||||
begin
|
||||
Close;
|
||||
SQL.Clear;
|
||||
sql.Add('select * from YS_Money_KC where 1=2');
|
||||
Open;
|
||||
end;
|
||||
with ADOQueryCmd do
|
||||
begin
|
||||
Append;
|
||||
FieldByName('CRID').Value := StrToInt(CRID);
|
||||
FieldByName('FactoryName').Value := Trim(FFactoryName);
|
||||
FieldByName('FactoryNo').Value := Trim(FFactoryNo);
|
||||
FieldByName('ZdyStr1').Value := '应付付';
|
||||
FieldByName('KCType').Value := 'GYS';
|
||||
Post;
|
||||
end;
|
||||
end;
|
||||
with ADOQueryTemp do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('select * from YS_Money_CR where FactoryNo=' + quotedstr(Trim(FFactoryNo)));
|
||||
sql.Add(' and YFTypeId=''' + Trim(FMainId) + '''');
|
||||
Open;
|
||||
end;
|
||||
if ADOQueryTemp.IsEmpty then
|
||||
begin
|
||||
if GetLSNo(ADOQueryCmd, YFID, 'JG', 'YS_Money_CR', 4, 1) = False then
|
||||
begin
|
||||
Application.MessageBox('取应付最大号失败!', '提示', 0);
|
||||
Exit;
|
||||
end;
|
||||
end
|
||||
else
|
||||
begin
|
||||
YFID := Trim(ADOQueryTemp.fieldbyname('YFID').AsString);
|
||||
end;
|
||||
with ADOQueryCmd do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('select * from YS_Money_CR where YFID=''' + Trim(YFID) + '''');
|
||||
Open;
|
||||
end;
|
||||
with ADOQueryCmd do
|
||||
begin
|
||||
if ADOQueryTemp.IsEmpty then
|
||||
begin
|
||||
Append;
|
||||
FieldByName('SCQty').Value := strtofloatdef(Qty.text, 0);
|
||||
FieldByName('SCPS').Value := strtofloatdef(PS.text, 0);
|
||||
end
|
||||
else
|
||||
Edit;
|
||||
FieldByName('YFID').Value := Trim(YFID);
|
||||
FieldByName('YFTypeId').Value := Trim(FMainid);
|
||||
FieldByName('CRID').Value := StrToInt(CRID);
|
||||
FieldByName('YFName').Value := '加工费';
|
||||
FieldByName('Filler').Value := Trim(DName);
|
||||
FieldByName('CRType').Value := '应付款登记';
|
||||
FieldByName('CRFlag').Value := '应付付';
|
||||
FieldByName('ChkStatusP').Value := '未审核';
|
||||
FieldByName('ChkStatusQ').Value := '未审核';
|
||||
FieldByName('QtyFlag').Value := 1;
|
||||
FieldByName('FactoryName').Value := Trim(FFactoryName);
|
||||
FieldByName('FactoryNo').Value := Trim(FFactoryNo);
|
||||
FieldByName('CRTime').Value := CRTime.Date;
|
||||
if MDMFlag.Checked = True then
|
||||
begin
|
||||
FieldByName('Qty').Value := Strtofloatdef(Qty.text, 0);
|
||||
FieldByName('QtyUnit').Value := 'M';
|
||||
end
|
||||
else
|
||||
begin
|
||||
FieldByName('Qty').Value := Strtofloatdef(KGQty.text, 0);
|
||||
FieldByName('QtyUnit').Value := 'KG';
|
||||
end;
|
||||
FieldByName('PS').Value := Strtofloatdef(PS.text, 0);
|
||||
FieldByName('YFType').Value := '自动生成';
|
||||
|
||||
FieldByName('CKNO').Value := trim(FMainid);
|
||||
FieldByName('SJQty').Value := Strtofloatdef(Qty.text, 0);
|
||||
FieldByName('MiQty').Value := Strtofloatdef(Qty.text, 0);
|
||||
FieldByName('KGQty').Value := Strtofloatdef(KGQty.text, 0);
|
||||
FieldByName('P_CodeName').Value := Trim(MYName.text);
|
||||
FieldByName('P_MF').Value := Trim(MYMF.text);
|
||||
FieldByName('P_KZ').Value := Trim(MYKZ.Text);
|
||||
FieldByName('P_Color').Value := Trim(MYColor.Text);
|
||||
FieldByName('P_ColorNo').Value := Trim(MYColorNo.Text);
|
||||
FieldByName('P_HX').Value := Trim(MYHX.Text);
|
||||
FieldByName('BZType').Value := '¥';
|
||||
FieldByName('status').Value := '0';
|
||||
Post;
|
||||
end;
|
||||
with ADOQueryCmd do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('Update YS_Money_KC Set KCMoney=(select isnull(Sum(HSMoney*QtyFlag),0) from YS_Money_CR A where A.CRID=YS_Money_KC.CRID)');
|
||||
sql.Add(' where CRID=' + CRID);
|
||||
ExecSQL;
|
||||
end;
|
||||
Result := True;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKInPut.TBCloseClick(Sender: TObject);
|
||||
begin
|
||||
Close;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKInPut.InitData();
|
||||
begin
|
||||
with ADOQuery1 do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add(' select A.*,KM.KHNameJC,B.MLConNo,B.MLOrderNo ');
|
||||
sql.Add(' from CK_MYSC_CR A ');
|
||||
sql.Add(' left join ML_OrderMainNew B on A.MainId=B.NewMLID');
|
||||
sql.Add(' left join KH_Main KM on KM.KHNO=B.KHNO ');
|
||||
sql.Add(' where MYID=''' + Trim(FMainId) + '''');
|
||||
Open;
|
||||
end;
|
||||
SCSHDataNew(ADOQuery1, Panel4, 2);
|
||||
SCSHDataNew(ADOQuery1, Panel5, 2);
|
||||
SCSHDataNew(ADOQuery1, Panel4, 0);
|
||||
MDMFlag.Checked := ADOQuery1.FieldByName('MDMflag').AsBoolean;
|
||||
MDKGFlag.Checked := ADOQuery1.FieldByName('MDKGFlag').AsBoolean;
|
||||
FNewMainId := Trim(ADOQuery1.fieldbyname('MainId').AsString);
|
||||
FNewSubid := Trim(ADOQuery1.fieldbyname('SubId').AsString);
|
||||
if PState = 0 then
|
||||
begin
|
||||
CRTime.Date := SGetServerDate(ADOTemp);
|
||||
end;
|
||||
with ADOQuery1 do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('select * from CK_MYSC_CR_MX where MYID=''' + Trim(FMainId) + '''');
|
||||
open;
|
||||
end;
|
||||
SCreateCDS20(ADOQuery1, ClientDataSet1);
|
||||
SInitCDSData20(ADOQuery1, ClientDataSet1);
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKInPut.InitDataSel(FFMYID: string);
|
||||
begin
|
||||
with ADOQuery1 do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add(' select A.*,KM.KHNameJC,B.MLConNo,B.MLOrderNo ');
|
||||
sql.Add(' from CK_MYSC_CR A ');
|
||||
sql.Add(' left join ML_OrderMainNew B on A.MainId=B.NewMLID');
|
||||
sql.Add(' left join KH_Main KM on KM.KHNO=B.KHNO ');
|
||||
sql.Add(' where MYID=''' + Trim(FFMYID) + '''');
|
||||
Open;
|
||||
end;
|
||||
SCSHDataNew(ADOQuery1, Panel4, 2);
|
||||
SCSHDataNew(ADOQuery1, Panel5, 2);
|
||||
SCSHDataNew(ADOQuery1, Panel4, 0);
|
||||
MDMFlag.Checked := ADOQuery1.FieldByName('MDMflag').AsBoolean;
|
||||
MDKGFlag.Checked := ADOQuery1.FieldByName('MDKGFlag').AsBoolean;
|
||||
FNewMainId := Trim(ADOQuery1.fieldbyname('MainId').AsString);
|
||||
FNewSubid := Trim(ADOQuery1.fieldbyname('SubId').AsString);
|
||||
CRTime.Date := SGetServerDate(ADOTemp);
|
||||
with ADOQuery1 do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('select * from CK_MYSC_CR_MX where MYID=''' + Trim(FFMYID) + '''');
|
||||
open;
|
||||
end;
|
||||
SCreateCDS20(ADOQuery1, ClientDataSet1);
|
||||
SInitCDSData20(ADOQuery1, ClientDataSet1);
|
||||
with ClientDataSet1 do
|
||||
begin
|
||||
First;
|
||||
while not Eof do
|
||||
begin
|
||||
edit;
|
||||
FieldByName('MYID').Value := Null;
|
||||
FieldByName('MXID').Value := Null;
|
||||
Post;
|
||||
Next;
|
||||
end;
|
||||
end;
|
||||
ToGYSName.Text := '';
|
||||
ToGYSName.TxtCode := '';
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKInPut.FormShow(Sender: TObject);
|
||||
begin
|
||||
InitData();
|
||||
|
||||
end;
|
||||
|
||||
function TfrmLLCKInPut.SaveData(): Boolean;
|
||||
var
|
||||
maxno, maxmxno, maxnoflag, fsj, FMXID: string;
|
||||
begin
|
||||
Result := False;
|
||||
try
|
||||
ADOCmd.Connection.BeginTrans;
|
||||
///保存主表
|
||||
if Trim(FMainId) = '' then
|
||||
begin
|
||||
if GetLSNo(ADOCmd, maxno, 'JG', 'CK_MYSC_CR', 4, 1) = False then
|
||||
begin
|
||||
ADOCmd.Connection.RollbackTrans;
|
||||
Application.MessageBox('取最大号失败!', '提示', 0);
|
||||
Exit;
|
||||
end;
|
||||
end
|
||||
else
|
||||
begin
|
||||
maxno := Trim(FMainId);
|
||||
end;
|
||||
with ADOCmd do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
SQL.Add('select * from CK_MYSC_CR where MYId=''' + Trim(maxno) + '''');
|
||||
Open;
|
||||
end;
|
||||
with ADOCmd do
|
||||
begin
|
||||
if isempty then
|
||||
begin
|
||||
Append;
|
||||
FieldByName('Filler').Value := Trim(DName);
|
||||
FieldByName('FillerCode').Value := Trim(DCode);
|
||||
end
|
||||
else
|
||||
begin
|
||||
Edit;
|
||||
end;
|
||||
FieldByName('MYId').Value := Trim(maxno);
|
||||
FieldByName('CRType').Value := '加工码单';
|
||||
FieldByName('CRFlag').Value := '入库';
|
||||
FieldByName('CRQtyFlag').Value := 1;
|
||||
if Trim(FMainId) = '' then
|
||||
begin
|
||||
|
||||
end
|
||||
else
|
||||
begin
|
||||
FieldByName('Editer').Value := Trim(DName);
|
||||
FieldByName('EditerCode').Value := Trim(DCode);
|
||||
FieldByName('EditTime').Value := SGetServerDateTime(ADOTemp);
|
||||
end;
|
||||
RTSetsavedata(ADOCmd, 'CK_MYSC_CR', Panel4, 2);
|
||||
RTSetsavedata(ADOCmd, 'CK_MYSC_CR', Panel5, 2);
|
||||
FieldByName('MDMflag').Value := MDMFlag.Checked;
|
||||
FieldByName('MDKGflag').Value := MDKGflag.Checked;
|
||||
FieldByName('MYType').Value := '加工费';
|
||||
FieldByName('MYTypeFlag').Value := Trim(FMYTypeFlag);
|
||||
FieldByName('MainId').Value := Trim(FNewMainId);
|
||||
FieldByName('SubId').Value := Trim(FNewSubid);
|
||||
Post;
|
||||
end;
|
||||
FMainId := Trim(maxno);
|
||||
YFData();
|
||||
ClientDataSet1.DisableControls;
|
||||
with ClientDataSet1 do
|
||||
begin
|
||||
First;
|
||||
while not Eof do
|
||||
begin
|
||||
with ADOCmd do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('select * from CK_MYSC_CR_MX where MXID=''' + Trim(ClientDataSet1.fieldbyname('MXID').AsString) + '''');
|
||||
Open;
|
||||
end;
|
||||
FMXID := Trim(ADOCmd.fieldbyname('MXID').AsString);
|
||||
if Trim(FMXID) = '' then
|
||||
begin
|
||||
if GetLSNo(ADOCmd, maxmxno, 'MX', 'CK_MYSC_CR_MX', 4, 1) = False then
|
||||
begin
|
||||
ClientDataSet1.EnableControls;
|
||||
Application.MessageBox('取加工码单明细数据最大号失败', '提示', 0);
|
||||
Exit;
|
||||
end;
|
||||
end
|
||||
else
|
||||
begin
|
||||
maxmxno := Trim(FMXID);
|
||||
end;
|
||||
with ADOCmd do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('select * from CK_MYSC_CR_MX where MXID=''' + Trim(maxmxno) + '''');
|
||||
Open;
|
||||
end;
|
||||
with ADOCmd do
|
||||
begin
|
||||
if Trim(FMXID) = '' then
|
||||
begin
|
||||
Append;
|
||||
FieldByName('Filler').Value := Trim(DName);
|
||||
end
|
||||
else
|
||||
begin
|
||||
Edit;
|
||||
FieldByName('EditTime').Value := SGetServerDateTime(ADOTemp);
|
||||
FieldByName('Editer').Value := Trim(DName);
|
||||
end;
|
||||
FieldByName('MYID').Value := Trim(FMainId);
|
||||
FieldByName('MXID').Value := Trim(maxmxno);
|
||||
RTSetSaveDataCDS(ADOCmd, Tv1, ClientDataSet1, 'CK_MYSC_CR_MX', 0);
|
||||
Post;
|
||||
end;
|
||||
Edit;
|
||||
FieldByName('MYID').Value := Trim(FMainId);
|
||||
FieldByName('MXID').Value := Trim(maxmxno);
|
||||
Post;
|
||||
Next;
|
||||
end;
|
||||
end;
|
||||
ClientDataSet1.EnableControls;
|
||||
with ADOCmd do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add(' UPdate CK_MYSC_CR Set MXHZQty=(select Sum(MQty) from CK_MYSC_CR_MX A where A.MYID=CK_MYSC_CR.MYID) ');
|
||||
sql.Add(' ,MXHZKgQty=(select Sum(KgQty) from CK_MYSC_CR_MX A where A.MYID=CK_MYSC_CR.MYID) ');
|
||||
sql.Add(' ,MXHZPS=(select Count(*) from CK_MYSC_CR_MX A where A.MYID=CK_MYSC_CR.MYID) ');
|
||||
sql.Add(' where MYID=''' + Trim(FMainId) + '''');
|
||||
sql.Add(' Update CK_MYSC_CR Set QtyChaE=isnull(MXHZQty,0)-isnull(Qty,0),KgQtyChaE=isnull(MXHZKgQty,0)-isnull(KgQty,0),PSChaE=isnull(MXHZPS,0)-isnull(PS,0) ');
|
||||
sql.Add(' where MYID=''' + Trim(FMainId) + '''');
|
||||
ExecSQL;
|
||||
end;
|
||||
if Trim(ToGYSName.Text) = '云翔仓库' then
|
||||
begin
|
||||
with ADOCmd do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add(' UPdate ML_OrderSubidNew Set HCPS=(select sum(PS) from CK_MYSC_CR A where A.SubID=ML_OrderSubidNew.NewSubid) ');
|
||||
if MDMFlag.Checked then
|
||||
begin
|
||||
sql.Add(' ,HCQty=(select sum(Qty) from CK_MYSC_CR A where A.SubID=ML_OrderSubidNew.NewSubid) ');
|
||||
end;
|
||||
if MDKGFlag.Checked then
|
||||
begin
|
||||
sql.Add(' ,HCQty=(select sum(KgQty) from CK_MYSC_CR A where A.SubID=ML_OrderSubidNew.NewSubid) ');
|
||||
end;
|
||||
sql.Add(' where NewSubid=''' + Trim(FNewSubid) + '''');
|
||||
ExecSQL;
|
||||
end;
|
||||
end;
|
||||
if Trim(FMYType) = '染色' then
|
||||
begin
|
||||
with ADOCmd do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add(' exec P_Update_PBKC :PBBatchNo,:JGCNO');
|
||||
Parameters.ParamByName('PBBatchNo').Value := Trim(PBBatchNo.Text);
|
||||
Parameters.ParamByName('JGCNO').Value := Trim(GYSName.TxtCode);
|
||||
ExecSQL;
|
||||
end;
|
||||
end;
|
||||
ADOCmd.Connection.CommitTrans;
|
||||
Result := True;
|
||||
except
|
||||
Result := False;
|
||||
ClientDataSet1.EnableControls;
|
||||
ADOCmd.Connection.RollbackTrans;
|
||||
Application.MessageBox('保存失败!', '提示', 0);
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKInPut.TBSaveClick(Sender: TObject);
|
||||
var
|
||||
FReal: Double;
|
||||
FInt: Integer;
|
||||
begin
|
||||
ToolBar1.SetFocus;
|
||||
if Trim(GYSName.Text) = '' then
|
||||
begin
|
||||
Application.MessageBox('供应商不能为空!', '提示', 0);
|
||||
Exit;
|
||||
end;
|
||||
if Trim(MYName.Text) = '' then
|
||||
begin
|
||||
Application.MessageBox('品名不能为空!', '提示', 0);
|
||||
Exit;
|
||||
end;
|
||||
if (MDMFlag.Checked = False) and (MDKGFlag.Checked = False) then
|
||||
begin
|
||||
Application.MessageBox('请选择计价方式', '提示', 0);
|
||||
Exit;
|
||||
end;
|
||||
if MDMFlag.Checked then
|
||||
begin
|
||||
if Trim(Qty.Text) = '' then
|
||||
begin
|
||||
Application.MessageBox('米数不能为空!', '提示', 0);
|
||||
Exit;
|
||||
end;
|
||||
end;
|
||||
if MDKGFlag.Checked then
|
||||
begin
|
||||
if Trim(KgQty.Text) = '' then
|
||||
begin
|
||||
Application.MessageBox('公斤数不能为空!', '提示', 0);
|
||||
Exit;
|
||||
end;
|
||||
end;
|
||||
|
||||
if Trim(PS.Text) = '' then
|
||||
begin
|
||||
Application.MessageBox('匹数不能为空!', '提示', 0);
|
||||
Exit;
|
||||
end;
|
||||
if TryStrToInt(PS.Text, FInt) = False then
|
||||
begin
|
||||
Application.MessageBox('匹数非法数字!', '提示', 0);
|
||||
exit;
|
||||
end;
|
||||
if (Trim(Qty.Text) = '') and (Trim(KgQty.text) = '') then
|
||||
begin
|
||||
Application.MessageBox('米数和公斤数不能同时为空!', '提示', 0);
|
||||
exit;
|
||||
end;
|
||||
if Trim(Qty.Text) <> '' then
|
||||
begin
|
||||
if TryStrToFloat(Qty.Text, FReal) = False then
|
||||
begin
|
||||
Application.MessageBox('米数非法数字!', '提示', 0);
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
if Trim(KgQty.Text) <> '' then
|
||||
begin
|
||||
if TryStrToFloat(KgQty.Text, FReal) = False then
|
||||
begin
|
||||
Application.MessageBox('公斤数非法数字!', '提示', 0);
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
if Trim(PBBatchNo.Text) = '' then
|
||||
begin
|
||||
Application.MessageBox('坯布联系号不能为空!', '提示', 0);
|
||||
Exit;
|
||||
end;
|
||||
if ClientDataSet1.IsEmpty then
|
||||
begin
|
||||
Application.MessageBox('明细不能为空!', '提示', 0);
|
||||
Exit;
|
||||
end;
|
||||
if SaveData() then
|
||||
begin
|
||||
Application.MessageBox('保存成功!', '提示', 0);
|
||||
ModalResult := 1;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKInPut.FormClose(Sender: TObject; var Action: TCloseAction);
|
||||
begin
|
||||
ModalResult := 1;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKInPut.MDMFlagClick(Sender: TObject);
|
||||
begin
|
||||
|
||||
if MDMFlag.Checked = true then
|
||||
begin
|
||||
if MDKGFlag.Checked = true then
|
||||
MDKGFlag.Checked := false;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if MDKGFlag.Checked = false then
|
||||
MDKGFlag.Checked := true;
|
||||
end;
|
||||
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKInPut.MDKGFlagClick(Sender: TObject);
|
||||
begin
|
||||
|
||||
if MDKGFlag.Checked = true then
|
||||
begin
|
||||
if MDMFlag.Checked = true then
|
||||
MDMFlag.Checked := false;
|
||||
end
|
||||
else
|
||||
begin
|
||||
if MDMFlag.Checked = false then
|
||||
MDMFlag.Checked := true;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKInPut.GYSNameBtnClick(Sender: TObject);
|
||||
begin
|
||||
{ if Trim(FMYType)='染色' then
|
||||
begin
|
||||
try
|
||||
frmPBCGRKListSel:=TfrmPBCGRKListSel.Create(Application);
|
||||
with frmPBCGRKListSel do
|
||||
begin
|
||||
if ShowModal=1 then
|
||||
begin
|
||||
Self.GYSName.Text:=Trim(frmPBCGRKListSel.Order_Main.fieldbyname('JCDanWeiJC').AsString);
|
||||
Self.GYSName.TxtCode:=Trim(frmPBCGRKListSel.Order_Main.fieldbyname('JCKHNo').AsString);
|
||||
Self.MYName.Text:=Trim(frmPBCGRKListSel.Order_Main.fieldbyname('MYName').AsString);
|
||||
Self.PBBatchNo.Text:=Trim(frmPBCGRKListSel.Order_Main.fieldbyname('PBBatchNo').AsString);
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
frmPBCGRKListSel.Free;
|
||||
end;
|
||||
end else
|
||||
begin
|
||||
try
|
||||
frmGYSList:=TfrmGYSList.Create(Application);
|
||||
with frmGYSList do
|
||||
begin
|
||||
if ShowModal=1 then
|
||||
begin
|
||||
Self.GYSName.Text:=Trim(frmGYSList.Order_Main.fieldbyname('KHNameJC').AsString);
|
||||
Self.GYSName.TxtCode:=Trim(frmGYSList.Order_Main.fieldbyname('KHNo').AsString);
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
frmGYSList.Free;
|
||||
end;
|
||||
end; }
|
||||
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKInPut.ToGYSNameBtnClick(Sender: TObject);
|
||||
begin
|
||||
try
|
||||
frmGYSList := TfrmGYSList.Create(Application);
|
||||
with frmGYSList do
|
||||
begin
|
||||
if ShowModal = 1 then
|
||||
begin
|
||||
Self.ToGYSName.Text := Trim(frmGYSList.Order_Main.fieldbyname('KHNameJC').AsString);
|
||||
Self.ToGYSName.TxtCode := Trim(frmGYSList.Order_Main.fieldbyname('KHNo').AsString);
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
frmGYSList.Free;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKInPut.KHNameJCBtnClick(Sender: TObject);
|
||||
begin
|
||||
{try
|
||||
frmOrderListSel:=TfrmOrderListSel.Create(Application);
|
||||
with frmOrderListSel do
|
||||
begin
|
||||
if ShowModal=1 then
|
||||
begin
|
||||
FNewMainId:=Trim(frmOrderListSel.Order_Main.fieldbyname('NewMLID').AsString);
|
||||
Self.MLConNo.Text:=Trim(frmOrderListSel.Order_Main.fieldbyname('MLConNo').AsString);
|
||||
Self.MLOrderNo.Text:=Trim(frmOrderListSel.Order_Main.fieldbyname('MLOrderNo').AsString);
|
||||
Self.KHNameJC.Text:=Trim(frmOrderListSel.Order_Main.fieldbyname('KHNameJC').AsString);
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
frmOrderListSel.Free;
|
||||
end; }
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKInPut.MLOrderNoPropertiesButtonClick(Sender: TObject; AButtonIndex: Integer);
|
||||
begin
|
||||
{try
|
||||
frmOrderMXSelist:=TfrmOrderMXSelist.Create(Application);
|
||||
with frmOrderMXSelist do
|
||||
begin
|
||||
if ShowModal=1 then
|
||||
begin
|
||||
Self.MLOrderNo.Text:=Trim(frmOrderMXSelist.Order_Main.fieldbyname('MLOrderNo').AsString);
|
||||
Self.MLConNo.Text:=Trim(frmOrderMXSelist.Order_Main.fieldbyname('MLConNo').AsString);
|
||||
Self.MYColor.Text:=Trim(frmOrderMXSelist.Order_Main.fieldbyname('MLColor').AsString);
|
||||
Self.MYColorNo.Text:=Trim(frmOrderMXSelist.Order_Main.fieldbyname('MLColorNo').AsString);
|
||||
Self.MYHX.Text:=Trim(frmOrderMXSelist.Order_Main.fieldbyname('MLHX').AsString);
|
||||
Self.MYHX.Text:=Trim(frmOrderMXSelist.Order_Main.fieldbyname('MLHX').AsString);
|
||||
Self.MYHX.Text:=Trim(frmOrderMXSelist.Order_Main.fieldbyname('MLHX').AsString);
|
||||
Self.KHNameJC.Text:=Trim(frmOrderMXSelist.Order_Main.fieldbyname('KHNameJC').AsString);
|
||||
Self.FNewMainId:=Trim(frmOrderMXSelist.Order_Main.fieldbyname('NewMLID').AsString);
|
||||
Self.FNewSubid:=Trim(frmOrderMXSelist.Order_Main.fieldbyname('NewSubid').AsString);
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
frmOrderMXSelist.Free;
|
||||
end; }
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKInPut.Edit1KeyPress(Sender: TObject; var Key: Char);
|
||||
var
|
||||
Freal: Double;
|
||||
begin
|
||||
if Key = #13 then
|
||||
begin
|
||||
if Trim(Edit1.Text) <> '' then
|
||||
begin
|
||||
if TryStrToFloat(Edit1.Text, Freal) = False then
|
||||
begin
|
||||
Application.MessageBox('明细数量非法数字!', '提示', 0);
|
||||
Exit;
|
||||
end;
|
||||
with ClientDataSet1 do
|
||||
begin
|
||||
Append;
|
||||
FieldByName('HSQty').Value := Trim(Edit1.Text);
|
||||
if MDMFlag.Checked then
|
||||
begin
|
||||
FieldByName('MQty').Value := Trim(Edit1.Text);
|
||||
end;
|
||||
if MDKGFlag.Checked then
|
||||
begin
|
||||
FieldByName('KgQty').Value := Trim(Edit1.Text);
|
||||
end;
|
||||
Post;
|
||||
end;
|
||||
Edit1.Text := '';
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKInPut.Tv1CellDblClick(Sender: TcxCustomGridTableView; ACellViewInfo: TcxGridTableDataCellViewInfo; AButton: TMouseButton; AShift: TShiftState; var AHandled: Boolean);
|
||||
begin
|
||||
if ClientDataSet1.IsEmpty then
|
||||
Exit;
|
||||
if Trim(ClientDataSet1.fieldbyname('MXID').AsString) = '' then
|
||||
begin
|
||||
ClientDataSet1.Delete;
|
||||
Exit;
|
||||
end;
|
||||
if Application.MessageBox('确定要删除数据吗?', '提示', 32 + 4) <> IDYES then
|
||||
Exit;
|
||||
begin
|
||||
with ADOCmd do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('delete CK_MYSC_CR_MX where MXID=''' + Trim(ClientDataSet1.fieldbyname('MXID').AsString) + '''');
|
||||
sql.Add(' UPdate CK_MYSC_CR Set MXHZQty=(select Sum(MQty) from CK_MYSC_CR_MX A where A.MYID=CK_MYSC_CR.MYID) ');
|
||||
sql.Add(' ,MXHZKgQty=(select Sum(KgQty) from CK_MYSC_CR_MX A where A.MYID=CK_MYSC_CR.MYID) ');
|
||||
sql.Add(' ,MXHZPS=(select Count(*) from CK_MYSC_CR_MX A where A.MYID=CK_MYSC_CR.MYID) ');
|
||||
sql.Add(' where MYID=''' + Trim(FMainId) + '''');
|
||||
ExecSQL;
|
||||
end;
|
||||
ClientDataSet1.Delete;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKInPut.ToolButton1Click(Sender: TObject);
|
||||
begin
|
||||
try
|
||||
frmJJGCKListSel := TfrmJJGCKListSel.Create(Application);
|
||||
with frmJJGCKListSel do
|
||||
begin
|
||||
if ShowModal = 1 then
|
||||
begin
|
||||
InitDataSel(frmJJGCKListSel.Order_Main.fieldbyname('MYID').AsString);
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
frmJJGCKListSel.Free;
|
||||
end;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
757
云翔生产管理(MYSC.dll)/U_LLCKList.dfm
Normal file
757
云翔生产管理(MYSC.dll)/U_LLCKList.dfm
Normal file
|
|
@ -0,0 +1,757 @@
|
|||
object frmLLCKList: TfrmLLCKList
|
||||
Left = 389
|
||||
Top = 267
|
||||
Width = 1662
|
||||
Height = 825
|
||||
Caption = #21152#24037#30721#21333#30331#35760
|
||||
Color = clBtnFace
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -12
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = []
|
||||
OldCreateOrder = False
|
||||
OnClose = FormClose
|
||||
OnCreate = FormCreate
|
||||
OnDestroy = FormDestroy
|
||||
OnShow = FormShow
|
||||
PixelsPerInch = 96
|
||||
TextHeight = 12
|
||||
object ToolBar1: TToolBar
|
||||
Left = 0
|
||||
Top = 0
|
||||
Width = 1654
|
||||
AutoSize = True
|
||||
ButtonHeight = 30
|
||||
ButtonWidth = 65
|
||||
Caption = 'ToolBar1'
|
||||
Color = clSkyBlue
|
||||
Flat = True
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = []
|
||||
Images = DataLink_MYSC.ThreeImgList
|
||||
List = True
|
||||
ParentColor = False
|
||||
ParentFont = False
|
||||
ShowCaptions = True
|
||||
TabOrder = 0
|
||||
object TBRafresh: TToolButton
|
||||
Left = 0
|
||||
Top = 0
|
||||
AutoSize = True
|
||||
Caption = #21047#26032
|
||||
ImageIndex = 0
|
||||
OnClick = TBRafreshClick
|
||||
end
|
||||
object TBFind: TToolButton
|
||||
Left = 69
|
||||
Top = 0
|
||||
AutoSize = True
|
||||
Caption = #36807#28388
|
||||
ImageIndex = 20
|
||||
Visible = False
|
||||
OnClick = TBFindClick
|
||||
end
|
||||
object TBAdd: TToolButton
|
||||
Left = 138
|
||||
Top = 0
|
||||
AutoSize = True
|
||||
Caption = #26032#22686
|
||||
ImageIndex = 1
|
||||
OnClick = TBAddClick
|
||||
end
|
||||
object TBExport: TToolButton
|
||||
Left = 207
|
||||
Top = 0
|
||||
AutoSize = True
|
||||
Caption = #23548#20986
|
||||
ImageIndex = 97
|
||||
Visible = False
|
||||
OnClick = TBExportClick
|
||||
end
|
||||
object ToolButton1: TToolButton
|
||||
Left = 276
|
||||
Top = 0
|
||||
AutoSize = True
|
||||
Caption = #26597#30475
|
||||
ImageIndex = 55
|
||||
Visible = False
|
||||
OnClick = ToolButton1Click
|
||||
end
|
||||
object TBClose: TToolButton
|
||||
Left = 345
|
||||
Top = 0
|
||||
AutoSize = True
|
||||
Caption = #20851#38381
|
||||
ImageIndex = 21
|
||||
OnClick = TBCloseClick
|
||||
end
|
||||
object labMYType: TLabel
|
||||
Left = 414
|
||||
Top = 0
|
||||
Width = 264
|
||||
Height = 30
|
||||
Caption = ' '#21152#24037#20986#24211' '
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clBlue
|
||||
Font.Height = -29
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
end
|
||||
object cxGrid1: TcxGrid
|
||||
Left = 0
|
||||
Top = 98
|
||||
Width = 1654
|
||||
Height = 696
|
||||
Align = alClient
|
||||
PopupMenu = PopupMenu1
|
||||
TabOrder = 2
|
||||
object Tv1: TcxGridDBTableView
|
||||
OnDblClick = Tv1DblClick
|
||||
Navigator.Buttons.CustomButtons = <>
|
||||
DataController.DataSource = DataSource1
|
||||
DataController.Options = [dcoAssignGroupingValues, dcoAssignMasterDetailKeys, dcoSaveExpanding, dcoImmediatePost]
|
||||
DataController.Summary.DefaultGroupSummaryItems = <>
|
||||
DataController.Summary.FooterSummaryItems = <
|
||||
item
|
||||
Kind = skSum
|
||||
end
|
||||
item
|
||||
Kind = skSum
|
||||
Column = v1Column1
|
||||
end
|
||||
item
|
||||
Kind = skSum
|
||||
Column = v1Column17
|
||||
end
|
||||
item
|
||||
Kind = skSum
|
||||
Column = v1Column3
|
||||
end
|
||||
item
|
||||
Format = #20010#25968':##'
|
||||
Kind = skCount
|
||||
Column = v1Column9
|
||||
end
|
||||
item
|
||||
Kind = skSum
|
||||
end
|
||||
item
|
||||
Kind = skSum
|
||||
Column = Tv1Column2
|
||||
end
|
||||
item
|
||||
Kind = skSum
|
||||
Column = Tv1Column3
|
||||
end
|
||||
item
|
||||
Kind = skSum
|
||||
Column = Tv1Column4
|
||||
end>
|
||||
DataController.Summary.SummaryGroups = <>
|
||||
OptionsCustomize.ColumnFiltering = False
|
||||
OptionsView.Footer = True
|
||||
OptionsView.GroupByBox = False
|
||||
Styles.Content = DataLink_MYSC.Default10
|
||||
Styles.Footer = DataLink_MYSC.Default10
|
||||
Styles.Header = DataLink_MYSC.Default10
|
||||
object v1Column11: TcxGridDBColumn
|
||||
Caption = #25351#31034#21333#21495
|
||||
DataBinding.FieldName = 'MLOrderNo'
|
||||
PropertiesClassName = 'TcxTextEditProperties'
|
||||
Properties.ReadOnly = True
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Width = 148
|
||||
end
|
||||
object v1Column13: TcxGridDBColumn
|
||||
Caption = #23458#25143#32534#21495
|
||||
DataBinding.FieldName = 'KHNOKH'
|
||||
PropertiesClassName = 'TcxTextEditProperties'
|
||||
Properties.ReadOnly = True
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Width = 126
|
||||
end
|
||||
object v1Column12: TcxGridDBColumn
|
||||
Caption = #23458#25143
|
||||
DataBinding.FieldName = 'KHNameJCZ'
|
||||
PropertiesClassName = 'TcxTextEditProperties'
|
||||
Properties.ReadOnly = True
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Width = 177
|
||||
end
|
||||
object v1Column9: TcxGridDBColumn
|
||||
Caption = #26085#26399
|
||||
DataBinding.FieldName = 'CRTime'
|
||||
PropertiesClassName = 'TcxDateEditProperties'
|
||||
Properties.SaveTime = False
|
||||
Properties.ShowTime = False
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Options.Editing = False
|
||||
Width = 127
|
||||
end
|
||||
object v1Column5: TcxGridDBColumn
|
||||
Caption = #21697#21517
|
||||
DataBinding.FieldName = 'MYName'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Options.Editing = False
|
||||
Width = 160
|
||||
end
|
||||
object Tv1Column5: TcxGridDBColumn
|
||||
Caption = #39068#33394
|
||||
DataBinding.FieldName = 'MYColor'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Width = 96
|
||||
end
|
||||
object v1Column4: TcxGridDBColumn
|
||||
Caption = #31867#22411
|
||||
DataBinding.FieldName = 'MYTypeFlag'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Width = 81
|
||||
end
|
||||
object Tv1Column1: TcxGridDBColumn
|
||||
Caption = #22383#24067#32852#31995#21495
|
||||
DataBinding.FieldName = 'PBBatchNo'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Options.Editing = False
|
||||
Width = 176
|
||||
end
|
||||
object v1Column10: TcxGridDBColumn
|
||||
Caption = #21152#24037#21378#32534#21495
|
||||
DataBinding.FieldName = 'GYSNo'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Width = 95
|
||||
end
|
||||
object v1Column7: TcxGridDBColumn
|
||||
Caption = #21152#24037#21378
|
||||
DataBinding.FieldName = 'KHNameJC'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Options.Editing = False
|
||||
Width = 120
|
||||
end
|
||||
object Tv1Column6: TcxGridDBColumn
|
||||
Caption = #25910#33719#21333#20301#32534#21495
|
||||
DataBinding.FieldName = 'ToGYSNo'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Width = 110
|
||||
end
|
||||
object v1JCDanWeiJC: TcxGridDBColumn
|
||||
Caption = #25910#36135#21333#20301
|
||||
DataBinding.FieldName = 'KHNameJCDH'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Options.Editing = False
|
||||
Width = 114
|
||||
end
|
||||
object v1filler: TcxGridDBColumn
|
||||
Caption = #21046#20316#20154
|
||||
DataBinding.FieldName = 'filler'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Options.Editing = False
|
||||
Width = 70
|
||||
end
|
||||
object v1Column1: TcxGridDBColumn
|
||||
Caption = #21305#25968
|
||||
DataBinding.FieldName = 'PS'
|
||||
OnCustomDrawCell = v1Column1CustomDrawCell
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Options.Editing = False
|
||||
Styles.Footer = DataLink_MYSC.Default10
|
||||
Width = 68
|
||||
end
|
||||
object v1Column17: TcxGridDBColumn
|
||||
Caption = #20844#26020#25968
|
||||
DataBinding.FieldName = 'KgQty'
|
||||
OnCustomDrawCell = v1Column17CustomDrawCell
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Options.Editing = False
|
||||
Styles.Footer = DataLink_MYSC.Default10
|
||||
Width = 85
|
||||
end
|
||||
object v1Column3: TcxGridDBColumn
|
||||
Caption = #31859#25968
|
||||
DataBinding.FieldName = 'Qty'
|
||||
OnCustomDrawCell = v1Column3CustomDrawCell
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Options.Editing = False
|
||||
Styles.Footer = DataLink_MYSC.Default10
|
||||
Width = 78
|
||||
end
|
||||
object Tv1Column2: TcxGridDBColumn
|
||||
Caption = #26126#32454#21305#25968
|
||||
DataBinding.FieldName = 'MXHZPS'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Options.Editing = False
|
||||
Width = 84
|
||||
end
|
||||
object Tv1Column4: TcxGridDBColumn
|
||||
Caption = #26126#32454#20844#26020#25968
|
||||
DataBinding.FieldName = 'MXHZKgQty'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Options.Editing = False
|
||||
Width = 88
|
||||
end
|
||||
object Tv1Column3: TcxGridDBColumn
|
||||
Caption = #26126#32454#31859#25968
|
||||
DataBinding.FieldName = 'MXHZQty'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Options.Editing = False
|
||||
Width = 89
|
||||
end
|
||||
object v1Column2: TcxGridDBColumn
|
||||
Caption = #22791#27880
|
||||
DataBinding.FieldName = 'Note'
|
||||
HeaderAlignmentHorz = taCenter
|
||||
Width = 261
|
||||
end
|
||||
end
|
||||
object cxGrid1Level1: TcxGridLevel
|
||||
GridView = Tv1
|
||||
end
|
||||
end
|
||||
object Panel1: TPanel
|
||||
Left = 0
|
||||
Top = 32
|
||||
Width = 1654
|
||||
Height = 66
|
||||
Align = alTop
|
||||
BevelInner = bvRaised
|
||||
BevelOuter = bvLowered
|
||||
Color = clSkyBlue
|
||||
TabOrder = 1
|
||||
object Label34: TLabel
|
||||
Left = 207
|
||||
Top = 13
|
||||
Width = 66
|
||||
Height = 15
|
||||
Caption = #21152' '#24037' '#21378
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label2: TLabel
|
||||
Left = 15
|
||||
Top = 13
|
||||
Width = 32
|
||||
Height = 15
|
||||
Caption = #21697#21517
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label1: TLabel
|
||||
Left = 15
|
||||
Top = 40
|
||||
Width = 32
|
||||
Height = 15
|
||||
Caption = #22791#27880
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label3: TLabel
|
||||
Left = 207
|
||||
Top = 40
|
||||
Width = 64
|
||||
Height = 15
|
||||
Caption = #25910#36135#21333#20301
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label4: TLabel
|
||||
Left = 451
|
||||
Top = 13
|
||||
Width = 48
|
||||
Height = 15
|
||||
Caption = #21046#20316#20154
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label5: TLabel
|
||||
Left = 451
|
||||
Top = 40
|
||||
Width = 50
|
||||
Height = 15
|
||||
Caption = #31867' '#22411
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label6: TLabel
|
||||
Left = 626
|
||||
Top = 13
|
||||
Width = 64
|
||||
Height = 15
|
||||
Caption = #25351#31034#21333#21495
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label7: TLabel
|
||||
Left = 626
|
||||
Top = 40
|
||||
Width = 68
|
||||
Height = 15
|
||||
Caption = #23458' '#25143
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label8: TLabel
|
||||
Left = 806
|
||||
Top = 40
|
||||
Width = 80
|
||||
Height = 15
|
||||
Caption = #22383#24067#32852#31995#21495
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object Label9: TLabel
|
||||
Left = 806
|
||||
Top = 11
|
||||
Width = 77
|
||||
Height = 15
|
||||
Caption = #39068' '#33394
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
end
|
||||
object KHNameHZ: TEdit
|
||||
Tag = 2
|
||||
Left = 275
|
||||
Top = 9
|
||||
Width = 158
|
||||
Height = 23
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
TabOrder = 1
|
||||
OnChange = CustomerNoNameChange
|
||||
end
|
||||
object BegDate: TDateTimePicker
|
||||
Left = 1085
|
||||
Top = 9
|
||||
Width = 127
|
||||
Height = 23
|
||||
Date = 40768.458268587970000000
|
||||
Time = 40768.458268587970000000
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
TabOrder = 3
|
||||
end
|
||||
object EndDate: TDateTimePicker
|
||||
Left = 1085
|
||||
Top = 36
|
||||
Width = 127
|
||||
Height = 23
|
||||
Date = 40768.458268587970000000
|
||||
Time = 40768.458268587970000000
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
TabOrder = 7
|
||||
end
|
||||
object MYName: TEdit
|
||||
Tag = 2
|
||||
Left = 49
|
||||
Top = 9
|
||||
Width = 141
|
||||
Height = 23
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
TabOrder = 0
|
||||
OnChange = CustomerNoNameChange
|
||||
end
|
||||
object Note: TEdit
|
||||
Tag = 2
|
||||
Left = 49
|
||||
Top = 36
|
||||
Width = 141
|
||||
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 CheckBox1: TCheckBox
|
||||
Left = 999
|
||||
Top = 12
|
||||
Width = 82
|
||||
Height = 16
|
||||
Caption = #26597#35810#26085#26399
|
||||
Checked = True
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
State = cbChecked
|
||||
TabOrder = 4
|
||||
OnClick = CheckBox1Click
|
||||
end
|
||||
object JCDanWeiJC: TEdit
|
||||
Tag = 2
|
||||
Left = 275
|
||||
Top = 36
|
||||
Width = 158
|
||||
Height = 23
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
TabOrder = 6
|
||||
OnChange = CustomerNoNameChange
|
||||
end
|
||||
object filler: TEdit
|
||||
Tag = 2
|
||||
Left = 503
|
||||
Top = 9
|
||||
Width = 103
|
||||
Height = 23
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
TabOrder = 2
|
||||
OnChange = CustomerNoNameChange
|
||||
end
|
||||
object MYTypeFlag: TComboBox
|
||||
Tag = 1
|
||||
Left = 504
|
||||
Top = 36
|
||||
Width = 104
|
||||
Height = 23
|
||||
Style = csDropDownList
|
||||
DropDownCount = 20
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ItemHeight = 15
|
||||
ParentFont = False
|
||||
TabOrder = 8
|
||||
OnChange = CustomerNoNameChange
|
||||
end
|
||||
object MLOrderNo: TEdit
|
||||
Tag = 2
|
||||
Left = 691
|
||||
Top = 8
|
||||
Width = 95
|
||||
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 KHNameHZZ: TEdit
|
||||
Tag = 2
|
||||
Left = 691
|
||||
Top = 36
|
||||
Width = 95
|
||||
Height = 23
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
TabOrder = 10
|
||||
OnChange = CustomerNoNameChange
|
||||
end
|
||||
object PBBatchNo: TEdit
|
||||
Tag = 2
|
||||
Left = 883
|
||||
Top = 36
|
||||
Width = 110
|
||||
Height = 23
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
TabOrder = 11
|
||||
OnChange = CustomerNoNameChange
|
||||
end
|
||||
object MYColor: TEdit
|
||||
Tag = 2
|
||||
Left = 883
|
||||
Top = 7
|
||||
Width = 109
|
||||
Height = 23
|
||||
Font.Charset = GB2312_CHARSET
|
||||
Font.Color = clWindowText
|
||||
Font.Height = -15
|
||||
Font.Name = #23435#20307
|
||||
Font.Style = [fsBold]
|
||||
ParentFont = False
|
||||
TabOrder = 12
|
||||
OnChange = CustomerNoNameChange
|
||||
end
|
||||
end
|
||||
object cxGridPopupMenu1: TcxGridPopupMenu
|
||||
Grid = cxGrid1
|
||||
PopupMenus = <>
|
||||
Left = 165
|
||||
Top = 148
|
||||
end
|
||||
object ADOQueryCmd: TADOQuery
|
||||
Connection = DataLink_MYSC.ADOLink
|
||||
Parameters = <>
|
||||
Left = 205
|
||||
Top = 209
|
||||
end
|
||||
object ADOQueryMain: TADOQuery
|
||||
Connection = DataLink_MYSC.ADOLink
|
||||
LockType = ltReadOnly
|
||||
Parameters = <>
|
||||
Left = 205
|
||||
Top = 178
|
||||
end
|
||||
object ADOQueryTemp: TADOQuery
|
||||
Connection = DataLink_MYSC.ADOLink
|
||||
LockType = ltReadOnly
|
||||
Parameters = <>
|
||||
Left = 206
|
||||
Top = 149
|
||||
end
|
||||
object DataSource1: TDataSource
|
||||
DataSet = Order_Main
|
||||
Left = 164
|
||||
Top = 210
|
||||
end
|
||||
object Order_Main: TClientDataSet
|
||||
Aggregates = <>
|
||||
Params = <>
|
||||
Left = 165
|
||||
Top = 179
|
||||
end
|
||||
object RM1: TRMGridReport
|
||||
ThreadPrepareReport = True
|
||||
InitialZoom = pzDefault
|
||||
PreviewButtons = [pbZoom, pbLoad, pbSave, pbPrint, pbFind, pbPageSetup, pbExit, pbSaveToXLS, pbExport, pbNavigator]
|
||||
DefaultCollate = False
|
||||
SaveReportOptions.RegistryPath = 'Software\ReportMachine\ReportSettings\'
|
||||
PreviewOptions.RulerUnit = rmutScreenPixels
|
||||
PreviewOptions.RulerVisible = False
|
||||
PreviewOptions.DrawBorder = False
|
||||
PreviewOptions.BorderPen.Color = clGray
|
||||
PreviewOptions.BorderPen.Style = psDash
|
||||
Dataset = RMDBMain
|
||||
CompressLevel = rmzcFastest
|
||||
CompressThread = False
|
||||
LaterBuildEvents = True
|
||||
OnlyOwnerDataSet = False
|
||||
Left = 1048
|
||||
Top = 8
|
||||
ReportData = {}
|
||||
end
|
||||
object RMDBMain: TRMDBDataSet
|
||||
Visible = True
|
||||
DataSet = CDS_PRT
|
||||
Left = 1016
|
||||
Top = 8
|
||||
end
|
||||
object RMXLSExport2: TRMXLSExport
|
||||
ShowAfterExport = False
|
||||
ExportPrecision = 1
|
||||
PagesOfSheet = 1
|
||||
ExportImages = True
|
||||
ExportFrames = True
|
||||
ExportImageFormat = ifBMP
|
||||
JPEGQuality = 0
|
||||
ScaleX = 1.000000000000000000
|
||||
ScaleY = 1.000000000000000000
|
||||
CompressFile = False
|
||||
Left = 1108
|
||||
Top = 8
|
||||
end
|
||||
object CDS_PRT: TClientDataSet
|
||||
Aggregates = <>
|
||||
Params = <>
|
||||
Left = 1080
|
||||
Top = 8
|
||||
end
|
||||
object PopupMenu1: TPopupMenu
|
||||
Left = 164
|
||||
Top = 240
|
||||
object N1: TMenuItem
|
||||
Caption = #20462#25913
|
||||
OnClick = N1Click
|
||||
end
|
||||
object N2: TMenuItem
|
||||
Caption = #21024#38500
|
||||
OnClick = N2Click
|
||||
end
|
||||
end
|
||||
object ClientDataSet1: TClientDataSet
|
||||
Aggregates = <>
|
||||
Params = <>
|
||||
Left = 773
|
||||
Top = 259
|
||||
end
|
||||
end
|
||||
503
云翔生产管理(MYSC.dll)/U_LLCKList.pas
Normal file
503
云翔生产管理(MYSC.dll)/U_LLCKList.pas
Normal file
|
|
@ -0,0 +1,503 @@
|
|||
unit U_LLCKList;
|
||||
|
||||
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,
|
||||
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, cxPC, Buttons, cxTextEdit, cxLookAndFeels,
|
||||
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
|
||||
TfrmLLCKList = class(TForm)
|
||||
ToolBar1: TToolBar;
|
||||
TBRafresh: TToolButton;
|
||||
TBFind: TToolButton;
|
||||
TBAdd: TToolButton;
|
||||
TBClose: TToolButton;
|
||||
Tv1: TcxGridDBTableView;
|
||||
cxGrid1Level1: TcxGridLevel;
|
||||
cxGrid1: TcxGrid;
|
||||
cxGridPopupMenu1: TcxGridPopupMenu;
|
||||
ADOQueryCmd: TADOQuery;
|
||||
ADOQueryMain: TADOQuery;
|
||||
ADOQueryTemp: TADOQuery;
|
||||
DataSource1: TDataSource;
|
||||
TBExport: TToolButton;
|
||||
Order_Main: TClientDataSet;
|
||||
ToolButton1: TToolButton;
|
||||
Panel1: TPanel;
|
||||
v1Column1: TcxGridDBColumn;
|
||||
Label34: TLabel;
|
||||
v1Column7: TcxGridDBColumn;
|
||||
v1Column9: TcxGridDBColumn;
|
||||
KHNameHZ: TEdit;
|
||||
BegDate: TDateTimePicker;
|
||||
EndDate: TDateTimePicker;
|
||||
RM1: TRMGridReport;
|
||||
RMDBMain: TRMDBDataSet;
|
||||
RMXLSExport2: TRMXLSExport;
|
||||
CDS_PRT: TClientDataSet;
|
||||
v1Column17: TcxGridDBColumn;
|
||||
v1Column5: TcxGridDBColumn;
|
||||
Label2: TLabel;
|
||||
MYName: TEdit;
|
||||
v1Column3: TcxGridDBColumn;
|
||||
v1Column2: TcxGridDBColumn;
|
||||
Label1: TLabel;
|
||||
Note: TEdit;
|
||||
labMYType: TLabel;
|
||||
PopupMenu1: TPopupMenu;
|
||||
N1: TMenuItem;
|
||||
N2: TMenuItem;
|
||||
CheckBox1: TCheckBox;
|
||||
v1JCDanWeiJC: TcxGridDBColumn;
|
||||
Label3: TLabel;
|
||||
JCDanWeiJC: TEdit;
|
||||
v1filler: TcxGridDBColumn;
|
||||
Label4: TLabel;
|
||||
filler: TEdit;
|
||||
ClientDataSet1: TClientDataSet;
|
||||
v1Column4: TcxGridDBColumn;
|
||||
v1Column10: TcxGridDBColumn;
|
||||
Label5: TLabel;
|
||||
MYTypeFlag: TComboBox;
|
||||
v1Column11: TcxGridDBColumn;
|
||||
v1Column12: TcxGridDBColumn;
|
||||
Label6: TLabel;
|
||||
MLOrderNo: TEdit;
|
||||
Label7: TLabel;
|
||||
KHNameHZZ: TEdit;
|
||||
v1Column13: TcxGridDBColumn;
|
||||
Tv1Column1: TcxGridDBColumn;
|
||||
Label8: TLabel;
|
||||
PBBatchNo: TEdit;
|
||||
Tv1Column2: TcxGridDBColumn;
|
||||
Tv1Column3: TcxGridDBColumn;
|
||||
Tv1Column4: TcxGridDBColumn;
|
||||
Tv1Column5: TcxGridDBColumn;
|
||||
Label9: TLabel;
|
||||
MYColor: TEdit;
|
||||
Tv1Column6: TcxGridDBColumn;
|
||||
procedure FormDestroy(Sender: TObject);
|
||||
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||
procedure FormCreate(Sender: TObject);
|
||||
procedure TBCloseClick(Sender: TObject);
|
||||
procedure TBFindClick(Sender: TObject);
|
||||
procedure TBExportClick(Sender: TObject);
|
||||
procedure TBRafreshClick(Sender: TObject);
|
||||
procedure TBAddClick(Sender: TObject);
|
||||
procedure FormShow(Sender: TObject);
|
||||
procedure CheckBox1Click(Sender: TObject);
|
||||
procedure CheckBox2Click(Sender: TObject);
|
||||
procedure ToolButton1Click(Sender: TObject);
|
||||
procedure CustomerNoNameChange(Sender: TObject);
|
||||
procedure N2Click(Sender: TObject);
|
||||
procedure N1Click(Sender: TObject);
|
||||
procedure cxTabControl1Change(Sender: TObject);
|
||||
procedure ZJStatusChange(Sender: TObject);
|
||||
procedure Tv1DblClick(Sender: TObject);
|
||||
procedure v1Column1CustomDrawCell(Sender: TcxCustomGridTableView; ACanvas: TcxCanvas; AViewInfo: TcxGridTableDataCellViewInfo; var ADone: Boolean);
|
||||
procedure v1Column17CustomDrawCell(Sender: TcxCustomGridTableView; ACanvas: TcxCanvas; AViewInfo: TcxGridTableDataCellViewInfo; var ADone: Boolean);
|
||||
procedure v1Column3CustomDrawCell(Sender: TcxCustomGridTableView; ACanvas: TcxCanvas; AViewInfo: TcxGridTableDataCellViewInfo; var ADone: Boolean);
|
||||
private
|
||||
FGXName: string;
|
||||
DQdate: TDateTime;
|
||||
procedure InitGrid();
|
||||
procedure InitForm();
|
||||
function DelData(): Boolean;
|
||||
{ Private declarations }
|
||||
public
|
||||
FFInt, FCloth: Integer;
|
||||
canshu1: string;
|
||||
|
||||
{ Public declarations }
|
||||
end;
|
||||
|
||||
var
|
||||
frmLLCKList: TfrmLLCKList;
|
||||
|
||||
implementation
|
||||
|
||||
uses
|
||||
U_DataLink, U_RTFun, U_ZDYHelp, U_LLCKInPut;
|
||||
|
||||
{$R *.dfm}
|
||||
|
||||
procedure TfrmLLCKList.FormDestroy(Sender: TObject);
|
||||
begin
|
||||
frmLLCKList := nil;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.FormClose(Sender: TObject; var Action: TCloseAction);
|
||||
begin
|
||||
Action := caFree;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.FormCreate(Sender: TObject);
|
||||
begin
|
||||
cxgrid1.Align := alClient;
|
||||
canshu1 := Trim(DParameters1);
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.TBCloseClick(Sender: TObject);
|
||||
begin
|
||||
WriteCxGrid('加工码单CK', Tv1, '贸易生产管理');
|
||||
Close;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.InitGrid();
|
||||
begin
|
||||
try
|
||||
ADOQueryMain.DisableControls;
|
||||
with ADOQueryMain do
|
||||
begin
|
||||
Filtered := False;
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('select AA.* ');
|
||||
sql.Add(',KHNameHZ=dbo.getpinyin(isnull(AA.KHNameJC,''''))+AA.GYSNo+isnull(AA.KHNameJC,'''')');
|
||||
sql.Add('from(');
|
||||
sql.Add(' select A.* ');
|
||||
sql.Add(',KHNameJC=(select Top 1 B.KHNameJC from KH_Main B ');
|
||||
sql.Add(' where isnull(B.KHFlag,'''')=''GYS'' and isnull(B.Valid,'''')=''Y'' and B.KHNO=A.GYSNo)');
|
||||
sql.Add(',KHNameJCDH=(select Top 1 B.KHNameJC from KH_Main B ');
|
||||
sql.Add(' where isnull(B.KHFlag,'''')=''GYS'' and isnull(B.Valid,'''')=''Y'' and B.KHNO=A.ToGYSNo)');
|
||||
sql.Add(',KHNameHZZ=dbo.getpinyin(isnull(KM.KHNameJC,''''))+B.KHNO+isnull(KM.KHNameJC,'''')');
|
||||
sql.Add(',KHNameJCZ=KM.KHNameJC,B.MLOrderNo,KHNOKH=B.KHNO');
|
||||
sql.Add(' from CK_MYSC_CR A ');
|
||||
sql.Add(' left join ML_OrderMainNew B on A.MainId=B.NewMLID');
|
||||
sql.Add(' left join KH_Main KM on KM.KHNO=B.KHNO ');
|
||||
sql.Add(' where 1=1 ');
|
||||
if CheckBox1.Checked = False then
|
||||
begin
|
||||
sql.Add(' and A.CRTime>=''' + Trim(FormatDateTime('yyyy-MM', now) + '-01') + '''');
|
||||
sql.Add(' and A.CRTime<''' + Trim(FormatDateTime('yyyy-MM-dd', now + 1)) + '''');
|
||||
BegDate.Visible := false;
|
||||
EndDate.Visible := false;
|
||||
end
|
||||
else
|
||||
begin
|
||||
sql.Add(' and A.CRTime>=''' + Trim(FormatDateTime('yyyy-MM-dd', BegDate.Date)) + '''');
|
||||
sql.Add(' and A.CRTime<''' + Trim(FormatDateTime('yyyy-MM-dd', EndDate.Date + 1)) + '''');
|
||||
BegDate.Visible := true;
|
||||
EndDate.Visible := true;
|
||||
end;
|
||||
sql.Add(' and isnull(CRType,'''')=''来料入库'' ');
|
||||
if canshu1 <> '高权限' then
|
||||
begin
|
||||
sql.add(' and A.filler=''' + trim(DName) + '''');
|
||||
end;
|
||||
sql.Add(')AA');
|
||||
Open;
|
||||
end;
|
||||
SCreateCDS20(ADOQueryMain, Order_Main);
|
||||
SInitCDSData20(ADOQueryMain, Order_Main);
|
||||
finally
|
||||
ADOQueryMain.EnableControls;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.InitForm();
|
||||
var
|
||||
fsj: string;
|
||||
begin
|
||||
BegDate.Date := StrToDate(formatdatetime('yyyy-MM', SGetServerDate(ADOQueryTemp)) + '-01');
|
||||
EndDate.Date := SGetServerDate(ADOQueryTemp);
|
||||
ReadCxGrid('加工码单', Tv1, '贸易生产管理');
|
||||
fsj := 'select Name=ZDYName,Code=Null from KH_Zdy where Type=''JGGongXu'' ';
|
||||
SInitComBoxBySql(ADOQueryTemp, MYTypeFlag, False, fsj);
|
||||
InitGrid();
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.TBFindClick(Sender: TObject);
|
||||
begin
|
||||
if ADOQueryMain.Active = False then
|
||||
Exit;
|
||||
SDofilter(ADOQueryMain, SGetFilters(Panel1, 1, 2));
|
||||
SCreateCDS20(ADOQueryMain, Order_Main);
|
||||
SInitCDSData20(ADOQueryMain, Order_Main);
|
||||
end;
|
||||
|
||||
function TfrmLLCKList.DelData(): Boolean;
|
||||
begin
|
||||
try
|
||||
Result := false;
|
||||
ADOQueryCmd.Connection.BeginTrans;
|
||||
Order_Main.DisableControls;
|
||||
with Order_Main do
|
||||
begin
|
||||
//First;
|
||||
// while Order_Main.Locate('SSel',True,[]) do
|
||||
begin
|
||||
with ADOQueryCmd do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add(' delete YS_Money_CR where YFTypeId=''' + Trim(Order_Main.fieldbyname('MYID').AsString) + '''');
|
||||
sql.Add(' insert into CK_MYSC_CR_Log ');
|
||||
sql.Add(' select * from CK_MYSC_CR where MYID=''' + Trim(Order_Main.fieldbyname('MYID').AsString) + '''');
|
||||
sql.Add(' UPdate CK_MYSC_CR_Log Set DelTime=getdate(),DelerCode=''' + Trim(DCode) + ''',Deler=''' + Trim(DName) + '''');
|
||||
sql.Add(' where MYID=''' + Trim(Order_Main.fieldbyname('MYID').AsString) + '''');
|
||||
sql.Add(' Delete CK_MYSC_CR where MYId=''' + Trim(Order_Main.fieldbyname('MYId').AsString) + '''');
|
||||
sql.Add(' delete from TP_File where WBID=''' + trim(Order_Main.fieldbyname('MYId').AsString) + ''' ');
|
||||
sql.Add(' and TFType=''加工码单''');
|
||||
ExecSQL;
|
||||
end;
|
||||
Order_Main.Delete;
|
||||
end;
|
||||
end;
|
||||
Order_Main.EnableControls;
|
||||
ADOQueryCmd.Connection.CommitTrans;
|
||||
Result := True;
|
||||
except
|
||||
ADOQueryCmd.Connection.RollbackTrans;
|
||||
Result := False;
|
||||
Application.MessageBox('数据删除异常!', '提示', 0);
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.TBExportClick(Sender: TObject);
|
||||
begin
|
||||
if ADOQueryMain.IsEmpty then
|
||||
Exit;
|
||||
TcxGridToExcel(Self.Caption, cxGrid1);
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.TBRafreshClick(Sender: TObject);
|
||||
begin
|
||||
InitGrid();
|
||||
TBFind.Click;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.TBAddClick(Sender: TObject);
|
||||
begin
|
||||
try
|
||||
frmLLCKInPut := TfrmLLCKInPut.Create(Application);
|
||||
with frmLLCKInPut do
|
||||
begin
|
||||
PState := 0;
|
||||
FMainId := '';
|
||||
if ShowModal = 1 then
|
||||
begin
|
||||
InitGrid();
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
frmLLCKInPut.Free;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.FormShow(Sender: TObject);
|
||||
begin
|
||||
InitForm();
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.CheckBox1Click(Sender: TObject);
|
||||
begin
|
||||
InitGrid();
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.CheckBox2Click(Sender: TObject);
|
||||
begin
|
||||
TBRafresh.Click;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.ToolButton1Click(Sender: TObject);
|
||||
var
|
||||
FFMYType: string;
|
||||
begin
|
||||
{FFMYType:=Trim(Order_Main.fieldbyname('MYType').AsString);
|
||||
try
|
||||
frmLLRKInPutMH_RCCG:=TfrmLLRKInPutMH_RCCG.Create(Application);
|
||||
with frmLLRKInPutMH_RCCG do
|
||||
begin
|
||||
PState:=1;
|
||||
FMainId:=Trim(Self.Order_Main.fieldbyname('MYId').AsString);
|
||||
FMYType:=Trim(Self.Order_Main.fieldbyname('MYType').AsString);
|
||||
FMYTypeFlag:=Trim(Self.Order_Main.fieldbyname('MYTypeFlag').AsString);
|
||||
labMYType.Caption:=Trim(Self.Order_Main.fieldbyname('MYTypeFlag').AsString);
|
||||
if ShowModal=1 then
|
||||
begin
|
||||
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
frmLLRKInPutMH_RCCG.Free;
|
||||
end; }
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.CustomerNoNameChange(Sender: TObject);
|
||||
begin
|
||||
if ADOQueryMain.Active = False then
|
||||
Exit;
|
||||
SDofilter(ADOQueryMain, SGetFilters(Panel1, 1, 2));
|
||||
SCreateCDS20(ADOQueryMain, Order_Main);
|
||||
SInitCDSData20(ADOQueryMain, Order_Main);
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.N2Click(Sender: TObject);
|
||||
begin
|
||||
if Order_Main.IsEmpty then
|
||||
Exit;
|
||||
if Trim(canshu1) <> '高权限' then
|
||||
begin
|
||||
if Order_Main.FieldByName('filltime').AsDateTime + 1 < Now then
|
||||
begin
|
||||
application.MessageBox('超过一天不能删除', '提示');
|
||||
Exit;
|
||||
end;
|
||||
end;
|
||||
with ADOQueryTemp do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('select * from YS_Money_CR where YFTypeId=''' + Trim(Self.Order_Main.fieldbyname('MYId').AsString) + '''');
|
||||
sql.Add(' and ChkStatusP=''已审核''');
|
||||
Open;
|
||||
end;
|
||||
if ADOQueryTemp.IsEmpty = false then
|
||||
begin
|
||||
Application.MessageBox('应付款已审核不能操作', '提示');
|
||||
exit;
|
||||
end;
|
||||
with ADOQueryTemp do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('select * from YS_Money_CR where YFTypeId=''' + trim(Order_Main.fieldbyname('MYID').AsString) + '''');
|
||||
sql.Add(' and (isnull(ChkerP,'''')<>'''' ');
|
||||
sql.Add(' or isnull(ChkerQ,'''')<>'''') ');
|
||||
Open;
|
||||
end;
|
||||
if ADOQueryTemp.IsEmpty = false then
|
||||
begin
|
||||
Application.MessageBox('应付款已审核,不能删除', '提示');
|
||||
exit;
|
||||
end;
|
||||
if Application.MessageBox('确定要删除数据吗?', '提示', 32 + 4) <> IDYES then
|
||||
Exit;
|
||||
if DelData() then
|
||||
begin
|
||||
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.N1Click(Sender: TObject);
|
||||
var
|
||||
FFMYType: string;
|
||||
begin
|
||||
if Order_Main.IsEmpty then
|
||||
Exit;
|
||||
if Trim(canshu1) <> '高权限' then
|
||||
begin
|
||||
if Order_Main.FieldByName('filltime').AsDateTime + 1 < Now then
|
||||
begin
|
||||
application.MessageBox('超过一天不能修改', '提示');
|
||||
Exit;
|
||||
end;
|
||||
end;
|
||||
with ADOQueryTemp do
|
||||
begin
|
||||
Close;
|
||||
sql.Clear;
|
||||
sql.Add('select * from YS_Money_CR where YFTypeId=''' + Trim(Self.Order_Main.fieldbyname('MYId').AsString) + '''');
|
||||
sql.Add(' and ChkStatusP=''已审核''');
|
||||
Open;
|
||||
end;
|
||||
if ADOQueryTemp.IsEmpty = false then
|
||||
begin
|
||||
Application.MessageBox('应付款已审核不能操作', '提示');
|
||||
exit;
|
||||
end;
|
||||
{ FFMYType:=Trim(Order_Main.fieldbyname('MYType').AsString); //加限制财务ChkerP=''已审核''
|
||||
try
|
||||
frmLLRKInPutMH_RCCG:=TfrmLLRKInPutMH_RCCG.Create(Application);
|
||||
with frmLLRKInPutMH_RCCG do
|
||||
begin
|
||||
PState:=1;
|
||||
FMainId:=Trim(Self.Order_Main.fieldbyname('MYId').AsString);
|
||||
FMYType:=Trim(Self.Order_Main.fieldbyname('MYType').AsString);
|
||||
FMYTypeFlag:=Trim(Self.Order_Main.fieldbyname('MYTypeFlag').AsString);
|
||||
labMYType.Caption:=Trim(Self.Order_Main.fieldbyname('MYTypeFlag').AsString)+'加工码单';
|
||||
if ShowModal=1 then
|
||||
begin
|
||||
InitGrid();
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
frmLLRKInPutMH_RCCG.Free;
|
||||
end; }
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.cxTabControl1Change(Sender: TObject);
|
||||
begin
|
||||
InitGrid();
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.ZJStatusChange(Sender: TObject);
|
||||
begin
|
||||
TBFind.Click;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.Tv1DblClick(Sender: TObject);
|
||||
begin
|
||||
ToolButton1.Click;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.v1Column1CustomDrawCell(Sender: TcxCustomGridTableView; ACanvas: TcxCanvas; AViewInfo: TcxGridTableDataCellViewInfo; var ADone: Boolean);
|
||||
var
|
||||
Id, Id10: Integer;
|
||||
begin
|
||||
Id := TV1.GetColumnByFieldName('PS').Index;
|
||||
Id10 := TV1.GetColumnByFieldName('MXHZPS').Index;
|
||||
if (AViewInfo.GridRecord.Values[Id]) <> (AViewInfo.GridRecord.Values[Id10]) then
|
||||
begin
|
||||
ACanvas.Brush.Color := clRed;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.v1Column17CustomDrawCell(Sender: TcxCustomGridTableView; ACanvas: TcxCanvas; AViewInfo: TcxGridTableDataCellViewInfo; var ADone: Boolean);
|
||||
var
|
||||
Id, Id10: Integer;
|
||||
begin
|
||||
Id := TV1.GetColumnByFieldName('KgQty').Index;
|
||||
Id10 := TV1.GetColumnByFieldName('MXHZKgQty').Index;
|
||||
if (AViewInfo.GridRecord.Values[Id]) <> (AViewInfo.GridRecord.Values[Id10]) then
|
||||
begin
|
||||
ACanvas.Brush.Color := clRed;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TfrmLLCKList.v1Column3CustomDrawCell(Sender: TcxCustomGridTableView; ACanvas: TcxCanvas; AViewInfo: TcxGridTableDataCellViewInfo; var ADone: Boolean);
|
||||
var
|
||||
Id, Id10: Integer;
|
||||
begin
|
||||
Id := TV1.GetColumnByFieldName('Qty').Index;
|
||||
Id10 := TV1.GetColumnByFieldName('MXHZQty').Index;
|
||||
if (AViewInfo.GridRecord.Values[Id]) <> (AViewInfo.GridRecord.Values[Id10]) then
|
||||
begin
|
||||
ACanvas.Brush.Color := clRed;
|
||||
end;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
1429
云翔生产管理(MYSC.dll)/U_LLKCList.dfm
Normal file
1429
云翔生产管理(MYSC.dll)/U_LLKCList.dfm
Normal file
File diff suppressed because it is too large
Load Diff
1202
云翔生产管理(MYSC.dll)/U_LLKCList.pas
Normal file
1202
云翔生产管理(MYSC.dll)/U_LLKCList.pas
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -1,6 +1,6 @@
|
|||
object frmLLRKList: TfrmLLRKList
|
||||
Left = 37
|
||||
Top = 72
|
||||
Left = 601
|
||||
Top = 249
|
||||
Width = 1361
|
||||
Height = 698
|
||||
Caption = #23458#25143#26469#26009#20837#24211#30331#35760
|
||||
|
|
@ -20,7 +20,7 @@ object frmLLRKList: TfrmLLRKList
|
|||
object ToolBar1: TToolBar
|
||||
Left = 0
|
||||
Top = 0
|
||||
Width = 1345
|
||||
Width = 1353
|
||||
AutoSize = True
|
||||
ButtonHeight = 30
|
||||
ButtonWidth = 65
|
||||
|
|
@ -106,8 +106,8 @@ object frmLLRKList: TfrmLLRKList
|
|||
object cxGrid1: TcxGrid
|
||||
Left = 0
|
||||
Top = 104
|
||||
Width = 1345
|
||||
Height = 555
|
||||
Width = 1353
|
||||
Height = 563
|
||||
Align = alClient
|
||||
PopupMenu = PopupMenu1
|
||||
TabOrder = 1
|
||||
|
|
@ -319,7 +319,7 @@ object frmLLRKList: TfrmLLRKList
|
|||
object Panel1: TPanel
|
||||
Left = 0
|
||||
Top = 32
|
||||
Width = 1345
|
||||
Width = 1353
|
||||
Height = 72
|
||||
Align = alTop
|
||||
BevelInner = bvRaised
|
||||
|
|
|
|||
|
|
@ -12,7 +12,21 @@ uses
|
|||
RM_Common, RM_Class, RM_GridReport, RM_e_Xls, Menus, cxButtonEdit,
|
||||
cxDropDownEdit, cxPC, Buttons, cxContainer, cxGroupBox, IdBaseComponent,
|
||||
IdComponent, IdTCPConnection, IdTCPClient, IdFTP, ShellAPI, ImgList, StrUtils,
|
||||
cxLookAndFeels, cxLookAndFeelPainters, cxNavigator;
|
||||
cxLookAndFeels, 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
|
||||
TfrmLLRKList = class(TForm)
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -12,7 +12,22 @@ uses
|
|||
ExtCtrls, BtnEdit, cxCalendar,StrUtils, cxDropDownEdit,jpeg,
|
||||
IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdFTP, cxPC,
|
||||
cxGridCustomPopupMenu, cxGridPopupMenu, cxGroupBox, cxCheckBox,
|
||||
RM_Dataset, RM_System, RM_Common, RM_Class, RM_GridReport, Menus;
|
||||
RM_Dataset, RM_System, RM_Common, RM_Class, RM_GridReport, Menus,
|
||||
cxLookAndFeels, cxLookAndFeelPainters, 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,
|
||||
cxNavigator;
|
||||
|
||||
type
|
||||
TfrmLLRKMXInPut = class(TForm)
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ object frmPBCGRKList: TfrmPBCGRKList
|
|||
object ToolBar1: TToolBar
|
||||
Left = 0
|
||||
Top = 0
|
||||
Width = 1540
|
||||
Width = 1548
|
||||
AutoSize = True
|
||||
ButtonHeight = 30
|
||||
ButtonWidth = 65
|
||||
|
|
@ -115,8 +115,8 @@ object frmPBCGRKList: TfrmPBCGRKList
|
|||
object cxGrid1: TcxGrid
|
||||
Left = 0
|
||||
Top = 98
|
||||
Width = 1540
|
||||
Height = 628
|
||||
Width = 1548
|
||||
Height = 636
|
||||
Align = alClient
|
||||
PopupMenu = PopupMenu1
|
||||
TabOrder = 2
|
||||
|
|
@ -291,7 +291,7 @@ object frmPBCGRKList: TfrmPBCGRKList
|
|||
object Panel1: TPanel
|
||||
Left = 0
|
||||
Top = 32
|
||||
Width = 1540
|
||||
Width = 1548
|
||||
Height = 66
|
||||
Align = alTop
|
||||
BevelInner = bvRaised
|
||||
|
|
|
|||
|
|
@ -11,7 +11,20 @@ uses
|
|||
cxGrid, DBClient, cxCheckBox, cxCalendar, cxSplitter, RM_Dataset, RM_System,
|
||||
RM_Common, RM_Class, RM_GridReport, RM_e_Xls, Menus, cxButtonEdit,
|
||||
cxDropDownEdit, cxPC, Buttons, cxLookAndFeels, cxLookAndFeelPainters,
|
||||
cxNavigator, BtnEdit;
|
||||
cxNavigator, BtnEdit, 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
|
||||
TfrmPBCGRKList = class(TForm)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user