文件名称:DelphiCDSService2010
-
所属分类:
- 标签属性:
- 上传时间:2012-11-15
-
文件大小:494.49kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
delphi调用C#Webservice访问数据库
//查询数据
procedure TForm1.Button1Click(Sender: TObject)
var
ls_Table: string
ls_Service: Service1Soap
begin
ls_Service := Buf_GetBuleService
ls_Table := Customers
ClientDataSet1.XMLData := ls_Service.Buf_GetADONetToCDSXml( Northwind ,ls_Table, select * from +ls_Table)
end
//保存数据
procedure TForm1.Button2Click(Sender: TObject)
var
ls_Table: string
ls_Service: Service1Soap
begin
ls_Service := Buf_GetBuleService
ls_Table := Customers
if ClientDataSet1.State in [dsEdit,dsInsert] then
ClientDataSet1.Post
if ClientDataSet1.ChangeCount>0 then
ls_Service.Buf_PutCDSXmlToADONet( Northwind ,ls_Table,ClientDataSet1.XMLData)
end
-procedure TForm1.Button1Click(Sender: TObject)
var
ls_Table: string
ls_Service: Service1Soap
begin
ls_Service := Buf_GetBuleService
ls_Table := Customers
ClientDataSet1.XMLData := ls_Service.Buf_GetADONetToCDSXml( Northwind ,ls_Table, select* from +ls_Table)
end
procedure TForm1.Button2Click(Sender: TObject)
var
ls_Table: string
ls_Service: Service1Soap
begin
ls_Service := Buf_GetBuleService
ls_Table := Customers
if ClientDataSet1.State in [dsEdit,dsInsert] then
ClientDataSet1.Post
if ClientDataSet1.ChangeCount>0 then
ls_Service.Buf_PutCDSXmlToADONet( Northwind ,ls_Table,ClientDataSet1.XMLData)
end
//查询数据
procedure TForm1.Button1Click(Sender: TObject)
var
ls_Table: string
ls_Service: Service1Soap
begin
ls_Service := Buf_GetBuleService
ls_Table := Customers
ClientDataSet1.XMLData := ls_Service.Buf_GetADONetToCDSXml( Northwind ,ls_Table, select * from +ls_Table)
end
//保存数据
procedure TForm1.Button2Click(Sender: TObject)
var
ls_Table: string
ls_Service: Service1Soap
begin
ls_Service := Buf_GetBuleService
ls_Table := Customers
if ClientDataSet1.State in [dsEdit,dsInsert] then
ClientDataSet1.Post
if ClientDataSet1.ChangeCount>0 then
ls_Service.Buf_PutCDSXmlToADONet( Northwind ,ls_Table,ClientDataSet1.XMLData)
end
-procedure TForm1.Button1Click(Sender: TObject)
var
ls_Table: string
ls_Service: Service1Soap
begin
ls_Service := Buf_GetBuleService
ls_Table := Customers
ClientDataSet1.XMLData := ls_Service.Buf_GetADONetToCDSXml( Northwind ,ls_Table, select* from +ls_Table)
end
procedure TForm1.Button2Click(Sender: TObject)
var
ls_Table: string
ls_Service: Service1Soap
begin
ls_Service := Buf_GetBuleService
ls_Table := Customers
if ClientDataSet1.State in [dsEdit,dsInsert] then
ClientDataSet1.Post
if ClientDataSet1.ChangeCount>0 then
ls_Service.Buf_PutCDSXmlToADONet( Northwind ,ls_Table,ClientDataSet1.XMLData)
end
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DelphiCDSService.suo
DelphiCDSService/App_Data
DelphiCDSService/bin/DelphiCDSService.dll
DelphiCDSService/bin/DelphiCDSService.pdb
DelphiCDSService/bin
DelphiCDSService/DelphiCDSService.csproj
DelphiCDSService/DelphiCDSService.csproj.user
DelphiCDSService/DNDDSToCDS.cs
DelphiCDSService/obj/Debug/DelphiCDSService.csproj.FileListAbsolute.txt
DelphiCDSService/obj/Debug/DelphiCDSService.dll
DelphiCDSService/obj/Debug/DelphiCDSService.pdb
DelphiCDSService/obj/Debug/TempPE
DelphiCDSService/obj/Debug
DelphiCDSService/obj
DelphiCDSService/Properties/AssemblyInfo.cs
DelphiCDSService/Properties
DelphiCDSService/Service1.asmx
DelphiCDSService/Service1.asmx.cs
DelphiCDSService/Web.config
DelphiCDSService
DelphiClient/Project1.cfg
DelphiClient/Project1.dof
DelphiClient/Project1.dpr
DelphiClient/Project1.exe
DelphiClient/Project1.res
DelphiClient/Project1.~dpr
DelphiClient/Service1.dcu
DelphiClient/Service1.pas
DelphiClient/Service1.~pas
DelphiClient/Unit1.dcu
DelphiClient/Unit1.dfm
DelphiClient/Unit1.pas
DelphiClient/Unit1.~dfm
DelphiClient/Unit1.~pas
DelphiClient
DelphiCDSService.gpState
DelphiCDSService.sln
DelphiCDSService/App_Data
DelphiCDSService/bin/DelphiCDSService.dll
DelphiCDSService/bin/DelphiCDSService.pdb
DelphiCDSService/bin
DelphiCDSService/DelphiCDSService.csproj
DelphiCDSService/DelphiCDSService.csproj.user
DelphiCDSService/DNDDSToCDS.cs
DelphiCDSService/obj/Debug/DelphiCDSService.csproj.FileListAbsolute.txt
DelphiCDSService/obj/Debug/DelphiCDSService.dll
DelphiCDSService/obj/Debug/DelphiCDSService.pdb
DelphiCDSService/obj/Debug/TempPE
DelphiCDSService/obj/Debug
DelphiCDSService/obj
DelphiCDSService/Properties/AssemblyInfo.cs
DelphiCDSService/Properties
DelphiCDSService/Service1.asmx
DelphiCDSService/Service1.asmx.cs
DelphiCDSService/Web.config
DelphiCDSService
DelphiClient/Project1.cfg
DelphiClient/Project1.dof
DelphiClient/Project1.dpr
DelphiClient/Project1.exe
DelphiClient/Project1.res
DelphiClient/Project1.~dpr
DelphiClient/Service1.dcu
DelphiClient/Service1.pas
DelphiClient/Service1.~pas
DelphiClient/Unit1.dcu
DelphiClient/Unit1.dfm
DelphiClient/Unit1.pas
DelphiClient/Unit1.~dfm
DelphiClient/Unit1.~pas
DelphiClient
DelphiCDSService.gpState
DelphiCDSService.sln
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.