package workflow //"time" type ActiProcessVM struct { ProcessKey string `json:"processKey"` BusinessKey string `json:"businessKey"` ProcessInstanceId string `json:"processInstanceId"` UserNames string `json:"userNames"` Result string `json:"result"` WfType string `json:"type"` SupplierName string `json:"supplierName"` } type ActiCompleteVM struct { ProcessKey string `json:"processKey"` BusinessKey string `json:"businessKey"` UserNames string `json:"userNames"` UserId string `json:"userId"` Result string `json:"result"` Remarks string `json:"remarks"` CallbackUrl string `json:"callbackUrl"` } type ActiMyTasksVM struct { ProcessKey string `json:"processKey"` UserId string `json:"userId"` } type ActiMyTasksRetWithTimeVM struct { ProcessDefinitionId string `json:"processDefinitionId"` TaskName string `json:"taskName"` BusinessKey string `json:"businessKey"` WorkflowId string `json:"workflowId"` CreateTime int64 `json:"createTime"` } type ActiMyPagingTasksVM struct { UserId string `json:"userId"` PageIndex int64 `json:"pageIndex"` PageSize int64 `json:"pageSize"` WfName string `json:"wfName"` WfType string `json:"type"` SupplierName string `json:"supplierName"` } type ActiMyPagingResultVM struct { Total int64 `json:"total"` TaskList []ActiMyTasksRetWithTimeVM `json:"taskDTOList"` } type ActiHistoricTask struct { BusinessKey string `json:"businessKey"` TaskName string `json:"taskName"` Assignee string `json:"assignee"` Users string `json:"users"` Result string `json:"result"` Remarks string `json:"remarks"` StartTime int64 `json:"startTime"` EndTime int64 `json:"endTime"` ProcessInstanceId string `json:"processInstanceId"` HistoryImg string `json:"historyImg"` } type AposeVM struct { AddressUrl string `json:"addressUrl"` Watermark string `json:"watermark"` } type DeleteProcessVM struct { ProcessInstanceId string `json:"processInstanceId"` DeleteReason string `json:"deleteReason"` } type WordTemplateVM struct { Datas map[string]interface{} `json:"datas"` TemplateUrl string `json:"templateUrl"` FileName string `json:"fileName"` } type excelTemplateVM struct { Datas map[string]interface{} `json:"datas"` TemplateUrl string `json:"templateUrl"` FileName string `json:"fileName"` ContractClass string `json:"contractClass"` } type excelContrastVM struct { Datas map[string]interface{} `json:"datas"` TemplateUrl string `json:"templateUrl"` FileName string `json:"fileName"` } type WordTemplateWatermarkVM struct { Datas map[string]interface{} `json:"datas"` TemplateUrl string `json:"templateUrl"` FileName string `json:"fileName"` Watermark string `json:"watermark"` } type MultiActiCompleteVM struct { ProcessKey string `json:"processKey"` BusinessKey string `json:"businessKey"` UserNames string `json:"userNames"` UserId string `json:"userId"` Result string `json:"result"` Remarks string `json:"remarks"` MultiOrgAudits []MultiOrgAuditVM `json:"multiOrgAudits"` CallbackUrl string `json:"callbackUrl"` } type MultiOrgAuditVM struct { OrgId string `json:"orgId"` OrgName string `json:"orgName"` UserIds string `json:"userIds"` } const ( //准入流程 OIL_ENUSER_SUPPLIER_APPLY string = "oil_enuser_supplier_apply" //增项流程 OIL_ENUSER_APPEND_APPLY string = "oil_enuser_append_apply" //信息变更流程 OIL_INFO_CHANGE string = "oil_info_change" //年审流程 OIL_AUDIT_APPLY string = "oil_audit_apply" //合同日常评审流程 OIL_DAILY_CONTRACT_EVALUATION string = "oil_daily_contract_evaluation" //合同年度评审流程 OIL_ANNUAL_CONTRACT_EVALUATION string = "oil_annual_contract_evaluation" // 企业注册 OIL_REGISTER_APPLY string = "oil_register_apply" // 企业入库 // OIL_SUPPLIER_INSTORE string = "oil_supplier_instore" // 待开发票 OIL_SUPPLIER_VERIFY string = "oil_supplier_verify" // 目录管理审批流程 OIL_Catalog string = "oil_catalog" /*//企业用户 2 一级物资准入流程图 4 战略合作准入 6外部市场准入 OIL_FIRST_ENUSER_SUPPLIER_APPLY string = "oil_first_enuser_supplier_apply" //企业用户准入流程图 1评审准入 5内部多元准入 OIL_ENUSER_SUPPLIER_APPLY string = "oil_enuser_supplier_apply" //企业用户二级物资准入流程图 OIL_SECOND_ENUSER_SUPPLIER_APPLY string = "oil_second_enuser_supplier_apply" //企业用户二级物资准入流程图(除大港油田以外的) OIL_SECOND_OTHER_SUPPLIER_APPLY string = "oil_second_other_supplier_apply" //企业用户一级物资增项流程图 OIL_FIRST_ENUSER_APPEND_APPLY string = "oil_first_enuser_append_apply" //企业用户二级物资增项流程图 OIL_SECOND_ENUSER_APPEND_APPLY string = "oil_second_enuser_append_apply" //企业用户二级物资增项流程图(除大港油田以外的) OIL_SECOND_OTHER_APPEND_APPLY string = "oil_second_other_append_apply" //企业用户增项流程图 OIL_ENUSER_APPEND_APPLY string = "oil_enuser_append_apply" //信息变更流程图 OIL_INFO_CHANGE string = "oil_info_change" //年审流程图 OIL_AUDIT_APPLY string = "oil_audit_apply" // 企业注册 OIL_REGISTER_APPLY string ="oil_register_apply" // 企业入库 OIL_SUPPLIER_INSTORE string = "oil_supplier_instore" // 待开发票 OIL_SUPPLIER_VERIFY string = "oil_supplier_verify" // 目录管理审批流程 OIL_Catalog string = "oil_catalog" */ // 分办 SUB_OFFICE_WZ string = "SUB_OFFICE_WZ" SUB_OFFICE_JF string = "SUB_OFFICE_JF" SUB_OFFICE_JS string = "SUB_OFFICE_JS" SUB_OFFICE_BG string = "SUB_OFFICE_BG" //业务步骤编码 初审 FIRST_TRIAL string = "FIRST_TRIAL" // 复审 SECOND_TRIAL string = "SECOND_TRIAL" //专业处室接收 PROF_RECE string = "PROF_RECE" //业务处室专业审核 PROF_AUDIT string = "PROF_AUDIT" // 集中审批 PROF_CONCENT string = "PROF_CONCENT" // 待交费 TODO 待确认 PAYING_FEE string = "PAYING_FEE" // 企业法规处审核 PROF_REGULATION string = "PROF_REGULATION" PROF_REGULATION_STORAGE string = "PROF_REGULATION_STORAGE" // 企业用户注册 COMPONY_AUDIT string = "COMPONY_AUDIT" ) type TableDetailData struct { DataList []interface{} `json:"dataList"` StartRow int `json:"startRow"` NeedDelRow int `json:"needDelRow"` ReverseRow int `json:"reverseRow"` Cols []string `json:"cols"` Merge []string `json:"merge"` ColsNum int `json:"colsNum"` } func GetWorkFlowStepCode(typeCode string) string { var stepCode string if typeCode == "01" { stepCode = SUB_OFFICE_WZ } else if typeCode == "02" { stepCode = SUB_OFFICE_JS } else if typeCode == "03" { stepCode = SUB_OFFICE_JF } return stepCode }