ClientMoney.cpp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  1. // ClientMoney.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "ylgl.h"
  5. #include "ClientMoney.h"
  6. #include "MyMdi.H"
  7. #include "ModifyDinDan.h"
  8. #include "NeroDlg.h"
  9. #include "ClientRequirement.h"
  10. #include "ChooseDesignSkin.h"
  11. #include "./helper/ffsco.h"
  12. #include "TakeMoney4.h"
  13. #ifdef _DEBUG
  14. #define new DEBUG_NEW
  15. #undef THIS_FILE
  16. static char THIS_FILE[] = __FILE__;
  17. #endif
  18. #pragma comment(lib, "Shlwapi.lib")
  19. /////////////////////////////////////////////////////////////////////////////
  20. // ClientMoney
  21. IMPLEMENT_DYNCREATE(ClientMoney, MyFormView)
  22. ClientMoney::ClientMoney()
  23. : MyFormView(ClientMoney::IDD)
  24. {
  25. //{{AFX_DATA_INIT(ClientMoney)
  26. m_filter = _T("");
  27. m_check1 = FALSE;
  28. m_check2 = FALSE;
  29. //}}AFX_DATA_INIT
  30. }
  31. ClientMoney::~ClientMoney()
  32. {
  33. }
  34. void ClientMoney::DoDataExchange(CDataExchange* pDX)
  35. {
  36. MyFormView::DoDataExchange(pDX);
  37. //{{AFX_DATA_MAP(ClientMoney)
  38. DDX_Control(pDX, IDC_COMBO1, m_combo1);
  39. DDX_Control(pDX, IDC_LIST2, m_List1);
  40. DDX_Control(pDX, IDC_STATIC1, m_static1);
  41. DDX_CBString(pDX, IDC_COMBO1, m_filter);
  42. DDX_Check(pDX, IDC_CHECK1, m_check1);
  43. DDX_Check(pDX, IDC_CHECK2, m_check2);
  44. //}}AFX_DATA_MAP
  45. }
  46. BEGIN_MESSAGE_MAP(ClientMoney, MyFormView)
  47. //{{AFX_MSG_MAP(ClientMoney)
  48. ON_BN_CLICKED(IDC_BUTclose, OnBUTclose)
  49. ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
  50. ON_CBN_SELCHANGE(IDC_COMBO1, OnSelchangeCombo1)
  51. ON_WM_TIMER()
  52. ON_BN_CLICKED(IDC_BUTshowphoto, OnBUTshowphoto)
  53. ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
  54. ON_NOTIFY(LVN_ITEMCHANGED, IDC_LIST2, OnItemchangedList2)
  55. ON_BN_CLICKED(IDC_BUTburncd, OnBUTClientMoney)
  56. ON_NOTIFY(NM_DBLCLK, IDC_LIST2, OnDblclkList2)
  57. ON_NOTIFY(NM_CLICK, IDC_LIST2, OnClickList2)
  58. ON_BN_CLICKED(IDC_BUTburncd2, OnBUTburncd2)
  59. ON_BN_CLICKED(IDC_CHECK1, OnCheck1)
  60. ON_BN_CLICKED(IDC_CHECK2, OnCheck2)
  61. //}}AFX_MSG_MAP
  62. ON_NOTIFY(NM_CUSTOMDRAW, IDC_LIST2, OnCustomdrawList)
  63. END_MESSAGE_MAP()
  64. /////////////////////////////////////////////////////////////////////////////
  65. // ClientMoney diagnostics
  66. #ifdef _DEBUG
  67. void ClientMoney::AssertValid() const
  68. {
  69. MyFormView::AssertValid();
  70. }
  71. void ClientMoney::Dump(CDumpContext& dc) const
  72. {
  73. MyFormView::Dump(dc);
  74. }
  75. #endif //_DEBUG
  76. /////////////////////////////////////////////////////////////////////////////
  77. // ClientMoney message handlers
  78. void ClientMoney::OnInitialUpdate()
  79. {
  80. //AfxMessageBox("Jeff.......");
  81. MyFormView::OnInitialUpdate();
  82. // TODO: Add your specialized code here and/or call the base class
  83. CMyMdi Mdi;
  84. Mdi.SetSubView((CWnd*)GetParent(), (CWnd*)this);
  85. GetDlgItem(IDC_BUTburncd2)->EnableWindow(IsHasRights2new(49));
  86. // Here we create the outbar control using the splitter as its parent
  87. // and setting its id to the first pane.
  88. CRect rc2;
  89. GetWindowRect(rc2);
  90. ::MoveWindow(m_hWnd, g_rc.left, g_rc.top, g_rc.Width(), g_rc.Height(), TRUE);
  91. EnumChildWindows(m_hWnd, (WNDENUMPROC)EnumChildProc, 0);
  92. m_static1.SetFont(&g_titlefont);
  93. #ifdef CHILD_VERSION
  94. m_List1.SetHeadings("订单号,100;家长姓名,100;宝宝姓名,100;是否取件,100;应付,100;前期,100;后期,100;已付,100;欠款,100;门市,100;套系名称,100;套系价格,100;手机,100;固定电话,100" );
  95. #else
  96. m_List1.SetHeadings("订单号,100;男宾姓名,100;女宾姓名,100;是否取件,100;应付,100;前期,100;后期,100;已付,100;欠款,100;门市,100;套系名称,100;套系价格,100;男宾电话,100;女宾电话,100");
  97. #endif
  98. m_List1.LoadColumnInfo(126);
  99. if (0)//g_bShowOK==0)
  100. {
  101. #ifdef LKAY_VERSION
  102. CString filter="status3='未取' and (dindantype<>'意向客户' or dindantype is null)";
  103. #else
  104. CString filter = "status3='未取'";
  105. #endif
  106. g_sendhead.bsql = 0;
  107. g_sendhead.code[0] = 62;
  108. g_sendhead.tabcount = 1;
  109. g_pMainWnd->ProcessChatMessageRequest2(filter); if (g_bSendOK == 0)return;
  110. }
  111. else
  112. {
  113. g_sendhead.bsql = 0;
  114. g_sendhead.code[0] = 62;
  115. g_sendhead.tabcount = 1;
  116. #ifdef LKAY_VERSION
  117. CString filter="dindantype<>'意向客户' or dindantype is null";
  118. g_pMainWnd->ProcessChatMessageRequest2(filter);
  119. #else
  120. g_pMainWnd->ProcessChatMessageRequest2(1);
  121. #endif
  122. if (g_bSendOK == 0)return;
  123. }
  124. DataToArray(&m_List1array); HidePrice();
  125. FillGrid();
  126. m_combo1.GetWindowRect(rc2);
  127. ScreenToClient(rc2);
  128. rc2.bottom += 200;
  129. m_combo1.MoveWindow(rc2);
  130. GetDlgItem(IDC_BUTclose)->GetWindowRect(rc2);
  131. SetComboHei(&m_combo1, rc2.Height());
  132. }
  133. void ClientMoney::FillGrid(BOOL bStatus)
  134. {
  135. m_List1.DeleteAllItems2();
  136. int ii = 0;
  137. m_List1.m_arLabels.SetSize(m_List1array.GetSize(), 1);
  138. int count = 0;
  139. if (m_filter.IsEmpty() || m_check1 || m_check2)
  140. {
  141. if (m_check1 || m_check2)//电话
  142. {
  143. for (ii = 0; ii < m_List1.m_arLabels.GetSize(); ii++)
  144. {
  145. if (m_check1)
  146. {
  147. if (m_List1array.ElementAt(ii).ElementAt(3) != "OK")continue;
  148. }
  149. if (m_check2)
  150. {
  151. if (atoi(m_List1array.ElementAt(ii).ElementAt(8)) == 0)continue;
  152. }
  153. m_List1.m_arLabels.ElementAt(count++).Copy(m_List1array.ElementAt(ii));
  154. }
  155. }
  156. else
  157. {
  158. for (ii = 0; ii < m_List1.m_arLabels.GetSize(); ii++)
  159. {
  160. m_List1.m_arLabels.ElementAt(count++).Copy(m_List1array.ElementAt(ii));
  161. }
  162. }
  163. }
  164. else
  165. {
  166. int type = GetType(m_filter);
  167. if (type == 1)//电话
  168. {
  169. for (ii = 0; ii < m_List1.m_arLabels.GetSize(); ii++)
  170. {
  171. if (m_List1array.ElementAt(ii).ElementAt(13).Find(m_filter) != -1 || \
  172. m_List1array.ElementAt(ii).ElementAt(12).Find(m_filter) != -1)
  173. {
  174. m_List1.m_arLabels.ElementAt(count++).Copy(m_List1array.ElementAt(ii));
  175. }
  176. }
  177. }
  178. else if (type == 2)//拼音
  179. {
  180. m_filter.MakeUpper();
  181. for (ii = 0; ii < m_List1.m_arLabels.GetSize(); ii++)
  182. {
  183. if (m_List1array.ElementAt(ii).ElementAt(15).Find(m_filter) != -1 || \
  184. m_List1array.ElementAt(ii).ElementAt(14).Find(m_filter) != -1)
  185. {
  186. m_List1.m_arLabels.ElementAt(count++).Copy(m_List1array.ElementAt(ii));
  187. }
  188. }
  189. }
  190. else
  191. {
  192. for (ii = 0; ii < m_List1.m_arLabels.GetSize(); ii++)
  193. {
  194. if (m_List1array.ElementAt(ii).ElementAt(0).Find(m_filter) != -1 || \
  195. m_List1array.ElementAt(ii).ElementAt(1).Find(m_filter) != -1 || \
  196. m_List1array.ElementAt(ii).ElementAt(2).Find(m_filter) != -1 || \
  197. m_List1array.ElementAt(ii).ElementAt(7).Find(m_filter) != -1 || \
  198. m_List1array.ElementAt(ii).ElementAt(8).Find(m_filter) != -1 || \
  199. m_List1array.ElementAt(ii).ElementAt(9).Find(m_filter) != -1 || \
  200. m_List1array.ElementAt(ii).ElementAt(10).Find(m_filter) != -1 || \
  201. m_List1array.ElementAt(ii).ElementAt(11).Find(m_filter) != -1 || \
  202. m_List1array.ElementAt(ii).ElementAt(12).Find(m_filter) != -1 || \
  203. m_List1array.ElementAt(ii).ElementAt(13).Find(m_filter) != -1)
  204. {
  205. m_List1.m_arLabels.ElementAt(count++).Copy(m_List1array.ElementAt(ii));
  206. }
  207. }
  208. }
  209. }
  210. m_List1.m_arLabels.SetSize(count, 1);
  211. ii = count;
  212. m_List1.m_LabelCount = ii;
  213. m_List1.SetItemCountEx(ii);
  214. CString str;
  215. str.Format("单数:%d", ii);
  216. SetDlgItemText(IDC_STATIC2, str);
  217. if (!g_id.IsEmpty())
  218. {
  219. for (int i = 0; i < m_List1.GetItemCount(); i++)
  220. {
  221. if (g_id == m_List1.GetItemText(i, 0))
  222. {
  223. m_List1.SetItemState(i, LVIS_SELECTED | LVIS_FOCUSED, LVIS_SELECTED | LVIS_FOCUSED);
  224. m_List1.EnsureVisible(i, FALSE);
  225. break;
  226. }
  227. }
  228. }
  229. }
  230. void ClientMoney::OnBUTclose()
  231. {
  232. // TODO: Add your control notification handler code here
  233. GetParent()->SendMessage(WM_CLOSE);
  234. }
  235. void ClientMoney::OnSelchangeCombo1()
  236. {
  237. // TODO: Add your control notification handler code here
  238. SetTimer(1, 100, NULL);
  239. }
  240. void ClientMoney::OnTimer(UINT nIDEvent)
  241. {
  242. // TODO: Add your message handler code here and/or call default
  243. KillTimer(nIDEvent);
  244. OnButton1();
  245. }
  246. BOOL ClientMoney::PreTranslateMessage(MSG* pMsg)
  247. {
  248. // TODO: Add your specialized code here and/or call the base class
  249. try
  250. {
  251. if (pMsg->message == WM_KEYDOWN)
  252. {
  253. switch (pMsg->wParam)
  254. {
  255. case VK_RETURN:
  256. OnButton1();
  257. return 1;
  258. case 0x43: // copy
  259. if ((GetKeyState(VK_CONTROL) & 0x80))
  260. {
  261. GetFocus()->SendMessage(WM_COPY);
  262. return TRUE;
  263. }
  264. break;
  265. case 0x56: //Ctrl + V:
  266. if ((GetKeyState(VK_CONTROL) & 0x80))
  267. {
  268. GetFocus()->SendMessage(WM_PASTE);
  269. return TRUE;
  270. }
  271. break;
  272. case 0x58: // cut
  273. if ((GetKeyState(VK_CONTROL) & 0x80))
  274. {
  275. GetFocus()->SendMessage(WM_CUT);
  276. return TRUE;
  277. }
  278. break;
  279. case 0x5A: //undo
  280. case 0x59: //redo
  281. if ((GetKeyState(VK_CONTROL) & 0x80))
  282. {
  283. GetFocus()->SendMessage(WM_UNDO);
  284. return TRUE;
  285. }
  286. break;
  287. }
  288. }
  289. }
  290. catch (...)
  291. {
  292. }
  293. return MyFormView::PreTranslateMessage(pMsg);
  294. }
  295. extern int CALLBACK BrowseProc(HWND hwnd, UINT msg, LPARAM lParam, LPARAM lpData);
  296. /*{
  297. switch(msg)
  298. {
  299. case BFFM_INITIALIZED:
  300. SendMessage(hwnd, BFFM_SETSELECTION, TRUE, NULL);
  301. break;
  302. case BFFM_SELCHANGED:
  303. {
  304. char szFileName[MAX_PATH];
  305. LPITEMIDLIST pidlCurrent = (LPITEMIDLIST)lParam;
  306. SHGetPathFromIDList(pidlCurrent, szFileName);
  307. SendMessage(hwnd, BFFM_SETSTATUSTEXT, 0, (LPARAM)szFileName);
  308. }
  309. break;
  310. }
  311. return 0;
  312. }*/
  313. void ClientMoney::GetSavePath(CString &path)
  314. {
  315. char lpszDisplayName[MAX_PATH], szFileName[MAX_PATH];
  316. LPITEMIDLIST pidlDesktop, pidlCurrent;
  317. if (SHGetSpecialFolderLocation(NULL, CSIDL_DESKTOP, &pidlDesktop)
  318. == NOERROR)
  319. {
  320. BROWSEINFO bi;
  321. bi.hwndOwner = this->m_hWnd;
  322. bi.pidlRoot = pidlDesktop;
  323. bi.pszDisplayName = lpszDisplayName;
  324. bi.lpszTitle = "\n文档保存的目录:";
  325. bi.ulFlags = BIF_STATUSTEXT&BIF_RETURNONLYFSDIRS;
  326. bi.lpfn = BrowseProc;
  327. bi.lParam = 0;
  328. bi.iImage = 0;
  329. pidlCurrent = SHBrowseForFolder(&bi);
  330. SHGetPathFromIDList(pidlCurrent, szFileName);
  331. path = szFileName;
  332. }
  333. }
  334. int ClientMoney::FindArray(CStringArray *pArray, CString Str)
  335. {
  336. for (int i = 0; i < pArray->GetSize(); i++)
  337. {
  338. if (pArray->ElementAt(i) == Str)
  339. return i;
  340. }
  341. return -1;
  342. }
  343. void ClientMoney::GetNo(CString str, CStringArray &array)
  344. {
  345. if (!str.IsEmpty())
  346. {
  347. #ifdef USE_SEP_VEB
  348. int pos = str.Find(SEPS_VEB);
  349. #else
  350. int pos = str.Find(",");
  351. #endif
  352. while (pos != -1)
  353. {
  354. if (FindArray(&array, str.Left(pos)) == -1)
  355. array.Add(str.Left(pos));
  356. str = str.Right(str.GetLength() - pos - 1);
  357. #ifdef USE_SEP_VEB
  358. pos = str.Find(SEPS_VEB);
  359. #else
  360. pos = str.Find(",");
  361. #endif
  362. }
  363. if (FindArray(&array, str) == -1)
  364. array.Add(str);
  365. }
  366. }
  367. CString ClientMoney::GetSelName(CString name, CArray<CStringArray, CStringArray>&spnamearray)
  368. {
  369. CString ret;
  370. #ifdef USE_SEP_VEB
  371. name = SEPS_VEB + name + SEPS_VEB;
  372. #else
  373. name = "," + name + ",";
  374. #endif
  375. CString str;
  376. for (int i = 0; i < spnamearray.GetSize(); i++)
  377. {
  378. #ifdef USE_SEP_VEB
  379. str = SEPS_VEB + spnamearray.ElementAt(i).ElementAt(6) + SEPS_VEB;
  380. #else
  381. str = "," + spnamearray.ElementAt(i).ElementAt(6) + ",";
  382. #endif
  383. if (str.Find(name) != -1)
  384. {
  385. ret += spnamearray.ElementAt(i).ElementAt(5);
  386. ret += ";";
  387. }
  388. }
  389. ret.TrimRight(";");
  390. ret.Replace("*", "x");
  391. return ret;
  392. }
  393. void ClientMoney::OnBUTshowphoto()
  394. {
  395. // TODO: Add your control notification handler code here
  396. POSITION pos;
  397. pos = m_List1.GetFirstSelectedItemPosition();
  398. if (pos == NULL)
  399. {
  400. AfxMessageBox("请先选中您要查看的定单!", MB_ICONINFORMATION);
  401. return;
  402. }
  403. int iItem = m_List1.GetNextSelectedItem(pos);
  404. CString status = m_List1.GetItemText(iItem, 4);
  405. CString id = m_List1.GetItemText(iItem, 0);
  406. if (status == "未设计")
  407. {
  408. AfxMessageBox("此单未导片!", MB_ICONINFORMATION);
  409. return;
  410. }
  411. /* ShowPic dlg;
  412. dlg.m_path=g_path3+"\\";
  413. dlg.m_path+=id;
  414. dlg.m_path +="\\";
  415. dlg.DoModal ();*/
  416. ChooseDesignSkin dlg;
  417. dlg.SetLiaPath("3.lia");
  418. dlg.m_strOrderNumber = id;
  419. dlg.m_path = g_path3 + "\\";
  420. dlg.m_path += id;
  421. dlg.m_path += "\\";
  422. dlg.DoModal();
  423. for (int i = 0; i < m_List1array.GetSize(); i++)
  424. {
  425. if (id == m_List1array.ElementAt(i).ElementAt(0))
  426. {
  427. m_List1array.ElementAt(i).SetAt(7, dlg.m_bz2);
  428. // FillGrid();
  429. break;
  430. }
  431. }
  432. }
  433. void ClientMoney::OnButton1()
  434. {
  435. // TODO: Add your control notification handler code here
  436. UpdateData();
  437. m_filter.TrimLeft();
  438. m_filter.TrimRight();
  439. FillGrid();
  440. }
  441. void ClientMoney::OnButton2()
  442. {
  443. // TODO: Add your control notification handler code here
  444. }
  445. void ClientMoney::OnItemchangedList2(NMHDR* pNMHDR, LRESULT* pResult)
  446. {
  447. NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
  448. // TODO: Add your control notification handler code here
  449. POSITION pos;
  450. pos = m_List1.GetFirstSelectedItemPosition();
  451. if (pos == NULL)
  452. {
  453. return;
  454. }
  455. int iItem = m_List1.GetNextSelectedItem(pos);
  456. CString waiter4 = m_List1.GetItemText(iItem, 10);
  457. if (waiter4.IsEmpty() && IsHasRights2new(7) || IsHasRights2new(49))
  458. {
  459. GetDlgItem(IDC_BUTimportphoto)->EnableWindow(1);
  460. }
  461. else if (waiter4 == g_user.name && IsHasRights2new(7))
  462. {
  463. GetDlgItem(IDC_BUTimportphoto)->EnableWindow(1);
  464. }
  465. else
  466. GetDlgItem(IDC_BUTimportphoto)->EnableWindow(0);
  467. *pResult = 0;
  468. }
  469. void ClientMoney::OnBUTClientMoney()
  470. {
  471. POSITION pos;
  472. pos = m_List1.GetFirstSelectedItemPosition();
  473. if (pos == NULL)
  474. {
  475. return;
  476. }
  477. int iItem = m_List1.GetNextSelectedItem(pos);
  478. CString id = m_List1.GetItemText(iItem, 0);
  479. TakeMoney4 dlg;
  480. dlg.m_mode = 5;
  481. dlg.m_id = id;
  482. dlg.m_name1 = m_List1.GetItemText(iItem, 1);
  483. dlg.m_name2 = m_List1.GetItemText(iItem, 2);
  484. if (dlg.DoModal() != IDOK)return;
  485. }
  486. void ClientMoney::OnDblclkList2(NMHDR* pNMHDR, LRESULT* pResult)
  487. {
  488. // TODO: Add your control notification handler code here
  489. OnBUTClientMoney();
  490. *pResult = 0;
  491. }
  492. void ClientMoney::OnCustomdrawList(NMHDR* pNMHDR, LRESULT* pResult)
  493. {
  494. NMLVCUSTOMDRAW* pLVCD = reinterpret_cast<NMLVCUSTOMDRAW*>(pNMHDR);
  495. // Take the default processing unless we set this to something else below.
  496. *pResult = 0;
  497. // First thing - check the draw stage. If it's the control's prepaint
  498. // stage, then tell Windows we want messages for every item.
  499. if (CDDS_PREPAINT == pLVCD->nmcd.dwDrawStage)
  500. {
  501. *pResult = CDRF_NOTIFYITEMDRAW;
  502. }
  503. else if (CDDS_ITEMPREPAINT == pLVCD->nmcd.dwDrawStage)
  504. {
  505. // This is the prepaint stage for an item. Here's where we set the
  506. // item's text color. Our return value will tell Windows to draw the
  507. // item itself, but it will use the new color we set here.
  508. // We'll cycle the colors through red, green, and light blue.
  509. if (m_List1.m_arLabels.ElementAt(pLVCD->nmcd.dwItemSpec).ElementAt(8) != "0")
  510. pLVCD->clrText = RGB(220, 0, 0);
  511. else
  512. pLVCD->clrText = RGB(20, 133, 20);
  513. if (pLVCD->nmcd.dwItemSpec % 2)
  514. pLVCD->clrTextBk = g_gridcol1;
  515. else
  516. pLVCD->clrTextBk = g_gridcol2;
  517. // Store the color back in the NMLVCUSTOMDRAW struct.
  518. // Tell Windows to paint the control itself.
  519. *pResult = CDRF_DODEFAULT;
  520. }
  521. }
  522. void ClientMoney::OnClickList2(NMHDR* pNMHDR, LRESULT* pResult)
  523. {
  524. // TODO: Add your control notification handler code here
  525. POSITION pos;
  526. pos = m_List1.GetFirstSelectedItemPosition();
  527. if (pos == NULL)return;
  528. int iItem = m_List1.GetNextSelectedItem(pos);
  529. g_id = m_List1.GetItemText(iItem, 0);
  530. *pResult = 0;
  531. }
  532. void ClientMoney::HidePrice()
  533. {
  534. #ifdef LKAY_VERSION
  535. if(IsHasRights2new(31))return;
  536. for(int i=0; i< m_List1array.GetSize (); i++)
  537. {
  538. m_List1array.ElementAt (i).SetAt (4, "***");
  539. m_List1array.ElementAt (i).SetAt (5, "***");
  540. m_List1array.ElementAt (i).SetAt (6, "***");
  541. m_List1array.ElementAt (i).SetAt (7, "***");
  542. m_List1array.ElementAt (i).SetAt (8, "***");
  543. m_List1array.ElementAt (i).SetAt (9, "***");
  544. m_List1array.ElementAt (i).SetAt (10, "***");
  545. m_List1array.ElementAt (i).SetAt (11, "***");
  546. m_List1array.ElementAt (i).SetAt (12, "***");
  547. }
  548. #else
  549. if (IsHasRights2new(31))return;
  550. for (int i = 0; i < m_List1array.GetSize(); i++)
  551. {
  552. m_List1array.ElementAt(i).SetAt(11, "***");
  553. m_List1array.ElementAt(i).SetAt(12, "***");
  554. }
  555. #endif
  556. }
  557. void ClientMoney::OnBUTburncd2()
  558. {
  559. // TODO: Add your control notification handler code here
  560. ListToXLS(&m_List1, "c:\\客人欠款.xls", 0);
  561. }
  562. //lYFZ
  563. void ClientMoney::OnCheck1()
  564. {
  565. // TODO: Add your control notification handler code here
  566. UpdateData();
  567. FillGrid();
  568. }
  569. void ClientMoney::OnCheck2()
  570. {
  571. // TODO: Add your control notification handler code here
  572. OnCheck1();
  573. }