func (VS *Server) showRecordsOrdersWorkerGlobal(c *gin.Context) {
	user := VS.getUserFomCookie(c, "h_worker", "showRecordsOrdersWorkerGlobal", "user := VS.getUserFomCookie)")
	orders := VS.getAllWorkerOrdersFromSpecificWorker(c, user.ID, "h_worker", "showRecordsOrdersWorkerGlobal", "orders := VS.getAllWorkerOrdersFromSpecificWorker")
	orders = revertWorkerOrder(orders)
	ordersHTML := VS.toViewWorkerOrdersWorkersView(c, orders)
	JSON, err := json.Marshal(ordersHTML)
	VS.checkOperation(c, "h_worker", "showRecordsOrdersWorkerGlobal", "JSON, err := json.Marshal(ordersHTML)", err)
	render(c, gin.H{
		"JSON":   string(JSON),
		"orders": ordersHTML,
	}, "w-records-orders.html")
}
// Shows all the Worker Orders for the specific worker
Shows all the Worker Orders for the specific worker
// Shows all the Worker Orders for the specific worker
func (VS *Server) showRecordsOrdersWorkerGlobal(c *gin.Context) {
	user := VS.getUserFomCookie(c, "h_worker", "showRecordsOrdersWorkerGlobal", "user := VS.getUserFomCookie)")
	orders := VS.getAllWorkerOrdersFromSpecificWorker(c, user.ID, "h_worker", "showRecordsOrdersWorkerGlobal", "orders := VS.getAllWorkerOrdersFromSpecificWorker")
	orders = revertWorkerOrder(orders)
	ordersHTML := VS.toViewWorkerOrdersWorkersView(c, orders)
	JSON, err := json.Marshal(ordersHTML)
	VS.checkOperation(c, "h_worker", "showRecordsOrdersWorkerGlobal", "JSON, err := json.Marshal(ordersHTML)", err)
	render(c, gin.H{
		"JSON":   string(JSON),
		"orders": ordersHTML,
	}, "w-records-orders.html")
}
func ( VS * Server ) showRecordsOrdersWorkerGlobal ( c * gin . Context ) { user := VS . getUserFomCookie ( c , " " , " " , " " ) orders := VS . getAllWorkerOrdersFromSpecificWorker ( c , user . ID , " " , " " , " " ) orders = revertWorkerOrder ( orders ) ordersHTML := VS . toViewWorkerOrdersWorkersView ( c , orders ) JSON , err := json . Marshal ( ordersHTML ) VS . checkOperation ( c , " " , " " , " " , err ) render ( c , gin . H { " " : string ( JSON ) , " " : ordersHTML , } , " " ) }
Shows all the Worker Orders for the specific worker
Shows all the Worker Orders for the specific worker