def _createWidgets(self): r = 0 c = 0 self._nameLabel = Label(self, text=World.L("NAME")); self._nameLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._nameEntry = Entry(self, width=World.defaultEntryWidth()) self._nameEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._groupNrLabel = Label(self, text=World.L("ADDRESS")) self._groupNrLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._groupNrEntry = Entry(self, width=World.defaultEntryWidth()) self._groupNrEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._remarkLabel = Label(self, text=World.L("REMARK")) self._remarkLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._remarkEntry = Text(self, width=World.textEntryWidth(), height=10) self._remarkEntry.grid(row=r, column=c, sticky="WE", padx=World.smallPadSize(), pady=World.smallPadSize()) # Append operation buttons c = 0 r += 1 AbstractFrame._createWidgets(self, r , c, 2)
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)
def _createWidgets(self): r = 0 c = 0 self._nameLabel = Label(self, text=World.L("NAME")) self._nameLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._nameEntry = Entry(self, width=World.defaultEntryWidth()) self._nameEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._groupNrLabel = Label(self, text=World.L("ADDRESS")) self._groupNrLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._groupNrEntry = Entry(self, width=World.defaultEntryWidth()) self._groupNrEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._remarkLabel = Label(self, text=World.L("REMARK")) self._remarkLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._remarkEntry = Text(self, width=World.textEntryWidth(), height=10) self._remarkEntry.grid(row=r, column=c, sticky="WE", padx=World.smallPadSize(), pady=World.smallPadSize()) # Append operation buttons c = 0 r += 1 AbstractFrame._createWidgets(self, r, c, 2)
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
def _createWidgets(self): r = 0 c = 0 self._nameLabel = Label(self, text=World.L("NAME")); self._nameLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._nameEntry = Entry(self, width=World.defaultEntryWidth()) self._nameEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) r += 1 c = 0 self._barcodeLabel = Label(self, text=World.L("BARCODE")); self._barcodeLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._barcodeEntry = Entry(self, width=World.defaultEntryWidth()) self._barcodeEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._isEndProductLabel = Label(self, text=World.L("IS_END/IS_SEMI")) self._isEndProductLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._isEndProductEntry = Entry(self, width=World.defaultEntryWidth()) self._isEndProductEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._contentLabel = Label(self, text=World.L("CONTENTS")) self._contentLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 hd = (World.L('ID'), World.L('NAME'), World.L('%'), World.L('REMARK')) self._contentTable = MinuxTable(self, columns=4, header=hd, type=self._rawMaterialContentType) # self._contentTable.setInvisibleColumns((1,3, 7)) self._contentTable.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._remarkLabel = Label(self, text=World.L("REMARK")) self._remarkLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._remarkEntry = Text(self, width=World.textEntryWidth(), height=10) self._remarkEntry.grid(row=r, column=c, sticky="WE", padx=World.smallPadSize(), pady=World.smallPadSize()) # Append operation buttons c = 0 r += 1 AbstractFrame._createWidgets(self, r , c, 2)
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
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)
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)
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)
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)
def _createWidgets(self): r = 0 c = 0 self._nameLabel = Label(self, text=World.L("NAME")); self._nameLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._nameEntry = Entry(self, width=World.defaultEntryWidth()) self._nameEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._additiveGroupLabel = Label(self, text=World.L("ADDITIVE_GROUP")) self._additiveGroupLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 hd = (World.L('ID'), World.L('NAME')) self._additiveGroupTable = ChooserTable(self, columns=3, header=hd, type=self._additiveGroupType) self._additiveGroupTable.setInvisibleColumns((1,3,4)) self._additiveGroupTable.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._eNumberLabel = Label(self, text=World.L("E_NUMBER")) self._eNumberLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._eNumberEntry = Entry(self, width=World.defaultEntryWidth()) self._eNumberEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._remarkLabel = Label(self, text=World.L("REMARK")) self._remarkLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._remarkEntry = Text(self, width=World.textEntryWidth(), height=10) self._remarkEntry.grid(row=r, column=c, sticky="WE", padx=World.smallPadSize(), pady=World.smallPadSize()) # Append operation buttons c = 0 r += 1 AbstractFrame._createWidgets(self, r , c, 2)
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)
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)
def _create(self): self._is_new_entity = True AbstractFrame._create(self) self._entity = AccountClass.new()
def __init__(self, master, appFrame): AbstractFrame.__init__(self, master, appFrame)
def _create(self): AbstractFrame._create(self) self._entity = Product.new()
def _create(self): self._is_new_entity = True AbstractFrame._create(self) self._entity = AccountClass.new()
def refreshDetails(self, params): '''Override''' # self._contentTable.deleteEntries() AbstractFrame.refreshDetails(self, params)
def setState(self, widget, state='disabled'): '''Override''' AbstractFrame.setState(self, widget, state) self._contentTable.setState(state)
def refreshDetails(self, params): '''Override''' # self._contentTable.deleteEntries() AbstractFrame.refreshDetails(self, params)
def _create(self): AbstractFrame._create(self) self._entity = RawMaterial.new()
def _createWidgets(self): r = 0 c = 0 self._nameLabel = Label(self, text=World.L("NAME")) self._nameLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._nameEntry = Entry(self, width=World.defaultEntryWidth()) self._nameEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._regNumberLabel = Label(self, text=World.L("REG_NUMBER")) self._regNumberLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._regNumberEntry = Entry(self, width=World.defaultEntryWidth()) self._regNumberEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._bankAccountLabel = Label(self, text=World.L("BANK_ACCOUNT_NUMBER")) self._bankAccountLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._bankAccountEntry = Entry(self, width=World.defaultEntryWidth()) self._bankAccountEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._headCityLabel = Label(self, text=World.L("LOCATION")) self._headCityLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._headCityEntry = Entry(self, width=World.defaultEntryWidth()) self._headCityEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._headZipLabel = Label(self, text=World.L("ZIP")) self._headZipLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._headZipEntry = Entry(self, width=8) self._headZipEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._headAddressLabel = Label(self, text=World.L("ADDRESS")) self._headAddressLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._headAddressEntry = Entry(self, width=World.defaultEntryWidth()) self._headAddressEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._contactLabel = Label(self, text=World.L("CONTACTS")) self._contactLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 hd = (World.L('ID'), World.L('NAME'), World.L('ADDRESS'), World.L('PHONE'), World.L('EMAIL')) self._contactTable = MinuxTable(self, columns=6, header=hd, type=self._personType) self._contactTable.setInvisibleColumns((1, 3, 7)) self._contactTable.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._remarkLabel = Label(self, text=World.L("REMARK")) self._remarkLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._remarkEntry = Text(self, width=World.textEntryWidth(), height=10) self._remarkEntry.grid(row=r, column=c, sticky="WE", padx=World.smallPadSize(), pady=World.smallPadSize()) # Append operation buttons c = 0 r += 1 AbstractFrame._createWidgets(self, r, c, 2)
def _create(self): AbstractFrame._create(self) self._entity = Partner.new()
def _create(self): AbstractFrame._create(self) self._entity = AdditiveGroup.new()
def _create(self): AbstractFrame._create(self) self._entity = RawMaterial.new()
def _create(self): AbstractFrame._create(self) self._entity = AdditiveGroup.new()
def setState(self, widget, state='disabled'): '''Override''' self._additiveGroupTable.setState(state) AbstractFrame.setState(self, widget, state)
def _create(self): AbstractFrame._create(self) self._entity = MovementType.new()
def _create(self): AbstractFrame._create(self) self._entity = Product.new()
def _save(self): self._entity.name = self._nameEntry.get() self._entity.remark = self._remarkEntry.get('0.0', 'end-1c') AbstractFrame._save(self)
def setState(self, widget, state='disabled'): '''Override''' AbstractFrame.setState(self, widget, state) self._contentTable.setState(state)
def _createWidgets(self): r = 0 c = 0 self._nameLabel = Label(self, text=World.L("NAME")); self._nameLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._nameEntry = Entry(self, width=World.defaultEntryWidth()) self._nameEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._regNumberLabel = Label(self, text=World.L("REG_NUMBER")) self._regNumberLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._regNumberEntry = Entry(self, width=World.defaultEntryWidth()) self._regNumberEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._bankAccountLabel = Label(self, text=World.L("BANK_ACCOUNT_NUMBER")) self._bankAccountLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._bankAccountEntry = Entry(self, width=World.defaultEntryWidth()) self._bankAccountEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._headCityLabel = Label(self, text=World.L("LOCATION")) self._headCityLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._headCityEntry = Entry(self, width=World.defaultEntryWidth()) self._headCityEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._headZipLabel = Label(self, text=World.L("ZIP")) self._headZipLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._headZipEntry = Entry(self, width=8) self._headZipEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._headAddressLabel = Label(self, text=World.L("ADDRESS")) self._headAddressLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._headAddressEntry = Entry(self, width=World.defaultEntryWidth()) self._headAddressEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._contactLabel = Label(self, text=World.L("CONTACTS")) self._contactLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 hd = (World.L('ID'), World.L('NAME'), World.L('ADDRESS'), World.L('PHONE'), World.L('EMAIL')) self._contactTable = MinuxTable(self, columns=6, header=hd, type=self._personType) self._contactTable.setInvisibleColumns((1,3, 7)) self._contactTable.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._remarkLabel = Label(self, text=World.L("REMARK")) self._remarkLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._remarkEntry = Text(self, width=World.textEntryWidth(), height=10) self._remarkEntry.grid(row=r, column=c, sticky="WE", padx=World.smallPadSize(), pady=World.smallPadSize()) # Append operation buttons c = 0 r += 1 AbstractFrame._createWidgets(self, r , c, 2)
def _create(self): AbstractFrame._create(self) self._entity = Partner.new()
def __init__(self, master, appFrame): AbstractFrame.__init__(self, master, appFrame)
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)
def _createWidgets(self): r = 0 c = 0 self._nameLabel = Label(self, text=World.L("NAME")) self._nameLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._nameEntry = Entry(self, width=World.defaultEntryWidth()) self._nameEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._isCompositeLabel = Label(self, text=World.L("IS_COMPOSITE")) self._isCompositeLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._isCompositeEntry = Entry(self, width=World.defaultEntryWidth()) self._isCompositeEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._contentLabel = Label(self, text=World.L("CONTENTS")) self._contentLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 hd = (World.L('ID'), World.L('NAME'), World.L('%'), World.L('REMARK')) self._contentTable = MinuxTable(self, columns=4, header=hd, type=self._rawMaterialContentType) # self._contentTable.setInvisibleColumns((1,3, 7)) self._contentTable.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._remarkLabel = Label(self, text=World.L("REMARK")) self._remarkLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._remarkEntry = Text(self, width=World.textEntryWidth(), height=10) self._remarkEntry.grid(row=r, column=c, sticky="WE", padx=World.smallPadSize(), pady=World.smallPadSize()) # Append operation buttons c = 0 r += 1 AbstractFrame._createWidgets(self, r, c, 2)
def _create(self): AbstractFrame._create(self) self._entity = Stock.new()