Ejemplo n.º 1
0
 def makeNewProject(self):
     myNPD = newProject.newProjectDlg(self.myProjectList, self)
     if myNPD.exec_():
         ncode = myNPD.myCode.text()
         ndesc = myNPD.myDesc.text()
         ok, data = self.myParent.handle_request("SET_NEW_PROJECT", ncode, ndesc)
         if ok:
             self.myProjectList.append(data)
             self.updateTable(str(data[0]))
     else:
         print "Rechacé"
Ejemplo n.º 2
0
 def makeNewProject(self):
     myNPD = newProject.newProjectDlg(self.myProjectList, self)
     if myNPD.exec_():
         ncode = myNPD.myCode.text()
         ndesc = myNPD.myDesc.text()
         ok, data = self.myParent.handle_request("SET_NEW_PROJECT", ncode,
                                                 ndesc)
         if ok:
             self.myProjectList.append(data)
             self.updateTable(str(data[0]))
     else:
         print "Rechacé"
Ejemplo n.º 3
0
 def makeNewProject(self):
     currPID=self.tree.currentItem().text(2)
     myProj=self.myPT.myProjects[int(currPID)]
     if len(self.myPT.path_node(myProj[0]))==1:
         isProject=True
     else:
         isProject=False
     myNPD = newProject.newProjectDlg(self.myPT, isProject, self)
     if myNPD.exec_():
         pass
         if isProject:
             ncode = myNPD.myCode.text()
         else:
             ncode = myProj[4]
         ndesc = myNPD.myDesc.text()
         nparent = myProj[0]
         ok, newNode, newPT = self.myParent.handle_request("SET_NEW_PROJECT",nparent,ncode,ndesc)
         if ok:
             current=str(newNode[0])
             self.myPT=newPT
             self.updateTable(current) 
     else:
         print "Rechacé"
Ejemplo n.º 4
0
 def makeNewProject(self):
     currPID = self.tree.currentItem().text(2)
     myProj = self.myPT.myProjects[int(currPID)]
     if len(self.myPT.path_node(myProj[0])) == 1:
         isProject = True
     else:
         isProject = False
     myNPD = newProject.newProjectDlg(self.myPT, isProject, self)
     if myNPD.exec_():
         pass
         if isProject:
             ncode = myNPD.myCode.text()
         else:
             ncode = myProj[4]
         ndesc = myNPD.myDesc.text()
         nparent = myProj[0]
         ok, newNode, newPT = self.myParent.handle_request(
             "SET_NEW_PROJECT", nparent, ncode, ndesc)
         if ok:
             current = str(newNode[0])
             self.myPT = newPT
             self.updateTable(current)
     else:
         print "Rechacé"