示例#1
0
 def _save(self):        
     self._entity.name = self._nameEntry.get()
     # self._entity.additive_group = self._additiveGroupTable.get()
     self._entity.e_number = self._eNumberEntry.get() 
     self._entity.remark = self._remarkEntry.get('0.0', 'end-1c')
     
     AbstractFrame._save(self)
示例#2
0
    def _save(self):
        self._entity.id = int(self._idEntry.get())
        self._entity.name = self._nameEntry.get()
        self._entity.remark = self._remarkEntry.get('0.0', 'end-1c')

        if self._storedEntity.id != self._entity.id:
            AccountClass.delete(self._storedEntity)
            self._is_new_entity = True

        AbstractFrame._save(self, self._is_new_entity)
        self._is_new_entity = False
示例#3
0
 def _save(self):        
     self._entity.id = int(self._idEntry.get())
     self._entity.name = self._nameEntry.get()
     self._entity.remark = self._remarkEntry.get('0.0', 'end-1c')
     
     if self._storedEntity.id != self._entity.id:
         AccountClass.delete(self._storedEntity)
         self._is_new_entity = True
     
     AbstractFrame._save(self, self._is_new_entity)
     self._is_new_entity = False
示例#4
0
    def _save(self):
        self._entity.name = self._nameEntry.get()
        self._entity.is_composite = self._isCompositeEntry.get()
        self._entity.remark = self._remarkEntry.get('0.0', 'end-1c')

        if self._entity.is_composite:
            self._entity.contents = []
            contentData = self._contentTable.getAllData()
            for rowIdx in range(0, len(contentData)):
                rowData = self._contentTable.getRowData(rowIdx)
                content = RawMaterialContent.unserialize(rowData)
                self._entity.contents.append(content)

        AbstractFrame._save(self)
示例#5
0
 def _save(self):        
     self._entity.name = self._nameEntry.get()
     self._entity.is_composite = self._isCompositeEntry.get()
     self._entity.remark = self._remarkEntry.get('0.0', 'end-1c')
     
     if self._entity.is_composite:
         self._entity.contents = []
         contentData = self._contentTable.getAllData()
         for rowIdx in range(0, len(contentData)):
             rowData = self._contentTable.getRowData(rowIdx)
             content = RawMaterialContent.unserialize(rowData)
             self._entity.contents.append(content)
     
     AbstractFrame._save(self)
示例#6
0
    def _save(self):        
        self._entity.name = self._nameEntry.get()
        self._entity.barcode = self._barcodeEntry.get()
        self._entity.is_endproduct = self._isEndProductEntry.get()
        self._entity.remark = self._remarkEntry.get('0.0', 'end-1c')
        
#         if self._entity.is_composite:
#             self._entity.contents = []
#             contentData = self._contentTable.getAllData()
#             for rowIdx in range(0, len(contentData)):
#                 rowData = self._contentTable.getRowData(rowIdx)
#                 content = ProductContent.unserialize(rowData)
#                 self._entity.contents.append(content)
        
        AbstractFrame._save(self)
示例#7
0
    def _save(self):
        self._entity.name = self._nameEntry.get()
        self._entity.barcode = self._barcodeEntry.get()
        self._entity.is_endproduct = self._isEndProductEntry.get()
        self._entity.remark = self._remarkEntry.get('0.0', 'end-1c')

        #         if self._entity.is_composite:
        #             self._entity.contents = []
        #             contentData = self._contentTable.getAllData()
        #             for rowIdx in range(0, len(contentData)):
        #                 rowData = self._contentTable.getRowData(rowIdx)
        #                 content = ProductContent.unserialize(rowData)
        #                 self._entity.contents.append(content)

        AbstractFrame._save(self)
示例#8
0
    def _save(self):
        self._entity.name = self._nameEntry.get()
        self._entity.reg_number = self._regNumberEntry.get()
        self._entity.bank_account = self._bankAccountEntry.get()
        self._entity.head_city = self._headCityEntry.get()
        self._entity.head_zip = self._headZipEntry.get()
        self._entity.head_address = self._headAddressEntry.get()
        self._entity.is_customer = False
        self._entity.is_supplier = False
        self._entity.remark = self._remarkEntry.get('0.0', 'end-1c')

        self._entity.contacts = []
        contactData = self._contactTable.getAllData()
        for rowIdx in range(0, len(contactData)):
            rowData = self._contactTable.getRowData(rowIdx)
            person = Person.unserialize(rowData)
            self._entity.contacts.append(person)

        AbstractFrame._save(self)
示例#9
0
 def _save(self):        
     self._entity.name = self._nameEntry.get()
     self._entity.reg_number = self._regNumberEntry.get()
     self._entity.bank_account = self._bankAccountEntry.get()
     self._entity.head_city = self._headCityEntry.get()
     self._entity.head_zip = self._headZipEntry.get()
     self._entity.head_address = self._headAddressEntry.get() 
     self._entity.is_customer = False
     self._entity.is_supplier = False
     self._entity.remark = self._remarkEntry.get('0.0', 'end-1c')
     
     self._entity.contacts = []
     contactData = self._contactTable.getAllData()
     for rowIdx in range(0, len(contactData)):
         rowData = self._contactTable.getRowData(rowIdx)
         person = Person.unserialize(rowData)
         self._entity.contacts.append(person)
     
     AbstractFrame._save(self)
示例#10
0
    def _save(self):
        self._entity.name = self._nameEntry.get()
        self._entity.remark = self._remarkEntry.get('0.0', 'end-1c')

        AbstractFrame._save(self)
示例#11
0
 def _save(self):        
     self._entity.name = self._nameEntry.get()
     self._entity.group_nr = self._groupNrEntry.get() 
     self._entity.remark = self._remarkEntry.get('0.0', 'end-1c')
     
     AbstractFrame._save(self)