设备管理系统 源代码及运行界面

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

源代码及运行界面

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; }

相关文档
最新文档