📄 scraph.h
字号:
//---------------------------------------------------------------------------
#ifndef ScraphH
#define ScraphH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "BillBaseForm.h"
#include "DateEdit.hpp"
#include "fpanel.h"
#include "SDComboBox.h"
#include "SDEdit.h"
#include <ComCtrls.hpp>
#include <ImgList.hpp>
#include <Mask.hpp>
#include <Menus.hpp>
#include <ToolWin.hpp>
#include "SDGrid.h"
#include <Buttons.hpp>
#include <Grids.hpp>
#include <Dialogs.hpp>
#include <ExtCtrls.hpp>
#include "GoodsQuery.h"
//---------------------------------------------------------------------------
class PACKAGE TfrmScraph ;
class TfrmScraph : public TBillBaseForm
{
__published: // IDE-managed Components
TFloatPanel *fpScrapHead;
TLabel *Label1;
TLabel *Label9;
TLabel *Label4;
TLabel *Label6;
TLabel *Label8;
TLabel *Label20;
TLabel *Label18;
TLabel *Label19;
TLabel *Label10;
TLabel *Label5;
TLabel *Label12;
TLabel *Label13;
TFloatPanel *fpScrapDetail;
TSDEdit *seScraphCode;
TDateEdit *deScraphDate;
TSDComboBox *scScraphFmonth;
TSDComboBox *scScraphPosType;
TSDComboBox *scScraphDept;
TSDEdit *seScrapdLine;
TBitBtn *btnOK;
TBitBtn *btnCancel;
TSDGrid *sgScraph;
TGroupBox *GroupBox2;
TGroupBox *GroupBox3;
TGroupBox *GroupBox4;
TLabel *Label3;
TLabel *labSysDate;
TMemo *memDesc;
TSDComboBox *scScrapdSr;
TLabel *Label16;
TLabel *Label15;
TSDEdit *seScrapdQty;
TLabel *Label22;
TLabel *Label11;
TSDEdit *seScrapdSod;
TSDComboBox *scScrapdUnit;
TMemo *memScrapdDesc;
TLabel *labScrapdGoodsName;
TFloatPanel *FloatPanel3;
TLabel *Label2;
TLabel *labScraphChecker;
TLabel *Label14;
TLabel *labScraphUser;
TCheckBox *cbxScraphCheck;
TCheckBox *cbxScraphCancel;
TSDEdit *seScrapdGoods;
TLabel *Label17;
TSDComboBox *scScraphState;
TLabel *Label23;
TSDEdit *seScrapdBfAmt;
TLabel *Label24;
TSDEdit *seScrapdHsAmt;
TLabel *Label7;
TSDComboBox *scScrapdLoc;
TLabel *Label21;
TSDComboBox *scScrapdBatch;
TSDEdit *seScrapdSodLine;
TSDComboBox *scScraphKeeper;
void __fastcall FormCreate(TObject *Sender);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
void __fastcall FormShow(TObject *Sender);
void __fastcall sgScraphSelectCell(TObject *Sender, int ACol, int ARow,
bool &CanSelect);
void __fastcall sgScraphDblClick(TObject *Sender);
void __fastcall btnOKClick(TObject *Sender);
void __fastcall btnCancelClick(TObject *Sender);
void __fastcall seScrapdGoodsButtonClick(TObject *Sender);
void __fastcall seScrapdGoodsExit(TObject *Sender);
void __fastcall seScrapdSodButtonClick(TObject *Sender);
void __fastcall scScrapdLocChange(TObject *Sender);
void __fastcall seScraphCodeExit(TObject *Sender);
private: // User declarations
AnsiString pv_GoodsCode;
AnsiString __fastcall GetDataToGrid();
AnsiString __fastcall GetDetailValue(int FieldIndex);
AnsiString __fastcall GetHeadValue(int Index);
void __fastcall SetHeadValue(int Index ,AnsiString Value);
void __fastcall SetDetailValue(int Index, AnsiString Value);
void __fastcall RefreshUpdateData(int MsgSrc,int MsgType);
void __fastcall SetDetail(AnsiString gc);
void __fastcall UnDoChange(){};
public: // User declarations
AnsiString FormIniFile;
void __fastcall InitEditControl();
void __fastcall ClearControl(int Section,bool BringToNext);
void __fastcall GetDataFromComObject(int Section);
void __fastcall SendDataToComObject(int Section);
void __fastcall WaitUserInput(int Section);
void __fastcall RefreshGridData(int mAction);
void __fastcall DisplayBill();
void __fastcall GetBill(AnsiString BillID);
void __fastcall FillGridWithData();
void __fastcall ChangeToBrowseState(bool Browse=false);
__fastcall TfrmScraph(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmScraph *frmScraph;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -