From c3fb77060711627c0f78b272592a80da8ca0e441 Mon Sep 17 00:00:00 2001 From: jingrow Date: Sat, 15 Nov 2025 22:13:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0contact=E5=92=8Cinvestor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jcapital/pagetype/investor/investor.json | 43 -------- .../__init__.py | 0 .../jcapital_contact.js} | 2 +- .../jcapital_contact/jcapital_contact.json | 81 +++++++++++++++ .../jcapital_contact.py} | 2 +- .../test_jcapital_contact.py} | 2 +- .../pagetype/jcapital_investor/__init__.py | 0 .../jcapital_investor/jcapital_investor.js | 8 ++ .../jcapital_investor/jcapital_investor.json | 98 +++++++++++++++++++ .../jcapital_investor/jcapital_investor.py | 9 ++ .../test_jcapital_investor.py | 9 ++ jcapital/locale/zh.po | 8 ++ 12 files changed, 216 insertions(+), 46 deletions(-) delete mode 100644 jcapital/jcapital/pagetype/investor/investor.json rename jcapital/jcapital/pagetype/{investor => jcapital_contact}/__init__.py (100%) rename jcapital/jcapital/pagetype/{investor/investor.js => jcapital_contact/jcapital_contact.js} (75%) create mode 100644 jcapital/jcapital/pagetype/jcapital_contact/jcapital_contact.json rename jcapital/jcapital/pagetype/{investor/investor.py => jcapital_contact/jcapital_contact.py} (84%) rename jcapital/jcapital/pagetype/{investor/test_investor.py => jcapital_contact/test_jcapital_contact.py} (75%) create mode 100644 jcapital/jcapital/pagetype/jcapital_investor/__init__.py create mode 100644 jcapital/jcapital/pagetype/jcapital_investor/jcapital_investor.js create mode 100644 jcapital/jcapital/pagetype/jcapital_investor/jcapital_investor.json create mode 100644 jcapital/jcapital/pagetype/jcapital_investor/jcapital_investor.py create mode 100644 jcapital/jcapital/pagetype/jcapital_investor/test_jcapital_investor.py create mode 100644 jcapital/locale/zh.po diff --git a/jcapital/jcapital/pagetype/investor/investor.json b/jcapital/jcapital/pagetype/investor/investor.json deleted file mode 100644 index 18cac0e..0000000 --- a/jcapital/jcapital/pagetype/investor/investor.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "actions": [], - "allow_rename": 1, - "creation": "2025-11-15 19:45:22.315890", - "engine": "InnoDB", - "field_order": [ - "title" - ], - "fields": [ - { - "fieldname": "title", - "fieldtype": "Data", - "label": "Title" - } - ], - "grid_page_length": 50, - "index_web_pages_for_search": 1, - "links": [], - "modified": "2025-11-15 19:45:56.502813", - "modified_by": "Administrator", - "module": "Jcapital", - "name": "Investor", - "owner": "Administrator", - "pagetype": "PageType", - "permissions": [ - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "share": 1, - "write": 1 - } - ], - "row_format": "Dynamic", - "sort_field": "modified", - "sort_order": "DESC", - "states": [] -} \ No newline at end of file diff --git a/jcapital/jcapital/pagetype/investor/__init__.py b/jcapital/jcapital/pagetype/jcapital_contact/__init__.py similarity index 100% rename from jcapital/jcapital/pagetype/investor/__init__.py rename to jcapital/jcapital/pagetype/jcapital_contact/__init__.py diff --git a/jcapital/jcapital/pagetype/investor/investor.js b/jcapital/jcapital/pagetype/jcapital_contact/jcapital_contact.js similarity index 75% rename from jcapital/jcapital/pagetype/investor/investor.js rename to jcapital/jcapital/pagetype/jcapital_contact/jcapital_contact.js index adbd7b6..01aba54 100644 --- a/jcapital/jcapital/pagetype/investor/investor.js +++ b/jcapital/jcapital/pagetype/jcapital_contact/jcapital_contact.js @@ -1,7 +1,7 @@ // Copyright (c) 2025, Jingrow and contributors // For license information, please see license.txt -// jingrow.ui.form.on("Investor", { +// jingrow.ui.form.on("Jcapital Contact", { // refresh(frm) { // }, diff --git a/jcapital/jcapital/pagetype/jcapital_contact/jcapital_contact.json b/jcapital/jcapital/pagetype/jcapital_contact/jcapital_contact.json new file mode 100644 index 0000000..2734ce0 --- /dev/null +++ b/jcapital/jcapital/pagetype/jcapital_contact/jcapital_contact.json @@ -0,0 +1,81 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2025-11-15 19:59:17.347120", + "engine": "InnoDB", + "field_order": [ + "title", + "position", + "company", + "investor", + "email", + "phone", + "notes" + ], + "fields": [ + { + "fieldname": "title", + "fieldtype": "Data", + "label": "姓名", + "reqd": 1 + }, + { + "fieldname": "position", + "fieldtype": "Data", + "label": "职位" + }, + { + "fieldname": "company", + "fieldtype": "Data", + "label": "公司/机构" + }, + { + "fieldname": "investor", + "fieldtype": "Link", + "label": "关联投资者", + "options": "Jcapital Investor" + }, + { + "fieldname": "email", + "fieldtype": "Data", + "label": "邮箱" + }, + { + "fieldname": "phone", + "fieldtype": "Data", + "label": "电话" + }, + { + "fieldname": "notes", + "fieldtype": "Text Editor", + "label": "备注" + } + ], + "grid_page_length": 50, + "index_web_pages_for_search": 1, + "links": [], + "modified": "2025-11-15 20:01:52.044098", + "modified_by": "Administrator", + "module": "Jcapital", + "name": "Jcapital Contact", + "owner": "Administrator", + "pagetype": "PageType", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "row_format": "Dynamic", + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/jcapital/jcapital/pagetype/investor/investor.py b/jcapital/jcapital/pagetype/jcapital_contact/jcapital_contact.py similarity index 84% rename from jcapital/jcapital/pagetype/investor/investor.py rename to jcapital/jcapital/pagetype/jcapital_contact/jcapital_contact.py index 7b53402..b90aa35 100644 --- a/jcapital/jcapital/pagetype/investor/investor.py +++ b/jcapital/jcapital/pagetype/jcapital_contact/jcapital_contact.py @@ -5,5 +5,5 @@ from jingrow.model.page import Page -class Investor(Page): +class JcapitalContact(Page): pass diff --git a/jcapital/jcapital/pagetype/investor/test_investor.py b/jcapital/jcapital/pagetype/jcapital_contact/test_jcapital_contact.py similarity index 75% rename from jcapital/jcapital/pagetype/investor/test_investor.py rename to jcapital/jcapital/pagetype/jcapital_contact/test_jcapital_contact.py index 29f73ce..55fe3b5 100644 --- a/jcapital/jcapital/pagetype/investor/test_investor.py +++ b/jcapital/jcapital/pagetype/jcapital_contact/test_jcapital_contact.py @@ -5,5 +5,5 @@ from jingrow.tests.utils import JingrowTestCase -class TestInvestor(JingrowTestCase): +class TestJcapitalContact(JingrowTestCase): pass diff --git a/jcapital/jcapital/pagetype/jcapital_investor/__init__.py b/jcapital/jcapital/pagetype/jcapital_investor/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/jcapital/jcapital/pagetype/jcapital_investor/jcapital_investor.js b/jcapital/jcapital/pagetype/jcapital_investor/jcapital_investor.js new file mode 100644 index 0000000..ccfe273 --- /dev/null +++ b/jcapital/jcapital/pagetype/jcapital_investor/jcapital_investor.js @@ -0,0 +1,8 @@ +// Copyright (c) 2025, Jingrow and contributors +// For license information, please see license.txt + +// jingrow.ui.form.on("Jcapital Investor", { +// refresh(frm) { + +// }, +// }); diff --git a/jcapital/jcapital/pagetype/jcapital_investor/jcapital_investor.json b/jcapital/jcapital/pagetype/jcapital_investor/jcapital_investor.json new file mode 100644 index 0000000..67f0cf8 --- /dev/null +++ b/jcapital/jcapital/pagetype/jcapital_investor/jcapital_investor.json @@ -0,0 +1,98 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2025-11-15 19:45:22.315890", + "engine": "InnoDB", + "field_order": [ + "title", + "investor_type", + "status", + "investment_stage", + "investment_focus", + "phone", + "email", + "website", + "description" + ], + "fields": [ + { + "fieldname": "title", + "fieldtype": "Data", + "in_list_view": 1, + "label": "投资者名称", + "reqd": 1 + }, + { + "default": "机构", + "fieldname": "investor_type", + "fieldtype": "Select", + "label": "投资者类型", + "options": "\n个人\n机构" + }, + { + "default": "活跃", + "fieldname": "status", + "fieldtype": "Select", + "label": "状态", + "options": "\n活跃\n非活跃" + }, + { + "fieldname": "investment_stage", + "fieldtype": "Select", + "label": "投资阶段", + "options": "\n种子轮\n天使轮\nPre-A轮\nA轮\nB轮\nC轮\nD轮及以上\n不限" + }, + { + "fieldname": "investment_focus", + "fieldtype": "Data", + "label": "投资领域" + }, + { + "fieldname": "email", + "fieldtype": "Data", + "label": "邮箱" + }, + { + "fieldname": "phone", + "fieldtype": "Data", + "label": "电话" + }, + { + "fieldname": "website", + "fieldtype": "Data", + "label": "网站" + }, + { + "fieldname": "description", + "fieldtype": "Text Editor", + "label": "描述" + } + ], + "grid_page_length": 50, + "index_web_pages_for_search": 1, + "links": [], + "modified": "2025-11-15 20:12:57.852534", + "modified_by": "Administrator", + "module": "Jcapital", + "name": "Jcapital Investor", + "owner": "Administrator", + "pagetype": "PageType", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "row_format": "Dynamic", + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/jcapital/jcapital/pagetype/jcapital_investor/jcapital_investor.py b/jcapital/jcapital/pagetype/jcapital_investor/jcapital_investor.py new file mode 100644 index 0000000..6890b7e --- /dev/null +++ b/jcapital/jcapital/pagetype/jcapital_investor/jcapital_investor.py @@ -0,0 +1,9 @@ +# Copyright (c) 2025, Jingrow and contributors +# For license information, please see license.txt + +# import jingrow +from jingrow.model.page import Page + + +class JcapitalInvestor(Page): + pass diff --git a/jcapital/jcapital/pagetype/jcapital_investor/test_jcapital_investor.py b/jcapital/jcapital/pagetype/jcapital_investor/test_jcapital_investor.py new file mode 100644 index 0000000..69f4eeb --- /dev/null +++ b/jcapital/jcapital/pagetype/jcapital_investor/test_jcapital_investor.py @@ -0,0 +1,9 @@ +# Copyright (c) 2025, Jingrow and Contributors +# See license.txt + +# import jingrow +from jingrow.tests.utils import JingrowTestCase + + +class TestJcapitalInvestor(JingrowTestCase): + pass diff --git a/jcapital/locale/zh.po b/jcapital/locale/zh.po new file mode 100644 index 0000000..821ddbb --- /dev/null +++ b/jcapital/locale/zh.po @@ -0,0 +1,8 @@ +msgid "Jcapital" +msgstr "投融资" + +msgid "Jcapital Investor" +msgstr "投资机构" + +msgid "Jcapital Contact" +msgstr "投资机构联系人" \ No newline at end of file