123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- #ifndef __DLG_SCAN_BARCODE__
- #define __DLG_SCAN_BARCODE__
- #include "afxwin.h"
- #include ".\list\SortListCtrl.h"
- #pragma once
- class CEnEdit : public CEdit
- {
- DECLARE_DYNAMIC(CEnEdit)
- public:
- CEnEdit();
- virtual ~CEnEdit();
- int m_nLines;
- CDialog* m_pParent;
- BOOL m_bLockKbdLayout;
- protected:
- virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
- DECLARE_MESSAGE_MAP()
- HKL m_DefaultHKL;
- HKL m_Save_KbdLayout;
- HKL GetDefaultKbdLayout();
- public:
- afx_msg void OnEnKillfocus();
- afx_msg void OnEnSetfocus();
-
- };
- typedef struct __OrderItems__ {
- int nIndex;
- CString strOrder;
- CString strAutoId;
- CString strSPId;
- CString strSPName;
- CString strSPLb;
- CString strBackStatus;
- CString strPickupStatus;
- CString strShuliang;
- CString strBackCot;
- CString strPickupCot;
- __OrderItems__()
- {
- nIndex = -1;
- strOrder = _T("");
- strAutoId = _T("");
- strSPId = _T("");
- strSPName = _T("");
- strSPLb = _T("");
- strBackStatus = _T("");
- strPickupStatus = _T("");
- strShuliang = _T("");
- strBackCot = _T("");
- strPickupCot = _T("");
- }
- const __OrderItems__& operator=(const __OrderItems__ &others)
- {
- if ( &others == this )
- return *this;
- nIndex = others.nIndex;
- strOrder = others.strOrder;
- strAutoId = others.strAutoId;
- strSPId = others.strSPId;
- strSPName = others.strSPName;
- strSPLb = others.strSPLb;
- strBackStatus = others.strBackStatus;
- strPickupStatus = others.strPickupStatus;
- strShuliang = others.strShuliang;
- strBackCot = others.strBackCot;
- strPickupCot = others.strPickupCot;
- return *this;
- }
- }OrderItems, *pOrderItems;
- typedef struct __OUTWAREHOUSE__
- {
- int nIndex;
- CString strOrder;
- CString strSPLB;
- CString strSPName;
- CString strCount;
- CString strDate;
- CString strClerk;
- CString strRemark;
- __OUTWAREHOUSE__()
- {
- nIndex = -1;
- strOrder = _T("");
- strSPLB = _T("");
- strSPName = _T("");
- strCount = _T("");
- strDate = _T("");
- strClerk = _T("");
- strRemark = _T("");
- }
- const __OUTWAREHOUSE__& operator=(const __OUTWAREHOUSE__& others)
- {
- if ( &others == this )
- return *this;
- nIndex = others.nIndex;
- strOrder = others.strOrder;
- strSPLB = others.strSPLB;
- strSPName = others.strSPName;
- strCount = others.strCount;
- strDate = others.strDate;
- strClerk = others.strClerk;
- strRemark = others.strRemark;
- return *this;
- }
- }OutWarehouse, *pOutWarehouse;
- typedef struct __WITHIN__
- {
- int nIndex;
- CString strBarCode;
- }WithIn, *pWithIn;
- class CDlgScanBarCode : public CDialog
- {
- DECLARE_DYNAMIC(CDlgScanBarCode)
- public:
- CDlgScanBarCode(CWnd* pParent = NULL);
- virtual ~CDlgScanBarCode();
- enum { IDD = IDD_DLG_SCANBARCODE };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX);
- DECLARE_MESSAGE_MAP()
- public:
- virtual BOOL OnInitDialog();
- protected:
- virtual void OnOK();
- public:
-
- int m_nScanMode;
-
- CEnEdit m_EtBarCode;
-
- CStringArray m_AryWithOut;
-
- vector<WithIn> m_vtWithIn;
-
- CArray<CStringArray, CStringArray> m_AryOrderItems;
-
- CArray<CStringArray, CStringArray> m_AryOutWarehouse;
-
- void DealScanBarCode(const int& nlines);
-
- void InitSortList();
-
- CSortListCtrl m_ScanResult;
- protected:
- virtual void OnCancel();
- };
- #endif
|