⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gosh.h

📁 速达开源ERP系统
💻 H
字号:
//---------------------------------------------------------------------------

#ifndef GoshH
#define GoshH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "DateEdit.hpp"
#include "fpanel.h"
#include "GenBaseForm.h"
#include "SDComboBox.h"
#include "SDEdit.h"
#include "SDGrid.h"
#include <Buttons.hpp>
#include <ComCtrls.hpp>
#include <Grids.hpp>
#include <ImgList.hpp>
#include <Mask.hpp>
#include <Menus.hpp>
#include <ToolWin.hpp>
#include <Dialogs.hpp>
#include "GoodsQuery.h"
//---------------------------------------------------------------------------
class PACKAGE TfrmGosh ;
class TfrmGosh : public TGenBaseForm
{
__published:	// IDE-managed Components
    TFloatPanel *FloatPanel1;
    TLabel *Label10;
    TLabel *labGoshSysDate;
    TFloatPanel *FloatPanel2;
    TBitBtn *btnOK;
    TBitBtn *btnCancel;
    TFloatPanel *FloatPanel3;
    TLabel *Label36;
    TLabel *Label22;
    TLabel *Label24;
    TLabel *labGoshUser;
    TLabel *labGoshPoster;
    TLabel *labGoshChecker;
    TSDGrid *sgGosh;
        TLabel *Label18;
        TSDEdit *seGosdLine;
        TLabel *Label19;
        TLabel *Label20;
        TSDComboBox *scGosdUnit;
        TLabel *Label23;
        TSDEdit *seGosdPrice;
        TLabel *Label13;
        TSDEdit *seGosdSod;
        TLabel *Label14;
        TLabel *Label15;
        TLabel *Label16;
        TSDComboBox *scGosdBatch;
        TLabel *Label21;
        TMemo *memGosdDesc;
        TLabel *labGosdGoodsName;
        TLabel *Label8;
        TLabel *Label12;
        TSDEdit *seGosdQty;
        TLabel *Label1;
        TLabel *Label3;
        TSDComboBox *scGoshType;
        TLabel *Label9;
        TDateEdit *deGoshDate;
        TLabel *Label2;
        TSDComboBox *scGoshFmonth;
        TSDComboBox *scGoshPosType;
        TLabel *Label7;
        TLabel *Label11;
        TSDComboBox *scGoshState;
        TCheckBox *chkGoshCheck;
        TCheckBox *chkGoshCancel;
        TCheckBox *chkGoshPost;
        TCheckBox *chkGoshRed;
        TLabel *Label6;
        TLabel *Label17;
        TMemo *memGoshDesc;
        TSDEdit *seGosdGoods;
        TLabel *Label4;
        TSDComboBox *scGosdState;
        TSDEdit *seGoshCode;
  TLabel *Label27;
  TSDComboBox *scGoshDept;
  TLabel *Label28;
  TSDEdit *seGosdAmt;
  TLabel *Label5;
  TSDComboBox *scGosdFrom;
  TLabel *Label25;
  TSDEdit *seGosdFromCode;
  TLabel *Label26;
  TSDEdit *seGosdFromLine;
        TSDEdit *seGosdSodLine;
        TSDComboBox *scGoshKeeper;
        TSDEdit *seGosdLoc;
    void __fastcall FormCreate(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall FormShow(TObject *Sender);
    void __fastcall sgGoshSelectCell(TObject *Sender, int ACol, int ARow,
           bool &CanSelect);
    void __fastcall sgGoshDblClick(TObject *Sender);
    void __fastcall btnOKClick(TObject *Sender);
    void __fastcall btnCancelClick(TObject *Sender);
        void __fastcall seGosdGoodsButtonClick(TObject *Sender);
  void __fastcall scGoshTypeChange(TObject *Sender);
  void __fastcall seGosdQtyExit(TObject *Sender);
        void __fastcall seGosdGoodsExit(TObject *Sender);
        void __fastcall seGosdLocButtonClick(TObject *Sender);
        void __fastcall seGosdSodButtonClick(TObject *Sender);
        void __fastcall seGoshCodeExit(TObject *Sender);

private:	// User declarations
    AnsiString pv_GoodsCode;
    AnsiString __fastcall GetHeadValue(int Index);
    AnsiString __fastcall GetItemStringToGrid();
    void __fastcall SetHeadValue(int Index ,AnsiString Value);
    void __fastcall RefreshUpdateData(int MsgSrc,int MsgType);
    void __fastcall SetDetail(AnsiString gc);
      void __fastcall UnDoChange(){};
public:		// User declarations
    AnsiString FormIniFile;
    int MaxLineNum;//最大行号
    AnsiString __fastcall GetDetailValue(int FieldIndex);
    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 agree=false);
    void __fastcall GenrateBill();
    void __fastcall SetDetailValue(int Index, AnsiString Value);
    void __fastcall BackDisp();
    
    __fastcall TfrmGosh(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmGosh *frmGosh;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -