def __init__(self, financial_data_tuple=None):
        DatabaseTable.__init__(self)

        self.stock_code = ""
        self.date = ""
        self.book_value_per_share = 0
        self.cash_flow_per_share = 0
        self.total_share = 0
        self.total_current_assets = 0
        self.total_assets = 0
        self.total_long_term_liabilities = 0
        self.debt_to_net_assets_ratio = 0
        self.main_business_income = 0
        self.financial_expenses = 0
        self.net_profit = 0
        self.net_profit_per_share = 0
        self.net_profit_per_share_in_year = 0
        self.rate = 0
        self.roi = 0
        self.roe = 0
        self.pe = 0
        self.pb = 0
        self.dividend = 0
        self.dividend_yield = 0
        self.dividend_ratio = 0

        self.set(financial_data_tuple)
Esempio n. 2
0
    def __init__(self, setting_tuple=None):
        DatabaseTable.__init__(self)

        self.key = ""
        self.value = ""

        self.set(setting_tuple)
    def set(self, financial_data_tuple):
        if financial_data_tuple is None:
            return

        DatabaseTable.set(
            self, financial_data_tuple[
                DatabaseContract.FinancialDataColumn.id.value],
            financial_data_tuple[
                DatabaseContract.FinancialDataColumn.created.value],
            financial_data_tuple[
                DatabaseContract.FinancialDataColumn.modified.value])

        self.set_stock_code(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.stock_code.value])
        self.set_date(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.date.value])
        self.set_book_value_per_share(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.book_value_per_share.value])
        self.set_cash_flow_per_share(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.cash_flow_per_share.value])
        self.set_total_share(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.total_share.value])
        self.set_total_current_assets(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.total_current_assets.value])
        self.set_total_assets(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.total_assets.value])
        self.set_total_long_term_liabilities(
            financial_data_tuple[DatabaseContract.FinancialDataColumn.
                                 total_long_term_liabilities.value])
        self.set_debt_to_net_assets_ratio(
            financial_data_tuple[DatabaseContract.FinancialDataColumn.
                                 debt_to_net_assets_ratio.value])
        self.set_main_business_income(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.main_business_income.value])
        self.set_financial_expenses(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.financial_expenses.value])
        self.set_net_profit(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.net_profit.value])
        self.set_net_profit_per_share(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.net_profit_per_share.value])
        self.set_net_profit_per_share_in_year(
            financial_data_tuple[DatabaseContract.FinancialDataColumn.
                                 net_profit_per_share_in_year.value])
        self.set_rate(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.rate.value])
        self.set_roi(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.roi.value])
        self.set_roe(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.roe.value])
        self.set_pe(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.pe.value])
        self.set_pb(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.pb.value])
        self.set_dividend(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.dividend.value])
        self.set_dividend_yield(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.dividend_yield.value])
        self.set_dividend_ratio(financial_data_tuple[
            DatabaseContract.FinancialDataColumn.dividend_ratio.value])
Esempio n. 4
0
    def __init__(self, total_share_tuple=None):
        DatabaseTable.__init__(self)

        self.stock_code = ""
        self.date = ""
        self.total_share = ""

        self.set(total_share_tuple)
Esempio n. 5
0
    def __init__(self, share_bonus_tuple=None):
        DatabaseTable.__init__(self)

        self.stock_code = ""
        self.date = ""
        self.dividend = ""
        self.r_date = ""

        self.set(share_bonus_tuple)
Esempio n. 6
0
    def __init__(self, share_holder_tuple=None):
        DatabaseTable.__init__(self)

        self.stock_code = ""
        self.date = ""
        self.type = ""
        self.number = 0
        self.hold = 0
        self.ratio = 0

        self.set(share_holder_tuple)
Esempio n. 7
0
    def set(self, share_bonus_tuple):
        if share_bonus_tuple is None:
            return

        DatabaseTable.set(self, share_bonus_tuple[DatabaseContract.ShareBonusColumn.id.value],
                          share_bonus_tuple[DatabaseContract.ShareBonusColumn.created.value],
                          share_bonus_tuple[DatabaseContract.ShareBonusColumn.modified.value])

        self.set_stock_code(share_bonus_tuple[DatabaseContract.ShareBonusColumn.stock_code.value])
        self.set_date(share_bonus_tuple[DatabaseContract.ShareBonusColumn.date.value])
        self.set_dividend(share_bonus_tuple[DatabaseContract.ShareBonusColumn.dividend.value])
        self.set_r_date(share_bonus_tuple[DatabaseContract.ShareBonusColumn.r_date.value])
Esempio n. 8
0
    def set(self, setting_tuple):
        if setting_tuple is None:
            return

        DatabaseTable.set(
            self, setting_tuple[DatabaseContract.SettingColumn.id.value],
            setting_tuple[DatabaseContract.SettingColumn.created.value],
            setting_tuple[DatabaseContract.SettingColumn.modified.value])

        self.set_key(setting_tuple[DatabaseContract.SettingColumn.key.value])
        self.set_value(
            setting_tuple[DatabaseContract.SettingColumn.value.value])
Esempio n. 9
0
    def set(self, share_holder_tuple):
        if share_holder_tuple is None:
            return

        DatabaseTable.set(self, share_holder_tuple[DatabaseContract.ShareHolderColumn.id.value],
                          share_holder_tuple[DatabaseContract.ShareHolderColumn.created.value],
                          share_holder_tuple[DatabaseContract.ShareHolderColumn.modified.value])

        self.set_stock_code(share_holder_tuple[DatabaseContract.ShareHolderColumn.stock_code.value])
        self.set_date(share_holder_tuple[DatabaseContract.ShareHolderColumn.date.value])
        self.set_type(share_holder_tuple[DatabaseContract.ShareHolderColumn.type.value])
        self.set_number(share_holder_tuple[DatabaseContract.ShareHolderColumn.number.value])
        self.set_hold(share_holder_tuple[DatabaseContract.ShareHolderColumn.hold.value])
        self.set_ratio(share_holder_tuple[DatabaseContract.ShareHolderColumn.ratio.value])
Esempio n. 10
0
    def set(self, total_share_tuple):
        if total_share_tuple is None:
            return

        DatabaseTable.set(
            self,
            total_share_tuple[DatabaseContract.TotalShareColumn.id.value],
            total_share_tuple[DatabaseContract.TotalShareColumn.created.value],
            total_share_tuple[
                DatabaseContract.TotalShareColumn.modified.value])

        self.set_stock_code(total_share_tuple[
            DatabaseContract.TotalShareColumn.stock_code.value])
        self.set_date(
            total_share_tuple[DatabaseContract.TotalShareColumn.date.value])
        self.set_total_share(total_share_tuple[
            DatabaseContract.TotalShareColumn.total_share.value])
Esempio n. 11
0
    def __init__(self, stock_data_tuple=None):
        DatabaseTable.__init__(self)

        self.stock_code = ""
        self.date = ""
        self.time = ""
        self.period = ""
        self.open = 0
        self.high = 0
        self.low = 0
        self.close = 0
        self.volume = 0
        self.value = 0
        self.roi = 0
        self.pe = 0
        self.pb = 0
        self.dividend_yield = 0

        self.set(stock_data_tuple)
Esempio n. 12
0
    def __init__(self, stock_tuple=None):
        DatabaseTable.__init__(self)

        self.classes = ""
        self.symbol = ""
        self.se = ""
        self.code = ""
        self.name = ""
        self.pinyin = ""
        self.mark = 0
        self.price = 0
        self.change = 0
        self.net = 0
        self.volume = 0
        self.value = 0
        self.market_value = 0
        self.operation = 0
        self.hold = 0
        self.cost = 0
        self.profit = 0
        self.total_share = 0
        self.total_assets = 0
        self.total_long_term_liabilities = 0
        self.debt_to_net_assets_ratio = 0
        self.book_value_per_share = 0
        self.cash_flow_per_share = 0
        self.net_profit = 0
        self.net_profit_per_share = 0
        self.net_profit_per_share_in_year = 0
        self.net_profit_per_share_last_year = 0
        self.rate = 0
        self.roi = 0
        self.roe = 0
        self.pe = 0
        self.pb = 0
        self.date = 0
        self.dividend = 0
        self.dividend_yield = 0
        self.dividend_ratio = 0
        self.r_date = ""
        self.time_to_market = ""

        self.set(stock_tuple)
Esempio n. 13
0
    def set(self, stock_data_tuple):
        if stock_data_tuple is None:
            return

        DatabaseTable.set(self, stock_data_tuple[DatabaseContract.StockDataColumn.id.value],
                          stock_data_tuple[DatabaseContract.StockDataColumn.created.value],
                          stock_data_tuple[DatabaseContract.StockDataColumn.modified.value])

        self.set_stock_code(stock_data_tuple[DatabaseContract.StockDataColumn.stock_code.value])
        self.set_date(stock_data_tuple[DatabaseContract.StockDataColumn.date.value])
        self.set_time(stock_data_tuple[DatabaseContract.StockDataColumn.time.value])
        self.set_period(stock_data_tuple[DatabaseContract.StockDataColumn.period.value])
        self.set_open(stock_data_tuple[DatabaseContract.StockDataColumn.open.value])
        self.set_high(stock_data_tuple[DatabaseContract.StockDataColumn.high.value])
        self.set_low(stock_data_tuple[DatabaseContract.StockDataColumn.low.value])
        self.set_close(stock_data_tuple[DatabaseContract.StockDataColumn.close.value])
        self.set_volume(stock_data_tuple[DatabaseContract.StockDataColumn.volume.value])
        self.set_value(stock_data_tuple[DatabaseContract.StockDataColumn.value.value])
        self.set_roi(stock_data_tuple[DatabaseContract.StockDataColumn.roi.value])
        self.set_pe(stock_data_tuple[DatabaseContract.StockDataColumn.pe.value])
        self.set_pb(stock_data_tuple[DatabaseContract.StockDataColumn.pb.value])
        self.set_dividend_yield(stock_data_tuple[DatabaseContract.StockDataColumn.dividend_yield.value])
Esempio n. 14
0
    def set(self, stock_tuple):
        if stock_tuple is None:
            return

        DatabaseTable.set(
            self, stock_tuple[DatabaseContract.StockColumn.id.value],
            stock_tuple[DatabaseContract.StockColumn.created.value],
            stock_tuple[DatabaseContract.StockColumn.modified.value])

        self.set_classes(
            stock_tuple[DatabaseContract.StockColumn.classes.value])
        self.set_symbol(stock_tuple[DatabaseContract.StockColumn.symbol.value])
        self.set_se(stock_tuple[DatabaseContract.StockColumn.se.value])
        self.set_code(stock_tuple[DatabaseContract.StockColumn.code.value])
        self.set_name(stock_tuple[DatabaseContract.StockColumn.name.value])
        self.set_pinyin(stock_tuple[DatabaseContract.StockColumn.pinyin.value])
        self.set_mark(stock_tuple[DatabaseContract.StockColumn.mark.value])
        self.set_price(stock_tuple[DatabaseContract.StockColumn.price.value])
        self.set_change(stock_tuple[DatabaseContract.StockColumn.change.value])
        self.set_net(stock_tuple[DatabaseContract.StockColumn.net.value])
        self.set_volume(stock_tuple[DatabaseContract.StockColumn.volume.value])
        self.set_value(stock_tuple[DatabaseContract.StockColumn.value.value])
        self.set_market_value(
            stock_tuple[DatabaseContract.StockColumn.market_value.value])
        self.set_operation(
            stock_tuple[DatabaseContract.StockColumn.operation.value])
        self.set_hold(stock_tuple[DatabaseContract.StockColumn.hold.value])
        self.set_cost(stock_tuple[DatabaseContract.StockColumn.cost.value])
        self.set_profit(stock_tuple[DatabaseContract.StockColumn.profit.value])
        self.set_total_share(
            stock_tuple[DatabaseContract.StockColumn.total_share.value])
        self.set_total_assets(
            stock_tuple[DatabaseContract.StockColumn.total_assets.value])
        self.set_total_long_term_liabilities(stock_tuple[
            DatabaseContract.StockColumn.total_long_term_liabilities.value])
        self.set_debt_to_net_assets_ratio(stock_tuple[
            DatabaseContract.StockColumn.debt_to_net_assets_ratio.value])
        self.set_book_value_per_share(stock_tuple[
            DatabaseContract.StockColumn.book_value_per_share.value])
        self.set_cash_flow_per_share(stock_tuple[
            DatabaseContract.StockColumn.cash_flow_per_share.value])
        self.set_net_profit(
            stock_tuple[DatabaseContract.StockColumn.net_profit.value])
        self.set_net_profit_per_share(stock_tuple[
            DatabaseContract.StockColumn.net_profit_per_share.value])
        self.set_net_profit_per_share_in_year(stock_tuple[
            DatabaseContract.StockColumn.net_profit_per_share_in_year.value])
        self.set_net_profit_per_share_last_year(stock_tuple[
            DatabaseContract.StockColumn.net_profit_per_share_last_year.value])
        self.set_rate(stock_tuple[DatabaseContract.StockColumn.rate.value])
        self.set_roi(stock_tuple[DatabaseContract.StockColumn.roi.value])
        self.set_roe(stock_tuple[DatabaseContract.StockColumn.roe.value])
        self.set_pe(stock_tuple[DatabaseContract.StockColumn.pe.value])
        self.set_pb(stock_tuple[DatabaseContract.StockColumn.pb.value])
        self.set_date(stock_tuple[DatabaseContract.StockColumn.date.value])
        self.set_dividend(
            stock_tuple[DatabaseContract.StockColumn.dividend.value])
        self.set_dividend_yield(
            stock_tuple[DatabaseContract.StockColumn.dividend_yield.value])
        self.set_dividend_ratio(
            stock_tuple[DatabaseContract.StockColumn.dividend_ratio.value])
        self.set_r_date(stock_tuple[DatabaseContract.StockColumn.r_date.value])
        self.set_time_to_market(
            stock_tuple[DatabaseContract.StockColumn.time_to_market.value])