476 lines
12 KiB
C#
476 lines
12 KiB
C#
/********************************************************************************
|
||
|
||
** 作者:杨斌
|
||
|
||
** 创始时间:2012-12-08
|
||
|
||
** 描述:供应商管理模块 供应商Model层
|
||
|
||
*********************************************************************************/
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.ComponentModel;
|
||
using WMS.Attirubte;
|
||
|
||
namespace WMS.Model.Base
|
||
{
|
||
[Serializable]
|
||
[TableClmAttribute(TableName = "t_base_provider_dictionary")]
|
||
public class ProviderModel
|
||
{
|
||
#region Model
|
||
private string _provider_id;
|
||
private string _pro_type_id;
|
||
private string _provider_name;
|
||
//private string _province;
|
||
//private string _city;
|
||
//private string _town;
|
||
private string _address;
|
||
private string _linkman;
|
||
private string _phone;
|
||
private string _mobile;
|
||
private string _fax;
|
||
private string _email;
|
||
private string _postcode;
|
||
private string _bank;
|
||
private string _account_name;
|
||
private string _account;
|
||
private string _py_name;
|
||
private Int64 _arr_days;
|
||
private string _pro_type_name;
|
||
|
||
/// <summary>
|
||
/// 供应商编号
|
||
/// </summary>
|
||
[DisplayName("供应商编号")]
|
||
public string PROVIDER_ID
|
||
{
|
||
set { _provider_id = value; }
|
||
get { return _provider_id; }
|
||
}
|
||
// /// <summary>
|
||
// /// 供应商类别编号
|
||
// /// </summary>
|
||
// ///
|
||
//[DisplayName("供应商类别")]
|
||
//[TableClmAttribute(ClmJoinTable = "t_base_Provider_Type", JoinTableClm = "PRO_TYPE_ID", JoinTableClmName = "PRO_TYPE_NAME")]
|
||
// public string PRO_TYPE_ID
|
||
// {
|
||
// set { _pro_type_id = value; }
|
||
// get { return _pro_type_id; }
|
||
// }
|
||
///// <summary>
|
||
///// 供应商类别名称
|
||
///// </summary>
|
||
/////
|
||
// [DisplayName("供应商类别名称")]
|
||
// [TableClm(NoSelect=false)]
|
||
//public string PRO_TYPE_NAME
|
||
//{
|
||
// set { _pro_type_name = value; }
|
||
// get { return _pro_type_name; }
|
||
//}
|
||
// /// <summary>
|
||
/// 供应商名称
|
||
/// </summary>
|
||
[DisplayName("供应商名称")]
|
||
public string PROVIDER_NAME
|
||
{
|
||
set { _provider_name = value; }
|
||
get { return _provider_name; }
|
||
}
|
||
// /// <summary>
|
||
// /// 省份
|
||
// /// </summary>
|
||
// ///
|
||
//[DisplayName("省份")]
|
||
// public string PROVINCE
|
||
// {
|
||
// set { _province = value; }
|
||
// get { return _province; }
|
||
// }
|
||
// /// <summary>
|
||
// /// 城市
|
||
// /// </summary>
|
||
// ///
|
||
//[DisplayName("城市")]
|
||
// public string CITY
|
||
// {
|
||
// set { _city = value; }
|
||
// get { return _city; }
|
||
// }
|
||
// /// <summary>
|
||
// /// 区或者镇
|
||
// /// </summary>
|
||
// ///
|
||
// [DisplayName("区")]
|
||
// public string TOWN
|
||
// {
|
||
// set { _town = value; }
|
||
// get { return _town; }
|
||
// }
|
||
/// <summary>
|
||
/// 详细地址
|
||
/// </summary>
|
||
///
|
||
[DisplayName("地址")]
|
||
public string ADDRESS
|
||
{
|
||
set { _address = value; }
|
||
get { return _address; }
|
||
}
|
||
/// <summary>
|
||
/// 联系人
|
||
/// </summary>
|
||
///
|
||
[DisplayName("联系人")]
|
||
public string LINKMAN
|
||
{
|
||
set { _linkman = value; }
|
||
get { return _linkman; }
|
||
}
|
||
/// <summary>
|
||
/// 联系人手机
|
||
/// </summary>
|
||
///
|
||
[DisplayName("联系人手机")]
|
||
public string PHONE
|
||
{
|
||
set { _phone = value; }
|
||
get { return _phone; }
|
||
}
|
||
/// <summary>
|
||
/// 联系电话
|
||
/// </summary>
|
||
///
|
||
[DisplayName("联系电话")]
|
||
public string MOBILE
|
||
{
|
||
set { _mobile = value; }
|
||
get { return _mobile; }
|
||
}
|
||
/// <summary>
|
||
/// 联系传真
|
||
/// </summary>
|
||
///
|
||
[DisplayName("传真")]
|
||
public string FAX
|
||
{
|
||
set { _fax = value; }
|
||
get { return _fax; }
|
||
}
|
||
/// <summary>
|
||
/// 邮箱
|
||
/// </summary>
|
||
///
|
||
[DisplayName("邮箱")]
|
||
public string EMAIL
|
||
{
|
||
set { _email = value; }
|
||
get { return _email; }
|
||
}
|
||
/// <summary>
|
||
/// 邮编编码
|
||
/// </summary>
|
||
///
|
||
[DisplayName("邮编编码")]
|
||
public string POSTCODE
|
||
{
|
||
set { _postcode = value; }
|
||
get { return _postcode; }
|
||
}
|
||
/// <summary>
|
||
/// 开户银行
|
||
/// </summary>
|
||
///
|
||
|
||
[DisplayName("开户银行")]
|
||
public string BANK
|
||
{
|
||
set { _bank = value; }
|
||
get { return _bank; }
|
||
}
|
||
/// <summary>
|
||
/// 账号名称
|
||
/// </summary>
|
||
///
|
||
[DisplayName("账号名称")]
|
||
public string ACCOUNT_NAME
|
||
{
|
||
set { _account_name = value; }
|
||
get { return _account_name; }
|
||
}
|
||
/// <summary>
|
||
/// 账号
|
||
/// </summary>
|
||
///
|
||
[DisplayName("账号")]
|
||
public string ACCOUNT
|
||
{
|
||
set { _account = value; }
|
||
get { return _account; }
|
||
}
|
||
/// <summary>
|
||
/// 拼音简称
|
||
/// </summary>
|
||
///
|
||
[DisplayName("拼音简称")]
|
||
public string PY_NAME
|
||
{
|
||
set { _py_name = value; }
|
||
get { return _py_name; }
|
||
}
|
||
/// <summary>
|
||
/// 到货天数
|
||
/// </summary>
|
||
///
|
||
[DisplayName("到货天数")]
|
||
public Int64 ARR_DAYS
|
||
{
|
||
set { _arr_days = value; }
|
||
get { return _arr_days; }
|
||
}
|
||
|
||
// private string _provider_level;
|
||
|
||
///// <summary>
|
||
///// 供应商等级
|
||
///// </summary>
|
||
/////
|
||
//[DisplayName("供应商等级")]
|
||
//[TableClmAttribute(JoinTableClmName = "VC_DICTIONARY_NAME", JoinTableClm = "VC_CHAR_VALUE", ClmJoinTable = "t_sys_dictionary_tab", JoinTableWhere = " VC_DICTIONARY_TYPE = 'providertype_lever' ", ClassName = "VC_DICTIONARY_NAME")]
|
||
//public string PROVIDER_LEVEL
|
||
//{
|
||
// get { return _provider_level; }
|
||
// set { _provider_level = value; }
|
||
//}
|
||
|
||
private decimal _percentage;
|
||
|
||
/// <summary>
|
||
/// 供应商合格率
|
||
/// </summary>
|
||
///
|
||
[DisplayName("合格率")]
|
||
public decimal PERCENTAGE
|
||
{
|
||
get { return _percentage; }
|
||
set { _percentage = value; }
|
||
}
|
||
|
||
private string _remark;
|
||
|
||
/// <summary>
|
||
/// 供应商备注
|
||
/// </summary>
|
||
///
|
||
[DisplayName("供应商备注")]
|
||
public string REMARK
|
||
{
|
||
get { return _remark; }
|
||
set { _remark = value; }
|
||
}
|
||
#endregion Model
|
||
|
||
private Boolean _ischeck;
|
||
/// <summary>
|
||
/// 选择
|
||
/// </summary>
|
||
[DisplayName("选择")]
|
||
[TableClm(NoSelect = false)]
|
||
public Boolean IsCheckRec
|
||
{
|
||
get { return _ischeck; }
|
||
set { _ischeck = value; }
|
||
}
|
||
private string _nature;
|
||
|
||
/// <summary>
|
||
/// 性质
|
||
/// </summary>
|
||
///
|
||
[DisplayName("性质")]
|
||
public string NATURE
|
||
{
|
||
get { return _nature; }
|
||
set { _nature = value; }
|
||
}
|
||
private string _website;
|
||
|
||
/// <summary>
|
||
/// 网站
|
||
/// </summary>
|
||
///
|
||
[DisplayName("网站")]
|
||
public string WEBSITE
|
||
{
|
||
get { return _website; }
|
||
set { _website = value; }
|
||
}
|
||
private string _legalman;
|
||
|
||
/// <summary>
|
||
/// 法人代表
|
||
/// </summary>
|
||
///
|
||
[DisplayName("法人代表")]
|
||
public string LEGALMAN
|
||
{
|
||
get { return _legalman; }
|
||
set { _legalman = value; }
|
||
}
|
||
private string _area_id;
|
||
|
||
/// <summary>
|
||
/// 所属地址
|
||
/// </summary>
|
||
///
|
||
[DisplayName("所属地址")]
|
||
public string AREA_ID
|
||
{
|
||
get { return _area_id; }
|
||
set { _area_id = value; }
|
||
}
|
||
private string _regaddress;
|
||
|
||
/// <summary>
|
||
/// 注册地址
|
||
/// </summary>
|
||
///
|
||
[DisplayName("注册地址")]
|
||
public string REGADDRESS
|
||
{
|
||
get { return _regaddress; }
|
||
set { _regaddress = value; }
|
||
}
|
||
private string _invoicetitle;
|
||
|
||
/// <summary>
|
||
/// 发票抬头
|
||
/// </summary>
|
||
///
|
||
[DisplayName("发票抬头")]
|
||
public string INVOICETITLE
|
||
{
|
||
get { return _invoicetitle; }
|
||
set { _invoicetitle = value; }
|
||
}
|
||
private string _taxnumber;
|
||
|
||
/// <summary>
|
||
/// 税号
|
||
/// </summary>
|
||
///
|
||
[DisplayName("税号")]
|
||
public string TAXNUMBER
|
||
{
|
||
get { return _taxnumber; }
|
||
set { _taxnumber = value; }
|
||
}
|
||
private string _pay_type_id;
|
||
|
||
/// <summary>
|
||
/// 付款方式
|
||
/// </summary>
|
||
///
|
||
[DisplayName("付款方式")]
|
||
public string PAY_TYPE_ID
|
||
{
|
||
get { return _pay_type_id; }
|
||
set { _pay_type_id = value; }
|
||
}
|
||
private string _invoiceaddress;
|
||
|
||
/// <summary>
|
||
/// 发票邮寄地址
|
||
/// </summary>
|
||
///
|
||
[DisplayName("发票邮寄地址")]
|
||
public string INVOICEADDRESS
|
||
{
|
||
get { return _invoiceaddress; }
|
||
set { _invoiceaddress = value; }
|
||
}
|
||
private string _recipient;
|
||
|
||
/// <summary>
|
||
/// 收件人
|
||
/// </summary>
|
||
///
|
||
[DisplayName("收件人")]
|
||
public string RECIPIENT
|
||
{
|
||
get { return _recipient; }
|
||
set { _recipient = value; }
|
||
}
|
||
private string _recphone;
|
||
|
||
/// <summary>
|
||
/// 收件人电话
|
||
/// </summary>
|
||
///
|
||
[DisplayName("收件人电话")]
|
||
public string RECPHONE
|
||
{
|
||
get { return _recphone; }
|
||
set { _recphone = value; }
|
||
}
|
||
private string _recfax;
|
||
|
||
/// <summary>
|
||
/// 收件人传真
|
||
/// </summary>
|
||
///
|
||
[DisplayName("收件人传真")]
|
||
public string RECFAX
|
||
{
|
||
get { return _recfax; }
|
||
set { _recfax = value; }
|
||
}
|
||
private string _recemail;
|
||
|
||
/// <summary>
|
||
/// 收件人邮箱
|
||
/// </summary>
|
||
///
|
||
[DisplayName("收件人邮箱")]
|
||
public string RECEMAIL
|
||
{
|
||
get { return _recemail; }
|
||
set { _recemail = value; }
|
||
}
|
||
private string _version;
|
||
/// <summary>
|
||
/// 版本号
|
||
/// </summary>
|
||
///
|
||
[DisplayName("版本号")]
|
||
public string VERSION
|
||
{
|
||
get { return _version; }
|
||
set { _version = value; }
|
||
}
|
||
|
||
|
||
/// <summary>
|
||
///GoodsNumber
|
||
/// <summary>
|
||
[DisplayName("物料编号")]
|
||
public virtual string GOODS_ID { get; set; }
|
||
|
||
|
||
decimal _GOODS_PRICE = 0;
|
||
/// <summary>
|
||
/// 供应商价格
|
||
/// </summary>
|
||
[DisplayName("供应商价格")]
|
||
public decimal GOODS_PRICE
|
||
{
|
||
set { _GOODS_PRICE = value; }
|
||
get { return _GOODS_PRICE; }
|
||
}
|
||
}
|
||
}
|