Ejemplo n.º 1
0
def AttachNoteFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.BoxSizer(wx.VERTICAL)

    item1 = wx.StaticText(parent, ID_TEXT, "Allega annotazione",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item1.SetBackgroundColour(wx.LIGHT_GREY)
    item1.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD))
    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)

    item4 = wx.FlexGridSizer(0, 2, 0, 0)

    item5 = wx.StaticBitmap(parent, ID_ICON_TEXT, images.getText32Bitmap())
    item4.Add(item5, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.LEFT | wx.RIGHT, 5)

    item6 = wx.StaticText(parent, ID_TEXT, "Nota:", wx.DefaultPosition,
                          wx.DefaultSize, wx.ALIGN_RIGHT)
    item4.Add(item6, 0, wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item3.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item7 = RCheckBox(parent, ID_AUTOTEXT, "AutoText", wx.DefaultPosition,
                      wx.DefaultSize, 0)
    item7.SetName("autotext")
    item3.Add(item7, 0, wx.ALIGN_RIGHT | wx.ALIGN_BOTTOM | wx.ALL, 5)

    item3.AddGrowableRow(1)

    item2.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item8 = TextCtrl_LC(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [80, 60],
                        wx.TE_MULTILINE)
    item8.SetName("note")
    item2.Add(item8, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item9 = wx.Button(parent, ID_ATTACH_NOTE, "Allega Nota",
                      wx.DefaultPosition, wx.DefaultSize, 0)
    item9.SetDefault()
    item9.SetName("attach_note")
    item2.Add(item9, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item2.AddGrowableCol(1)

    item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    if set_sizer == True:
        parent.SetSizer(item0)
        if call_fit == True:
            item0.SetSizeHints(parent)

    return item0
Ejemplo n.º 2
0
def AttachButtonDetailsFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.BoxSizer(wx.VERTICAL)

    item1 = wx.StaticText(parent, ID_TEXT, "Dettagli allegato",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item1.SetBackgroundColour(wx.LIGHT_GREY)
    item1.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD))
    item0.Add(item1, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP,
              5)

    item2 = wx.FlexGridSizer(1, 0, 0, 0)

    item4 = wx.StaticBox(parent, -1, "Descrizione")
    item3 = wx.StaticBoxSizer(item4, wx.HORIZONTAL)

    item5 = TextCtrl_LC(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [500, -1],
                        0)
    item5.SetName("description")
    item3.Add(item5, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.BOTTOM, 5)

    item2.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item2.AddGrowableCol(0)

    item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item7 = Notebook(parent, ID_ATTACH_SPECS, wx.DefaultPosition,
                     wx.DefaultSize, 0)
    item6 = item7

    item8 = wx.Panel(item7, -1)
    AttachNoteFunc(item8, False)
    item7.AddPage(item8, "Annotazione")

    item9 = wx.Panel(item7, -1)
    AttachFileFunc(item9, False)
    item7.AddPage(item9, "Documento")

    item10 = wx.Panel(item7, -1)
    AttachUrlFunc(item10, False)
    item7.AddPage(item10, "Pagina WEB")

    item0.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    if set_sizer == True:
        parent.SetSizer(item0)
        if call_fit == True:
            item0.SetSizeHints(parent)

    return item0
Ejemplo n.º 3
0
def ExtraVetFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

    item2 = wx.StaticBox(parent, -1, "Dati Extra")
    item1 = wx.StaticBoxSizer(item2, wx.VERTICAL)

    item3 = wx.StaticText(parent, ID_TEXT, "Dichiarazione del vettore:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item1.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)

    item4 = TextCtrl_LC(parent, ID_DICHIAR, "", wx.DefaultPosition, [-1, 40],
                        wx.TE_MULTILINE)
    item4.SetName("dichiar")
    item1.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5)

    item5 = wx.FlexGridSizer(0, 2, 0, 0)

    item6 = wx.StaticText(parent, ID_TEXT, "Targa:", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item5.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item7 = wx.StaticText(parent, ID_TEXT, "Autista:", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item5.Add(item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT, 5)

    item8 = TextCtrl(parent, ID_TARGA, "", wx.DefaultPosition, [80, -1], 0)
    item8.SetName("targa")
    item5.Add(item8, 0, wx.ALIGN_CENTER | wx.BOTTOM, 5)

    item9 = TextCtrl(parent, ID_AUTISTA, "", wx.DefaultPosition, [200, -1], 0)
    item9.SetName("autista")
    item5.Add(item9, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5)

    item5.AddGrowableCol(1)

    item1.Add(item5, 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)

    item0.AddGrowableCol(0)

    if set_sizer == True:
        parent.SetSizer(item0)
        if call_fit == True:
            item0.SetSizeHints(parent)

    return item0
Ejemplo n.º 4
0
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
Ejemplo n.º 5
0
def AttachFileFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.BoxSizer(wx.VERTICAL)

    item1 = wx.StaticText(parent, ID_TEXT, "Allega documento",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item1.SetBackgroundColour(wx.LIGHT_GREY)
    item1.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD))
    item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item2 = wx.FlexGridSizer(1, 0, 0, 0)

    item3 = wx.StaticBitmap(parent, ID_ICON_FILE, images.getImage32Bitmap())
    item2.Add(item3, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT, 5)

    item4 = wx.StaticText(parent, ID_TEXT, "File:", wx.DefaultPosition,
                          wx.DefaultSize, wx.ALIGN_RIGHT)
    item2.Add(item4, 0,
              wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item5 = TextCtrl_LC(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [80, -1],
                        0)
    item5.SetName("file")
    item2.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item6 = wx.Button(parent, ID_SEARCHFILE, "...", wx.DefaultPosition,
                      [20, -1], 0)
    item6.SetName("search_file")
    item2.Add(item6, 0, wx.ALIGN_CENTER | wx.RIGHT | wx.TOP | wx.BOTTOM, 5)

    item7 = wx.Button(parent, ID_ATTACH_FILE, "Allega file",
                      wx.DefaultPosition, wx.DefaultSize, 0)
    item7.SetDefault()
    item7.SetName("attach_file")
    item2.Add(item7, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item2.AddGrowableCol(2)

    item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    if set_sizer == True:
        parent.SetSizer(item0)
        if call_fit == True:
            item0.SetSizeHints(parent)

    return item0
Ejemplo n.º 6
0
def AttachUrlFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.BoxSizer(wx.VERTICAL)

    item1 = wx.StaticText(parent, ID_TEXT, "Allega indirizzo Internet",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item1.SetBackgroundColour(wx.LIGHT_GREY)
    item1.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD))
    item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item2 = wx.FlexGridSizer(1, 0, 0, 0)

    item3 = wx.StaticBitmap(parent, ID_ICON_WEB, images.getWeb32Bitmap())
    item2.Add(item3, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT, 5)

    item4 = wx.StaticText(parent, ID_TEXT, "URL:", wx.DefaultPosition,
                          wx.DefaultSize, wx.ALIGN_RIGHT)
    item2.Add(item4, 0,
              wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item5 = TextCtrl_LC(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [80, -1],
                        0)
    item5.SetName("url")
    item2.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item6 = wx.Button(parent, ID_ATTACH_URL, "Allega URL", wx.DefaultPosition,
                      wx.DefaultSize, 0)
    item6.SetDefault()
    item6.SetName("attach_url")
    item2.Add(item6, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item2.AddGrowableCol(2)

    item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    if set_sizer == True:
        parent.SetSizer(item0)
        if call_fit == True:
            item0.SetSizeHints(parent)

    return item0
Ejemplo n.º 7
0
def SelAziendaFunc( parent, call_fit = True, set_sizer = True ):
    item0 = wx.FlexGridSizer( 0, 1, 0, 0 )
    
    item1 = AboutPanel(parent, ID_ABOUT)
    item0.Add( item1, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 )

    item2 = wx.StaticLine( parent, ID_LINE, wx.DefaultPosition, [20,-1], wx.LI_HORIZONTAL )
    item0.Add( item2, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.TOP|wx.BOTTOM, 5 )

    item0.Add( [ 20, 10 ] , 0, wx.ALIGN_CENTER, 5 )

    item3 = wx.FlexGridSizer( 0, 3, 0, 0 )
    
    item4 = wx.StaticText( parent, ID_TEXT, "Utente:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item3.Add( item4, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.BOTTOM, 5 )

    item5 = wx.FlexGridSizer( 1, 0, 0, 0 )
    
    item6 = TextCtrl_LC( parent, ID_USER, "", wx.DefaultPosition, [50,-1], 0 )
    item6.SetName( "username" )
    item5.Add( item6, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.BOTTOM, 5 )

    item7 = wx.StaticText( parent, ID_TEXT, "Password:"******"", wx.DefaultPosition, [50,-1], wx.TE_PASSWORD )
    item8.SetName( "password" )
    item5.Add( item8, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 )

    item5.AddGrowableCol( 0 )

    item5.AddGrowableCol( 2 )

    item3.Add( item5, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 )

    item9 = Button( parent, ID_LOGIN, "Login", wx.DefaultPosition, wx.DefaultSize, 0 )
    item9.SetName( "butlogin" )
    item3.Add( item9, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.BOTTOM, 5 )

    item10 = wx.StaticText( parent, ID_TEXT, "Server:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item3.Add( item10, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.LEFT, 5 )

    item11 = MyChoice( parent, ID_SERVER, wx.DefaultPosition, [400,-1], [], 0 )
    item11.SetName( "server" )
    item3.Add( item11, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT, 5 )

    item12 = Button( parent, ID_CHANGEPWD, "Cambia password", wx.DefaultPosition, wx.DefaultSize, 0 )
    item12.SetName( "butchangepswd" )
    item3.Add( item12, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT, 5 )

    item13 = wx.StaticText( parent, ID_TEXT, "URL:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item3.Add( item13, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.BOTTOM, 10 )

    item14 = wx.StaticText( parent, ID_SERVERURL, "-", wx.DefaultPosition, wx.DefaultSize, 0 )
    item3.Add( item14, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 )

    item3.Add( [ 20, 20 ] , 0, wx.ALIGN_CENTER, 5 )

    item15 = wx.StaticText( parent, ID_TEXT, "Aziende:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item3.Add( item15, 0, wx.ALIGN_RIGHT|wx.LEFT|wx.BOTTOM, 5 )

    item16 = wx.Panel( parent, ID_LISTAZIENDE, wx.DefaultPosition, wx.DefaultSize, wx.SUNKEN_BORDER )
    item16.SetName( "aziende" )
    item3.Add( item16, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 )

    item17 = wx.FlexGridSizer( 0, 1, 0, 0 )
    
    item18 = wx.BoxSizer( wx.HORIZONTAL )
    
    item19 = wx.StaticText( parent, ID_TEXT, "Data:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item18.Add( item19, 0, wx.ALIGN_RIGHT|wx.ALIGN_BOTTOM|wx.TOP|wx.BOTTOM, 5 )

    item20 = DateCtrl( parent, ID_DATAELAB, "", wx.DefaultPosition, [100,-1], 0 )
    item20.SetName( "dataelab" )
    item18.Add( item20, 0, wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT, 5 )

    item17.Add( item18, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.BOTTOM, 5 )

    item21 = Button( parent, ID_BTNAZISEL, "Seleziona azienda", wx.DefaultPosition, wx.DefaultSize, 0 )
    item21.SetName( "butazisel" )
    item17.Add( item21, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT, 5 )

    item22 = wx.Panel(parent, ID_DETAILS); AziendaDetailsFunc(item22)
    item17.Add( item22, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.TOP|wx.BOTTOM, 5 )

    item23 = wx.Panel(parent, ID_SETUP); AdminPanelFunc(item23)
    item17.Add( item23, 0, wx.GROW|wx.RIGHT|wx.BOTTOM, 5 )

    item3.Add( item17, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 )

    item3.AddGrowableCol( 1 )

    item0.Add( item3, 0, wx.GROW|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
Ejemplo n.º 8
0
def BilCeeCardFunc( 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 = wx.StaticText( parent, ID_TEXT, "Sezione:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item2.Add( item3, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.TOP|wx.BOTTOM, 5 )

    item4 = TextCtrl( parent, ID_SEZIONE, "", wx.DefaultPosition, [20,-1], 0 )
    item4.SetFont( wx.Font( 10, wx.MODERN, wx.NORMAL, wx.NORMAL ) )
    item4.SetName( "sezione" )
    item2.Add( item4, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

    item5 = wx.StaticText( parent, ID_TEXT, "Voce:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item2.Add( item5, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.TOP|wx.BOTTOM, 5 )

    item6 = TextCtrl( parent, ID_VOCE, "", wx.DefaultPosition, [20,-1], 0 )
    item6.SetFont( wx.Font( 10, wx.MODERN, wx.NORMAL, wx.NORMAL ) )
    item6.SetName( "voce" )
    item2.Add( item6, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

    item7 = wx.StaticText( parent, ID_TEXT, "Capitolo:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item2.Add( item7, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.TOP|wx.BOTTOM, 5 )

    item8 = TextCtrl( parent, ID_CAPITOLO, "", wx.DefaultPosition, [40,-1], 0 )
    item8.SetFont( wx.Font( 10, wx.MODERN, wx.NORMAL, wx.NORMAL ) )
    item8.SetName( "capitolo" )
    item2.Add( item8, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

    item9 = wx.StaticText( parent, ID_TEXT, "Dettaglio:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item2.Add( item9, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.TOP|wx.BOTTOM, 5 )

    item10 = TextCtrl( parent, ID_DETTAGLIO, "", wx.DefaultPosition, [30,-1], 0 )
    item10.SetFont( wx.Font( 10, wx.MODERN, wx.NORMAL, wx.NORMAL ) )
    item10.SetName( "dettaglio" )
    item2.Add( item10, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

    item11 = wx.StaticText( parent, ID_TEXT, "Sub-dett.:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item2.Add( item11, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.TOP|wx.BOTTOM, 5 )

    item12 = TextCtrl_LC( parent, ID_SUBDETT, "", wx.DefaultPosition, [20,-1], 0 )
    item12.SetFont( wx.Font( 10, wx.MODERN, wx.NORMAL, wx.NORMAL ) )
    item12.SetName( "subdett" )
    item2.Add( item12, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

    item13 = UnoZeroCheckBox( parent, ID_SELECTABLE, "Selezionabile dal sottoconto", wx.DefaultPosition, wx.DefaultSize, 0 )
    item13.SetName( "selectable" )
    item2.Add( item13, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.TOP|wx.BOTTOM, 5 )

    item0.Add( item2, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 )

    item0.Add( [ 20, 230 ] , 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
Ejemplo n.º 9
0
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
Ejemplo n.º 10
0
def DbMySql(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 2, 0, 0)

    item1 = wx.StaticText(parent, ID_TEXT, "Descrizione:", wx.DefaultPosition,
                          wx.DefaultSize, wx.ALIGN_RIGHT)
    item0.Add(
        item1, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP
        | wx.BOTTOM, 5)

    item2 = TextCtrl_LC(parent, ID_MYSQLDESC, "", wx.DefaultPosition,
                        wx.DefaultSize, 0)
    item2.SetName("MySQL_desc")
    item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item3 = wx.StaticText(parent, ID_TEXT, "Server URL:", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item0.Add(item3, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
              5)

    item4 = wx.FlexGridSizer(1, 0, 0, 0)

    item5 = TextCtrl_LC(parent, ID_MYSQLHOST, "", wx.DefaultPosition,
                        wx.DefaultSize, 0)
    item5.SetName("MySQL_host")
    item4.Add(
        item5, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item6 = wx.StaticText(parent, ID_TEXT, "Porta:", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item4.Add(item6, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
              5)

    item7 = NumCtrl(parent,
                    integerWidth=5,
                    allowNegative=False,
                    groupDigits=False)
    item7.SetName("MySQL_port")
    item4.Add(
        item7, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

    item4.AddGrowableCol(0)

    item0.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item8 = wx.StaticText(parent, ID_TEXT, "Utente:", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item0.Add(item8, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
              5)

    item9 = wx.FlexGridSizer(1, 0, 0, 0)

    item10 = TextCtrl_LC(parent, ID_MYSQLUSER, "", wx.DefaultPosition,
                         [80, -1], 0)
    item10.SetName("MySQL_user")
    item9.Add(
        item10, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item11 = wx.StaticText(parent, ID_TEXT, "Password:"******"", wx.DefaultPosition, [80, -1],
                         wx.TE_PASSWORD)
    item12.SetName("MySQL_pswd")
    item9.Add(
        item12, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item13 = wx.Button(parent, ID_CONNTEST, "Test", wx.DefaultPosition,
                       [40, -1], 0)
    item9.Add(item13, 0, wx.ALIGN_CENTER | wx.RIGHT | wx.BOTTOM, 5)

    item9.AddGrowableCol(0)

    item9.AddGrowableCol(2)

    item0.Add(item9, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 0)

    item0.AddGrowableCol(1)

    if set_sizer == True:
        parent.SetSizer(item0)
        if call_fit == True:
            item0.SetSizeHints(parent)

    return item0
Ejemplo n.º 11
0
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
Ejemplo n.º 12
0
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
Ejemplo n.º 13
0
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
Ejemplo n.º 14
0
def EmailConfigFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

    item2 = wx.StaticBox(parent, -1,
                         u"Parametri collegamento server posta elettronica")
    item1 = wx.StaticBoxSizer(item2, wx.VERTICAL)

    item3 = wx.FlexGridSizer(0, 2, 0, 0)

    item4 = wx.StaticText(parent, ID_TEXT, u"Server SMTP:", wx.DefaultPosition,
                          [100, -1], wx.ALIGN_RIGHT)
    item3.Add(item4, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
              5)

    item5 = TextCtrl_LC(parent, ID_SMTPADDR, "", wx.DefaultPosition, [300, -1],
                        0)
    item5.SetName("smtpaddr")
    item3.Add(item5, 0,
              wx.GROW | wx.ALIGN_BOTTOM | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item6 = wx.StaticText(parent, ID_TEXT, u"Indirizzo mittente:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item3.Add(item6, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
              5)

    item7 = TextCtrl_LC(parent, ID_SENDER, "", wx.DefaultPosition, [200, -1],
                        0)
    item7.SetName("sender")
    item3.Add(item7, 0,
              wx.GROW | wx.ALIGN_BOTTOM | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item8 = wx.StaticText(parent, ID_TEXT, u"Porta (25):", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item3.Add(item8, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
              5)

    item9 = wx.FlexGridSizer(1, 0, 0, 0)

    item10 = NumCtrl(parent,
                     ID_SMTPPORT,
                     integerWidth=4,
                     allowNegative=False,
                     groupDigits=False)
    item10.SetName("smtpport")
    item9.Add(item10, 0,
              wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item11 = EmailAuthCheckBox(parent, ID_AUTHREQ, u"Effettua il login",
                               wx.DefaultPosition, wx.DefaultSize, 0)
    item11.SetName("authreq")
    item9.Add(item11, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item12 = UnoZeroCheckBox(parent, ID_AUTHTLS, u"Usa TLS (porta=587)",
                             wx.DefaultPosition, wx.DefaultSize, 0)
    item12.SetName("authtls")
    item9.Add(item12, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item3.Add(item9, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item3.AddGrowableCol(1)

    item1.Add(item3, 0, wx.GROW, 5)

    item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item14 = wx.StaticBox(parent, -1,
                          u"Parametri per l'autenticazione, se necessari")
    item13 = wx.StaticBoxSizer(item14, wx.VERTICAL)

    item15 = wx.FlexGridSizer(0, 2, 0, 0)

    item16 = wx.StaticText(parent, ID_TEXT, u"Utente:", wx.DefaultPosition,
                           [100, -1], wx.ALIGN_RIGHT)
    item15.Add(item16, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item17 = TextCtrl_LC(parent, ID_AUTHUSER, "", wx.DefaultPosition,
                         [300, -1], 0)
    item17.SetName("authuser")
    item15.Add(item17, 0,
               wx.GROW | wx.ALIGN_BOTTOM | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item18 = wx.StaticText(parent, ID_TEXT, u"Password:"******"", wx.DefaultPosition,
                         [300, -1], wx.TE_PASSWORD)
    item19.SetName("authpswd")
    item15.Add(item19, 0,
               wx.GROW | wx.ALIGN_BOTTOM | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item15.AddGrowableCol(1)

    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)

    item20 = wx.BoxSizer(wx.HORIZONTAL)

    item21 = wx.Button(parent, ID_BTNTEST, u"Test", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item21.SetName("btntest")
    item20.Add(item21, 0, wx.ALIGN_CENTER | wx.LEFT | wx.BOTTOM, 5)

    item22 = wx.Button(parent, ID_BTNOK, u"OK", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item22.SetName("btnok")
    item20.Add(item22, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item0.Add(item20, 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
Ejemplo n.º 15
0
def XmppConfigFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

    item2 = wx.StaticBox(parent, -1,
                         u"Parametri collegamento server messaggistica")
    item1 = wx.StaticBoxSizer(item2, wx.VERTICAL)

    item3 = wx.FlexGridSizer(0, 2, 0, 0)

    item4 = wx.StaticText(parent, ID_TEXT, u"Server XMPP:", wx.DefaultPosition,
                          [100, -1], wx.ALIGN_RIGHT)
    item3.Add(item4, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
              5)

    item5 = TextCtrl_LC(parent, ID_XMPPADDR, "", wx.DefaultPosition, [300, -1],
                        0)
    item5.SetName("xmppaddr")
    item3.Add(item5, 0,
              wx.GROW | wx.ALIGN_BOTTOM | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item6 = wx.StaticText(parent, ID_TEXT, u"Porta (5222):",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item3.Add(item6, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
              5)

    item7 = wx.FlexGridSizer(0, 2, 0, 0)

    item8 = NumCtrl(parent,
                    ID_XMPPPORT,
                    integerWidth=4,
                    allowNegative=False,
                    groupDigits=False)
    item8.SetName("xmppport")
    item7.Add(item8, 0,
              wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item9 = UnoZeroCheckBox(parent, ID_ONLINEONLY,
                            u"Invia solo se il destinatario risulta online",
                            wx.DefaultPosition, wx.DefaultSize, 0)
    item9.SetName("onlineonly")
    item7.Add(item9, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item3.Add(item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item10 = wx.StaticText(parent, ID_TEXT, u"JID mittente:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item3.Add(item10, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
              5)

    item11 = TextCtrl_LC(parent, ID_AUTHUSER, "", wx.DefaultPosition,
                         [200, -1], 0)
    item11.SetName("authuser")
    item3.Add(item11, 0,
              wx.GROW | wx.ALIGN_BOTTOM | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item12 = wx.StaticText(parent, ID_TEXT, u"Password:"******"", wx.DefaultPosition,
                         [300, -1], wx.TE_PASSWORD)
    item13.SetName("authpswd")
    item3.Add(item13, 0,
              wx.GROW | wx.ALIGN_BOTTOM | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item3.AddGrowableCol(1)

    item1.Add(item3, 0, wx.GROW, 5)

    item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item14 = wx.BoxSizer(wx.HORIZONTAL)

    item15 = wx.Button(parent, ID_BTNTEST, u"Test", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item15.SetName("btntest")
    item14.Add(item15, 0, wx.ALIGN_CENTER | wx.LEFT | wx.BOTTOM, 5)

    item16 = wx.Button(parent, ID_BTNOK, u"OK", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item16.SetName("btnok")
    item14.Add(item16, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item0.Add(item14, 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