1С Предприятие 7.7-8.0 Системное Программирование

  • Published on
    26-Dec-2015

  • View
    284

  • Download
    4

DESCRIPTION

programare

Transcript

<ul><li><p> ( http://librus.ru ) - . , ( , , , , ..). - e-book' (, , ). , . Internet - . ! ! . , " ". . . , , , , . . </p><p>librus</p></li><li><p>7.7/8.0 </p><p> OLE, COM,I ActiveX</p><p> WSH WMI</p><p> ADOSQL-DMO </p><p>TJVE DIRECTORYRVICE INTERFACES</p></li><li><p>1C:</p><p>7.7/8.0 </p><p>-</p><p>-</p><p>2005</p></li><li><p> 681.3.06 32.973.26-018.2</p><p>69</p><p> . .</p><p>69 1: 7.7/8.0: . .:-, 2005. 336 .: .</p><p>ISBN 5-94157-536-</p><p> , </p><p> - </p><p> "1:" 7.7 8.0. ActiveX, - Windows WMI WSH, ADO SQL-DMO, OLE Automation . "1C:". - -</p><p>, -.</p><p> 681.3.06 32.973.26-018.2</p><p> :</p><p>. . </p><p>. </p><p>. </p><p> 02429 24.07.00. 20.12.04. 70x100'/. . . . . 27,09.</p><p> 4000 . 722"-", 190005, -, ., 29.</p><p>- </p><p> 77.99.02.953..006421.11.04 11.11.2004 . .</p><p> " ""</p><p>199034, -, 9 , 12</p><p>ISBN 5-94157-536- . ., 2005 , "-", 2005</p></li><li><p> 9 9 9 11 CD-ROM 12 12</p><p> 1. ActiveX 13</p><p> ActiveX 13 Internet Explorer 15</p><p> '. 15 HTML- ...16 POST- HTML- 17</p><p> "Microsoft Winsock" 20 IP- 21 IP- 21</p><p> ActiveX ActiveBarCode ..* 22 ActiveX Windows Media Player 24 Microsoft Agent 26</p><p> MS Agent 26 MS Agent 27 MS Agent 36</p><p> HTML- 45 52</p><p> 2. Windows WMI 59</p><p> WMI 59 WMI 61 67 69</p></li><li><p> 70 71</p><p> 71 73 . 73 74 74</p><p> 75 76 76 77 77 Windows XP/Server 2003 77</p><p> 78 78 79 80 80 81</p><p> 82 '. 82 82</p><p> 83 84 84 85</p><p> 85 86 86 87</p><p> 87 88 89</p><p> 89 90 90</p><p> 91 92 92 93</p><p> 93 93 MAC- IP- 94 Ping 94</p></li><li><p> 149 151 153 154 MS Word 155 MS Word 159 MS Word 161</p><p> Microsoft Excel 164 MS Excel, 164, MS Excel 165 166 168 MS Excel 169 MS Excel 173</p><p> Microsoft PowerPoint : 176 MS PowerPoint ..176, 177 </p><p> v 179</p><p> Adobe Photoshop 181</p><p> 5. ADO 185 ADO 185 187 SQL- 192 198 (ADOX) 202</p><p> ... 203 206 208</p><p> Microsoft Excel OLE DB 209 Microsoft Project OLE DB 214</p><p> 6. SQL-DMO 227 SQL-DMO 227 228 229</p><p> 230 ..233 233</p><p> 234 234 236</p></li><li><p> 3. WSH 97 WSH 97 WSH 97 VB- (VBS) 98 100</p><p> , 100 102 , 104 104 105 105 105 106 , 108 - 109</p><p> 112 Windows 114</p><p> 114, 115 URL- 116</p><p> Windows 116 116, 117</p><p> 119 119 120 121</p><p> : 122 125 Microsoft Word 125 126 "1:" 126</p><p> 4. OLE Automation 129 OLE Automation 129 "1:" OLE Automation 130</p><p> OLE Automation 7.7 131 OLE Automation 8.0 135 - 8.0... 143</p><p> Microsoft Word 146 MS Word 147, 147</p></li><li><p> SQL- 246 SQL- 248 251 253</p><p> 7. Windows, ruiuU132 261</p><p> rund!132 261 262 269 271 272 276</p><p> 8. - 281</p><p> 281 mailto 281 MAPI 282 V7Plus.dll 286 Rom-Mail.dll 289 295 298</p><p> FTP 303 ftp.exe 303 FTPCoeduneme 310</p><p> 9. Active Directory Service Interfaces 313</p><p> ADSI 313 WinNT Provider 314 317 318 318 319 320 321</p><p>. - 329</p><p> 333</p></li><li><p> -?</p><p> . </p><p> ? - . ,</p><p> .</p><p> -</p><p> -</p><p> -</p><p>1: 7.7/8.0. -, </p><p> . -</p><p> -</p><p>.</p><p> -</p><p>, </p><p> -</p><p> - </p><p> , </p><p> .</p><p> : (095) 975-0442; (8162) 112-120</p><p> : info@tehuspeh.ru : www.tehuspeh.ru</p></li><li><p> "1C:" - 7.7 8.0, .</p><p> , </p><p>, "1:". : ActiveX,COM, WMI WSH; OLE Automation; - ADO SQL-DMO; , FTP; .</p><p> , -</p><p> "1C:" . , </p><p> "1:" - , </p><p> .</p><p>"1:". ,, , -</p><p> -.</p><p> , -</p><p> .</p><p> (7.7 8.0).</p><p> 1 " ActiveX". ActiveX. -, </p></li><li><p> . </p><p>, ActiveX. </p><p> . , </p><p> Internet Explorer, Microsoft Winsock, ActiveBarCode, Windows MediaPlayer ActiveX, Microsoft Agent . 2 " Windows WMI". -, -</p><p> Windows Management Instrumentation (WMI). , </p><p> ; ; ; ; - ; , . , -</p><p>, WMI. 3 " WSH". - </p><p>Windows Script Host (WSH). , WSH, , , Windows, , </p><p> .</p><p> WSH, - , -</p><p> .</p><p> 4 " OLE Automation". OLE Automation. OLE-, Microsoft Word, Excel, PowerPoint Adobe Photoshop. - "1:" 7.7 8.0 OLE Automation, - 8.0. OLE-, - , </p><p> OLE Automation. 5 " ADO". - </p><p> Microsoft ActiveX Data Objects (ADO). ADO, , -</p><p>, .</p><p> ADO ADO Extensionsfor Data Definition and Security (ADOX), </p></li><li><p> 11</p><p>, </p><p> , .</p><p> 6. " SQL-DMO". Microsoft SQL Server SQLDistributed Management Objects (SQL-DMO). Microsoft SQLServer, , , SQL-. -</p><p> Microsoft SQL Server, .</p><p> 7 " Windows, rundll32". </p><p>rundll32, , DLL-. -</p><p>, , .</p><p> 8 "-". - , </p><p>"1:" 7.7 8.0. </p><p>, , -</p><p> Messaging Application Program Interface (MAPI), , .</p><p> FTP. 9 " Active Directory Service Interfaces". , ActiveDirectory Service Interfaces (ADSI). WinNT Provider, , , </p><p> .</p><p> "1:" 7.7 8.0. - Microsoft Windows 2000 .</p><p> -, -</p><p> -.</p></li><li><p>_J2 </p><p> CD-ROM CD-ROM , -, . , -</p><p> Offline- - ERP Group (www.erpg.ru), .</p><p> -, -</p><p> :</p><p> http://www.ospi.ru " "; http://msdn.microsoft.com Microsoft Developer Network; http://rusproject.narod.ru " ", . ; http://admtech.mrsu.ru </p><p>. . . " Windows"; http://avblc.narod.ru ; http://www.erpg.ru "ERP Group". -</p><p> .</p></li><li><p> 1</p><p> ActiveX</p><p> ActiveX . </p><p> Component Object Model ( - ). " ". </p><p> . ,</p><p> , </p><p>. -</p><p> (DLL, EXE), "" , . </p><p>, . , -</p><p> -</p><p>. , - -</p><p> , . </p><p> .</p><p> , </p><p> . </p><p> , </p><p>"1:", . , ( ) .</p><p> ( ) Microsoft, , </p><p> Microsoft Windows 9x Microsoft Windows NT. Microsoft Macintosh. Microsoft - , </p></li><li><p>14 1</p><p> . , , </p><p> .</p><p> ActiveX COM. ActiveX , Microsoft - . , -</p><p> , , </p><p> -</p><p> - -</p><p> ( ). ActiveX- :' (, Microsoft Agent, Progress Control, Slider Control,</p><p>, .); , - -</p><p> .</p><p> ActiveX : , , -</p><p> ,</p><p> " " (ActiveX);</p><p> , -</p><p> , Open Group, - ( , Microsoft Metro-werks Bristol ActiveX Macintosh UNIX);</p><p> -</p><p>, , ActiveX Visual Basic, Visual C++, Borland Delphi, Borland C++,1: ;</p><p> ActiveX, -</p><p> ; , , ActiveX </p><p> (TCP/IP, HTML, Java), - , , Microsoft - OLE, .</p><p> , -</p><p> "1:", , , -</p><p> "1C". -</p></li><li><p> ActiveX 15</p><p> , -</p><p> . , </p><p> - ActiveX- "1:". "1:" ( 7.7) - - = (""). 8.8 . - </p><p> .</p><p> Internet Explorer-, Microsoft Internet Explorer, - . , -</p><p> Web- -, ,</p><p> GET POST- . -</p><p> Windows, HTML-. -.</p><p> , -</p><p>, internet Explorer , 1.1, .</p><p>objIE = ("InternetExplorer.Application");objIE.Visible =0; // objIE.Navigate("about:blank"); // objIE.readyState &lt; 4 // ;</p><p>oScreen = objIE.document.parentWindow.screen;(" : " + oScreen.width + "" +oScreen.height);</p><p> ". 7.7". 8.0 "" " ".</p></li><li><p>16 1</p><p> obj IE obj IE. readystate &lt; 4 objiE.busy ( ), Windows 9x - .</p><p> Internet Explorer, - , -</p><p> -</p><p>. </p><p> WSH WMI, - .</p><p> HTML- Microsoft Internet Explorer Document, - HTML ( , JScript: window.document). - HTML- .</p><p> Internet Explorer - HTML-, www.erpg.ru( 1.2 1.3). , , </p><p> ( ) - .</p><p>objIE = ("InternetExplorer.Application");objIE.Visible = 0;objIE.Silent = 0;objIE.Navigate(); objIE.readyState</p></li><li><p> ActiveX 17</p><p> 8.0</p><p>objIE = ("InternetExplorer.Application");objIE.Visible = ; // objIE.Silent = ;objIE.Navigate();(" . ..."); objIE.readyState</p></li><li><p>18 1</p><p> PostData. , , - "1:" . , -</p><p> SafeArray, "1C:" 7.7. POST- internetExpiorer.Application "" Submit ( , ) - HTML-. - , , POST-, , HTTP_REFERER,. . , () cookie , , POST-. 1.4 1.5 - " ". , </p><p> 7.7, 1.4, HTML- (. 1.1) , http://forum.erpg.ru.</p><p>; </p><p>:</p><p>| "" .!</p><p>. </p><p>. 1.1. HTML- </p><p>HTML- </p><p>objIE = ("InternetExpiorer.Application");objIE.Visible = 0;objIE.Silent = 0;objIE.Navigate("http://erpg.ru/frum/posting.php?mode=reply&amp;t=34") objIE.readyState</p></li><li><p> ActiveX 19</p><p>// " "objForm.elements("username").value = ();</p><p>;</p><p>objForm.elements("subject").value = ();objForm.elements("message").value = ();objIE.Visible = 1;("HTML- . Internet Explorer.");</p><p> , 7.7 - HTML- - , click , </p><p> Internet Explorer. , - , </p><p> submit: obj Form, submit . 8.0 "1:" -, </p><p>. </p><p> (. 1.5).</p><p>objIE = ("InternetExplorer.Application");objIE.Visible = ; // objIE.Silent = ;objIE.Navigate("http://erpg.ru/forum/posting.php?mode=reply&amp;t=34");(" . ..."); objIE.readyState</p></li><li><p>20 1</p><p>objForm.elements("message").value = ;objForm.elements("post").click(); // ""(" : " +"http://erpg.ru/forum/viewtopic.php?t=34");objIE.Quit(); // objIE = ;</p><p>- -</p><p> , </p><p>...... </p><p> ( username). , - , username .</p><p> , -</p><p> , username .</p><p> "Microsoft Winsock"Microsoft Winsock ActiveX, - TCP UDP . -, -</p><p> .</p><p> Winsock : ByteRecived , </p><p> ;</p><p> LocaiHostName ; Locaiip IP- </p><p>(...); LocaiPort ;</p><p> . 0, . -</p><p> . </p><p> TCP-. -. 0, . Listen , .</p><p>Protocol , Winsock ( TCP, UDP);RemoteHost IP- - , ( - IP-, FTP-);</p></li><li><p> ActiveX 21</p><p> RemoteHostip IP- ; RemotePort -</p><p> (, : 80 HTTP,26 - FTP);</p><p> state .</p><p> IP- IP- LocaiiP winsock. 1.6 , .</p><p> IP- </p><p>Winsock = ("MSWinsock.Winsock");(Winsock.LocaiiP) ;Winsock = ;</p><p> IP- IP- RemoteHostip winsock. 1.7 , .</p><p>Winsock = ("MSWinsock.Winsock");Winsock.Connect(, 139); Winsock.State = 4 // ;</p><p>-</p><p>(Winsock.RemoteHostIP);Winsock = ;</p><p> , .</p><p> TCP- 139, -, , .</p><p> Connect , - , .</p><p> -</p><p> state.</p></li><li><p>22 1</p><p> ActiveX ActiveBarCode -</p><p>, -</p><p> . </p><p> .</p><p> 20 ( ), , , . , -</p><p> .</p><p>, "1:" - -</p><p> ActiveX- ActiveBarCode. - "1:". - , -</p><p> , , </p><p> .</p><p> ActiveBarCode , . , :</p><p> Text ( ); ( </p><p> http://www.activebarcode.com); AutoType -</p><p> ;</p><p> showText ;</p><p> ForeCoior ; Backcoior ; Font . Barcode.ocx, , -</p><p> regsvr32 Barcode. .ActiveBarCode , . . - . , </p><p> ActiveX- - "1:". , 7.7 ActiveX- ( ). .</p></li><li><p> ActiveX 23</p><p> 7.7. , -</p><p> . - , -</p><p> ActiveBarCode ( MS Word,"1:" 8.0 .), 7.7. , - </p><p> (. 1.2).</p><p>L;</p><p>..! = ();..! = ;.. = ;</p><p>W </p><p>. 1.2. ActiveBarCode</p><p>"" ( 1.8).</p><p>.("");.("");.("");</p><p> , :</p><p>1. ActiveBarCode .</p><p>2. , , , (, ).</p></li><li><p>24 1</p><p> 8.0 "1:" . ActiveX- ( | ActiveX ActiveBarcode), (- | | )., ActiveBarcode , , 1.9.</p><p>.. = ;</p><p>..Text = ;..ShowText = ;..AutoType = ;</p><p> (. 1.3).</p><p>jj ActiveB aiCode</p><p>: [23456739:</p><p>0 iQS] </p><p>. 1.3. 8.0</p><p> ActiveX Windows Media PlayerActiveX- Microsoft Windows Media Player , , -</p><p> (JPG, BMP .). , -</p><p> .</p></li><li><p> ActiveX 25</p><p> Windows Media Player. 9.0, - http://www.microsoft.com/windows/windowsmedia/download/default.asp.</p><p>^ </p><p> , "1:" 7.7 - , </p><p> .</p><p> Windows Media Player "1C:" .</p><p>1. ActiveX- ActiveX. WindowsMedia Player.</p><p>2. , - ActiveX- ( 1.10).</p><p>-WMP.settings.autostart = True; // .WMP.URL = ;</p><p>((), 10, "");;</p><p> ......</p><p> , </p><p>. WMP ActiveX-. ActiveX Windows Media Player (tag, Bitrate .). 1.11 - .</p><p>'ActiveX Windows Media Player j</p><p>.WMP.settings.autostart = False;.WMP.URL = ;</p><p>// , </p></li><li><p>26 1</p><p>CM = ..11;</p><p>// (" : " + CM.getItemInfo("SourceURL"));</p><p>// = 0 CM.attributeCount-1 = CM.getAttributeName(); = CM.getltemlnf(CM.getAttributeName();( + " = " + );</p><p>;</p><p>((), 10, "");;</p><p> Microsoft Agent</p><p> MS AgentMicrosoft Agent , . -</p><p> -</p><p> , , </p><p>" 1 : ". Microsoft Agent - ( Microsoft Speech Application Programming Interface,SAPI 4.0), . (text-to-speech,TTS), . , </p><p> . Microsoft Agent ActiveX, - "1C:". Office 2000 Windows 2000. Microsoft Agent Windows 98 WindowsNT 4.0 Web- Microsoft (http://www.microsoft.com/msagent/). Microsoft -, . Merlin, Genie, - Robby Peedy (. 1.4).</p></li><li><p> ActiveX 27</p><p>. 1.4. Microsoft Agent</p><p> ,</p><p> .</p><p>^ </p><p> Microsoft Microsoft Text-To-Speech , "" ( Lernout&amp;Hauspie TTS3000), "" - Microsoft. , - Microsoft Agent Control 2.0 Merlin.</p><p> MS AgentMicrosoft Agent , - , , </p><p> . Microsoft Agent - , . </p><p> , . 1.5, .</p><p> "1C:" Microsoft Agent ("Agent. Control. 2 " ) , 7.7, ("Agent.Control.2"), 8.0. , , -</p><p> , (- 1.12).</p><p>// Agent = ("Agent.Control. 2 ")</p></li><li><p>28 1</p><p>("MS Agent !");</p><p>(" MS Agent Microsoft http://www.microsoft.com/ms agent/");</p><p>;</p><p>;</p><p>Agent.Connected = ; // </p><p>Agent.Characters.Load("Merlin", "Merlin.acs"); // </p><p>Agent.Characters("Merlin").Show(); // </p><p> , 1.12, . , ,</p><p> Load, : HTTP-. Microsoft Agent %WinDir%\MSAgent\Chars ( %WinDir% , - Microsoft Windows). , </p><p> . Microsoft Agent - : (ACS) - (ACF, ), http-.</p><p>LJ </p><p>'-- '. 1=; --4 ^S ..'-^ f =} ft :.; * - 1.5</p><p>i 1 . ,.</p><p>: L</p><p>| ^ 6212:'"|1| 02.06.2003 12: 00: 00</p><p>it*: &gt; 02.06.2003 19:30:22</p><p>!tf*j 103.06.20031:18:57" "!r* |22:kX i 03.06.2003 12:00:01f,3f "^"</p><p>IEa .</p><p>''!?1""" "</p><p> ""</p><p> ""</p><p> '"</p><p> "</p><p> "</p><p>'"" "</p><p> [^ ! |__^ I </p><p>~75. '... ;|</p><p>75.1 ~ ..7"</p><p>80</p><p>80"</p><p>; ? _ X</p><p> _ { .0000000013 | ...</p><p>.</p><p> 0...'";:;!...</p><p>0000000018 ...000066020 ? "... v</p><p>::~ ^ ; | "^.;^ i |</p><p>( KfE</p></li><li><p> ActiveX 29</p><p>. -</p><p>.</p><p> show - . </p><p> Hide, . , ,</p><p> ( 1.13). ShowDefaultCharacterProperties Agent . -</p><p> ( ) (X, Y), </p><p>.</p><p> 1.13. MS Agent </p><p>Agent = ("Agent.Control.2");</p><p>("MS Agent !");;</p><p>' ;</p><p>Agent.Connected = ; // // Agent.ShowDefaultCharacterProperties(4, 4);Agent.Characters.Load(,); // Agent.Characters("").Show(); // </p><p> "" ,</p><p>. . . MS Agent -: MoveTo Play. , Agent, ( 1.14).----'"'""'---------"--"--"-- - -^ ------------ .-- -j! 1.14. MS Agent</p><p>Agent = ("Agent.Control.2");</p><p>("MS Agent !");</p></li><li><p>30 1</p><p>;</p><p>;</p><p>Agent.Connected = ; // Agent.Characters.Load("Merlin", "Merlin.acs"); // Characters = Agent.Characters("Merlin"); // Characters.Show(}; // // Characters.MoveTo(100, 100); // (X, Y)Characters.MoveTo(200, 0, 500); // 500 Characters.MoveTo(300, 100, 0); //0 - // = 1 5 </p><p>// Characters.Play("GetAttentionContinued");</p><p>;</p><p>Characters.Play("Search"); // </p><p> MoveTo -. </p><p> (X, Y) . - . </p><p>1000 . - .</p><p> Play , . </p><p> , -</p><p> .</p><p> -</p><p>, AnimationNames, . , 7.7 "1C:" - . 8.0 , </p><p> 1.15.</p><p>Agent = ("Agent.Control.2");</p><p>("MS Agent !");</p></li><li><p> ActiveX 31</p><p>;</p><p>;</p><p>Agent.Connected = ; // Agent.Characters.Load("Merlin", "Merlin.acs"); // Characters = Agent.Characters("Merlin"); // // . . Characters.AnimationNames() ();</p><p>;</p><p>Microsoft Agent . . </p><p> , , -</p><p> Request, .</p><p>Microsoft Agent . , , Agent - .</p><p> , stop, (, , ) StopAll.</p><p> Microsoft Agent , : , </p><p> .</p><p> - , Think, Speak ( 1.16).</p><p>f MS Agent</p><p>Agent = ("Agent.Control.2");</p><p>("MS Agent !");;</p><p>;</p><p>Agent.C...</p></li></ul>

Recommended

View more >