refactor(#IVY9T): 字典表Code列定义更改为2000个字符

#Issue
https://gitee.com/LongbowEnterprise/dashboard/issues?id=IVY9T
Comment #IVY9T 更改为2000

#Comment
link #IVY9T
This commit is contained in:
Argo Zhang 2019-04-27 11:08:45 +08:00
parent 20c870111f
commit 05374f7794
8 changed files with 6 additions and 6 deletions

Binary file not shown.

View File

@ -65,7 +65,7 @@
</div>
<div class="form-group col-12">
<label class="control-label" for="dictCode">字典代码</label>
<input type="text" class="form-control flex-sm-fill" id="dictCode" placeholder="不可为空,500字以内" maxlength="500" data-valid="true" />
<input type="text" class="form-control flex-sm-fill" id="dictCode" placeholder="不可为空,2000字以内" maxlength="2000" data-valid="true" />
</div>
<div class="form-group form-group-dropdown col-12">
<label class="control-label" for="dictDefine">字典类型</label>

View File

@ -35,7 +35,7 @@ namespace Bootstrap.DataAccess
{
if (dict.Category.Length > 50) dict.Category = dict.Category.Substring(0, 50);
if (dict.Name.Length > 50) dict.Name = dict.Name.Substring(0, 50);
if (dict.Code.Length > 50) dict.Code = dict.Code.Substring(0, 50);
if (dict.Code.Length > 2000) dict.Code = dict.Code.Substring(0, 2000);
DbManager.Create().Save(dict);
return true;

View File

@ -342,7 +342,7 @@ CREATE TABLE [dbo].[Dicts](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Category] [nvarchar](50) NOT NULL,
[Name] [nvarchar](50) NOT NULL,
[Code] [nvarchar](500) NOT NULL,
[Code] [nvarchar](2000) NOT NULL,
[Define] [int] NOT NULL,
CONSTRAINT [PK_dbo.Dict] PRIMARY KEY CLUSTERED
(

View File

@ -113,7 +113,7 @@ CREATE TABLE Dicts(
ID INTEGER PRIMARY KEY Auto_increment,
Category VARCHAR (50) NOT NULL,
Name VARCHAR (50) NOT NULL,
Code VARCHAR (500) NOT NULL,
Code VARCHAR (2000) NOT NULL,
Define INT NOT NULL DEFAULT 1
);

View File

@ -113,7 +113,7 @@ CREATE TABLE Dicts(
ID SERIAL PRIMARY KEY,
Category VARCHAR (50) NOT NULL,
Name VARCHAR (50) NOT NULL,
Code VARCHAR (500) NOT NULL,
Code VARCHAR (2000) NOT NULL,
Define INT NOT NULL DEFAULT 1
);

View File

@ -113,7 +113,7 @@ CREATE TABLE Dicts(
ID INTEGER PRIMARY KEY,
Category VARCHAR (50) NOT NULL,
Name VARCHAR (50) NOT NULL,
Code VARCHAR (500) NOT NULL,
Code VARCHAR (2000) NOT NULL,
Define INT NOT NULL DEFAULT (1)
);

Binary file not shown.