示例#1
0
def EffettiFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

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

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

    item3 = RadioBox(parent, ID_TIPEFF, "Tipo effetti da emettere:",
                     wx.DefaultPosition, wx.DefaultSize,
                     ["RIBA - Ricevute Bancarie", "RID - Addebito sul conto"],
                     1, wx.RA_SPECIFY_ROWS)
    item2.Add(item3, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP,
              5)

    item5 = wx.StaticBox(parent, -1, "Selezioni")
    item4 = wx.StaticBoxSizer(item5, wx.VERTICAL)

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

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

    item8 = LinkTable(parent, ID_CAUS)
    item8.SetDataLink(bt.TABNAME_CFGCONTAB, "caus", None)
    item6.Add(item8, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5)

    item9 = wx.StaticText(parent, ID_TEXT, "Mod. pagamento:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item6.Add(item9, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM,
              5)

    item10 = LinkTable(parent, ID_MODPAG)
    item10.SetDataLink(bt.TABNAME_MODPAG, "modpag", ModPagDialog)
    item6.Add(item10, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5)

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

    item12 = LinkTablePdc(parent, ID_PDC)
    item12.SetDataLink(bt.TABNAME_PDC, "pdc", ClientiDialog)
    item6.Add(item12, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5)

    item6.AddGrowableCol(1)

    item4.Add(item6, 0, wx.GROW, 5)

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

    item14 = wx.FlexGridSizer(0, 3, 0, 0)

    item15 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item14.Add(item15, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.TOP, 5)

    item16 = wx.StaticText(parent, ID_TEXT, "Da:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item14.Add(
        item16, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.TOP, 5)

    item17 = wx.StaticText(parent, ID_TEXT, "A:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item14.Add(item17, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP,
               5)

    item18 = wx.StaticText(parent, ID_TEXT, "Data scadenza:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item14.Add(item18, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5)

    item19 = DateCtrl(parent, ID_DATSCA1, "", wx.DefaultPosition, [80, -1], 0)
    item19.SetName("datsca1")
    item14.Add(
        item19, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item20 = DateCtrl(parent, ID_DATSCA2, "", wx.DefaultPosition, [80, -1], 0)
    item20.SetName("datsca2")
    item14.Add(item20, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

    item21 = wx.StaticText(parent, ID_TEXT, "Data documento:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item14.Add(item21, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5)

    item22 = DateCtrl(parent, ID_DATDOC1, "", wx.DefaultPosition, [80, -1], 0)
    item22.SetName("datdoc1")
    item14.Add(
        item22, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item23 = DateCtrl(parent, ID_DATDOC2, "", wx.DefaultPosition, [80, -1], 0)
    item23.SetName("datdoc2")
    item14.Add(item23, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

    item13.Add(item14, 0, wx.GROW, 5)

    item24 = wx.FlexGridSizer(0, 3, 0, 0)

    item25 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item24.Add(item25, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5)

    item26 = wx.StaticText(parent, ID_TEXT, "Da:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item24.Add(
        item26, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.TOP, 5)

    item27 = wx.StaticText(parent, ID_TEXT, "A:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item24.Add(item27, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.TOP,
               5)

    item28 = wx.StaticText(parent, ID_TEXT, "Num. doc.:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item24.Add(item28, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item29 = NumCtrl(parent,
                     integerWidth=10,
                     allowNegative=False,
                     groupDigits=False)
    item29.SetName("numdoc1")
    item29.SetId(ID_NUMDOC1)
    item24.Add(item29, 0,
               wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item30 = NumCtrl(parent,
                     integerWidth=10,
                     allowNegative=False,
                     groupDigits=False)
    item30.SetName("numdoc2")
    item30.SetId(ID_NUMDOC2)
    item24.Add(item30, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5)

    item13.Add(item24, 0, wx.ALIGN_BOTTOM | wx.ALIGN_CENTER_HORIZONTAL, 5)

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

    item31 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [400, -1],
                           wx.LI_HORIZONTAL)
    item4.Add(item31, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.BOTTOM, 5)

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

    item33 = wx.BoxSizer(wx.HORIZONTAL)

    item34 = wx.StaticText(parent, ID_TEXT, "Includi:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item33.Add(item34, 0, wx.ALIGN_CENTER | wx.TOP | wx.BOTTOM, 5)

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

    item36 = wx.CheckBox(parent, ID_INCLEMES, "Effetti Emessi",
                         wx.DefaultPosition, wx.DefaultSize, 0)
    item35.Add(item36, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item37 = wx.CheckBox(parent, ID_INCLCONT, "Contabilizzati",
                         wx.DefaultPosition, wx.DefaultSize, 0)
    item35.Add(item37, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item38 = wx.CheckBox(parent, ID_INCLINSOL, "Insoluti", wx.DefaultPosition,
                         wx.DefaultSize, 0)
    item35.Add(
        item38, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item39 = wx.CheckBox(parent, ID_INCLCHIUS, "Partite chiuse",
                         wx.DefaultPosition, wx.DefaultSize, 0)
    item35.Add(
        item39, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item33.Add(item35, 0, wx.ALIGN_CENTER, 5)

    item32.Add(item33, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item40 = wx.Button(parent, ID_BUTSRC, "&Cerca", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item40.SetDefault()
    item32.Add(
        item40, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP
        | wx.BOTTOM, 5)

    item32.AddGrowableCol(1)

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

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

    item2.AddGrowableCol(0)

    item2.AddGrowableRow(1)

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

    item42 = wx.StaticBox(parent, -1, "Emissione")
    item41 = wx.StaticBoxSizer(item42, wx.VERTICAL)

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

    item44 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item43.Add(item44, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT, 5)

    item45 = wx.StaticText(parent, ID_TEXT,
                           "Dati per l'emissione degli effetti",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item45.SetForegroundColour(wx.BLUE)
    item43.Add(item45, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT, 5)

    item46 = wx.StaticText(parent, ID_TEXT, "Data distinta:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item43.Add(item46, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5)

    item47 = DateCtrl(parent, ID_DATDIST, "", wx.DefaultPosition, [80, -1], 0)
    item47.SetName("datdist")
    item43.Add(item47, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5)

    item48 = wx.StaticText(parent, ID_TEXT, "Banca:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item43.Add(item48, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5)

    item49 = LinkTablePdc(parent, ID_BANCA)
    item49.SetDataLink(bt.TABNAME_PDC, "banca", BancheDialog)
    item43.Add(item49, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5)

    item50 = wx.StaticText(parent, ID_TEXT, "Conto effetti:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item43.Add(item50, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5)

    item51 = LinkTableEffetto(parent, ID_CONTOEFF, "contoeff")
    item43.Add(item51, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5)

    item43.Add([1, 1], 0, wx.ALIGN_CENTER, 5)

    item52 = wx.Button(parent, ID_BUTDIST, "Stampa &distinta",
                       wx.DefaultPosition, wx.DefaultSize, 0)
    item43.Add(item52, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5)

    item53 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item43.Add(item53, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.TOP, 5)

    item54 = wx.StaticText(parent, ID_TEXT,
                           "Generazione file da trasmettere alla banca",
                           wx.DefaultPosition, [260, -1], 0)
    item54.SetForegroundColour(wx.BLUE)
    item43.Add(item54, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5)

    item55 = wx.StaticText(parent, ID_TEXT, "Percorso file:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item43.Add(item55, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item56 = FilePathControl(parent, ID_FILEPATH)
    item43.Add(item56, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5)

    item43.Add([1, 1], 0, wx.ALIGN_CENTER, 5)

    item57 = wx.Button(parent, ID_BUTFILE, "Genera &file", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item43.Add(item57, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item58 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item43.Add(item58, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.TOP, 5)

    item59 = wx.StaticText(parent, ID_TEXT, "Contabilizzazione",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item59.SetForegroundColour(wx.BLUE)
    item43.Add(item59, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5)

    item60 = wx.StaticText(parent, ID_TEXT, "Causale:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item43.Add(item60, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item61 = LinkTable(parent, ID_CAUCONT)
    item61.SetDataLink(bt.TABNAME_CFGCONTAB, "caucont", None)
    item43.Add(item61, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5)

    item43.Add([1, 1], 0, wx.ALIGN_CENTER, 5)

    item62 = wx.Button(parent, ID_BUTCONT, "Avvia contabilizzazione",
                       wx.DefaultPosition, wx.DefaultSize, 0)
    item43.Add(item62, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT,
               5)

    item43.AddGrowableCol(1)

    item41.Add(item43, 0, wx.GROW, 5)

    item1.Add(
        item41, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5)

    item1.AddGrowableCol(0)

    item1.AddGrowableCol(1)

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

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

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

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

    item66 = wx.StaticText(parent, ID_TEXT, "Effetti estratti",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item66.SetForegroundColour(wx.BLUE)
    item65.Add(
        item66, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5)

    item67 = wx.Button(parent, ID_BUTSAVESEL, "Salva selezioni",
                       wx.DefaultPosition, [-1, 10], wx.NO_BORDER)
    item65.Add(item67, 0, wx.GROW | wx.ALIGN_CENTER_HORIZONTAL, 5)

    item65.AddGrowableCol(0)

    item64.Add(item65, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item68 = wx.Panel(parent, ID_PANGRID, wx.DefaultPosition, [-1, 260],
                      wx.SUNKEN_BORDER)
    item64.Add(item68, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5)

    item64.AddGrowableCol(0)

    item64.AddGrowableRow(1)

    item63.Add(item64, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

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

    item71 = wx.StaticBox(parent, -1, "Legenda")
    item70 = wx.StaticBoxSizer(item71, wx.VERTICAL)

    item72 = wx.FlexGridSizer(0, 4, 0, 0)

    item73 = wx.Panel(parent, ID_COLORSELEZ, wx.DefaultPosition, [20, 20],
                      wx.RAISED_BORDER)
    item72.Add(item73, 0, wx.ALIGN_CENTER | wx.RIGHT, 5)

    item74 = wx.StaticText(parent, ID_TEXT, "Selezionato", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item72.Add(item74, 0, wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.BOTTOM, 5)

    item75 = wx.Panel(parent, ID_COLOREMESSO, wx.DefaultPosition, [20, 20],
                      wx.RAISED_BORDER)
    item72.Add(item75, 0, wx.ALIGN_CENTER | wx.RIGHT, 5)

    item76 = wx.StaticText(parent, ID_TEXT, "Già emesso", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item72.Add(item76, 0, wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.BOTTOM, 5)

    item77 = wx.Panel(parent, ID_COLORINSATT, wx.DefaultPosition, [20, 20],
                      wx.RAISED_BORDER)
    item72.Add(item77, 0, wx.ALIGN_CENTER | wx.RIGHT, 5)

    item78 = wx.StaticText(parent, ID_TEXT, "Insoluto aperto",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item72.Add(item78, 0, wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.BOTTOM, 5)

    item79 = wx.Panel(parent, ID_COLORINSPAG, wx.DefaultPosition, [20, 20],
                      wx.RAISED_BORDER)
    item72.Add(item79, 0, wx.ALIGN_CENTER | wx.RIGHT, 5)

    item80 = wx.StaticText(parent, ID_TEXT, "Insoluto pagato",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item72.Add(item80, 0, wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.BOTTOM, 5)

    item70.Add(item72, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

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

    item82 = wx.Panel(parent, ID_COLORERROR, wx.DefaultPosition, [20, 20],
                      wx.RAISED_BORDER)
    item81.Add(item82, 0, wx.ALIGN_CENTER | wx.RIGHT, 5)

    item83 = wx.StaticText(parent, ID_TEXT, "Dati errati o mancanti",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item81.Add(item83, 0, wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.BOTTOM, 5)

    item70.Add(item81, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item69.Add(
        item70, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item85 = wx.StaticBox(parent, -1, "Operazioni")
    item84 = wx.StaticBoxSizer(item85, wx.VERTICAL)

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

    item87 = wx.Button(parent, ID_BUTSELEFF, "Seleziona", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item86.Add(item87, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item88 = wx.Button(parent, ID_BUTDESELEFF, "Deseleziona",
                       wx.DefaultPosition, wx.DefaultSize, 0)
    item86.Add(item88, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT, 5)

    item89 = wx.Button(parent, ID_BUTSELALL, "Seleziona Tutto",
                       wx.DefaultPosition, wx.DefaultSize, 0)
    item86.Add(item89, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.TOP, 5)

    item90 = wx.Button(parent, ID_BUTDESELALL, "Deseleziona Tutto",
                       wx.DefaultPosition, wx.DefaultSize, 0)
    item86.Add(item90, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5)

    item86.AddGrowableCol(0)

    item86.AddGrowableCol(1)

    item84.Add(item86, 0, wx.ALIGN_BOTTOM | wx.ALIGN_CENTER_HORIZONTAL, 5)

    item69.Add(
        item84, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item92 = wx.StaticBox(parent, -1, "Effetti estratti")
    item91 = wx.StaticBoxSizer(item92, wx.VERTICAL)

    item93 = wx.FlexGridSizer(0, 3, 0, 0)

    item94 = wx.StaticText(parent, ID_TEXT, "N.", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item93.Add(item94, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT,
               5)

    item95 = wx.StaticText(parent, ID_TEXT, "Importo", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item93.Add(item95, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT,
               5)

    item96 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item93.Add(item96, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)

    item97 = NumCtrl(parent,
                     ID_NUMEFF,
                     integerWidth=4,
                     allowNegative=False,
                     groupDigits=True)
    item97.SetName("numeff")
    item93.Add(item97, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT,
               5)

    item98 = bt.GetValIntNumCtrl(parent, ID_TOTEFF, 'toteff')
    item93.Add(item98, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT,
               5)

    item99 = wx.Button(parent, ID_BUTLISTALL, "Lista", wx.DefaultPosition,
                       [60, -1], 0)
    item93.Add(item99, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item91.Add(item93, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item69.Add(
        item91, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item101 = wx.StaticBox(parent, -1, "Effetti selezionati")
    item100 = wx.StaticBoxSizer(item101, wx.VERTICAL)

    item102 = wx.FlexGridSizer(0, 3, 0, 0)

    item103 = wx.StaticText(parent, ID_TEXT, "N.", wx.DefaultPosition,
                            wx.DefaultSize, 0)
    item102.Add(item103, 0,
                wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)

    item104 = wx.StaticText(parent, ID_TEXT, "Importo", wx.DefaultPosition,
                            wx.DefaultSize, 0)
    item102.Add(item104, 0,
                wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)

    item105 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition,
                            wx.DefaultSize, 0)
    item102.Add(item105, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)

    item106 = NumCtrl(parent,
                      ID_NUMSEL,
                      integerWidth=4,
                      allowNegative=False,
                      groupDigits=True)
    item106.SetName("numsel")
    item102.Add(item106, 0,
                wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)

    item107 = bt.GetValIntNumCtrl(parent, ID_TOTSEL, 'totsel')
    item102.Add(item107, 0,
                wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)

    item108 = wx.Button(parent, ID_BUTLISTSEL, "Lista", wx.DefaultPosition,
                        [60, -1], 0)
    item102.Add(item108, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item100.Add(item102, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item69.Add(
        item100, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item69.AddGrowableCol(0)

    item63.Add(item69, 0, wx.ALIGN_BOTTOM, 5)

    item63.AddGrowableCol(0)

    item63.AddGrowableRow(0)

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

    item0.AddGrowableCol(0)

    item0.AddGrowableRow(1)

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

    return item0
示例#2
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
示例#3
0
def SpeIncCardFunc( parent, call_fit = True, set_sizer = True ):
    item0 = wx.FlexGridSizer( 0, 1, 0, 0 )
    
    item1 = AnagCardPanel(parent, -1)
    item0.Add( item1, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

    item3 = wx.StaticBox( parent, -1, "Spesa" )
    item2 = wx.StaticBoxSizer( item3, wx.VERTICAL )
    
    item4 = wx.FlexGridSizer( 0, 1, 0, 0 )
    
    item5 = wx.FlexGridSizer( 0, 2, 0, 0 )
    
    item6 = wx.FlexGridSizer( 0, 1, 0, 0 )
    
    item7 = wx.StaticText( parent, ID_TEXT, "Importo spesa:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item6.Add( item7, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.TOP, 5 )

    item8 = NumCtrl( parent, integerWidth=12, fractionWidth=bt.VALINT_DECIMALS, allowNegative=False, groupDigits=False); item8.SetName("importo")
    item6.Add( item8, 0, wx.ALIGN_CENTER_VERTICAL, 5 )

    item6.AddGrowableCol( 0 )

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

    item9 = wx.FlexGridSizer( 0, 1, 0, 0 )
    
    item10 = wx.StaticText( parent, ID_TEXT, "Aliquota IVA:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item9.Add( item10, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.TOP, 5 )

    item11 = LinkTable(parent, ID_MODPAG ); item11.SetDataLink( bt.TABNAME_ALIQIVA, "id_aliqiva", AliqIvaDialog ); item11.SetObligatory(True)
    item9.Add( item11, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.BOTTOM, 5 )

    item9.AddGrowableCol( 0 )

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

    item5.AddGrowableCol( 0 )

    item5.AddGrowableCol( 1 )

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

    item4.AddGrowableCol( 0 )

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

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

    item0.Add( [ 20, 110 ] , 0, wx.ALIGN_CENTER|wx.ALL, 5 )

    item0.AddGrowableCol( 0 )

    if set_sizer == True:
        parent.SetSizer( item0 )
        if call_fit == True:
            item0.SetSizeHints( parent )
    
    return item0
示例#4
0
def AliqIvaCardDatiFunc( parent, call_fit = True, set_sizer = True ):
    item0 = wx.BoxSizer( wx.VERTICAL )
    
    item2 = wx.StaticBox( parent, -1, "Percentuali di calcolo" )
    item1 = wx.StaticBoxSizer( item2, wx.VERTICAL )
    
    item3 = wx.FlexGridSizer( 0, 4, 0, 0 )
    
    item4 = wx.StaticText( parent, ID_TEXT, "Aliquota %:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item3.Add( item4, 0, wx.ALIGN_CENTER|wx.ALL, 5 )

    item5 = NumCtrl( parent, integerWidth=3, fractionWidth=2, allowNegative=False, groupDigits=False); item5.SetName("perciva")
    item3.Add( item5, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT, 5 )

    item6 = wx.StaticText( parent, ID_TEXT, "Indeducibilità %:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item3.Add( item6, 0, wx.ALIGN_CENTER|wx.ALL, 5 )

    item7 = NumCtrl( parent, integerWidth=3, fractionWidth=2, allowNegative=False, groupDigits=False); item7.SetName("percind")
    item3.Add( item7, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL, 5 )

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

    item0.Add( item1, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 )

    item8 = wx.FlexGridSizer( 1, 0, 0, 0 )
    
    item9 = RadioBox( parent, ID_TIPO, "Tipologia", wx.DefaultPosition, wx.DefaultSize, 
        ["Acquisti/Vendite","Acquisti CEE","Vendite in sospensione"] , 1, wx.RA_SPECIFY_COLS )
    item9.SetName( "tipo" )
    item8.Add( item9, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 )

    item10 = wx.FlexGridSizer( 0, 1, 0, 0 )
    
    item11 = ModoIvaRadioBox( parent, ID_MODO, "L'importo assogettato a questa aliquota è:", wx.DefaultPosition, wx.DefaultSize, 
        ["Imponibile","Non Imponibile","Esente","Fuori Campo"] , 1, wx.RA_SPECIFY_COLS )
    item11.SetName( "modo" )
    item10.Add( item11, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 )

    item13 = wx.StaticBox( parent, -1, "Spesometro 2011" )
    item12 = wx.StaticBoxSizer( item13, wx.VERTICAL )
    
    item14 = UnoZeroCheckBox( parent, ID_SM11_NO, "Escludi dalla compilazione dello spesometro", wx.DefaultPosition, wx.DefaultSize, 0 )
    item14.SetName( "sm11_no" )
    item12.Add( item14, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 )

    item10.Add( item12, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 )

    item10.AddGrowableCol( 0 )

    item8.Add( item10, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 )

    item8.AddGrowableCol( 0 )

    item8.AddGrowableCol( 1 )

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

    if set_sizer == True:
        parent.SetSizer( item0 )
        if call_fit == True:
            item0.SetSizeHints( parent )
    
    return item0
示例#5
0
def SpesometroPanelFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

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

    item2 = AcquistiVenditeCorrispettiviRadioBox(
        parent, ID_ACQVENCOR, "Tipo", wx.DefaultPosition, wx.DefaultSize,
        ["Acquisti", "Vendite", "Corrisp.", "TUTTO"], 2, wx.RA_SPECIFY_ROWS)
    item2.SetName("acqvencor")
    item1.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_HORIZONTAL | wx.ALL, 5)

    item4 = wx.StaticBox(parent, -1, "Periodo")
    item3 = wx.StaticBoxSizer(item4, wx.VERTICAL)

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

    item6 = wx.StaticText(parent, ID_TEXT, "Anno:", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item5.Add(item6, 0, wx.ALIGN_CENTER | wx.BOTTOM, 5)

    item7 = NumCtrl(parent,
                    ID_ANNO,
                    integerWidth=4,
                    fractionWidth=0,
                    groupDigits=False)
    item7.SetName('anno')
    item5.Add(item7, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

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

    item9 = DateCtrl(parent, ID_DATA1, "", wx.DefaultPosition, [80, -1], 0)
    item9.SetName("data1")
    item5.Add(item9, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5)

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

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

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

    item11 = DateCtrl(parent, ID_DATA2, "", wx.DefaultPosition, [80, -1], 0)
    item11.SetName("data2")
    item5.Add(item11, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT, 5)

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

    item1.Add(
        item3, 0,
        wx.GROW | wx.ALIGN_CENTER_HORIZONTAL | wx.RIGHT | wx.TOP | wx.BOTTOM,
        5)

    item13 = wx.StaticBox(parent, -1, "Anagrafiche")
    item12 = wx.StaticBoxSizer(item13, wx.VERTICAL)

    item14 = wx.CheckBox(parent, ID_SOLO_ALL, "Solo in allegato",
                         wx.DefaultPosition, wx.DefaultSize, 0)
    item14.SetValue(True)
    item14.SetName("solo_all")
    item12.Add(item14, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item15 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1],
                           wx.LI_HORIZONTAL)
    item12.Add(item15, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

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

    item17 = wx.StaticText(parent, ID_TEXT, "Escludi blacklist:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item16.Add(item17, 0, wx.ALIGN_CENTER | wx.RIGHT, 5)

    item18 = wx.CheckBox(parent, ID_ESCLUDI_BLA, "Anagr.", wx.DefaultPosition,
                         wx.DefaultSize, 0)
    item18.SetValue(True)
    item18.SetName("escludi_bla")
    item16.Add(item18, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item16.Add([2, 2], 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item19 = wx.CheckBox(parent, ID_ESCLUDI_BLS, "Stato", wx.DefaultPosition,
                         wx.DefaultSize, 0)
    item19.SetValue(True)
    item19.SetName("escludi_bls")
    item16.Add(item19, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5)

    item16.AddGrowableCol(1)

    item12.Add(item16, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item1.Add(
        item12, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5)

    item20 = wx.Button(parent, ID_BUTUPDATE, "Aggiorna", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item20.SetDefault()
    item20.SetName("butupdate")
    item1.Add(item20, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_BOTTOM | wx.RIGHT | wx.TOP | wx.BOTTOM,
              5)

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

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

    item22 = wx.StaticText(parent, ID_TEXT, "Elenco transazioni",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item22.SetForegroundColour(wx.BLUE)
    item22.SetName("gridtitle")
    item21.Add(
        item22, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5)

    item23 = RCheckBox(parent, ID_REGSPY, "Reg.Spy", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item23.SetName("regspy")
    item21.Add(item23, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.TOP, 5)

    item21.AddGrowableCol(0)

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

    item24 = wx.Panel(parent, ID_GRIDPANEL, wx.DefaultPosition, [900, 300],
                      wx.SUNKEN_BORDER)
    item24.SetName("gridpanel")
    item0.Add(
        item24, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

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

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

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

    item29 = wx.StaticBox(parent, -1, "Totali anagrafica")
    item28 = wx.StaticBoxSizer(item29, wx.VERTICAL)

    item30 = wx.FlexGridSizer(0, 4, 0, 0)

    item31 = wx.StaticText(parent, ID_TEXT, "Anagrafica", wx.DefaultPosition,
                           [250, -1], wx.ST_NO_AUTORESIZE)
    item30.Add(item31, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item32 = wx.StaticText(parent, ID_TEXT, "Tot.Operazioni",
                           wx.DefaultPosition, [80, -1],
                           wx.ST_NO_AUTORESIZE | wx.ALIGN_RIGHT)
    item30.Add(item32, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT,
               5)

    item33 = wx.StaticText(parent, ID_TEXT, "Tot.Imposta", wx.DefaultPosition,
                           [80, -1], wx.ST_NO_AUTORESIZE | wx.ALIGN_RIGHT)
    item30.Add(item33, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT,
               5)

    item34 = wx.StaticText(parent, ID_TEXT, "Tot.Op.+IVA", wx.DefaultPosition,
                           [80, -1], wx.ST_NO_AUTORESIZE | wx.ALIGN_RIGHT)
    item30.Add(item34, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT,
               5)

    item35 = wx.StaticText(parent, ID_TOTANADES, "-", wx.DefaultPosition,
                           [-1, 30], wx.ST_NO_AUTORESIZE)
    item35.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD))
    item35.SetName("totanades")
    item30.Add(item35, 0, wx.GROW | wx.LEFT | wx.RIGHT, 5)

    item36 = wx.StaticText(parent, ID_TOTANAIMP, "0", wx.DefaultPosition,
                           [80, -1], wx.ST_NO_AUTORESIZE | wx.ALIGN_RIGHT)
    item36.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD))
    item36.SetName("totanaimp")
    item30.Add(item36, 0, wx.ALIGN_RIGHT | wx.LEFT | wx.RIGHT, 5)

    item37 = wx.StaticText(parent, ID_TOTANAIVA, "0", wx.DefaultPosition,
                           [80, -1], wx.ST_NO_AUTORESIZE | wx.ALIGN_RIGHT)
    item37.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD))
    item37.SetName("totanaiva")
    item30.Add(item37, 0, wx.ALIGN_RIGHT | wx.LEFT | wx.RIGHT, 5)

    item38 = wx.StaticText(parent, ID_TOTANATOT, "0", wx.DefaultPosition,
                           [80, -1], wx.ST_NO_AUTORESIZE | wx.ALIGN_RIGHT)
    item38.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD))
    item38.SetName("totanatot")
    item30.Add(item38, 0, wx.ALIGN_RIGHT | wx.LEFT | wx.RIGHT, 5)

    item30.AddGrowableCol(0)

    item28.Add(item30, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item27.Add(
        item28, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item39 = TipValoriRadioBox(
        parent, ID_TIPVALORI, "Valori", wx.DefaultPosition, wx.DefaultSize,
        ["Solo eccedenti i massimali", "Tutte le operazioni"], 1,
        wx.RA_SPECIFY_COLS)
    item39.SetName("tipvalori")
    item27.Add(item39, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

    item41 = wx.StaticBox(parent, -1, "Massimali")
    item40 = wx.StaticBoxSizer(item41, wx.VERTICAL)

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

    item43 = wx.StaticText(parent, ID_TEXT, "Aziende:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item42.Add(
        item43, 0,
        wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

    item44 = NumCtrl(parent, ID_MAXAZI, integerWidth=10, fractionWidth=2)
    item44.SetName('maxazi')
    item44.Disable()
    item42.Add(item44, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.BOTTOM, 5)

    item45 = wx.StaticText(parent, ID_TEXT, "Privati:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item42.Add(item45, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT,
               5)

    item46 = NumCtrl(parent, ID_MAXPRI, integerWidth=10, fractionWidth=2)
    item46.SetName('maxpri')
    item46.Disable()
    item42.Add(item46, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 5)

    item40.Add(item42, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item27.Add(item40, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

    item27.AddGrowableCol(0)

    item26.Add(item27, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item47 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1],
                           wx.LI_HORIZONTAL)
    item26.Add(item47, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item48 = wx.StaticText(parent, ID_WARNING, "-", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item48.SetForegroundColour(wx.RED)
    item48.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD))
    item48.SetName("warning")
    item26.Add(item48, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item26.AddGrowableCol(0)

    item25.Add(item26, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

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

    item50 = wx.Button(parent, ID_BUTESTRAI, "&Estrai", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item50.SetName("butestrai")
    item50.Enable(False)
    item49.Add(item50, 0, wx.ALIGN_RIGHT | wx.RIGHT | wx.TOP | wx.BOTTOM, 5)

    item51 = wx.Button(parent, ID_BUTGENERA, "Genera file", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item51.SetName("butgenera")
    item49.Add(item51, 0, wx.ALIGN_RIGHT | wx.RIGHT | wx.BOTTOM, 5)

    item25.Add(item49, 0, wx.ALIGN_CENTER_HORIZONTAL, 5)

    item25.AddGrowableCol(0)

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

    item0.AddGrowableCol(0)

    item0.AddGrowableRow(2)

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

    return item0
示例#6
0
def SelQtaFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.BoxSizer(wx.VERTICAL)

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

    item2 = wx.RadioBox(
        parent, ID_QTAETIC, "Quantità di etichette da stampare",
        wx.DefaultPosition, wx.DefaultSize, [
            "Un'etichetta per ogni prodotto",
            "Etichette pari a giacenza o documento",
            "Il seguente numero di etichette per ogni prodotto:"
        ], 1, wx.RA_SPECIFY_COLS)
    item2.SetName("qtaetic")
    item1.Add(item2, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP,
              5)

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

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

    item6 = wx.StaticText(parent, ID_TEXT, "#", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item5.Add(
        item6, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.TOP, 5)

    item7 = NumCtrl(parent, ID_NUMETIC, integerWidth=3)
    item7.SetName("numetic")
    item5.Add(item7, 0,
              wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item5.AddGrowableCol(0)

    item3.Add(item5, 0, wx.ALIGN_BOTTOM | wx.ALIGN_CENTER_HORIZONTAL, 5)

    item1.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP,
              5)

    item1.AddGrowableCol(0)

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

    item8 = wx.BoxSizer(wx.HORIZONTAL)

    item10 = wx.StaticBox(parent, -1, "Text")
    item9 = wx.StaticBoxSizer(item10, wx.VERTICAL)

    item11 = wx.CheckBox(parent, ID_SOLOINT,
                         "Solo prodotti con codice a barre",
                         wx.DefaultPosition, wx.DefaultSize, 0)
    item11.SetName("soloint")
    item9.Add(
        item11, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5)

    item12 = wx.CheckBox(
        parent, ID_SOLOINT,
        "Solo prodotti con codici a barre generato internamente",
        wx.DefaultPosition, wx.DefaultSize, 0)
    item12.SetName("soloint")
    item9.Add(item12, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

    item8.Add(
        item9, 0,
        wx.GROW | wx.ALIGN_CENTER_HORIZONTAL | wx.LEFT | wx.RIGHT | wx.BOTTOM,
        5)

    item0.Add(item8, 0, wx.ALIGN_CENTER_VERTICAL, 5)

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

    item14 = wx.BoxSizer(wx.HORIZONTAL)

    item15 = wx.Button(parent, ID_PRINTETIC, "Genera", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item15.SetDefault()
    item14.Add(item15, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item13.Add(item14, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 5)

    item13.AddGrowableCol(1)

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

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

    return item0
示例#7
0
def FatturatoPdcFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

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

    item3 = wx.StaticBox(parent, -1, "Selezioni sui clienti")
    item2 = wx.StaticBoxSizer(item3, wx.VERTICAL)

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

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

    item6 = wx.StaticText(parent, ID_TEXT, "Da:", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item4.Add(item6, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item7 = wx.StaticText(parent, ID_TEXT, "A:", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item4.Add(item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)

    item8 = wx.StaticText(parent, ID_LABCOD, "Rag. sociale:",
                          wx.DefaultPosition, [70, -1], wx.ALIGN_RIGHT)
    item4.Add(
        item8, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP
        | wx.BOTTOM, 5)

    item9 = LinkTableAnag(parent, ID_PDC1)
    item9.SetDataLink(bt.TABNAME_PDC, "pdc1", AnagDialog)
    item4.Add(item9, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP,
              5)

    item10 = LinkTableAnag(parent, ID_PDC2)
    item10.SetDataLink(bt.TABNAME_PDC, "pdc2", AnagDialog)
    item4.Add(item10, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5)

    item11 = wx.StaticText(parent, ID_LABTIP, "Agente:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item4.Add(item11, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
              5)

    item12 = LinkTable(parent, ID_AGENTE1)
    item12.SetDataLink(bt.TABNAME_AGENTI, "agente1", AgentiDialog)
    item4.Add(item12, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item13 = LinkTable(parent, ID_AGENTE2)
    item13.SetDataLink(bt.TABNAME_AGENTI, "agente2", AgentiDialog)
    item4.Add(
        item13, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5)

    item14 = wx.StaticText(parent, ID_LABTIP, "Categoria:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item4.Add(item14, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
              5)

    item15 = LinkTable(parent, ID_CATANA1)
    item15.SetDataLink(TABNAME_CATANA, "catana1", CatAnaDialog)
    item4.Add(
        item15, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item16 = LinkTable(parent, ID_CATANA2)
    item16.SetDataLink(TABNAME_CATANA, "catana2", CatAnaDialog)
    item4.Add(item16, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

    item4.AddGrowableCol(1)

    item4.AddGrowableCol(2)

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

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

    item17 = wx.RadioBox(
        parent, ID_RADIOBOX, "Ordina per:", wx.DefaultPosition, wx.DefaultSize,
        ["Anagrafica", "Fatturato, da 0", "Fatturato, dal massimo"], 1,
        wx.RA_SPECIFY_COLS)
    item17.SetName("tipord")
    item1.Add(
        item17, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5)

    item1.AddGrowableCol(0)

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

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

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

    item21 = wx.StaticBox(parent, -1, "Selezioni sui prodotti")
    item20 = wx.StaticBoxSizer(item21, wx.VERTICAL)

    item22 = wx.FlexGridSizer(0, 3, 0, 0)

    item23 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item22.Add(item23, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item24 = wx.StaticText(parent, ID_TEXT, "Da:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item22.Add(item24, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item25 = wx.StaticText(parent, ID_TEXT, "A:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item22.Add(item25, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)

    item26 = wx.StaticText(parent, ID_LABCOD, "Codice:", wx.DefaultPosition,
                           [70, -1], wx.ALIGN_RIGHT)
    item22.Add(item26, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5)

    item27 = TextCtrl(parent, ID_CODICE1, "", wx.DefaultPosition, [100, -1], 0)
    item27.SetName("codart1")
    item22.Add(item27, 0,
               wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5)

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

    item29 = TextCtrl(parent, ID_CODICE2, "", wx.DefaultPosition, [100, -1], 0)
    item29.SetName("codart2")
    item28.Add(item29, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5)

    item30 = RCheckBox(parent, ID_SOLOPROD, "Solo prodotti codificati",
                       wx.DefaultPosition, wx.DefaultSize, 0)
    item30.SetValue(True)
    item30.SetName("soloprod")
    item28.Add(item30, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
               5)

    item28.AddGrowableCol(1)

    item22.Add(item28, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item31 = wx.StaticText(parent, ID_LABCOD, "Descrizione:",
                           wx.DefaultPosition, [70, -1], wx.ALIGN_RIGHT)
    item22.Add(item31, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5)

    item32 = TextCtrl(parent, ID_DESCRIZ1, "", wx.DefaultPosition, [240, -1],
                      0)
    item32.SetName("descriz1")
    item22.Add(
        item32, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5)

    item33 = TextCtrl(parent, ID_DESCRIZ2, "", wx.DefaultPosition, [240, -1],
                      0)
    item33.SetName("descriz2")
    item22.Add(item33, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5)

    item34 = wx.StaticText(parent, ID_LABTIP, "Tipologia:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item22.Add(item34, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5)

    item35 = LinkTable(parent, ID_TIPART1)
    item35.SetDataLink(bt.TABNAME_TIPART, "tipart1", TipArtDialog)
    item22.Add(
        item35, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5)

    item36 = LinkTable(parent, ID_TIPART2)
    item36.SetDataLink(bt.TABNAME_TIPART, "tipart2", TipArtDialog)
    item22.Add(item36, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5)

    item37 = wx.StaticText(parent, ID_LABCAT, "Categoria:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item22.Add(item37, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5)

    item38 = LinkTable(parent, ID_CATART1)
    item38.SetDataLink(bt.TABNAME_CATART, "catart1", CatArtDialog)
    item22.Add(
        item38, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5)

    item39 = LinkTable(parent, ID_CATART2)
    item39.SetDataLink(bt.TABNAME_CATART, "catart2", CatArtDialog)
    item22.Add(item39, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5)

    item40 = wx.StaticText(parent, ID_LABGRUART, "Gruppo merce:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item22.Add(
        item40, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP
        | wx.BOTTOM, 5)

    item41 = LinkTable(parent, ID_GRUART1)
    item41.SetDataLink(bt.TABNAME_GRUART, "gruart1", GruArtDialog)
    item22.Add(item41, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item42 = LinkTable(parent, ID_GRUART2)
    item42.SetDataLink(bt.TABNAME_GRUART, "gruart2", GruArtDialog)
    item22.Add(
        item42, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5)

    item43 = wx.StaticText(parent, ID_LABSTATART, "Status:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item22.Add(item43, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item44 = LinkTable(parent, ID_STATART1)
    item44.SetDataLink(bt.TABNAME_STATART, "statart1", StatArtDialog)
    item22.Add(
        item44, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item45 = LinkTable(parent, ID_STATART2)
    item45.SetDataLink(bt.TABNAME_STATART, "statart2", StatArtDialog)
    item22.Add(item45, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

    item22.AddGrowableCol(1)

    item22.AddGrowableCol(2)

    item20.Add(item22, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item19.Add(item20, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item19.AddGrowableCol(0)

    item18.Add(item19, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

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

    item48 = wx.StaticBox(parent, -1, "Periodo")
    item47 = wx.StaticBoxSizer(item48, wx.VERTICAL)

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

    item50 = wx.StaticText(parent, ID_TEXT, "Dal:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item49.Add(item50, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item51 = DateCtrl(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [70, -1], 0)
    item51.SetName("datreg1")
    item49.Add(item51, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item52 = wx.StaticText(parent, ID_TEXT, "al:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item49.Add(item52, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item53 = DateCtrl(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [70, -1], 0)
    item53.SetName("datreg2")
    item49.Add(item53, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item47.Add(item49, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item46.Add(
        item47, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item55 = wx.StaticBox(parent, -1, "Limiti sul fatturato")
    item54 = wx.StaticBoxSizer(item55, wx.VERTICAL)

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

    item57 = wx.StaticText(parent, ID_TEXT, "da un minimo di:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item56.Add(item57, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item58 = NumCtrl(parent,
                     ID_FATMIN,
                     integerWidth=10,
                     fractionWidth=bt.VALINT_DECIMALS,
                     allowNegative=False)
    item58.SetName("fatmin")
    item56.Add(item58, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
               5)

    item59 = wx.StaticText(parent, ID_TEXT, "ad un massimo di:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item56.Add(item59, 0, wx.ALIGN_CENTER | wx.LEFT | wx.BOTTOM, 5)

    item60 = NumCtrl(parent,
                     ID_FATMAX,
                     integerWidth=10,
                     fractionWidth=bt.VALINT_DECIMALS,
                     allowNegative=False)
    item60.SetName("fatmax")
    item56.Add(
        item60, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

    item54.Add(item56, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item46.Add(
        item54, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item62 = wx.StaticBox(parent, -1, "Azioni")
    item61 = wx.StaticBoxSizer(item62, wx.VERTICAL)

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

    item64 = wx.Button(parent, ID_UPDATE, "Applica", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item64.SetDefault()
    item64.SetName("btnok")
    item63.Add(item64, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item65 = wx.Button(parent, ID_PRINT, "&Lista", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item65.SetName("btnprint")
    item63.Add(
        item65, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

    item61.Add(item63, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 5)

    item46.Add(item61, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item18.Add(item46, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item18.AddGrowableCol(0)

    item18.AddGrowableRow(0)

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

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

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

    item68 = wx.StaticText(parent, ID_LABGRIDFAT, "Elenco fatturato",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item68.SetForegroundColour(wx.BLUE)
    item67.Add(item68, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5)

    item67.AddGrowableCol(0)

    item66.Add(item67, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item69 = wx.Panel(parent, ID_PANGRIDFAT, wx.DefaultPosition, [800, 300],
                      wx.SUNKEN_BORDER)
    item69.SetName("pangridfat")
    item66.Add(
        item69, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item66.AddGrowableCol(0)

    item66.AddGrowableRow(1)

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

    item0.AddGrowableCol(0)

    item0.AddGrowableRow(2)

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

    return item0
示例#8
0
def SovrapposizioneFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

    item1 = wx.StaticText(parent, ID_TIPOTIT, "Sovrapposizione di esercizi",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item1.SetFont(wx.Font(14, wx.SWISS, wx.NORMAL, wx.NORMAL))
    item1.SetName("tipotit")
    item0.Add(item1, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP,
              5)

    item3 = wx.StaticBox(parent, -1, "")
    item2 = wx.StaticBoxSizer(item3, wx.VERTICAL)

    item4 = wx.StaticText(
        parent, ID_TEXT,
        "Questa funzione crea un nuovo esercizio contabile, attivando la sovrapposizione con quello in corso:\n"
        "Saranno azzerati i progressivi di stampa del giornale bollato, i progressivi dare/avere del giornale \n"
        "relativi all'esercizio in corso saranno spostati su quello precedente.\n"
        "Non sarà più possibile registrare e/o apportare modifiche a registrazioni con data precedente l'inizio \n"
        "del nuovo esercizio.\n"
        "Le scritture di rettifica al bilancio dovranno essere registrate nel nuovo esercizio, mediante apposite\n"
        "causali che operano nell'esercizio precedente.", wx.DefaultPosition,
        wx.DefaultSize, 0)
    item2.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

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

    item6 = wx.StaticBox(parent, -1, "")
    item5 = wx.StaticBoxSizer(item6, wx.VERTICAL)

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

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

    item9 = wx.StaticText(parent, ID_TEXT, "Esercizio in corso:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item8.Add(
        item9, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP
        | wx.BOTTOM, 5)

    item10 = NumCtrl(parent, ID_ESERCOLD, integerWidth=4, groupDigits=False)
    item10.SetName('esercold')
    item10.SetEditable(False)
    item8.Add(item10, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

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

    item12 = NumCtrl(parent, ID_ESERCNEW, integerWidth=4, groupDigits=False)
    item12.SetName('esercnew')
    item12.SetEditable(False)
    item8.Add(
        item12, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

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

    item13 = wx.Button(parent, ID_UPDATE, "Conferma", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item13.SetName("update")
    item7.Add(item13, 0, wx.ALIGN_BOTTOM | wx.ALIGN_CENTER_HORIZONTAL | wx.ALL,
              5)

    item5.Add(item7, 0, wx.ALIGN_CENTER, 5)

    item0.Add(
        item5, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item14 = wx.StaticText(parent, ID_WARNING, "", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item14.SetForegroundColour(wx.RED)
    item14.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD))
    item14.SetName("warning")
    item0.Add(item14, 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
示例#9
0
def ChiusuraContabileNormaleDescPanelFunc(parent,
                                          call_fit=True,
                                          set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

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

    item3 = wx.StaticText(
        parent, ID_TEXT, "Questa funzione crea un nuovo esercizio contabile:\n"
        "Saranno azzerati riga, pagina e progressivi di stampa del giornale bollato.",
        wx.DefaultPosition, wx.DefaultSize, 0)
    item1.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item0.Add(
        item1, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item5 = wx.StaticBox(parent, -1, "")
    item4 = wx.StaticBoxSizer(item5, wx.VERTICAL)

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

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

    item8 = wx.StaticText(parent, ID_TEXT, "Esercizio in corso:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item7.Add(
        item8, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP
        | wx.BOTTOM, 5)

    item9 = NumCtrl(parent, ID_ESERCOLD, integerWidth=4, groupDigits=False)
    item9.SetName('esercold')
    item9.SetEditable(False)
    item7.Add(item9, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item10 = wx.StaticText(parent, ID_TEXT, "Nuovo esercizio:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item7.Add(item10, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
              5)

    item11 = NumCtrl(parent, ID_ESERCNEW, integerWidth=4, groupDigits=False)
    item11.SetName('esercnew')
    item11.SetEditable(False)
    item7.Add(
        item11, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

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

    item4.Add(item6, 0, wx.ALIGN_CENTER, 5)

    item0.Add(
        item4, 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
示例#10
0
def BilContrEconRicFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

    item1 = wx.StaticText(parent, ID_LABPATPAS, "Ricavi", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item1.SetForegroundColour(wx.BLUE)
    item1.SetBackgroundColour(wx.LIGHT_GREY)
    item1.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD))
    item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item2 = wx.Panel(parent, ID_PANECORIC, wx.DefaultPosition, [200, 100],
                     wx.SUNKEN_BORDER)
    item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

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

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

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

    item5 = wx.StaticText(parent, ID_LABECOTOTRIC, "Tot. Ricavi:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item4.Add(item5, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item6 = NumCtrl(parent,
                    ID_TOTERIC,
                    integerWidth=12,
                    fractionWidth=bt.VALINT_DECIMALS,
                    groupDigits=True)
    item6.SetName("toteric")
    item6.SetReadOnly()
    item4.Add(
        item6, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP
        | wx.BOTTOM, 5)

    item7 = wx.StaticText(parent, ID_LABEUPR, "Utile di esercizio:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item7.SetName("labeupr")
    item4.Add(
        item7, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

    item8 = NumCtrl(parent,
                    ID_TOTEUPR,
                    integerWidth=12,
                    fractionWidth=bt.VALINT_DECIMALS,
                    groupDigits=True)
    item8.SetName("toteupr")
    item8.SetReadOnly()
    item4.Add(item8, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM,
              5)

    item3.Add(item4, 0, wx.ALIGN_RIGHT, 5)

    item3.AddGrowableCol(1)

    item0.Add(item3, 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
示例#11
0
def ProgressiviFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

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

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

    item4 = wx.StaticText(parent, ID_TEXT, "Esercizio in corso:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item3.Add(item4, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item5 = NumCtrl(parent,
                    ID_CURRESERC,
                    integerWidth=4,
                    allowNegative=False,
                    groupDigits=False)
    item5.SetName("curreserc")
    item3.Add(item5, 0, wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item6 = CheckBox_01(parent, ID_SOVRAPP,
                        "Sovrapposizione di esercizio attivata",
                        wx.DefaultPosition, wx.DefaultSize, 0)
    item6.SetName("sovrapp")
    item3.Add(item6, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    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.TOP,
              5)

    item8 = wx.StaticBox(parent, -1, "Intestazione giornale")
    item7 = wx.StaticBoxSizer(item8, wx.VERTICAL)

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

    item10 = wx.StaticText(parent, ID_TEXT, "Intestazione:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item9.Add(item10, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP,
              5)

    item11 = wx.StaticText(parent, ID_TEXT, "Anno:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item9.Add(item11, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5)

    item12 = wx.StaticText(parent, ID_TEXT, "Pag.:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item9.Add(item12, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5)

    item13 = TextCtrl(parent, ID_GIOBOLINT, "", wx.DefaultPosition, [400, -1],
                      0)
    item13.SetName("giobolint")
    item9.Add(
        item13, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item14 = NumCtrl(parent,
                     ID_GIOBOLANN,
                     integerWidth=4,
                     allowNegative=False,
                     groupDigits=False)
    item14.SetName("giobolann")
    item9.Add(item14, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

    item15 = NumCtrl(parent,
                     ID_GIOBOLPAG,
                     integerWidth=4,
                     allowNegative=False,
                     groupDigits=False)
    item15.SetName("giobolpag")
    item9.Add(item15, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

    item9.AddGrowableCol(0)

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

    item0.Add(item7, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP,
              5)

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

    item18 = wx.StaticBox(parent, -1, "Giornale mastro")
    item17 = wx.StaticBoxSizer(item18, wx.VERTICAL)

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

    item20 = wx.StaticText(parent, ID_TEXT,
                           "Data ultima registrazione stampata:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item19.Add(item20, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item21 = DateCtrl(parent, ID_GIOBOLDAT, "", wx.DefaultPosition, [80, -1],
                      0)
    item21.SetName("gioboldat")
    item19.Add(item21, 0,
               wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item22 = wx.StaticText(parent, ID_TEXT, "Riga:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item19.Add(item22, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item23 = NumCtrl(parent,
                     ID_GIOBOLRIG,
                     integerWidth=6,
                     allowNegative=False,
                     groupDigits=False)
    item23.SetName("giobolrig")
    item19.Add(item23, 0,
               wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

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

    item24 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1],
                           wx.LI_HORIZONTAL)
    item17.Add(
        item24, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5)

    item25 = wx.FlexGridSizer(0, 3, 0, 0)

    item26 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item25.Add(item26, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5)

    item27 = wx.StaticText(parent, ID_TEXT, "DARE", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item25.Add(
        item27, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.TOP, 5)

    item28 = wx.StaticText(parent, ID_TEXT, "AVERE", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item25.Add(
        item28, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.TOP, 5)

    item29 = wx.StaticText(parent, ID_TEXT, "Esercizio in corso:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item25.Add(item29, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item30 = NumCtrl(parent,
                     ID_GIOBOLECD,
                     integerWidth=12,
                     fractionWidth=bt.VALINT_DECIMALS,
                     allowNegative=False,
                     groupDigits=True)
    item30.SetName("giobolecd")
    item25.Add(item30, 0,
               wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item31 = NumCtrl(parent,
                     ID_GIOBOLECA,
                     integerWidth=12,
                     fractionWidth=bt.VALINT_DECIMALS,
                     allowNegative=False,
                     groupDigits=True)
    item31.SetName("gioboleca")
    item25.Add(item31, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

    item32 = wx.StaticText(parent, ID_TEXT, "Precedente:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item25.Add(item32, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item33 = NumCtrl(parent,
                     ID_GIOBOLEPD,
                     integerWidth=12,
                     fractionWidth=bt.VALINT_DECIMALS,
                     allowNegative=False,
                     groupDigits=True)
    item33.SetName("giobolepd")
    item25.Add(item33, 0,
               wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item34 = NumCtrl(parent,
                     ID_GIOBOLEPA,
                     integerWidth=12,
                     fractionWidth=bt.VALINT_DECIMALS,
                     allowNegative=False,
                     groupDigits=True)
    item34.SetName("giobolepa")
    item25.Add(item34, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

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

    item16.Add(
        item17, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5)

    item36 = wx.StaticBox(parent, -1, "Stampa mastri")
    item35 = wx.StaticBoxSizer(item36, wx.VERTICAL)

    item37 = wx.Panel(parent, ID_PANGRIDSTM, wx.DefaultPosition, [160, 100],
                      wx.SUNKEN_BORDER)
    item37.SetName("pangridstm")
    item35.Add(item37, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item16.Add(
        item35, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5)

    item16.AddGrowableCol(0)

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

    item39 = wx.StaticBox(parent, -1, "Chiusure")
    item38 = wx.StaticBoxSizer(item39, wx.VERTICAL)

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

    item41 = wx.BoxSizer(wx.VERTICAL)

    item42 = wx.StaticText(parent, ID_TEXT, "Ultima generazione chiusure:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item41.Add(item42, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item43 = wx.StaticText(parent, ID_TEXT, "Ultima generazione aperture:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item41.Add(item43, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP, 5)

    item40.Add(item41, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 5)

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

    item45 = wx.BoxSizer(wx.VERTICAL)

    item46 = DateCtrl(parent, ID_CHIUSURA, "", wx.DefaultPosition, [80, -1], 0)
    item46.SetName("chiusura")
    item45.Add(item46, 0,
               wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item47 = DateCtrl(parent, ID_APERTURA, "", wx.DefaultPosition, [80, -1], 0)
    item47.SetName("apertura")
    item45.Add(item47, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item44.Add(item45, 0, wx.ALIGN_CENTER_VERTICAL, 5)

    item48 = CheckBox_01(parent, ID_APECHI_FLAG,
                         "Movimenti generati per l'esercizio in corso",
                         wx.DefaultPosition, wx.DefaultSize, 0)
    item48.SetName("apechi_flag")
    item44.Add(item48, 0, wx.ALIGN_CENTER | wx.RIGHT | wx.BOTTOM, 5)

    item40.Add(item44, 0, wx.ALIGN_CENTER_VERTICAL, 5)

    item49 = wx.StaticText(parent, ID_TEXT, "Aggiornamento contabile:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item40.Add(
        item49, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP
        | wx.BOTTOM, 5)

    item50 = DateCtrl(parent, ID_AGGCON, "", wx.DefaultPosition, [80, -1], 0)
    item50.SetName("aggcon")
    item40.Add(item50, 0, wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item38.Add(item40, 0, wx.ALIGN_CENTER, 5)

    item0.Add(item38, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP,
              5)

    item51 = wx.BoxSizer(wx.HORIZONTAL)

    item52 = wx.Button(parent, ID_SAVE, "Salva", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item51.Add(item52, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item0.Add(item51, 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
示例#12
0
def BilContrPatrPasFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

    item1 = wx.StaticText(parent, ID_LABPATPAS, "Passività",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item1.SetForegroundColour(wx.BLUE)
    item1.SetBackgroundColour(wx.LIGHT_GREY)
    item1.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD))
    item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item2 = wx.Panel(parent, ID_PANPATPAS, wx.DefaultPosition, wx.DefaultSize,
                     wx.SUNKEN_BORDER)
    item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

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

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

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

    item5 = NumCtrl(parent,
                    ID_PERESP,
                    integerWidth=12,
                    fractionWidth=bt.VALINT_DECIMALS,
                    groupDigits=True)
    item5.SetName("peresp")
    item5.SetReadOnly()
    item4.Add(item5, 0, wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item6 = wx.StaticText(parent, ID_LABPERESP, "Perdita da es.preced.",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item6.SetName("labperesp")
    item4.Add(
        item6, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP
        | wx.BOTTOM, 5)

    item7 = wx.StaticText(parent, ID_LABPATTOTPAS, "Tot. Passività:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item4.Add(item7, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item8 = NumCtrl(parent,
                    ID_TOTPPAS,
                    integerWidth=12,
                    fractionWidth=bt.VALINT_DECIMALS,
                    groupDigits=True)
    item8.SetName("totppas")
    item8.SetReadOnly()
    item4.Add(
        item8, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP
        | wx.BOTTOM, 5)

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

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

    item9 = wx.StaticText(parent, ID_LABPUPP, "Perdita di esercizio:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item9.SetName("labpupp")
    item4.Add(
        item9, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

    item10 = NumCtrl(parent,
                     ID_TOTPUPP,
                     integerWidth=12,
                     fractionWidth=bt.VALINT_DECIMALS,
                     groupDigits=True)
    item10.SetName("totpupp")
    item10.SetReadOnly()
    item4.Add(item10, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM,
              5)

    item4.AddGrowableCol(2)

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

    item3.AddGrowableCol(1)

    item0.Add(item3, 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
示例#13
0
def BilContrOrdAvereFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

    item1 = wx.StaticText(parent, ID_LABORDAVE, "Avere", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item1.SetForegroundColour(wx.BLUE)
    item1.SetBackgroundColour(wx.LIGHT_GREY)
    item1.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD))
    item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item2 = wx.Panel(parent, ID_PANORDAVE, wx.DefaultPosition, [200, 100],
                     wx.SUNKEN_BORDER)
    item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

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

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

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

    item5 = wx.StaticText(parent, ID_LABORDTOTAVE, "Tot. Avere:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item4.Add(item5, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item6 = NumCtrl(parent,
                    ID_TOTOAVE,
                    integerWidth=12,
                    fractionWidth=bt.VALINT_DECIMALS,
                    groupDigits=True)
    item6.SetName("totoave")
    item6.SetReadOnly()
    item4.Add(
        item6, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP
        | wx.BOTTOM, 5)

    item7 = wx.StaticText(parent, ID_LABOUPA, "Differenza:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item7.SetName("laboupa")
    item4.Add(
        item7, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

    item8 = NumCtrl(parent,
                    ID_TOTOUPA,
                    integerWidth=12,
                    fractionWidth=bt.VALINT_DECIMALS,
                    groupDigits=True)
    item8.SetName("totoupa")
    item8.SetReadOnly()
    item4.Add(item8, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM,
              5)

    item3.Add(item4, 0, wx.ALIGN_RIGHT, 5)

    item3.AddGrowableCol(1)

    item0.Add(item3, 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
示例#14
0
def AnagCardFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

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

    item2 = wx.StaticText(parent, ID_TEXT, "Codice:", wx.DefaultPosition,
                          [60, -1], 0)
    item1.Add(item2, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP,
              0)

    item3 = wx.StaticText(parent, ID_TXT_DESCRIZ, "Descrizione:",
                          wx.DefaultPosition, [90, -1], 0)
    item1.Add(item3, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP,
              0)

    item4 = wx.StaticText(parent, ID_TEXT, "id", wx.DefaultPosition,
                          wx.DefaultSize, wx.ALIGN_RIGHT)
    item1.Add(item4, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT,
              5)

    item5 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition,
                          wx.DefaultSize, wx.ALIGN_RIGHT)
    item1.Add(item5, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT, 5)

    item6 = TextCtrlCD(parent, ID_TXT_CODICE, "", wx.DefaultPosition, [60, -1],
                       0)
    item6.SetName("codice")
    item1.Add(item6, 0, wx.GROW | wx.RIGHT, 5)

    item7 = TextCtrlCD(parent, ID_TXT_DESCRIZ, "", wx.DefaultPosition,
                       [300, -1], 0)
    item7.SetName("descriz")
    item1.Add(item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)

    item8 = NumCtrl(parent,
                    integerWidth=6,
                    allowNegative=False,
                    groupDigits=False)
    item8.SetName("id")
    item8.SetEditable(False)
    item1.Add(item8, 0, wx.GROW | wx.RIGHT, 5)

    item9 = AttachmentButton(parent, ID_BTNATTACH, "", wx.DefaultPosition,
                             [90, -1], 0)
    item9.SetName("_btnattach")
    item1.Add(item9, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT,
              5)

    item1.AddGrowableCol(1)

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

    item10 = AutoNotes(parent, ID_AUTONOTES)
    item10.SetName('_attach_autotext')
    item0.Add(item10, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)

    item0.AddGrowableCol(0)

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

    return item0
示例#15
0
def GiornaleFunc(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)

    item3 = RadioBox(parent, ID_TIPOSTA, "Tipo di stampa", wx.DefaultPosition,
                     wx.DefaultSize,
                     ["Stampa Provvisoria", "Stampa Definitiva", "Ristampa"],
                     1, wx.RA_SPECIFY_COLS)
    item3.SetName("tiposta")
    item2.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item4 = wx.StaticText(parent, ID_TIPOTIT, "Stampa provvisoria",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item4.SetFont(wx.Font(15, wx.SWISS, wx.NORMAL, wx.BOLD))
    item4.SetName("tipotit")
    item2.Add(item4, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 10)

    item5 = wx.StaticText(parent, ID_TIPODES, "Descrizione stampa",
                          wx.DefaultPosition, [200, 70], wx.ST_NO_AUTORESIZE)
    item5.SetName("tipodes")
    item2.Add(item5, 0, wx.LEFT | wx.RIGHT | wx.BOTTOM, 10)

    item2.AddGrowableCol(0)

    item2.AddGrowableRow(2)

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

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

    item8 = wx.StaticBox(parent, -1, "Date e numeri di riga")
    item7 = wx.StaticBoxSizer(item8, wx.VERTICAL)

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

    item10 = wx.StaticText(parent, ID_TEXT, "Esercizio:", wx.DefaultPosition,
                           [120, -1], wx.ALIGN_RIGHT)
    item9.Add(item10, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item11 = SelEsercizioExChoice(parent, ID_ESERCIZIO, wx.DefaultPosition,
                                  [100, -1], [], 0)
    item11.SetName("esercizio")
    item9.Add(item11, 0, wx.ALIGN_CENTER | wx.ALL, 5)

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

    item12 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1],
                           wx.LI_HORIZONTAL)
    item7.Add(item12, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item13 = wx.StaticText(parent, ID_TEXT,
                           "Ultima registrazione stampata sul giornale:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item13.SetName("label_lastprt")
    item7.Add(
        item13, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

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

    item15 = wx.StaticText(parent, ID_TEXT, "Data registrazione:",
                           wx.DefaultPosition, [120, -1], wx.ALIGN_RIGHT)
    item14.Add(item15, 0, wx.ALIGN_CENTER | wx.LEFT | wx.BOTTOM, 5)

    item16 = DateCtrl(parent, ID_LASTDAT, "", wx.DefaultPosition, [80, -1], 0)
    item16.SetName("lastdat")
    item14.Add(item16, 0,
               wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item17 = wx.StaticText(parent, ID_TEXT, "Numero riga:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item14.Add(item17, 0, wx.ALIGN_CENTER | wx.LEFT | wx.BOTTOM, 5)

    item18 = NumCtrl(parent,
                     ID_LASTNUM,
                     integerWidth=6,
                     allowNegative=False,
                     groupDigits=False)
    item18.SetName("lastnum")
    item14.Add(
        item18, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

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

    item19 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1],
                           wx.LI_HORIZONTAL)
    item7.Add(item19, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item20 = wx.StaticText(parent, ID_TEXT, "Periodo da stampare:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item7.Add(
        item20, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

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

    item22 = wx.StaticText(parent, ID_TEXT, "Stampa fino al:",
                           wx.DefaultPosition, [120, -1], wx.ALIGN_RIGHT)
    item21.Add(item22, 0, wx.ALIGN_CENTER | wx.LEFT | wx.BOTTOM, 5)

    item23 = DateCtrl(parent, ID_DATA, "", wx.DefaultPosition, [80, -1], 0)
    item23.SetName("data")
    item21.Add(item23, 0,
               wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item21.AddGrowableCol(2)

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

    item24 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1],
                           wx.LI_HORIZONTAL)
    item7.Add(item24, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item25 = wx.StaticText(parent, ID_TEXT,
                           "Ultima registrazione da stampare:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item7.Add(
        item25, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

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

    item27 = wx.StaticText(parent, ID_TEXT, "Data registrazione:",
                           wx.DefaultPosition, [120, -1], wx.ALIGN_RIGHT)
    item26.Add(item27, 0, wx.ALIGN_CENTER | wx.LEFT | wx.BOTTOM, 5)

    item28 = DateCtrl(parent, ID_NEXTDAT, "", wx.DefaultPosition, [80, -1], 0)
    item28.SetName("nextdat")
    item26.Add(item28, 0,
               wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item29 = wx.StaticText(parent, ID_TEXT, "Numero riga:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item26.Add(item29, 0, wx.ALIGN_CENTER | wx.LEFT | wx.BOTTOM, 5)

    item30 = NumCtrl(parent,
                     ID_NEXTNUM,
                     integerWidth=6,
                     allowNegative=False,
                     groupDigits=False)
    item30.SetName("nextnum")
    item26.Add(
        item30, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

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

    item31 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1],
                           wx.LI_HORIZONTAL)
    item7.Add(
        item31, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item32 = wx.BoxSizer(wx.HORIZONTAL)

    item33 = wx.Button(parent, ID_UPDATE, "Aggiorna", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item33.SetDefault()
    item32.Add(item33, 0, wx.ALIGN_BOTTOM | wx.LEFT | wx.RIGHT, 5)

    item7.Add(item32, 0, wx.ALIGN_RIGHT | wx.ALIGN_BOTTOM | wx.BOTTOM, 5)

    item6.Add(item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP,
              5)

    item35 = wx.StaticBox(parent, -1, "Progressivi Dare/Avere")
    item34 = wx.StaticBoxSizer(item35, wx.VERTICAL)

    item36 = wx.StaticText(parent, ID_TEXT,
                           "Progressivi stampati sul giornale:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item34.Add(item36, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item37 = wx.FlexGridSizer(0, 3, 0, 0)

    item38 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item37.Add(item38, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT,
               5)

    item39 = wx.StaticText(parent, ID_TEXT, "Dare:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item37.Add(item39, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT,
               5)

    item40 = wx.StaticText(parent, ID_TEXT, "Avere:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item37.Add(item40, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT,
               5)

    item41 = wx.StaticText(parent, ID_TEXT, "Esercizio in corso:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item37.Add(item41, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item42 = NumCtrl(parent,
                     ID_PROGRLASTECD,
                     integerWidth=12,
                     fractionWidth=bt.VALINT_DECIMALS,
                     allowNegative=False,
                     groupDigits=True)
    item42.SetName("progrlastecd")
    item37.Add(
        item42, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

    item43 = NumCtrl(parent,
                     ID_PROGRLASTECA,
                     integerWidth=12,
                     fractionWidth=bt.VALINT_DECIMALS,
                     allowNegative=False,
                     groupDigits=True)
    item43.SetName("progrlasteca")
    item37.Add(
        item43, 0,
        wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

    item44 = wx.StaticText(parent, ID_TEXT, "Esercizio precedente:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item37.Add(item44, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item45 = NumCtrl(parent,
                     ID_PROGRLASTEPD,
                     integerWidth=12,
                     fractionWidth=bt.VALINT_DECIMALS,
                     allowNegative=False,
                     groupDigits=True)
    item45.SetName("progrlastepd")
    item37.Add(
        item45, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

    item46 = NumCtrl(parent,
                     ID_PROGRLASTEPA,
                     integerWidth=12,
                     fractionWidth=bt.VALINT_DECIMALS,
                     allowNegative=False,
                     groupDigits=True)
    item46.SetName("progrlastepa")
    item37.Add(
        item46, 0,
        wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

    item34.Add(item37, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item47 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1],
                           wx.LI_HORIZONTAL)
    item34.Add(item47, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item48 = wx.StaticText(parent, ID_TEXT, "Progressivi a fine stampa:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item34.Add(item48, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item49 = wx.FlexGridSizer(0, 3, 0, 0)

    item50 = wx.StaticText(parent, ID_TEXT, "", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item49.Add(item50, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT,
               5)

    item51 = wx.StaticText(parent, ID_TEXT, "Dare:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item49.Add(item51, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT,
               5)

    item52 = wx.StaticText(parent, ID_TEXT, "Avere:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item49.Add(item52, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT,
               5)

    item53 = wx.StaticText(parent, ID_TEXT, "Esercizio in corso:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item49.Add(item53, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item54 = NumCtrl(parent,
                     ID_PROGRNEXTECD,
                     integerWidth=12,
                     fractionWidth=bt.VALINT_DECIMALS,
                     allowNegative=False,
                     groupDigits=True)
    item54.SetName("progrnextecd")
    item49.Add(
        item54, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

    item55 = NumCtrl(parent,
                     ID_PROGRNEXTECA,
                     integerWidth=12,
                     fractionWidth=bt.VALINT_DECIMALS,
                     allowNegative=False,
                     groupDigits=True)
    item55.SetName("progrnexteca")
    item49.Add(
        item55, 0,
        wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

    item56 = wx.StaticText(parent, ID_TEXT, "Esercizio precedente:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item49.Add(item56, 0,
               wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
               5)

    item57 = NumCtrl(parent,
                     ID_PROGRNEXTEPD,
                     integerWidth=12,
                     fractionWidth=bt.VALINT_DECIMALS,
                     allowNegative=False,
                     groupDigits=True)
    item57.SetName("progrnextepd")
    item49.Add(
        item57, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

    item58 = NumCtrl(parent,
                     ID_PROGRNEXTEPA,
                     integerWidth=12,
                     fractionWidth=bt.VALINT_DECIMALS,
                     allowNegative=False,
                     groupDigits=True)
    item58.SetName("progrnextepa")
    item49.Add(
        item58, 0,
        wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5)

    item34.Add(item49, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item59 = wx.StaticText(parent, ID_TEXT,
                           "ATTENZIONE! Rilevata squadratura dare/avere",
                           wx.DefaultPosition, wx.DefaultSize, wx.ALIGN_CENTRE)
    item59.SetForegroundColour(wx.RED)
    item59.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD))
    item59.SetName("warningsquad")
    item34.Add(item59, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item6.Add(item34, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5)

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

    item1.AddGrowableCol(1)

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

    item61 = wx.StaticBox(parent, -1, "Intestazione registro")
    item60 = wx.StaticBoxSizer(item61, wx.VERTICAL)

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

    item63 = wx.CheckBox(parent, ID_INTATT, "Attiva", wx.DefaultPosition,
                         wx.DefaultSize, 0)
    item63.SetName("intatt")
    item62.Add(item63, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item64 = wx.StaticText(parent, ID_TEXT, "Intestazione:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item62.Add(item64, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item65 = TextCtrl(parent, ID_INTDES, "", wx.DefaultPosition,
                      wx.DefaultSize, 0)
    item65.SetName("intdes")
    item62.Add(
        item65, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP | wx.BOTTOM, 5)

    item66 = wx.StaticText(parent, ID_TEXT, "Anno:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item62.Add(item66, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item67 = NumCtrl(parent,
                     ID_INTANNO,
                     integerWidth=4,
                     allowNegative=False,
                     groupDigits=False)
    item67.SetName("intanno")
    item62.Add(
        item67, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT
        | wx.TOP | wx.BOTTOM, 5)

    item68 = wx.StaticText(parent, ID_TEXT, "Prima pag.:", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item62.Add(item68, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item69 = NumCtrl(parent,
                     ID_INTPAG,
                     integerWidth=5,
                     allowNegative=False,
                     groupDigits=False)
    item69.SetName("intpag")
    item62.Add(
        item69, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT
        | wx.TOP | wx.BOTTOM, 5)

    item62.AddGrowableCol(2)

    item60.Add(item62, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item0.Add(
        item60, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item70 = wx.StaticText(parent, ID_TEXT, "Movimenti da stampare",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item70.SetForegroundColour(wx.BLUE)
    item0.Add(item70, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP,
              5)

    item71 = wx.Panel(parent, ID_PANGRIDMOV, wx.DefaultPosition, [200, 280],
                      wx.SUNKEN_BORDER)
    item0.Add(
        item71, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item72 = wx.BoxSizer(wx.HORIZONTAL)

    item73 = wx.Button(parent, ID_PRINT, "Stampa", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item72.Add(item73, 0, wx.ALIGN_BOTTOM | wx.LEFT | wx.RIGHT, 5)

    item0.Add(item72, 0, wx.ALIGN_RIGHT | wx.ALIGN_BOTTOM | 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
示例#16
0
def ChiusuraIVAFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

    item1 = wx.StaticText(parent, ID_TIPOTIT, "Chiusura Annuale IVA",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item1.SetFont(wx.Font(14, wx.SWISS, wx.NORMAL, wx.NORMAL))
    item1.SetName("tipotit")
    item0.Add(item1, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP,
              5)

    item3 = wx.StaticBox(parent, -1, "")
    item2 = wx.StaticBoxSizer(item3, wx.VERTICAL)

    item4 = wx.StaticText(
        parent, ID_TEXT,
        "Questa funzione provvede a creare i progressivi del credito IVA compensabile\n"
        "per l'anno successivo a quello richiesto, inizializzandoli in base al credito\n"
        "risultate dall'ultima liquidazione dell'anno richiesto.\n"
        "La generazione avrà luogo solo se la data dell'ultima liquidazione effettuata\n"
        "nell'anno selezionato corrisponde all'ultimo giorno dell'anno stesso.",
        wx.DefaultPosition, wx.DefaultSize, 0)
    item2.Add(item4, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item0.Add(item2, 0, wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item6 = wx.StaticBox(parent, -1, "")
    item5 = wx.StaticBoxSizer(item6, wx.VERTICAL)

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

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

    item9 = wx.StaticText(parent, ID_TEXT, "Genera i progressivi per l'anno:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item8.Add(
        item9, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP
        | wx.BOTTOM, 5)

    item10 = NumCtrl(parent,
                     ID_NUOVOANNO,
                     integerWidth=4,
                     groupDigits=False,
                     allowNegative=False)
    item10.SetName('nuovoanno')
    item8.Add(item10, 0, wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item11 = wx.StaticText(parent, ID_TEXT, "Ultima liquidazione precedente:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item8.Add(item11, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
              5)

    item12 = DataLiquidazioneCtrl(parent, ID_DATULIQ, "", wx.DefaultPosition,
                                  [80, -1], 0)
    item12.SetName("datuliq")
    item8.Add(item12, 0,
              wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item13 = wx.StaticText(parent, ID_TEXT, "Credito da riportare:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item8.Add(item13, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM,
              5)

    item14 = ImportoCtrl(parent, ID_CREDULIQ, "creduliq")
    item8.Add(
        item14, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

    item8.AddGrowableCol(0)

    item7.Add(item8, 0, wx.ALIGN_CENTER, 5)

    item15 = wx.Button(parent, ID_BUTGENERA, "Conferma", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item15.SetName("butgenera")
    item7.Add(item15, 0, wx.ALIGN_BOTTOM | wx.ALIGN_CENTER_HORIZONTAL | wx.ALL,
              5)

    item7.AddGrowableCol(0)

    item5.Add(item7, 0, wx.ALIGN_CENTER, 5)

    item16 = wx.StaticText(parent, ID_WARNING, "", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item16.SetForegroundColour(wx.RED)
    item16.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD))
    item16.SetName("warning")
    item5.Add(item16, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item0.Add(
        item5, 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
示例#17
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
示例#18
0
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
示例#19
0
def ValuteCardFunc( 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, "Valore" )
    item2 = wx.StaticBoxSizer( item3, wx.VERTICAL )
    
    item4 = wx.BoxSizer( wx.HORIZONTAL )
    
    item5 = wx.StaticText( parent, ID_LABELCAMBIO, "Cambio con 1 Euro:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item4.Add( item5, 0, wx.ALIGN_CENTER|wx.ALL, 5 )

    item6 = NumCtrl( parent, integerWidth=10, fractionWidth=6, allowNegative=False, groupDigits=True); item6.SetName("cambio")
    item4.Add( item6, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

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

    item0.Add( item2, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|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
示例#20
0
def TraVetCardInterFunc(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, "Estrai documenti di tipo:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item1.Add(item2, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item3 = alib.LinkTableDocMagazz(parent, ID_TIPDOC, 'id_tipdoc')
    item1.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item4 = wx.StaticText(parent, ID_TEXT, "dal:", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item1.Add(item4, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item5 = DateCtrl(parent, ID_DATA1, "", wx.DefaultPosition, [80, -1], 0)
    item5.SetName("data1")
    item1.Add(item5, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item6 = wx.StaticText(parent, ID_TEXT, "al:", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item1.Add(item6, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item7 = DateCtrl(parent, ID_DATA2, "", wx.DefaultPosition, [80, -1], 0)
    item7.SetName("data2")
    item1.Add(item7, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item8 = wx.Button(parent, ID_BUTUPDATE, "Aggiorna", wx.DefaultPosition,
                      wx.DefaultSize, 0)
    item8.SetDefault()
    item8.SetName("butupdate")
    item1.Add(item8, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item1.AddGrowableCol(1)

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

    item9 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1],
                          wx.LI_HORIZONTAL)
    item0.Add(item9, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item10 = wx.StaticText(parent, ID_TEXT, "Documenti trovati:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item10.SetForegroundColour(wx.BLUE)
    item0.Add(item10, 0,
              wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP,
              5)

    item11 = wx.Panel(parent, ID_PANGRIDOC, wx.DefaultPosition, wx.DefaultSize,
                      wx.SUNKEN_BORDER)
    item11.SetName("pangridoc")
    item0.Add(
        item11, 0,
        wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

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

    item13 = wx.StaticText(parent, ID_TEXT, "Totale spedizioni:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item12.Add(item13, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item14 = NumCtrl(parent, ID_NUMDOCS, integerWidth=5, groupDigits=False)
    item14.SetName("numdocs")
    item12.Add(item14, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
               5)

    item15 = wx.StaticText(parent, ID_TEXT, "Totale colli:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item12.Add(item15, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item16 = NumCtrl(parent, ID_TOTCOLLI, integerWidth=6, groupDigits=False)
    item16.SetName("totcolli")
    item12.Add(item16, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
               5)

    item17 = wx.StaticText(parent, ID_TEXT, "Totale peso KG:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item12.Add(item17, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item18 = NumCtrl(parent,
                     ID_TOTPESO,
                     integerWidth=8,
                     fractionWidth=3,
                     groupDigits=True)
    item18.SetName("totpeso")
    item12.Add(item18, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL,
               5)

    item19 = wx.Button(parent, ID_BUTPRINT, "Lista", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item19.SetName("butprint")
    item12.Add(item19, 0, wx.ALIGN_CENTER | wx.ALL, 5)

    item0.Add(item12, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 5)

    item0.AddGrowableCol(0)

    item0.AddGrowableRow(3)

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

    return item0
示例#21
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
示例#22
0
def MultiReportLabelsBottomPanelFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(1, 0, 0, 0)

    item2 = wx.StaticBox(parent, -1, "Offset di stampa")
    item1 = wx.StaticBoxSizer(item2, wx.HORIZONTAL)

    item3 = wx.BoxSizer(wx.VERTICAL)

    item4 = wx.StaticText(parent, ID_TEXT, "Posizione della prima",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item3.Add(item4, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.TOP, 5)

    item5 = wx.StaticText(parent, ID_TEXT, "etichetta da stampare",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item3.Add(item5, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item6 = wx.StaticLine(parent, ID_LINE, wx.DefaultPosition, [20, -1],
                          wx.LI_HORIZONTAL)
    item3.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

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

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

    item9 = NumCtrl(parent, ID_ROW0, integerWidth=3)
    item9.SetName('row0')
    item7.Add(item9, 0, wx.ALIGN_CENTER | wx.ALL, 5)

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

    item11 = NumCtrl(parent, ID_COL0, integerWidth=3)
    item11.SetName('col0')
    item7.Add(item11, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

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

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

    item0.Add(
        item1, 0,
        wx.GROW | wx.ALIGN_CENTER_HORIZONTAL | wx.LEFT | wx.RIGHT | wx.TOP, 5)

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

    item13 = wx.StaticText(parent, ID_TEXT, "Note", wx.DefaultPosition,
                           wx.DefaultSize, 0)
    item12.Add(item13, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP, 5)

    item14 = wx.TextCtrl(parent, ID_NOTE, "", wx.DefaultPosition, [200, 90],
                         wx.TE_MULTILINE)
    item12.Add(item14, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item12.AddGrowableCol(0)

    item12.AddGrowableRow(1)

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

    item0.AddGrowableCol(1)

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

    return item0
示例#23
0
def AziendaSetupFunc( parent, call_fit = True, set_sizer = True ):
    item0 = wx.BoxSizer( wx.VERTICAL )
    
    item2 = wx.StaticBox( parent, -1, "Database" )
    item1 = wx.StaticBoxSizer( item2, wx.VERTICAL )
    
    item3 = wx.FlexGridSizer( 0, 3, 0, 0 )
    
    item4 = wx.StaticText( parent, ID_TEXT, "Codice:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item3.Add( item4, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.TOP, 5 )

    item5 = wx.StaticText( parent, ID_TEXT, "Nome database:", wx.DefaultPosition, [90,-1], 0 )
    item3.Add( item5, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.TOP, 5 )

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

    item6 = TextCtrl_LC( parent, ID_CODICE, "", wx.DefaultPosition, [80,-1], 0 )
    item3.Add( item6, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 )

    item7 = TextCtrl_LC( parent, ID_NOMEDB, "", wx.DefaultPosition, [80,-1], 0 )
    item3.Add( item7, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 )

    item8 = wx.Button( parent, ID_BTNMIRAGE, "Acquisizione azienda da Mirage", wx.DefaultPosition, wx.DefaultSize, 0 )
    item8.SetName( "miracqbut" )
    item3.Add( item8, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL, 5 )

    item3.AddGrowableCol( 2 )

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

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

    item10 = wx.StaticBox( parent, -1, "Dati anagrafici Azienda" )
    item9 = wx.StaticBoxSizer( item10, wx.VERTICAL )
    
    item11 = wx.FlexGridSizer( 0, 1, 0, 0 )
    
    item12 = wx.StaticText( parent, ID_TEXT, "Intestazione:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item11.Add( item12, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.TOP, 5 )

    item13 = TextCtrl( parent, ID_INTESTAZ, "", wx.DefaultPosition, [400,-1], 0 )
    item11.Add( item13, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 )

    item14 = wx.StaticText( parent, ID_TEXT, "Indirizzo:", wx.DefaultPosition, [90,-1], 0 )
    item11.Add( item14, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.TOP, 5 )

    item15 = TextCtrl( parent, ID_INDIRIZZO, "", wx.DefaultPosition, wx.DefaultSize, 0 )
    item11.Add( item15, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 )

    item16 = wx.FlexGridSizer( 0, 3, 0, 0 )
    
    item17 = wx.StaticText( parent, ID_TEXT, "CAP", wx.DefaultPosition, wx.DefaultSize, 0 )
    item16.Add( item17, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT, 5 )

    item18 = wx.StaticText( parent, ID_TEXT, "Città", wx.DefaultPosition, wx.DefaultSize, 0 )
    item16.Add( item18, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 )

    item19 = wx.StaticText( parent, ID_TEXT, "Prov.", wx.DefaultPosition, wx.DefaultSize, 0 )
    item16.Add( item19, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT, 5 )

    item20 = TextCtrl( parent, ID_CAP, "", wx.DefaultPosition, [60,-1], 0 )
    item16.Add( item20, 0, wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 )

    item21 = TextCtrl( parent, ID_CITTA, "", wx.DefaultPosition, [80,-1], 0 )
    item16.Add( item21, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.BOTTOM, 5 )

    item22 = TextCtrl( parent, ID_PROVINCIA, "", wx.DefaultPosition, [35,-1], 0 )
    item16.Add( item22, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.BOTTOM, 5 )

    item16.AddGrowableCol( 1 )

    item11.Add( item16, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 0 )

    item11.AddGrowableCol( 0 )

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

    item23 = wx.StaticLine( parent, ID_LINE, wx.DefaultPosition, [20,-1], wx.LI_HORIZONTAL )
    item9.Add( item23, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 0 )

    item24 = wx.FlexGridSizer( 0, 3, 0, 0 )
    
    item25 = wx.StaticText( parent, ID_TEXT, "Cod. Fiscale:", wx.DefaultPosition, [90,-1], 0 )
    item24.Add( item25, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.TOP, 5 )

    item26 = wx.StaticText( parent, ID_TEXT, "Stato:", wx.DefaultPosition, [40,-1], 0 )
    item24.Add( item26, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.TOP, 5 )

    item27 = wx.StaticText( parent, ID_TEXT, "P.IVA:", wx.DefaultPosition, [40,-1], 0 )
    item24.Add( item27, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.TOP, 5 )

    item28 = TextCtrl( parent, ID_CODFISC, "", wx.DefaultPosition, [100,-1], 0 )
    item24.Add( item28, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 )

    item29 = TextCtrl( parent, ID_STATO, "", wx.DefaultPosition, [35,-1], 0 )
    item24.Add( item29, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.BOTTOM, 5 )

    item30 = TextCtrl( parent, ID_PIVA, "", wx.DefaultPosition, [80,-1], 0 )
    item24.Add( item30, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.BOTTOM, 5 )

    item24.AddGrowableCol( 0 )

    item24.AddGrowableCol( 2 )

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

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

    item32 = wx.StaticBox( parent, -1, "Esercizio contabile" )
    item31 = wx.StaticBoxSizer( item32, wx.VERTICAL )
    
    item33 = wx.FlexGridSizer( 1, 0, 0, 0 )
    
    item34 = wx.StaticText( parent, ID_TEXT, "Giorno e mese di inizio dell'esercizio contabile:", wx.DefaultPosition, wx.DefaultSize, 0 )
    item33.Add( item34, 0, wx.ALIGN_CENTER|wx.LEFT|wx.TOP|wx.BOTTOM, 5 )

    item35 = NumCtrl(parent, ID_ESERCIZIOGG, integerWidth=2, allowNegative=False); item35.SetName('setup_esercizio_startgg')
    item33.Add( item35, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

    item36 = wx.StaticText( parent, ID_TEXT, "/", wx.DefaultPosition, wx.DefaultSize, 0 )
    item33.Add( item36, 0, wx.ALIGN_CENTER|wx.TOP|wx.BOTTOM, 5 )

    item37 = NumCtrl(parent, ID_ESERCIZIOMM, integerWidth=2, allowNegative=False); item37.SetName('setup_esercizio_startmm')
    item33.Add( item37, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

    item38 = wx.StaticText( parent, ID_ESERCIZIOERR, "", wx.DefaultPosition, wx.DefaultSize, 0 )
    item38.SetForegroundColour( wx.RED )
    item38.SetName( "esercizio_err" )
    item33.Add( item38, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

    item33.AddGrowableCol( 4 )

    item31.Add( item33, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL, 5 )

    item0.Add( item31, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 )

    item39 = wx.FlexGridSizer( 0, 1, 0, 0 )
    
    item40 = wx.StaticText( parent, ID_CONFACTION1, "", wx.DefaultPosition, wx.DefaultSize, 0 )
    item39.Add( item40, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.TOP, 5 )

    item41 = wx.StaticText( parent, ID_CONFACTION2, "", wx.DefaultPosition, wx.DefaultSize, 0 )
    item39.Add( item41, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.LEFT|wx.RIGHT|wx.BOTTOM, 5 )

    item39.AddGrowableCol( 0 )

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

    item42 = wx.BoxSizer( wx.HORIZONTAL )
    
    item43 = wx.Button( parent, ID_BTNQUIT, "Abbandona", wx.DefaultPosition, wx.DefaultSize, 0 )
    item42.Add( item43, 0, wx.ALIGN_CENTER|wx.ALL, 5 )

    item44 = wx.Button( parent, ID_BTNOK, "Conferma", wx.DefaultPosition, wx.DefaultSize, 0 )
    item44.SetDefault()
    item42.Add( item44, 0, wx.ALIGN_CENTER|wx.ALL, 5 )

    item0.Add( item42, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL, 5 )

    if set_sizer == True:
        parent.SetSizer( item0 )
        if call_fit == True:
            item0.SetSizeHints( parent )
    
    return item0
示例#24
0
def MultiReportFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

    item1 = TitlePanel(parent, ID_FOREIGN)
    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, 5)

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

    item4 = wx.StaticText(parent, ID_TEXT, "Stampa su:", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item3.Add(item4, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item5 = PrintersComboBox(parent, ID_REPORTDIRECTURL, "",
                             wx.DefaultPosition, [100, -1], [],
                             wx.CB_DROPDOWN | wx.CB_READONLY)
    item5.SetName("printername")
    item3.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item6 = wx.StaticText(parent, ID_TEXT, "Copie:", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item3.Add(item6, 0, wx.ALIGN_CENTER | wx.LEFT | wx.TOP | wx.BOTTOM, 5)

    item7 = NumCtrl(parent,
                    ID_NUMCOPIE,
                    integerWidth=3,
                    allowNegative=False,
                    groupDigits=False)
    item7.SetName("numcopie")
    item3.Add(item7, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item3.AddGrowableCol(1)

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

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

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

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

    item11 = wx.StaticText(parent, ID_TEXT, "Seleziona il report:",
                           wx.DefaultPosition, wx.DefaultSize, 0)
    item10.Add(item11, 0, wx.ALIGN_BOTTOM | wx.LEFT | wx.RIGHT, 5)

    item12 = wx.ListBox(parent, ID_REPORTS, wx.DefaultPosition, [300, 120], [],
                        wx.LB_SINGLE)
    item12.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL))
    item12.SetName("reports")
    item10.Add(item12, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item13 = MultiReportBottomPanel(parent, ID_PANEL, wx.DefaultPosition,
                                    wx.DefaultSize, 0)
    item10.Add(item13, 0,
               wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT, 5)

    item10.AddGrowableRow(2)

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

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

    item15 = wx.StaticText(parent, ID_TEXT, "Anteprima stile",
                           wx.DefaultPosition, [240, -1], wx.ST_NO_AUTORESIZE)
    item14.Add(item15, 0, wx.ALIGN_BOTTOM | wx.RIGHT, 5)

    item16 = PreviewPanel(parent, ID_PANELPREVIEW, wx.DefaultPosition,
                          [240, 240], wx.SUNKEN_BORDER)
    item16.SetBackgroundColour(wx.WHITE)
    item14.Add(item16, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5)

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

    item9.AddGrowableCol(1)

    item9.AddGrowableRow(1)

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

    item17 = aw.Panel(parent, ID_PANQUESTIONS, wx.DefaultPosition, [-1, 20], 0)
    item17.SetName("otherquestionspanel")
    item0.Add(item17, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item18 = wx.BoxSizer(wx.HORIZONTAL)

    item19 = wx.Button(parent, ID_PREVIEW, "&Visualizza anteprima",
                       wx.DefaultPosition, wx.DefaultSize, 0)
    item19.SetName("btnpreview")
    item18.Add(item19, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.BOTTOM, 5)

    item20 = wx.Button(parent, ID_PRINT, "&Stampa", wx.DefaultPosition,
                       wx.DefaultSize, 0)
    item20.SetName("btnprint")
    item18.Add(item20, 0, wx.ALIGN_CENTER | wx.RIGHT | wx.BOTTOM, 5)

    item0.Add(item18, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 0)

    item0.AddGrowableCol(0)

    item0.AddGrowableRow(2)

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

    return item0
示例#25
0
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
示例#26
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