|
@@ -111,10 +111,10 @@ func spreBarcodeprint(param string) (it samplesinfo.SamplesInfoShow, datas []sam
|
|
|
}
|
|
}
|
|
|
svc := samplesinfo.GetSamplesInfoService(utils.DBE)
|
|
svc := samplesinfo.GetSamplesInfoService(utils.DBE)
|
|
|
datas = svc.QuerySampleList(acccode, where)
|
|
datas = svc.QuerySampleList(acccode, where)
|
|
|
- fmt.Println("111111111111111", datas)
|
|
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+//样本条码
|
|
|
func sampleBarcodeprint(param string) (it samplesinfo.SamplesInfoShow, datas []samplesinfo.SamplesInfoShow) {
|
|
func sampleBarcodeprint(param string) (it samplesinfo.SamplesInfoShow, datas []samplesinfo.SamplesInfoShow) {
|
|
|
param = Base64Decode(param)
|
|
param = Base64Decode(param)
|
|
|
params := strings.Split(param, ",")
|
|
params := strings.Split(param, ",")
|
|
@@ -129,15 +129,48 @@ func sampleBarcodeprint(param string) (it samplesinfo.SamplesInfoShow, datas []s
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-//func sampleListeprint(param string) (it cellscollection.CellsCollectionDetail, datas []cellscollection.CellsCollectionDetail) {
|
|
|
|
|
-// param = Base64Decode(param)
|
|
|
|
|
-// params := strings.Split(param, ",")
|
|
|
|
|
-// accode := params[1]
|
|
|
|
|
-// detailid := params[2]
|
|
|
|
|
-// svc := cellscollection.GetCellscollectionService(utils.DBE)
|
|
|
|
|
-// svc.GetEntitysByWhere(accode+CellsCollectionDetailName, "SampleFromItem=2 and PreparationDetailId="+detailid, &datas)
|
|
|
|
|
-// return
|
|
|
|
|
-//}
|
|
|
|
|
|
|
+//样本条码--蜜蜂所
|
|
|
|
|
+func animalBarcodeprint(param string) (it samplesinfo.AnimalSamplesInfoShow, datas []samplesinfo.AnimalSamplesInfoShow) {
|
|
|
|
|
+ param = Base64Decode(param)
|
|
|
|
|
+ params := strings.Split(param, ",")
|
|
|
|
|
+ code := params[1]
|
|
|
|
|
+ acccode := params[2]
|
|
|
|
|
+ where := ""
|
|
|
|
|
+ if code != "" {
|
|
|
|
|
+ where = where + " a.Id =" + code + ""
|
|
|
|
|
+ }
|
|
|
|
|
+ svc := samplesinfo.GetSamplesInfoService(utils.DBE)
|
|
|
|
|
+ datas = svc.QueryAnimalSampleList(acccode, where)
|
|
|
|
|
+ return
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+//预录入、已录入、待复存样本条码批量打印--蜜蜂所
|
|
|
|
|
+func animalBarcodeprintbatch(param string) (it samplesinfo.AnimalSamplesInfoShow, datas []samplesinfo.AnimalSamplesInfoShow) {
|
|
|
|
|
+ param = Base64Decode(param)
|
|
|
|
|
+ params := strings.Split(param, ",")
|
|
|
|
|
+ acccode := params[1]
|
|
|
|
|
+ codes := params[2]
|
|
|
|
|
+ fmt.Println(acccode)
|
|
|
|
|
+ fmt.Println(codes)
|
|
|
|
|
+ codess := strings.Split(codes, ";")
|
|
|
|
|
+ where := ""
|
|
|
|
|
+ if len(codess) > 0 {
|
|
|
|
|
+ where = where + " a.Id in ( "
|
|
|
|
|
+ for i := 0; i < len(codess); i++ {
|
|
|
|
|
+ if codess[i] != "" {
|
|
|
|
|
+ if i == len(codess)-1 {
|
|
|
|
|
+ where = where + codess[i] + ""
|
|
|
|
|
+ } else {
|
|
|
|
|
+ where = where + "" + codess[i] + ","
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ where = where + " ) "
|
|
|
|
|
+ }
|
|
|
|
|
+ svc := samplesinfo.GetSamplesInfoService(utils.DBE)
|
|
|
|
|
+ datas = svc.QueryAnimalSampleList(acccode, where)
|
|
|
|
|
+ return
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
//预录入、已录入、待复存样本条码批量打印
|
|
//预录入、已录入、待复存样本条码批量打印
|
|
|
func sampleBarcodeprintbatch(param string) (it samplesinfo.SamplesInfoShow, datas []samplesinfo.SamplesInfoShow) {
|
|
func sampleBarcodeprintbatch(param string) (it samplesinfo.SamplesInfoShow, datas []samplesinfo.SamplesInfoShow) {
|
|
@@ -669,249 +702,6 @@ func lablepreprintnotinsertsample(param string) (it LablePrePrint, datas []Lable
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-////实验结果打印
|
|
|
|
|
-//func testResultprint(param string) (it lissystem.TestInfoPrintModel, datas []*lissystem.TestInfoPrintModel) {
|
|
|
|
|
-// param = Base64Decode(param)
|
|
|
|
|
-// params := strings.Split(param, ",")
|
|
|
|
|
-// if len(params) < 6 {
|
|
|
|
|
-// return
|
|
|
|
|
-// }
|
|
|
|
|
-// beego.Debug(params)
|
|
|
|
|
-// inspectionNum := params[1]
|
|
|
|
|
-// acccode := params[2]
|
|
|
|
|
-// labName := params[3]
|
|
|
|
|
-// itemName := params[4]
|
|
|
|
|
-// hospital := params[5]
|
|
|
|
|
-
|
|
|
|
|
-// svc := lissystem.GetTestLabInfoService(utils.DBE)
|
|
|
|
|
-// datas = svc.TestInfoDetailPrint(acccode, inspectionNum, labName, itemName, hospital)
|
|
|
|
|
-// svc.AddLabInfoPrintTime(acccode, inspectionNum)
|
|
|
|
|
-
|
|
|
|
|
-// return
|
|
|
|
|
-//}
|
|
|
|
|
-
|
|
|
|
|
-//LIS申请单信息打印
|
|
|
|
|
-//func testApplyprint(param string) (it lissystem.TestOrderDetail, datas []lissystem.TestOrderDetail) {
|
|
|
|
|
-// param = Base64Decode(param)
|
|
|
|
|
-// params := strings.Split(param, ",")
|
|
|
|
|
-// ApplyNum := params[1]
|
|
|
|
|
-// acccode := params[2]
|
|
|
|
|
-// where := ""
|
|
|
|
|
-// if ApplyNum != "" {
|
|
|
|
|
-// where = where + " a.ApplyNum=" + ApplyNum + ""
|
|
|
|
|
-// }
|
|
|
|
|
-// svc := lissystem.GetTestApplicationService(utils.DBE)
|
|
|
|
|
-// datas = svc.TestApplicationPrint(acccode, where)
|
|
|
|
|
-// return
|
|
|
|
|
-//}
|
|
|
|
|
-
|
|
|
|
|
-//爱萨尔 样本采集申请单信息打印
|
|
|
|
|
-//func testCollectionprint(param string) (it cellscollection.CellsCollectionandDonorsInfo, datas []cellscollection.CellsCollectionandDonorsInfo) {
|
|
|
|
|
-// param = Base64Decode(param)
|
|
|
|
|
-// params := strings.Split(param, ",")
|
|
|
|
|
-// ApplyNum := params[1]
|
|
|
|
|
-// acccode := params[2]
|
|
|
|
|
-// where := ""
|
|
|
|
|
-// if ApplyNum != "" {
|
|
|
|
|
-// where = where + " c.CollectionNo=" + ApplyNum + ""
|
|
|
|
|
-// }
|
|
|
|
|
-// svc := cellscollection.GetCellscollectionService(utils.DBE)
|
|
|
|
|
-// datas = svc.TestCellscollectionPrint(acccode, where)
|
|
|
|
|
-// return
|
|
|
|
|
-//}
|
|
|
|
|
-
|
|
|
|
|
-//爱萨尔 合同信息打印
|
|
|
|
|
-//func testContractprint(param string) (it cellscontract.CellsContract, datas []cellscontract.CellsContract) {
|
|
|
|
|
-// param = Base64Decode(param)
|
|
|
|
|
-// params := strings.Split(param, ",")
|
|
|
|
|
-// PId := params[1]
|
|
|
|
|
-// acccode := params[2]
|
|
|
|
|
-// where := ""
|
|
|
|
|
-// if PId != "" {
|
|
|
|
|
-// where = where + " Id=" + PId + ""
|
|
|
|
|
-// }
|
|
|
|
|
-// svc := cellscontract.GetCellscontractService(utils.DBE)
|
|
|
|
|
-// datas = svc.TestCellsContractPrint(acccode+CellsContractName, where)
|
|
|
|
|
-// return
|
|
|
|
|
-//}
|
|
|
|
|
-
|
|
|
|
|
-//LIMS 委托信息打印
|
|
|
|
|
-//func testEntrustprint(param string) (it limsentrust.LimsEntrustMain, datas []limsentrust.LimsEntrustMain) {
|
|
|
|
|
-// param = Base64Decode(param)
|
|
|
|
|
-// params := strings.Split(param, ",")
|
|
|
|
|
-// Id := params[1]
|
|
|
|
|
-// acccode := params[2]
|
|
|
|
|
-// where := ""
|
|
|
|
|
-// if Id != "" {
|
|
|
|
|
-// where = where + " Id=" + Id + ""
|
|
|
|
|
-// }
|
|
|
|
|
-// svc := limsentrust.GetLimsEnturstService(utils.DBE)
|
|
|
|
|
-// datas = svc.TestLimsEntrustPrint(acccode+LimsEntrustMainName, where)
|
|
|
|
|
-// return
|
|
|
|
|
-//}
|
|
|
|
|
-
|
|
|
|
|
-//LIMS 样品交接信息打印
|
|
|
|
|
-//func testDeliverprint(param string) (it limsdeliver.LimsDeliverDetail, datas []limsdeliver.LimsDeliverDetail) {
|
|
|
|
|
-// param = Base64Decode(param)
|
|
|
|
|
-// params := strings.Split(param, ",")
|
|
|
|
|
-// Id := params[1]
|
|
|
|
|
-// acccode := params[2]
|
|
|
|
|
-// where := ""
|
|
|
|
|
-// if Id != "" {
|
|
|
|
|
-// where = where + " EId=" + Id + ""
|
|
|
|
|
-// }
|
|
|
|
|
-// svc := limsdeliver.GetLimsDeliverService(utils.DBE)
|
|
|
|
|
-// datas = svc.TestLimsDeliverPrint(acccode+LimsDeliverName, acccode+LimsDeliverDetailName, where)
|
|
|
|
|
-// return
|
|
|
|
|
-//}
|
|
|
|
|
-
|
|
|
|
|
-//LIMS制备后样品条码打印
|
|
|
|
|
-//func PreparedBarCode(param string) (it limspreparation.LimsPreparation, datas []limspreparation.LimsPreparation) {
|
|
|
|
|
-// param = Base64Decode(param)
|
|
|
|
|
-// params := strings.Split(param, ",")
|
|
|
|
|
-// fmt.Println("11111111111111", param)
|
|
|
|
|
-// acccode := params[1]
|
|
|
|
|
-// codes := params[2]
|
|
|
|
|
-// fmt.Println(acccode)
|
|
|
|
|
-// fmt.Println(codes)
|
|
|
|
|
-// codess := strings.Split(codes, ";")
|
|
|
|
|
-// where := ""
|
|
|
|
|
-// if len(codess) > 0 {
|
|
|
|
|
-// where = where + " Id in ( "
|
|
|
|
|
-// for i := 0; i < len(codess); i++ {
|
|
|
|
|
-// if codess[i] != "" {
|
|
|
|
|
-// if i == len(codess)-1 {
|
|
|
|
|
-// where = where + codess[i] + ""
|
|
|
|
|
-// } else {
|
|
|
|
|
-// where = where + "" + codess[i] + ","
|
|
|
|
|
-// }
|
|
|
|
|
-// }
|
|
|
|
|
-// }
|
|
|
|
|
-// where = where + " ) "
|
|
|
|
|
-// }
|
|
|
|
|
-// svc := limspreparation.GetLimsPreparationService(utils.DBE)
|
|
|
|
|
-// datas = svc.QuerySampleList(acccode, where)
|
|
|
|
|
-// return
|
|
|
|
|
-//}
|
|
|
|
|
-
|
|
|
|
|
-//LIS室间交接条码打印
|
|
|
|
|
-//func testTransferBarCodeprint(param string) (it lissystem.TestOrderDetail, datas []lissystem.TestOrderDetail) {
|
|
|
|
|
-// param = Base64Decode(param)
|
|
|
|
|
-// params := strings.Split(param, ",")
|
|
|
|
|
-// TransferNum := params[1]
|
|
|
|
|
-// acccode := params[2]
|
|
|
|
|
-// where := ""
|
|
|
|
|
-// if TransferNum != "" {
|
|
|
|
|
-// where = where + " a.TransferNum=" + TransferNum + ""
|
|
|
|
|
-// }
|
|
|
|
|
-// svc := lissystem.GetTestTransferService(utils.DBE)
|
|
|
|
|
-// datas = svc.TestTransferBarCodePrint(acccode, where)
|
|
|
|
|
-// return
|
|
|
|
|
-//}
|
|
|
|
|
-
|
|
|
|
|
-//LIS业务申请条码打印
|
|
|
|
|
-//func testApplyBarCodeprint(param string) (it lissystem.TestOrderDetail, datas []lissystem.TestOrderDetail) {
|
|
|
|
|
-// param = Base64Decode(param)
|
|
|
|
|
-// params := strings.Split(param, ",")
|
|
|
|
|
-// ApplyNum := params[1]
|
|
|
|
|
-// acccode := params[2]
|
|
|
|
|
-// where := ""
|
|
|
|
|
-// if ApplyNum != "" {
|
|
|
|
|
-// where = where + " a.ApplyNum=" + ApplyNum + ""
|
|
|
|
|
-// }
|
|
|
|
|
-// svc := lissystem.GetTestTransferService(utils.DBE)
|
|
|
|
|
-// datas = svc.TestTransferBarCodePrint(acccode, where)
|
|
|
|
|
-// return
|
|
|
|
|
-//}
|
|
|
|
|
-
|
|
|
|
|
-//爱萨尔样本采集条码打印
|
|
|
|
|
-//func cellscollectionBarCodeprint(param string) (it cellscollection.CellsCollectionandDonorsInfo, datas []cellscollection.CellsCollectionandDonorsInfo) {
|
|
|
|
|
-// param = Base64Decode(param)
|
|
|
|
|
-// params := strings.Split(param, ",")
|
|
|
|
|
-// ApplyNum := params[1]
|
|
|
|
|
-// acccode := params[2]
|
|
|
|
|
-// where := ""
|
|
|
|
|
-// if ApplyNum != "" {
|
|
|
|
|
-// where = where + " c.CollectionNo=" + ApplyNum + ""
|
|
|
|
|
-// }
|
|
|
|
|
-// svc := cellscollection.GetCellscollectionService(utils.DBE)
|
|
|
|
|
-// datas = svc.TestCellscollectionPrint(acccode, where)
|
|
|
|
|
-// return
|
|
|
|
|
-//}
|
|
|
|
|
-
|
|
|
|
|
-//阳性报告打印
|
|
|
|
|
-//func testPositiveReport(param string) (it lissystem.LaboratoryReportModel, datas []lissystem.LaboratoryReportModel) {
|
|
|
|
|
-// param = Base64Decode(param)
|
|
|
|
|
-// params := strings.Split(param, ",")
|
|
|
|
|
-// CreateOnstart, _ := strconv.ParseInt(params[1], 10, 64)
|
|
|
|
|
-// CreateOnend, _ := strconv.ParseInt(params[2], 10, 64)
|
|
|
|
|
-// acccode := params[3]
|
|
|
|
|
-// testlistid := params[4]
|
|
|
|
|
-// where := " 1=1 and e.CheckStatus=2 and c.id=" + testlistid
|
|
|
|
|
-// if CreateOnstart != 0 {
|
|
|
|
|
-// where = where + " and b.CollectDate>'" + time.Unix(CreateOnstart, 0).Format("2006-01-02") + "'"
|
|
|
|
|
-// }
|
|
|
|
|
-// if CreateOnend != 0 {
|
|
|
|
|
-// where = where + " and b.CollectDate <'" + time.Unix(CreateOnend, 0).Format("2006-01-02") + " 23:59:59'"
|
|
|
|
|
-// }
|
|
|
|
|
-// svc := lissystem.GetLaboratoryReportService(utils.DBE)
|
|
|
|
|
-// datas = svc.TestPositiveReport(acccode, where)
|
|
|
|
|
-// return
|
|
|
|
|
-//}
|
|
|
|
|
-
|
|
|
|
|
-//LIS室间交接信息打印
|
|
|
|
|
-//func testTransferprint(param string) (it lissystem.TestOrderDetail, datas []lissystem.TestOrderDetail) {
|
|
|
|
|
-// param = Base64Decode(param)
|
|
|
|
|
-// params := strings.Split(param, ",")
|
|
|
|
|
-// TransferNum := params[1]
|
|
|
|
|
-// acccode := params[2]
|
|
|
|
|
-// where := ""
|
|
|
|
|
-// if TransferNum != "" {
|
|
|
|
|
-// where = where + " a.TransferNum=" + TransferNum + ""
|
|
|
|
|
-// }
|
|
|
|
|
-// svc := lissystem.GetTestTransferService(utils.DBE)
|
|
|
|
|
-// datas = svc.TestTransferPrint(acccode, where)
|
|
|
|
|
-// return
|
|
|
|
|
-//}
|
|
|
|
|
-
|
|
|
|
|
-//医院结果信息打印
|
|
|
|
|
-//func hospitalResultprint(param string) (it lissystem.TestOrderDetail, datas []lissystem.TestOrderDetail) {
|
|
|
|
|
-// param = Base64Decode(param)
|
|
|
|
|
-// params := strings.Split(param, ",")
|
|
|
|
|
-// InspectionNum := params[1]
|
|
|
|
|
-// acccode := params[2]
|
|
|
|
|
-// where := ""
|
|
|
|
|
-// if InspectionNum != "" {
|
|
|
|
|
-// where = where + " a.InspectionNum='" + InspectionNum + "'"
|
|
|
|
|
-// }
|
|
|
|
|
-// svc := lissystem.GetTestLabInfoService(utils.DBE)
|
|
|
|
|
-// datas = svc.HospitalResultPrint(acccode, where)
|
|
|
|
|
-// return
|
|
|
|
|
-//}
|
|
|
|
|
-
|
|
|
|
|
-//套餐结果信息打印
|
|
|
|
|
-//func packageResultprint(param string) (it lissystem.TestOrderDetail, datas []lissystem.TestOrderDetail) {
|
|
|
|
|
-// param = Base64Decode(param)
|
|
|
|
|
-// params := strings.Split(param, ",")
|
|
|
|
|
-// SampleCode := params[1]
|
|
|
|
|
-// PackageId := params[2]
|
|
|
|
|
-// acccode := params[3]
|
|
|
|
|
-// var testinfos []lissystem.TestInfo
|
|
|
|
|
-// var where string
|
|
|
|
|
-// svc := lissystem.GetTestLabInfoService(utils.DBE)
|
|
|
|
|
-// where_testinfo := " SampleCode='" + SampleCode + "' and PackageId=" + PackageId
|
|
|
|
|
-// svc.GetEntitysByWhere(acccode+TestInfoName, where_testinfo, &testinfos)
|
|
|
|
|
-// for i := 0; i < len(testinfos); i++ {
|
|
|
|
|
-// if i == 0 {
|
|
|
|
|
-// where = "a.InspectionNum = '" + testinfos[i].InspectionNum + "' "
|
|
|
|
|
-// } else {
|
|
|
|
|
-// where = where + " or a.InspectionNum = '" + testinfos[i].InspectionNum + "' "
|
|
|
|
|
-// }
|
|
|
|
|
-// }
|
|
|
|
|
-// datas = svc.PackageResultPrint(acccode, where)
|
|
|
|
|
-// return
|
|
|
|
|
-//}
|
|
|
|
|
-
|
|
|
|
|
//物料入库单打印
|
|
//物料入库单打印
|
|
|
func materialRKprint(param string) (it material.MaterialRKPrintModel, datas []material.MaterialRKPrintModel) {
|
|
func materialRKprint(param string) (it material.MaterialRKPrintModel, datas []material.MaterialRKPrintModel) {
|
|
|
param = Base64Decode(param)
|
|
param = Base64Decode(param)
|
|
@@ -973,6 +763,14 @@ func (this *HomeController) Printservice() {
|
|
|
it, itema := sampleBarcodeprint(param)
|
|
it, itema := sampleBarcodeprint(param)
|
|
|
cols = AutoColType(&it)
|
|
cols = AutoColType(&it)
|
|
|
item = itema
|
|
item = itema
|
|
|
|
|
+ case "animalsamples":
|
|
|
|
|
+ it, itema := animalBarcodeprint(param)
|
|
|
|
|
+ cols = AutoColType(&it)
|
|
|
|
|
+ item = itema
|
|
|
|
|
+ case "animalsamplesbatch":
|
|
|
|
|
+ it, itema := animalBarcodeprintbatch(param)
|
|
|
|
|
+ cols = AutoColType(&it)
|
|
|
|
|
+ item = itema
|
|
|
case "lableprint":
|
|
case "lableprint":
|
|
|
it, itema := lablepreprint(param)
|
|
it, itema := lablepreprint(param)
|
|
|
cols = AutoColType(&it)
|
|
cols = AutoColType(&it)
|