You are on page 1of 5

import pandas as pd

from datetime import date


print(".................Welcome.................")
print("Please enter 1 for Admin Login")
print("Please enter 2 for Operator Login")
print("Please enter 3 for Customer Login")

def addOperator():
print("Please enter name")
name = input()
return name

def addRetailer():
print("Please enter name of individual")
name = input()
print("Please enter contact number 1")
con1 = int(input())
print("Please enter contact number 2")
con2 = int(input())
print("Pleae enter Address of customer:")
print("Address Line 1:")
address1 = input()
print("Address Line 2:")
address2 = input()
print("Landmark")
landmark = input()
print("pincode:")
pin = int(input())
print("City:")
city = input()
print("State:")
state = input()
print("Please enter the set Top Box Limit that the Retailer can be associated
with:")
setLimit = int(input())
print("Please enter the credit limit")
creLimit = int(input())
print("Please enter the commission percentage")
com = int(input())
print("Please enter service charges")
ser = int(input())
print("Please enter the number of entries")
rn = int(input())
print("Please enter the inventory list")

def addCustomer():
print("Please enter first name of operator")
firstName = input()
print("Please enter last name of operator")
lastName = input()
print("Please enter email id of operator")
emailId = input()
print("Please enter phone number of operator")
phoneNumber = int(input())
print("Pleae enter Address of customer:")
print("Address Line 1:")
address1 = input()
print("Address Line 2:")
address2 = input()
print("Landmark")
landmark = input()
print("pincode:")
pin = int(input())
print("City:")
city = input()
print("State:")
state = input()
today1 = date.today()
print("Creation Date", today1)
#operation on csv have to be done
#price addition and then display
print("Please Upload Set Top Box Inventory Details (Please provide exact csv
file path")
df = pd.read_csv(r'C:\Users\HARSHIT\OneDrive\Documents\Rent stack.csv')

def deleteCustomer():
pass

def stbm():
print("Please enter:")
print("1 for Standard Set Top Box")
print("2 for High Definition Set Top Box")
print("3 for High Definition Recoder Set Top Box")
print("4 for IPTV Set Top Box")

print("Set Top Box Feature")


print("Please enter 1 for Live Recording \n 2 for Scheduled Recording \n 3 for
Pause and play")

print("Dimensions")
print("Height")
height = int(input())
print("Width")
width = int(input())
print("Lenght")
Lenght = int(input())

print("Price")
price = int(input())

print("Installation Charge")
iCharge = int(input())

print("Upgradation Charge")
uCharge = int(input())

print("Discount")
dis = int(input())

print("Billing Type")
print("Enter 1 for Pre-paid \n Enter 2 for Post-paid")

print("Refundalble Deposit Amount")


rdAmount = int(input())

print("Please Upload Set Top Box Inventory Details (Please provide exact csv
file path")
df = pd.read_csv(r'C:\Users\HARSHIT\OneDrive\Documents\Rent stack.csv')

def cm():
print("Please enter the channel name")
channelName = input()
print("Please enter the channel band")
channelBand = input()
print("Please enter Video frequency")
channelVFrequency = float(input())
print("Please enter Audio frequency")
channelAFrequency = float(input())
print("Please Specify Charge Type \n Enter 1 for FTA \n 2 for Paid")
channelType = int(input())
print("Please Specify Charge Type \n Enter 1 for Standard \n 2 for HD")
channelTrType = int(input())
print("Please enter the channel charge")
channelCharge = int(input())

def deleteCm():
print("Please enter the name of channel to be deleted")
channelName = input()

def viewCm():
pass

def pm():
pass

log = int(input())
if log == 1:
userName=input()
pas=input()
use="Root"
pas1 = "Root"
if userName==use and pas==pas1:
print("Welcome"+userName+"to admin control")
print("Please enter 1 for Customer Management")
print("Please enter 2 for Operator Management")
print("Please enter 3 for Retaile Management")
print("Please enter 4 for Set Top Box Management")
print("Please enter 5 for Channel Management")
print("Please enter 6 for Package Management")

control=int(input())
if control==1:
print("Please enter 1 to add new customer")
print("Please enter 2 to delete an existing customer")
nm = int(input())
if nm == 1:
addCustomer()
print("Operator Name")
print(userName)
else:
deleteCustomer()
if control==2:
addOperator()
if control==3:
addRetailer()
if control == 4:
stbm()
if control == 5:
print("Please enter 1 to add a new channel \n Please enter 2 to delete
am existing channel \n Plase enter 3 to view the listof channels")
cmControl = int(input())

if cmControl == 1:
cm()
elif cmControl == 2:
deleteCm()

elif cmControl == 3:
viewCm()
cm()
if control == 6:
pm()

if log == 2:
userName=input()
pas=input()
use="Root"
pas1 = "Root"
if userName==use and pas==pas1:
print("Welcome"+userName+"to operator control")
print("Please enter 1 for Customer Management")
print("Please enter 2 for Retaile Management")
control=int(input())
if control==1:
print("Please enter 1 to add a new customer")
print("Please enter 2 to delete an existing customer")
cus = int(input())
if cus == 1:
pass
if cus == 2:
pass
if control==2:
name = addRetailer
print(name)

if log == 3:
print("Welcome to Infinity DTH")
print("Please enter 1 to register")
print("Please enter 2 to login")
control = int(input())
if control == 1:
addCustomer
if control == 2:
cusUserName = input()
cusPass = input()
cun = "Root"
cp = "Root"
if cusUserName == cun and cusPass == cp:
print("Welcome"+cusUserName)
print("Purchase Set Top Box")

print("Please enter 1 for prepaid \n Please enter 2 for postpaid")


paidPP = int(input())
if paidPP == 1:
pass
elif paidPP == 2:
pass

You might also like