138 lines
3.0 KiB
C#
138 lines
3.0 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Runtime.Serialization;
|
||
using System.ServiceModel;
|
||
using System.Text;
|
||
using System.Data;
|
||
|
||
namespace DeiNiu.Wcf
|
||
{
|
||
// 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IViechle”。
|
||
[ServiceContract]
|
||
public interface IViechle
|
||
{
|
||
[OperationContract]
|
||
DataSet Query(string querystr, int rownumStart, int rownumEnd);
|
||
[OperationContract]
|
||
DataTable queryActived();
|
||
|
||
[OperationContract]
|
||
bool update(List<wcfViechle> wcfViechles);
|
||
|
||
[OperationContract]
|
||
bool add(wcfViechle wcfViechle);
|
||
|
||
[OperationContract]
|
||
bool delete(wcfViechle wcfViechle);
|
||
}
|
||
|
||
[DataContract]
|
||
public class wcfViechle
|
||
{
|
||
internal int _id;
|
||
internal string _viechleId = String.Empty;
|
||
internal int _volume;
|
||
internal int _load;
|
||
internal int _airCondition;
|
||
internal decimal _length;
|
||
internal decimal _width;
|
||
internal decimal _height;
|
||
internal decimal _weight;
|
||
internal int _owner;
|
||
internal int _driver;
|
||
internal int _state;
|
||
|
||
public wcfViechle()
|
||
{
|
||
}
|
||
|
||
#region Public Properties
|
||
[DataMember]
|
||
public int id
|
||
{
|
||
get { return _id; }
|
||
set { _id = value; }
|
||
}
|
||
|
||
[DataMember]
|
||
public string viechleId
|
||
{
|
||
get { return _viechleId; }
|
||
set { _viechleId = value; }
|
||
}
|
||
[DataMember]
|
||
public int volume
|
||
{
|
||
get { return _volume; }
|
||
set { _volume = value; }
|
||
}
|
||
|
||
[DataMember]
|
||
public int state
|
||
{
|
||
get { return _state; }
|
||
set { _state = value; }
|
||
}
|
||
|
||
[DataMember]
|
||
public int load
|
||
{
|
||
get { return _load; }
|
||
set { _load = value; }
|
||
}
|
||
[DataMember]
|
||
public int airCondition
|
||
{
|
||
get { return _airCondition; }
|
||
set { _airCondition = value; }
|
||
}
|
||
[DataMember]
|
||
public decimal length
|
||
{
|
||
get { return _length; }
|
||
set { _length = value; }
|
||
}
|
||
[DataMember]
|
||
public decimal weight
|
||
{
|
||
get { return _weight; }
|
||
set { _weight = value; }
|
||
}
|
||
|
||
[DataMember]
|
||
public decimal width
|
||
{
|
||
get { return _width; }
|
||
set { _width = value; }
|
||
}
|
||
[DataMember]
|
||
public decimal height
|
||
{
|
||
get { return _height; }
|
||
set { _height = value; }
|
||
}
|
||
[DataMember]
|
||
public int owner
|
||
{
|
||
get { return _owner; }
|
||
set { _owner = value; }
|
||
}
|
||
[DataMember]
|
||
public int driver
|
||
{
|
||
get { return _driver; }
|
||
set { _driver = value; }
|
||
}
|
||
|
||
#endregion
|
||
|
||
|
||
|
||
}
|
||
|
||
|
||
|
||
|
||
}
|