コード例 #1
0
ファイル: ctrl_ds_drbfm.py プロジェクト: lsn1183/web_project
 def __init__(self):
     CtrlBase.__init__(self)
     self.key_col = DSDrbfm.gid
     self.db_object = DSDrbfm
     self.col_list = [
         DSDrbfm.drbfm_content.name,
     ]
コード例 #2
0
ファイル: ctrl_ds_if.py プロジェクト: lsn1183/web_project
 def __init__(self):
     CtrlBase.__init__(self)
     self.key_col = DSDocIf.if_id
     self.db_object = DSDocIf
     self.col_list = [
         DSDocIf.if_name.name, DSDocIf.description.name,
         DSDocIf.parameter.name, DSDocIf.return_val.name
     ]
コード例 #3
0
 def __init__(self):
     CtrlBase.__init__(self)
     self.key_col = Framework.fw_id
     self.db_object = Framework
     self.col_list = [
         Framework.manager.name, Framework.summary.name,
         Framework.content.name, Framework.fw_name.name
     ]
コード例 #4
0
 def __init__(self):
     CtrlBase.__init__(self)
     self.screen_key_column = {"ScreenDispRect": Screen.screen_disp_rect.name, "ScreenUUID": Screen.screen_uuid.name,
                               "ScreenID": Screen.screen_id.name, "ScreenDispPic": Screen.screen_disp_pic.name,
                               "ScreenName": Screen.screen_name.name}
     self.col_list = [Screen.screen_name.name, Screen.screen_disp_pic.name,
                      Screen.screen_uuid.name, Screen.screen_disp_rect.name,
                      Screen.screen_id.name, Screen.outline.name, Screen.locked.name]
コード例 #5
0
 def __init__(self):
     CtrlBase.__init__(self)
     self.key_col = DSAttach.attach_id
     self.db_object = DSAttach
     self.col_list = [
         DSAttach.file_url.name, DSAttach.file_name.name,
         DSAttach.file_type.name
     ]
コード例 #6
0
 def __init__(self):
     CtrlBase.__init__(self)
     self.key_col = Ds_Doc.doc_id
     self.db_object = Ds_Doc
     self.col_list = [Ds_Doc.title.name, Ds_Doc.summary.name]
     self.ds_col_list = []
     for column in Ds_Doc.__table__.columns:
         self.ds_col_list.append(column.name)
     self.sec_type_list = []
     for sec_type in CtrlDSSection().get_section_type():
         self.sec_type_list.append(sec_type.get('sec_type'))
コード例 #7
0
 def __init__(self):
     CtrlBase.__init__(self)
コード例 #8
0
ファイル: ds_doc_import.py プロジェクト: lsn1183/web_project
 def __init__(self):
     CtrlBase.__init__(self)
     self.image_source_url = ""
コード例 #9
0
 def __init__(self):
     CtrlBase.__init__(self)
     self.key_col = Projects.proj_id
     self.db_object = Projects
     self.col_list = [Projects.inside_name.name, Projects.outside_name.name, Projects.proj_id.name]
     self.del_manday = """
         delete from func.func_man_day where task_id in (
             select task_id from func.task as t1 left join 
             func.functions as t2 on t1.func_id = t2.func_id
             left join func.quotations as t3 
             on t2.quotation_id = t3.quotation_id
             where t3.proj_id = {}
         )
         """
     self.del_task = """
         delete from func.task where func_id in(
             select func_id from func.functions as t1
             left join func.quotations as t2
             on t1.quotation_id = t2.quotation_id
             where t2.proj_id = {}
         )
         """
     self.del_function_one = """
         delete from func.func_group where func_id in(
             select func_id from func.functions as t1
             left join func.quotations as t2
             on t1.quotation_id = t2.quotation_id
             where t2.proj_id = {}
         )
         """
     self.del_function_two = """
         delete from func.functions where quotation_id in(
             select quotation_id from func.quotations 
             where proj_id = {}
         )
         """
     self.del_option_combination = """
         delete from func.option_combination where quotation_id in (
             select quotation_id from func.quotations
             where proj_id = {}
         )
         """
     self.del_option_value = """
         delete from func.option_value where option_id in (
             select option_id from func.options as t1 left join
             func.quotations as t2 on t1.quotation_id = t2.quotation_id 
             where proj_id = {}
         )
         """
     self.del_options = """
         delete from func.options where quotation_id in (
             select quotation_id from func.quotations
             where proj_id = {}
         )
         """
     self.del_preconditions = """
         delete from func.preconditions where proj_id = {}
         """
     self.del_quotations = """
         delete from func.quotations where proj_id = {}
         """
     self.del_user_role = """
         delete from user_role where proj_id = {}
         """
     self.del_projects = """
コード例 #10
0
ファイル: ctrl_ds_scene.py プロジェクト: lsn1183/web_project
 def __init__(self):
     CtrlBase.__init__(self)
     self.key_col = DSRelScene.gid
     self.db_object = DSRelScene
     self.col_list = [DSRelScene.change.name, DSRelScene.alter.name]
コード例 #11
0
 def __init__(self):
     CtrlBase.__init__(self)
     self.key_col = Projects.proj_id
     self.db_object = Projects
コード例 #12
0
ファイル: ctrl_doc.py プロジェクト: lsn1183/web_project
 def __init__(self):
     CtrlBase.__init__(self)
     self.key_col = FailureMode.failure_id
     self.db_object = FailureMode
     self.col_list = [FailureMode.failure_mode_name.name]
コード例 #13
0
 def __init__(self):
     CtrlBase.__init__(self)
     self.chapter_list = CtrlChapter().chapters[
         1:]  # DSChapter1-DSChapter8的对象
コード例 #14
0
 def __init__(self):
     CtrlBase.__init__(self)
     self.proj_name = ''
コード例 #15
0
ファイル: ctrl_doc_input.py プロジェクト: lsn1183/web_project
 def __init__(self):
     CtrlBase.__init__(self)
     self.key_col = Specification.spec_id
     self.db_object = Specification
     self.col_list = [Specification.spec_id.name, Specification.spec_name.name,
                      Specification.spec_type.name]
コード例 #16
0
 def __init__(self):
     CtrlBase.__init__(self)
     self.key_col = DSRelSpec.gid
     self.db_object = DSRelSpec
     self.col_list = [DSRelSpec.func_id.name]