routine update

This commit is contained in:
yubaolee 2016-10-27 16:46:42 +08:00
parent 956137ac3a
commit b1ee459c9e
2 changed files with 24 additions and 24 deletions

View File

@ -35,7 +35,7 @@ function wfdesignerRedraw() {
wfdesignerRedraw(); wfdesignerRedraw();
$(function () { $(function () {
$(".btn-cmd") $(".workflowcmd")
.on("click", function () { //执行命令 .on("click", function () { //执行命令
$.post("/CommonApplies/ExeCmd?id=" +$("#processId").val() +"&cmd=" +$(this).val() , $.post("/CommonApplies/ExeCmd?id=" +$("#processId").val() +"&cmd=" +$(this).val() ,
function (data) { function (data) {

View File

@ -18,30 +18,30 @@
<input value="@Model.Id" id="processId" type="hidden" /> <input value="@Model.Id" id="processId" type="hidden" />
<input value="@Model.WorkflowName" id="schemeCode" type="hidden" /> <input value="@Model.WorkflowName" id="schemeCode" type="hidden" />
<div class="row">
<div class="col-md-12"> @if (Model.Commands.Length > 0)
<div class="panel panel-default"> {
@if (Model.Commands.Length > 0) <div class="ui-state-highlight ui-corner-all" style="margin-top: 20px; padding: 0 .7em;">
{ <p>
<div class="panel-body"> <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
<span class="label label-default">下图蓝色为当前状态,你可以执行:</span> 下图蓝色为当前状态,你可以执行:
@foreach (var cmd in Model.Commands) @foreach (var cmd in Model.Commands)
{ {
if (cmd.Classifier == TransitionClassifier.Reverse) if (cmd.Classifier == TransitionClassifier.Reverse)
{ {
<button class="btn ui-button-icon-primary btn-cmd" value="@cmd.Key">@cmd.Value</button> <button class="workflowcmd" value="@cmd.Key">@cmd.Value</button>
} }
else else
{ {
<button class="btn btn-sm btn-success btn-cmd" value="@cmd.Key">@cmd.Value</button> <button class="workflowcmd" value="@cmd.Key">@cmd.Value</button>
} }
} }
</div> </p>
}
<div id="wfdesigner"></div>
</div>
</div>
</div> </div>
}
<div id="wfdesigner"></div>
<script src="/BllScripts/queryString.js"></script> <script src="/BllScripts/queryString.js"></script>
<script src="/BllScripts/processDetail.js?v=1"></script> <script src="/BllScripts/processDetail.js?v=1"></script>