def PdcTipCardFunc( parent, call_fit = True, set_sizer = True ): item0 = wx.FlexGridSizer( 0, 1, 0, 0 ) item1 = AnagCardPanel(parent) item0.Add( item1, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) item2 = RadioBox( parent, ID_RADIOTIPO, "I sottoconti di questo tipo sono:", wx.DefaultPosition, wx.DefaultSize, ["Cassa","Banche","Clienti","Fornitori","Effetti","Altro"] , 1, wx.RA_SPECIFY_ROWS ) item0.Add( item2, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) item4 = wx.StaticBox( parent, -1, "Range codici sottoconti" ) item3 = wx.StaticBoxSizer( item4, wx.VERTICAL ) item5 = LinkTable(parent, ID_CTRPDCRANGE ); item5.SetDataLink( bt.TABNAME_PDCRANGE, "id_pdcrange", None ) item3.Add( item5, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) item0.Add( item3, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item0.Add( [ 20, 100 ] , 0, wx.ALIGN_CENTER|wx.ALL, 5 ) item0.AddGrowableCol( 0 ) if set_sizer == True: parent.SetSizer( item0 ) if call_fit == True: item0.SetSizeHints( parent ) return item0
def GruArtCardAnagFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item2 = wx.StaticBox(parent, -1, "Classificazione di magazzino") item1 = wx.StaticBoxSizer(item2, wx.VERTICAL) item3 = wx.FlexGridSizer(0, 2, 0, 0) item4 = wx.StaticText(parent, ID_TEXT, "Fa parte della categoria:", wx.DefaultPosition, wx.DefaultSize, 0) item3.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item5 = LinkTable(parent, ID_CTRCATART) item5.SetDataLink(bt.TABNAME_CATART, "id_catart", CatArtDialog) item5.SetObligatory() item3.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item3.AddGrowableCol(1) item1.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item0.Add([20, 120], 0, wx.ALIGN_CENTER | wx.ALL, 5) item0.AddGrowableCol(0) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def SpeIncCardFunc( parent, call_fit = True, set_sizer = True ): item0 = wx.FlexGridSizer( 0, 1, 0, 0 ) item1 = AnagCardPanel(parent, -1) item0.Add( item1, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) item3 = wx.StaticBox( parent, -1, "Spesa" ) item2 = wx.StaticBoxSizer( item3, wx.VERTICAL ) item4 = wx.FlexGridSizer( 0, 1, 0, 0 ) item5 = wx.FlexGridSizer( 0, 2, 0, 0 ) item6 = wx.FlexGridSizer( 0, 1, 0, 0 ) item7 = wx.StaticText( parent, ID_TEXT, "Importo spesa:", wx.DefaultPosition, wx.DefaultSize, 0 ) item6.Add( item7, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.TOP, 5 ) item8 = NumCtrl( parent, integerWidth=12, fractionWidth=bt.VALINT_DECIMALS, allowNegative=False, groupDigits=False); item8.SetName("importo") item6.Add( item8, 0, wx.ALIGN_CENTER_VERTICAL, 5 ) item6.AddGrowableCol( 0 ) item5.Add( item6, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item9 = wx.FlexGridSizer( 0, 1, 0, 0 ) item10 = wx.StaticText( parent, ID_TEXT, "Aliquota IVA:", wx.DefaultPosition, wx.DefaultSize, 0 ) item9.Add( item10, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.TOP, 5 ) item11 = LinkTable(parent, ID_MODPAG ); item11.SetDataLink( bt.TABNAME_ALIQIVA, "id_aliqiva", AliqIvaDialog ); item11.SetObligatory(True) item9.Add( item11, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.BOTTOM, 5 ) item9.AddGrowableCol( 0 ) item5.Add( item9, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item5.AddGrowableCol( 0 ) item5.AddGrowableCol( 1 ) item4.Add( item5, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item4.AddGrowableCol( 0 ) item2.Add( item4, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) item0.Add( item2, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) item0.Add( [ 20, 110 ] , 0, wx.ALIGN_CENTER|wx.ALL, 5 ) item0.AddGrowableCol( 0 ) if set_sizer == True: parent.SetSizer( item0 ) if call_fit == True: item0.SetSizeHints( parent ) return item0
def MagazzCardFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item1 = AnagCardPanel(parent) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item2 = wx.FlexGridSizer(0, 2, 0, 0) item3 = wx.StaticText(parent, ID_TEXT, "Anagrafica associata:", wx.DefaultPosition, wx.DefaultSize, 0) item2.Add(item3, 0, wx.ALIGN_CENTER | wx.ALL, 5) item4 = LinkTable(parent, ID_PDC) item4.SetDataLink(bt.TABNAME_PDC, "id_pdc", PdcDialog) item4.SetObligatory(True) item2.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item2.AddGrowableCol(1) item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item5 = wx.FlexGridSizer(0, 1, 0, 0) item6 = wx.StaticText( parent, ID_TEXT, "Configurazione Registri Iva per causale con indirizzamento dinamico del registro", wx.DefaultPosition, wx.DefaultSize, 0) item6.SetForegroundColour(wx.BLUE) item5.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item7 = wx.Panel(parent, ID_PANGRIDRIM, wx.DefaultPosition, [200, 160], 0) item5.Add( item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item5.AddGrowableCol(0) item5.AddGrowableRow(1) item0.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.AddGrowableCol(0) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def Setup3Func(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item2 = wx.StaticBox(parent, -1, "A chiusura registrazione, registra evento") item1 = wx.StaticBoxSizer(item2, wx.VERTICAL) item3 = wx.FlexGridSizer(0, 2, 0, 0) item4 = wx.StaticText(parent, ID_TEXT, "Tip evento:", wx.DefaultPosition, wx.DefaultSize, 0) item3.Add(item4, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item5 = LinkTable(parent, ID_TIPEVENT) item5.SetDataLink(bt.TABNAME_TIPEVENT, "id_tipevent", TipiEventoDialog) item3.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item3.AddGrowableCol(1) item1.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item6 = wx.StaticText(parent, ID_TEXT, "Messaggio da allegare:", wx.DefaultPosition, wx.DefaultSize, 0) item0.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item7 = wx.TextCtrl(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [80, 200], wx.TE_MULTILINE) item7.SetFont(wx.Font(10, wx.MODERN, wx.NORMAL, wx.NORMAL)) item7.SetName("event_msg") item0.Add( item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item0.AddGrowableCol(0) item0.AddGrowableRow(2) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def FtDifCardFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item1 = AnagCardPanel(parent, -1) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item2 = wx.FlexGridSizer(1, 0, 0, 0) item3 = wx.FlexGridSizer(0, 1, 0, 0) item5 = wx.StaticBox(parent, -1, "Impostazioni di default") item4 = wx.StaticBoxSizer(item5, wx.VERTICAL) item6 = wx.FlexGridSizer(0, 2, 0, 0) item7 = wx.StaticText(parent, ID_TEXT, "Documento da generare:", wx.DefaultPosition, wx.DefaultSize, 0) item6.Add(item7, 0, wx.ALIGN_CENTER | wx.ALL, 5) item8 = LinkTable(parent, ID_DOCGEN) item8.SetDataLink(bt.TABNAME_CFGMAGDOC, "id_docgen", CfgCauMagDialog) item6.Add(item8, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item6.AddGrowableCol(1) item4.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item9 = CheckBox( parent, ID_NODESRIF, "Non generare la riga di riferimento al documento raggruppato", wx.DefaultPosition, wx.DefaultSize, 0) item9.SetName("f_nodesrif") item4.Add( item9, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item3.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item11 = wx.StaticBox(parent, -1, "Genera un diverso documento a fronti di:") item10 = wx.StaticBoxSizer(item11, wx.VERTICAL) item12 = wx.FlexGridSizer(0, 1, 0, 0) item13 = CheckBox(parent, ID_SEPALL, "Ogni documento esaminato", wx.DefaultPosition, wx.DefaultSize, 0) item13.SetName("f_sepdoc") item12.Add( item13, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item14 = CheckBox(parent, ID_SEPMP, "Ogni diversa mod.pagamento riscontrata", wx.DefaultPosition, wx.DefaultSize, 0) item14.SetName("f_sepmp") item12.Add( item14, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item15 = CheckBox(parent, ID_SEPDEST, "Ogni diverso destinatario riscontrato", wx.DefaultPosition, wx.DefaultSize, 0) item15.SetName("f_sepdest") item12.Add( item15, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item12.AddGrowableCol(0) item10.Add(item12, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item3.Add(item10, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5) item17 = wx.StaticBox(parent, -1, "Aggiornamenti sui documenti raggruppati:") item16 = wx.StaticBoxSizer(item17, wx.VERTICAL) item18 = wx.FlexGridSizer(0, 1, 0, 0) item19 = CheckBox(parent, ID_SETACQ, "contrassegna come Acquisito", wx.DefaultPosition, wx.DefaultSize, 0) item19.SetName("f_setacq") item18.Add( item19, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item20 = CheckBox(parent, ID_SETANN, "contrassegna come Annullato", wx.DefaultPosition, wx.DefaultSize, 0) item20.SetName("f_setann") item18.Add( item20, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item21 = CheckBox(parent, ID_SETGEN, "contrassegna come generato da raggruppamento", wx.DefaultPosition, wx.DefaultSize, 0) item21.SetName("f_setgen") item18.Add( item21, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item18.AddGrowableCol(0) item16.Add(item18, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item3.Add( item16, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5) item3.AddGrowableCol(0) item3.AddGrowableRow(0) item3.AddGrowableRow(1) item3.AddGrowableRow(2) item2.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT, 5) item22 = wx.FlexGridSizer(0, 1, 0, 0) item24 = wx.StaticBox(parent, -1, "Documenti da raggruppare") item23 = wx.StaticBoxSizer(item24, wx.VERTICAL) item25 = wx.CheckListBox(parent, ID_DOCS, wx.DefaultPosition, [240, 190], [], wx.LB_SINGLE) item23.Add( item25, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item26 = CheckBox(parent, ID_SOLOSTA, "Considera solo documenti stampati", wx.DefaultPosition, wx.DefaultSize, 0) item26.SetName("f_solosta") item23.Add(item26, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item22.Add( item23, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item22.AddGrowableCol(0) item22.AddGrowableRow(1) item2.Add(item22, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item2.AddGrowableCol(1) item2.AddGrowableRow(0) item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item27 = wx.FlexGridSizer(1, 0, 0, 0) item28 = RadioBox(parent, ID_F_CHGMAG, "Magazzino", wx.DefaultPosition, wx.DefaultSize, [ "Mantieni il magazzino del documento", "Fai confluire i documenti in un unico magazzino" ], 1, wx.RA_SPECIFY_COLS) item28.SetName("f_chgmag") item27.Add( item28, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item30 = wx.StaticBox( parent, -1, "Tutti i documenti generati confluiranno indistintamente sul magazzino:" ) item29 = wx.StaticBoxSizer(item30, wx.VERTICAL) item29.Add([20, 15], 0, wx.ALIGN_CENTER, 5) item31 = wx.FlexGridSizer(1, 0, 0, 0) item32 = wx.StaticText(parent, ID_TEXT, "Documenti generati sul magazzino:", wx.DefaultPosition, wx.DefaultSize, 0) item31.Add(item32, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item33 = LinkTable(parent, ID_CHGMAG) item33.SetDataLink(bt.TABNAME_MAGAZZ, "id_chgmag") item31.Add(item33, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item31.AddGrowableCol(1) item29.Add(item31, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item27.Add( item29, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item27.AddGrowableCol(1) item0.Add(item27, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.AddGrowableCol(0) item0.AddGrowableRow(1) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def FatturatoPdcFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item1 = wx.FlexGridSizer(1, 0, 0, 0) item3 = wx.StaticBox(parent, -1, "Selezioni sui clienti") item2 = wx.StaticBoxSizer(item3, wx.VERTICAL) item4 = wx.FlexGridSizer(0, 3, 0, 0) item5 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition, wx.DefaultSize, 0) item4.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item6 = wx.StaticText(parent, ID_TEXT, "Da:", wx.DefaultPosition, wx.DefaultSize, 0) item4.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item7 = wx.StaticText(parent, ID_TEXT, "A:", wx.DefaultPosition, wx.DefaultSize, 0) item4.Add(item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item8 = wx.StaticText(parent, ID_LABCOD, "Rag. sociale:", wx.DefaultPosition, [70, -1], wx.ALIGN_RIGHT) item4.Add( item8, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item9 = LinkTableAnag(parent, ID_PDC1) item9.SetDataLink(bt.TABNAME_PDC, "pdc1", AnagDialog) item4.Add(item9, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item10 = LinkTableAnag(parent, ID_PDC2) item10.SetDataLink(bt.TABNAME_PDC, "pdc2", AnagDialog) item4.Add(item10, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5) item11 = wx.StaticText(parent, ID_LABTIP, "Agente:", wx.DefaultPosition, wx.DefaultSize, 0) item4.Add(item11, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item12 = LinkTable(parent, ID_AGENTE1) item12.SetDataLink(bt.TABNAME_AGENTI, "agente1", AgentiDialog) item4.Add(item12, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item13 = LinkTable(parent, ID_AGENTE2) item13.SetDataLink(bt.TABNAME_AGENTI, "agente2", AgentiDialog) item4.Add( item13, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5) item14 = wx.StaticText(parent, ID_LABTIP, "Categoria:", wx.DefaultPosition, wx.DefaultSize, 0) item4.Add(item14, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item15 = LinkTable(parent, ID_CATANA1) item15.SetDataLink(TABNAME_CATANA, "catana1", CatAnaDialog) item4.Add( item15, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item16 = LinkTable(parent, ID_CATANA2) item16.SetDataLink(TABNAME_CATANA, "catana2", CatAnaDialog) item4.Add(item16, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item4.AddGrowableCol(1) item4.AddGrowableCol(2) item2.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item1.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item17 = wx.RadioBox( parent, ID_RADIOBOX, "Ordina per:", wx.DefaultPosition, wx.DefaultSize, ["Anagrafica", "Fatturato, da 0", "Fatturato, dal massimo"], 1, wx.RA_SPECIFY_COLS) item17.SetName("tipord") item1.Add( item17, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5) item1.AddGrowableCol(0) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item18 = wx.FlexGridSizer(1, 0, 0, 0) item19 = wx.FlexGridSizer(0, 1, 0, 0) item21 = wx.StaticBox(parent, -1, "Selezioni sui prodotti") item20 = wx.StaticBoxSizer(item21, wx.VERTICAL) item22 = wx.FlexGridSizer(0, 3, 0, 0) item23 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition, wx.DefaultSize, 0) item22.Add(item23, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item24 = wx.StaticText(parent, ID_TEXT, "Da:", wx.DefaultPosition, wx.DefaultSize, 0) item22.Add(item24, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item25 = wx.StaticText(parent, ID_TEXT, "A:", wx.DefaultPosition, wx.DefaultSize, 0) item22.Add(item25, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item26 = wx.StaticText(parent, ID_LABCOD, "Codice:", wx.DefaultPosition, [70, -1], wx.ALIGN_RIGHT) item22.Add(item26, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5) item27 = TextCtrl(parent, ID_CODICE1, "", wx.DefaultPosition, [100, -1], 0) item27.SetName("codart1") item22.Add(item27, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item28 = wx.FlexGridSizer(1, 0, 0, 0) item29 = TextCtrl(parent, ID_CODICE2, "", wx.DefaultPosition, [100, -1], 0) item29.SetName("codart2") item28.Add(item29, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5) item30 = RCheckBox(parent, ID_SOLOPROD, "Solo prodotti codificati", wx.DefaultPosition, wx.DefaultSize, 0) item30.SetValue(True) item30.SetName("soloprod") item28.Add(item30, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item28.AddGrowableCol(1) item22.Add(item28, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item31 = wx.StaticText(parent, ID_LABCOD, "Descrizione:", wx.DefaultPosition, [70, -1], wx.ALIGN_RIGHT) item22.Add(item31, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5) item32 = TextCtrl(parent, ID_DESCRIZ1, "", wx.DefaultPosition, [240, -1], 0) item32.SetName("descriz1") item22.Add( item32, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item33 = TextCtrl(parent, ID_DESCRIZ2, "", wx.DefaultPosition, [240, -1], 0) item33.SetName("descriz2") item22.Add(item33, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5) item34 = wx.StaticText(parent, ID_LABTIP, "Tipologia:", wx.DefaultPosition, wx.DefaultSize, 0) item22.Add(item34, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5) item35 = LinkTable(parent, ID_TIPART1) item35.SetDataLink(bt.TABNAME_TIPART, "tipart1", TipArtDialog) item22.Add( item35, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item36 = LinkTable(parent, ID_TIPART2) item36.SetDataLink(bt.TABNAME_TIPART, "tipart2", TipArtDialog) item22.Add(item36, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5) item37 = wx.StaticText(parent, ID_LABCAT, "Categoria:", wx.DefaultPosition, wx.DefaultSize, 0) item22.Add(item37, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5) item38 = LinkTable(parent, ID_CATART1) item38.SetDataLink(bt.TABNAME_CATART, "catart1", CatArtDialog) item22.Add( item38, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item39 = LinkTable(parent, ID_CATART2) item39.SetDataLink(bt.TABNAME_CATART, "catart2", CatArtDialog) item22.Add(item39, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5) item40 = wx.StaticText(parent, ID_LABGRUART, "Gruppo merce:", wx.DefaultPosition, wx.DefaultSize, 0) item22.Add( item40, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item41 = LinkTable(parent, ID_GRUART1) item41.SetDataLink(bt.TABNAME_GRUART, "gruart1", GruArtDialog) item22.Add(item41, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item42 = LinkTable(parent, ID_GRUART2) item42.SetDataLink(bt.TABNAME_GRUART, "gruart2", GruArtDialog) item22.Add( item42, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5) item43 = wx.StaticText(parent, ID_LABSTATART, "Status:", wx.DefaultPosition, wx.DefaultSize, 0) item22.Add(item43, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item44 = LinkTable(parent, ID_STATART1) item44.SetDataLink(bt.TABNAME_STATART, "statart1", StatArtDialog) item22.Add( item44, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item45 = LinkTable(parent, ID_STATART2) item45.SetDataLink(bt.TABNAME_STATART, "statart2", StatArtDialog) item22.Add(item45, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item22.AddGrowableCol(1) item22.AddGrowableCol(2) item20.Add(item22, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item19.Add(item20, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item19.AddGrowableCol(0) item18.Add(item19, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item46 = wx.FlexGridSizer(0, 1, 0, 0) item48 = wx.StaticBox(parent, -1, "Periodo") item47 = wx.StaticBoxSizer(item48, wx.VERTICAL) item49 = wx.FlexGridSizer(1, 0, 0, 0) item50 = wx.StaticText(parent, ID_TEXT, "Dal:", wx.DefaultPosition, wx.DefaultSize, 0) item49.Add(item50, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item51 = DateCtrl(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [70, -1], 0) item51.SetName("datreg1") item49.Add(item51, 0, wx.ALIGN_CENTER | wx.ALL, 5) item52 = wx.StaticText(parent, ID_TEXT, "al:", wx.DefaultPosition, wx.DefaultSize, 0) item49.Add(item52, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item53 = DateCtrl(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [70, -1], 0) item53.SetName("datreg2") item49.Add(item53, 0, wx.ALIGN_CENTER | wx.ALL, 5) item47.Add(item49, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item46.Add( item47, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item55 = wx.StaticBox(parent, -1, "Limiti sul fatturato") item54 = wx.StaticBoxSizer(item55, wx.VERTICAL) item56 = wx.FlexGridSizer(0, 2, 0, 0) item57 = wx.StaticText(parent, ID_TEXT, "da un minimo di:", wx.DefaultPosition, wx.DefaultSize, 0) item56.Add(item57, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item58 = NumCtrl(parent, ID_FATMIN, integerWidth=10, fractionWidth=bt.VALINT_DECIMALS, allowNegative=False) item58.SetName("fatmin") item56.Add(item58, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item59 = wx.StaticText(parent, ID_TEXT, "ad un massimo di:", wx.DefaultPosition, wx.DefaultSize, 0) item56.Add(item59, 0, wx.ALIGN_CENTER | wx.LEFT | wx.BOTTOM, 5) item60 = NumCtrl(parent, ID_FATMAX, integerWidth=10, fractionWidth=bt.VALINT_DECIMALS, allowNegative=False) item60.SetName("fatmax") item56.Add( item60, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item54.Add(item56, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item46.Add( item54, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item62 = wx.StaticBox(parent, -1, "Azioni") item61 = wx.StaticBoxSizer(item62, wx.VERTICAL) item63 = wx.FlexGridSizer(0, 2, 0, 0) item64 = wx.Button(parent, ID_UPDATE, "Applica", wx.DefaultPosition, wx.DefaultSize, 0) item64.SetDefault() item64.SetName("btnok") item63.Add(item64, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item65 = wx.Button(parent, ID_PRINT, "&Lista", wx.DefaultPosition, wx.DefaultSize, 0) item65.SetName("btnprint") item63.Add( item65, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item61.Add(item63, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 5) item46.Add(item61, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item18.Add(item46, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item18.AddGrowableCol(0) item18.AddGrowableRow(0) item0.Add(item18, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item66 = wx.FlexGridSizer(0, 1, 0, 0) item67 = wx.FlexGridSizer(1, 0, 0, 0) item68 = wx.StaticText(parent, ID_LABGRIDFAT, "Elenco fatturato", wx.DefaultPosition, wx.DefaultSize, 0) item68.SetForegroundColour(wx.BLUE) item67.Add(item68, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5) item67.AddGrowableCol(0) item66.Add(item67, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item69 = wx.Panel(parent, ID_PANGRIDFAT, wx.DefaultPosition, [800, 300], wx.SUNKEN_BORDER) item69.SetName("pangridfat") item66.Add( item69, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item66.AddGrowableCol(0) item66.AddGrowableRow(1) item0.Add(item66, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.AddGrowableCol(0) item0.AddGrowableRow(2) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def PdcFtProdFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item1 = wx.FlexGridSizer(0, 2, 0, 0) item2 = wx.FlexGridSizer(1, 0, 0, 0) item3 = wx.FlexGridSizer(0, 1, 0, 0) item5 = wx.StaticBox(parent, -1, "Anagrafiche") item4 = wx.StaticBoxSizer(item5, wx.VERTICAL) item6 = wx.FlexGridSizer(0, 3, 0, 0) item7 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition, wx.DefaultSize, 0) item6.Add(item7, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item8 = wx.StaticText(parent, ID_TEXT, "Da:", wx.DefaultPosition, wx.DefaultSize, 0) item6.Add(item8, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item9 = wx.StaticText(parent, ID_TEXT, "A:", wx.DefaultPosition, wx.DefaultSize, 0) item6.Add(item9, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item10 = wx.StaticText(parent, ID_TEXT, "Cliente:", wx.DefaultPosition, [50, -1], wx.ALIGN_RIGHT) item6.Add(item10, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item11 = LinkTable(parent, ID_PDC1) item11.SetDataLink(bt.TABNAME_PDC, "pdc1", ClientiDialog) item6.Add( item11, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item12 = LinkTable(parent, ID_PDC2) item12.SetDataLink(bt.TABNAME_PDC, "pdc2", ClientiDialog) item6.Add(item12, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item13 = wx.StaticText(parent, ID_TEXT, "Agente:", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT) item6.Add(item13, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item14 = LinkTable(parent, ID_AGE1) item14.SetDataLink(bt.TABNAME_AGENTI, "age1", AgentiDialog) item6.Add( item14, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item15 = LinkTable(parent, ID_AGE2) item15.SetDataLink(bt.TABNAME_AGENTI, "age2", AgentiDialog) item6.Add(item15, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item16 = wx.StaticText(parent, ID_TEXT, "Zona:", wx.DefaultPosition, wx.DefaultSize, 0) item6.Add(item16, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item17 = LinkTable(parent, ID_ZONA1) item17.SetDataLink(bt.TABNAME_ZONE, "zona1", ZoneDialog) item6.Add( item17, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item18 = LinkTable(parent, ID_ZONA2) item18.SetDataLink(bt.TABNAME_ZONE, "zona2", ZoneDialog) item6.Add(item18, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item6.AddGrowableCol(1) item6.AddGrowableCol(2) item4.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item3.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item19 = wx.FlexGridSizer(0, 2, 0, 0) item21 = wx.StaticBox(parent, -1, "Periodo") item20 = wx.StaticBoxSizer(item21, wx.VERTICAL) item22 = wx.FlexGridSizer(0, 3, 0, 0) item23 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition, wx.DefaultSize, 0) item22.Add(item23, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item24 = wx.StaticText(parent, ID_TEXT, "Da:", wx.DefaultPosition, wx.DefaultSize, 0) item22.Add(item24, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item25 = wx.StaticText(parent, ID_TEXT, "A:", wx.DefaultPosition, wx.DefaultSize, 0) item22.Add(item25, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item26 = wx.StaticText(parent, ID_TEXT, "Data:", wx.DefaultPosition, [50, -1], wx.ALIGN_RIGHT) item22.Add(item26, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item27 = DateCtrl(parent, ID_DATA1, "", wx.DefaultPosition, [80, -1], 0) item27.SetName("data1") item22.Add(item27, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item28 = DateCtrl(parent, ID_DATA2, "", wx.DefaultPosition, [80, -1], 0) item28.SetName("data2") item22.Add(item28, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item22.AddGrowableCol(1) item22.AddGrowableCol(2) item20.Add(item22, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item19.Add( item20, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item29 = wx.RadioBox(parent, ID_ORDER, "Ordina per:", wx.DefaultPosition, wx.DefaultSize, ["Prodotto", "Data di vendita"], 1, wx.RA_SPECIFY_COLS) item29.SetName("order") item19.Add(item29, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item19.AddGrowableCol(1) item3.Add(item19, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item3.AddGrowableCol(0) item3.AddGrowableRow(1) item2.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item31 = wx.StaticBox(parent, -1, "Prodotti") item30 = wx.StaticBoxSizer(item31, wx.VERTICAL) item32 = wx.FlexGridSizer(0, 3, 0, 0) item33 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition, wx.DefaultSize, 0) item32.Add(item33, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item34 = wx.StaticText(parent, ID_TEXT, "Da:", wx.DefaultPosition, wx.DefaultSize, 0) item32.Add(item34, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item35 = wx.StaticText(parent, ID_TEXT, "A:", wx.DefaultPosition, wx.DefaultSize, 0) item32.Add(item35, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item36 = wx.StaticText(parent, ID_TEXT, "Tipo:", wx.DefaultPosition, wx.DefaultSize, 0) item32.Add(item36, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item37 = LinkTable(parent, ID_TIPART1) item37.SetDataLink(bt.TABNAME_TIPART, "tipart1", TipArtDialog) item32.Add( item37, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item38 = LinkTable(parent, ID_TIPART2) item38.SetDataLink(bt.TABNAME_TIPART, "tipart2", TipArtDialog) item32.Add(item38, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item39 = wx.StaticText(parent, ID_TEXT, "Categoria:", wx.DefaultPosition, wx.DefaultSize, 0) item32.Add(item39, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item40 = LinkTable(parent, ID_CATART1) item40.SetDataLink(bt.TABNAME_CATART, "catart1", CatArtDialog) item32.Add( item40, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item41 = LinkTable(parent, ID_CATART2) item41.SetDataLink(bt.TABNAME_CATART, "catart2", CatArtDialog) item32.Add(item41, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item42 = wx.StaticText(parent, ID_TEXT, "Gruppo:", wx.DefaultPosition, wx.DefaultSize, 0) item32.Add(item42, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item43 = LinkTable(parent, ID_GRUART1) item43.SetDataLink(bt.TABNAME_GRUART, "gruart1", GruArtDialog) item32.Add( item43, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item44 = LinkTable(parent, ID_GRUART2) item44.SetDataLink(bt.TABNAME_GRUART, "gruart2", GruArtDialog) item32.Add(item44, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item45 = wx.StaticText(parent, ID_TEXT, "Marca:", wx.DefaultPosition, wx.DefaultSize, 0) item32.Add(item45, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item46 = LinkTable(parent, ID_MARART1) item46.SetDataLink(bt.TABNAME_MARART, "marart1", MarArtDialog) item32.Add( item46, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item47 = LinkTable(parent, ID_MARART2) item47.SetDataLink(bt.TABNAME_MARART, "marart2", MarArtDialog) item32.Add(item47, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item48 = wx.StaticText(parent, ID_TEXT, "Fornitore:", wx.DefaultPosition, wx.DefaultSize, 0) item32.Add(item48, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT, 5) item49 = LinkTable(parent, ID_FORNIT1) item49.SetDataLink(bt.TABNAME_PDC, "fornit1", FornitDialog) item32.Add(item49, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item50 = LinkTable(parent, ID_FORNIT2) item50.SetDataLink(bt.TABNAME_PDC, "fornit2", FornitDialog) item32.Add(item50, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item32.AddGrowableCol(1) item32.AddGrowableCol(2) item30.Add(item32, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item2.Add( item30, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5) item2.AddGrowableCol(0) item2.AddGrowableCol(1) item2.AddGrowableRow(0) item1.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item51 = wx.FlexGridSizer(0, 1, 0, 0) item52 = wx.Button(parent, ID_UPDATE, "Aggiorna", wx.DefaultPosition, wx.DefaultSize, 0) item52.SetDefault() item51.Add( item52, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5) item53 = wx.Button(parent, ID_PRINT, "&Lista", wx.DefaultPosition, wx.DefaultSize, 0) item51.Add(item53, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item1.Add(item51, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.TOP, 5) item1.AddGrowableCol(0) item1.AddGrowableRow(0) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item54 = wx.Panel(parent, ID_PANGRIDSINT, wx.DefaultPosition, [800, 400], wx.SUNKEN_BORDER) item0.Add( item54, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item0.AddGrowableCol(0) item0.AddGrowableRow(1) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def AcqDocSearchFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item1 = wx.FlexGridSizer(0, 2, 0, 0) item2 = wx.StaticText(parent, ID_TEXT, "Acquisizione documenti di tipo:", wx.DefaultPosition, wx.DefaultSize, 0) item1.Add(item2, 0, wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item3 = wx.FlexGridSizer(0, 1, 0, 0) item4 = LinkTable(parent, ID_ACQTIPDOC) item4.SetDataLink(bt.TABNAME_CFGMAGDOC, "acqtipdoc", None) item4.SetObligatory(True) item3.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item3.Add([200, 1], 0, wx.ALIGN_CENTER, 5) item3.AddGrowableCol(0) item1.Add(item3, 0, wx.ALIGN_CENTER, 5) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item5 = wx.BoxSizer(wx.HORIZONTAL) item7 = wx.StaticBox(parent, -1, "Periodo") item6 = wx.StaticBoxSizer(item7, wx.HORIZONTAL) item8 = wx.StaticText(parent, ID_TEXT, "Data documento dal:", wx.DefaultPosition, wx.DefaultSize, 0) item6.Add(item8, 0, wx.ALIGN_CENTER | wx.ALL, 5) item9 = DateCtrl(parent, ID_ACQDATDOC1, "", wx.DefaultPosition, [80, -1], 0) item9.SetName("acqdatdoc1") item6.Add( item9, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item10 = wx.StaticText(parent, ID_TEXT, "al:", wx.DefaultPosition, wx.DefaultSize, 0) item6.Add(item10, 0, wx.ALIGN_CENTER | wx.ALL, 5) item11 = DateCtrl(parent, ID_ACQDATDOC2, "", wx.DefaultPosition, [80, -1], 0) item11.SetName("acqdatdoc2") item6.Add( item11, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item5.Add(item6, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item13 = wx.StaticBox(parent, -1, "Estrai documenti:") item12 = wx.StaticBoxSizer(item13, wx.HORIZONTAL) item14 = wx.CheckBox(parent, ID_ACQAPERTI, "Mai evasi", wx.DefaultPosition, wx.DefaultSize, 0) item14.SetValue(True) item14.SetName("acqaperti") item12.Add(item14, 0, wx.ALIGN_CENTER | wx.ALL, 5) item15 = wx.CheckBox(parent, ID_ACQPARZ, "Parzialmente evasi", wx.DefaultPosition, wx.DefaultSize, 0) item15.SetValue(True) item15.SetName("acqparz") item12.Add(item15, 0, wx.ALIGN_CENTER | wx.ALL, 5) item16 = wx.CheckBox(parent, ID_ACQCHIUSI, "Chiusi", wx.DefaultPosition, wx.DefaultSize, 0) item16.SetValue(True) item16.SetName("acqchiusi") item12.Add(item16, 0, wx.ALIGN_CENTER | wx.ALL, 5) item5.Add(item12, 0, wx.GROW | wx.ALIGN_CENTER_HORIZONTAL | wx.RIGHT | wx.BOTTOM, 5) item17 = wx.Button(parent, ID_ACQBUTSRC, "Cerca", wx.DefaultPosition, wx.DefaultSize, 0) item17.SetName("acqbutsrc") item5.Add( item17, 0, wx.ALIGN_BOTTOM | wx.ALIGN_CENTER_HORIZONTAL | wx.RIGHT | wx.BOTTOM, 5) item0.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item18 = wx.Panel(parent, ID_ACQPANGRID, wx.DefaultPosition, [830, 300], wx.SUNKEN_BORDER) item18.SetName("acqpangrid") item0.Add( item18, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item19 = wx.BoxSizer(wx.HORIZONTAL) item20 = wx.Button(parent, ID_ACQBUTSEL, "Seleziona", wx.DefaultPosition, wx.DefaultSize, 0) item20.SetName("acqbutsel") item19.Add(item20, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item0.Add(item19, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 5) item0.AddGrowableCol(0) item0.AddGrowableRow(3) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def EffettiFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item1 = wx.FlexGridSizer(0, 2, 0, 0) item2 = wx.FlexGridSizer(0, 1, 0, 0) item3 = RadioBox(parent, ID_TIPEFF, "Tipo effetti da emettere:", wx.DefaultPosition, wx.DefaultSize, ["RIBA - Ricevute Bancarie", "RID - Addebito sul conto"], 1, wx.RA_SPECIFY_ROWS) item2.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item5 = wx.StaticBox(parent, -1, "Selezioni") item4 = wx.StaticBoxSizer(item5, wx.VERTICAL) item6 = wx.FlexGridSizer(0, 2, 0, 0) item7 = wx.StaticText(parent, ID_TEXT, "Causale:", wx.DefaultPosition, wx.DefaultSize, 0) item6.Add(item7, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5) item8 = LinkTable(parent, ID_CAUS) item8.SetDataLink(bt.TABNAME_CFGCONTAB, "caus", None) item6.Add(item8, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item9 = wx.StaticText(parent, ID_TEXT, "Mod. pagamento:", wx.DefaultPosition, wx.DefaultSize, 0) item6.Add(item9, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5) item10 = LinkTable(parent, ID_MODPAG) item10.SetDataLink(bt.TABNAME_MODPAG, "modpag", ModPagDialog) item6.Add(item10, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item11 = wx.StaticText(parent, ID_TEXT, "Cliente:", wx.DefaultPosition, wx.DefaultSize, 0) item6.Add(item11, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5) item12 = LinkTablePdc(parent, ID_PDC) item12.SetDataLink(bt.TABNAME_PDC, "pdc", ClientiDialog) item6.Add(item12, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item6.AddGrowableCol(1) item4.Add(item6, 0, wx.GROW, 5) item13 = wx.FlexGridSizer(1, 0, 0, 0) item14 = wx.FlexGridSizer(0, 3, 0, 0) item15 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition, wx.DefaultSize, 0) item14.Add(item15, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.TOP, 5) item16 = wx.StaticText(parent, ID_TEXT, "Da:", wx.DefaultPosition, wx.DefaultSize, 0) item14.Add( item16, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item17 = wx.StaticText(parent, ID_TEXT, "A:", wx.DefaultPosition, wx.DefaultSize, 0) item14.Add(item17, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5) item18 = wx.StaticText(parent, ID_TEXT, "Data scadenza:", wx.DefaultPosition, wx.DefaultSize, 0) item14.Add(item18, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5) item19 = DateCtrl(parent, ID_DATSCA1, "", wx.DefaultPosition, [80, -1], 0) item19.SetName("datsca1") item14.Add( item19, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item20 = DateCtrl(parent, ID_DATSCA2, "", wx.DefaultPosition, [80, -1], 0) item20.SetName("datsca2") item14.Add(item20, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item21 = wx.StaticText(parent, ID_TEXT, "Data documento:", wx.DefaultPosition, wx.DefaultSize, 0) item14.Add(item21, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5) item22 = DateCtrl(parent, ID_DATDOC1, "", wx.DefaultPosition, [80, -1], 0) item22.SetName("datdoc1") item14.Add( item22, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item23 = DateCtrl(parent, ID_DATDOC2, "", wx.DefaultPosition, [80, -1], 0) item23.SetName("datdoc2") item14.Add(item23, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item13.Add(item14, 0, wx.GROW, 5) item24 = wx.FlexGridSizer(0, 3, 0, 0) item25 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition, wx.DefaultSize, 0) item24.Add(item25, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5) item26 = wx.StaticText(parent, ID_TEXT, "Da:", wx.DefaultPosition, wx.DefaultSize, 0) item24.Add( item26, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item27 = wx.StaticText(parent, ID_TEXT, "A:", wx.DefaultPosition, wx.DefaultSize, 0) item24.Add(item27, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.TOP, 5) item28 = wx.StaticText(parent, ID_TEXT, "Num. doc.:", wx.DefaultPosition, wx.DefaultSize, 0) item24.Add(item28, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item29 = NumCtrl(parent, integerWidth=10, allowNegative=False, groupDigits=False) item29.SetName("numdoc1") item29.SetId(ID_NUMDOC1) item24.Add(item29, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item30 = NumCtrl(parent, integerWidth=10, allowNegative=False, groupDigits=False) item30.SetName("numdoc2") item30.SetId(ID_NUMDOC2) item24.Add(item30, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item13.Add(item24, 0, wx.ALIGN_BOTTOM | wx.ALIGN_CENTER_HORIZONTAL, 5) item4.Add(item13, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item31 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [400, -1], wx.LI_HORIZONTAL) item4.Add(item31, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.BOTTOM, 5) item32 = wx.FlexGridSizer(0, 2, 0, 0) item33 = wx.BoxSizer(wx.HORIZONTAL) item34 = wx.StaticText(parent, ID_TEXT, "Includi:", wx.DefaultPosition, wx.DefaultSize, 0) item33.Add(item34, 0, wx.ALIGN_CENTER | wx.TOP | wx.BOTTOM, 5) item35 = wx.FlexGridSizer(0, 2, 0, 0) item36 = wx.CheckBox(parent, ID_INCLEMES, "Effetti Emessi", wx.DefaultPosition, wx.DefaultSize, 0) item35.Add(item36, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item37 = wx.CheckBox(parent, ID_INCLCONT, "Contabilizzati", wx.DefaultPosition, wx.DefaultSize, 0) item35.Add(item37, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item38 = wx.CheckBox(parent, ID_INCLINSOL, "Insoluti", wx.DefaultPosition, wx.DefaultSize, 0) item35.Add( item38, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item39 = wx.CheckBox(parent, ID_INCLCHIUS, "Partite chiuse", wx.DefaultPosition, wx.DefaultSize, 0) item35.Add( item39, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item33.Add(item35, 0, wx.ALIGN_CENTER, 5) item32.Add(item33, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item40 = wx.Button(parent, ID_BUTSRC, "&Cerca", wx.DefaultPosition, wx.DefaultSize, 0) item40.SetDefault() item32.Add( item40, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item32.AddGrowableCol(1) item4.Add(item32, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item2.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item2.AddGrowableCol(0) item2.AddGrowableRow(1) item1.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item42 = wx.StaticBox(parent, -1, "Emissione") item41 = wx.StaticBoxSizer(item42, wx.VERTICAL) item43 = wx.FlexGridSizer(0, 2, 0, 0) item44 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition, wx.DefaultSize, 0) item43.Add(item44, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT, 5) item45 = wx.StaticText(parent, ID_TEXT, "Dati per l'emissione degli effetti", wx.DefaultPosition, wx.DefaultSize, 0) item45.SetForegroundColour(wx.BLUE) item43.Add(item45, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT, 5) item46 = wx.StaticText(parent, ID_TEXT, "Data distinta:", wx.DefaultPosition, wx.DefaultSize, 0) item43.Add(item46, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5) item47 = DateCtrl(parent, ID_DATDIST, "", wx.DefaultPosition, [80, -1], 0) item47.SetName("datdist") item43.Add(item47, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item48 = wx.StaticText(parent, ID_TEXT, "Banca:", wx.DefaultPosition, wx.DefaultSize, 0) item43.Add(item48, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5) item49 = LinkTablePdc(parent, ID_BANCA) item49.SetDataLink(bt.TABNAME_PDC, "banca", BancheDialog) item43.Add(item49, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item50 = wx.StaticText(parent, ID_TEXT, "Conto effetti:", wx.DefaultPosition, wx.DefaultSize, 0) item43.Add(item50, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5) item51 = LinkTableEffetto(parent, ID_CONTOEFF, "contoeff") item43.Add(item51, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item43.Add([1, 1], 0, wx.ALIGN_CENTER, 5) item52 = wx.Button(parent, ID_BUTDIST, "Stampa &distinta", wx.DefaultPosition, wx.DefaultSize, 0) item43.Add(item52, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5) item53 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition, wx.DefaultSize, 0) item43.Add(item53, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.TOP, 5) item54 = wx.StaticText(parent, ID_TEXT, "Generazione file da trasmettere alla banca", wx.DefaultPosition, [260, -1], 0) item54.SetForegroundColour(wx.BLUE) item43.Add(item54, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5) item55 = wx.StaticText(parent, ID_TEXT, "Percorso file:", wx.DefaultPosition, wx.DefaultSize, 0) item43.Add(item55, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item56 = FilePathControl(parent, ID_FILEPATH) item43.Add(item56, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item43.Add([1, 1], 0, wx.ALIGN_CENTER, 5) item57 = wx.Button(parent, ID_BUTFILE, "Genera &file", wx.DefaultPosition, wx.DefaultSize, 0) item43.Add(item57, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item58 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition, wx.DefaultSize, 0) item43.Add(item58, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.TOP, 5) item59 = wx.StaticText(parent, ID_TEXT, "Contabilizzazione", wx.DefaultPosition, wx.DefaultSize, 0) item59.SetForegroundColour(wx.BLUE) item43.Add(item59, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5) item60 = wx.StaticText(parent, ID_TEXT, "Causale:", wx.DefaultPosition, wx.DefaultSize, 0) item43.Add(item60, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item61 = LinkTable(parent, ID_CAUCONT) item61.SetDataLink(bt.TABNAME_CFGCONTAB, "caucont", None) item43.Add(item61, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item43.Add([1, 1], 0, wx.ALIGN_CENTER, 5) item62 = wx.Button(parent, ID_BUTCONT, "Avvia contabilizzazione", wx.DefaultPosition, wx.DefaultSize, 0) item43.Add(item62, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT, 5) item43.AddGrowableCol(1) item41.Add(item43, 0, wx.GROW, 5) item1.Add( item41, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5) item1.AddGrowableCol(0) item1.AddGrowableCol(1) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item63 = wx.FlexGridSizer(1, 0, 0, 0) item64 = wx.FlexGridSizer(0, 1, 0, 0) item65 = wx.FlexGridSizer(0, 2, 0, 0) item66 = wx.StaticText(parent, ID_TEXT, "Effetti estratti", wx.DefaultPosition, wx.DefaultSize, 0) item66.SetForegroundColour(wx.BLUE) item65.Add( item66, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item67 = wx.Button(parent, ID_BUTSAVESEL, "Salva selezioni", wx.DefaultPosition, [-1, 10], wx.NO_BORDER) item65.Add(item67, 0, wx.GROW | wx.ALIGN_CENTER_HORIZONTAL, 5) item65.AddGrowableCol(0) item64.Add(item65, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item68 = wx.Panel(parent, ID_PANGRID, wx.DefaultPosition, [-1, 260], wx.SUNKEN_BORDER) item64.Add(item68, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item64.AddGrowableCol(0) item64.AddGrowableRow(1) item63.Add(item64, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item69 = wx.FlexGridSizer(0, 1, 0, 0) item71 = wx.StaticBox(parent, -1, "Legenda") item70 = wx.StaticBoxSizer(item71, wx.VERTICAL) item72 = wx.FlexGridSizer(0, 4, 0, 0) item73 = wx.Panel(parent, ID_COLORSELEZ, wx.DefaultPosition, [20, 20], wx.RAISED_BORDER) item72.Add(item73, 0, wx.ALIGN_CENTER | wx.RIGHT, 5) item74 = wx.StaticText(parent, ID_TEXT, "Selezionato", wx.DefaultPosition, wx.DefaultSize, 0) item72.Add(item74, 0, wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.BOTTOM, 5) item75 = wx.Panel(parent, ID_COLOREMESSO, wx.DefaultPosition, [20, 20], wx.RAISED_BORDER) item72.Add(item75, 0, wx.ALIGN_CENTER | wx.RIGHT, 5) item76 = wx.StaticText(parent, ID_TEXT, "Già emesso", wx.DefaultPosition, wx.DefaultSize, 0) item72.Add(item76, 0, wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.BOTTOM, 5) item77 = wx.Panel(parent, ID_COLORINSATT, wx.DefaultPosition, [20, 20], wx.RAISED_BORDER) item72.Add(item77, 0, wx.ALIGN_CENTER | wx.RIGHT, 5) item78 = wx.StaticText(parent, ID_TEXT, "Insoluto aperto", wx.DefaultPosition, wx.DefaultSize, 0) item72.Add(item78, 0, wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.BOTTOM, 5) item79 = wx.Panel(parent, ID_COLORINSPAG, wx.DefaultPosition, [20, 20], wx.RAISED_BORDER) item72.Add(item79, 0, wx.ALIGN_CENTER | wx.RIGHT, 5) item80 = wx.StaticText(parent, ID_TEXT, "Insoluto pagato", wx.DefaultPosition, wx.DefaultSize, 0) item72.Add(item80, 0, wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.BOTTOM, 5) item70.Add(item72, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item81 = wx.FlexGridSizer(0, 2, 0, 0) item82 = wx.Panel(parent, ID_COLORERROR, wx.DefaultPosition, [20, 20], wx.RAISED_BORDER) item81.Add(item82, 0, wx.ALIGN_CENTER | wx.RIGHT, 5) item83 = wx.StaticText(parent, ID_TEXT, "Dati errati o mancanti", wx.DefaultPosition, wx.DefaultSize, 0) item81.Add(item83, 0, wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.BOTTOM, 5) item70.Add(item81, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item69.Add( item70, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item85 = wx.StaticBox(parent, -1, "Operazioni") item84 = wx.StaticBoxSizer(item85, wx.VERTICAL) item86 = wx.FlexGridSizer(0, 2, 0, 0) item87 = wx.Button(parent, ID_BUTSELEFF, "Seleziona", wx.DefaultPosition, wx.DefaultSize, 0) item86.Add(item87, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item88 = wx.Button(parent, ID_BUTDESELEFF, "Deseleziona", wx.DefaultPosition, wx.DefaultSize, 0) item86.Add(item88, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT, 5) item89 = wx.Button(parent, ID_BUTSELALL, "Seleziona Tutto", wx.DefaultPosition, wx.DefaultSize, 0) item86.Add(item89, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.TOP, 5) item90 = wx.Button(parent, ID_BUTDESELALL, "Deseleziona Tutto", wx.DefaultPosition, wx.DefaultSize, 0) item86.Add(item90, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5) item86.AddGrowableCol(0) item86.AddGrowableCol(1) item84.Add(item86, 0, wx.ALIGN_BOTTOM | wx.ALIGN_CENTER_HORIZONTAL, 5) item69.Add( item84, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item92 = wx.StaticBox(parent, -1, "Effetti estratti") item91 = wx.StaticBoxSizer(item92, wx.VERTICAL) item93 = wx.FlexGridSizer(0, 3, 0, 0) item94 = wx.StaticText(parent, ID_TEXT, "N.", wx.DefaultPosition, wx.DefaultSize, 0) item93.Add(item94, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item95 = wx.StaticText(parent, ID_TEXT, "Importo", wx.DefaultPosition, wx.DefaultSize, 0) item93.Add(item95, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item96 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition, wx.DefaultSize, 0) item93.Add(item96, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item97 = NumCtrl(parent, ID_NUMEFF, integerWidth=4, allowNegative=False, groupDigits=True) item97.SetName("numeff") item93.Add(item97, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item98 = bt.GetValIntNumCtrl(parent, ID_TOTEFF, 'toteff') item93.Add(item98, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item99 = wx.Button(parent, ID_BUTLISTALL, "Lista", wx.DefaultPosition, [60, -1], 0) item93.Add(item99, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item91.Add(item93, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item69.Add( item91, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item101 = wx.StaticBox(parent, -1, "Effetti selezionati") item100 = wx.StaticBoxSizer(item101, wx.VERTICAL) item102 = wx.FlexGridSizer(0, 3, 0, 0) item103 = wx.StaticText(parent, ID_TEXT, "N.", wx.DefaultPosition, wx.DefaultSize, 0) item102.Add(item103, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item104 = wx.StaticText(parent, ID_TEXT, "Importo", wx.DefaultPosition, wx.DefaultSize, 0) item102.Add(item104, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item105 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition, wx.DefaultSize, 0) item102.Add(item105, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item106 = NumCtrl(parent, ID_NUMSEL, integerWidth=4, allowNegative=False, groupDigits=True) item106.SetName("numsel") item102.Add(item106, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item107 = bt.GetValIntNumCtrl(parent, ID_TOTSEL, 'totsel') item102.Add(item107, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item108 = wx.Button(parent, ID_BUTLISTSEL, "Lista", wx.DefaultPosition, [60, -1], 0) item102.Add(item108, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item100.Add(item102, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item69.Add( item100, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item69.AddGrowableCol(0) item63.Add(item69, 0, wx.ALIGN_BOTTOM, 5) item63.AddGrowableCol(0) item63.AddGrowableRow(0) item0.Add(item63, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.AddGrowableCol(0) item0.AddGrowableRow(1) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def Setup1Func(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item1 = wx.FlexGridSizer(0, 2, 0, 0) item2 = RadioBox( parent, ID_TIPREG, "Tipo registrazione", wx.DefaultPosition, wx.DefaultSize, ["Semplice", "Composta", "Composta con IVA", "Gestione solo IVA"], 1, wx.RA_SPECIFY_COLS) item2.SetName("tipo") item1.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item3 = wx.FlexGridSizer(1, 0, 0, 0) item4 = RadioBox(parent, ID_NUMDOC, "Numero documento", wx.DefaultPosition, wx.DefaultSize, [ "Non gestito", "Gestito, non proposto", "Gestito, proposto num.protocollo" ], 1, wx.RA_SPECIFY_COLS) item4.SetName("numdoc") item3.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5) item5 = RadioBox(parent, ID_NUMIVA, "Protocollo IVA", wx.DefaultPosition, wx.DefaultSize, [ "Non gestito", "Gestito, non proposto", "Gestito, proposto num.protocollo" ], 1, wx.RA_SPECIFY_COLS) item5.SetName("numiva") item3.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5) item3.AddGrowableCol(0) item3.AddGrowableCol(1) item3.AddGrowableRow(0) item1.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item6 = RadioBox(parent, ID_ESERC, "Esercizio", wx.DefaultPosition, wx.DefaultSize, ["In corso", "Precedente"], 1, wx.RA_SPECIFY_COLS) item6.SetName("esercizio") item1.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item7 = wx.FlexGridSizer(0, 2, 0, 0) item8 = RadioBox(parent, ID_DATDOC, "Data documento", wx.DefaultPosition, wx.DefaultSize, [ "Non gestita", "Gestita, non proposta", "Gestita, proposta data registrazione" ], 1, wx.RA_SPECIFY_COLS) item8.SetName("datdoc") item7.Add(item8, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item9 = wx.FlexGridSizer(1, 0, 0, 0) item10 = RadioBox(parent, ID_PRALCF, "Allegati Clienti/Fornitori", wx.DefaultPosition, wx.DefaultSize, ["Non considera", "Incrementa", "Diminuisce"], 1, wx.RA_SPECIFY_COLS) item10.SetName("pralcf") item9.Add(item10, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item12 = wx.StaticBox(parent, -1, "Stampa a fine reg.") item11 = wx.StaticBoxSizer(item12, wx.VERTICAL) item13 = wx.StaticText(parent, ID_TEXT, "Nome report:", wx.DefaultPosition, wx.DefaultSize, 0) item11.Add(item13, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item14 = TextCtrl_LC(parent, ID_RPTNAME, "", wx.DefaultPosition, wx.DefaultSize, 0) item14.SetName("rptname") item11.Add(item14, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item9.Add(item11, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item9.AddGrowableCol(1) item7.Add(item9, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item7.AddGrowableCol(1) item1.Add(item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item1.AddGrowableCol(0) item1.AddGrowableCol(1) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item15 = wx.FlexGridSizer(0, 2, 0, 0) item16 = RadioBox(parent, ID_RADIOBOX, "Registro IVA", wx.DefaultPosition, wx.DefaultSize, ["Fisso da causale", "Variabile da magazzino"], 1, wx.RA_SPECIFY_COLS) item16.SetName("regivadyn") item15.Add( item16, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item18 = wx.StaticBox(parent, -1, "") item17 = wx.StaticBoxSizer(item18, wx.VERTICAL) item19 = wx.FlexGridSizer(0, 2, 0, 0) item20 = wx.StaticText(parent, ID_TEXT, "Registro IVA fisso:", wx.DefaultPosition, wx.DefaultSize, 0) item20.SetName("id_regiva_label") item19.Add( item20, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item21 = wx.FlexGridSizer(1, 0, 0, 0) item22 = LinkTable(parent, ID_FOREIGN) item22.SetDataLink(bt.TABNAME_REGIVA, "id_regiva", RegIvaDialog) item21.Add(item22, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item23 = wx.Button(parent, ID_BTNMAGREG, "Registri per magazzino", wx.DefaultPosition, wx.DefaultSize, 0) item23.SetName("_regiva_detmag") item21.Add( item23, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5) item21.AddGrowableCol(0) item19.Add(item21, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item24 = wx.StaticText(parent, ID_TEXT, "Sottoconto Partita fisso:", wx.DefaultPosition, wx.DefaultSize, 0) item24.SetName("id_regiva_label") item19.Add(item24, 0, wx.ALIGN_CENTER | wx.LEFT, 5) item25 = PdcRow1LinkTable(parent, ID_PDCROW1) item19.Add(item25, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item19.AddGrowableCol(1) item17.Add(item19, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item15.Add(item17, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item15.AddGrowableCol(1) item0.Add(item15, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item26 = wx.FlexGridSizer(1, 0, 0, 0) item27 = CheckBox( parent, ID_QUAIVANOB, "Permetti squadratura tra totale sezione IVA e Dare/Avere", wx.DefaultPosition, wx.DefaultSize, 0) item27.SetName("quaivanob") item26.Add(item27, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item28 = UnoZeroCheckBox(parent, ID_DAVSCORP, "Attiva colonna scorporo su griglia Dare/Avere", wx.DefaultPosition, wx.DefaultSize, 0) item28.SetName("davscorp") item26.Add( item28, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item0.Add(item26, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item29 = wx.FlexGridSizer(0, 2, 0, 0) item31 = wx.StaticBox(parent, -1, "Partita") item30 = wx.StaticBoxSizer(item31, wx.VERTICAL) item32 = wx.StaticText(parent, ID_TEXT, "Descrizione:", wx.DefaultPosition, wx.DefaultSize, 0) item30.Add(item32, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item33 = wx.TextCtrl(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [200, -1], 0) item33.SetName("pades") item30.Add(item33, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item34 = wx.FlexGridSizer(0, 2, 0, 0) item35 = wx.StaticText(parent, ID_TEXT, "Tipo sottoconto:", wx.DefaultPosition, wx.DefaultSize, 0) item34.Add(item35, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item36 = wx.StaticText(parent, ID_TEXT, "Segno:", wx.DefaultPosition, wx.DefaultSize, 0) item34.Add(item36, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item37 = LinkTable(parent, ID_FOREIGN) item37.SetDataLink(bt.TABNAME_PDCTIP, "id_pdctippa", PdcTipDialog) item34.Add(item37, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5) item38 = TextCtrl(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [24, -1], 0) item38.SetName("pasegno") item34.Add(item38, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item34.AddGrowableCol(0) item30.Add(item34, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item39 = CheckBox(parent, ID_CAMSEGR1, "Permetti cambio segno su riga partita", wx.DefaultPosition, wx.DefaultSize, 0) item39.SetName("camsegr1") item30.Add(item39, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item29.Add( item30, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item41 = wx.StaticBox(parent, -1, "Contropartita") item40 = wx.StaticBoxSizer(item41, wx.VERTICAL) item42 = wx.StaticText(parent, ID_TEXT, "Descrizione:", wx.DefaultPosition, wx.DefaultSize, 0) item40.Add(item42, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item43 = wx.TextCtrl(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [200, -1], 0) item43.SetName("cpdes") item40.Add(item43, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item44 = wx.FlexGridSizer(0, 1, 0, 0) item45 = wx.StaticText(parent, ID_TEXT, "Tipo sottoconto:", wx.DefaultPosition, wx.DefaultSize, 0) item44.Add(item45, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item46 = LinkTable(parent, ID_FOREIGN) item46.SetDataLink(bt.TABNAME_PDCTIP, "id_pdctipcp", PdcTipDialog) item44.Add(item46, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5) item44.AddGrowableCol(0) item40.Add(item44, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item29.Add(item40, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item29.AddGrowableCol(0) item29.AddGrowableCol(1) item0.Add(item29, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.AddGrowableCol(0) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def ProvvigAgentiFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item2 = wx.StaticBox(parent, -1, "Selezioni") item1 = wx.StaticBoxSizer(item2, wx.VERTICAL) item3 = wx.FlexGridSizer(0, 3, 0, 0) item4 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition, wx.DefaultSize, 0) item3.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item5 = wx.StaticText(parent, ID_TEXT, "Da:", wx.DefaultPosition, wx.DefaultSize, 0) item3.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item6 = wx.StaticText(parent, ID_TEXT, "A:", wx.DefaultPosition, wx.DefaultSize, 0) item3.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item7 = wx.StaticText(parent, ID_LABCOD, "Agente:", wx.DefaultPosition, [70, -1], wx.ALIGN_RIGHT) item3.Add(item7, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5) item8 = LinkTable(parent, ID_AGENTE1) item8.SetDataLink(bt.TABNAME_AGENTI, "agente1", AgentiDialog) item3.Add(item8, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item9 = LinkTable(parent, ID_AGENTE2) item9.SetDataLink(bt.TABNAME_AGENTI, "agente2", AgentiDialog) item3.Add(item9, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5) item10 = wx.StaticText(parent, ID_LABCOD, "Data:", wx.DefaultPosition, [70, -1], wx.ALIGN_RIGHT) item3.Add(item10, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5) item11 = DateCtrl(parent, ID_DATDOC1, "", wx.DefaultPosition, [80, -1], 0) item11.SetName("datdoc1") item3.Add(item11, 0, wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item12 = DateCtrl(parent, ID_DATDOC2, "", wx.DefaultPosition, [80, -1], 0) item12.SetName("datdoc2") item3.Add(item12, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5) item3.AddGrowableCol(1) item3.AddGrowableCol(2) item1.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item13 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL) item1.Add(item13, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item14 = wx.FlexGridSizer(1, 0, 0, 0) item15 = wx.FlexGridSizer(0, 2, 0, 0) item16 = wx.CheckBox(parent, ID_DETTRIGHE, "Estrai dettaglio righe", wx.DefaultPosition, wx.DefaultSize, 0) item16.SetValue(True) item16.SetName("dettrighe") item15.Add(item16, 0, wx.ALIGN_CENTER | wx.ALL, 5) item17 = wx.CheckBox(parent, ID_SOLOSALDATI, "Estrai solo documenti saldati", wx.DefaultPosition, wx.DefaultSize, 0) item17.SetName("solosaldati") item15.Add(item17, 0, wx.ALIGN_CENTER | wx.ALL, 5) item14.Add(item15, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item18 = wx.Button(parent, ID_BUTUPDATE, "Aggiorna", wx.DefaultPosition, wx.DefaultSize, 0) item18.SetDefault() item18.SetName("butupdate") item14.Add( item18, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item14.AddGrowableCol(1) item1.Add(item14, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item19 = wx.StaticText(parent, ID_TEXT, "Elenco documenti", wx.DefaultPosition, wx.DefaultSize, 0) item19.SetForegroundColour(wx.BLUE) item0.Add(item19, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item20 = wx.Panel(parent, ID_PANGRIDMOV, wx.DefaultPosition, [800, 400], wx.SUNKEN_BORDER) item20.SetName("pangridmov") item0.Add( item20, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item21 = wx.FlexGridSizer(1, 0, 0, 0) item22 = wx.CheckBox(parent, ID_AGEPAG, "Stampa un agente per ogni pagina", wx.DefaultPosition, wx.DefaultSize, 0) item22.SetName("agepag") item21.Add(item22, 0, wx.ALIGN_CENTER | wx.ALL, 5) item23 = wx.Button(parent, ID_BUTPRINT, "Stampa", wx.DefaultPosition, wx.DefaultSize, 0) item23.SetName("butprint") item21.Add(item23, 0, wx.ALIGN_CENTER | wx.RIGHT | wx.TOP | wx.BOTTOM, 5) item0.Add(item21, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 5) item0.AddGrowableCol(0) item0.AddGrowableRow(2) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def PcfPanelFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item1 = wx.FlexGridSizer(0, 4, 0, 0) item2 = wx.StaticText(parent, ID_TEXT, "Sottoconto:", wx.DefaultPosition, wx.DefaultSize, 0) item1.Add( item2, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item3 = LinkTableCliFor(parent, ID_PDC) item3.SetDataLink(bt.TABNAME_PDC, "id_pdc", None) item3.SetObligatory(True) item1.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item4 = wx.StaticText(parent, ID_TEXT, "ID Partita:", wx.DefaultPosition, wx.DefaultSize, 0) item1.Add(item4, 0, wx.ALIGN_CENTER | wx.ALL, 5) item5 = NumCtrl(parent, integerWidth=12, fractionWidth=0, allowNegative=False, groupDigits=False) item5.SetName("id_pcf") item5.SetEditable(False) item1.Add(item5, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item1.AddGrowableCol(1) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item6 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1], wx.LI_HORIZONTAL) item0.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item7 = wx.FlexGridSizer(0, 2, 0, 0) item8 = wx.StaticText(parent, ID_TEXT, "Causale:", wx.DefaultPosition, wx.DefaultSize, 0) item7.Add(item8, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item9 = wx.StaticText(parent, ID_TEXT, "Documento", wx.DefaultPosition, wx.DefaultSize, 0) item7.Add(item9, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item10 = LinkTable(parent, ID_CAUSALE) item10.SetDataLink(bt.TABNAME_CFGCONTAB, "id_caus", None) item10.SetObligatory(True) item7.Add( item10, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item11 = wx.FlexGridSizer(0, 4, 0, 0) item12 = wx.StaticText(parent, ID_TEXT, "Data:", wx.DefaultPosition, [30, -1], wx.ALIGN_RIGHT) item11.Add(item12, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item13 = DateCtrl(parent, ID_DATDOC, "", wx.DefaultPosition, [80, -1], 0) item13.SetName("datdoc") item11.Add(item13, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item14 = wx.StaticText(parent, ID_TEXT, "Num.", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT) item11.Add( item14, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item15 = TextCtrl(parent, ID_NUMDOC, "", wx.DefaultPosition, [80, -1], 0) item15.SetName("numdoc") item11.Add( item15, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item7.Add(item11, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item16 = wx.StaticText(parent, ID_TEXT, "Mod. Pagamento:", wx.DefaultPosition, wx.DefaultSize, 0) item7.Add(item16, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item17 = wx.StaticText(parent, ID_TEXT, "Scadenza:", wx.DefaultPosition, wx.DefaultSize, 0) item7.Add(item17, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item18 = LinkTable(parent, ID_MODPAG) item18.SetDataLink(bt.TABNAME_MODPAG, "id_modpag", ModPagDialog) item18.SetObligatory(True) item7.Add( item18, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item19 = wx.FlexGridSizer(1, 0, 0, 0) item20 = wx.StaticText(parent, ID_TEXT, "Data:", wx.DefaultPosition, [30, -1], wx.ALIGN_RIGHT) item19.Add(item20, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item21 = DateCtrl(parent, ID_DATSCAD, "", wx.DefaultPosition, [80, -1], 0) item21.SetName("datscad") item19.Add(item21, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item22 = CheckBox(parent, ID_CHKRIBA, "Ri.Ba.", wx.DefaultPosition, wx.DefaultSize, 0) item22.SetToolTip( wx.ToolTip("Barrare se la scadenza è una Ricevuta Bancaria")) item22.SetName("riba") item19.Add(item22, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item23 = CheckBox(parent, ID_CONTRASS, "Contrassegno", wx.DefaultPosition, wx.DefaultSize, 0) item23.SetToolTip(wx.ToolTip("Barrare se la scadenza è un Contrassegno")) item23.SetName("contrass") item19.Add(item23, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item24 = CheckBox(parent, ID_CHKINSOL, "Insoluto", wx.DefaultPosition, wx.DefaultSize, 0) item24.SetToolTip( wx.ToolTip("Barrare se la scadenza è una Ricevuta Bancaria")) item24.SetName("insoluto") item19.Add(item24, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item19.AddGrowableCol(2) item19.AddGrowableCol(3) item7.Add(item19, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item7.AddGrowableCol(0) item7.AddGrowableCol(1) item0.Add(item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item25 = wx.FlexGridSizer(0, 2, 0, 0) item26 = wx.StaticText(parent, ID_TEXT, "Note:", wx.DefaultPosition, wx.DefaultSize, 0) item25.Add(item26, 0, wx.ALIGN_CENTER | wx.ALL, 5) item27 = TextCtrl(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [627, -1], 0) item27.SetName("note") item25.Add(item27, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item25.AddGrowableCol(1) item0.Add(item25, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item28 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1], wx.LI_HORIZONTAL) item0.Add(item28, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item29 = wx.FlexGridSizer(1, 0, 0, 0) item30 = wx.FlexGridSizer(0, 1, 0, 0) item31 = wx.StaticText(parent, ID_TEXT, "Valori", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT) item31.SetForegroundColour(wx.BLUE) item30.Add( item31, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item32 = wx.FlexGridSizer(0, 2, 0, 0) item33 = wx.StaticText(parent, ID_TEXT, "Importo:", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT) item32.Add( item33, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item34 = NumCtrl(parent, integerWidth=12, fractionWidth=bt.VALINT_DECIMALS, allowNegative=True, groupDigits=True) item34.SetName("imptot") item32.Add(item34, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item35 = wx.StaticText(parent, ID_TEXT, "Pareggiamento:", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT) item32.Add(item35, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item36 = NumCtrl(parent, integerWidth=12, fractionWidth=bt.VALINT_DECIMALS, allowNegative=True, groupDigits=True) item36.SetName("imppar") item32.Add( item36, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item32.Add([1, 1], 0, wx.ALIGN_CENTER, 5) item37 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1], wx.LI_HORIZONTAL) item32.Add(item37, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5) item38 = wx.StaticText(parent, ID_TEXT, "Saldo:", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT) item32.Add(item38, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item39 = NumCtrl(parent, integerWidth=12, fractionWidth=bt.VALINT_DECIMALS, allowNegative=True, groupDigits=True) item39.SetName("saldo") item39.SetEditable(False) item32.Add( item39, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item30.Add(item32, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 5) item29.Add(item30, 0, wx.ALIGN_RIGHT, 5) item40 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [-1, 20], wx.LI_VERTICAL) item29.Add(item40, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.BOTTOM, 5) item41 = wx.FlexGridSizer(0, 1, 0, 0) item42 = wx.StaticText(parent, ID_TEXT, "Dati Effetto", wx.DefaultPosition, wx.DefaultSize, 0) item42.SetForegroundColour(wx.BLUE) item41.Add( item42, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item43 = wx.FlexGridSizer(0, 1, 0, 0) item44 = wx.FlexGridSizer(1, 0, 0, 0) item45 = wx.StaticText(parent, ID_TEXT, "Importo:", wx.DefaultPosition, [100, -1], wx.ALIGN_RIGHT) item44.Add(item45, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item46 = NumCtrl(parent, integerWidth=12, fractionWidth=bt.VALINT_DECIMALS, allowNegative=True, groupDigits=True) item46.SetName("impeff") item44.Add(item46, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item47 = CheckBox(parent, ID_EFFEMESS, "Emesso", wx.DefaultPosition, wx.DefaultSize, 0) item47.SetName("f_effemes") item44.Add(item47, 0, wx.ALIGN_CENTER | wx.ALL, 5) item48 = CheckBox(parent, ID_EFFCONT, "Contabilizzato", wx.DefaultPosition, wx.DefaultSize, 0) item48.SetName("f_effcont") item44.Add(item48, 0, wx.ALIGN_CENTER | wx.ALL, 5) item43.Add(item44, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item49 = wx.FlexGridSizer(0, 2, 0, 0) item50 = wx.StaticText(parent, ID_TEXT, "Data di emissione:", wx.DefaultPosition, [100, -1], wx.ALIGN_RIGHT) item49.Add(item50, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item51 = DateCtrl(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [80, -1], 0) item51.SetName("effdate") item49.Add(item51, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item43.Add(item49, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item41.Add(item43, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item52 = wx.FlexGridSizer(0, 2, 0, 0) item53 = wx.StaticText(parent, ID_TEXT, "Banca emittente:", wx.DefaultPosition, [100, -1], wx.ALIGN_RIGHT) item52.Add(item53, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item54 = LinkTableBanca(parent, ID_BANEMI) item54.SetDataLink(bt.TABNAME_PDC, "id_effban", None) item54.SetObligatory(True) item52.Add( item54, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item55 = wx.StaticText(parent, ID_TEXT, "Conto effetti:", wx.DefaultPosition, [100, -1], wx.ALIGN_RIGHT) item52.Add(item55, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item56 = LinkTableEffetto(parent, ID_EFFPDC, "id_effpdc") item52.Add( item56, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item57 = wx.StaticText(parent, ID_TEXT, "Banca d'appoggio:", wx.DefaultPosition, [100, -1], wx.ALIGN_RIGHT) item52.Add(item57, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item58 = LinkTable(parent, ID_BANAPP) item58.SetDataLink(bt.TABNAME_BANCF, "id_effbap", None) item52.Add( item58, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item52.AddGrowableCol(1) item41.Add(item52, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item41.AddGrowableCol(0) item29.Add(item41, 0, wx.GROW, 5) item29.AddGrowableCol(2) item0.Add(item29, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item59 = wx.StaticText(parent, ID_TEXT, "Storia della partita", wx.DefaultPosition, wx.DefaultSize, 0) item59.SetForegroundColour(wx.BLUE) item0.Add(item59, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item60 = wx.Panel(parent, ID_PANELHIST, wx.DefaultPosition, [-1, 160], wx.SUNKEN_BORDER) item0.Add( item60, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item61 = wx.FlexGridSizer(1, 0, 0, 0) item62 = wx.Button(parent, ID_BTNDEL, "Elimina", wx.DefaultPosition, wx.DefaultSize, 0) item62.SetDefault() item62.SetName("btndel") item61.Add(item62, 0, wx.ALIGN_CENTER | wx.ALL, 5) item63 = wx.BoxSizer(wx.HORIZONTAL) item64 = wx.Button(parent, ID_BTNOK, "Conferma", wx.DefaultPosition, wx.DefaultSize, 0) item64.SetDefault() item64.SetName("btnok") item63.Add(item64, 0, wx.ALIGN_CENTER | wx.ALL, 5) item61.Add(item63, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 5) item61.AddGrowableCol(1) item0.Add(item61, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.AddGrowableCol(0) item0.AddGrowableRow(7) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def GrigliaFunc( parent, call_fit = True, set_sizer = True ): item0 = wx.FlexGridSizer( 0, 1, 0, 0 ) item1 = wx.FlexGridSizer( 1, 0, 0, 0 ) item2 = wx.FlexGridSizer( 1, 0, 0, 0 ) item3 = wx.FlexGridSizer( 0, 1, 0, 0 ) item4 = wx.FlexGridSizer( 0, 1, 0, 0 ) item5 = wx.StaticText( parent, ID_TEXT, "Anagrafica di riferimento", wx.DefaultPosition, wx.DefaultSize, 0 ) item5.SetForegroundColour( wx.BLUE ) item4.Add( item5, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT, 5 ) item6 = wx.FlexGridSizer( 0, 2, 0, 0 ) item7 = wx.StaticText( parent, ID_TEXT, "cli/for:", wx.DefaultPosition, [90,-1], wx.ALIGN_RIGHT ) item7.SetName( "clifor_label" ) item6.Add( item7, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.TOP|wx.BOTTOM, 5 ) item8 = LinkTableClienteFornitore(parent, ID_PDC, 'id_pdc') item6.Add( item8, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) item6.AddGrowableCol( 1 ) item4.Add( item6, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item4.AddGrowableCol( 0 ) item3.Add( item4, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item9 = wx.StaticText( parent, ID_TEXT, "Selezione prodotti", wx.DefaultPosition, wx.DefaultSize, 0 ) item9.SetForegroundColour( wx.BLUE ) item3.Add( item9, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT, 5 ) item10 = wx.FlexGridSizer( 0, 2, 0, 0 ) item11 = wx.StaticText( parent, ID_TEXT, "Codice:", wx.DefaultPosition, [90,-1], wx.ALIGN_RIGHT ) item10.Add( item11, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.LEFT, 5 ) item12 = TextCtrl( parent, ID_TEXTCTRL, "", wx.DefaultPosition, [120,-1], 0 ) item12.SetName( "codice" ) item10.Add( item12, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) item13 = wx.StaticText( parent, ID_TEXT, "Descrizione:", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT ) item10.Add( item13, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.LEFT, 5 ) item14 = TextCtrl( parent, ID_TEXTCTRL, "", wx.DefaultPosition, [80,-1], 0 ) item14.SetName( "descriz" ) item10.Add( item14, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item15 = wx.StaticText( parent, ID_TEXT, "Status:", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT ) item10.Add( item15, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.LEFT, 5 ) item16 = wx.FlexGridSizer( 1, 0, 0, 0 ) item17 = LinkTable(parent, ID_FILT_STATUS ); item17.SetDataLink( bt.TABNAME_STATART, 'id_status', StatArtDialog ) item16.Add( item17, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item18 = wx.CheckBox( parent, ID_SSV, "SSV", wx.DefaultPosition, wx.DefaultSize, 0 ) item18.SetValue( True ) item18.SetToolTip( wx.ToolTip("Barrare per escludere i prodotti con status nascosto") ) item18.SetName( "ssv" ) item16.Add( item18, 0, wx.ALIGN_CENTER|wx.LEFT|wx.TOP|wx.BOTTOM, 5 ) item16.AddGrowableCol( 0 ) item10.Add( item16, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item19 = wx.StaticText( parent, ID_TEXT, "Categoria:", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT ) item10.Add( item19, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.LEFT, 5 ) item20 = LinkTable(parent, ID_FILT_CATART ); item20.SetDataLink( bt.TABNAME_CATART, 'id_catart', CatArtDialog ) item10.Add( item20, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item21 = wx.StaticText( parent, ID_TEXT, "Gruppo:", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT ) item10.Add( item21, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.LEFT, 5 ) item22 = LinkTable(parent, ID_FILT_GRUART ); item22.SetDataLink( bt.TABNAME_GRUART, 'id_gruart', GruArtDialog ) item10.Add( item22, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item23 = wx.StaticText( parent, ID_TEXT, "Tipo:", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT ) item10.Add( item23, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.LEFT, 5 ) item24 = LinkTable(parent, ID_FILT_TIPART ); item24.SetDataLink( bt.TABNAME_TIPART, 'id_tipart', TipArtDialog ) item10.Add( item24, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item10.AddGrowableCol( 1 ) item3.Add( item10, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item3.AddGrowableCol( 0 ) item2.Add( item3, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item25 = wx.StaticLine( parent, ID_LINE, wx.DefaultPosition, [-1,20], wx.LI_VERTICAL ) item2.Add( item25, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item26 = wx.FlexGridSizer( 0, 1, 0, 0 ) item27 = wx.StaticText( parent, ID_TEXT, "Anagrafiche con griglia", wx.DefaultPosition, wx.DefaultSize, 0 ) item27.SetForegroundColour( wx.BLUE ) item26.Add( item27, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT, 5 ) item28 = wx.Panel( parent, ID_PANGRIDSIA, wx.DefaultPosition, [260,160], wx.SUNKEN_BORDER ) item26.Add( item28, 0, wx.GROW|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item26.AddGrowableCol( 0 ) item26.AddGrowableRow( 1 ) item26.AddGrowableRow( 2 ) item2.Add( item26, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item29 = GrigliaDataPanel( parent, ID_PANDATA, wx.DefaultPosition, [200,160], 0 ) item29.SetName( "pandata" ) item2.Add( item29, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item2.AddGrowableCol( 0 ) item2.AddGrowableCol( 2 ) item2.AddGrowableRow( 0 ) item1.Add( item2, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item1.AddGrowableCol( 0 ) item1.AddGrowableRow( 0 ) item0.Add( item1, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item30 = wx.FlexGridSizer( 0, 1, 0, 0 ) item31 = wx.FlexGridSizer( 1, 0, 0, 0 ) item32 = wx.StaticText( parent, ID_TEXT, "Elenco prezzi", wx.DefaultPosition, wx.DefaultSize, 0 ) item32.SetForegroundColour( wx.BLUE ) item31.Add( item32, 0, wx.GROW|wx.ALIGN_BOTTOM|wx.LEFT, 5 ) item33 = wx.CheckBox( parent, ID_CHECKBOX, "Mostra solo prodotti presenti nella griglia", wx.DefaultPosition, wx.DefaultSize, 0 ) item33.SetValue( True ) item33.SetName( "sologriglie" ) item31.Add( item33, 0, wx.ALIGN_CENTER|wx.RIGHT, 5 ) item31.AddGrowableCol( 0 ) item30.Add( item31, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item34 = wx.Panel( parent, ID_PANGRIDGRI, wx.DefaultPosition, [1000,400], wx.SUNKEN_BORDER ) item30.Add( item34, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT, 5 ) item30.AddGrowableCol( 0 ) item30.AddGrowableRow( 1 ) item0.Add( item30, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item35 = wx.BoxSizer( wx.HORIZONTAL ) item36 = wx.Button( parent, ID_SAVEGRIGLIA, "Memorizza griglia", wx.DefaultPosition, wx.DefaultSize, 0 ) item35.Add( item36, 0, wx.ALIGN_CENTER|wx.ALL, 5 ) item0.Add( item35, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL, 5 ) item0.AddGrowableCol( 0 ) item0.AddGrowableRow( 1 ) if set_sizer == True: parent.SetSizer( item0 ) if call_fit == True: item0.SetSizeHints( parent ) return item0
def __init__(self, parent, id): LinkTable.__init__(self, parent, id) from anag.pdc import PdcDialog self.SetDataLink(bt.TABNAME_PDC, "id_pdcrow1", PdcDialog)
def __init__(self, parent, id): LinkTable.__init__(self, parent, id) from anag.pdc import PdcDialog self.SetDataLink(bt.TABNAME_PDC, "id_pdcrow1", PdcDialog)
def GruArtSpecSearchFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item1 = wx.StaticText(parent, ID_LBL_SEARCHRESULTS, "Mostra solo i gruppi relativi a:", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTRE) item1.SetBackgroundColour(wx.LIGHT_GREY) item1.SetName("searchresultstitle") item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item3 = wx.StaticBox(parent, -1, "Selezioni") item2 = wx.StaticBoxSizer(item3, wx.VERTICAL) item4 = wx.FlexGridSizer(1, 0, 0, 0) item5 = wx.FlexGridSizer(0, 1, 0, 0) item6 = wx.StaticText(parent, ID_TEXT, "Da categoria:", wx.DefaultPosition, wx.DefaultSize, 0) item5.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5) item7 = LinkTable(parent, ID_FILT_CATART) item7.SetDataLink(bt.TABNAME_CATART, None, CatArtDialog) item7.SetName('catart1') item5.Add(item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item5.AddGrowableCol(0) item4.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item8 = wx.FlexGridSizer(0, 1, 0, 0) item9 = wx.StaticText(parent, ID_TEXT, "A categoria:", wx.DefaultPosition, wx.DefaultSize, 0) item8.Add(item9, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5) item10 = LinkTable(parent, ID_FILT_CATART) item10.SetDataLink(bt.TABNAME_CATART, None, CatArtDialog) item10.SetName('catart2') item8.Add(item10, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item8.AddGrowableCol(0) item4.Add(item8, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item4.AddGrowableCol(0) item4.AddGrowableCol(1) item2.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item0.AddGrowableCol(0) item0.AddGrowableRow(5) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def BilancioFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item1 = wx.FlexGridSizer(1, 0, 0, 0) item2 = wx.FlexGridSizer(0, 1, 0, 0) item4 = wx.StaticBox(parent, -1, "Selezioni") item3 = wx.StaticBoxSizer(item4, wx.VERTICAL) item5 = wx.FlexGridSizer(1, 0, 0, 0) item6 = wx.StaticText(parent, ID_TITLE, "", wx.DefaultPosition, wx.DefaultSize, 0) item6.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD)) item6.SetName("title") item5.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5) item7 = wx.StaticText(parent, ID_ESERCLABEL, "Esercizio:", wx.DefaultPosition, wx.DefaultSize, 0) item7.SetName("eserclabel") item5.Add(item7, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item8 = SelEsercizioExChoice(parent, ID_ESERC, wx.DefaultPosition, [100, -1], [], 0) item8.SetName("eserc") item5.Add(item8, 0, wx.ALIGN_CENTER | wx.ALL, 5) item9 = CheckBox(parent, ID_SALEP, "Ripresa saldi esercizi precedenti", wx.DefaultPosition, wx.DefaultSize, 0) item9.SetValue(True) item9.SetName("salep") item5.Add(item9, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item5.AddGrowableCol(0) item3.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item10 = wx.FlexGridSizer(0, 1, 0, 0) item11 = wx.FlexGridSizer(0, 3, 0, 0) item11.Add([10, 10], 0, wx.ALIGN_CENTER, 5) item12 = wx.StaticText(parent, ID_TEXT, "Da", wx.DefaultPosition, wx.DefaultSize, 0) item11.Add(item12, 0, wx.ALIGN_BOTTOM | wx.LEFT | wx.RIGHT | wx.TOP, 5) item13 = wx.FlexGridSizer(0, 2, 0, 0) item14 = wx.StaticText(parent, ID_TEXT, "A", wx.DefaultPosition, wx.DefaultSize, 0) item13.Add(item14, 0, wx.ALIGN_BOTTOM | wx.LEFT | wx.RIGHT | wx.TOP, 5) item15 = RCheckBox(parent, ID_PERIODO, "Periodo", wx.DefaultPosition, wx.DefaultSize, 0) item15.SetName("periodo") item13.Add(item15, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item13.AddGrowableCol(0) item11.Add(item13, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item11.Add([20, 1], 0, wx.ALIGN_CENTER, 5) item16 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1], wx.LI_HORIZONTAL) item11.Add( item16, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item17 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1], wx.LI_HORIZONTAL) item11.Add( item17, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item18 = wx.StaticText(parent, ID_LABDATREG, "Registrazioni:", wx.DefaultPosition, wx.DefaultSize, 0) item11.Add(item18, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item19 = DateCtrl(parent, ID_DATREG1, "", wx.DefaultPosition, [80, -1], 0) item19.SetName("datreg1") item11.Add(item19, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item20 = DateCtrl(parent, ID_DATREG2, "", wx.DefaultPosition, [80, -1], 0) item20.SetName("datreg2") item11.Add(item20, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item21 = wx.StaticText(parent, ID_LABMAS, "Mastro:", wx.DefaultPosition, wx.DefaultSize, 0) item11.Add( item21, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item22 = LinkTable(parent, ID_MAS1) item22.SetDataLink(bilmas_table, "mas1", bilmas_dialog) item11.Add( item22, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item23 = LinkTable(parent, ID_MAS2) item23.SetDataLink(bilmas_table, "mas2", bilmas_table) item11.Add( item23, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item24 = wx.StaticText(parent, ID_LABCON, "Conto:", wx.DefaultPosition, wx.DefaultSize, 0) item11.Add( item24, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item25 = LinkTable(parent, ID_CON1) item25.SetDataLink(bilcon_table, "con1", bilcon_dialog) item11.Add( item25, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item26 = LinkTable(parent, ID_CON2) item26.SetDataLink(bilcon_table, "con2", bilcon_dialog) item11.Add( item26, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item27 = wx.StaticText(parent, ID_LABTIP, "Tipo:", wx.DefaultPosition, wx.DefaultSize, 0) item11.Add( item27, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item28 = LinkTable(parent, ID_TIP1) item28.SetDataLink(bt.TABNAME_PDCTIP, "tip1", PdcTipDialog) item11.Add( item28, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item29 = LinkTable(parent, ID_TIP2) item29.SetDataLink(bt.TABNAME_PDCTIP, "tip2", PdcTipDialog) item11.Add( item29, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item30 = wx.StaticText(parent, ID_LABTIP, "Sottoconto:", wx.DefaultPosition, wx.DefaultSize, 0) item11.Add( item30, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item31 = LinkTable(parent, ID_PDC1) item31.SetDataLink(bt.TABNAME_PDC, "pdc1", PdcDialog) item11.Add( item31, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item32 = LinkTable(parent, ID_PDC2) item32.SetDataLink(bt.TABNAME_PDC, "pdc2", PdcDialog) item11.Add( item32, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item11.AddGrowableCol(1) item11.AddGrowableCol(2) item10.Add(item11, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item10.AddGrowableCol(0) item3.Add(item10, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item2.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.TOP, 5) item33 = wx.StaticText(parent, ID_WARNING, "", wx.DefaultPosition, wx.DefaultSize, 0) item33.SetForegroundColour(wx.RED) item33.SetFont(wx.Font(13, wx.ROMAN, wx.NORMAL, wx.BOLD)) item33.SetName("warning") item2.Add(item33, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item2.AddGrowableCol(0) item1.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item34 = wx.FlexGridSizer(0, 1, 0, 0) item35 = wx.FlexGridSizer(0, 2, 0, 0) item36 = RadioBox(parent, ID_TIPORD, "Ordinamento", wx.DefaultPosition, wx.DefaultSize, ["Codice", "Descrizione", "Bilancio"], 1, wx.RA_SPECIFY_COLS) item36.SetName("tipord") item35.Add(item36, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item37 = BilancioTipoLivelloPanel(parent, ID_PANEL, wx.DefaultPosition, wx.DefaultSize, 0) item35.Add(item37, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item35.AddGrowableCol(0) item35.AddGrowableCol(1) item34.Add(item35, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item38 = wx.FlexGridSizer(0, 2, 0, 0) item39 = wx.CheckBox(parent, ID_DETCLIFOR, "Includi Clienti/Fornitori", wx.DefaultPosition, wx.DefaultSize, 0) item39.SetName("detcf") item38.Add( item39, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item40 = wx.CheckBox(parent, ID_DETNOZERO, "Escludi saldi a zero", wx.DefaultPosition, wx.DefaultSize, 0) item40.SetName("detnozero") item38.Add( item40, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item38.AddGrowableCol(0) item38.AddGrowableCol(1) item34.Add(item38, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item41 = wx.FlexGridSizer(0, 2, 0, 0) item42 = RadioBox(parent, ID_INCLAPE, "Aperture", wx.DefaultPosition, wx.DefaultSize, ["Includi", "Escludi", "Solo Apert."], 1, wx.RA_SPECIFY_COLS) item42.SetName("inclape") item41.Add( item42, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item43 = RadioBox(parent, ID_INCLCHI, "Chiusure", wx.DefaultPosition, wx.DefaultSize, ["Includi", "Escludi", "Solo Chius."], 1, wx.RA_SPECIFY_COLS) item43.SetName("inclchi") item41.Add(item43, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item41.AddGrowableCol(0) item41.AddGrowableCol(1) item34.Add(item41, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item44 = wx.BoxSizer(wx.HORIZONTAL) item45 = wx.Button(parent, ID_BTNUPD, "Aggiorna", wx.DefaultPosition, wx.DefaultSize, 0) item45.SetDefault() item44.Add(item45, 0, wx.ALIGN_CENTER | wx.LEFT | wx.BOTTOM, 5) item46 = wx.Button(parent, ID_BTNPRINT, "Stampa", wx.DefaultPosition, wx.DefaultSize, 0) item44.Add(item46, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item34.Add(item44, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 5) item1.Add(item34, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item1.AddGrowableCol(0) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item47 = wx.FlexGridSizer(0, 1, 0, 0) item48 = parent.FindWindowById(ID_PANGRIDS) item47.Add(item48, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item47.Add([900, 1], 0, wx.ALIGN_CENTER, 5) item47.AddGrowableCol(0) item47.AddGrowableRow(0) item0.Add(item47, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.AddGrowableCol(0) item0.AddGrowableRow(1) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0