Home > Back-end >  T finish. Net4 and Delphi7 is solutions
T finish. Net4 and Delphi7 is solutions

Time:10-27

This scheme provides Delphi7 with.net application of coordinated development, the.net application development server, Delphi7 client, the client need to realize the interface, the user input operation
And the error display (tip), other operations (including the client check data sets or individual records are sent back to the server) are finished on the server, the server
Support the deployment of the Web server (IIS, Webservice) or independent server (can be used as a Windows program run independently or service running, TCP protocol),
"Friends of the distribution management system" are implemented based on the framework, see the "POS management user manual. Doc", see "Readme. Doc" initial setup,

A. NET (c #) service component description
.net (c #) service component development based on DotNetFrame4.0, server-side integration Castle to support AOP, as long as in the project reference BuleCommon. DLL assemblies,
Class (Class) to inherit from BuleCommon. BuEntity. BuEntityObj and specified in front of the Class and method [BuleCommon. BuEntity. BuEntityAttribute ()]
Features, implementation Bule_EntityRegClass: IBule_EntityRegClass registered classes to complete the service component can,
Service component class framework:
Using BuleCommon;
Using BuleCommon. BuEntity;
The namespace BuJxcData
{
[BuEntity ()]//that the client can access the service component (class)
Public class BuIOBillValidate: BuEntityObj
{
[BuEntity (BuEntityMethod. BemValidate)]//that the client can access the service component list record check method
Public virtual bool Buf_CallCalcFields (ref BuleEntityCall EntityData, ref BuRecordSet you)
{
}
[BuEntity (BuEntityMethod. BemValidates)]//that the client can access the service component more record check method
Public virtual bool Buf_RefreshPriceList (ref BuleEntityCall EntityData, ref the DataSet ds)
{
}
}
[BuEntity ()]//that the client can access the service component (class)
Public class BuCustomers: BuEntityObj
{
[BuEntity (BuEntityMethod. BemGetName)]//that the client can access the service component according to the code method to obtain information
Public BuRecordSet Buf_GetCustData (ref BuleEntityCall EntityData)
{
}
}
[BuEntity ()]//that the client can access the service component (class)
Public class BuStockCgInBill: BuEntityObj
{
[BuEntity (BuEntityMethod. BemOpen)]//that the client can access the service component to open method
Public virtual DataSet Buf_OpenBillData (ref BuleEntityCall EntityData)
{
}
[BuEntity (BuEntityMethod. BemSave)]//that the client can access the service component to preserve
Override public bool Buf_SaveBillData (ref BuleEntityCall EntityData, ref the DataSet ds)
{
}
[BuEntity (BuEntityMethod. BemAudit)]//that the client can access the service component audit methods
Public bool Buf_SaveCgInAuditBill (ref BuleEntityCall EntityData, ref the DataSet ds)
{
}
}
}

2. Bule VCL component description
1. Bu_ClientObj
Registration information is used to provide module (module name, subsystem Numbers, the module number, etc.) and access server (by Bu_DataAccess Bu_ClientUser implementation),
Design can't access to server information,

2. Bu_Connection
Used to provide a connection to the server, is mainly used to provide design support for the back component,

3. Bu_EntityUpdate
Used to provide data updates, support for multiple data sets (table) more update at the same time, the data retrieved from the server at a time, change after a back to the server update, specific how to obtain data
Or update the data by the.net application on the server, and provides three kinds of operations: open (Buf_OpenEntityData), save (Buf_SaveEntityData),
Review (Buf_AuditEntityData) to complete the data update, the component to provide design support, set up after the server connection, you can choose from the server to complete the data update
.net assemblies, the server component, open method, preservation method, audit method, perform the corresponding operation when the component is called correspondence..net assembly to complete the specified
Operation, the data format with XML encapsulation, test operation to support design,

4. Bu_EntityQuery
Used to provide data query operation, the component to provide design support, set up after the server connection, you can choose from the server to complete the data query..net assemblies, the server component,
Query methods that will call the corresponding component when performing a query operation..net assemblies complete query operation, data format with XML encapsulation, test operation to support design,

5. Bu_RecordValidate
Used to provide for a single record check operation, the component to provide design support, set up after the server connection, you can choose from the server to complete the data validation..net assemblies,
Server components, calibration method, implement the validation operation component will call corresponds to a single record data is sent back to the server. The.net assemblies complete check, and then return to check
Good records, and then based on the returned record update client, encapsulated with JSON data format support design testing operation,

6. Bu_RecordSetValidate
Used to provide the data set (record) check the operation, the component to provide design support, set up after the server connection, you can choose from the server to complete the data update..net assemblies,
Server components, calibration method, implement the validation operation component will be data set (record) is sent back to the server call..net assemblies complete check, and then return to check
Good data set (record), according to update the client data set return data set, data format with XML encapsulation, test operation to support design,

7. Bu_EntityGetName
Used to provide access to information according to the code of the operation, the component to provide design support, set up after the server connection, can choose the complete access to information from the server. The.net assemblies,
Server components, calibration method, perform calibration operation components will call the corresponding code will be sent back to the server. The.net assemblies complete access to information, and then returns to obtain information records,
According to return to record update client, encapsulated with JSON data format support design testing operation,

http://download.csdn.net/detail/hz_bule/4972876

CodePudding user response:

My client/webserver is
Front Delphi, back end web application service program (written by Delphi isapi or any asp/PHP/JSP/c #/... )

CodePudding user response:

reference 1st floor sz_haitao response:
my client/webserver is
Front Delphi, back end web application service program (written by Delphi isapi or any asp/PHP/JSP/c #/... )

- client/webserver is through interaction in the XML file format?

CodePudding user response:

refer to the second floor Foryour reply:
reference 1st floor sz_haitao reply: my client/webserver is
Front Delphi, back end web application service program (written by Delphi isapi or any asp/PHP/JSP/c #/... )
- client/webserver is through interaction in the XML file format?


Through ini (the analysis of its cost is far lower than the XML and json)
  • Related