VerificationFrom.cshtml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. @{
  2. ViewBag.Title = "审核流程";
  3. Layout = "~/Views/Shared/_FlowForm.cshtml";
  4. }
  5. <script>
  6. var processSchemeId = request('processSchemeId');
  7. var activityId = request('activityId');
  8. var processInstanceId = request('processInstanceId');
  9. var createusername = decodeURI(request('createusername'));
  10. var description = decodeURI(request('description'));
  11. $(function () {
  12. var schemeContent;
  13. $('#Createusername').val(createusername);
  14. $('#Description').val(description);
  15. $('#frmtab').height($.windowHeight()-40);
  16. $('#VerificationOpinion').height($.windowHeight() - 360);
  17. $.SetForm({
  18. url: "../../FlowManage/FlowProcess/GetProcessSchemeEntityByNodeId",
  19. param: { keyValue: processSchemeId, nodeId: activityId },
  20. success: function (data) {
  21. schemeContent = JSON.parse(JSON.parse(data.SchemeContent).SchemeContent);
  22. frmdata = JSON.parse(JSON.parse(data.SchemeContent).frmData);
  23. $('#frmpreview').frmPreview({
  24. tablecotent: schemeContent.Frm.FrmContent
  25. });
  26. $('#FlowPanel').flowdesign({
  27. width: $(window).width()-298,
  28. height: $(window).height()-42,
  29. flowcontent: schemeContent.Flow,
  30. haveTool: false,
  31. isprocessing: true,
  32. activityId: activityId,
  33. nodeData: schemeContent.Flow.nodes
  34. });
  35. $('#frmpreview').frmSetData(frmdata);
  36. $('#frmpreview').find('input,select,textarea,.ui-select').attr('disabled', 'disabled');
  37. //驳回到某一步
  38. $("#NodeRejectStep").ComboBox({
  39. data: schemeContent.Flow.nodes,
  40. id: "id",
  41. text: "name",
  42. description: "==请选择==",
  43. allowSearch: true,
  44. height: "300px",
  45. });
  46. var _node = "";
  47. for (var i in schemeContent.Flow.nodes)
  48. {
  49. if (schemeContent.Flow.nodes[i].id == activityId)
  50. {
  51. _node = schemeContent.Flow.nodes[i];
  52. break;
  53. }
  54. }
  55. if (_node.setInfo != undefined && _node.setInfo.NodeRejectType == "3")
  56. {
  57. $('input[name = "VerificationFinally"]').click(function () {
  58. var _value = $(this).val();
  59. var _height = $.windowHeight() - 360;
  60. var _height1 = _height - 55;
  61. if (_value == "3") {
  62. $(".NodeRejectStep").show();
  63. $("#VerificationOpinion").height(_height1);
  64. }
  65. else {
  66. $(".NodeRejectStep").hide();
  67. $("#VerificationOpinion").height(_height);
  68. }
  69. });
  70. }
  71. }
  72. });
  73. $('#btn_Submission').click(function () {
  74. if (!$('#VerificationInfo').Validform()) {
  75. return false;
  76. }
  77. var _verificationFinally = $('input[name = VerificationFinally]:checked').val();
  78. if (_verificationFinally == undefined)
  79. {
  80. dialogTop("请选择审核结果","error");
  81. return false;
  82. }
  83. var _postdata = $("#VerificationInfo").GetWebControls();
  84. delete _postdata["VerificationFinally1"];
  85. delete _postdata["VerificationFinally2"];
  86. delete _postdata["VerificationFinally3"];
  87. _postdata["VerificationFinally"] = _verificationFinally;
  88. $.ConfirmAjax({
  89. msg: "请确认是否要【提交审核】流程?",
  90. url: "../../FlowManage/FlowProcess/VerificationProcess",
  91. param: { processId: processInstanceId, verificationData: JSON.stringify(_postdata) },
  92. success: function (data) {
  93. $.currentIframe().callBack();
  94. dialogClose();
  95. }
  96. })
  97. });
  98. });
  99. </script>
  100. <div class="FlowPanelall">
  101. <ul class="nav nav-tabs">
  102. <li class="active"><a href="#frmtab" data-toggle="tab">表单信息</a></li>
  103. <li><a href="#FlowPanel" data-toggle="tab">流程信息</a></li>
  104. </ul>
  105. <div class="tab-content">
  106. <div id="frmtab" class="tab-pane active" style="overflow-y:auto;">
  107. <div id="frmpreview" class="app_layout app_preview">
  108. </div>
  109. </div>
  110. <div id="FlowPanel" class="tab-pane">
  111. </div>
  112. </div>
  113. </div>
  114. <div class="FlowInfoPanel" id="VerificationInfo">
  115. <div style="color:#9f9f9f;padding-bottom:15px;padding-left:5px;"><i style="padding-right:5px;" class="fa fa-info-circle"></i><span>在此填写内容,提交审核</span></div>
  116. <table class="form">
  117. <tr>
  118. <td class="formTitle">申请人员</td>
  119. </tr>
  120. <tr>
  121. <td class="formValue">
  122. <input id="Createusername" disabled type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
  123. </td>
  124. </tr>
  125. <tr>
  126. <td class="formTitle">申请备注</td>
  127. </tr>
  128. <tr>
  129. <td class="formValue">
  130. <textarea id="Description" disabled class="form-control" style="height:50px;"></textarea>
  131. </td>
  132. </tr>
  133. <tr>
  134. <td class="formTitle">审核人员<font face="宋体">*</font></td>
  135. </tr>
  136. <tr>
  137. <td class="formValue">
  138. <input id="VerificationUser" value="@LeaRun.Application.Code.OperatorProvider.Provider.Current().UserName" disabled type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
  139. </td>
  140. </tr>
  141. <tr>
  142. <td class="formTitle">审核结果<font face="宋体">*</font></td>
  143. </tr>
  144. <tr>
  145. <td class="formValue">
  146. <div class="rdio rdio-color_a"><input name="VerificationFinally" id="VerificationFinally1" value="1" type="radio" /><label for="VerificationFinally1">同意</label></div>
  147. <div class="rdio rdio-color_f"><input name="VerificationFinally" id="VerificationFinally2" value="2" type="radio" /><label for="VerificationFinally2">不同意</label></div>
  148. <div class="rdio rdio-color_c"><input name="VerificationFinally" id="VerificationFinally3" value="3" type="radio" /><label for="VerificationFinally3">驳回</label></div>
  149. </td>
  150. </tr>
  151. <tr class="NodeRejectStep" style="display:none">
  152. <td class="formTitle">驳回步骤<font face="宋体">*</font></td>
  153. </tr>
  154. <tr class="NodeRejectStep" style="display:none">
  155. <td class="formValue">
  156. <div id="NodeRejectStep" type="select" class="ui-select"></div>
  157. </td>
  158. </tr>
  159. <tr>
  160. <td class="formTitle">审核意见</td>
  161. </tr>
  162. <tr>
  163. <td class="formValue">
  164. <textarea id="VerificationOpinion" class="form-control" ></textarea>
  165. </td>
  166. </tr>
  167. </table>
  168. <div style="padding:5px;">
  169. <a id="btn_Submission" class="btn btn-success btn-block"><i class="fa fa-check-circle"></i>&nbsp;提交审核</a>
  170. </div>
  171. </div>
  172. <style>
  173. body {
  174. overflow: hidden;
  175. }
  176. .app_preview .item_row {
  177. background-color: #fff;
  178. }
  179. .app_layout .item_field_label {
  180. background-color: #fff;
  181. }
  182. .FlowPanelall {
  183. width:800px;
  184. float:left;
  185. }
  186. .FlowInfoPanel {
  187. float:right;
  188. width:300px;
  189. height:659px;
  190. z-index:1000;
  191. background:rgba(0,0,0,0.01);
  192. padding:10px;
  193. border-left:1px solid #ccc;
  194. }
  195. .form .formTitle {
  196. text-align: left;
  197. padding-left: 5px;
  198. }
  199. .form .formTitle font {
  200. right: auto!important;
  201. margin-left:5px;
  202. }
  203. .formValue input,.formValue textarea{
  204. border-radius: 5px;
  205. }
  206. input, textarea {
  207. background: #fff!important;
  208. }
  209. </style>