func (VS *Server) showNewWorkerOrder(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "showNewWorkerOrder", "service, b := VS.getOurService")
	if !b {
		return
	}
	workers := VS.getWorkersFromSpecificService(c, service.ID, "h_records", "showNewWorkerOrder", "workers := VS.getWorkersFromSpecificService")
	orders := VS.getAllServiceOrdersFromService(c, service.ID, "h_records", "showNewWorkerOrder", "orders := VS.getAllServiceOrdersFromService")
	ordersClean := cleanServiceOrders(orders)
	ordersHTML := VS.toViewWorkshopOrder(c, ordersClean)
	render(c, gin.H{
		"orders":      ordersHTML,
		"workers":     workers,
		"serviceType": service.TypeID,
	}, "new-worker-order.html")
}
// Shows the page to introduce the information of the new WorkerOrder
Shows the page to introduce the information of the new WorkerOrder
// Shows the page to introduce the information of the new WorkerOrder
func (VS *Server) showNewWorkerOrder(c *gin.Context) {
	service, b := VS.getOurService(c, "h_records", "showNewWorkerOrder", "service, b := VS.getOurService")
	if !b {
		return
	}
	workers := VS.getWorkersFromSpecificService(c, service.ID, "h_records", "showNewWorkerOrder", "workers := VS.getWorkersFromSpecificService")
	orders := VS.getAllServiceOrdersFromService(c, service.ID, "h_records", "showNewWorkerOrder", "orders := VS.getAllServiceOrdersFromService")
	ordersClean := cleanServiceOrders(orders)
	ordersHTML := VS.toViewWorkshopOrder(c, ordersClean)
	render(c, gin.H{
		"orders":      ordersHTML,
		"workers":     workers,
		"serviceType": service.TypeID,
	}, "new-worker-order.html")
}
func ( VS * Server ) showNewWorkerOrder ( c * gin . Context ) { service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } workers := VS . getWorkersFromSpecificService ( c , service . ID , " " , " " , " " ) orders := VS . getAllServiceOrdersFromService ( c , service . ID , " " , " " , " " ) ordersClean := cleanServiceOrders ( orders ) ordersHTML := VS . toViewWorkshopOrder ( c , ordersClean ) render ( c , gin . H { " " : ordersHTML , " " : workers , " " : service . TypeID , } , " " ) }
Shows the page to introduce the information of the new WorkerOrder
Shows the page to introduce the information of the new WorkerOrder