mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-08-24 07:22:55 +08:00
可以正常审核
This commit is contained in:
parent
adcdea2cf8
commit
39ce179b49
@ -67,6 +67,7 @@ namespace OpenAuth.App
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var user = AuthUtil.GetCurrentUser();
|
||||||
#region 实例信息
|
#region 实例信息
|
||||||
WFProcessInstance.ActivityId = wfruntime.runtimeModel.nextNodeId;
|
WFProcessInstance.ActivityId = wfruntime.runtimeModel.nextNodeId;
|
||||||
WFProcessInstance.ActivityType = wfruntime.GetStatus();//-1无法运行,0会签开始,1会签结束,2一般节点,4流程运行结束
|
WFProcessInstance.ActivityType = wfruntime.GetStatus();//-1无法运行,0会签开始,1会签结束,2一般节点,4流程运行结束
|
||||||
@ -75,6 +76,8 @@ namespace OpenAuth.App
|
|||||||
WFProcessInstance.SchemeType = WFSchemeInfo.SchemeType;
|
WFProcessInstance.SchemeType = WFSchemeInfo.SchemeType;
|
||||||
WFProcessInstance.FrmType = WFSchemeInfo.FrmType;
|
WFProcessInstance.FrmType = WFSchemeInfo.FrmType;
|
||||||
WFProcessInstance.EnabledMark = 1;//正式运行
|
WFProcessInstance.EnabledMark = 1;//正式运行
|
||||||
|
WFProcessInstance.CreateUserId = user.User.Id.ToString();
|
||||||
|
WFProcessInstance.CreateUserName = user.User.Account;
|
||||||
WFProcessInstance.MakerList =(wfruntime.GetStatus() != 4 ? GetMakerList(wfruntime) : "");//当前节点可执行的人信息
|
WFProcessInstance.MakerList =(wfruntime.GetStatus() != 4 ? GetMakerList(wfruntime) : "");//当前节点可执行的人信息
|
||||||
WFProcessInstance.IsFinish = (wfruntime.GetStatus() == 4 ? 1 : 0);
|
WFProcessInstance.IsFinish = (wfruntime.GetStatus() == 4 ? 1 : 0);
|
||||||
#endregion
|
#endregion
|
||||||
@ -95,7 +98,7 @@ namespace OpenAuth.App
|
|||||||
|
|
||||||
#region 流程操作记录
|
#region 流程操作记录
|
||||||
WFProcessOperationHistory processOperationHistoryEntity = new WFProcessOperationHistory();
|
WFProcessOperationHistory processOperationHistoryEntity = new WFProcessOperationHistory();
|
||||||
processOperationHistoryEntity.Content = "【创建】" + "todo"+ "创建了一个流程进程【" + WFProcessInstance.Code + "/" + WFProcessInstance.CustomName + "】";
|
processOperationHistoryEntity.Content = "【创建】" + user.User.Name + "创建了一个流程进程【" + WFProcessInstance.Code + "/" + WFProcessInstance.CustomName + "】";
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 流转记录
|
#region 流转记录
|
||||||
@ -456,17 +459,20 @@ namespace OpenAuth.App
|
|||||||
WFProcessInstance.ActivityId = wfruntime.runtimeModel.nextNodeId;
|
WFProcessInstance.ActivityId = wfruntime.runtimeModel.nextNodeId;
|
||||||
WFProcessInstance.ActivityType = wfruntime.runtimeModel.nextNodeType;//-1无法运行,0会签开始,1会签结束,2一般节点,4流程运行结束
|
WFProcessInstance.ActivityType = wfruntime.runtimeModel.nextNodeType;//-1无法运行,0会签开始,1会签结束,2一般节点,4流程运行结束
|
||||||
WFProcessInstance.ActivityName = wfruntime.runtimeModel.nextNode.name;
|
WFProcessInstance.ActivityName = wfruntime.runtimeModel.nextNode.name;
|
||||||
WFProcessInstance.MakerList = (wfruntime.runtimeModel.nextNodeType == 4 ? GetMakerList(wfruntime) : "");//当前节点可执行的人信息
|
WFProcessInstance.MakerList = wfruntime.runtimeModel.nextNodeType == 4 ?"":GetMakerList(wfruntime);//当前节点可执行的人信息
|
||||||
WFProcessInstance.IsFinish = (wfruntime.runtimeModel.nextNodeType == 4 ? 1 : 0);
|
WFProcessInstance.IsFinish = (wfruntime.runtimeModel.nextNodeType == 4 ? 1 : 0);
|
||||||
#region 流转记录
|
#region 流转记录
|
||||||
processTransitionHistoryEntity = new WFProcessTransitionHistory();
|
|
||||||
processTransitionHistoryEntity.FromNodeId = wfruntime.runtimeModel.currentNodeId;
|
processTransitionHistoryEntity = new WFProcessTransitionHistory
|
||||||
processTransitionHistoryEntity.FromNodeName = wfruntime.runtimeModel.currentNode.name.Value;
|
{
|
||||||
processTransitionHistoryEntity.FromNodeType = wfruntime.runtimeModel.currentNodeType;
|
FromNodeId = wfruntime.runtimeModel.currentNodeId,
|
||||||
processTransitionHistoryEntity.ToNodeId = wfruntime.runtimeModel.nextNodeId;
|
FromNodeName = wfruntime.runtimeModel.currentNode.name.Value,
|
||||||
processTransitionHistoryEntity.ToNodeName = wfruntime.runtimeModel.nextNode.name.Value;
|
FromNodeType = wfruntime.runtimeModel.currentNodeType,
|
||||||
processTransitionHistoryEntity.ToNodeType = wfruntime.runtimeModel.nextNodeType;
|
ToNodeId = wfruntime.runtimeModel.nextNodeId,
|
||||||
processTransitionHistoryEntity.TransitionSate = 0;
|
ToNodeName = wfruntime.runtimeModel.nextNode.name.Value,
|
||||||
|
ToNodeType = wfruntime.runtimeModel.nextNodeType,
|
||||||
|
TransitionSate = 0
|
||||||
|
};
|
||||||
processTransitionHistoryEntity.IsFinish = (processTransitionHistoryEntity.ToNodeType == 4 ? 1 : 0);
|
processTransitionHistoryEntity.IsFinish = (processTransitionHistoryEntity.ToNodeType == 4 ? 1 : 0);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@ -3,106 +3,52 @@
|
|||||||
ViewBag.Title = "审核流程";
|
ViewBag.Title = "审核流程";
|
||||||
Layout = "~/Views/Shared/_FlowForm.cshtml";
|
Layout = "~/Views/Shared/_FlowForm.cshtml";
|
||||||
}
|
}
|
||||||
<script>
|
<style>
|
||||||
var processSchemeId = request('processSchemeId');
|
body {
|
||||||
var activityId = request('activityId');
|
overflow: hidden;
|
||||||
var processInstanceId = request('processInstanceId');
|
}
|
||||||
var createusername = decodeURI(request('createusername'));
|
|
||||||
var description = decodeURI(request('description'));
|
|
||||||
$(function () {
|
|
||||||
var schemeContent;
|
|
||||||
$('#Createusername').val(createusername);
|
|
||||||
$('#Description').val(description);
|
|
||||||
$('#frmtab').height($.windowHeight()-40);
|
|
||||||
$('#VerificationOpinion').height($.windowHeight() - 360);
|
|
||||||
$.SetForm({
|
|
||||||
url: "../../FlowManage/FlowProcess/GetProcessSchemeEntityByNodeId",
|
|
||||||
param: { keyValue: processSchemeId, nodeId: activityId },
|
|
||||||
success: function (data) {
|
|
||||||
schemeContent = JSON.parse(JSON.parse(data.SchemeContent).SchemeContent);
|
|
||||||
frmdata = JSON.parse(JSON.parse(data.SchemeContent).frmData);
|
|
||||||
$('#frmpreview').frmPreview({
|
|
||||||
tablecotent: schemeContent.Frm.FrmContent
|
|
||||||
});
|
|
||||||
$('#FlowPanel').flowdesign({
|
|
||||||
width: $(window).width()-298,
|
|
||||||
height: $(window).height()-42,
|
|
||||||
flowcontent: schemeContent.Flow,
|
|
||||||
haveTool: false,
|
|
||||||
isprocessing: true,
|
|
||||||
activityId: activityId,
|
|
||||||
nodeData: schemeContent.Flow.nodes
|
|
||||||
});
|
|
||||||
$('#frmpreview').frmSetData(frmdata);
|
|
||||||
$('#frmpreview').find('input,select,textarea,.ui-select').attr('disabled', 'disabled');
|
|
||||||
|
|
||||||
//驳回到某一步
|
.app_preview .item_row {
|
||||||
$("#NodeRejectStep").ComboBox({
|
background-color: #fff;
|
||||||
data: schemeContent.Flow.nodes,
|
|
||||||
id: "id",
|
|
||||||
text: "name",
|
|
||||||
description: "==请选择==",
|
|
||||||
allowSearch: true,
|
|
||||||
height: "300px",
|
|
||||||
});
|
|
||||||
var _node = "";
|
|
||||||
for (var i in schemeContent.Flow.nodes)
|
|
||||||
{
|
|
||||||
if (schemeContent.Flow.nodes[i].id == activityId)
|
|
||||||
{
|
|
||||||
_node = schemeContent.Flow.nodes[i];
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (_node.setInfo != undefined && _node.setInfo.NodeRejectType == "3")
|
|
||||||
{
|
|
||||||
$('input[name = "VerificationFinally"]').click(function () {
|
|
||||||
var _value = $(this).val();
|
|
||||||
var _height = $.windowHeight() - 360;
|
|
||||||
var _height1 = _height - 55;
|
|
||||||
if (_value == "3") {
|
|
||||||
$(".NodeRejectStep").show();
|
|
||||||
$("#VerificationOpinion").height(_height1);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$(".NodeRejectStep").hide();
|
|
||||||
$("#VerificationOpinion").height(_height);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#btn_Submission').click(function () {
|
.app_layout .item_field_label {
|
||||||
if (!$('#VerificationInfo').Validform()) {
|
background-color: #fff;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
var _verificationFinally = $('input[name = VerificationFinally]:checked').val();
|
|
||||||
if (_verificationFinally == undefined)
|
.FlowPanelall {
|
||||||
{
|
width: 800px;
|
||||||
dialogTop("请选择审核结果","error");
|
float: left;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
var _postdata = $("#VerificationInfo").GetWebControls();
|
|
||||||
|
|
||||||
delete _postdata["VerificationFinally1"];
|
.FlowInfoPanel {
|
||||||
delete _postdata["VerificationFinally2"];
|
float: right;
|
||||||
delete _postdata["VerificationFinally3"];
|
width: 300px;
|
||||||
|
height: 659px;
|
||||||
_postdata["VerificationFinally"] = _verificationFinally;
|
z-index: 1000;
|
||||||
$.ConfirmAjax({
|
background: rgba(0,0,0,0.01);
|
||||||
msg: "请确认是否要【提交审核】流程?",
|
padding: 10px;
|
||||||
url: "../../FlowManage/FlowProcess/VerificationProcess",
|
border-left: 1px solid #ccc;
|
||||||
param: { processId: processInstanceId, verificationData: JSON.stringify(_postdata) },
|
|
||||||
success: function (data) {
|
|
||||||
$.currentIframe().callBack();
|
|
||||||
dialogClose();
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
|
|
||||||
});
|
.form .formTitle {
|
||||||
});
|
text-align: left;
|
||||||
</script>
|
padding-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form .formTitle font {
|
||||||
|
right: auto !important;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formValue input, .formValue textarea {
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input, textarea {
|
||||||
|
background: #fff !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<div class="FlowPanelall">
|
<div class="FlowPanelall">
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li class="active"><a href="#frmtab" data-toggle="tab">表单信息</a></li>
|
<li class="active"><a href="#frmtab" data-toggle="tab">表单信息</a></li>
|
||||||
@ -126,6 +72,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="formValue">
|
<td class="formValue">
|
||||||
<input id="Createusername" disabled type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
|
<input id="Createusername" disabled type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
|
||||||
|
<input id="Createuserid" style="display: none" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -175,44 +122,102 @@
|
|||||||
<a id="btn_Submission" class="btn btn-success btn-block"><i class="fa fa-check-circle"></i> 提交审核</a>
|
<a id="btn_Submission" class="btn btn-success btn-block"><i class="fa fa-check-circle"></i> 提交审核</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
.app_preview .item_row {
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
.app_layout .item_field_label {
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
.FlowPanelall {
|
|
||||||
width:800px;
|
|
||||||
float:left;
|
|
||||||
}
|
|
||||||
.FlowInfoPanel {
|
|
||||||
float:right;
|
|
||||||
width:300px;
|
|
||||||
height:659px;
|
|
||||||
z-index:1000;
|
|
||||||
background:rgba(0,0,0,0.01);
|
|
||||||
padding:10px;
|
|
||||||
border-left:1px solid #ccc;
|
|
||||||
}
|
|
||||||
.form .formTitle {
|
|
||||||
text-align: left;
|
|
||||||
padding-left: 5px;
|
|
||||||
}
|
|
||||||
.form .formTitle font {
|
|
||||||
right: auto!important;
|
|
||||||
margin-left:5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.formValue input,.formValue textarea{
|
<script>
|
||||||
|
var processSchemeId = request('processSchemeId');
|
||||||
|
var activityId = request('activityId');
|
||||||
|
var processInstanceId = request('processInstanceId');
|
||||||
|
var createusername = decodeURI(request('createusername'));
|
||||||
|
var createuserid = decodeURI(request('createuserid'));
|
||||||
|
var description = decodeURI(request('description'));
|
||||||
|
$(function () {
|
||||||
|
var schemeContent;
|
||||||
|
$('#Createusername').val(createusername);
|
||||||
|
$('#Createuserid').val(createuserid);
|
||||||
|
$('#Description').val(description);
|
||||||
|
$('#frmtab').height($.windowHeight() - 40);
|
||||||
|
$('#VerificationOpinion').height($.windowHeight() - 360);
|
||||||
|
$.SetForm({
|
||||||
|
url: "../../FlowManage/FlowProcess/GetProcessSchemeEntityByNodeId",
|
||||||
|
param: { keyValue: processSchemeId, nodeId: activityId },
|
||||||
|
success: function (data) {
|
||||||
|
schemeContent = JSON.parse(JSON.parse(data.SchemeContent).SchemeContent);
|
||||||
|
frmdata = JSON.parse(JSON.parse(data.SchemeContent).frmData);
|
||||||
|
$('#frmpreview').frmPreview({
|
||||||
|
tablecotent: schemeContent.Frm.FrmContent
|
||||||
|
});
|
||||||
|
$('#FlowPanel').flowdesign({
|
||||||
|
width: $(window).width() - 298,
|
||||||
|
height: $(window).height() - 42,
|
||||||
|
flowcontent: schemeContent.Flow,
|
||||||
|
haveTool: false,
|
||||||
|
isprocessing: true,
|
||||||
|
activityId: activityId,
|
||||||
|
nodeData: schemeContent.Flow.nodes
|
||||||
|
});
|
||||||
|
$('#frmpreview').frmSetData(frmdata);
|
||||||
|
$('#frmpreview').find('input,select,textarea,.ui-select').attr('disabled', 'disabled');
|
||||||
|
|
||||||
border-radius: 5px;
|
//驳回到某一步
|
||||||
|
$("#NodeRejectStep").ComboBox({
|
||||||
|
data: schemeContent.Flow.nodes,
|
||||||
|
id: "id",
|
||||||
|
text: "name",
|
||||||
|
description: "==请选择==",
|
||||||
|
allowSearch: true,
|
||||||
|
height: "300px",
|
||||||
|
});
|
||||||
|
var _node = "";
|
||||||
|
for (var i in schemeContent.Flow.nodes) {
|
||||||
|
if (schemeContent.Flow.nodes[i].id == activityId) {
|
||||||
|
_node = schemeContent.Flow.nodes[i];
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
input, textarea {
|
|
||||||
background: #fff!important;
|
|
||||||
}
|
}
|
||||||
|
if (_node.setInfo != undefined && _node.setInfo.NodeRejectType == "3") {
|
||||||
|
$('input[name = "VerificationFinally"]').click(function () {
|
||||||
|
var _value = $(this).val();
|
||||||
|
var _height = $.windowHeight() - 360;
|
||||||
|
var _height1 = _height - 55;
|
||||||
|
if (_value == "3") {
|
||||||
|
$(".NodeRejectStep").show();
|
||||||
|
$("#VerificationOpinion").height(_height1);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$(".NodeRejectStep").hide();
|
||||||
|
$("#VerificationOpinion").height(_height);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
</style>
|
$('#btn_Submission').click(function () {
|
||||||
|
if (!$('#VerificationInfo').Validform()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
var _verificationFinally = $('input[name = VerificationFinally]:checked').val();
|
||||||
|
if (_verificationFinally == undefined) {
|
||||||
|
dialogTop("请选择审核结果", "error");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
var _postdata = $("#VerificationInfo").GetWebControls();
|
||||||
|
|
||||||
|
delete _postdata["VerificationFinally1"];
|
||||||
|
delete _postdata["VerificationFinally2"];
|
||||||
|
delete _postdata["VerificationFinally3"];
|
||||||
|
|
||||||
|
_postdata["VerificationFinally"] = _verificationFinally;
|
||||||
|
$.ConfirmAjax({
|
||||||
|
msg: "请确认是否要【提交审核】流程?",
|
||||||
|
url: "../../FlowManage/FlowProcess/VerificationProcess",
|
||||||
|
param: { processId: processInstanceId, verificationData: JSON.stringify(_postdata) },
|
||||||
|
success: function (data) {
|
||||||
|
$.currentIframe().callBack();
|
||||||
|
dialogClose();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@ -132,9 +132,6 @@ function addInstance() {
|
|||||||
area: ['1200px', '700px'], //宽高
|
area: ['1200px', '700px'], //宽高
|
||||||
maxmin: true, //开启最大化最小化按钮
|
maxmin: true, //开启最大化最小化按钮
|
||||||
content: '/FlowManage/FlowLaunch/FlowProcessNewForm?keyValue=' + selected.Id,
|
content: '/FlowManage/FlowLaunch/FlowProcessNewForm?keyValue=' + selected.Id,
|
||||||
end: function () {
|
|
||||||
list.reload();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,16 +66,23 @@ function MainGrid() {
|
|||||||
index: "CreateUserId",
|
index: "CreateUserId",
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
index: "Code",
|
index: "Code",
|
||||||
name: "Code",
|
name: "Code",
|
||||||
label: "流程编号"
|
label: "流程编号"
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
index: "CustomName",
|
index: "CustomName",
|
||||||
name: "CustomName",
|
name: "CustomName",
|
||||||
label: "申请标题"
|
label: "申请标题"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "CreateUserName",
|
||||||
|
index: "CreateUserName",
|
||||||
|
label: "申请人"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
index: "ActivityName",
|
index: "ActivityName",
|
||||||
name: "ActivityName",
|
name: "ActivityName",
|
||||||
@ -142,14 +149,6 @@ function del() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//自定义的编辑按钮
|
|
||||||
function edit() {
|
|
||||||
var selected = list.getSelectedObj();
|
|
||||||
if (selected == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
editDlg.update(selected);
|
|
||||||
}
|
|
||||||
|
|
||||||
//进度详情
|
//进度详情
|
||||||
function detail() {
|
function detail() {
|
||||||
@ -185,8 +184,9 @@ function verificationForm() {
|
|||||||
area: ["1200px", "700px"], //宽高
|
area: ["1200px", "700px"], //宽高
|
||||||
content: "/FlowManage/FlowInstances/VerificationForm?processSchemeId="
|
content: "/FlowManage/FlowInstances/VerificationForm?processSchemeId="
|
||||||
+ selected.ProcessSchemeId + "&activityId="
|
+ selected.ProcessSchemeId + "&activityId="
|
||||||
+ selected.ActivityId + "&createusername="
|
+ selected.ActivityId + "&processInstanceId="
|
||||||
+ selected.CreateUserId + "&description="
|
+ selected.Id + "&createuserid="
|
||||||
|
+ selected.CreateUserId + "&createusername=" + selected.CreateUserName + "&description="
|
||||||
+ selected.Description,
|
+ selected.Description,
|
||||||
maxmin: true, //开启最大化最小化按钮
|
maxmin: true, //开启最大化最小化按钮
|
||||||
end: function () {
|
end: function () {
|
||||||
@ -196,7 +196,7 @@ function verificationForm() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function add() {
|
function add() {
|
||||||
editDlg.add();
|
layer.msg('请在流程设计列表中发起流程!');
|
||||||
}
|
}
|
||||||
|
|
||||||
function refresh() {
|
function refresh() {
|
||||||
|
@ -171,7 +171,6 @@
|
|||||||
<Compile Include="WebCtrls\AjaxResult.cs" />
|
<Compile Include="WebCtrls\AjaxResult.cs" />
|
||||||
<Compile Include="WebCtrls\GridTree\TreeGridEntity.cs" />
|
<Compile Include="WebCtrls\GridTree\TreeGridEntity.cs" />
|
||||||
<Compile Include="WebCtrls\GridTree\TreeGridJson.cs" />
|
<Compile Include="WebCtrls\GridTree\TreeGridJson.cs" />
|
||||||
<Compile Include="WebCtrls\Grid\GridColumnModel.cs" />
|
|
||||||
<Compile Include="WebCtrls\Pagination.cs" />
|
<Compile Include="WebCtrls\Pagination.cs" />
|
||||||
<Compile Include="WebCtrls\Tree\TreeEntity.cs" />
|
<Compile Include="WebCtrls\Tree\TreeEntity.cs" />
|
||||||
<Compile Include="WebCtrls\Tree\TreeJson.cs" />
|
<Compile Include="WebCtrls\Tree\TreeJson.cs" />
|
||||||
|
@ -1,99 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace LeaRun.Util.WebControl
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 表头属性模型
|
|
||||||
/// </summary>
|
|
||||||
public class GridColumnModel
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 定义表格单元格(非表头)的对齐方式,可取值:left, center, right
|
|
||||||
/// </summary>
|
|
||||||
public string align { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 此属性用于定义列的类名,当有多个类名时,用空格间隔,例如:“class1 class2”。在表格的CSS中,有一个预定义的类ui-ellipsis用于定义特定的行
|
|
||||||
/// </summary>
|
|
||||||
public string classes { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 日期格式,可用/,-和.。作为间隔符。y、Y、yyyy用于4位年,YY、yy用于2位的月,d、dd用于日期
|
|
||||||
/// </summary>
|
|
||||||
public string datefmt { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 搜索字段的缺省值,此参数只用于自定义搜索是的初始值。
|
|
||||||
/// </summary>
|
|
||||||
public string defval { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 定义字段是否可编辑,用于单元格编辑、行编辑和表单模式
|
|
||||||
/// </summary>
|
|
||||||
public bool editable { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 根据edittype 参数定义可用的值数组
|
|
||||||
/// </summary>
|
|
||||||
public string[] editoptions { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 设置可编辑字段的补充规则
|
|
||||||
/// </summary>
|
|
||||||
public string[] editrules { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 定义行编辑和表单模式的编辑类型,可以是text、textarea、select、checkbox、 password、button、image和file。
|
|
||||||
/// </summary>
|
|
||||||
public string edittype { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 定义表单编辑的各种选项
|
|
||||||
/// </summary>
|
|
||||||
public string[] formoptions { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 定义初始化时,列是否隐藏。
|
|
||||||
/// </summary>
|
|
||||||
public string hidden { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 通过sidx参数设置排序时的索引名。
|
|
||||||
/// </summary>
|
|
||||||
public string index { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 当colNames数组为空时,定义此列的标题。若colNames数组和此属性都为空,标题为该列的name属性值。
|
|
||||||
/// </summary>
|
|
||||||
public string label { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 设置列在表格中的唯一名称,此属性是必须的。或者使用保留字subgrid、cb和rn.
|
|
||||||
/// </summary>
|
|
||||||
public string name { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 定义是否可变列宽
|
|
||||||
/// </summary>
|
|
||||||
public bool resizable { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 定义是否可以排序
|
|
||||||
/// </summary>
|
|
||||||
public string sortable { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 当datatype为local时,用于定义排序列类型。可取int/integer(整数)、float/number/currency(小数)、date(日期)、text(文本)
|
|
||||||
/// </summary>
|
|
||||||
public string sorttype { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 当设置为false时,鼠标滑向单元格时不显示title属性
|
|
||||||
/// </summary>
|
|
||||||
public bool title { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 设置列的初始宽度,可用pixels和百分比
|
|
||||||
/// </summary>
|
|
||||||
public int width { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 自定义格式化
|
|
||||||
/// </summary>
|
|
||||||
public string formatter { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 排序码
|
|
||||||
/// </summary>
|
|
||||||
public int? SortCode { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 有效
|
|
||||||
/// </summary>
|
|
||||||
public int? Enabled { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user