增加Domain Owner这个pagetype
This commit is contained in:
parent
e455fc97ba
commit
3f8881cbd9
0
jcloud/jcloud/pagetype/domain_owner/__init__.py
Normal file
0
jcloud/jcloud/pagetype/domain_owner/__init__.py
Normal file
8
jcloud/jcloud/pagetype/domain_owner/domain_owner.js
Normal file
8
jcloud/jcloud/pagetype/domain_owner/domain_owner.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
// Copyright (c) 2025, Jingrow and contributors
|
||||||
|
// For license information, please see license.txt
|
||||||
|
|
||||||
|
// jingrow.ui.form.on("Domain Owner", {
|
||||||
|
// refresh(frm) {
|
||||||
|
|
||||||
|
// },
|
||||||
|
// });
|
||||||
201
jcloud/jcloud/pagetype/domain_owner/domain_owner.json
Normal file
201
jcloud/jcloud/pagetype/domain_owner/domain_owner.json
Normal file
@ -0,0 +1,201 @@
|
|||||||
|
{
|
||||||
|
"actions": [],
|
||||||
|
"allow_rename": 1,
|
||||||
|
"creation": "2025-08-01 13:48:37.031674",
|
||||||
|
"engine": "InnoDB",
|
||||||
|
"field_order": [
|
||||||
|
"title",
|
||||||
|
"c_org_m",
|
||||||
|
"fullname",
|
||||||
|
"c_ln_m",
|
||||||
|
"c_fn_m",
|
||||||
|
"c_co",
|
||||||
|
"cocode",
|
||||||
|
"c_st_m",
|
||||||
|
"c_ct_m",
|
||||||
|
"c_dt_m",
|
||||||
|
"c_adr_m",
|
||||||
|
"c_pc",
|
||||||
|
"c_ph_type",
|
||||||
|
"c_ph",
|
||||||
|
"c_ph_code",
|
||||||
|
"c_ph_num",
|
||||||
|
"c_ph_fj",
|
||||||
|
"c_em",
|
||||||
|
"column_break_pnxw",
|
||||||
|
"c_regtype",
|
||||||
|
"c_org",
|
||||||
|
"c_ln",
|
||||||
|
"c_fn",
|
||||||
|
"c_st",
|
||||||
|
"c_ct",
|
||||||
|
"c_adr"
|
||||||
|
],
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"fieldname": "title",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "Title"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_regtype",
|
||||||
|
"fieldtype": "Select",
|
||||||
|
"label": "所有者类型",
|
||||||
|
"options": "\nI\nE"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_org_m",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "(中文)所有者单位名称"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "fullname",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "姓名"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "column_break_pnxw",
|
||||||
|
"fieldtype": "Column Break"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_ln_m",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "(中文)联系人姓"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_fn_m",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "(中文)联系人名"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_co",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "所属国家或地区简称"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "cocode",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "国家或地区电话代码"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_st_m",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "(中文)所属省"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_ct_m",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "(中文)所属市"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_dt_m",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "(中文)所属县"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_adr_m",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "(中文)通讯地址"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_pc",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "邮编"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "0",
|
||||||
|
"description": "0:手机,1:座机",
|
||||||
|
"fieldname": "c_ph_type",
|
||||||
|
"fieldtype": "Select",
|
||||||
|
"label": "联系电话类型",
|
||||||
|
"options": "0\n1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_ph",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "手机号码"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_ph_code",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "座机号码区号"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_ph_num",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "座机号码"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_ph_fj",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "座机号码分机号"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_em",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "电子邮箱"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_org",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "(英文)所有者单位名称"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_ln",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "(英文)联系人名",
|
||||||
|
"length": 50
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_fn",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "(英文)联系人姓",
|
||||||
|
"length": 50
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_st",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "(英文)省份",
|
||||||
|
"length": 50
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_ct",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "(英文)城市",
|
||||||
|
"length": 50
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "c_adr",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "(英文)通讯地址",
|
||||||
|
"length": 150
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"grid_page_length": 50,
|
||||||
|
"index_web_pages_for_search": 1,
|
||||||
|
"links": [],
|
||||||
|
"modified": "2025-08-01 14:57:10.765137",
|
||||||
|
"modified_by": "Administrator",
|
||||||
|
"module": "Jcloud",
|
||||||
|
"name": "Domain Owner",
|
||||||
|
"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": []
|
||||||
|
}
|
||||||
43
jcloud/jcloud/pagetype/domain_owner/domain_owner.py
Normal file
43
jcloud/jcloud/pagetype/domain_owner/domain_owner.py
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# Copyright (c) 2025, Jingrow and contributors
|
||||||
|
# For license information, please see license.txt
|
||||||
|
|
||||||
|
# import jingrow
|
||||||
|
from jingrow.model.document import Document
|
||||||
|
|
||||||
|
|
||||||
|
class DomainOwner(Document):
|
||||||
|
# begin: auto-generated types
|
||||||
|
# This code is auto-generated. Do not modify anything in this block.
|
||||||
|
|
||||||
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from jingrow.types import DF
|
||||||
|
|
||||||
|
c_adr: DF.Data | None
|
||||||
|
c_adr_m: DF.Data | None
|
||||||
|
c_co: DF.Data | None
|
||||||
|
c_ct: DF.Data | None
|
||||||
|
c_ct_m: DF.Data | None
|
||||||
|
c_dt_m: DF.Data | None
|
||||||
|
c_em: DF.Data | None
|
||||||
|
c_fn: DF.Data | None
|
||||||
|
c_fn_m: DF.Data | None
|
||||||
|
c_ln: DF.Data | None
|
||||||
|
c_ln_m: DF.Data | None
|
||||||
|
c_org: DF.Data | None
|
||||||
|
c_org_m: DF.Data | None
|
||||||
|
c_pc: DF.Data | None
|
||||||
|
c_ph: DF.Data | None
|
||||||
|
c_ph_code: DF.Data | None
|
||||||
|
c_ph_fj: DF.Data | None
|
||||||
|
c_ph_num: DF.Data | None
|
||||||
|
c_ph_type: DF.Literal["0", "1"]
|
||||||
|
c_regtype: DF.Literal["", "I", "E"]
|
||||||
|
c_st: DF.Data | None
|
||||||
|
c_st_m: DF.Data | None
|
||||||
|
cocode: DF.Data | None
|
||||||
|
fullname: DF.Data | None
|
||||||
|
title: DF.Data | None
|
||||||
|
# end: auto-generated types
|
||||||
|
pass
|
||||||
9
jcloud/jcloud/pagetype/domain_owner/test_domain_owner.py
Normal file
9
jcloud/jcloud/pagetype/domain_owner/test_domain_owner.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Copyright (c) 2025, Jingrow and Contributors
|
||||||
|
# See license.txt
|
||||||
|
|
||||||
|
# import jingrow
|
||||||
|
from jingrow.tests.utils import JingrowTestCase
|
||||||
|
|
||||||
|
|
||||||
|
class TestDomainOwner(JingrowTestCase):
|
||||||
|
pass
|
||||||
Loading…
x
Reference in New Issue
Block a user