package models

type Struct3501 struct {
	MedListCodg         string
	FixmedinsHilistId   string
	FixmedinsHilistName string
	RxFlag              string
	Invdate             string
	InvCnt              string
	ManuLotnum          string
	FixmedinsBchno      string
	ManuDate            string
	ExpyEnd             string
	Memo                string
	OrgName             string
	Opter               string
	SecretKey           string
	FixmedinsCode       string
	InsuplcAdmdvs       string
	MdtrtareaAdmvs      string
	RequestUrl          string
	AccessKey           string
	Cainfo              string
	Aprvno              string
	SplerName           string
	ProdentpName        string
	PurcRetnCnt         string
	PurcRetnStoinTime   string
	PurcRetnOpterName   string
}
type Struct3502 struct {
	MedListCodg         string
	InvChgType          string
	FixmedinsHilistId   string
	FixmedinsHilistName string
	FixmedinsBchno      string
	Pric                string
	Cnt                 string
	RxFlag              string
	InvChgTime          string
	Invdate             string
	InvCnt              string
	ManuLotnum          string
	ManuDate            string
	ExpyEnd             string
	Memo                string
	OrgName             string
	Opter               string
	SecretKey           string
	FixmedinsCode       string
	InsuplcAdmdvs       string
	MdtrtareaAdmvs      string
	RequestUrl          string
	AccessKey           string
	Cainfo              string
}
type Struct3503 struct {
	MedListCodg         string
	FixmedinsHilistId   string
	FixmedinsHilistName string
	DyntNo              string
	FixmedinsBchno      string
	SplerName           string
	SplerPmtno          string
	ManuLotnum          string
	ProdentpName        string
	Aprvno              string
	ManuDate            string
	ExpyEnd             string
	FinlTrnsPric        string
	PurcRetnCnt         string
	PurcInvoCodg        string
	PurcInvoNo          string
	RxFlag              string
	PurcRetnStoinTime   string
	PurcRetnOpterName   string
	ProdGeayFlag        string
	Memo                string
	OrgName             string
	Opter               string
	SecretKey           string
	FixmedinsCode       string
	InsuplcAdmdvs       string
	MdtrtareaAdmvs      string
	RequestUrl          string
	AccessKey           string
	Cainfo              string
}
type Struct3504 struct {
	MedListCodg         string
	FixmedinsHilistId   string
	FixmedinsHilistName string
	FixmedinsBchno      string
	SplerName           string
	SplerPmtno          string
	ManuDate            string
	ExpyEnd             string
	FinlTrnsPric        string
	PurcRetnCnt         string
	PurcInvoCodg        string
	PurcInvoNo          string
	RxFlag              string
	PurcRetnStoin       string
	PurcRetnStoinTime   string
	PurcRetnOpterName   string
	Memo                string
	OrgName             string
	Opter               string
	SecretKey           string
	FixmedinsCode       string
	InsuplcAdmdvs       string
	MdtrtareaAdmvs      string
	RequestUrl          string
	AccessKey           string
	Cainfo              string
}
type Struct3505 struct {
	MedListCodg         string
	FixmedinsHilistId   string
	FixmedinsHilistName string
	FixmedinsBchno      string
	PrscDrCertType      string
	PrscDrCertno        string
	PrscDrName          string
	PharCertType        string
	PharCertno          string
	PharName            string
	PharPracCertNo      string
	HiFeesetlType       string
	SetlId              string
	MdtrtSn             string
	PsnNo               string
	PsnCertType         string
	CertNo              string
	PsnName             string
	ManuLotnum          string
	ManuDate            string
	ExpyEnd             string
	RxFlag              string
	TrdnFlag            string
	FinlTrnsPric        string
	Rxno                string
	RxCircFlag          string
	RtalDocno           string
	StooutNo            string
	Bchno               string
	DrugTracCodg        string
	DrugProdBarc        string
	ShelfPosi           string
	SelRetnCnt          string
	SelRetnTime         string
	SelRetnOpterName    string
	Memo                string
	OrgName             string
	Opter               string
	SecretKey           string
	FixmedinsCode       string
	InsuplcAdmdvs       string
	MdtrtareaAdmvs      string
	RequestUrl          string
	AccessKey           string
	Cainfo              string
}
type Struct3506 struct {
	MedListCodg         string
	FixmedinsHilistId   string
	FixmedinsHilistName string
	FixmedinsBchno      string
	SetlId              string
	PsnNo               string
	PsnCertType         string
	Certno              string
	PsnName             string
	ManuLotnum          string
	ManuDate            string
	ExpyEnd             string
	RxFlag              string
	TrdnFlag            string
	FinlTrnsPric        string
	SelTrnsPric         string
	SelRetnCnt          string
	SelRetnTime         string
	SelRetnOpterName    string
	Memo                string
	MedinsProdSelNo     string
	OrgName             string
	Opter               string
	SecretKey           string
	FixmedinsCode       string
	InsuplcAdmdvs       string
	MdtrtareaAdmvs      string
	RequestUrl          string
	AccessKey           string
	Cainfo              string
}
type Struct3507 struct {
	FixmedinsBchno string
	InvDataType    string
	OrgName        string
	Opter          string
	SecretKey      string
	FixmedinsCode  string
	InsuplcAdmdvs  string
	MdtrtareaAdmvs string
	RequestUrl     string
	AccessKey      string
	Cainfo         string
}

type XtDrugInventory struct {
	ID                 int64             `gorm:"column:id" json:"id" form:"id"`
	DrugName           string            `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
	SpecificationName  string            `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
	WarehousingUnit    string            `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
	Count              int64             `gorm:"column:count" json:"count" form:"count"`
	LastPrice          float64           `gorm:"column:last_price" json:"last_price" form:"last_price"`
	RetailPrice        float64           `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
	NewPrice           float64           `gorm:"column:new_price" json:"new_price" form:"new_price"`
	Manufacturer       string            `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
	Dealer             string            `gorm:"column:dealer" json:"dealer" form:"dealer"`
	Remark             string            `gorm:"column:remark" json:"remark" form:"remark"`
	DrugId             int64             `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
	UserOrgId          int64             `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
	Ctime              int64             `gorm:"column:ctime" json:"ctime" form:"ctime"`
	Mtime              int64             `gorm:"column:mtime" json:"mtime" form:"mtime"`
	Status             int64             `gorm:"column:status" json:"status" form:"status"`
	WarehousingOrder   string            `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
	LicenseNumber      string            `gorm:"column:license_number" json:"license_number" form:"license_number"`
	StartTime          int64             `gorm:"column:start_time" json:"start_time" form:"start_time"`
	Creater            int64             `gorm:"column:creater" json:"creater" form:"creater"`
	Checker            int64             `gorm:"column:checker" json:"checker" form:"checker"`
	CheckerStatus      int64             `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
	CheckerTime        int64             `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
	ExpiryDate         int64             `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
	ProductDate        int64             `gorm:"column:product_date" json:"product_date" form:"product_date"`
	Number             string            `gorm:"column:number" json:"number" form:"number"`
	BatchNumber        string            `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
	Total              string            `gorm:"column:total" json:"total" form:"total"`
	DrugOriginPlace    string            `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
	WarehouseInfoId    int64             `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
	ProofCount         int64             `gorm:"column:proof_count" json:"proof_count" form:"proof_count"`
	StockMaxNumber     int64             `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
	StockMinNumber     int64             `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
	MinCount           int64             `gorm:"column:min_count" json:"min_count" form:"min_count"`
	MinUnit            string            `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
	LastStockMaxNumber int64             `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
	LastStockMinNumber int64             `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
	InventoryType      int64             `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
	Type               int64             `gorm:"column:type" json:"type" form:"type"`
	StorehouseId       int64             `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
	BaseDrugLib        BaseDrugLib       `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
	DrugWarehouseInfo  DrugWarehouseInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfoId"json:"drug_warehouse_info" `
}

func (XtDrugInventory) TableName() string {
	return "xt_drug_inventory"
}

type XtStockInventoryTwo struct {
	ID                int64           `gorm:"column:id" json:"id" form:"id"`
	GoodName          string          `gorm:"column:good_name" json:"good_name" form:"good_name"`
	SpecificationName string          `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
	WarehousingUnit   string          `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
	Count             int64           `gorm:"column:count" json:"count" form:"count"`
	BuyPrice          float64         `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
	PackingPrice      float64         `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
	NewPrice          float64         `gorm:"column:new_price" json:"new_price" form:"new_price"`
	Manufacturer      string          `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
	Dealer            string          `gorm:"column:dealer" json:"dealer" form:"dealer"`
	Remark            string          `gorm:"column:remark" json:"remark" form:"remark"`
	GoodId            int64           `gorm:"column:good_id" json:"good_id" form:"good_id"`
	UserOrgId         int64           `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
	Ctime             int64           `gorm:"column:ctime" json:"ctime" form:"ctime"`
	Mtime             int64           `gorm:"column:mtime" json:"mtime" form:"mtime"`
	Status            int64           `gorm:"column:status" json:"status" form:"status"`
	WarehousingOrder  string          `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
	LicenseNumber     string          `gorm:"column:license_number" json:"license_number" form:"license_number"`
	StartTime         int64           `gorm:"column:start_time" json:"start_time" form:"start_time"`
	Creater           int64           `gorm:"column:creater" json:"creater" form:"creater"`
	Checker           int64           `gorm:"column:checker" json:"checker" form:"checker"`
	CheckerStatus     int64           `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
	CheckerTime       int64           `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
	Total             int64           `gorm:"column:total" json:"total" form:"total"`
	Number            string          `gorm:"column:number" json:"number" form:"number"`
	WarehousingInfoId int64           `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
	ExpireDate        int64           `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
	ProductDate       int64           `gorm:"column:product_date" json:"product_date" form:"product_date"`
	GoodOriginPlace   string          `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
	Type              int64           `gorm:"column:type" json:"type" form:"type"`
	InventoryType     int64           `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
	LastStockCount    int64           `gorm:"column:last_stock_count" json:"last_stock_count" form:"last_stock_count"`
	StockCount        int64           `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
	StorehouseId      int64           `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
	GoodInfo          GoodInfo        `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
	WarehousingInfo   WarehousingInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehousingInfoId" json:"xt_warehouse_info"`
}

func (XtStockInventoryTwo) TableName() string {
	return "xt_stock_inventory"
}
