def TraCurCardFunc(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, "") item2 = wx.StaticBoxSizer(item3, wx.VERTICAL) item4 = CheckBox(parent, ID_ASKVET, "Gestione vettore", wx.DefaultPosition, wx.DefaultSize, 0) item4.SetName("askvet") item2.Add(item4, 0, wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item0.Add(item2, 0, wx.GROW | wx.LEFT | wx.RIGHT | wx.BOTTOM, 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 TraCauCardFunc(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, "") item2 = wx.StaticBoxSizer(item3, wx.VERTICAL) item4 = CheckBox(parent, ID_ESCLFTD, "Escludi il DDT dalla Fatturazione Differita", wx.DefaultPosition, wx.DefaultSize, 0) item4.SetName("esclftd") item2.Add(item4, 0, wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item0.Add(item2, 0, wx.GROW | wx.LEFT | wx.RIGHT | wx.BOTTOM, 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 SiteConfig(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, "Cod.Identificativo:", wx.DefaultPosition, wx.DefaultSize, 0) item1.Add( item2, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item3 = TextCtrl_LC(parent, ID_SITENAME, "", wx.DefaultPosition, wx.DefaultSize, 0) item3.SetName("Site_name") item1.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item4 = wx.StaticText(parent, ID_TEXT, "Cartella comune:", wx.DefaultPosition, wx.DefaultSize, 0) item1.Add(item4, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item5 = FolderEntryCtrl(parent, ID_SITEFOLDER, "", wx.DefaultPosition, wx.DefaultSize, 0) item5.SetName("Site_folder") item1.Add( item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item1.AddGrowableCol(1) item0.Add(item1, 0, wx.GROW, 5) item6 = CheckBox(parent, ID_SITEREMOTE, "Postazione remota", wx.DefaultPosition, wx.DefaultSize, 0) item6.SetName("Site_remote") item0.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item0.AddGrowableCol(0) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def SetupDatabaseFunc(parent, call_fit=True, set_sizer=True): item0 = wx.BoxSizer(wx.VERTICAL) item2 = wx.StaticBox(parent, -1, "Database") item1 = wx.StaticBoxSizer(item2, wx.VERTICAL) item4 = Notebook(parent, ID_NOTEBOOK_MYSQL, wx.DefaultPosition, [200, 160], 0) item3 = item4 item5 = wx.Panel(item4, -1) DbMySql(item5, False) item4.AddPage(item5, "Server") item1.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item6 = wx.FlexGridSizer(1, 0, 0, 0) item7 = CheckBox(parent, ID_SQLSPY, "SQL spy", wx.DefaultPosition, wx.DefaultSize, 0) item7.SetName("Database_sqlspy") item6.Add(item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item8 = wx.Button(parent, ID_ADDSERVER, "Aggiungi Server", wx.DefaultPosition, wx.DefaultSize, 0) item6.Add( item8, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item6.AddGrowableCol(1) item1.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def SetupCSVFunc(parent, call_fit=True, set_sizer=True): item0 = wx.BoxSizer(wx.VERTICAL) item2 = wx.StaticBox(parent, -1, "Esportazione dati: Formato file .CSV") item1 = wx.StaticBoxSizer(item2, wx.VERTICAL) item3 = CheckBox(parent, ID_CSVASGRID, "Esporta i valori come presentati nelle griglie", wx.DefaultPosition, [360, -1], 0) item3.SetName("DataExport_csvasgrid") item1.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item4 = CSVFormatPanel(parent, ID_CSVSPEC) item1.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.Add(item1, 0, wx.GROW | wx.LEFT | wx.BOTTOM, 5) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def RegIvaCardFunc(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(1, 0, 0, 0) item3 = RadioBox(parent, ID_RADIOBOX, "Tipologia", wx.DefaultPosition, wx.DefaultSize, ["Acquisti", "Vendite", "Corrispettivi"], 1, wx.RA_SPECIFY_ROWS) item3.SetName("tipo") item2.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item5 = wx.StaticBox(parent, -1, "") item4 = wx.StaticBoxSizer(item5, wx.VERTICAL) item6 = CheckBox(parent, ID_CHECKBOX, "Riepilogativo", wx.DefaultPosition, wx.DefaultSize, 0) item6.SetName("rieponly") item4.Add(item6, 0, wx.ALIGN_CENTER | wx.TOP, 15) item2.Add( item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5) item8 = wx.StaticBox(parent, -1, "Numero protocollo") item7 = wx.StaticBoxSizer(item8, wx.VERTICAL) item9 = UnoZeroCheckBox(parent, ID_NOPROT, "Consenti protocollo nullo", wx.DefaultPosition, wx.DefaultSize, 0) item9.SetName("noprot") item7.Add(item9, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item2.Add( item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5) item2.AddGrowableCol(1) item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item11 = wx.StaticBox(parent, -1, "Modalità di stampa del registro") item10 = wx.StaticBoxSizer(item11, wx.VERTICAL) item12 = UnoZeroCheckBox( parent, ID_STACOSRIC, "Stampa i costi/ricavi insieme alle aliquote (SOLO IN GESTIONE SEMPLIFICATA)", wx.DefaultPosition, wx.DefaultSize, 0) item12.SetName("stacosric") item10.Add( item12, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item0.Add( item10, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item14 = wx.StaticBox(parent, -1, "Ultima stampa fiscale") item13 = wx.StaticBoxSizer(item14, wx.VERTICAL) item15 = wx.FlexGridSizer(1, 0, 0, 0) item16 = wx.StaticText(parent, ID_TEXT, "Num. protocollo:", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT) item15.Add(item16, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item17 = NumCtrl(parent, integerWidth=6, allowNegative=False, groupDigits=False) item17.SetName("lastprtnum") item15.Add( item17, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item18 = wx.StaticText(parent, ID_TEXT, "Data:", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT) item15.Add(item18, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item19 = DateCtrl(parent, ID_LASTPRTDAT, "", wx.DefaultPosition, [80, -1], 0) item19.SetName("lastprtdat") item15.Add(item19, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item13.Add(item15, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.Add( item13, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item21 = wx.StaticBox(parent, -1, "Definizione del numero documento in stampa:") item20 = wx.StaticBoxSizer(item21, wx.VERTICAL) item22 = wx.FlexGridSizer(1, 0, 0, 0) item23 = wx.StaticText(parent, ID_TEXT, "Aggiungi sezione: /", wx.DefaultPosition, wx.DefaultSize, 0) item22.Add(item23, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item24 = TextCtrl(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [50, -1], 0) item24.SetName("numdocsez") item22.Add(item24, 0, wx.ALIGN_CENTER | wx.RIGHT | wx.TOP | wx.BOTTOM, 5) item25 = UnoZeroCheckBox(parent, ID_NUMDOCANN, "Aggiungi /ANNO", wx.DefaultPosition, wx.DefaultSize, 0) item25.SetName("numdocann") item22.Add(item25, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item26 = wx.StaticText(parent, ID_TEXT, "Esempio:", wx.DefaultPosition, wx.DefaultSize, 0) item22.Add(item26, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item27 = wx.StaticText(parent, ID_NUMDOCTEST, "-", wx.DefaultPosition, wx.DefaultSize, 0) item27.SetFont(wx.Font(10, wx.SCRIPT, wx.NORMAL, wx.BOLD)) item27.SetName("_numdoctest") item22.Add(item27, 0, wx.ALIGN_CENTER | wx.ALL, 5) item22.AddGrowableCol(2) item20.Add(item22, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.Add( item20, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item29 = wx.StaticBox(parent, -1, "Stampa registro") item28 = wx.StaticBoxSizer(item29, wx.VERTICAL) item30 = wx.FlexGridSizer(0, 3, 0, 0) item31 = wx.StaticText(parent, ID_TEXT, "Intestazione registro", wx.DefaultPosition, wx.DefaultSize, 0) item30.Add( item31, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item32 = wx.StaticText(parent, ID_TEXT, "Anno", wx.DefaultPosition, wx.DefaultSize, 0) item30.Add(item32, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5) item33 = wx.StaticText(parent, ID_TEXT, "Pag.", wx.DefaultPosition, wx.DefaultSize, 0) item30.Add(item33, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5) item34 = TextCtrl(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [400, -1], 0) item34.SetName("intestaz") item30.Add( item34, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item35 = NumCtrl(parent, integerWidth=4, allowNegative=False, groupDigits=False) item35.SetName("intanno") item30.Add(item35, 0, wx.ALIGN_CENTER | wx.RIGHT | wx.BOTTOM, 5) item36 = NumCtrl(parent, integerWidth=4, allowNegative=False, groupDigits=True) item36.SetName("intpag") item30.Add(item36, 0, wx.ALIGN_CENTER | wx.RIGHT | wx.BOTTOM, 5) item30.AddGrowableCol(0) item28.Add(item30, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.Add( item28, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item0.AddGrowableCol(0) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def AziendaCopyFunc( parent, call_fit = True, set_sizer = True ): item0 = wx.FlexGridSizer( 0, 1, 0, 0 ) item1 = wx.FlexGridSizer( 0, 1, 0, 0 ) item2 = wx.StaticText( parent, ID_TEXT, "Le strutture delle tabelle dell'azienda sono state create, ma al momento tutte le tabella sono vuote.", wx.DefaultPosition, wx.DefaultSize, 0 ) item1.Add( item2, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) item3 = wx.StaticText( parent, ID_TEXT, "Da qui è possibile inizializzare il database dell'azienda in base ad una azienda di partenza, dalla quale è possibile acquisire le informazioni", wx.DefaultPosition, wx.DefaultSize, 0 ) item1.Add( item3, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item4 = wx.StaticText( parent, ID_TEXT, "desiderate. Selezionare le informazioni da acquisire.", wx.DefaultPosition, wx.DefaultSize, 0 ) item1.Add( item4, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item1.AddGrowableCol( 0 ) item0.Add( item1, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item5 = wx.FlexGridSizer( 1, 0, 0, 0 ) item6 = wx.FlexGridSizer( 0, 1, 0, 0 ) item7 = wx.StaticText( parent, ID_TEXT, "Copia dall'azienda:", wx.DefaultPosition, wx.DefaultSize, 0 ) item7.SetForegroundColour( wx.BLUE ) item6.Add( item7, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.TOP, 5 ) item8 = wx.Panel( parent, ID_PANGRIDAZI, wx.DefaultPosition, [400,160], wx.SUNKEN_BORDER ) item6.Add( item8, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item6.AddGrowableCol( 0 ) item6.AddGrowableRow( 1 ) item5.Add( item6, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item9 = wx.FlexGridSizer( 0, 1, 0, 0 ) item10 = wx.StaticText( parent, ID_TEXT, "Le seguenti informazioni:", wx.DefaultPosition, wx.DefaultSize, 0 ) item10.SetForegroundColour( wx.BLUE ) item9.Add( item10, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.TOP, 5 ) item11 = wx.FlexGridSizer( 1, 0, 0, 0 ) item12 = wx.FlexGridSizer( 0, 1, 0, 0 ) item14 = wx.StaticBox( parent, -1, "Contabilità" ) item13 = wx.StaticBoxSizer( item14, wx.VERTICAL ) item15 = CheckBox( parent, ID_CHECKBOX, "Causali e Registri IVA", wx.DefaultPosition, wx.DefaultSize, 0 ) item15.SetValue( True ) item15.SetName( "copyconcau" ) item13.Add( item15, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) item16 = CheckBox( parent, ID_CHECKBOX, "Piano dei Conti e classificazioni", wx.DefaultPosition, wx.DefaultSize, 0 ) item16.SetValue( True ) item16.SetName( "copyconpdc" ) item13.Add( item16, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item17 = CheckBox( parent, ID_CHECKBOX, "Anagrafiche Clienti", wx.DefaultPosition, wx.DefaultSize, 0 ) item17.SetValue( True ) item17.SetName( "copyconcli" ) item13.Add( item17, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item18 = CheckBox( parent, ID_CHECKBOX, "Anagrafiche Fornitori", wx.DefaultPosition, wx.DefaultSize, 0 ) item18.SetValue( True ) item18.SetName( "copyconfor" ) item13.Add( item18, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item19 = CheckBox( parent, ID_CHECKBOX, "Sottoconti Cassa", wx.DefaultPosition, wx.DefaultSize, 0 ) item19.SetValue( True ) item19.SetName( "copyconcas" ) item13.Add( item19, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item20 = CheckBox( parent, ID_CHECKBOX, "Banche", wx.DefaultPosition, wx.DefaultSize, 0 ) item20.SetValue( True ) item20.SetName( "copyconban" ) item13.Add( item20, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item21 = CheckBox( parent, ID_CHECKBOX, "Gruppi Scadenzario", wx.DefaultPosition, wx.DefaultSize, 0 ) item21.SetValue( True ) item21.SetName( "copycongrs" ) item13.Add( item21, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item12.Add( item13, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) item23 = wx.StaticBox( parent, -1, "Magazzino" ) item22 = wx.StaticBoxSizer( item23, wx.VERTICAL ) item24 = CheckBox( parent, ID_CHECKBOX, "Causali e magazzini", wx.DefaultPosition, wx.DefaultSize, 0 ) item24.SetValue( True ) item24.SetName( "copymagcau" ) item22.Add( item24, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) item25 = CheckBox( parent, ID_CHECKBOX, "Prodotti, classificazioni e listini", wx.DefaultPosition, wx.DefaultSize, 0 ) item25.SetValue( True ) item25.SetName( "copymagpro" ) item22.Add( item25, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item26 = CheckBox( parent, ID_CHECKBOX, "Agenti", wx.DefaultPosition, wx.DefaultSize, 0 ) item26.SetValue( True ) item26.SetName( "copymagage" ) item22.Add( item26, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item27 = CheckBox( parent, ID_CHECKBOX, "Zone", wx.DefaultPosition, wx.DefaultSize, 0 ) item27.SetValue( True ) item27.SetName( "copymagzne" ) item22.Add( item27, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item28 = CheckBox( parent, ID_CHECKBOX, "Dati trasporto", wx.DefaultPosition, wx.DefaultSize, 0 ) item28.SetValue( True ) item28.SetName( "copymagtra" ) item22.Add( item28, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item12.Add( item22, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item30 = wx.StaticBox( parent, -1, "Varie" ) item29 = wx.StaticBoxSizer( item30, wx.VERTICAL ) item31 = CheckBox( parent, ID_CHECKBOX, "Aliquote IVA", wx.DefaultPosition, wx.DefaultSize, 0 ) item31.SetValue( True ) item31.SetName( "copygeniva" ) item29.Add( item31, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 ) item32 = CheckBox( parent, ID_CHECKBOX, "Valute", wx.DefaultPosition, wx.DefaultSize, 0 ) item32.SetValue( True ) item32.SetName( "copygenval" ) item29.Add( item32, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item33 = CheckBox( parent, ID_CHECKBOX, "Mod. Pagamento e Spese Incasso", wx.DefaultPosition, wx.DefaultSize, 0 ) item33.SetValue( True ) item33.SetName( "copygenpag" ) item29.Add( item33, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item34 = CheckBox( parent, ID_CHECKBOX, "Automatismi vari", wx.DefaultPosition, wx.DefaultSize, 0 ) item34.SetValue( True ) item34.SetName( "copygenaut" ) item29.Add( item34, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item12.Add( item29, 0, wx.GROW|wx.ALIGN_CENTER_HORIZONTAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 ) item12.AddGrowableCol( 0 ) item11.Add( item12, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item9.Add( item11, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item9.AddGrowableCol( 0 ) item5.Add( item9, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 ) item5.AddGrowableCol( 0 ) item5.AddGrowableRow( 0 ) item0.Add( item5, 0, wx.GROW, 5 ) item35 = wx.BoxSizer( wx.HORIZONTAL ) item36 = wx.Button( parent, ID_BUTTON, "OK", wx.DefaultPosition, wx.DefaultSize, 0 ) item36.SetName( "btnok" ) 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 _OLD_WorkstationSetup(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item1 = wx.FlexGridSizer(0, 2, 0, 0) item2 = wx.BoxSizer(wx.VERTICAL) item4 = wx.StaticBox(parent, -1, "Sito installazione") item3 = wx.StaticBoxSizer(item4, wx.VERTICAL) item6 = Notebook(parent, ID_NOTEBOOK, wx.DefaultPosition, [200, 160], 0) item5 = item6 item7 = wx.Panel(item6, -1) SiteConfig(item7, False) item6.AddPage(item7, "Identificativo") item3.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item2.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item9 = wx.StaticBox(parent, -1, "Database") item8 = wx.StaticBoxSizer(item9, wx.VERTICAL) item11 = Notebook(parent, ID_NOTEBOOK_MYSQL, wx.DefaultPosition, [200, 160], 0) item10 = item11 item12 = wx.Panel(item11, -1) DbMySql(item12, False) item11.AddPage(item12, "Server") item8.Add(item10, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item13 = wx.FlexGridSizer(1, 0, 0, 0) item14 = CheckBox(parent, ID_SQLSPY, "SQL spy", wx.DefaultPosition, wx.DefaultSize, 0) item14.SetName("Database_sqlspy") item13.Add(item14, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item15 = wx.Button(parent, ID_ADDSERVER, "Aggiungi Server", wx.DefaultPosition, wx.DefaultSize, 0) item13.Add( item15, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item13.AddGrowableCol(1) item8.Add(item13, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item2.Add(item8, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item17 = wx.StaticBox(parent, -1, "Collegamento ad Internet") item16 = wx.StaticBoxSizer(item17, wx.VERTICAL) item18 = CheckBox(parent, ID_SITEINETAO, "Questa workstation dispone di un accesso permanente", wx.DefaultPosition, [360, -1], 0) item18.SetName("Site_inetao") item16.Add(item18, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item2.Add(item16, 0, wx.GROW | wx.RIGHT | wx.TOP | wx.BOTTOM, 5) item1.Add(item2, 0, wx.GROW, 5) item19 = wx.FlexGridSizer(0, 1, 0, 0) item21 = wx.StaticBox(parent, -1, "Cartelle") item20 = wx.StaticBoxSizer(item21, wx.VERTICAL) item23 = Notebook(parent, ID_NOTEBOOK, wx.DefaultPosition, [200, 160], 0) item22 = item23 item24 = wx.Panel(item23, -1) Report(item24, False) item23.AddPage(item24, "Report") item20.Add(item22, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item19.Add(item20, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item26 = wx.StaticBox(parent, -1, "Esportazione dati: Formato file .CSV") item25 = wx.StaticBoxSizer(item26, wx.VERTICAL) item27 = CheckBox(parent, ID_CSVASGRID, "Esporta i valori come presentati nelle griglie", wx.DefaultPosition, [360, -1], 0) item27.SetName("DataExport_csvasgrid") item25.Add(item27, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item28 = CSVFormatPanel(parent, ID_CSVSPEC) item25.Add(item28, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item19.Add(item25, 0, wx.GROW | wx.LEFT | wx.BOTTOM, 5) item19.AddGrowableRow(1) item1.Add(item19, 0, wx.GROW, 5) item1.AddGrowableCol(0) item1.AddGrowableCol(1) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item29 = wx.FlexGridSizer(1, 0, 0, 0) item30 = wx.FlexGridSizer(1, 0, 0, 0) item31 = IconTypeRadioBox(parent, ID_THEME, "Tema", wx.DefaultPosition, wx.DefaultSize, ["Vista", "Pastel", "Spheric"], 1, wx.RA_SPECIFY_COLS) item31.SetName("Controls_iconstype") item30.Add(item31, 0, wx.ALIGN_CENTER | wx.ALL, 5) item32 = RadioBox( parent, ID_TABGRID, "Sulle griglie, il tasto TAB naviga su:", wx.DefaultPosition, wx.DefaultSize, ["le celle della griglia", "i controlli adiacenti alla griglia"], 1, wx.RA_SPECIFY_COLS) item32.SetName("Controls_tabgrid") item30.Add(item32, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item29.Add(item30, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.Add(item29, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item33 = wx.FlexGridSizer(1, 0, 0, 0) item34 = wx.Button(parent, ID_BTNQUIT, "Abbandona", wx.DefaultPosition, wx.DefaultSize, 0) item33.Add(item34, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item35 = wx.Button(parent, ID_BTNOK, "OK", wx.DefaultPosition, wx.DefaultSize, 0) item35.SetDefault() item33.Add(item35, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item0.Add(item33, 0, wx.ALIGN_RIGHT | 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 SetupSiteFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item2 = wx.StaticBox(parent, -1, "Sito installazione") item1 = wx.StaticBoxSizer(item2, wx.VERTICAL) item3 = wx.FlexGridSizer(0, 2, 0, 0) item4 = wx.StaticText(parent, ID_TEXT, "Cod.Identificativo:", wx.DefaultPosition, wx.DefaultSize, 0) item3.Add( item4, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item5 = TextCtrl_LC(parent, ID_SITENAME, "", wx.DefaultPosition, wx.DefaultSize, 0) item5.SetName("Site_name") item3.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item6 = wx.StaticText(parent, ID_TEXT, "Cartella comune:", wx.DefaultPosition, wx.DefaultSize, 0) item3.Add(item6, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item7 = FolderEntryCtrl(parent, ID_SITEFOLDER, "", wx.DefaultPosition, wx.DefaultSize, 0) item7.SetName("Site_folder") item3.Add( item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item3.AddGrowableCol(1) item1.Add(item3, 0, wx.GROW, 5) item8 = CheckBox(parent, ID_SITEREMOTE, "Postazione remota", wx.DefaultPosition, wx.DefaultSize, 0) item8.SetName("Site_remote") item1.Add(item8, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item10 = wx.StaticBox(parent, -1, "Collegamento ad Internet") item9 = wx.StaticBoxSizer(item10, wx.VERTICAL) item11 = CheckBox(parent, ID_SITEINETAO, "Questa workstation dispone di un accesso permanente", wx.DefaultPosition, [360, -1], 0) item11.SetName("Site_inetao") item9.Add(item11, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item0.Add(item9, 0, wx.GROW | wx.ALL, 5) item0.AddGrowableCol(0) 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 AnagCardFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item2 = wx.StaticBox(parent, -1, "Anagrafica") item1 = wx.StaticBoxSizer(item2, wx.VERTICAL) item3 = wx.FlexGridSizer(0, 1, 0, 0) item4 = wx.FlexGridSizer(0, 3, 0, 0) item5 = wx.StaticText(parent, ID_TEXT, "Codice:", wx.DefaultPosition, [60, -1], 0) item4.Add(item5, 0, wx.ALIGN_CENTER_VERTICAL, 0) item6 = wx.StaticText(parent, ID_TXT_DESCRIZ, "Descrizione:", wx.DefaultPosition, [90, -1], 0) item4.Add(item6, 0, wx.ALIGN_CENTER_VERTICAL, 5) item7 = wx.StaticText(parent, ID_TEXT, "ID:", wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_RIGHT) item4.Add(item7, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT, 5) item8 = TextCtrlCD(parent, ID_TXT_CODICE, "", wx.DefaultPosition, [80, -1], 0) item8.SetName("codice") item4.Add(item8, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5) item9 = TextCtrlCD_LC(parent, ID_UTENTE, "", wx.DefaultPosition, [300, -1], 0) item9.SetName("descriz") item4.Add(item9, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item10 = NumCtrl(parent, integerWidth=6, allowNegative=False, groupDigits=False) item10.SetName("id") item10.SetEditable(False) item4.Add(item10, 0, wx.ALIGN_RIGHT | wx.LEFT, 5) item11 = wx.StaticText(parent, ID_TEXT, "Password:"******"", wx.DefaultPosition, [140, -1], wx.TE_PASSWORD) item13.SetName("psw") item12.Add(item13, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item14 = CheckBox(parent, ID_AMMINISTRATORE, "Amministratore", wx.DefaultPosition, wx.DefaultSize, 0) item14.SetName("Amministratore") item12.Add(item14, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item4.Add(item12, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item15 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition, wx.DefaultSize, 0) item4.Add(item15, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item16 = wx.StaticText(parent, ID_TEXT, "Max righe SQL:", wx.DefaultPosition, wx.DefaultSize, 0) item4.Add( item16, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item17 = NumCtrl(parent, ID_FOREIGN, integerWidth=6, allowNegative=False, groupDigits=False) item17.SetName("max_sqlrows") item4.Add(item17, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item4.AddGrowableCol(2) item3.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item3.AddGrowableCol(0) item1.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item0.Add(item1, 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 PromemPanelFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item1 = wx.FlexGridSizer(1, 0, 0, 0) item2 = wx.StaticText(parent, ID_TEXT, "Inserito il:", wx.DefaultPosition, wx.DefaultSize, 0) item1.Add(item2, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item3 = DateTimeCtrl(parent, ID_DATINS, "", wx.DefaultPosition, [80, -1], 0) item3.SetName("datains") item3.Enable(False) item1.Add(item3, 0, wx.ALIGN_CENTER | wx.ALL, 5) item4 = wx.StaticText(parent, ID_TEXT, "dall'utente:", wx.DefaultPosition, wx.DefaultSize, 0) item1.Add(item4, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item5 = TextCtrl(parent, ID_UTEINS, "", wx.DefaultPosition, [30, -1], 0) item5.SetName("uteins") item5.Enable(False) item1.Add(item5, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item6 = TextCtrl_LC(parent, ID_UTEINS, "", wx.DefaultPosition, [30, -1], 0) item6.SetName("_descuteins") item6.Enable(False) item1.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item1.AddGrowableCol(4) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item7 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1], wx.LI_HORIZONTAL) item0.Add(item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item8 = wx.FlexGridSizer(1, 0, 0, 0) item9 = wx.FlexGridSizer(0, 1, 0, 0) item10 = wx.StaticText(parent, ID_TEXT, "Destinatari del promemoria", wx.DefaultPosition, wx.DefaultSize, 0) item10.SetForegroundColour(wx.BLUE) item9.Add(item10, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item11 = CheckBox(parent, ID_GLOBALE, "Chiunque (comparirà a tutti)", wx.DefaultPosition, wx.DefaultSize, 0) item11.SetName("globale") item9.Add(item11, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item12 = wx.StaticText(parent, ID_TEXT, "Solo i seguenti utenti:", wx.DefaultPosition, wx.DefaultSize, 0) item9.Add(item12, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item13 = CheckListBox(parent, ID_UTENTI, wx.DefaultPosition, [120, 160], [], wx.LB_SINGLE) item13.SetName("utenti") item9.Add(item13, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item9.AddGrowableCol(0) item9.AddGrowableRow(3) item8.Add(item9, 0, wx.GROW, 5) item14 = wx.FlexGridSizer(0, 1, 0, 0) item15 = wx.StaticText(parent, ID_TEXT, "Dettagli del promemoria", wx.DefaultPosition, wx.DefaultSize, 0) item15.SetForegroundColour(wx.BLUE) item14.Add( item15, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item16 = wx.FlexGridSizer(1, 0, 0, 0) item17 = wx.StaticText(parent, ID_TEXT, "Scade il:", wx.DefaultPosition, [60, -1], wx.ALIGN_RIGHT) item16.Add( item17, 0, wx.ALIGN_BOTTOM | wx.ALIGN_CENTER_HORIZONTAL | wx.LEFT | wx.BOTTOM, 5) item18 = DateTimeCtrl(parent, ID_DATASCA, "", wx.DefaultPosition, [80, -1], 0) item18.SetName("datasca") item16.Add(item18, 0, wx.ALIGN_BOTTOM | wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 5) item19 = CheckBox(parent, ID_STATUS, "Finito", wx.DefaultPosition, wx.DefaultSize, 0) item19.SetName("status") item16.Add(item19, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item14.Add(item16, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item20 = wx.FlexGridSizer(1, 0, 0, 0) item21 = CheckBox(parent, ID_AVVISA, "Avvisa il:", wx.DefaultPosition, [60, -1], 0) item21.SetName("avvisa") item20.Add( item21, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item22 = DateTimeCtrl(parent, ID_DATAREM, "", wx.DefaultPosition, [80, -1], 0) item22.SetName("datarem") item22.Enable(False) item20.Add( item22, 0, wx.ALIGN_BOTTOM | wx.ALIGN_CENTER_HORIZONTAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item14.Add(item20, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item23 = wx.FlexGridSizer(1, 0, 0, 0) item24 = wx.StaticText(parent, ID_TEXT, "Oggetto:", wx.DefaultPosition, [60, -1], wx.ALIGN_RIGHT) item23.Add(item24, 0, wx.ALIGN_CENTER | wx.LEFT | wx.BOTTOM, 5) item25 = TextCtrl_LC(parent, ID_OGGETTO, "", wx.DefaultPosition, [300, -1], 0) item25.SetName("oggetto") item23.Add( item25, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item23.AddGrowableCol(1) item14.Add(item23, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item26 = wx.FlexGridSizer(1, 0, 0, 0) item27 = wx.StaticText(parent, ID_TEXT, "Descrizione:", wx.DefaultPosition, [60, -1], wx.ALIGN_RIGHT) item26.Add(item27, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.LEFT | wx.BOTTOM, 5) item28 = TextCtrl_LC(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [400, 200], wx.TE_MULTILINE) item28.SetName("descriz") item26.Add(item28, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item26.AddGrowableCol(1) item26.AddGrowableRow(0) item14.Add(item26, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item29 = wx.BoxSizer(wx.HORIZONTAL) item30 = wx.Button(parent, ID_DELETE, "Elimina", wx.DefaultPosition, wx.DefaultSize, 0) item30.SetName("_delete") item29.Add(item30, 0, wx.ALIGN_CENTER | wx.ALL, 5) item31 = wx.Button(parent, ID_SAVE, "Salva", wx.DefaultPosition, wx.DefaultSize, 0) item31.SetDefault() item31.SetName("_save") item29.Add(item31, 0, wx.ALIGN_CENTER | wx.ALL, 5) item14.Add(item29, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 5) item14.AddGrowableCol(0) item14.AddGrowableRow(4) item8.Add(item14, 0, wx.GROW, 5) item8.AddGrowableCol(1) item8.AddGrowableRow(0) item0.Add(item8, 0, wx.GROW, 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 Setup2Func(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item2 = wx.StaticBox(parent, -1, "Scadenzario Clienti/Fornitori") item1 = wx.StaticBoxSizer(item2, wx.VERTICAL) item3 = wx.FlexGridSizer(0, 5, 0, 0) item5 = wx.StaticBox(parent, -1, "") item4 = wx.StaticBoxSizer(item5, wx.VERTICAL) item6 = CheckBox(parent, ID_ATTSCAD, "Attiva scadenzario", wx.DefaultPosition, wx.DefaultSize, 0) item6.SetName("pcf") item4.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item7 = CheckBox(parent, ID_ATTSC, "Gestione saldaconto", wx.DefaultPosition, wx.DefaultSize, 0) item7.SetName("pcfscon") item4.Add( item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item8 = wx.FlexGridSizer(0, 2, 0, 0) item9 = CheckBox(parent, ID_SPE, "Spese", wx.DefaultPosition, wx.DefaultSize, 0) item9.SetName("pcfspe") item8.Add( item9, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item10 = CheckBox(parent, ID_INS, "Insoluto", wx.DefaultPosition, wx.DefaultSize, 0) item10.SetName("pcfins") item8.Add( item10, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item4.Add(item8, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item3.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item11 = RadioBox(parent, ID_PCFSEGNO, "", wx.DefaultPosition, wx.DefaultSize, ["Aumenta", "Diminuisci"], 1, wx.RA_SPECIFY_COLS) item11.SetName("pcfsgn") item3.Add(item11, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item12 = RadioBox(parent, ID_PCFCOL, "", wx.DefaultPosition, wx.DefaultSize, ["Nulla", "Importo", "Pareggiamento"], 1, wx.RA_SPECIFY_COLS) item12.SetName("pcfimp") item3.Add(item12, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item13 = RadioBox(parent, ID_PCFABB, "", wx.DefaultPosition, wx.DefaultSize, ["Nessun abbuono", "Abbuoni attivi", "Abbuoni passivi"], 1, wx.RA_SPECIFY_COLS) item13.SetName("pcfabb") item3.Add(item13, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item3.AddGrowableCol(0) item3.AddGrowableCol(1) item3.AddGrowableCol(2) item3.AddGrowableCol(3) item3.AddGrowableCol(4) item1.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.Add( item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item14 = wx.StaticText( parent, ID_TEXT, "Inserire qui i sottoconti più frequentemente utilizzati.", wx.DefaultPosition, wx.DefaultSize, 0) item0.Add(item14, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5) item15 = wx.StaticText( parent, ID_TEXT, "Saranno proposti automaticamente durante l'iserimento di registrazioni con questa causale.", wx.DefaultPosition, wx.DefaultSize, 0) item0.Add( item15, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item16 = PdcPrefCauPanel(parent, ID_PDCPREF, wx.DefaultPosition, [200, 160], 0) item16.SetName("panpref") item0.Add( item16, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5) item0.AddGrowableCol(0) item0.AddGrowableRow(3) 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 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