Esempio n. 1
0
def endPT(request):
	content_header = "Finish"
	eID = request.GET['eID']
	planID = request.GET['pID']
	today = todayDate()
	is_enable_leftbutton = True
	is_enable_rightbutton = True
	plan = FakeStatusTracking.objects.get(plan_id = planID)
	amount = str(plan.plan_amount)
	task = "end"
	at = "PT"
	current_date_time = todayDate()


	product_code = plan.product_id
	productCat = ProductCatalog.objects.get(product_code = product_code)
	color = productCat.rope_color
	cv_machine = productCat.next_process
	speed = getCVSpeed(cv_machine)
	product_name = productCat.product_name
	partner = productCat.cname
	product = Products.objects.get(product_code = product_code)
	amount = plan.plan_amount
	pID = planID

	title = "Finished "+product_code+" in pad /partition"
	return render_to_response('PT/updateEndCV.html',locals())
Esempio n. 2
0
def startCV(request):
	content_header = "Load"
	eID = request.GET['eID']
	planID = request.GET['pID']
	today = todayDate()
	is_enable_leftbutton = True
	is_enable_rightbutton = True
	plan = FakeStatusTracking.objects.get(plan_id = planID)

	product_code = plan.product_id
	productCat = ProductCatalog.objects.get(product_code = product_code)
	color = productCat.rope_color
	cv_machine = productCat.next_process
	speed = getCVSpeed(cv_machine)
	product_name = productCat.product_name
	partner = productCat.cname
	product = Products.objects.get(product_code = product_code)
	amount = plan.plan_amount
	pID = planID
	current_date_time = todayDate()
	task = "start"
	at = "CV"
	title = "starting "+product_code+" in convertor"
	return render_to_response('CV/updateStartCV.html',locals())