
from BaseDataMaintenance.model.ots.BaseModel import BaseModel


DOCUMENT_PRODUCT_TMP_ID = 'id'
DOCUMENT_PRODUCT_TMP_NAME = 'name'
DOCUMENT_PRODUCT_TMP_BRAND = 'brand'
DOCUMENT_PRODUCT_TMP_SPECS = 'specs'
DOCUMENT_PRODUCT_TMP_BRANDSPECS = 'brand_specs'
DOCUMENT_PRODUCT_TMP_FULL_NAME = 'full_name'
DOCUMENT_PRODUCT_TMP_UNIT_PRICE = 'unit_price'
DOCUMENT_PRODUCT_TMP_QUANTITY = 'quantity'
DOCUMENT_PRODUCT_TMP_QUANTITY_UNIT = 'quantity_unit'
DOCUMENT_PRODUCT_TMP_TOTAL_PRICE = 'total_price'
DOCUMENT_PRODUCT_TMP_SUPPLIER = 'supplier'
DOCUMENT_PRODUCT_TMP_PARAMETER = 'parameter'
DOCUMENT_PRODUCT_TMP_CATEGORY = 'category'
DOCUMENT_PRODUCT_TMP_DOCID = "docid"
DOCUMENT_PRODUCT_TMP_DOCTITLE = "doctitle"
DOCUMENT_PRODUCT_TMP_PROJECT_NAME = 'project_name'
DOCUMENT_PRODUCT_TMP_PROJECT_CODE = 'project_code'
DOCUMENT_PRODUCT_TMP_TENDEREE = 'tenderee'
DOCUMENT_PRODUCT_TMP_TENDEREE_PHONE = 'tenderee_phone'
DOCUMENT_PRODUCT_TMP_TENDEREE_CONTACT = 'tenderee_contact'
DOCUMENT_PRODUCT_TMP_PROCUREMENT_SYSTEM = 'procurement_system'
DOCUMENT_PRODUCT_TMP_BIDDING_BUDGET = 'bidding_budget'
DOCUMENT_PRODUCT_TMP_WIN_TENDERER = 'win_tenderer'
DOCUMENT_PRODUCT_TMP_WIN_BID_PRICE = 'win_bid_price'
DOCUMENT_PRODUCT_TMP_PROVINCE = 'province'
DOCUMENT_PRODUCT_TMP_CITY = 'city'
DOCUMENT_PRODUCT_TMP_DISTRICT = 'district'
DOCUMENT_PRODUCT_TMP_PAGE_TIME = 'page_time'
DOCUMENT_PRODUCT_TMP_PAGE_TIME_YEAR = 'page_time_year'
DOCUMENT_PRODUCT_TMP_INFO_TYPE = 'info_type'
DOCUMENT_PRODUCT_TMP_INDUSTRY = 'industry'
DOCUMENT_PRODUCT_TMP_STATUS = 'status'
DOCUMENT_PRODUCT_TMP_CREATE_TIME = 'create_time'
DOCUMENT_PRODUCT_TMP_UPDATE_TIME = 'update_time'

DOCUMENT_PRODUCT_TMP_NEW_ID = "new_id"


Document_product_tmp_table_name = "document_product_temp"

class Document_product_tmp(BaseModel):

    def __init__(self,dict):
        BaseModel.__init__(self)
        for k,v in dict.items():
            self.setValue(k,v,True)
        self.table_name = Document_product_tmp_table_name

    def getPrimary_keys(self):
        return ['id']
