Ejemplo n.º 1
0
 def dm_update_projectversion(request):
     message = "successful"
     try:
         projectversionid = request.POST["projectversionid"]
         projectversion = DAL_ProjectVersion.get_projectversion(projectversionid)
         projectversion = ProjectVersionService.initlize_dm_instance(request,projectversion)
         DAL_ProjectVersion.add_projectversion(projectversion)
     except Exception as ex:
         message = str(ex)
         print(message)
     return message
Ejemplo n.º 2
0
 def dm_delete_projectversion(request):
     message = "successful"
     try:
         projectversionid = request.POST["projectversionid"]
         print(projectversionid)
         projectversion = DAL_ProjectVersion.get_projectversion(projectversionid)
         projectversion.TPProjectIsActive=0
         DAL_ProjectVersion.add_projectversion(projectversion)
     except Exception as ex:
         message = str(ex)
     return message
Ejemplo n.º 3
0
 def dm_create_projectversion(request):
     ''' create new  db model projectversion
     '''
     message = "successful"
     try:
         projectversion = ProjectVersion()
         projectversion = ProjectVersionService.initlize_dm_instance(request, projectversion)
         DAL_ProjectVersion.add_projectversion(projectversion)
     except Exception as ex:
         message = str(ex)
     return message
Ejemplo n.º 4
0
    def dm_copy_projectversion(requestpost):
        message = "successful"
        try:
            projectversionid = requestpost["projectversionid"]
            projectversion = DAL_ProjectVersion.get_projectversion(projectversionid)
#             projectversion.TPSStatus = TestJobStatusEnum.JobStatus_NotSubmit
            projectversion.id=None
            projectversion.TPSSubmitTime=None
            DAL_ProjectVersion.add_projectversion(projectversion)
        except Exception as ex:
            message = str(ex)
        return message