|
|
@@ -60,6 +60,7 @@ func (this *SupplierDataEntryController) DocExport() {
|
|
|
Id := this.Ctx.Input.Param(":tbid")
|
|
|
var Url string
|
|
|
var fileName string
|
|
|
+ svcActiviti := workflow.GetActivitiService(utils.DBE)
|
|
|
var model1 supplierdataentry.SupplierDataEntry
|
|
|
var model2 supplierdataentry.SupplierCertDataEntry
|
|
|
|
|
|
@@ -70,6 +71,12 @@ func (this *SupplierDataEntryController) DocExport() {
|
|
|
svc.GetEntityByWhere(OilSupplierName, where1, &model1)
|
|
|
svc.GetEntityByWhere(OilSupplierCertName, where2, &model2)
|
|
|
|
|
|
+ businessKey := model2.BusinessKey
|
|
|
+ processKey := model2.ProcessKey
|
|
|
+ processInstanceId := model2.WorkflowId
|
|
|
+ var historicTasks []workflow.ActiHistoricTask
|
|
|
+ historicTasks = svcActiviti.GetHistoricMultiTasks(processKey, businessKey, processInstanceId)
|
|
|
+
|
|
|
var tabledata3 []supplierdataentry.SupplierMajorEquipmentDataEntry
|
|
|
var tabledata4 []supplierdataentry.SupplierThreeYearsDataEntryView
|
|
|
var tabledata5 []supplierdataentry.SupplierPatentDataEntryView
|
|
|
@@ -140,6 +147,13 @@ func (this *SupplierDataEntryController) DocExport() {
|
|
|
datamap["BusinessScope"] = model1.BusinessScope
|
|
|
datamap["Telphone"] = model1.Telphone
|
|
|
|
|
|
+ //审批意见
|
|
|
+ for i := 0; i < len(historicTasks); i++ {
|
|
|
+ if historicTasks[i].TaskName == "业务处室专业审批" {
|
|
|
+ datamap["OfficeRemarks"] = historicTasks[i].Remarks
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//model2
|
|
|
datamap["WorkerTotal"] = model2.WorkerTotal
|
|
|
datamap["ContractNum"] = model2.ContractNum
|
|
|
@@ -224,9 +238,6 @@ func (this *SupplierDataEntryController) DocExport() {
|
|
|
}
|
|
|
datamap["TableComment"] = []string{"MajorEquipments", "ThreeYears", "Patent", "Winning"}
|
|
|
|
|
|
- svcActiviti := workflow.GetActivitiService(utils.DBE)
|
|
|
-
|
|
|
-
|
|
|
retDocUrl := svcActiviti.FillWordTemplate(datamap, Url, fileName)
|
|
|
var datainfo ErrorDataInfo
|
|
|
datainfo.Code = 0
|