|
package log
|
|
|
|
import (
|
|
"leit.com/LAPP_GAAS_GFrame/grmi"
|
|
"xorm.io/core"
|
|
)
|
|
|
|
//Vendor的实体映射
|
|
type Vendor struct {
|
|
PlantNr int `xorm:"pk int 'PlantNr'" json:"LOG_Vendor-PlantNr"`
|
|
VendorId string `xorm:"pk nvarchar(40) 'VendorId'" json:"LOG_Vendor-VendorId"`
|
|
Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"LOG_Vendor-Descr"`
|
|
Address string `xorm:"nvarchar(100) 'Address' not null" json:"LOG_Vendor-Address"`
|
|
VendorNr int `xorm:"int 'VendorNr' not null" json:"LOG_Vendor-VendorNr"`
|
|
Name string `xorm:"nvarchar(100) 'Name' not null" json:"LOG_Vendor-Name"`
|
|
Name1 string `xorm:"nvarchar(100) 'Name1' not null" json:"LOG_Vendor-Name1"`
|
|
Name2 string `xorm:"nvarchar(100) 'Name2' not null" json:"LOG_Vendor-Name2"`
|
|
ValidStartDate grmi.DateTime `xorm:"datetime 'ValidStartDate' not null" json:"LOG_Vendor-ValidStartDate"`
|
|
Country string `xorm:"nvarchar(100) 'Country' not null" json:"LOG_Vendor-Country"`
|
|
City string `xorm:"nvarchar(100) 'City' not null" json:"LOG_Vendor-City"`
|
|
District string `xorm:"nvarchar(100) 'District' not null" json:"LOG_Vendor-District"`
|
|
Street string `xorm:"nvarchar(100) 'Street' not null" json:"LOG_Vendor-Street"`
|
|
Location string `xorm:"nvarchar(100) 'Location' not null" json:"LOG_Vendor-Location"`
|
|
PostCode string `xorm:"nvarchar(20) 'PostCode' not null" json:"LOG_Vendor-PostCode"`
|
|
Phone string `xorm:"nvarchar(20) 'Phone' not null" json:"LOG_Vendor-Phone"`
|
|
Mobile string `xorm:"nvarchar(20) 'Mobile' not null" json:"LOG_Vendor-Mobile"`
|
|
Fax string `xorm:"nvarchar(20) 'Fax' not null" json:"LOG_Vendor-Fax"`
|
|
Email1 string `xorm:"nvarchar(40) 'Email1' not null" json:"LOG_Vendor-Email1"`
|
|
Email2 string `xorm:"nvarchar(40) 'Email2' not null" json:"LOG_Vendor-Email2"`
|
|
ContactPerson string `xorm:"nvarchar(40) 'ContactPerson' not null" json:"LOG_Vendor-ContactPerson"`
|
|
PersonTitle string `xorm:"nvarchar(40) 'PersonTitle' not null" json:"LOG_Vendor-PersonTitle"`
|
|
ContactAddress string `xorm:"nvarchar(100) 'ContactAddress' not null" json:"LOG_Vendor-ContactAddress"`
|
|
Account int `xorm:"int 'Account' not null" json:"LOG_Vendor-Account"`
|
|
TaxRate string `xorm:"nvarchar(20) 'TaxRate' not null" json:"LOG_Vendor-TaxRate"`
|
|
Status int `xorm:"int 'Status' not null" json:"LOG_Vendor-Status"`
|
|
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"LOG_Vendor-LastModify"`
|
|
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"LOG_Vendor-LastUser"`
|
|
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"LOG_Vendor-CreateTime"`
|
|
}
|
|
|
|
//获取Vendor的主键
|
|
func (self *Vendor) GetKey() core.PK {
|
|
return core.PK{self.PlantNr, self.VendorId}
|
|
}
|