示例#1
0
def writeOrd():
    print "Writing new order to file"
    print "-------------------------"
    print newOrderDict
    temp = int(fileOps.getNextOrderID())
    temp = str(temp + 1)
    fileOps.writeRecord(newOrderDict, temp)
    summaryLabelVar.set("New Order Saved")
    newCustProductsVar.set("")
    if (state == 0):
        addOrder()
    if (state == 1):
        showMain()
示例#2
0
def writeOrd():
	print "Writing new order to file"
	print "-------------------------"
	print newOrderDict
	temp = int(fileOps.getNextOrderID())
	temp = str(temp+1)
	fileOps.writeRecord(newOrderDict,temp)
	summaryLabelVar.set("New Order Saved")
	newCustProductsVar.set("")
	if(state == 0):
		addOrder()
	if(state == 1):
		showMain()
示例#3
0
def writeOrd():
    if state == 0:
        customerType = custTypeVar.get()
    else:
        for key in newOrderDict:
            custKey = key
            customerType = fileOps.getStockistType(custKey)
    print "Writing new order to file"
    print "-------------------------"
    print newOrderDict
    temp = int(fileOps.getNextOrderID())
    temp = str(temp + 1)
    fileOps.writeRecordQuant(newOrderDict, temp, customerType)
    summaryLabelVar.set("New Order Saved")
    newCustProductsVar.set("")
    if state == 0:
        addOrder()
    if state == 1:
        showMain()
示例#4
0
def writeOrd():
	if state == 0:
		customerType = custTypeVar.get()
	else:
		for key in newOrderDict:
			custKey = key
			customerType = fileOps.getStockistType(custKey)
	print "Writing new order to file"
	print "-------------------------"
	print newOrderDict
	temp = int(fileOps.getNextOrderID())
	temp = str(temp+1)
	fileOps.writeRecordQuant(newOrderDict,temp,customerType)
	summaryLabelVar.set("New Order Saved")
	newCustProductsVar.set("")
	if state == 0:
		addOrder()
	if state == 1:
		showMain()