2,743
edits
(Created page with "==Version Applicable== AutoCount Accounting '''1.8.30'''.136 and higher ==Introduction== In order to connect to one of the account book in AutoCount Accounting, there are fe...") |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1:
{{DRAFT}}
==Version Applicable==
AutoCount Accounting '''
==Introduction==
In order to connect to one of the account book
To understand each of the steps, a program is written to test the result of each step.<br />
STEP 1. Create UserSession & DBSetting
STEP 2. Call (Create) SubProjectStartup
STEP 3. Login to AutoCount Accounting 2.0
{{SourceDownload|link=https://drive.google.com/open?id=
[[File:ProgramSampleTestConnect.png|link=]]<br />
<br />
==UserSession and DBSetting==
'''
Even when writing scripting for report script
UserSession and DBSetting
Moreover, it provides methods such as GetDataTable(...), ExecuteScalar(...), ExecuteNonQuery(...) and more for programmer to
During its creation, two pieces of information is important, they are the '''server name''' and '''database name'''.
Namespace:
===Create DBSetting with AutoCount default configuration===
Line 26 ⟶ 27:
Below example code shows the DBSetting is created with new operator.
<syntaxhighlight lang="csharp">
</syntaxhighlight>
* DBServerType which is the First parameter is always DBServerType.SQL2000, regardless of which Microsoft SQL Server version is being applied.
* To obtain available '''Server Name''' and '''Database Name''':
** Programatically, you may refer to "[[Programmer:Create
** Manually, at the login screen of AutoCount Accounting.
<br />
===Create DBSetting while
<syntaxhighlight lang="csharp">
</syntaxhighlight>
* sa login password can be omitted when the password is using AutoCount default sa login password.
Line 46:
<br />
<!--
==SubProjectStartupWithLogin==
*When using '''SubProjectStartupWithLogin''' it does the following tasks:
Line 116 ⟶ 117:
<br />
{{Warn|For inter-billing and integration, if '''StartupPlugInOption.LoadStandardPlugIn''' is not stated in SubProjectStartup, the target account book will not load plug-in that has/have installed.}}
<br />
==Login to AutoCount Accounting==
In order to create transaction and document, Login to AutoCount Accounting is required.
To login to AutoCount Accounting, use object of '''AutoCount.Authentication.UserSession''' to login.
<syntaxhighlight lang="csharp">
bool loginSuccess =
if (loginSuccess)
Line 154 ⟶ 135:
}
</syntaxhighlight>
-->
<br/>
==See Also==
*[[Programmer:Create BCE.Data.DBSetting with Database Info|Create BCE.Data.DBSetting with Database Info in AutoCount Accounting 1.8]]▼
*[[Programmer:Simple program to test connection to AutoCount Accounting v2|A simple program to test connection to AutoCount Accounting 2.0]]
*[[Programmer:Simple program to test connection to AutoCount Accounting|A simple program to test connection to AutoCount Accounting 1.8/1.9]]
▲*[[Programmer:Create BCE.Data.DBSetting with Database Info|Create BCE.Data.DBSetting with Database Info in AutoCount Accounting 1.8/1.9]]
*[[Invalid LCPDecryptFileException was unhandled]]
<br />
|