@@ -12,6 +12,30 @@ | |||||
<div class="lr-form-item-title">项目值<font face="宋体">*</font></div> | <div class="lr-form-item-title">项目值<font face="宋体">*</font></div> | ||||
<input id="F_ItemValue" type="text" class="form-control" placeholder="请输入编号" isvalid="yes" checkexpession="NotNull" /> | <input id="F_ItemValue" type="text" class="form-control" placeholder="请输入编号" isvalid="yes" checkexpession="NotNull" /> | ||||
</div> | </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="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">排序<font face="宋体">*</font></div> | <div class="lr-form-item-title">排序<font face="宋体">*</font></div> | ||||
<input id="F_SortCode" type="text" class="form-control" placeholder="请输入排序号" isvalid="yes" checkexpession="Num" /> | <input id="F_SortCode" type="text" class="form-control" placeholder="请输入排序号" isvalid="yes" checkexpession="Num" /> | ||||
@@ -18,7 +18,7 @@ | |||||
<div class="lr-layout-tool"> | <div class="lr-layout-tool"> | ||||
<div class="lr-layout-tool-left"> | <div class="lr-layout-tool-left"> | ||||
<div class="lr-layout-tool-item"> | <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> | ||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> <span class="lrlt">查询</span></a> | <a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> <span class="lrlt">查询</span></a> | ||||
@@ -37,8 +37,8 @@ var bootstrap = function ($, learun) { | |||||
id: 'form', | id: 'form', | ||||
title: '添加字典', | title: '添加字典', | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataItem/Form?parentId=' + parentId + '&itemCode=' + classify_itemCode, | url: top.$.rootUrl + '/LR_SystemModule/DataItem/Form?parentId=' + parentId + '&itemCode=' + classify_itemCode, | ||||
width: 500, | |||||
height: 370, | |||||
width: 600, | |||||
height: 500, | |||||
callBack: function (id) { | callBack: function (id) { | ||||
return top[id].acceptClick(refreshGird); | return top[id].acceptClick(refreshGird); | ||||
} | } | ||||
@@ -48,17 +48,14 @@ var bootstrap = function ($, learun) { | |||||
$('#lr_edit').on('click', function () { | $('#lr_edit').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('F_ItemDetailId'); | var keyValue = $('#gridtable').jfGridValue('F_ItemDetailId'); | ||||
top.selectedDataItemRow = $('#gridtable').jfGridGet('rowdata'); | top.selectedDataItemRow = $('#gridtable').jfGridGet('rowdata'); | ||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
learun.layerForm({ | learun.layerForm({ | ||||
id: 'form', | id: 'form', | ||||
title: '编辑字典', | title: '编辑字典', | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataItem/Form?itemCode=' + classify_itemCode, | url: top.$.rootUrl + '/LR_SystemModule/DataItem/Form?itemCode=' + classify_itemCode, | ||||
width: 500, | |||||
height: 370, | |||||
width: 600, | |||||
height: 500, | |||||
callBack: function (id) { | callBack: function (id) { | ||||
return top[id].acceptClick(refreshGird); | return top[id].acceptClick(refreshGird); | ||||
} | } | ||||
@@ -108,9 +105,18 @@ var bootstrap = function ($, learun) { | |||||
$('#gridtable').lrAuthorizeJfGrid({ | $('#gridtable').lrAuthorizeJfGrid({ | ||||
url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList', | url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList', | ||||
headData: [ | 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_SortCode', width: 80, align: 'center' }, | ||||
{ | { | ||||
label: "有效", name: "F_EnabledMark", width: 50, align: "center", | label: "有效", name: "F_EnabledMark", width: 50, align: "center", | ||||
@@ -128,6 +128,42 @@ namespace Learun.Application.Base.SystemModule | |||||
/// <returns></returns> | /// <returns></returns> | ||||
[Column("F_MODIFYUSERNAME")] | [Column("F_MODIFYUSERNAME")] | ||||
public string F_ModifyUserName { get; set; } | 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 | #endregion | ||||
#region 扩展操作 | #region 扩展操作 | ||||
@@ -57,7 +57,8 @@ namespace Learun.Application.Base.SystemModule | |||||
t.F_CreateUserName, | t.F_CreateUserName, | ||||
t.F_ModifyDate, | t.F_ModifyDate, | ||||
t.F_ModifyUserId, | 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 | #endregion | ||||