12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033 |
- // MonthForm.cpp : implementation file
- //
- #include "stdafx.h"
- #include "ylgl.h"
- #include "MonthForm.h"
- #include "MyMdi.H"
- #include "SelExpendType.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // MonthForm
- IMPLEMENT_DYNCREATE(MonthForm, MyFormView)
- MonthForm::MonthForm()
- : MyFormView(MonthForm::IDD)
- {
- m_year = atoi(g_date.Mid(0, 4));
- m_month = atoi(g_date.Mid(5, 2));
- m_day = atoi(g_date.Mid(8, 2));
- m_radio1 = 0;
- m_bInit = 0;
- m_timestmap = 0;
- m_radio2 = 0;
- m_bForKF = 0;
- //}}AFX_DATA_INIT
- }
- MonthForm::~MonthForm()
- {
- }
- void MonthForm::DoDataExchange(CDataExchange* pDX)
- {
- MyFormView::DoDataExchange(pDX);
- DDX_Control(pDX, IDC_SPIN3, m_spinday);
- DDX_Control(pDX, IDC_SPIN2, m_spinmonth);
- DDX_Control(pDX, IDC_SPIN1, m_spinyear);
- DDX_Control(pDX, IDC_LIST2, m_List1);
- DDX_Control(pDX, IDC_STATIC1, m_static1);
- DDX_Text(pDX, IDC_EDITyear, m_year);
- DDV_MinMaxUInt(pDX, m_year, 1900, 3000);
- DDX_Text(pDX, IDC_EDITmonth, m_month);
- DDV_MinMaxUInt(pDX, m_month, 1, 12);
- DDX_Text(pDX, IDC_EDITday, m_day);
- DDV_MinMaxUInt(pDX, m_day, 1, 31);
- DDX_Radio(pDX, IDC_RADIO3, m_radio1);
- DDX_Radio(pDX, IDC_RADIO14, m_radio2);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(MonthForm, MyFormView)
- ON_BN_CLICKED(IDC_BUTclose, OnBUTclose)
- ON_EN_CHANGE(IDC_EDITyear, OnChangeEDITyear)
- ON_EN_CHANGE(IDC_EDITmonth, OnChangeEDITmonth)
- ON_EN_CHANGE(IDC_EDITday, OnChangeEDITday)
- ON_BN_CLICKED(IDC_RADIO3, OnRadio3)
- ON_BN_CLICKED(IDC_RADIO4, OnRadio4)
- ON_BN_CLICKED(IDC_RADIO5, OnRadio5)
- ON_BN_CLICKED(IDC_RADIO6, OnRadio6)
- ON_BN_CLICKED(IDC_RADIO7, OnRadio7)
- ON_BN_CLICKED(IDC_RADIO8, OnRadio8)
- ON_BN_CLICKED(IDC_RADIO9, OnRadio9)
- ON_BN_CLICKED(IDC_RADIO10, OnRadio10)
- ON_BN_CLICKED(IDC_RADIO11, OnRadio11)
- ON_BN_CLICKED(IDC_RADIO12, OnRadio12)
- ON_BN_CLICKED(IDC_RADIO13, OnRadio13)
- ON_BN_CLICKED(IDC_BUTprint, OnBUTprint)
- ON_BN_CLICKED(IDC_BUTprint5, OnBUTprint5)
- ON_BN_CLICKED(IDC_BUTprint4, OnBUTprint4)
- ON_BN_CLICKED(IDC_RADIO14, OnRadio14)
- ON_BN_CLICKED(IDC_RADIO15, OnRadio15)
- ON_BN_CLICKED(IDC_RADIO17, OnRadio17)
- //}}AFX_MSG_MAP
- ON_NOTIFY(NM_CUSTOMDRAW, IDC_LIST2, OnCustomdrawList)
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // MonthForm diagnostics
- #ifdef _DEBUG
- void MonthForm::AssertValid() const
- {
- MyFormView::AssertValid();
- }
- void MonthForm::Dump(CDumpContext& dc) const
- {
- MyFormView::Dump(dc);
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // MonthForm message handlers
- void MonthForm::OnInitialUpdate()
- {
- // LOG4C((LOG_NOTICE,"MonthForm::OnInitialUpdate"));
- MyFormView::OnInitialUpdate();
- // TODO: Add your specialized code here and/or call the base class
- CMyMdi Mdi;
- Mdi.SetSubView((CWnd*)GetParent(), (CWnd*)this);
- #ifdef DDF_VERSION
- GetDlgItem(IDC_STATIC10)->ShowWindow(SW_SHOW);
- GetDlgItem(IDC_RADIO14)->ShowWindow(SW_SHOW);
- GetDlgItem(IDC_RADIO15)->ShowWindow(SW_SHOW);
- #endif
- // Here we create the outbar control using the splitter as its parent
- // and setting its id to the first pane.
- CRect rc2;
- GetWindowRect(rc2);
- ::MoveWindow(m_hWnd, g_rc.left, g_rc.top, g_rc.Width(), g_rc.Height(), TRUE);
- EnumChildWindows(m_hWnd, (WNDENUMPROC)EnumChildProc, 0);
- m_static1.SetFont(&g_titlefont);
- if (atoi(g_cominfoarray.ElementAt(0).ElementAt(115)))
- GetDlgItem(IDC_BUTprint4)->ShowWindow(SW_SHOW);
- if (atoi(g_cominfoarray.ElementAt(0).ElementAt(115)))
- m_List1.SetHeadings("id,0;项目名称,300;金额,100;项目类别,100;收入/支出,100;日期,100;支付方式,100;收银,100;财务审核,100;接单点,100");
- else
- m_List1.SetHeadings("id,0;项目名称,300;金额,100;项目类别,100;收入/支出,100;日期,100;支付方式,100;收银,100;财务审核,100");
- m_List1.LoadColumnInfo(107);
- m_spinyear.SetRange(1900, 3000);
- m_spinmonth.SetRange(1, 12);
- m_spinday.SetRange(1, 31);
- m_bInit = 1;
- #ifdef CHILD_VERSION
- SetDlgItemText(IDC_RADIO10, _T("引导二销"));
- #endif
- DateChange();
- }
- void MonthForm::FillGrid()
- {
- m_List1.DeleteAllItems2();
- int ii = 0;
- m_List1.m_arLabels.SetSize(m_List1array.GetSize(), 1);
- int count = 0;
- CString str;
- if (m_filter.IsEmpty() && m_jdd.IsEmpty())
- {
- for (ii = 0; ii < m_List1.m_arLabels.GetSize(); ii++)
- {
- m_List1.m_arLabels.ElementAt(count++).Copy(m_List1array.ElementAt(ii));
- }
- }
- else if (m_jdd.IsEmpty() == 0)
- {
- float income = 0;
- int dindanshu = 0;
- for (ii = 0; ii < m_List1.m_arLabels.GetSize(); ii++)
- {
- if (m_List1array.ElementAt(ii).ElementAt(9) == m_jdd)
- {
- m_List1.m_arLabels.ElementAt(count++).Copy(m_List1array.ElementAt(ii));
- income += atof(m_List1array.ElementAt(ii).ElementAt(2));
- if (m_List1array.ElementAt(ii).ElementAt(3) == "预约收款")
- dindanshu++;
- }
- }
- CString str;
- str.Format("%0.2f", income);
- ::ConvertToPrice(str);
- SetDlgItemText(IDC_EDITmoney1, str);
- str.Format("%0.2f", income);
- ::ConvertToPrice(str);
- SetDlgItemText(IDC_EDITmoney5, str);
- str.Format("%0.2f", 0);
- ::ConvertToPrice(str);
- SetDlgItemText(IDC_EDITmoney2, str);
- str.Format("%0.2f", income);
- ::ConvertToPrice(str);
- SetDlgItemText(IDC_EDITmoney3, str);
- str.Format("%d", dindanshu);
- SetDlgItemText(IDC_EDITmoney4, str);
- }
- else
- {
- float payout = 0;
- for (ii = 0; ii < m_List1.m_arLabels.GetSize(); ii++)
- {
- if (m_List1array.ElementAt(ii).ElementAt(1).Find(m_filter + ";") != -1)
- {
- m_List1.m_arLabels.ElementAt(count++).Copy(m_List1array.ElementAt(ii));
- payout += atof(m_List1array.ElementAt(ii).ElementAt(2));
- }
- }
- str.Format("%0.2f", payout);
- ::ConvertToPrice(str);
- SetDlgItemText(IDC_EDITmoney2, str);
- str.Format("%0.2f", -payout);
- ::ConvertToPrice(str);
- SetDlgItemText(IDC_EDITmoney3, str);
- }
- m_List1.m_arLabels.SetSize(count, 1);
- ii = count;
- m_List1.m_LabelCount = ii;
- m_List1.SetItemCountEx(ii);
- str.Format("单数:%d", ii);
- SetDlgItemText(IDC_STATIC2, str);
- CRect rc;
- GetDlgItem(IDC_STATIC2)->GetWindowRect(rc);
- ScreenToClient(rc);
- InvalidateRect(rc);
- }
- void MonthForm::OnBUTclose()
- {
- // TODO: Add your control notification handler code here
- GetParent()->SendMessage(WM_CLOSE);
- }
- void MonthForm::OnChangeEDITyear()
- {
- // TODO: If this is a RICHEDIT control, the control will not
- // send this notification unless you override the MyFormView::OnInitDialog()
- // function and call CRichEditCtrl().SetEventMask()
- // with the ENM_CHANGE flag ORed into the mask.
- DateChange();
- // TODO: Add your control notification handler code here
- }
- void MonthForm::OnChangeEDITmonth()
- {
- // TODO: If this is a RICHEDIT control, the control will not
- // send this notification unless you override the MyFormView::OnInitDialog()
- // function and call CRichEditCtrl().SetEventMask()
- // with the ENM_CHANGE flag ORed into the mask.
- DateChange();
- // TODO: Add your control notification handler code here
- }
- void MonthForm::OnChangeEDITday()
- {
- // TODO: If this is a RICHEDIT control, the control will not
- // send this notification unless you override the MyFormView::OnInitDialog()
- // function and call CRichEditCtrl().SetEventMask()
- // with the ENM_CHANGE flag ORed into the mask.
- // DateChange();
- // TODO: Add your control notification handler code here
- }
- void MonthForm::DateChange()
- {
- if (m_bInit == 0)
- return;
- m_spinyear.EnableWindow(0);
- m_spinmonth.EnableWindow(0);
- m_spinday.EnableWindow(0);
- UpdateData();
- int i;
- int g_nYearposTemp = g_nYearpos;
- BOOL bLastYear = 0;
- BOOL bThisYear = 0;
- #if JEFF_TEST_ON // 2015开始禁用跨年数据;
- int g_nYearposPre = -1;
- if (m_year >= 2014 && m_year <= atoi(g_date.Left(4)) && g_hisyeararray.GetSize())
- {
- g_nYearpos = -1;
- bThisYear = 1;
- if ( m_year == 2014)
- {
- g_nYearposPre = GetYearPos(m_year - 1);
- }
- }
- else if (m_year <= 2013 && g_hisyeararray.GetSize())
- {
- g_nYearpos = GetYearPos(m_year);
- if (g_nYearpos != -1)
- g_nYearposPre = GetYearPos(m_year - 1);
- bLastYear = 1;
- }
- #else
- if (m_year == atoi(g_date.Left(4)) && g_hisyeararray.GetSize())
- bThisYear = 1;
- else if (m_year <= atoi(g_date.Left(4)) - 1 && g_hisyeararray.GetSize())
- bLastYear = 1;
- g_nYearpos = GetYearPos(m_year);
- int g_nYearposPre = GetYearPos(m_year - 1);
- #endif
- g_sendhead.bsql = 0;
- g_sendhead.code[0] = 14;
- g_sendhead.code[1] = 13;
- g_sendhead.code[2] = 16;
- g_sendhead.code[3] = 198;
- g_sendhead.code[4] = 216;
- g_sendhead.tabcount = 5;
- CString sql, strdate, strdate2;
- strdate.Format("%04d-%02d-%02d", m_year, m_month, 1);
- strdate2.Format("%04d-%02d-%02d", m_year, m_month, 31);
- CRect rc;
- m_static1.GetWindowRect(rc);
- ScreenToClient(rc);
- InvalidateRect(rc);
- m_static1.SetWindowText(strdate.Left(7) + "月财务表");
- sql.Format("dat>='" + strdate + "' and dat<='" + strdate2 + "' and (sale2type is null or sale2type='');dat>='" + strdate + "' and dat<='" + strdate2 + "';date>='" + strdate + "' and date<='" + strdate2 + "';date>='" + strdate + "' and date<='" + strdate2 + "';date>='" + strdate + "' and date<='" + strdate2 + "'");
- g_pMainWnd->ProcessChatMessageRequest2(sql);
- if (g_bSendOK == 0)
- {
- g_nYearpos = g_nYearposTemp;
- m_spinyear.EnableWindow(1);
- m_spinmonth.EnableWindow(1);
- m_spinday.EnableWindow(1);
- return;
- }
- DataToArray(&List2array, &List3array, &List11array, &other2salearray, &memberarray);
- if (bLastYear)//如果是去年, 则加今年的补款
- {
- g_nYearpos = -1;//今年
- g_sendhead.bsql = 0;
- g_sendhead.code[0] = 14;
- g_sendhead.code[1] = 13;
- g_sendhead.code[2] = 16;
- g_sendhead.code[3] = 198;
- g_sendhead.code[4] = 216;
- g_sendhead.tabcount = 5;
- g_pMainWnd->ProcessChatMessageRequest2(sql);
- if (g_bSendOK == 0)
- {
- g_nYearpos = g_nYearposTemp;
- m_spinyear.EnableWindow(1);
- m_spinmonth.EnableWindow(1);
- m_spinday.EnableWindow(1);
- return;
- }
- CArray<CStringArray, CStringArray>ThisYearList11array;
- CArray<CStringArray, CStringArray>ThisYearList3array;
- CArray<CStringArray, CStringArray>ThisYearList2array;
- CArray<CStringArray, CStringArray>ThisYearother2salearray;
- CArray<CStringArray, CStringArray>ThisYearmemberarray;
- DataToArray(&ThisYearList2array, &ThisYearList3array, &ThisYearList11array, &ThisYearother2salearray, &ThisYearmemberarray);
- int oldsize = List11array.GetSize();
- List11array.SetSize(oldsize + ThisYearList11array.GetSize());
- for (i = oldsize; i < oldsize + ThisYearList11array.GetSize(); i++)
- {
- List11array.ElementAt(i).Copy(ThisYearList11array.ElementAt(i - oldsize));
- }
- oldsize = List3array.GetSize();
- List3array.SetSize(oldsize + ThisYearList3array.GetSize());
- for (i = oldsize; i < oldsize + ThisYearList3array.GetSize(); i++)
- {
- List3array.ElementAt(i).Copy(ThisYearList3array.ElementAt(i - oldsize));
- }
- oldsize = List2array.GetSize();
- List2array.SetSize(oldsize + ThisYearList2array.GetSize());
- for (i = oldsize; i < oldsize + ThisYearList2array.GetSize(); i++)
- {
- List2array.ElementAt(i).Copy(ThisYearList2array.ElementAt(i - oldsize));
- }
- oldsize = other2salearray.GetSize();
- other2salearray.SetSize(oldsize + ThisYearother2salearray.GetSize());
- for (i = oldsize; i < oldsize + ThisYearother2salearray.GetSize(); i++)
- {
- other2salearray.ElementAt(i).Copy(ThisYearother2salearray.ElementAt(i - oldsize));
- }
- oldsize = memberarray.GetSize();
- memberarray.SetSize(oldsize + ThisYearmemberarray.GetSize());
- for (i = oldsize; i < oldsize + ThisYearmemberarray.GetSize(); i++)
- {
- memberarray.ElementAt(i).Copy(ThisYearmemberarray.ElementAt(i - oldsize));
- }
- }
- if (g_nYearposPre != -1)//如果是今年, 则加去年的补款
- {
- g_nYearpos = g_nYearposPre;//去年
- g_sendhead.bsql = 0;
- g_sendhead.code[0] = 14;
- g_sendhead.code[1] = 13;
- g_sendhead.code[2] = 16;
- g_sendhead.code[3] = 198;
- g_sendhead.tabcount = 4;
- g_pMainWnd->ProcessChatMessageRequest2(sql);
- if (g_bSendOK == 0)
- {
- g_nYearpos = g_nYearposTemp;
- m_spinyear.EnableWindow(1);
- m_spinmonth.EnableWindow(1);
- m_spinday.EnableWindow(1);
- return;
- }
- CArray<CStringArray, CStringArray>ThisYearList11array;
- CArray<CStringArray, CStringArray>ThisYearList3array;
- CArray<CStringArray, CStringArray>ThisYearList2array;
- CArray<CStringArray, CStringArray>ThisYearother2salearray;
- DataToArray(&ThisYearList2array, &ThisYearList3array, &ThisYearList11array, &ThisYearother2salearray);
- int oldsize = List11array.GetSize();
- List11array.SetSize(oldsize + ThisYearList11array.GetSize());
- for (i = oldsize; i < oldsize + ThisYearList11array.GetSize(); i++)
- {
- List11array.ElementAt(i).Copy(ThisYearList11array.ElementAt(i - oldsize));
- }
- oldsize = List3array.GetSize();
- List3array.SetSize(oldsize + ThisYearList3array.GetSize());
- for (i = oldsize; i < oldsize + ThisYearList3array.GetSize(); i++)
- {
- List3array.ElementAt(i).Copy(ThisYearList3array.ElementAt(i - oldsize));
- }
- oldsize = List2array.GetSize();
- List2array.SetSize(oldsize + ThisYearList2array.GetSize());
- for (i = oldsize; i < oldsize + ThisYearList2array.GetSize(); i++)
- {
- List2array.ElementAt(i).Copy(ThisYearList2array.ElementAt(i - oldsize));
- }
- oldsize = other2salearray.GetSize();
- other2salearray.SetSize(oldsize + ThisYearother2salearray.GetSize());
- for (i = oldsize; i < oldsize + ThisYearother2salearray.GetSize(); i++)
- {
- other2salearray.ElementAt(i).Copy(ThisYearother2salearray.ElementAt(i - oldsize));
- }
- }
- g_nYearpos = g_nYearposTemp;
- KindChange();
- m_spinyear.EnableWindow(1);
- m_spinmonth.EnableWindow(1);
- m_spinday.EnableWindow(1);
- }
- void MonthForm::KindChange()
- {
- if (m_bForKF)
- {
- KindChange2();
- return;
- }
- m_jdd = "";
- CString str;
- int pos = 0;
- int dindanshu = 0; // 月订单数
- float income = 0; // 月总收入
- float income2 = 0; // 月营业收入
- float payout = 0; // 月支出
- int count = List2array.GetSize() + List3array.GetSize() + List11array.GetSize() + other2salearray.GetSize() + memberarray.GetSize();
- m_List1array.RemoveAll();
- m_List1array.SetSize(count);
- int i = 0;
- if (m_radio1 == 3)
- {
- if (payoutdlg.GetSafeHwnd() == NULL)
- {
- payoutdlg.Create(IDD_DLGPayOutSet, this);
- CRect rc;
- m_List1.GetWindowRect(rc);
- payoutdlg.MoveWindow2(rc);
- payoutdlg.m_pParent = this;
- payoutdlg.m_mode = 1;
- }
- payoutdlg.ShowWindow(SW_SHOW);
- }
- else
- {
- m_filter.Empty();
- if (payoutdlg.GetSafeHwnd())payoutdlg.ShowWindow(SW_HIDE);
- }
- for (i = 0; i < memberarray.GetSize(); i++)
- {
- if (memberarray.ElementAt(i).ElementAt(6).IsEmpty())
- memberarray.ElementAt(i).SetAt(6, "未审核");
- memberarray.ElementAt(i).SetAt(0, memberarray.ElementAt(i).ElementAt(0) + ":4");
- }
- for (i = 0; i < List2array.GetSize(); i++)
- {
- if (List2array.ElementAt(i).ElementAt(10).IsEmpty())
- List2array.ElementAt(i).SetAt(10, "未审核");
- List2array.ElementAt(i).SetAt(0, List2array.ElementAt(i).ElementAt(0) + ":0");
- }
- for (i = 0; i < List3array.GetSize(); i++)
- {
- if (List3array.ElementAt(i).ElementAt(7).IsEmpty())
- List3array.ElementAt(i).SetAt(7, "未审核");
- List3array.ElementAt(i).SetAt(0, List3array.ElementAt(i).ElementAt(0) + ":1");
- }
- for (i = 0; i < List11array.GetSize(); i++)
- {
- if (List11array.ElementAt(i).ElementAt(11).IsEmpty())
- List11array.ElementAt(i).SetAt(11, "未审核");
- List11array.ElementAt(i).SetAt(10, List11array.ElementAt(i).ElementAt(10) + ":2");
- }
- for (i = 0; i < other2salearray.GetSize(); i++)
- {
- if (other2salearray.ElementAt(i).ElementAt(9).IsEmpty())
- other2salearray.ElementAt(i).SetAt(9, "未审核");
- other2salearray.ElementAt(i).SetAt(8, other2salearray.ElementAt(i).ElementAt(8) + ":3");
- }
- if (m_radio1 == 0)
- {
- for( i=0; i<List11array.GetSize (); i++)
- {
- #ifdef DDF_VERSION
- if (List11array.ElementAt(i).ElementAt(5) == "客服二销")continue;
- #endif
- str = List11array.ElementAt(i).ElementAt(0);
- str += ";" + List11array.ElementAt(i).ElementAt(3);
- if (!List11array.ElementAt(i).ElementAt(1).IsEmpty())
- {
- str += ";客户:" + List11array.ElementAt(i).ElementAt(1);
- if (!List11array.ElementAt(i).ElementAt(2).IsEmpty())
- str += "," + List11array.ElementAt(i).ElementAt(2);
- }
- else
- str += ";客户:" + List11array.ElementAt(i).ElementAt(2);
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt (pos).Add(str);
- str=List11array.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (List11array.ElementAt(i).ElementAt(8) != "储值卡扣款" && List11array.ElementAt(i).ElementAt(8) != "代金券") // 储值卡扣款;
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(7) + " " + List11array.ElementAt(i).ElementAt(13));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(12));
- if (List11array.ElementAt(i).ElementAt(5) == "预约收款")
- dindanshu++;
- pos++;
- }
- for (i = 0; i < List2array.GetSize(); i++)
- {
- if (List2array.ElementAt(i).ElementAt(7).GetLength()>120)
- List2array.ElementAt(i).SetAt(7, List2array.ElementAt(i).ElementAt(7).Left(120) + "..");
- str = List2array.ElementAt(i).ElementAt(1) + ";" + List2array.ElementAt(i).ElementAt(4) + ";" + List2array.ElementAt(i).ElementAt(6) + ";" + List2array.ElementAt(i).ElementAt(7);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(0));
- m_List1array.ElementAt (pos).Add(str);
- str=List2array.ElementAt (i).ElementAt (2);
- m_List1array.ElementAt(pos).Add(str);
- #if 0
- income += atof(str);
- #else
- if (List2array.ElementAt(i).ElementAt(9) != "储值卡扣款" && List2array.ElementAt(i).ElementAt(9) != "代金券")
- {
- income += atof(str);
- }
- #endif
- if (List2array.ElementAt(i).ElementAt(8) != "")
- {
- income2 += atof(str);
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(8));
- }
- else
- m_List1array.ElementAt(pos).Add("其它收入");
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(3) + " " + List2array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(12));
- pos++;
- }
- for (i = 0; i < other2salearray.GetSize(); i++)
- {
- str = other2salearray.ElementAt(i).ElementAt(0) + ";" + other2salearray.ElementAt(i).ElementAt(1) + ";" + other2salearray.ElementAt(i).ElementAt(2);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt (pos).Add(str);
- str=other2salearray.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (other2salearray.ElementAt(i).ElementAt(7) != "储值卡扣款" && other2salearray.ElementAt(i).ElementAt(7) != "代金券")
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(3));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(5) + " " + other2salearray.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(7));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(6));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(11));
- pos++;
- }
- for (i = 0; i < List3array.GetSize(); i++)
- {
- if (List3array.ElementAt(i).ElementAt(6).GetLength()>120)
- List3array.ElementAt(i).SetAt(6, List3array.ElementAt(i).ElementAt(6).Left(120) + "..");
- str = List3array.ElementAt(i).ElementAt(1) + ";" + List3array.ElementAt(i).ElementAt(4) + ";" + List3array.ElementAt(i).ElementAt(6);
- str.Replace(";;;;", ";"); str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(List3array.ElementAt(i).ElementAt(0));
- m_List1array.ElementAt(pos).Add(str);
- str = List3array.ElementAt(i).ElementAt(2);
- m_List1array.ElementAt(pos).Add(str);
- payout += atof(str);
- #if JEFF_TEST_ON
- m_List1array.ElementAt(pos).Add(List3array.ElementAt(i).ElementAt(1));
- #else
- m_List1array.ElementAt(pos).Add("固定费用");
- #endif
- m_List1array.ElementAt(pos).Add("支出");
- m_List1array.ElementAt(pos).Add(List3array.ElementAt(i).ElementAt(3) + " " + List3array.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt(pos).Add("现金");
- m_List1array.ElementAt(pos).Add(List3array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add(List3array.ElementAt(i).ElementAt(7));
- m_List1array.ElementAt(pos).Add(List3array.ElementAt(i).ElementAt(12));
- pos++;
- }
- for (i = 0; i < memberarray.GetSize(); i++)
- {
- str = memberarray.ElementAt(i).ElementAt(1) + ";" + memberarray.ElementAt(i).ElementAt(5) + ";客户:" + memberarray.ElementAt(i).ElementAt(2);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(memberarray.ElementAt(i).ElementAt(0));
- m_List1array.ElementAt(pos).Add(str);
- str = memberarray.ElementAt(i).ElementAt(3);
- m_List1array.ElementAt(pos).Add(str);
- income += atof(str);
- m_List1array.ElementAt(pos).Add("会员充值");
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(memberarray.ElementAt(i).ElementAt(4) + " " + memberarray.ElementAt(i).ElementAt(8));
- if (memberarray.ElementAt(i).ElementAt(7) == "")
- m_List1array.ElementAt(pos).Add("现金");
- else
- m_List1array.ElementAt(pos).Add(memberarray.ElementAt(i).ElementAt(7));
- m_List1array.ElementAt(pos).Add(memberarray.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add(memberarray.ElementAt(i).ElementAt(6));
- m_List1array.ElementAt(pos).Add(" ");
- pos++;
- }
- }
- else if (m_radio1 == 1)//收入
- {
- for( i=0; i<List11array.GetSize (); i++)
- {
- #ifdef DDF_VERSION
- if (List11array.ElementAt(i).ElementAt(5) == "客服二销")continue;
- #endif
- str = List11array.ElementAt(i).ElementAt(0);
- str += ";" + List11array.ElementAt(i).ElementAt(3);
- if (!List11array.ElementAt(i).ElementAt(1).IsEmpty())
- {
- str += ";客户:" + List11array.ElementAt(i).ElementAt(1);
- if (!List11array.ElementAt(i).ElementAt(2).IsEmpty())
- str += "," + List11array.ElementAt(i).ElementAt(2);
- }
- else
- str += ";客户:" + List11array.ElementAt(i).ElementAt(2);
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt (pos).Add(str);
- str=List11array.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (List11array.ElementAt(i).ElementAt(8) != "储值卡扣款" && List11array.ElementAt(i).ElementAt(8) != "代金券") // 储值卡扣款;
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(7) + " " + List11array.ElementAt(i).ElementAt(13));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(12));
- if (List11array.ElementAt(i).ElementAt(5) == "预约收款")
- dindanshu++;
- pos++;
- }
- for (i = 0; i < List2array.GetSize(); i++)
- {
- if (List2array.ElementAt(i).ElementAt(7).GetLength()>120)
- List2array.ElementAt(i).SetAt(7, List2array.ElementAt(i).ElementAt(7).Left(120) + "..");
- str = List2array.ElementAt(i).ElementAt(1) + ";" + List2array.ElementAt(i).ElementAt(4) + ";" + List2array.ElementAt(i).ElementAt(6) + ";" + List2array.ElementAt(i).ElementAt(7);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(0));
- m_List1array.ElementAt (pos).Add(str);
- str=List2array.ElementAt (i).ElementAt (2);
- m_List1array.ElementAt(pos).Add(str);
- #if 0
- income += atof(str);
- #else
- if (List2array.ElementAt(i).ElementAt(9) != "储值卡扣款" && List2array.ElementAt(i).ElementAt(9) != "代金券")
- {
- income += atof(str);
- }
- #endif
- if (List2array.ElementAt(i).ElementAt(8) != "")
- {
- income2 += atof(str);
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(8));
- }
- else
- m_List1array.ElementAt(pos).Add("其它收入");
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(3) + " " + List2array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(12));
- pos++;
- }
- for (i = 0; i < other2salearray.GetSize(); i++)
- {
- str = other2salearray.ElementAt(i).ElementAt(0) + ";" + other2salearray.ElementAt(i).ElementAt(1) + ";" + other2salearray.ElementAt(i).ElementAt(2);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt (pos).Add(str);
- str=other2salearray.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (other2salearray.ElementAt(i).ElementAt(7) != "储值卡扣款" && other2salearray.ElementAt(i).ElementAt(7) != "代金券")
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(3));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(5) + " " + other2salearray.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(7));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(6));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(11));
- pos++;
- }
- for (i = 0; i < memberarray.GetSize(); i++)
- {
- str = memberarray.ElementAt(i).ElementAt(1) + ";" + memberarray.ElementAt(i).ElementAt(5) + ";客户:" + memberarray.ElementAt(i).ElementAt(2);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(memberarray.ElementAt(i).ElementAt(0));
- m_List1array.ElementAt(pos).Add(str);
- str = memberarray.ElementAt(i).ElementAt(3);
- m_List1array.ElementAt(pos).Add(str);
- income += atof(str);
- m_List1array.ElementAt(pos).Add("会员充值");
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(memberarray.ElementAt(i).ElementAt(4) + " " + memberarray.ElementAt(i).ElementAt(8));
- if (memberarray.ElementAt(i).ElementAt(7) == "")
- m_List1array.ElementAt(pos).Add("现金");
- else
- m_List1array.ElementAt(pos).Add(memberarray.ElementAt(i).ElementAt(7));
- m_List1array.ElementAt(pos).Add(memberarray.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add(memberarray.ElementAt(i).ElementAt(6));
- m_List1array.ElementAt(pos).Add(" ");
- pos++;
- }
- }
- else if (m_radio1 == 2)//营业收入
- {
- for( i=0; i<List11array.GetSize (); i++)
- {
- #ifdef DDF_VERSION
- if (List11array.ElementAt(i).ElementAt(5) == "客服二销")continue;
- #endif
- str = List11array.ElementAt(i).ElementAt(0);
- str += ";" + List11array.ElementAt(i).ElementAt(3);
- if (!List11array.ElementAt(i).ElementAt(1).IsEmpty())
- {
- str += ";客户:" + List11array.ElementAt(i).ElementAt(1);
- if (!List11array.ElementAt(i).ElementAt(2).IsEmpty())
- str += "," + List11array.ElementAt(i).ElementAt(2);
- }
- else
- str += ";客户:" + List11array.ElementAt(i).ElementAt(2);
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt (pos).Add(str);
- str=List11array.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (List11array.ElementAt(i).ElementAt(8) != "储值卡扣款" && List11array.ElementAt(i).ElementAt(8) != "代金券") // 储值卡扣款;
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(7) + " " + List11array.ElementAt(i).ElementAt(13));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(12));
- if (List11array.ElementAt(i).ElementAt(5) == "预约收款")
- dindanshu++;
- pos++;
- }
- for (i = 0; i < List2array.GetSize(); i++)
- {
- if (List2array.ElementAt(i).ElementAt(8) != "")
- {
- if (List2array.ElementAt(i).ElementAt(7).GetLength()>120)
- List2array.ElementAt(i).SetAt(7, List2array.ElementAt(i).ElementAt(7).Left(120) + "..");
- str = List2array.ElementAt(i).ElementAt(1) + ";" + List2array.ElementAt(i).ElementAt(4) + ";" + List2array.ElementAt(i).ElementAt(6) + ";" + List2array.ElementAt(i).ElementAt(7);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(0));
- m_List1array.ElementAt (pos).Add(str);
- str=List2array.ElementAt (i).ElementAt (2);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (List2array.ElementAt(i).ElementAt(9) != "储值卡扣款" && List2array.ElementAt(i).ElementAt(9) != "代金券")
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(3) + " " + List2array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt(pos).Add(" ");
- pos++;
- }
- }
- for (i = 0; i < other2salearray.GetSize(); i++)
- {
- str = other2salearray.ElementAt(i).ElementAt(0) + ";" + other2salearray.ElementAt(i).ElementAt(1) + ";" + other2salearray.ElementAt(i).ElementAt(2);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt (pos).Add(str);
- str=other2salearray.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (other2salearray.ElementAt(i).ElementAt(7) != "储值卡扣款" && other2salearray.ElementAt(i).ElementAt(7) != "代金券")
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(3));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(5) + " " + other2salearray.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(7));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(6));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(11));
- pos++;
- }
- }
- else if (m_radio1 == 3)//支出
- {
- for (i = 0; i < List3array.GetSize(); i++)
- {
- if (List3array.ElementAt(i).ElementAt(6).GetLength()>120)
- List3array.ElementAt(i).SetAt(6, List3array.ElementAt(i).ElementAt(6).Left(120) + "..");
- str = List3array.ElementAt(i).ElementAt(1) + ";" + List3array.ElementAt(i).ElementAt(4) + ";" + List3array.ElementAt(i).ElementAt(6);
- str.Replace(";;;;", ";"); str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(List3array.ElementAt(i).ElementAt(0));
- m_List1array.ElementAt(pos).Add(str);
- str = List3array.ElementAt(i).ElementAt(2);
- m_List1array.ElementAt(pos).Add(str);
- payout += atof(str);
- #if JEFF_TEST_ON
- m_List1array.ElementAt(pos).Add(List3array.ElementAt(i).ElementAt(1));
- #else
- m_List1array.ElementAt(pos).Add("固定费用");
- #endif
- m_List1array.ElementAt(pos).Add("支出");
- m_List1array.ElementAt(pos).Add(List3array.ElementAt(i).ElementAt(3) + " " + List3array.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt(pos).Add("现金");
- m_List1array.ElementAt(pos).Add(List3array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add(List3array.ElementAt(i).ElementAt(7));
- m_List1array.ElementAt(pos).Add(List3array.ElementAt(i).ElementAt(12));
- pos++;
- }
- }
- else if (m_radio1 == 4)//定单
- {
- for (i = 0; i < List11array.GetSize(); i++)
- {
- if (List11array.ElementAt(i).ElementAt(5) != "预约收款")continue;
- dindanshu++;
- str = List11array.ElementAt(i).ElementAt(0);
- str += ";" + List11array.ElementAt(i).ElementAt(3);
- if (!List11array.ElementAt(i).ElementAt(1).IsEmpty())
- {
- str += ";客户:" + List11array.ElementAt(i).ElementAt(1);
- if (!List11array.ElementAt(i).ElementAt(2).IsEmpty())
- str += "," + List11array.ElementAt(i).ElementAt(2);
- }
- else
- str += ";客户:" + List11array.ElementAt(i).ElementAt(2);
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt (pos).Add(str);
- str=List11array.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (List11array.ElementAt(i).ElementAt(8) != "储值卡扣款" && List11array.ElementAt(i).ElementAt(8) != "代金券") // 储值卡扣款;
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(7) + " " + List11array.ElementAt(i).ElementAt(13));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(12));
- pos++;
- }
- }
- else if (m_radio1 == 5)//补款
- {
- for (i = 0; i < List11array.GetSize(); i++)
- {
- if (List11array.ElementAt(i).ElementAt(5) != "预约补款")continue;
- str = List11array.ElementAt(i).ElementAt(0);
- str += ";" + List11array.ElementAt(i).ElementAt(3);
- if (!List11array.ElementAt(i).ElementAt(1).IsEmpty())
- {
- str += ";客户:" + List11array.ElementAt(i).ElementAt(1);
- if (!List11array.ElementAt(i).ElementAt(2).IsEmpty())
- str += "," + List11array.ElementAt(i).ElementAt(2);
- }
- else
- str += ";客户:" + List11array.ElementAt(i).ElementAt(2);
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt (pos).Add(str);
- str=List11array.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (List11array.ElementAt(i).ElementAt(8) != "储值卡扣款" && List11array.ElementAt(i).ElementAt(8) != "代金券") // 储值卡扣款;
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(7) + " " + List11array.ElementAt(i).ElementAt(13));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(12));
- pos++;
- }
- }
- else if (m_radio1 == 6)//摄影二销
- {
- for (i = 0; i < List11array.GetSize(); i++)
- {
- if (List11array.ElementAt(i).ElementAt(5) != "摄影二销")continue;
- str = List11array.ElementAt(i).ElementAt(0);
- str += ";" + List11array.ElementAt(i).ElementAt(3);
- if (!List11array.ElementAt(i).ElementAt(1).IsEmpty())
- {
- str += ";客户:" + List11array.ElementAt(i).ElementAt(1);
- if (!List11array.ElementAt(i).ElementAt(2).IsEmpty())
- str += "," + List11array.ElementAt(i).ElementAt(2);
- }
- else
- str += ";客户:" + List11array.ElementAt(i).ElementAt(2);
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt (pos).Add(str);
- str=List11array.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (List11array.ElementAt(i).ElementAt(8) != "储值卡扣款" && List11array.ElementAt(i).ElementAt(8) != "代金券") // 储值卡扣款;
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(7) + " " + List11array.ElementAt(i).ElementAt(13));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(12));
- pos++;
- }
- for (i = 0; i < List2array.GetSize(); i++)
- {
- if (List2array.ElementAt(i).ElementAt(8) == "摄影二销")
- {
- if (List2array.ElementAt(i).ElementAt(7).GetLength()>120)
- List2array.ElementAt(i).SetAt(7, List2array.ElementAt(i).ElementAt(7).Left(120) + "..");
- str = List2array.ElementAt(i).ElementAt(1) + ";" + List2array.ElementAt(i).ElementAt(4) + ";" + List2array.ElementAt(i).ElementAt(6) + ";" + List2array.ElementAt(i).ElementAt(7);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(0));
- m_List1array.ElementAt (pos).Add(str);
- str=List2array.ElementAt (i).ElementAt (2);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (List2array.ElementAt(i).ElementAt(9) != "储值卡扣款" && List2array.ElementAt(i).ElementAt(9) != "代金券")
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(3) + " " + List2array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt(pos).Add(" ");
- pos++;
- }
- }
- for (i = 0; i < other2salearray.GetSize(); i++)
- {
- if (other2salearray.ElementAt(i).ElementAt(3) == "摄影二销")
- {
- str = other2salearray.ElementAt(i).ElementAt(0) + ";" + other2salearray.ElementAt(i).ElementAt(1) + ";" + other2salearray.ElementAt(i).ElementAt(2);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt (pos).Add(str);
- str=other2salearray.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (other2salearray.ElementAt(i).ElementAt(7) != "储值卡扣款" && other2salearray.ElementAt(i).ElementAt(7) != "代金券")
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(3));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(5) + " " + other2salearray.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(7));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(6));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(11));
- pos++;
- }
- }
- }
- else if (m_radio1 == 7)//化妆二销
- {
- for (i = 0; i < List11array.GetSize(); i++)
- {
- #ifndef CHILD_VERSION
- if (List11array.ElementAt(i).ElementAt(5) != "化妆二销")continue;
- #else
- if (List11array.ElementAt(i).ElementAt(5) != "引导二销")continue; //"引导二销"
- #endif
- str = List11array.ElementAt(i).ElementAt(0);
- str += ";" + List11array.ElementAt(i).ElementAt(3);
- if (!List11array.ElementAt(i).ElementAt(1).IsEmpty())
- {
- str += ";客户:" + List11array.ElementAt(i).ElementAt(1);
- if (!List11array.ElementAt(i).ElementAt(2).IsEmpty())
- str += "," + List11array.ElementAt(i).ElementAt(2);
- }
- else
- str += ";客户:" + List11array.ElementAt(i).ElementAt(2);
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt (pos).Add(str);
- str=List11array.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (List11array.ElementAt(i).ElementAt(8) != "储值卡扣款" && List11array.ElementAt(i).ElementAt(8) != "代金券") // 储值卡扣款;
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(7) + " " + List11array.ElementAt(i).ElementAt(13));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(12));
- pos++;
- }
- for (i = 0; i < List2array.GetSize(); i++)
- {
- #ifndef CHILD_VERSION
- if (List2array.ElementAt(i).ElementAt(8) == "化妆二销")
- #else
- if (List2array.ElementAt(i).ElementAt(8) == "引导二销") //"引导二销"
- #endif
-
- {
- if (List2array.ElementAt(i).ElementAt(7).GetLength()>120)
- List2array.ElementAt(i).SetAt(7, List2array.ElementAt(i).ElementAt(7).Left(120) + "..");
- str = List2array.ElementAt(i).ElementAt(1) + ";" + List2array.ElementAt(i).ElementAt(4) + ";" + List2array.ElementAt(i).ElementAt(6) + ";" + List2array.ElementAt(i).ElementAt(7);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(0));
- m_List1array.ElementAt (pos).Add(str);
- str=List2array.ElementAt (i).ElementAt (2);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (List2array.ElementAt(i).ElementAt(9) != "储值卡扣款" && List2array.ElementAt(i).ElementAt(9) != "代金券")
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(3) + " " + List2array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt(pos).Add(" ");
- pos++;
- }
- }
- for (i = 0; i < other2salearray.GetSize(); i++)
- {
- #ifndef CHILD_VERSION
- if (other2salearray.ElementAt(i).ElementAt(3) == "化妆二销")
- #else
- if (other2salearray.ElementAt(i).ElementAt(3) == "引导二销") //"引导二销"
- #endif
- {
- str = other2salearray.ElementAt(i).ElementAt(0) + ";" + other2salearray.ElementAt(i).ElementAt(1) + ";" + other2salearray.ElementAt(i).ElementAt(2);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt (pos).Add(str);
- str=other2salearray.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (other2salearray.ElementAt(i).ElementAt(7) != "储值卡扣款" && other2salearray.ElementAt(i).ElementAt(7) != "代金券")
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(3));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(5) + " " + other2salearray.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(7));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(6));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(11));
- pos++;
- }
- }
- }
- else if (m_radio1 == 8)//套系升级二销
- {
- /* for( i=0; i<List11array.GetSize (); i++)
- {
- if(List11array.ElementAt (i).ElementAt (5)!="套系升级二销")continue;
- str=List11array.ElementAt (i).ElementAt (0);
- str+=";"+List11array.ElementAt (i).ElementAt (3);
- if(!List11array.ElementAt (i).ElementAt (1).IsEmpty ())
- {
- str+=";客户:"+List11array.ElementAt (i).ElementAt (1);
- if(!List11array.ElementAt (i).ElementAt (2).IsEmpty ())
- str+=","+List11array.ElementAt (i).ElementAt (2);
- }
- else
- str+=";客户:"+List11array.ElementAt (i).ElementAt (2);
- m_List1array.ElementAt (pos).Add(List11array.ElementAt (i).ElementAt (10));
- m_List1array.ElementAt (pos).Add(str);
- str=List11array.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- income+=atof(str);
- income2+=atof(str);
- m_List1array.ElementAt (pos).Add(List11array.ElementAt (i).ElementAt (5));
- m_List1array.ElementAt (pos).Add("收入");
- m_List1array.ElementAt (pos).Add(List11array.ElementAt (i).ElementAt (7)+" "+List11array.ElementAt (i).ElementAt (13));
- m_List1array.ElementAt (pos).Add(List11array.ElementAt (i).ElementAt (8));
- m_List1array.ElementAt (pos).Add(List11array.ElementAt (i).ElementAt (9));
- m_List1array.ElementAt (pos).Add(List11array.ElementAt (i).ElementAt (11));
- m_List1array.ElementAt (pos).Add(List11array.ElementAt (i).ElementAt (12));
- pos++;
- }
- for( i=0; i<List2array.GetSize (); i++)
- {
- if(List2array.ElementAt (i).ElementAt (8)=="套系升级二销")
- {
- if(List2array.ElementAt (i).ElementAt (7).GetLength ()>120)
- List2array.ElementAt (i).SetAt (7, List2array.ElementAt (i).ElementAt (7).Left (120)+"..");
- str=List2array.ElementAt (i).ElementAt (1)+";"+List2array.ElementAt (i).ElementAt (4)+";"+List2array.ElementAt (i).ElementAt (6)+";"+List2array.ElementAt (i).ElementAt (7);
- str.Replace (";;;", ";");str.Replace (";;", ";");
- m_List1array.ElementAt (pos).Add(List2array.ElementAt (i).ElementAt (0));
- m_List1array.ElementAt (pos).Add(str);
- str=List2array.ElementAt (i).ElementAt (2);
- m_List1array.ElementAt (pos).Add(str);
- income+=atof(str);
- income2+=atof(str);
- m_List1array.ElementAt (pos).Add(List2array.ElementAt (i).ElementAt (8));
- m_List1array.ElementAt (pos).Add("收入");
- m_List1array.ElementAt (pos).Add(List2array.ElementAt (i).ElementAt (3)+" "+List2array.ElementAt (i).ElementAt (11));
- m_List1array.ElementAt (pos).Add(List2array.ElementAt (i).ElementAt (9));
- m_List1array.ElementAt (pos).Add(List2array.ElementAt (i).ElementAt (5));
- m_List1array.ElementAt (pos).Add(List2array.ElementAt (i).ElementAt (10));
- m_List1array.ElementAt (pos).Add(" ");
- pos++;
- }
- }
- for( i=0; i<other2salearray.GetSize (); i++)
- {
- if(other2salearray.ElementAt (i).ElementAt (3)=="套系升级二销")
- {
- str=other2salearray.ElementAt (i).ElementAt (0)+";"+other2salearray.ElementAt (i).ElementAt (1)+";"+other2salearray.ElementAt (i).ElementAt (2);
- str.Replace (";;;", ";");str.Replace (";;", ";");
- m_List1array.ElementAt (pos).Add(other2salearray.ElementAt (i).ElementAt (8));
- m_List1array.ElementAt (pos).Add(str);
- str=other2salearray.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- income+=atof(str);
- income2+=atof(str);
- m_List1array.ElementAt (pos).Add(other2salearray.ElementAt (i).ElementAt (3));
- m_List1array.ElementAt (pos).Add("收入");
- m_List1array.ElementAt (pos).Add(other2salearray.ElementAt (i).ElementAt (5)+" "+other2salearray.ElementAt (i).ElementAt (10));
- m_List1array.ElementAt (pos).Add(other2salearray.ElementAt (i).ElementAt (7));
- m_List1array.ElementAt (pos).Add(other2salearray.ElementAt (i).ElementAt (6));
- m_List1array.ElementAt (pos).Add(other2salearray.ElementAt (i).ElementAt (9));
- m_List1array.ElementAt (pos).Add(" ");
- pos++;
- }
- }*/
- for (i = 0; i < memberarray.GetSize(); i++)
- {
- str = memberarray.ElementAt(i).ElementAt(1) + ";" + memberarray.ElementAt(i).ElementAt(5) + ";客户:" + memberarray.ElementAt(i).ElementAt(2);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(memberarray.ElementAt(i).ElementAt(0));
- m_List1array.ElementAt(pos).Add(str);
- str = memberarray.ElementAt(i).ElementAt(3);
- m_List1array.ElementAt(pos).Add(str);
- income += atof(str);
- m_List1array.ElementAt(pos).Add("会员充值");
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(memberarray.ElementAt(i).ElementAt(4) + " " + memberarray.ElementAt(i).ElementAt(8));
- if (memberarray.ElementAt(i).ElementAt(7) == "")
- m_List1array.ElementAt(pos).Add("现金");
- else
- m_List1array.ElementAt(pos).Add(memberarray.ElementAt(i).ElementAt(7));
- m_List1array.ElementAt(pos).Add(memberarray.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add(memberarray.ElementAt(i).ElementAt(6));
- m_List1array.ElementAt(pos).Add(" ");
- pos++;
- }
- }
- else if (m_radio1 == 9)//选片加挑
- {
- for (i = 0; i < List11array.GetSize(); i++)
- {
- if (List11array.ElementAt(i).ElementAt(5) != "选片二销")continue;
- str = List11array.ElementAt(i).ElementAt(0);
- str += ";" + List11array.ElementAt(i).ElementAt(3);
- if (!List11array.ElementAt(i).ElementAt(1).IsEmpty())
- {
- str += ";客户:" + List11array.ElementAt(i).ElementAt(1);
- if (!List11array.ElementAt(i).ElementAt(2).IsEmpty())
- str += "," + List11array.ElementAt(i).ElementAt(2);
- }
- else
- str += ";客户:" + List11array.ElementAt(i).ElementAt(2);
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt (pos).Add(str);
- str=List11array.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (List11array.ElementAt(i).ElementAt(8) != "储值卡扣款" && List11array.ElementAt(i).ElementAt(8) != "代金券") // 储值卡扣款;
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(7) + " " + List11array.ElementAt(i).ElementAt(13));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(12));
- pos++;
- }
- for (i = 0; i < List2array.GetSize(); i++)
- {
- if (List2array.ElementAt(i).ElementAt(8) == "选片二销")
- {
- if (List2array.ElementAt(i).ElementAt(7).GetLength()>120)
- List2array.ElementAt(i).SetAt(7, List2array.ElementAt(i).ElementAt(7).Left(120) + "..");
- str = List2array.ElementAt(i).ElementAt(1) + ";" + List2array.ElementAt(i).ElementAt(4) + ";" + List2array.ElementAt(i).ElementAt(6) + ";" + List2array.ElementAt(i).ElementAt(7);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(0));
- m_List1array.ElementAt (pos).Add(str);
- str=List2array.ElementAt (i).ElementAt (2);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (List2array.ElementAt(i).ElementAt(9) != "储值卡扣款" && List2array.ElementAt(i).ElementAt(9) != "代金券")
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(3) + " " + List2array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt(pos).Add(" ");
- pos++;
- }
- }
- for (i = 0; i < other2salearray.GetSize(); i++)
- {
- if (other2salearray.ElementAt(i).ElementAt(3) == "选片二销")
- {
- str = other2salearray.ElementAt(i).ElementAt(0) + ";" + other2salearray.ElementAt(i).ElementAt(1) + ";" + other2salearray.ElementAt(i).ElementAt(2);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt (pos).Add(str);
- str=other2salearray.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (other2salearray.ElementAt(i).ElementAt(7) != "储值卡扣款" && other2salearray.ElementAt(i).ElementAt(7) != "代金券")
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(3));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(5) + " " + other2salearray.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(7));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(6));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(11));
- pos++;
- }
- }
- }
- else if (m_radio1 == 10)//其它收入
- {
- for (i = 0; i < List2array.GetSize(); i++)
- {
- if (List2array.ElementAt(i).ElementAt(8) != "")continue;
- if (List2array.ElementAt(i).ElementAt(7).GetLength()>120)
- List2array.ElementAt(i).SetAt(7, List2array.ElementAt(i).ElementAt(7).Left(120) + "..");
- str = List2array.ElementAt(i).ElementAt(1) + ";" + List2array.ElementAt(i).ElementAt(4) + ";" + List2array.ElementAt(i).ElementAt(6) + ";" + List2array.ElementAt(i).ElementAt(7);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(0));
- m_List1array.ElementAt (pos).Add(str);
- str=List2array.ElementAt (i).ElementAt (2);
- m_List1array.ElementAt(pos).Add(str);
- #if 0
- income += atof(str);
- #else
- if (List2array.ElementAt(i).ElementAt(9) != "储值卡扣款" && List2array.ElementAt(i).ElementAt(9) != "代金券")
- {
- income += atof(str);
- }
- #endif
- m_List1array.ElementAt(pos).Add("其它收入");
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(3) + " " + List2array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt(pos).Add(List2array.ElementAt(i).ElementAt(12));
- pos++;
- }
- }
- else if(m_radio1 == 11)//其它二销
- {
- for (i = 0; i < other2salearray.GetSize(); i++)
- {
- str = other2salearray.ElementAt(i).ElementAt(0) + ";" + other2salearray.ElementAt(i).ElementAt(1) + ";" + other2salearray.ElementAt(i).ElementAt(2);
- str.Replace(";;;", ";"); str.Replace(";;", ";");
-
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt (pos).Add(str);
- str=other2salearray.ElementAt (i).ElementAt (4);
- m_List1array.ElementAt (pos).Add(str);
- #if 0
- income += atof(str);
- income2 += atof(str);
- #else
- if (other2salearray.ElementAt(i).ElementAt(7) != "储值卡扣款" && other2salearray.ElementAt(i).ElementAt(7) != "代金券")
- {
- income += atof(str);
- }
- income2 += atof(str);
- #endif
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(3));
-
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(5) + " " + other2salearray.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(7));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(6));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(other2salearray.ElementAt(i).ElementAt(11));
- pos++;
- }
- }
- m_List1array.SetSize(pos);
- str.Format("%0.2f", income);
- ::ConvertToPrice(str);
- SetDlgItemText(IDC_EDITmoney1, str);
- str.Format("%0.2f", income2);
- ::ConvertToPrice(str);
- SetDlgItemText(IDC_EDITmoney5, str);
- str.Format("%0.2f", payout);
- ::ConvertToPrice(str);
- SetDlgItemText(IDC_EDITmoney2, str);
- str.Format("%0.2f", income - payout);
- ::ConvertToPrice(str);
- SetDlgItemText(IDC_EDITmoney3, str);
- str.Format("%d", dindanshu);
- SetDlgItemText(IDC_EDITmoney4, str);
- FillGrid();
- PaymentMethodCount();
- }
- void MonthForm::OnRadio3()
- {
- UpdateData();
- KindChange();
- }
- void MonthForm::OnRadio4()
- {
- UpdateData();
- KindChange();
- }
- void MonthForm::OnRadio5()
- {
- UpdateData();
- KindChange();
- }
- void MonthForm::OnRadio6()
- {
- UpdateData();
- m_filter.Empty();
- KindChange();
- }
- void MonthForm::OnRadio7()
- {
- UpdateData();
- KindChange();
- }
- void MonthForm::OnRadio8()
- {
- UpdateData();
- KindChange();
- }
- void MonthForm::OnRadio9()
- {
- UpdateData();
- KindChange();
- }
- void MonthForm::OnRadio10()
- {
- UpdateData();
- KindChange();
- }
- void MonthForm::OnRadio11()
- {
- UpdateData();
- KindChange();
- }
- void MonthForm::OnRadio12()
- {
- UpdateData();
- KindChange();
- }
- void MonthForm::OnRadio13()
- {
- UpdateData();
- KindChange();
- }
- void MonthForm::OnBUTprint()
- {
- if (m_List1.GetItemCount() == 0)
- {
- AfxMessageBox("无内容!", MB_ICONINFORMATION);
- return;
- }
- CArray<CStringArray, CStringArray>Listarray;
- CString str, temp;
- m_static1.GetWindowText(str);
- CString title = g_cominfoarray.ElementAt(0).ElementAt(10) + str;
- int count = m_List1.GetItemCount() / 45;
- if (m_List1.GetItemCount() % 45)count++;
- Listarray.SetSize(m_List1.GetItemCount() + count, 1);
- int pos = 0;
- float otherpaytype1 = 0;
- float otherpaytype2 = 0;
- float otherpaytype3 = 0;
- int addpos = 1;
- for (int i = 0; i < m_List1.GetItemCount(); i++)
- {
- if (i % 45 == 0)
- {
- Listarray.ElementAt(pos).Add("项目名称");
- Listarray.ElementAt(pos).Add("金额");
- Listarray.ElementAt(pos).Add("项目类别");
- Listarray.ElementAt(pos).Add("收入/支出");
- pos++;
- }
- for (int j = 0; j < 3; j++)
- Listarray.ElementAt(pos).Add(m_List1.GetItemText(i, j + addpos));
- Listarray.ElementAt(pos).Add(m_List1.GetItemText(i, 3 + addpos) + "/" + m_List1.GetItemText(i, 5 + addpos));
- if (m_List1.GetItemText(i, 5 + addpos) == "POS机刷卡")
- otherpaytype1 += atof(m_List1.GetItemText(i, 1 + addpos));
- else if (m_List1.GetItemText(i, 5 + addpos) == "储值卡扣款")
- otherpaytype2 += atof(m_List1.GetItemText(i, 1 + addpos));
- else if (m_List1.GetItemText(i, 5 + addpos) == "积分兑换")
- otherpaytype3 += atof(m_List1.GetItemText(i, 1 + addpos));
- pos++;
- }
- Listarray.SetSize(pos, 1);
- str = "总收入:";
- GetDlgItemText(IDC_EDITmoney1, temp); str += temp;
- str += " 营业收入:";
- GetDlgItemText(IDC_EDITmoney5, temp); str += temp;
- str += " 总支出:";
- GetDlgItemText(IDC_EDITmoney2, temp); str += temp;
- str += " 净收入:";
- GetDlgItemText(IDC_EDITmoney3, temp); str += temp;
- str += " 定单数:";
- GetDlgItemText(IDC_EDITmoney4, temp); str += temp;
- str += "***";
- temp.Format("POS机刷卡:%d", (int)otherpaytype1);
- str += temp;
- temp.Format(" 储值卡扣款:%d", (int)otherpaytype2);
- str += temp;
- temp.Format(" 积分兑换:%d", (int)otherpaytype3);
- str += temp;
- CString ss;
- GetDlgItemText(IDC_EDITmoney3, ss);
- //temp.Format (" 现金:%d", (int) (atof(ss)-(otherpaytype1+otherpaytype2+otherpaytype3)) );
- temp.Format(" 柜台现金:%d", (int)(atof(ss) - (otherpaytype1 + otherpaytype3)));
- str += temp;
- g_pMainWnd->PrintDailyForm(&Listarray, title, str);
- }
- void MonthForm::TypeChange(CString str)
- {
- m_filter = str;
- FillGrid();
- PaymentMethodCount();
- }
- void MonthForm::OnCustomdrawList(NMHDR* pNMHDR, LRESULT* pResult)
- {
- NMLVCUSTOMDRAW* pLVCD = reinterpret_cast<NMLVCUSTOMDRAW*>(pNMHDR);
- // Take the default processing unless we set this to something else below.
- *pResult = 0;
- // First thing - check the draw stage. If it's the control's prepaint
- // stage, then tell Windows we want messages for every item.
- if (CDDS_PREPAINT == pLVCD->nmcd.dwDrawStage)
- {
- *pResult = CDRF_NOTIFYITEMDRAW;
- }
- else if (CDDS_ITEMPREPAINT == pLVCD->nmcd.dwDrawStage)
- {
- // This is the prepaint stage for an item. Here's where we set the
- // item's text color. Our return value will tell Windows to draw the
- // item itself, but it will use the new color we set here.
- // We'll cycle the colors through red, green, and light blue.
- if (m_List1.m_arLabels.ElementAt(pLVCD->nmcd.dwItemSpec).ElementAt(8).Find("已审核") == -1)
- pLVCD->clrText = RGB(220, 0, 0);
- else
- pLVCD->clrText = RGB(20, 133, 20);
- if (pLVCD->nmcd.dwItemSpec % 2)
- pLVCD->clrTextBk = g_gridcol1;
- else
- pLVCD->clrTextBk = g_gridcol2;
- // Store the color back in the NMLVCUSTOMDRAW struct.
- // Tell Windows to paint the control itself.
- *pResult = CDRF_DODEFAULT;
- }
- }
- void MonthForm::OnBUTprint5()
- {
- CString str;
- m_static1.GetWindowText(str);
- ListToXLS(&m_List1, "c:\\" + str + ".xls", 1);
- }
- void MonthForm::OnBUTprint4()
- {
- if (atoi(g_cominfoarray.ElementAt(0).ElementAt(115)))
- {
- SelExpendType dlg;
- dlg.m_mode = 3;
- if (dlg.DoModal() == IDOK)
- {
- m_jdd = dlg.m_sel;
- FillGrid();
- PaymentMethodCount();
- }
- }
- }
- void MonthForm::OnRadio14()
- {
- UpdateData();
- if (m_radio2 == 0)m_bForKF = 0;
- else
- {
- m_bForKF = 1;
- }
- KindChange();
- }
- void MonthForm::OnRadio15()
- {
- OnRadio14();
- }
- void MonthForm::OnRadio17()
- {
- UpdateData();
- KindChange();
- }
- void MonthForm::KindChange2()
- {
- m_jdd = "";
- CString str;
- int pos = 0;
- int dindanshu = 0;
- float income = 0;
- float income2 = 0;
- float payout = 0;
- int count = List2array.GetSize() + List3array.GetSize() + List11array.GetSize() + other2salearray.GetSize() + memberarray.GetSize();
- m_List1array.RemoveAll();
- m_List1array.SetSize(count);
- int i = 0;
- {
- m_filter.Empty();
- if (payoutdlg.GetSafeHwnd())payoutdlg.ShowWindow(SW_HIDE);
- }
- for (i = 0; i < memberarray.GetSize(); i++)
- {
- if (memberarray.ElementAt(i).ElementAt(6).IsEmpty())
- memberarray.ElementAt(i).SetAt(6, "未审核");
- memberarray.ElementAt(i).SetAt(0, memberarray.ElementAt(i).ElementAt(0) + ":4");
- }
- for (i = 0; i < List2array.GetSize(); i++)
- {
- if (List2array.ElementAt(i).ElementAt(10).IsEmpty())
- List2array.ElementAt(i).SetAt(10, "未审核");
- List2array.ElementAt(i).SetAt(0, List2array.ElementAt(i).ElementAt(0) + ":0");
- }
- for (i = 0; i < List3array.GetSize(); i++)
- {
- if (List3array.ElementAt(i).ElementAt(7).IsEmpty())
- List3array.ElementAt(i).SetAt(7, "未审核");
- List3array.ElementAt(i).SetAt(0, List3array.ElementAt(i).ElementAt(0) + ":1");
- }
- for (i = 0; i < List11array.GetSize(); i++)
- {
- if (List11array.ElementAt(i).ElementAt(11).IsEmpty())
- List11array.ElementAt(i).SetAt(11, "未审核");
- List11array.ElementAt(i).SetAt(10, List11array.ElementAt(i).ElementAt(10) + ":2");
- }
- for (i = 0; i < other2salearray.GetSize(); i++)
- {
- if (other2salearray.ElementAt(i).ElementAt(9).IsEmpty())
- other2salearray.ElementAt(i).SetAt(9, "未审核");
- other2salearray.ElementAt(i).SetAt(8, other2salearray.ElementAt(i).ElementAt(8) + ":3");
- }
- //if(m_radio1==2)//营业收入
- {
- for (i = 0; i < List11array.GetSize(); i++)
- {
- if (List11array.ElementAt(i).ElementAt(5) != "客服二销")continue;
- str = List11array.ElementAt(i).ElementAt(0);
- str += ";" + List11array.ElementAt(i).ElementAt(3);
- if (!List11array.ElementAt(i).ElementAt(1).IsEmpty())
- {
- str += ";客户:" + List11array.ElementAt(i).ElementAt(1);
- if (!List11array.ElementAt(i).ElementAt(2).IsEmpty())
- str += "," + List11array.ElementAt(i).ElementAt(2);
- }
- else
- str += ";客户:" + List11array.ElementAt(i).ElementAt(2);
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(10));
- m_List1array.ElementAt(pos).Add(str);
- str = List11array.ElementAt(i).ElementAt(4);
- m_List1array.ElementAt(pos).Add(str);
- income += atof(str);
- income2 += atof(str);
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(5));
- m_List1array.ElementAt(pos).Add("收入");
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(7) + " " + List11array.ElementAt(i).ElementAt(13));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(8));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(9));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(11));
- m_List1array.ElementAt(pos).Add(List11array.ElementAt(i).ElementAt(12));
- pos++;
- }
- }
- m_List1array.SetSize(pos);
- str.Format("%0.2f", income);
- ::ConvertToPrice(str);
- SetDlgItemText(IDC_EDITmoney1, str);
- str.Format("%0.2f", income);
- ::ConvertToPrice(str);
- SetDlgItemText(IDC_EDITmoney5, str);
- str.Format("%0.2f", 0);
- ::ConvertToPrice(str);
- SetDlgItemText(IDC_EDITmoney2, str);
- str.Format("%0.2f", income);
- ::ConvertToPrice(str);
- SetDlgItemText(IDC_EDITmoney3, str);
- str.Format("%d", 0);
- SetDlgItemText(IDC_EDITmoney4, str);
- FillGrid();
- PaymentMethodCount();
- }
- //支付方式计算
- void MonthForm::PaymentMethodCount()
- {
- int addpos = 1;
- float otherpaytype[9] = {0};
- float fIncome = 0; // 收入
- float fExpenditure = 0; // 支出
- CString strName = _T("");
- for (int i = 0; i < m_List1.GetItemCount(); i++)
- {
- if (m_List1.GetItemText(i, 5 + addpos) == "现金")
- {
- switch (m_radio1)
- {
- case 0: // 全部
- {
- if(m_List1.GetItemText(i, 3 + addpos) == _T("收入"))
- fIncome += atof(m_List1.GetItemText(i, 1 + addpos));
- else
- fExpenditure += atof(m_List1.GetItemText(i, 1 + addpos));
- }
- break;
- case 3: // 支出
- {
- fExpenditure += atof(m_List1.GetItemText(i, 1 + addpos));
- }
- break;
- default: // 只计算收入
- {
- fIncome += atof(m_List1.GetItemText(i, 1 + addpos));
- }
- break;
- }
- }
- else if (m_List1.GetItemText(i, 5 + addpos) == "POS机刷卡")
- otherpaytype[1] += atof(m_List1.GetItemText(i, 1 + addpos));
- else if (m_List1.GetItemText(i, 5 + addpos) == "银行转账")
- otherpaytype[2] += atof(m_List1.GetItemText(i, 1 + addpos));
- else if (m_List1.GetItemText(i, 5 + addpos) == "储值卡扣款")
- otherpaytype[3] += atof(m_List1.GetItemText(i, 1 + addpos));
- else if (m_List1.GetItemText(i, 5 + addpos) == "积分兑换")
- otherpaytype[4] += atof(m_List1.GetItemText(i, 1 + addpos));
- else if (m_List1.GetItemText(i, 5 + addpos) == "代金券")
- otherpaytype[5] += atof(m_List1.GetItemText(i, 1 + addpos));
- else if (m_List1.GetItemText(i, 5 + addpos) == "支付宝")
- otherpaytype[6] += atof(m_List1.GetItemText(i, 1 + addpos));
- else if (m_List1.GetItemText(i, 5 + addpos) == "财付通")
- otherpaytype[7] += atof(m_List1.GetItemText(i, 1 + addpos));
- else if (m_List1.GetItemText(i, 5 + addpos) == "微信支付")
- otherpaytype[8] += atof(m_List1.GetItemText(i, 1 + addpos));
- }
-
- // 计算现金
- CString strNum = _T("");
- CString strIncome = _T("");
- CString strExpenditure = _T("");
- switch (m_radio1)
- {
- case 0: // 全部
- {
- strIncome.Format(_T("%0.2f"), fIncome);
- ::ConvertToPrice(strIncome);
- strExpenditure.Format(_T("%0.2f"), fExpenditure);
- ::ConvertToPrice(strExpenditure);
- strName = _T("收入/支出现金:");
- strNum.Format(_T("%s/%s"), strIncome, strExpenditure);
- }
- break;
- case 3: // 支出
- {
- strExpenditure.Format(_T("%0.2f"), fExpenditure);
- ::ConvertToPrice(strExpenditure);
- strName = _T("支出现金:");
- strNum = strExpenditure;
- }
- break;
- default: // 只计算收入
- {
- strIncome.Format(_T("%0.2f"), fIncome);
- ::ConvertToPrice(strIncome);
- strName = _T("收入现金:");
- strNum = strIncome;
- }
- break;
- }
- ((CStatic*)GetDlgItem(IDC_STATIC_MonCash))->SetWindowText(strName);
- SetDlgItemText(IDC_MCash_EDIT, strNum);
-
- strNum.Format(_T("%0.2f"), otherpaytype[1]);
- ::ConvertToPrice(strNum);
- SetDlgItemText(IDC_MPOS_EDIT, strNum);
-
- strNum.Format(_T("%0.2f"), otherpaytype[2]);
- ::ConvertToPrice(strNum);
- SetDlgItemText(IDC_MBANK_EDIT, strNum);
-
- strNum.Format(_T("%0.2f"), otherpaytype[3]);
- ::ConvertToPrice(strNum);
- SetDlgItemText(IDC_MBANKCARD_EDIT, strNum);
-
- strNum.Format(_T("%0.2f"), otherpaytype[4]);
- ::ConvertToPrice(strNum);
- SetDlgItemText(IDC_MIntegral_EDIT, strNum);
-
- strNum.Format(_T("%0.2f"), otherpaytype[5]);
- ::ConvertToPrice(strNum);
- SetDlgItemText(IDC_MVouchers_EDIT, strNum);
-
- strNum.Format(_T("%0.2f"), otherpaytype[6]);
- ::ConvertToPrice(strNum);
- SetDlgItemText(IDC_MAlipay_EDIT, strNum);
-
- strNum.Format(_T("%0.2f"), otherpaytype[7]);
- ::ConvertToPrice(strNum);
- SetDlgItemText(IDC_MTenpay_EDIT, strNum);
-
- strNum.Format(_T("%0.2f"), otherpaytype[8]);
- ::ConvertToPrice(strNum);
- SetDlgItemText(IDC_MWechatPayment_EDIT, strNum);
- }
|