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