func (VS *Server) showOrdersWorker(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "showOrdersWorker", "service, b := VS.getOurService")
	if !b {
		return
	}
	wkOrders := VS.getAllWorkerOrdersFromService(c, service.ID, "h_records", "showOrdersWorker", "wkOrders := VS.getAllWorkerOrdersFromService")
	ordersHTML := VS.toViewWorkerOrders(c, revertWorkerOrder(wkOrders))
	JSON, err := json.Marshal(ordersHTML)
	VS.checkOperation(c, "h_date", "showUsers", "JSON, err := json.Marshal(uHTML)", err)
	render(c, gin.H{
		"service":     service,
		"ordersHTML":  ordersHTML,
		"JSON":        string(JSON),
		"serviceType": service.TypeID,
	}, "orders-worker.html")
}
// Shows the screen with all the WorkerOrders in the database of the given Service
Shows the screen with all the WorkerOrders in the database of the given Service
// Shows the screen with all the WorkerOrders in the database of the given Service
func (VS *Server) showOrdersWorker(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "showOrdersWorker", "service, b := VS.getOurService")
	if !b {
		return
	}
	wkOrders := VS.getAllWorkerOrdersFromService(c, service.ID, "h_records", "showOrdersWorker", "wkOrders := VS.getAllWorkerOrdersFromService")
	ordersHTML := VS.toViewWorkerOrders(c, revertWorkerOrder(wkOrders))
	JSON, err := json.Marshal(ordersHTML)
	VS.checkOperation(c, "h_date", "showUsers", "JSON, err := json.Marshal(uHTML)", err)
	render(c, gin.H{
		"service":     service,
		"ordersHTML":  ordersHTML,
		"JSON":        string(JSON),
		"serviceType": service.TypeID,
	}, "orders-worker.html")
}
func ( VS * Server ) showOrdersWorker ( c * gin . Context ) { service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } wkOrders := VS . getAllWorkerOrdersFromService ( c , service . ID , " " , " " , " " ) ordersHTML := VS . toViewWorkerOrders ( c , revertWorkerOrder ( wkOrders ) ) JSON , err := json . Marshal ( ordersHTML ) VS . checkOperation ( c , " " , " " , " " , err ) render ( c , gin . H { " " : service , " " : ordersHTML , " " : string ( JSON ) , " " : service . TypeID , } , " " ) }
Shows the screen with all the WorkerOrders in the database of the given Service
Shows the screen with all the WorkerOrders in the database of the given Service