设备管理系统 源代码及运行界面
- 格式:doc
- 大小:3.02 MB
- 文档页数:91
源代码及运行界面
1.model类
a.Depart.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace model
{
public class Depart
{
public Depart()
{ }
#region model
private int _departid;
private string _departname;
private int _parentid;
public int DepartID
{
set {_departid = value; }
get { return _departid; }
}
public string DepartName
{
set { _departname = value; }
get { return _departname; }
}
public int ParentID
{
set { _parentid = value; }
get { return _parentid; }
}
#endregion model
}
}
b.Device.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace model
{
public class Device
{
public Device()
{ }
#region model
private int _deviceid;
private string _devicetypeid;
private int _typeid;
private int _classid;
private string _devicestate;
private Single _price;
private int _useofyear;
private Single _svp;
private string _manufacture;
private DateTime _stocktime;
public int DeviceID
{
set { _deviceid = value; }
get { return _deviceid; }
}
public string DeviceTypeID
{
set { _devicetypeid = value; }
get { return _devicetypeid; }
}
public int TypeID
{
set { _typeid = value; }
get { return _typeid; }
}
public int ClassID
{
set { _classid = value;}
get { return _classid; }
}
public string DeviceState
{
set { _devicestate = value; }
get { return _devicestate; }
}
public Single Price
{
set { _price = value; }
get { return _price; }
}
public int UseOfYear
{
set { _useofyear = value; }
get { return _useofyear; }
}
public Single SVP
{
set { _svp = value; }
get { return _svp; }
}
public string Manufacture
{
set { _manufacture = value; }
get { return _manufacture; } }
public DateTime StockDate
{
set { _stocktime = value; }
get { return _stocktime; }
}
#endregion model
}
}
c.D eviceClass.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace model
{
public class DeviceClass
{
public DeviceClass()
{ }
#region model
private int _classid;
private string _classname;
private int _typeid;
public int ClassID
{
set { _classid = value; }
get { return _classid; }
}
public string ClassName
{
set { _classname = value;}
get { return _classname; }
}
public int TypeID
{
set { _typeid = value; }