Hyappframe is a win form-based application framework that includes Serverweb Service, main program framework, organizational structure, rights control, menu navigation, basic data, system parameters, log management, scheduled tasks, and more.
Project Address: http://sourceforge.net/u/chinahysoft/profile/
0 getting the installation package
Compressed package contents as seen in 1-1.
Unzip the Hyappframe.zip, for example, to C:\HYAppFrame.
Figure 1-1
1 Installing Database Scripts 1.1 creating a new database
Open SQL Server managementstudio, new database 1-2 you see.
Figure 1-2
Name the database "Hyappframe". You can name it yourself. 1-3 of what you see.
Figure 1-3
1.2 Installing SQL Scripts
1-4 See, open hyappframe.sql, select Target database as "Hyappframe" and run.
Figure 1-4
1.3 Verifying that the database script installation is successful
1-5 of what you see. Running a SQL in the Query window, "SELECT * from Core_user" assumes that a return value indicates that the database was successfully installed.
Figure 1-5
2 Configuring IIS
Please install IIS from the Join Remove Windows feature.
2.1 Installing ASP.
To perform a naming prompt as an administrator, enter the following command to install ASP:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\ Aspnet_regiis.exe–i
Note: The path of the aspnet_regiis.exe is dependent on the installation environment.
2.2 Creating a Asp.netweb Service Site
1-6 of what you see. Open Internat Information Services (IIS) Manager.
Figure 1-6
1-7 of what you see. Join the site. Named "Hyws", the physical path points to the folder where "Hyappframews" is located, port is set to 1818. Note: In Windowsserverserver, make sure that 1818port is joined to the firewall to trust port.
Figure 1-7
2.3 Editing an application pool
Change the. NETFramework version 4.0,1-8 of the HYWS application pool that you see.
Figure 1-8
2.4 Configuring the Web. config
Set the database connection string and configure the parameters AppPath as the Web service absolute path address, as seen in code snippet 1-1.
Code Snippet 1-1
<configuration> <connectionStrings> <add name= "dbName" connectionstring= "Data source= Dai-pc\sqlexpress;initial catalog=hyappframe;integrated Security=false; User Id=sa; Password=yourpassword; " /> </connectionStrings> <appSettings> <add key= "AppName" value= "Mycrm"/> <add key= "AppPath" value= "C:\HYAppFrame\HYAppFrameWS\"/> <add key= "Passwordkey" value= "axs1|-_x"/> <add key= "sn" value= "gryy0osm3hkkrgnqtb68pdldtkjeeyvm+c58gcesi4ne33sk7nqn1uszimqnqkdjkjnseh8wkhi="/> </appSettings> <system.web> <compilation debug= "true" targetframework= "4.0"/> </system.web></configuration>
Start the site again Hyws
2.5 Test WebService is available
Enter the URL in the browser address bar Http://localhost:1818/master.asmx
, assuming that the following page appears, 1-9 see that the Asp.netweb service is installed correctly.
Figure 1-9
3 Client Development 3.1 update WebService reference URLs
Open the workaround hyappframe.sln,1-10 See, find the WebService in the solution, right-select "Properties"
Figure 1-10
Change the Web reference URL to "Http://localhost:1818/master.asmx?WSDL", and note the suffix must be added "? WSDL, and then right-select Update Web Reference. 1-11 of what you see.
Figure 1-11
3.2 Changing the client configuration file
Change the client configuration file Hyappframe\bin\debug\profile.xml, as seen in code snippet 1-2.
Code Snippet 1-2
<param name= "Ws.url" > <value> http://localhost:1818/master.asmx? Wsdl</value></param><param name= "ws.url.external" > <value> http://localhost:1818/ Master.asmx?Wsdl</value></param>
3.3 Account Password
Execute client program Hyappframe\bin\debug\hyappframe.exe, the login interface appears. Default account admin,password123456.
3.4 Changing global parameters
After logging into the system to open the system management à parameter definition, changes such as the following parameters, 1-12 see, modified file upload download can be used.
Figure 1-12
Finish
Hyappframe (WinForm framework source code) Installation Deployment Guide