Esempio n. 1
0
def update_edit(request):
    ''' edit autoagent'''
    if request.method=="POST":
        message=AutoAgentService.dm_updateautoagent(request)
        return HttpResponse(message)
    else:
        pass
    return render_to_response('autoagent/autoagentformview_edit.html')
Esempio n. 2
0
def create_add(request):
    ''' create new autoagent'''
    if request.method=="POST":
        message=AutoAgentService.dm_createautoagent(request)
        return HttpResponse(message)
    else:
        pass
    return render_to_response('autoagent/autoagentformview_test.html')
Esempio n. 3
0
def get_list(request):
    ''' get all autoagent list'''
    try:
        autoagentlist=list()
        result=AutoAgentService.vm_getall_auotagent(request)
        for item in result:
            vm_autoagent=VM_AutoAgent(item)
            autoagentlist.append(vm_autoagent)
    except Exception as ex:
        print(ex)
    return render_to_response('autoagent/autoagentlistcontroll.html', {'autoagentlist': autoagentlist})
Esempio n. 4
0
def delete_autoagent(request):
    return HttpResponse(AutoAgentService.disable_autoagent(request))
    
Esempio n. 5
0
def copy_autoagent(request):
    return HttpResponse(AutoAgentService.copy_autoagent(request))
Esempio n. 6
0
def get_autoagent_page_counts(request):
    
    return HttpResponse(AutoAgentService.get_autoagent_page_counts(request))
Esempio n. 7
0
def init_autoagent_formcontrol(request):
    try:
        result=AutoAgentService.init_autoagent_form_control(request)
    except Exception as ex:
        print(ex)
    return HttpResponse(result)
Esempio n. 8
0
def check_ip_exits(request):
    result=AutoAgentService.check_ip_exits(request.POST["agentip"])
    return HttpResponse(result)