Beispiel #1
0
 def __init__(self):
     ServiceBase.__init__(self)
     self.table_name = "hu"
     self.model_table_name = "hu_model_rel"
     self.model_type_table_name = "hu_model_type"
     self.key_col = "hu_record_id"
     self.id_col = "hu_id"
     self.sub_list_name = "definition_list"
     self.parent_col_name = "arl_id"
     self.child_id_col = "hu_def_id"
     self.attr_list = ["hu_record_id", "author",
                       "arl_id", "hu_id", "unique_id",
                       "system_conf", "rel_requirement", "exception",
                       "dcu_status", "dcu_trigger", "dcu_action",
                       "meu_status", "meu_trigger",  "meu_action",
                       "hu_category_id", "remark", "sys_spec_chapter",
                       "common_chapter", "common_seq_spec", "common_seq_no",
                       "common_cmd_guide", "common_opc", "inter_loc_spec",
                       "inter_chapter", "other_chapter", "other_doc",
                       "amp", "dsrc", "dcm",
                       "rse", "touch_pad", "separate_disp",
                       "test_results", "future_req", "remark1",
                       "remark2", "leak_check", "last_modifier",
                       "new_date", "reason", "translation_flag",
                       "agree_flag", "has_problem", "user_id",
                       "complete_flag", "job_status", "md5_key", "major_ver",
                       "small_ver", "update_time", "basic_req",
                       "lock_status"
                       ]
     self.lock_list = ["dcu_status", "dcu_trigger", "dcu_action", "meu_status", "meu_trigger", "meu_action"]
Beispiel #2
0
 def __init__(self):
     ServiceBase.__init__(self)
     self.table_name = "white_list"
     self.key_col = "wl_rc_id"
     self.attr_list = [
         "wl_rc_id", "classify", "id", "agree", "import_user_id",
         "import_time", "agree_time", "agree_user_id"
     ]
Beispiel #3
0
 def __init__(self):
     ServiceBase.__init__(self)
     self.table_name = "tmc_point_info"
     self.key_col = "rc_id"
     self.attr_list = [
         "rc_id", "classify", "point_date", "folder_info", "file_info",
         "id", "small_category", "basic_req", "review_result",
         "pointout_no", "pointout_status", "pointout_comment",
         "reader_check", "reader2_check", "final_check", "pointout_charger",
         "pointout_priority", "pointout_date", "suntec_status", "fixed",
         "suntec_remark", "arl_rel", "suntec_cannot_modify"
     ]
Beispiel #4
0
 def __init__(self):
     ServiceBase.__init__(self)
     self.table_name = "tmc_pointout_index"
     self.key_col = "pointout_rc_id"
     # self.classify = classify  # Hu / def / analysis
     self.attr_list = [
         "pointout_rc_id",
         "category",
         "small_category",
         "basic_req",
         "folder",
         "new_date",
     ]
Beispiel #5
0
 def __init__(self):
     ServiceBase.__init__(self)
     self.table_name = "arl_schedule"
     self.key_col = "arl_sch_id"
     self.id_col = "arl_id"
     self.attr_list = [
         "arl_sch_id", "arl_id", "major_category", "medium_catetory",
         "small_category", "detail", "req_post", "change_type", "group",
         "author", "charger", "hu_date", "hu_remark", "def_date",
         "def_remark", "analysis_date", "analysis_remark", "update_time",
         "update_user_id"
     ]
     # 固定列
     self.fixed_list = [
         "arl_id", "major_category", "medium_catetory", "small_category",
         "detail", "req_post", "change_type", "group", "author", "charger"
     ]
 def __init__(self):
     ServiceBase.__init__(self)
     self.table_name = "analysis"
     self.model_table_name = "analysis_model_rel"
     self.model_type_table_name = "analysis_model_type"
     self.key_col = "analysis_rc_id"
     self.id_col = "analysis_id"
     self.parent_col_name = "definition_id"
     self.attr_list = ["analysis_rc_id", "author_name", "definition_id",
                       "unique_id", "exception", "seq_diagram",
                       # "application", "kernel", "systemd",  # 移到Model List.
                       "supple_spec", "uncheck", "remark",
                       "user_id", "update_time", "ana_1", "ana_2", "ana_3", "ana_4",
                       "translation_flag", "agree_flag", "has_problem",
                       "new_date", "reason", "complete_flag",
                       "major_ver", "md5_key", "small_ver",
                       "job_status", "asta_filename", "basic_req",
                       "rel_requirement", "lock_status", "analysis_id"
                       ]
Beispiel #7
0
 def __init__(self):
     ServiceBase.__init__(self)
     self.table_name = "definition"
     self.model_table_name = "definition_model_rel"
     self.model_type_table_name = "definition_model_type"
     self.key_col = "def_rc_id"
     self.id_col = "definition_id"
     self.sub_list_name = "analysis_list"
     self.parent_col_name = "hu_def_id"
     self.child_id_col = self.id_col
     self.attr_list = [
         "def_rc_id", "author_name", "hu_def_id", "definition_id",
         "unique_id", "exception", "dcu_meu", "pf_status", "pf_trigger",
         "pf_action", "remark", "notice", "rel_hal_design",
         "rel_flow_diagram", "other_spec", "implementation", "analysis",
         "unrequire", "new_date", "reason", "translation_flag",
         "agree_flag", "has_problem", "complete_flag", "md5_key",
         "major_ver", "small_ver", "job_status", "update_time", "basic_req",
         "rel_requirement", "lock_status"
     ]
     self.lock_list = ["pf_status", "pf_trigger", "pf_action"]
Beispiel #8
0
 def import_check_list(self, pg, check_list, classify, commit_id,
                       check_role):
     from Source.spec2db_server.arl.arl_base import ServiceBase
     obj = ServiceBase()
     new_check_list = []
     if check_role == 'author':
         for check in check_list:
             new_check_dict = dict()
             id = check.get('id')
             result = check.get('check_result')
             new_check_dict['cl_item_id'] = id
             new_check_dict['author_check'] = result
             new_check_list.append(new_check_dict)
     else:
         for check in check_list:
             new_check_dict = dict()
             id = check.get('id')
             result = check.get('check_result')
             new_check_dict['cl_item_id'] = id
             new_check_dict['charger_check'] = result
             new_check_list.append(new_check_dict)
     obj.insert_check_list(pg, commit_id, classify, new_check_list)
     print commit_id
Beispiel #9
0
 def __init__(self, classify):
     ServiceBase.__init__(self)
     self.table_name = "point_out"
     self.key_col = "pointout_rc_id"
     self.classify = classify  # Hu / def / analysis
     if self.classify == 'basic_req_hu':
         self.classify = 'hu'
     if self.classify in ('definition', 'basic_req_definition'):
         self.classify = 'DEF'
     if self.classify == 'basic_req_analysis':
         self.classify = 'analysis'
     self.attr_list = [
         "pointout_rc_id", "record_id", "classify", "id", "review_result",
         "pointout_no", "pointout_status", "pointout_comment",
         "reader_check", "reader2_check", "final_check", "pointout_charger",
         "pointout_priority", "pointout_date", "fixed", "suntec_remark",
         "arl_rel", "update_time", "suntec_status", "suntec_cannot_modify",
         "point_date"
     ]
     self.type_list = [
         "STR", "STR", "STR", "STR", "STR", "STR", "STR", "STR", "STR",
         "STR", "STR", "STR", "STR", "STR", "STR", "STR", "STR", "STR",
         "STR", "STR", "STR"
     ]
Beispiel #10
0
 def __init__(self):
     ServiceBase.__init__(self)
     self.wb = Workbook()
     self.check_result_dict = {}
     self.use_case_dict = {}
     self.create_basic_dict()
Beispiel #11
0
 def __init__(self):
     ServiceBase.__init__(self)
     self.create_table()
     self.basic_req_dict = {}
     self.def_basic_req = {}
     self.create_basic_dict()
Beispiel #12
0
 def __init__(self):
     ServiceBase.__init__(self)
     self.wb = Workbook()
     self.basic_req_list = []
     self.check_result_dict = {}
     self.create_basic_dict()
Beispiel #13
0
 def __init__(self):
     ServiceBase.__init__(self)
     self.table_name = "arl_file"
     self.key_col = "record_id"
Beispiel #14
0
 def __init__(self, file_list, user_id, update_time):
     ServiceBase.__init__(self)
     self.file_list = file_list
     self.user_id = user_id
     self.update_time = update_time
Beispiel #15
0
 def __init__(self):
     ServiceBase.__init__(self)
     self.table_dict = dict()
 def __init__(self, ):
     ServiceBase.__init__(self)
     self._pg.connect()
Beispiel #17
0
 def __init__(self):
     ServiceBase.__init__(self)
Beispiel #18
0
 def __init__(self):
     ServiceBase.__init__(self)
     self.table_name = "arl_server_status"