12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #include "stdafx.h"
- #include "ylgl.h"
- #include "IsGrowthTx.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- IsGrowthTx::IsGrowthTx(CWnd* pParent ): CDialog(IsGrowthTx::IDD, pParent)
- {
- m_bGrowthTx = 0;
- m_mode = 0;
- }
- void IsGrowthTx::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- DDX_Control(pDX, IDC_COMBO1, m_combo1);
- }
- BEGIN_MESSAGE_MAP(IsGrowthTx, CDialog)
- END_MESSAGE_MAP()
- BOOL IsGrowthTx::OnInitDialog()
- {
- CDialog::OnInitDialog();
- g_sendhead.bsql = 0;
- CString filter = "id='" + m_strOrderNumber + "';id='" + m_strOrderNumber + "'";
- g_sendhead.code[0] = 11;
- g_sendhead.code[1] = 150;
- g_sendhead.tabcount = 2;
-
- g_pMainWnd->ProcessChatMessageRequest2(filter);
-
- if (g_bSendOK == 0)
- {
- m_bReturnOK = 0;
- CDialog::OnCancel();
- return 0;
- }
- CArray<CStringArray, CStringArray>jdarray;
- DataToArray(&g_List1array, &jdarray);
- m_bReturnOK = 1;
-
- if ("成长套系" == g_List1array.ElementAt(0).ElementAt(52))
- {
- m_bGrowthTx = 1;
-
- if (m_mode == 1)
- m_combo1.AddString("全部");
- for (int i = 0; i < jdarray.GetSize(); i++)
- m_combo1.AddString(jdarray.ElementAt(i).ElementAt(1));
- m_combo1.SetCurSel(0);
- }
- else
- {
- CDialog::OnCancel();
- return 0;
- }
- CenterWindow();
- return TRUE;
- }
- void IsGrowthTx::OnOK()
- {
- int pos = m_combo1.GetCurSel();
- if (pos == -1)
- {
- AfxMessageBox("请选择此次拍摄名称!", MB_ICONINFORMATION);
- return;
- }
- m_combo1.GetLBText(pos, m_seltxname);
- CDialog::OnOK();
- }
|