def vcms_upd_company_profile(self,functions,actions,html_template,page_settings,parameter_dict): return_data = {} if session["user_rank_sn"] == 2 : return_data = VcmsRootFunction().set_company_profile(page_settings,parameter_dict) if session["user_rank_sn"] == 3 : return_data = VcmsAdminFunction().set_company_profile(page_settings,parameter_dict) return jsonify(return_data)
def vcms_add_company_service(self, functions, actions, html_template, page_settings, parameter_dict): return_data = {} if session["user_rank_sn"] == 2: return_data = VcmsRootFunction().get_edit_company_service( page_settings, int(parameter_dict.get("data_sn"))) return jsonify(return_data)
def vcms_upd_company_license_request(self, functions, actions, html_template, page_settings, parameter_dict): return_data = {} if session["user_rank_sn"] == 2: return_data = VcmsRootFunction().set_company_license_request_data( page_settings, parameter_dict) return jsonify(return_data)
def vcms_upd_bind_service_account(self,functions,actions,html_template,page_settings,parameter_dict): return_data = {} if session["user_rank_sn"] == 2 : return_data = VcmsRootFunction().set_bind_service_account(page_settings,parameter_dict) if session["user_rank_sn"] == 3 : return_data = VcmsAdminFunction().set_bind_service_account(page_settings,parameter_dict) return jsonify(return_data)
def vcms_publish_system_announcement(self, functions, actions, html_template, page_settings, parameter_dict): return_data = {} if session["user_rank_sn"] == 2: return_data = VcmsRootFunction().set_system_announcement_status( page_settings, parameter_dict) return jsonify(return_data)
def vcms_reset_upload_lock(self, functions, actions, html_template, page_settings, parameter_dict): return_data = {} lock_token = str(actions) return_data = VcmsRootFunction().set_uploading_images_lock_status( page_settings, lock_token, parameter_dict) return jsonify(return_data)
def vcms_company_license_request_detail(self, functions, actions, html_template, page_settings, parameter_dict): return_data = {} if session["user_rank_sn"] == 2: return_data = VcmsRootFunction().get_company_license_request_detail( page_settings, int(parameter_dict.get("data_sn"))) return jsonify(return_data)
def vcms_bind_service_account(self, functions, actions, html_template, page_settings, parameter_dict): if session["user_rank_sn"] == 2: return VcmsRootFunction().get_bind_service_account_list( page_settings, int(parameter_dict.get("data_sn"))) if session["user_rank_sn"] == 3: return VcmsAdminFunction().get_bind_service_account_list( page_settings, int(parameter_dict.get("data_sn"))) return ""
def vcms_view_system_announcement(self, functions, actions, html_template, page_settings, parameter_dict): if session["user_rank_sn"] == 2: return VcmsRootFunction().get_system_announcement_by_board_hash( page_settings, parameter_dict) if session["user_rank_sn"] == 3: return VcmsAdminFunction().get_system_announcement_by_board_hash( page_settings, parameter_dict) if session["user_rank_sn"] == 4: return VcmsUserFunction().get_system_announcement_by_board_hash( page_settings, parameter_dict) return ""
def vcms_system_announcement(self, functions, actions, html_template, page_settings, parameter_dict): pages = 1 if parameter_dict.get("pages") is not None: pages = int(parameter_dict.get("pages")) if session["user_rank_sn"] == 2: return VcmsRootFunction().get_system_announcement_list( page_settings, pages) if session["user_rank_sn"] == 3: return VcmsAdminFunction().get_system_announcement_list( page_settings, pages) if session["user_rank_sn"] == 4: return VcmsUserFunction().get_system_announcement_list( page_settings, pages) return ""
def vcms_main(self, functions, actions, html_template, page_settings, parameter_dict): html_data = HtmlBuilder().getHeaderFooterHtml(page_settings) tab_ui = {} if session["user_rank_sn"] == 1: tab_ui = VcmsEngineerFunction().get_main_ui(page_settings) if session["user_rank_sn"] == 2: tab_ui = VcmsRootFunction().get_main_ui(page_settings) if session["user_rank_sn"] == 3: tab_ui = VcmsAdminFunction().get_main_ui(page_settings) if session["user_rank_sn"] == 4: tab_ui = VcmsUserFunction().get_main_ui(page_settings) page_settings["tab_ui"] = tab_ui return render_template(html_template, header_footer_data=html_data, data=page_settings)
def vcms_company_profile(self, functions, actions, html_template, page_settings, parameter_dict): if session["user_rank_sn"] == 2: return VcmsRootFunction().get_company_profile_list( page_settings, int(parameter_dict.get("data_sn"))) return ""