diff --git a/ik3cloud/constant/constant.go b/ik3cloud/constant/constant.go index a87bd62..40c6026 100644 --- a/ik3cloud/constant/constant.go +++ b/ik3cloud/constant/constant.go @@ -3,22 +3,23 @@ package constant type Action = string // 方法 const ( - ActionDepartment Action = "BD_Department" // 部门 - ActionStaff Action = "BD_Empinfo" // 员工 - ActionStaffPosition Action = "BD_NEWSTAFF" // 职位 - ActionOperatorType Action = "BD_OPERATOR" // 业务员类型 - ActionPosition Action = "HR_ORG_HRPOST" // 职位 - ActionFactory Action = "BD_Supplier" // 工厂 - ActionContact Action = "BD_CommonContact" // 联系人 - ActionCustom Action = "BD_Customer" // 客户 - ActionReceivable Action = "AR_receivable" // 应收单 - ActionPayable Action = "AP_Payable" // 应付单 - ActionProduct Action = "BD_MATERIAL" // 物料 - ActionCurrency Action = "BD_Currency" // 币种 - ActionSettleType Action = "BD_SETTLETYPE" // 结算方式 - ActionRecPayPurpose Action = "CN_RECPAYPURPOSE" // 收付款用途 - ActionExpense Action = "BD_Expense" // 费用项目 - ActionPayment Action = "AP_PAYBILL" // 付款单 + ActionDepartment Action = "BD_Department" // 部门 + ActionStaff Action = "BD_Empinfo" // 员工 + ActionStaffPosition Action = "BD_NEWSTAFF" // 职位 + ActionOperatorType Action = "BD_OPERATOR" // 业务员类型 + ActionPosition Action = "HR_ORG_HRPOST" // 职位 + ActionFactory Action = "BD_Supplier" // 工厂 + ActionContact Action = "BD_CommonContact" // 联系人 + ActionCustom Action = "BD_Customer" // 客户 + ActionReceivable Action = "AR_receivable" // 应收单 + ActionPayable Action = "AP_Payable" // 应付单 + ActionProduct Action = "BD_MATERIAL" // 物料 + ActionCurrency Action = "BD_Currency" // 币种 + ActionSettleType Action = "BD_SETTLETYPE" // 结算方式 + ActionRecPayPurpose Action = "CN_RECPAYPURPOSE" // 收付款用途 + ActionExpense Action = "BD_Expense" // 费用项目 + ActionPayment Action = "AP_PAYBILL" // 付款单 + ActionInformation Action = "BOS_ASSISTANTDATA_DETAIL" // 辅助资料 ) type OperatorType = string @@ -35,3 +36,9 @@ const ( PaymentTypeCost PaymentType = "FKDLX10_SYS" // 费用付款单 PaymentTypeRequest PaymentType = "FKDLX11_SYS" // 报销付款单 ) + +type InformationType = string + +const ( + InformationTypeInvoiceSerial InformationType = "FYP" // 采购付款单 +) diff --git a/ik3cloud/information.go b/ik3cloud/information.go new file mode 100644 index 0000000..c250e76 --- /dev/null +++ b/ik3cloud/information.go @@ -0,0 +1,28 @@ +package ik3cloud + +import ( + "context" + + "git.kumo.work/shama/service/client" + "git.kumo.work/shama/service/ik3cloud/constant" +) + +type information struct { +} + +type InformationSaveItem struct { + InformationId int64 + Number string + Value string + Type constant.InformationType // 资料类型 +} + +// Save @TITLE 保存 +func (i *information) Save(ctx context.Context, args []InformationSaveItem) (entities []Entity, err error) { + xClient, err := client.GetClient(i) + if err != nil { + return + } + err = xClient.Call(ctx, "Save", args, &entities) + return +}