seqno

package module
v0.0.0-...-5f9e7fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2019 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTable

func InitTable(db *gorm.DB)

InitTable 初始化表

Types

type DocNo

type DocNo struct {
	// contains filtered or unexported fields
}

DocNo 操作代理

func NewNoGenerator

func NewNoGenerator(db *gorm.DB, logicID string) *DocNo

NewNoGenerator 初始化新代理

func (*DocNo) FormateCode

func (s *DocNo) FormateCode(format string) *DocNo

FormateCode 格式代码

func (*DocNo) MarkCode

func (s *DocNo) MarkCode(markCode string) *DocNo

MarkCode 标识代码

func (*DocNo) Next

func (s *DocNo) Next() (int64, error)

Next 返回序列号

func (*DocNo) Remark

func (s *DocNo) Remark(remark string) *DocNo

Remark 备注

func (*DocNo) StartWith

func (s *DocNo) StartWith(start int64) *DocNo

StartWith 起始数

func (*DocNo) Step

func (s *DocNo) Step(step int64) *DocNo

Step 步长

type DocumentGainNumber

type DocumentGainNumber struct {
	ID               int64 `json:"id",gorm:"auto-increment"`
	DsID             int64
	DocumentStandard DocumentStandard `gorm:"ForeignKey:DsID;association_foreignkey:ID"`
	LogicID          string           `json:"logic_ID"`
	FormateCode      string           `json:"formate_Code"`
	MarkCode         string           `json:"mark_Code"`
	CurrentNum       int64            `json:"current_Num"`
	StepNum          int64            `json:"step_Num"`
}

DocumentGainNumber 年度单据发号表

type DocumentStandard

type DocumentStandard struct {
	ID          int64  `json:"id",gorm:"auto-increment"`
	LogicID     string `json:"logic_ID"`     //类型
	FormateCode string `json:"formate_Code"` //格式代码
	MarkCode    string `json:"mark_Code"`    //标识代码
	ScriptCode  string `json:"script_Code"`  //脚本代码
	StepNum     int64  `json:"step_Num"`     //步长
	Remark      string `json:"remark"`       //备注
}

DocumentStandard 单据标准表

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址