| | |
| | | type CodeStandardType string |
| | | |
| | | const ( |
| | | CodeStandardTypeSaleLead CodeStandardType = "销售线索编码" |
| | | CodeStandardTypeCustom CodeStandardType = "客户编码" |
| | | CodeStandardTypeContact CodeStandardType = "联系人编码" |
| | | CodeStandardTypeFollowRecord CodeStandardType = "跟进记录编码" |
| | | CodeStandardTypeSaleKey CodeStandardType = "销售机会编码" |
| | | CodeStandardTypeQuotation CodeStandardType = "报价编码" |
| | | CodeStandardTypeSaleTotalOrder CodeStandardType = "销售总单编码" |
| | | CodeStandardTypeSaleSuborder CodeStandardType = "销售子单编码" |
| | | CodeStandardTypeSaleRefund CodeStandardType = "销售退款编码" |
| | | CodeStandardTypeContract CodeStandardType = "合同编码" |
| | | CodeStandardTypeServerContract CodeStandardType = "服务合同编码" |
| | | CodeStandardTypeServerFollow CodeStandardType = "服务回访编码" |
| | | CodeStandardTypeSaleLead CodeStandardType = "销售线索编码" |
| | | CodeStandardTypeCustom CodeStandardType = "客户编码" |
| | | CodeStandardTypeFollowRecord CodeStandardType = "跟进记录编码" |
| | | CodeStandardTypeSaleKey CodeStandardType = "销售机会编码" |
| | | CodeStandardTypeQuotation CodeStandardType = "报价编码" |
| | | CodeStandardTypeSaleTotalOrder CodeStandardType = "销售总单编码" |
| | | CodeStandardTypeSaleSuborder CodeStandardType = "销售子单编码" |
| | | CodeStandardTypeSaleRefund CodeStandardType = "销售退款编码" |
| | | CodeStandardTypeContract CodeStandardType = "合同编码" |
| | | CodeStandardTypeServerContract CodeStandardType = "服务合同编码" |
| | | CodeStandardTypeServerFollow CodeStandardType = "服务回访编码" |
| | | CodeStandardTypeCustomServer CodeStandardType = "客户服务编码" |
| | | CodeStandardTypeSaleInvoice CodeStandardType = "销售发票编码" |
| | | CodeStandardTypeSaleDetail CodeStandardType = "销售明细编码" |
| | | CodeStandardTypeSaleReturnGoods CodeStandardType = "销售退货编码" |
| | | ) |
| | | |
| | | func (t CodeStandardType) Valid() bool { |
| | | if t != CodeStandardTypeSaleLead && |
| | | t != CodeStandardTypeCustom && |
| | | t != CodeStandardTypeContact && |
| | | t != CodeStandardTypeFollowRecord && |
| | | t != CodeStandardTypeSaleKey && |
| | | t != CodeStandardTypeQuotation && |
| | |
| | | t != CodeStandardTypeSaleRefund && |
| | | t != CodeStandardTypeContract && |
| | | t != CodeStandardTypeServerContract && |
| | | t != CodeStandardTypeCustomServer && |
| | | t != CodeStandardTypeSaleInvoice && |
| | | t != CodeStandardTypeSaleDetail && |
| | | t != CodeStandardTypeSaleReturnGoods && |
| | | t != CodeStandardTypeServerFollow { |
| | | return false |
| | | } |