|
2006年12月7日
/Files/rttw/Excel.zip
本程序用來將多個excel 報(bào)表合并成一個文件,取第一個文件的前n 行做為報(bào)表的題頭,n 可自定義。
1.支持直接添加多個文件
2.支持直接添加某個文件夾下面的所有excel文件
3 支持直接將excel文件拖放到程序界面
4.可以單選或多選記錄然后用右鍵刪除
5.可以定義excel表頭記錄數(shù)
6.本版本暫時只支持合并Excel文件的第一個sheet
7.雙擊某條記錄可直接刪除
8.開發(fā)環(huán)境 VC6+OFFICE2007,其他版本OFFICE有可能不兼容
北京寄來的件,已經(jīng)第四天了,打電話到廣州中轉(zhuǎn),說還沒到廣州,竟然讓我自己打電話到北京去問.再說了兩句竟然掛了我的電話.簡直是垃圾啊.客戶打電話上來的有問題的件應(yīng)該是快遞公司內(nèi)部處理解決吧,竟然讓客戶自己去跟蹤??奉勸大家以后千萬不要用申通快遞,切記且記
[root@linux-test188 ~]# cdrecord -scanbus Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 J枚rg Schilling Note: This version is an unofficial (modified) version with DVD support Note: and therefore may have bugs that are not present in the original. Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla Note: The author of cdrecord should not be bothered with problems in this version. scsidev: 'ATA' devname: 'ATA' scsibus: -2 target: -2 lun: -2 Linux sg driver version: 3.5.27 Using libscg version 'schily-0.8'. cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c???? 1.83 04/05/20 Copyright 1997 J. Schilling'). scsibus1: ??????? 1,0,0?? 100) 'HL-DT-ST' 'CD-RW GCE-8400B ' '1.02' Removable CD-ROM ??????? 1,1,0?? 101) * ??????? 1,2,0?? 102) * ??????? 1,3,0?? 103) * ??????? 1,4,0?? 104) * ??????? 1,5,0?? 105) * ??????? 1,6,0?? 106) * ??????? 1,7,0?? 107) * [root@linux-test188 ~]# cdrecord -v speed=8 dev=1,0,0 test.iso
[root@linux-test188 ~]# mkisofs -r -o cd.iso -m temp ./tempfiles
select * from a,b where a.id=b.id(+); select * from a left join b on a.id=b.id;
很多資料說上面兩個語句的效果是一樣的,實(shí)際上今天經(jīng)過測試發(fā)現(xiàn)兩者的執(zhí)行計(jì)劃大不相同(查詢結(jié)果是一樣的); 至于為什么會這樣,暫時沒有深究,手頭的一個例子表明按照第一種寫法的效率會高,或許其他的例子結(jié)果不一樣,等有時間的時候再測試一下吧.
同樣的一條語句,一條是在pl/sql里面組裝成sql之后提交執(zhí)行,另外一條是用pro*c程序后綁定執(zhí)行,沒想到執(zhí)行策略和效率天差地別。看來做什么事都不能想當(dāng)然,要細(xì)心學(xué)習(xí)才行。保留此條語句以做紀(jì)念:
select * ? from (select /*+ INDEX(A IDX_HISBUFAREJOUR_ACCOUNT) +*/ ???????? a.*, f.sort_name ????????? from hs_his.hisbufarejour a, hs_fund.faresort f ???????? where (((((((a.fare_sort = f.fare_sort and a.client_id = :b0) and ?????????????? (:b1 = 0 or a.fund_account = :b2)) and ?????????????? a.init_date >= :b3) and a.init_date <= :b4) and ?????????????? (trim(:b5) is null or ?????????????? instr(((',' || :b6) || ','), ???????????????????????? ((',' || a.exchange_type) || ',')) > 0)) and ?????????????? (trim(:b7) is null or ?????????????? instr(((',' || :b8) || ','), ??????????????????????? ((',' || a.money_type) || ',')) > 0)) and ?????????????? (trim(:b9) is null or a.position_str > :b10)) ???????? order by a.position_str) ?where rownum <= :b11
?????? b0:130330000516 b1:595995 b2:595995 b3:20061221 b4:20061221 b5:1 b6:1 b7:2 b8:2 b9: b10: b11:30
vc的對話框中,如果直接用picturebox作為對話框的背景,則其他控件會被擋住。經(jīng)過高手指點(diǎn),重載了WM_ERASEBKGND消息處理函數(shù),很少的解決了這個問題。而且按照這個思路,可以很方便的為dialog增加動態(tài)的skin:
聲明消息處理函數(shù):
?// Generated message map functions ?//{{AFX_MSG(Input) ?afx_msg BOOL OnEraseBkgnd(CDC* pDC); ?afx_msg void OnButtonOk(); ?afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); ?afx_msg void OnPaint(); ?//}}AFX_MSG ?DECLARE_MESSAGE_MAP()
聲明消息循環(huán): BEGIN_MESSAGE_MAP(Input, CDialog) ?//{{AFX_MSG_MAP(Input) ?ON_BN_CLICKED(IDC_BUTTON_OK, OnButtonOk) ?ON_WM_LBUTTONDBLCLK() ?ON_WM_PAINT() ?ON_WM_ERASEBKGND() ?//}}AFX_MSG_MAP END_MESSAGE_MAP()
實(shí)現(xiàn): BOOL Input::OnEraseBkgnd(CDC* pDC) {
?if(m_hBmp) ?{ ??BITMAP bm; ??GetObject(m_hBmp,sizeof(bm),&bm); ??HDC hMemdc=CreateCompatibleDC(pDC->m_hDC); ??if(hMemdc) ??{ ???? HBITMAP hOldBmp=(HBITMAP)SelectObject(hMemdc,m_hBmp); ???? if(hOldBmp) ???? { ????? BitBlt(pDC->m_hDC,0,0,bm.bmWidth,bm.bmHeight,hMemdc,0,0,SRCCOPY); ????? SelectObject(hMemdc,hOldBmp); ????? DeleteDC(hMemdc); ????? DeleteObject(hOldBmp); ????? return TRUE; ???? } ???? else ??? DeleteDC(hMemdc); ??} ?} ?return CDialog::OnEraseBkgnd(pDC); }
|