func (VS *Server) showRecordsOrdersWorkerService(c *gin.Context) {
	service, b := VS.getOurService(c, "h_worker", "showRecordsOrdersWorkerService", "service, _ := VS.getOurService")
	if !b {
		return
	}
	user := VS.getUserFomCookie(c, "h_worker", "showRecordsOrdersWorkerService", "user := v.getUserFomCookie")
	orders := VS.getAllWorkerOrdersFromSpecificWorkerAndService(c, user.ID, service.ID, "h_worker", "showRecordsOrdersWorkerService", "orders := VS.getAllWorkerOrdersFromSpecificWorkerAndService")
	orders = revertWorkerOrder(orders)
	ordersHTML := VS.toViewWorkerOrdersWorkersView(c, orders)
	JSON, err := json.Marshal(ordersHTML)
	VS.checkOperation(c, "h_worker", "showRecordsOrdersWorkerService", "JSON, err := json.Marshal(ordersHTML))", err)
	render(c, gin.H{
		"JSON":        string(JSON),
		"orders":      ordersHTML,
		"fromService": true,
		"serviceType": service.TypeID,
	}, "w-records-orders.html")
}
// Shows the Worker Orders for the specific worker from that service
Shows the Worker Orders for the specific worker from that service
// Shows the Worker Orders for the specific worker from that service
func (VS *Server) showRecordsOrdersWorkerService(c *gin.Context) {
	service, b := VS.getOurService(c, "h_worker", "showRecordsOrdersWorkerService", "service, _ := VS.getOurService")
	if !b {
		return
	}
	user := VS.getUserFomCookie(c, "h_worker", "showRecordsOrdersWorkerService", "user := v.getUserFomCookie")
	orders := VS.getAllWorkerOrdersFromSpecificWorkerAndService(c, user.ID, service.ID, "h_worker", "showRecordsOrdersWorkerService", "orders := VS.getAllWorkerOrdersFromSpecificWorkerAndService")
	orders = revertWorkerOrder(orders)
	ordersHTML := VS.toViewWorkerOrdersWorkersView(c, orders)
	JSON, err := json.Marshal(ordersHTML)
	VS.checkOperation(c, "h_worker", "showRecordsOrdersWorkerService", "JSON, err := json.Marshal(ordersHTML))", err)
	render(c, gin.H{
		"JSON":        string(JSON),
		"orders":      ordersHTML,
		"fromService": true,
		"serviceType": service.TypeID,
	}, "w-records-orders.html")
}
func ( VS * Server ) showRecordsOrdersWorkerService ( c * gin . Context ) { service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } user := VS . getUserFomCookie ( c , " " , " " , " " ) orders := VS . getAllWorkerOrdersFromSpecificWorkerAndService ( c , user . ID , service . 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 , " " : true , " " : service . TypeID , } , " " ) }
Shows the Worker Orders for the specific worker from that service
Shows the Worker Orders for the specific worker from that service