GAAS 广汽安道拓GFrame金属件MOM项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

38 lines
2.6 KiB

package log
import (
"leit.com/LAPP_GAAS_GFrame/grmi"
"xorm.io/core"
)
//PackTemplate的实体映射
type PackTemplate struct {
PlantNr int `xorm:"pk int 'PlantNr'" json:"LOG_PackTemplate-PlantNr"`
PackTemplateId string `xorm:"pk nvarchar(40) 'PackTemplateId'" json:"LOG_PackTemplate-PackTemplateId"`
Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"LOG_PackTemplate-Descr"`
ActiveToggle bool `xorm:"bit 'ActiveToggle' not null" json:"LOG_PackTemplate-ActiveToggle"`
PackTypeId string `xorm:"nvarchar(40) 'PackTypeId' not null" json:"LOG_PackTemplate-PackTypeId"`
PrinterId string `xorm:"nvarchar(40) 'PrinterId' not null" json:"LOG_PackTemplate-PrinterId"`
TemplateFile string `xorm:"nvarchar(40) 'TemplateFile' not null" json:"LOG_PackTemplate-TemplateFile"`
PrintQty int `xorm:"int 'PrintQty' not null" json:"LOG_PackTemplate-PrintQty"`
PackOrderSn string `xorm:"nvarchar(40) 'PackOrderSn' not null" json:"LOG_PackTemplate-PackOrderSn"`
BoxSn string `xorm:"nvarchar(40) 'BoxSn' not null" json:"LOG_PackTemplate-BoxSn"`
SyncToggle bool `xorm:"bit 'SyncToggle' not null" json:"LOG_PackTemplate-SyncToggle"`
SyncSn string `xorm:"nvarchar(40) 'SyncSn' not null" json:"LOG_PackTemplate-SyncSn"`
TwoDSheet int `xorm:"int 'TwoDSheet' not null" json:"LOG_PackTemplate-TwoDSheet"`
FullFillToggle bool `xorm:"bit 'FullFillToggle' not null" json:"LOG_PackTemplate-FullFillToggle"`
MaterialId string `xorm:"nvarchar(40) 'MaterialId' not null" json:"LOG_PackTemplate-MaterialId"`
PlanQty int `xorm:"int 'PlanQty' not null" json:"LOG_PackTemplate-PlanQty"`
PKTMPCustC1 string `xorm:"nvarchar(40) 'PKTMP_CustC1' not null" json:"LOG_PackTemplate-PKTMP_CustC1"`
PKTMPCustC2 string `xorm:"nvarchar(40) 'PKTMP_CustC2' not null" json:"LOG_PackTemplate-PKTMP_CustC2"`
PKTMPCustI1 int `xorm:"int 'PKTMP_CustI1' not null" json:"LOG_PackTemplate-PKTMP_CustI1"`
PKTMPCustI2 int `xorm:"int 'PKTMP_CustI2' not null" json:"LOG_PackTemplate-PKTMP_CustI2"`
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"LOG_PackTemplate-LastModify"`
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"LOG_PackTemplate-LastUser"`
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"LOG_PackTemplate-CreateTime"`
}
//获取PackTemplate的主键
func (self *PackTemplate) GetKey() core.PK {
return core.PK{self.PlantNr, self.PackTemplateId}
}