Ver a proveniência

数据字典加字段(类型、长度、约束、值空间等)修改列表、编辑

西昌缴费二期
zhangli há 2 anos
ascendente
cometimento
7f9f7b6de2
5 ficheiros alterados com 80 adições e 13 eliminações
  1. +24
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/DataItem/Form.cshtml
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/DataItem/Index.cshtml
  3. +17
    -11
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/DataItem/Index.js
  4. +36
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemDetailEntity.cs
  5. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemService.cs

+ 24
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/DataItem/Form.cshtml Ver ficheiro

@@ -12,6 +12,30 @@
<div class="lr-form-item-title">项目值<font face="宋体">*</font></div>
<input id="F_ItemValue" type="text" class="form-control" placeholder="请输入编号" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">类型</div>
<input id="F_Type" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">长度</div>
<input id="F_Length" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">约束</div>
<input id="F_Constraint" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">值空间</div>
<input id="F_ValueSpace" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">解释/举例</div>
<input id="F_Explain" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">引用编号</div>
<input id="F_ReferenceNum" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">排序<font face="宋体">*</font></div>
<input id="F_SortCode" type="text" class="form-control" placeholder="请输入排序号" isvalid="yes" checkexpession="Num" />


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/DataItem/Index.cshtml Ver ficheiro

@@ -18,7 +18,7 @@
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入项目名/项目值" />
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入关键字查询" />
</div>
<div class="lr-layout-tool-item">
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i>&nbsp;<span class="lrlt">查询</span></a>


+ 17
- 11
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/DataItem/Index.js Ver ficheiro

@@ -37,8 +37,8 @@ var bootstrap = function ($, learun) {
id: 'form',
title: '添加字典',
url: top.$.rootUrl + '/LR_SystemModule/DataItem/Form?parentId=' + parentId + '&itemCode=' + classify_itemCode,
width: 500,
height: 370,
width: 600,
height: 500,
callBack: function (id) {
return top[id].acceptClick(refreshGird);
}
@@ -48,17 +48,14 @@ var bootstrap = function ($, learun) {
$('#lr_edit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('F_ItemDetailId');
top.selectedDataItemRow = $('#gridtable').jfGridGet('rowdata');



if (learun.checkrow(keyValue)) {
learun.layerForm({
id: 'form',
title: '编辑字典',
url: top.$.rootUrl + '/LR_SystemModule/DataItem/Form?itemCode=' + classify_itemCode,
width: 500,
height: 370,
width: 600,
height: 500,
callBack: function (id) {
return top[id].acceptClick(refreshGird);
}
@@ -108,9 +105,18 @@ var bootstrap = function ($, learun) {
$('#gridtable').lrAuthorizeJfGrid({
url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList',
headData: [
{ label: '项目名', name: 'F_ItemName', width: 200, align: 'left' },
{ label: '项目值', name: 'F_ItemValue', width: 200, align: 'left' },
{ label: '简拼', name: 'F_SimpleSpelling', width: 150, align: 'left' },
//{ label: '项目名', name: 'F_ItemName', width: 200, align: 'left' },
//{ label: '项目值', name: 'F_ItemValue', width: 200, align: 'left' },
//{ label: '简拼', name: 'F_SimpleSpelling', width: 150, align: 'left' },
{ label: '中文简称', name: 'F_ItemName', width: 200, align: 'left' },
{ label: '编号', name: 'F_ItemValue', width: 200, align: 'left' },
{ label: '数据项名', name: 'F_SimpleSpelling', width: 150, align: 'left' },
{ label: '类型', name: 'F_Type', width: 100, align: 'left' },
{ label: '长度', name: 'F_Length', width: 100, align: 'left' },
{ label: '约束', name: 'F_Constraint', width: 100, align: 'left' },
{ label: '值空间', name: 'F_ValueSpace', width: 100, align: 'left' },
{ label: '解释/举例', name: 'F_Explain', width: 100, align: 'left' },
{ label: '引用编号', name: 'F_ReferenceNum', width: 100, align: 'left' },
{ label: '排序', name: 'F_SortCode', width: 80, align: 'center' },
{
label: "有效", name: "F_EnabledMark", width: 50, align: "center",


+ 36
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemDetailEntity.cs Ver ficheiro

@@ -128,6 +128,42 @@ namespace Learun.Application.Base.SystemModule
/// <returns></returns>
[Column("F_MODIFYUSERNAME")]
public string F_ModifyUserName { get; set; }
/// <summary>
/// 类型
/// </summary>
/// <returns></returns>
[Column("F_TYPE")]
public string F_Type { get; set; }
/// <summary>
/// 长度
/// </summary>
/// <returns></returns>
[Column("F_LENGTH")]
public string F_Length { get; set; }
/// <summary>
/// 约束
/// </summary>
/// <returns></returns>
[Column("F_CONSTRAINT")]
public string F_Constraint { get; set; }
/// <summary>
/// 值空间
/// </summary>
/// <returns></returns>
[Column("F_VALUESPACE")]
public string F_ValueSpace { get; set; }
/// <summary>
/// 解释举例
/// </summary>
/// <returns></returns>
[Column("F_EXPLAIN")]
public string F_Explain { get; set; }
/// <summary>
/// 引用编号
/// </summary>
/// <returns></returns>
[Column("F_REFERENCENUM")]
public string F_ReferenceNum { get; set; }
#endregion

#region 扩展操作


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/DataItem/DataItemService.cs Ver ficheiro

@@ -57,7 +57,8 @@ namespace Learun.Application.Base.SystemModule
t.F_CreateUserName,
t.F_ModifyDate,
t.F_ModifyUserId,
t.F_ModifyUserName
t.F_ModifyUserName,
t.F_Type,t.F_Length,t.F_Constraint,t.F_ValueSpace,t.F_Explain,t.F_ReferenceNum
";
}
#endregion


Carregando…
Cancelar
Guardar