コード例 #1
0
    def display(self, item_list, page, max_page, list_filter, buttons, time):
        Render.clear()
        Render.header(self.header)
        filter_info_list = []
        for filt in self.filters:
            if filt == list_filter:             
                filter_info_list += ["# "+filt.upper()+" #"]
            else:
                filter_info_list += [filt]
        Render.tool_bar(filter_info_list)

        item_info_list = []
        if list_filter == "working":
            self.list_header = Employee.get_working_header()
            for item in item_list:
                item_info_list += [LL_API.get_working_list_info(item, time).split("#")]
        else:
            self.list_header = Employee.get_header()
            for item in item_list:
                item_info_list += [LL_API.get_list_info(item).split("#")]

        Render.display_list(self.list_header, item_info_list)
        Render.page_bar(page, max_page)
        Render.tool_bar(buttons)
        Render.the_border()
コード例 #2
0
 def display(self, string_page, page, max_page, buttons):
     Render.clear()
     Render.header(self.header)
     string_page_render_format = []
     for string_a in string_page:
         string_page_render_format += [[string_a]]
     Render.display_list([self.string_type], string_page_render_format)
     Render.page_bar(page, max_page)
     Render.tool_bar(buttons)
     Render.the_border()
コード例 #3
0
 def display(self, item_page, page, max_page):
     Render.clear()
     Render.header(self.header)
     item_info_list = []
     for item in item_page:
         item_info_list += [LL_API.get_list_info(item).split("#")]
     Render.display_list(self.list_header, item_info_list)
     Render.page_bar(page, max_page)
     Render.tool_bar(BUTTONS)
     Render.the_border()
コード例 #4
0
    def display(self, item_list, page, max_page, list_filter, buttons, time):
        Render.clear()
        Render.header(self.header)
        Render.tool_bar(["Showing aircrafts for time:  " + str(time)])

        item_info_list = []
        for item in item_list:
            item_info_list += [LL_API.get_list_info(item).split("#")]
        Render.display_list(self.list_header, item_info_list)
        Render.page_bar(page, max_page)
        Render.tool_bar(buttons)
        Render.the_border()
コード例 #5
0
    def display(self, item_list, page, max_page, list_filter, buttons):
        Render.clear()
        Render.header(self.header)
        if self.filters != None:
            filter_info_list = []
            for filt in self.filters:
                if filt == list_filter:
                    filter_info_list += ["# " + filt.upper() + " #"]
                else:
                    filter_info_list += [filt]
            Render.tool_bar(filter_info_list)

        item_info_list = []
        for item in item_list:
            item_info_list += [LL_API.get_list_info(item).split("#")]
        Render.display_list(self.list_header, item_info_list)
        Render.page_bar(page, max_page)
        Render.tool_bar(buttons)
        Render.the_border()