- ©«¤l
- 218
- ¥DÃD
- 73
- ºëµØ
- 0
- ¿n¤À
- 290
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN10
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2014-5-19
- ³Ì«áµn¿ý
- 2022-11-29
|
§ì¤å+´ú¸Õ¤F¦n¤[¡A²×©ó×קï§ï¥X¤F¥H¤U§Ú©Ò»Ýnªºµ{¦¡½X¡A¥u¬O¥Ø«eÁÙ¹J¨ì´XÓ°ÝÃD¡A¤£ª¾¹D¯à¤£¯à½Ð¨ä¥L¤j®vÌÀ°¬Ý¤@¤U~~~
¥H¤U¬O§Ú§Æ±æ¯à¦Û°Êµn¤J¤½¥qºô¯¸ > ÂI¿ï¬d¸ß¤é´Á > ¤U¸ü©Ò»Ý¼Æ¾ÚÀɮסA¦ý¦]¬°¬O¤½¥q¤ººôµLªk´£¨Ñ´ú¸Õºô¶¡A·Q°Ý³Ì«á¤@¨B¦Û°Ê¦sÀɪºµ{¦¡½Xn«ç»ò±µÄò¼g©O¡H
¥t¥~¬d¸ß¤é´Ájavascript:__doPostBack('ctl00$phCondition3$cldDate','6656'³o¬q¡A¸Ó¦p¦óÅý'6656'³oӼƦr¯à¦Û°Ê§ó·s¡A©Î¥Î¤°»ò¤è¦¡¥i¥HÅý¼Æ¦r¨C¤Ñ¦Û°Ê+1©O¡H¨Ò¦p'6656'¬O¤µ¤Ñ3/23¡A§Æ±æ©ú¤Ñ¯à¦Û°ÊÂI¿ï'6657'´N¬O3/24·í¤Ñ¡A«á¤Ñ¯à¦Û°ÊÂI¿ï'6658'´N¬O3/25·í¤Ñ...¥H¦¹Ãþ±À¡C
Sub ¦Û°Êµn¤J()
Dim a As Object
Set myIE = CreateObject("InternetExplorer.Application")
With myIE
.Visible = False
.Navigate "http://10.178.1.140:8023/Login.aspx" 'µn¤Jºô§}
Do While .ReadyState <> 4
DoEvents
Loop
Set a = .document.all.tags("INPUT")
.document.all.txtUserName.innertext = "BS0110" 'µn¤J±b¸¹
.document.all.txtPassword.innertext = "BS0110" 'µn¤J±K½X
.document.all.btnLogin.Click 'ÂI¿ïµn¤J«ö¶s
Do Until .ReadyState = 4
DoEvents
Loop
.Navigate "http://10.178.1.140:8023/ConditionPage/ConditionAgentDay.aspx" '¬d¸ß¼Æ¾Úºô§}
Application.Wait Now + 2 / 86400 'µ¥«Ý2¬í
.document.all.ctl00_tvReportListt16.Click 'ÂI¿ï¶i¤J¼Æ¾Úºô§}ªº½T»{«ö¶s
Application.Wait Now + 2 / 86400 'µ¥«Ý2¬í
.Navigate "javascript:__doPostBack('ctl00$phCondition3$cldDate','6656')" 'ÂI¿ï¬d¸ß¤é´Á'6656'¥Nªí¼Æ¦r23¡A¤]´N¬O·í¤ë23¸¹
Application.Wait Now + 2 / 86400 'µ¥«Ý2¬í
.document.forms(0).all("ctl00_btnConfirm").Click 'ÂI¿ï¬d¸ß«ö¶s
Application.Wait Now + 2 / 86400 'µ¥«Ý2¬í
.Navigate "http://10.178.1.140:8023/ReportPage/ReportAgentToDay_28_tptv.aspx" '¬d¸ß¼Æ¾Ú·|¦Û°Ê²£¥Í©ó¦¹ºô§}¶±
Do Until .ReadyState = 4
DoEvents
Loop
.document.forms(0).all("ctl00_btnDownload").Click 'ÂI¿ï¤U¸ü«ö¶s
'ÂI¿ï¤U¸ü«ö¶s«á¡Aºô¶·|¼u¥X¤U¸üÀÉ®×µøµ¡¡A¸ß°Ý"¶}±ÒÂÂÀÉ"¡B"Àx¦s"¡B"¨ú®ø"¿ï¶µ
'§Æ±æ¯à¦Û°ÊÀx¦s¦Ü¦P¸ê®Æ§¨¨Ã«O«ùìÀɦW.csvÀÉ(¤U¸üÀɮ׬°.csvÀÉ)
'½Ð°Ý¥H¤W³o¬qµ{¦¡½X¸Ó«ç»ò¼g©O¡H
End With
End Sub |
|