editTestFlow.jsp 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
  4. <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  6. <html>
  7. <head>
  8. <!-- by qianqw 20150317 -->
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10. <!-- end -->
  11. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  12. <title>测试远程bpm引擎办理</title>
  13. <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
  14. <link href="${pageContext.request.contextPath}/yw/bpm/style/flow.css" rel="stylesheet" type="text/css" />
  15. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  16. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  17. <script type="text/javascript" src="/shares/js/constant.js"></script>
  18. <script type="text/javascript" src="/shares/js/common.js"></script>
  19. <script type="text/javascript" src="/shares/js/file.js"></script>
  20. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  21. <script type="text/javascript" src="/shares/datePicker/WdatePicker.js"></script>
  22. <!-- 选择窗口需要加载的js文件 start-->
  23. <script src="${pageContext.request.contextPath}/liger/lib/json2.js" type="text/javascript"></script>
  24. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
  25. <script type="text/javascript" src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js"></script>
  26. <script type="text/javascript" src="/shares/js/constant.js"></script>
  27. <script type="text/javascript">
  28. var nextTacheInfoDialog = null;
  29. $(function() {
  30. document.onkeydown = function(evt) {
  31. if (evt.keyCode == 13) {
  32. return;
  33. }
  34. };
  35. var nextUserTag = "${requestScope.flow.pathJudgeType }";
  36. if (nextUserTag == "1") {
  37. $("[name='nextUser']").hide();
  38. var nextTmodelId = $("[name='nextTmodelId']").val();
  39. $("#" + nextTmodelId).show();
  40. }
  41. $("[name='nextTmodelId']").change(function() {
  42. $("[name='nextUser']").hide();
  43. var nextTmodelId = $("[name='nextTmodelId']").val();
  44. $("#" + nextTmodelId).show();
  45. });
  46. var nextObject = "${requestScope.flow.noticeObject}";
  47. if (nextObject.indexOf("3") >= 0) {
  48. $("#noticeOther").show();
  49. }
  50. loadTypeTree("noticeButton", {
  51. type : "user",
  52. tab : "1",
  53. backId : "noticeUsers",
  54. backName : "noticeUsernames"
  55. });
  56. loadTypeTree("copytoButton", {
  57. type : "user",
  58. tab : "1",
  59. backId : "copytoUsers",
  60. backName : "copytoUsernames"
  61. });
  62. nextTacheInfoDialog = $.ligerDialog.open({
  63. width : 800,
  64. target : $("#nextTacheInfo"),
  65. showMax : false,
  66. showToggle : false,
  67. showMin : false,
  68. show : false,
  69. isResize : false,
  70. modal : true,
  71. title : "后续环节人员查看及选择",
  72. allowClose : true,
  73. containerId : 'incomePlanForm'
  74. });
  75. nextTacheInfoDialog.hidden();
  76. });
  77. $(document).ready(function() {
  78. var money = $("#incomePlan\\.total_amount_lower").val();
  79. if (money != "" && typeof (money) != "undefined") {
  80. displayChinese(money);
  81. }
  82. });
  83. function checkForm() {
  84. /*
  85. * var rs = $.validate({ name : "v_ins_name", model : [ { type : "require",
  86. * msg : "流程标题不能为空!", msgBox : "v_ins_name_box" }, { type : "len", min : 1,
  87. * max : 50, msg : "流程标题长度不能超过50个字!", msgBox : "v_ins_name_box" } ] });
  88. */
  89. var rs = true;
  90. var pathJudgeType = $("#pathJudgeType").val();
  91. if (pathJudgeType == "1") {
  92. rs = $.validate({
  93. name : "nextTmodelId",
  94. model : [ {
  95. type : "require",
  96. msg : "下一步环节不能为空!"
  97. } ]
  98. });
  99. }
  100. var usersNames = $("[type='text'][id*='usersName']:visible");
  101. for (var i = 0; i < usersNames.length; i++) {
  102. rs = $.validate({
  103. name : usersNames[i].id,
  104. model : [ {
  105. type : "require",
  106. msg : "下一步环节操作人不能为空!"
  107. } ]
  108. }) && rs;
  109. }
  110. if (rs) {
  111. return true;
  112. }
  113. return false;
  114. }
  115. //保存
  116. function saveIncomePlanForm() {
  117. // var rs = $.validate({
  118. // name : "incomePlan.project_name",
  119. // model : [ {
  120. // type : "len",
  121. // min : 0,
  122. // max : 100,
  123. // msg : "输入长度不要超过100个字符!",
  124. // msgField : "btn_suppliers"
  125. // } ]
  126. // });
  127. // rs &= $.validate({
  128. // name : "incomePlan.pay_content",
  129. // model : [ {
  130. // type : "len",
  131. // min : 0,
  132. // max : 500,
  133. // msg : "输入长度不要超过500个字符!"
  134. // } ]
  135. // });
  136. // rs &= $.validate({
  137. // name : "incomePlan.pay_unit",
  138. // model : [ {
  139. // type : "require",
  140. // msg : "交款单位(交款人)不能为空!"
  141. // }, {
  142. // type : "len",
  143. // min : 0,
  144. // max : 100,
  145. // msg : "输入长度不要超过100个字符!"
  146. // } ]
  147. // });
  148. // rs &= $.validate({
  149. // name : "incomePlan.contract_number",
  150. // model : [ {
  151. // type : "len",
  152. // min : 0,
  153. // max : 100,
  154. // msg : "输入长度不要超过100个字符!"
  155. // } ]
  156. // });
  157. // rs &= $.validate({
  158. // name : "incomePlan.total_amount_lower",
  159. // model : [ {
  160. // type : "require",
  161. // msg : "金额不能为空!"
  162. // }, {
  163. // type : "isNumber",
  164. // msg : "金额只能为数字!"
  165. // } ]
  166. // });
  167. // if (!rs)
  168. // return;
  169. var rs = checkForm();
  170. if (rs) {
  171. //$('.bsubmit').attr("disabled", "disabled");
  172. preProcess("remoteTestAction.do", "#incomePlanForm");
  173. }
  174. }
  175. function preProcess(actionUrl, formName) {
  176. $("#task").val("preProcess");
  177. var x = $(formName).serializeArray();
  178. $.each(x, function(i, field) {
  179. field.value = encodeURI(field.value);
  180. });
  181. $
  182. .ajax({
  183. url : actionUrl,
  184. async : true,
  185. type : "post",
  186. data : x,
  187. dataType : 'json',
  188. success : function(data) {
  189. // alert(data);
  190. // addInfo(data);
  191. // var oldTabid = $("#tabid").val();
  192. // window.parent.f_reloadTab(oldTabid);
  193. // window.parent.frames[oldTabid].closeODialog($("#dialogId").val());
  194. // alert(data[0].nextTacheInstances);
  195. var resultState = data.returnParams.resultState;
  196. var submitState = data.returnParams.submitState;
  197. var resultInfo = data.returnParams.resultInfo;
  198. if (!submitState) {
  199. $("#sbmbtn").hide();
  200. $("#clsbtn").show();
  201. } else {
  202. $("#sbmbtn").show();
  203. $("#clsbtn").hide();
  204. }
  205. if (resultState) {
  206. var table = $("#nextTacheInfoTd");
  207. table.html("");
  208. var nextTacheInstances = data.returnParams.nextTacheList;
  209. for (var i = 0; i < nextTacheInstances.length; i++) {
  210. var users = nextTacheInstances[i].users;
  211. var info = nextTacheInstances[i].info;
  212. var isCheck = nextTacheInstances[i].isCheck;
  213. // var tacheModel = nextTacheInstances[i].tacheModel;
  214. var tmodelId = nextTacheInstances[i].tmodelId;
  215. var tmodelName = nextTacheInstances[i].tmodelName;
  216. var html = "<tr><td>";
  217. html += "<input type='hidden' id='tmodelId_" +
  218. tmodelId + "' name='tmodelId_" +
  219. tmodelId + "' value='" + tmodelId + "'>";
  220. html += tmodelName;
  221. html += "</td><td>";
  222. if (isCheck == "true") {
  223. html += "<input type='hidden' id='isCheck_" + tmodelId
  224. + "' name='isCheck_" + tmodelId + "' value='1'>";
  225. } else {
  226. html += "<input type='hidden' id='isCheck_" + tmodelId
  227. + "' name='isCheck_" + tmodelId + "' value='0'>";
  228. }
  229. if (info != "" && info != null
  230. && info != undefined) {
  231. html += "<span style='color:red'>" + info
  232. + "</span>";
  233. } else {
  234. for (var j = 0; j < users.length; j++) {
  235. html += "<input type='checkbox' id='tmodel_" +
  236. tmodelId + "' name='tmodel_" + tmodelId +
  237. "' value='" + users[j].id + "' checked='checked'>";
  238. html += users[j].userId.username;
  239. // else {
  240. // html += "<input type='checkbox' id='tmodel_" +
  241. // tacheModel.tmodelId + "' name='tmodel_" + tacheModel.tmodelId +
  242. // "' value='" + users[j].id + "' readonly='readonly'>";
  243. // html += users[j].userId.username;
  244. // html += "(该用户已离职)&nbsp;";
  245. // }
  246. }
  247. }
  248. html += "</td></tr>";
  249. table.append(html);
  250. }
  251. } else {
  252. var table = $("#nextTacheInfoTd");
  253. table.html("");
  254. var html = "<td style='text-align: center;' colspan='2'>";
  255. html += "<span style='color: red;'>" + resultInfo
  256. + "</span>";
  257. html += "</td>";
  258. table.append(html);
  259. }
  260. //nextTacheDialog.hide();
  261. $("#validateTip").hide();
  262. nextTacheInfoDialog.show();
  263. },
  264. error : function() {
  265. alert("数据处理失败,请检查网络重新登录或联系管理员!");
  266. $("button").removeAttr("disabled");
  267. },
  268. beforeSend : function() {
  269. //$("button").attr("disabled", "disabled");
  270. }
  271. });
  272. }
  273. function saveFlow() {
  274. $("#sbmbtn").attr("disabled", "disabled");
  275. $("#task").val("process");
  276. var x = $("#incomePlanForm").serializeArray();
  277. $.each(x, function(i, field) {
  278. field.value = encodeURI(field.value);
  279. });
  280. var tmodelIds = $("[name*='tmodelId_']");
  281. for (var i = 0; i < tmodelIds.length; i++) {
  282. var bool = false;
  283. var isCheck = $("#isCheck_" + tmodelIds[i].value).val();
  284. if (isCheck == '1') {
  285. $("input[name='tmodel_" + tmodelIds[i].value + "']").each(
  286. function() {
  287. if (this.checked) {
  288. bool = true;
  289. }
  290. });
  291. if (!bool) {
  292. $("#validateTip").show();
  293. $("#sbmbtn").removeAttr("disabled");
  294. return false;
  295. }
  296. }
  297. }
  298. var result1 = false;
  299. $.ajax({
  300. url : "remoteTestAction.do",
  301. async : false,
  302. type : "post",
  303. data : x,
  304. dataType : 'json',
  305. success : function(data) {
  306. var resultState = data.returnParams.resultState;
  307. var resultInfo = data.returnParams.resultInfo;
  308. if(resultState){
  309. addInfo("流程办理成功!");
  310. // var oldTabid = $("#tabid").val();
  311. // window.parent.f_reloadTab(oldTabid);
  312. // window.parent.frames[oldTabid].closeODialog($("#dialogId").val());
  313. result1 = true;
  314. } else {
  315. addError(resultInfo);
  316. }
  317. },
  318. error : function() {
  319. alert("数据处理失败,请检查网络重新登录或联系管理员!");
  320. $("button").removeAttr("disabled");
  321. },
  322. beforeSend : function() {
  323. //$("button").attr("disabled", "disabled");
  324. }
  325. });
  326. if (result1) {
  327. // var oldTabid = $("#tabid").val();
  328. // window.parent.f_reloadTab(oldTabid);
  329. closeSelf();
  330. // window.parent.frames[oldTabid].closeODialog($("#dialogId").val());
  331. } else {
  332. $("#sbmbtn").removeAttr("disabled");
  333. }
  334. }
  335. function closeSelf(){
  336. var type = "${param.type}";
  337. if(type==1){
  338. window.parent.frames['content'].frames['${param.tabid }'].onLoad();
  339. if(window.parent.frames['loginFlowAlert_win']){
  340. window.parent.frames['loginFlowAlert_win'].onLoad();
  341. }
  342. window.parent.frames['content'].frames['${param.tabid }'].closeODialog('${param.dialogId }');
  343. } else {
  344. window.parent.f_selectTab('${param.tabid }');
  345. window.parent.f_reloadTab('${param.tabid }');
  346. window.parent.frames['${param.tabid }']
  347. .closeODialog('${param.dialogId }');
  348. }
  349. }
  350. function submitIncomePlanForm() {
  351. $("#incomePlanForm").submit();
  352. }
  353. // function savePlanForm(){
  354. // $("#planForm").submit();
  355. // }
  356. //收入计划失去焦点事件
  357. function onBlurCheck(objValue) {
  358. if (objValue == '') {
  359. $("#income_plan_number").val("");
  360. $("#income_plan_number").val("自动生成");
  361. clearSingelMsg('income_plan_number');
  362. $("#btnSave").removeAttr("disabled");//将按钮可用
  363. return;
  364. } else {
  365. reRequestNumber();
  366. return;
  367. }
  368. }
  369. //收入计划获得焦点事件
  370. function onFocusCheck(objValue) {
  371. if (objValue != "" && typeof (objValue) != "undefined"
  372. && objValue == "自动生成") {
  373. $("#income_plan_number").val("");
  374. clearSingelMsg('income_plan_number');
  375. $("#btnSave").removeAttr("disabled");//将按钮可用
  376. return;
  377. }
  378. }
  379. function returnJs(buttonName){
  380. if(!confirm("确认" + buttonName + "该流程?")){
  381. return;
  382. }
  383. $('#task').val('return');
  384. /*if(formId == "0"){
  385. var rs = true;
  386. $("#formInsId").val("0");
  387. if(rs){
  388. $('.bsubmit').attr("disabled", "disabled");
  389. saveFlow("FlowAction.do", "#insForm");
  390. }
  391. } else {
  392. var rs = true;
  393. rs = document.frames.formIns.checkForm();
  394. //rs = checkForm() && rs;
  395. if(rs){
  396. var hasGen = $(window.frames["formIns"].document).find("#hasGen").val();
  397. $('.bsubmit').attr("disabled", "disabled");
  398. if(hasGen == 0){
  399. $(window.frames["formIns"].document).find("#formIns").submit();
  400. } else {
  401. document.frames.formIns.save();
  402. }
  403. }
  404. }*/
  405. var result1 = false;
  406. //$('.bsubmit').attr("disabled", "disabled");
  407. var x = $("#incomePlanForm").serializeArray();
  408. $.each(x, function(i, field) {
  409. field.value = encodeURI(field.value);
  410. });
  411. $.ajax({
  412. url : "remoteTestAction.do",
  413. async : false,
  414. type : "post",
  415. data : x,
  416. dataType : 'json',
  417. success : function(data) {
  418. // // var resultState = data.returnParams.resultState;
  419. // var resultInfo = data.returnParams.resultInfo;
  420. addInfo("流程退回成功!");
  421. // closeSelf();
  422. result1 = true;
  423. },
  424. error : function() {
  425. alert("数据处理失败,请检查网络重新登录或联系管理员!");
  426. },
  427. beforeSend : function() {
  428. }
  429. });
  430. if (result1) {
  431. // var oldTabid = $("#tabid").val();
  432. // window.parent.f_reloadTab(oldTabid);
  433. closeSelf();
  434. // window.parent.frames[oldTabid].closeODialog($("#dialogId").val());
  435. } else {
  436. $("#sbmbtn").removeAttr("disabled");
  437. }
  438. }
  439. </script>
  440. <style type="text/css">
  441. /* 选择金额大小写css样式 */
  442. #displayMoneyDiv {
  443. font-family: "楷体_GB2312";
  444. /* "宋体",, "黑体",Arial,Helvetica, sans-serif */
  445. /* color:#000000; */
  446. color: red;
  447. font-size: 13px;
  448. }
  449. #displayGatheringDiv {
  450. font-family: "楷体_GB2312";
  451. /* "宋体",, "黑体",Arial,Helvetica, sans-serif */
  452. /* color:#000000; */
  453. color: red;
  454. font-size: 13px;
  455. }
  456. #displayReturnDiv {
  457. font-family: "楷体_GB2312";
  458. /* "宋体",, "黑体",Arial,Helvetica, sans-serif */
  459. /* color:#000000; */
  460. color: red;
  461. font-size: 13px;
  462. }
  463. </style>
  464. </head>
  465. <body>
  466. <form id="incomePlanForm" action="fmIncomePlanAction.do" method="post">
  467. <!-- <div id="title" class="form-button"> -->
  468. <!-- <input id="btnSave" type="button" class="l-button" value="提交" onclick="saveIncomePlanForm()" /> -->
  469. <%-- <%-- ${flowOnOff=='off'? 'disabled="disabled"':'' } --%>
  470. --%>
  471. <!-- <input type="button" value="关闭" class="l-button" onclick="closeWindow();" /> -->
  472. <%-- <%-- <c:if test="${flowOnOff=='off' }"> --%>
  473. --%>
  474. <!-- <span style="color: red;">请先配置审核流程</span> -->
  475. <%-- <%-- </c:if> --%>
  476. --%>
  477. <!-- </div> -->
  478. <div class="navbar-inner1">
  479. <button type="button" onclick="saveIncomePlanForm()" class="btn" style="border-color: ${requestScope.ttype.submitColor };">
  480. <span style="color: ${requestScope.ttype.submitColor }">${requestScope.ttype.submitButton }</span>
  481. </button>
  482. <%-- <button type="button" onclick="assistDialog.show();" class="btn" style="border-color: ${requestScope.ttype.assistColor };"> --%>
  483. <%-- <span style="color: ${requestScope.ttype.assistColor }">${requestScope.ttype.assistButton }</span> --%>
  484. <!-- </button> -->
  485. <%-- <button type="button" onclick="closeSelf();" class="btn" style="border-color: ${requestScope.ttype.closeColor };"> --%>
  486. <%-- <span style="color: ${requestScope.ttype.closeColor }">${requestScope.ttype.closeButton }</span> --%>
  487. <!-- </button> -->
  488. <c:if test="${requestScope.tmodel.se == 0 }">
  489. <button type="button" onclick="returnJs('${requestScope.ttype.returnButton }');" class="btn" style="border-color: ${requestScope.ttype.returnColor };">
  490. <span style="color: ${requestScope.ttype.returnColor }">${requestScope.ttype.returnButton }</span>
  491. </button>
  492. <%-- <button type="button" onclick="returnToSenderJs();" class="btn" style="border-color: ${requestScope.ttype.returnStartColor };"> --%>
  493. <%-- <span style="color: ${requestScope.ttype.returnStartColor }">${requestScope.ttype.returnStartButton }</span> --%>
  494. <!-- </button> -->
  495. </c:if>
  496. </div>
  497. <div class="container-layout">
  498. <div class="forum-container">
  499. <center>
  500. <span style="font-size: 30px;">收入计划单</span>
  501. <table class="l-table-edit line">
  502. <tr>
  503. <td class="l-table-edit-text" width="10%">项目名称<FONT COLOR="red"></FONT>:
  504. </td>
  505. <td class="l-table-edit-td"><input type="hidden" id="project_id_3" name="incomePlan.project_id" value="" /> <input style="width: 200px;" type="text" id="project_name_3"
  506. name="incomePlan.project_name" value="" /></td>
  507. <td class="l-table-edit-text" width="15%">单号<FONT COLOR="red"></FONT>:
  508. </td>
  509. <td class="l-table-edit-td" width="35%">自动生成 <input type="hidden" id="income_plan_number" name="incomePlan.income_plan_number" class="notFirstFocus" value="自动生成" size="32"
  510. onblur="onBlurCheck(this.value);" onfocus="onFocusCheck(this.value);" readonly="readonly" /> <%-- <input style="width:230px;" type="text" id="plan.train_name" name="plan.train_name" value="${requestScope.plan.train_name}"/> --%>
  511. </td>
  512. </tr>
  513. <tr>
  514. <td class="l-table-edit-text">交款单位(交款人)<FONT COLOR="red">*</FONT>:
  515. </td>
  516. <td class="l-table-edit-td"><input type="text" id="firstparty_name" name="incomePlan.pay_unit" value="" size="32" /> <input type="hidden" id="firstparty" name="incomePlan.pay_unit_id"
  517. value="" /></td>
  518. <td class="l-table-edit-text">合同编号<FONT COLOR="red"></FONT>:
  519. </td>
  520. <td class="l-table-edit-td"><input type="hidden" id="contract_id_3" name="incomePlan.contract_id" value="" /> <input type="hidden" id="contract_name" name="contract_name" value=""
  521. readonly="readonly" /> <input type="text" id="contract_number_3" name="incomePlan.contract_number" size="32" value="" /></td>
  522. </tr>
  523. <tr>
  524. <td class="l-table-edit-text">合同里程碑<FONT COLOR="red"></FONT>:
  525. </td>
  526. <td class="l-table-edit-td" colspan="3"><input type="hidden" id="milestone_id" name="incomePlan.contract_milestone_id" value="" /> <input type="text" id="status_name"
  527. name="incomePlan.contract_milestone_name" size="32" value="" readonly="readonly" /></td>
  528. </tr>
  529. <tr>
  530. <td class="l-table-edit-text">收入类别:<FONT COLOR="red"></FONT></td>
  531. <td class="l-table-edit-td" colspan="3"><select id="income_type" name="incomePlan.income_type" style="width: 240px;">
  532. <option value="" selected="selected">-请选择-</option>
  533. </select></td>
  534. </tr>
  535. <tr>
  536. <td class="l-table-edit-text">交款项目(内容): <FONT COLOR="red"></FONT></td>
  537. <td class="l-table-edit-td" colspan="3"><textarea id="pay_content" name="incomePlan.pay_content" rows="12" cols="76" style="margin-left: 0px;"></textarea></td>
  538. </tr>
  539. <tr>
  540. <td class="l-table-edit-text">合计金额(小写)¥ <FONT COLOR="red">*</FONT>:
  541. </td>
  542. <td class="l-table-edit-td">
  543. <div style="float: left;">
  544. <input id="trade_money" style="width: 200px;" name="incomePlan.total_amount_lower" type='text' value="" />
  545. </div> <input type="hidden" id="milestone_money" name="milestone_money" value="" /> <!-- <input id="trade_money" style="width: 200px;" name="incomePlan.total_amount_lower" type='text' value="" onkeyup="displayChinese(this.value,2)"/></div> -->
  546. <!-- <input style="width:230px;" type="text" id="total_amount_lower" name="total_amount_lower" value=""/> -->
  547. </td>
  548. <td class="l-table-edit-text">合计金额(大写)¥<FONT COLOR="red"></FONT>:
  549. </td>
  550. <td class="l-table-edit-td">
  551. <!-- <div id="displayReturnDiv" class="displayMoneyDiv" style="float:left;margin-top:10px;"></div> --> <input id="incomePlan.total_amount_upper"
  552. name="incomePlan.total_amount_upper" value="" style="width: 285px; border: none; background-color: white;" disabled="disabled" />
  553. </td>
  554. </tr>
  555. <tr>
  556. <td class="l-table-edit-text">是否开票:<FONT COLOR="red"></FONT>:
  557. </td>
  558. <td class="l-table-edit-td"><select id="is_bill" name="incomePlan.is_bill" style="width: 100px;">
  559. <option value="" selected="selected">-请选择-</option>
  560. </select></td>
  561. <td class="l-table-edit-text">开票时间<FONT COLOR="red"></FONT>:
  562. </td>
  563. <td class="l-table-edit-td"><input class="Wdate" type="text" id="bill_date" name="incomePlan.bill_date" value="" onclick="WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd'})" /> <!-- <input class="Wdate" style="width: 150px;" type="text" id="bill_date" name="bill_date" value="" onclick="WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd'})"/> -->
  564. </td>
  565. </tr>
  566. <tr>
  567. <td class="l-table-edit-text">创建人:</td>
  568. <td class="l-table-edit-td">
  569. <%-- ${requestScope.create_user} --%>
  570. </td>
  571. <td class="l-table-edit-text">创建时间<FONT COLOR="red"></FONT>:
  572. </td>
  573. <td class="l-table-edit-td">
  574. <%-- <fmt:formatDate value="${requestScope.create_date}" pattern="yyyy-MM-dd"/> --%>
  575. </td>
  576. </tr>
  577. </table>
  578. <fieldset id="icon-top4" class="icon-top" style="width: 970px;">
  579. <legend class="fieldsettop">
  580. <i></i> &nbsp;流程办理
  581. </legend>
  582. <div class="forum-container">
  583. <table class="l-table-edit">
  584. <c:choose>
  585. <c:when test="${requestScope.flow.pathJudgeType == 1 }">
  586. <tr>
  587. <td class="l-table-edit-text">下一环节<FONT COLOR="red">*</FONT>:
  588. </td>
  589. <td class="l-table-edit-td"><select id="nextTmodelId" name="nextTmodelId" class="width_150 flowText">
  590. <c:forEach items="${requestScope.nextTmodels }" var="tmodel">
  591. <option value="${tmodel.nextTmodelId }">${tmodel.nextTmodelName }</option>
  592. </c:forEach>
  593. </select></td>
  594. </tr>
  595. <c:forEach items="${requestScope.nextHandTmodels }" var="nhTmodel" varStatus="count">
  596. <tbody id="${nhTmodel.nextTmodelId }" name="nextUser">
  597. <tr>
  598. <td class="l-table-edit-text">下一环节操作人<FONT COLOR="red">*</FONT>:
  599. </td>
  600. <td class="l-table-edit-td"><input type="text" class="width_150 flowText" style="margin-top: 4px;" id="usersName${nhTmodel.nextTmodelId }"
  601. name="usersName${nhTmodel.nextTmodelId }" value=""> <input type="hidden" id="users${nhTmodel.nextTmodelId }" name="users${nhTmodel.nextTmodelId }"
  602. value=""> <input type="button" class="btn flowText" style="height: 25px;" id="usersButton${nhTmodel.nextTmodelId }" name="usersButton${nhTmodel.nextTmodelId }"
  603. value="选择人员"></td>
  604. </tr>
  605. <script type="text/javascript">
  606. $(document)
  607. .ready(
  608. function() {
  609. loadTypeTree(
  610. "usersButton${nhTmodel.nextTmodelId }",
  611. {
  612. type : "user",
  613. tab : "1",
  614. backId : "users${nhTmodel.nextTmodelId }",
  615. backName : "usersName${nhTmodel.nextTmodelId }",
  616. tabParam : [ {
  617. tab : "1",
  618. isMultiDept : "1"
  619. } ]
  620. });
  621. });
  622. </script>
  623. </tbody>
  624. </c:forEach>
  625. </c:when>
  626. <c:when test="${requestScope.flow.pathJudgeType == 0 }">
  627. <c:if test="${fn:length(requestScope.nextHandTmodels) > 0}">
  628. <tr>
  629. <td class="l-table-edit-text">下一环节操作人<FONT COLOR="red">*</FONT>:
  630. </td>
  631. <td class="l-table-edit-td"></td>
  632. </tr>
  633. </c:if>
  634. <c:forEach items="${requestScope.nextHandTmodels }" var="nhTmodel" varStatus="count">
  635. <tbody id="${nhTmodel.nextTmodelId }" name="nextUser">
  636. <tr>
  637. <td class="l-table-edit-text">${nhTmodel.nextTmodelName }<FONT COLOR="red">*</FONT>:
  638. </td>
  639. <td class="l-table-edit-td"><input type="text" class="width_150 flowText" style="margin-top: 4px;" id="usersName${nhTmodel.nextTmodelId }"
  640. name="usersName${nhTmodel.nextTmodelId }" value=""> <input type="hidden" id="users${nhTmodel.nextTmodelId }" name="users${nhTmodel.nextTmodelId }"
  641. value=""> <input type="button" class="btn flowText" style="height: 25px;" id="usersButton${nhTmodel.nextTmodelId }" name="usersButton${nhTmodel.nextTmodelId }"
  642. value="选择人员"></td>
  643. </tr>
  644. <script type="text/javascript">
  645. $(document)
  646. .ready(
  647. function() {
  648. loadTypeTree(
  649. "usersButton${nhTmodel.nextTmodelId }",
  650. {
  651. type : "user",
  652. tab : "1",
  653. backId : "users${nhTmodel.nextTmodelId }",
  654. backName : "usersName${nhTmodel.nextTmodelId }",
  655. tabParam : [ {
  656. tab : "1",
  657. isMultiDept : "1"
  658. } ]
  659. });
  660. });
  661. </script>
  662. </tbody>
  663. </c:forEach>
  664. </c:when>
  665. </c:choose>
  666. <tr>
  667. <td class="l-table-edit-text">当前环节名称:</td>
  668. <td class="l-table-edit-td">${requestScope.tmodel.tmodelName }</td>
  669. </tr>
  670. <c:if test="${requestScope.tmodel.handleValidate == 1 }">
  671. <tr>
  672. <td class="l-table-edit-text">短信验证码:</td>
  673. <td class="l-table-edit-td"><input type="text" id="validateCode" name="validateCode" class="width_150 flowText">
  674. <button type="button" class="btn" id="sendCode" name="sendCode" onclick="sendCode1();">发送验证码</button>
  675. <button type="button" class="btn" id="resendTip" name="resendTip" style="color: red; display: none;" disabled="disabled">60秒后可以重新发送</button>
  676. <button type="button" class="btn" id="resendCode" name="resendCode" onclick="sendCode2()" style="display: none;">重新发送验证码</button> <span style="color: red; display: none;" id="errorTip"
  677. name="errorTip">验证码错误,请重新输入</span></td>
  678. </tr>
  679. </c:if>
  680. <tr>
  681. <td class="l-table-edit-text">短信提醒:</td>
  682. <td class="l-table-edit-td"><input type="checkbox" id="isNextSms" name="isNextSms" value="1"
  683. <c:if test="${requestScope.tmodel.isSms.value == 1}">
  684. checked="checked"
  685. </c:if>>&nbsp;短信通知下一环节操作人</td>
  686. </tr>
  687. <tr id="noticeOther" style="display: none;">
  688. <td class="l-table-edit-text">通知其他人:</td>
  689. <td class="l-table-edit-td"><textarea id="noticeUsernames" name="noticeUsernames" rows="3" cols="50" class="flowText"></textarea> <input type="hidden" id="noticeUsers" name="noticeUsers"
  690. value=""> <input type="button" style="height: 25px;" class="btn flowText" id="noticeButton" name="noticeButton" value="选择人员"></td>
  691. </tr>
  692. <!-- <tr> -->
  693. <!-- <td class="l-table-edit-text" colspan="2"> -->
  694. <!-- <div> -->
  695. <!-- <a onclick="show('copytoTR', this);" style="color: #3853a8; cursor: pointer;">添加抄送</a> <a onclick="hide('copytoTR', this);" style="color: #3853a8; cursor: pointer; display: none;">取消抄送</a> -->
  696. <!-- </div> -->
  697. <!-- </td> -->
  698. <!-- </tr> -->
  699. <!-- <tr id="copytoTR" style="display: none;"> -->
  700. <!-- <td class="l-table-edit-text">抄送对象:</td> -->
  701. <!-- <td class="l-table-edit-td"><textarea id="copytoUsernames" name="copytoUsernames" rows="3" cols="50" class="flowText"></textarea> <input type="hidden" id="copytoUsers" name="copytoUsers" -->
  702. <!-- value=""> <input type="button" style="height: 25px;" class="btn flowText" id="copytoButton" name="copytoButton" value="选择人员"></td> -->
  703. <!-- </tr> -->
  704. <!-- <tr> -->
  705. <!-- <td class="l-table-edit-text" rowspan="2">环节审批: -->
  706. <!-- </td> -->
  707. <!-- <td class="l-table-edit-td"> -->
  708. <!-- <select id="instructions" class="flowText" style="width: 200px;"> -->
  709. <!-- <option value="">常用批示语</option> -->
  710. <%-- <c:forEach items="${requestScope.inList }" var="in"> --%>
  711. <%-- <option value="${in.instructions }">${in.instructions }</option> --%>
  712. <%-- </c:forEach> --%>
  713. <!-- </select> -->
  714. <!-- </td> -->
  715. <!-- </tr> -->
  716. <tr>
  717. <td class="l-table-edit-td"><textarea rows="5" cols="100" class="flowText" id="remark" name="remark"></textarea></td>
  718. </tr>
  719. </table>
  720. </div>
  721. </fieldset>
  722. <fieldset id="icon-top5" class="icon-top"
  723. style="width: 970px; ">
  724. <legend class="fieldsettop">
  725. <i></i> &nbsp;流转过程
  726. <%-- <c:if test="${requestScope.imgflag == 1 }"> --%>
  727. <!-- &nbsp;<img width="14" height="14" title="查看流程图" style="cursor: pointer;" onclick="openimg();" src="/shares/images/view.png" complete="complete"/> -->
  728. <!-- <font size="12px" style="cursor: pointer;" onclick="openimg();">点此查看流程图</font> -->
  729. <%-- </c:if> --%>
  730. </legend>
  731. <!-- <div id="maingrid4" style="margin-left: 10px; width: 900px;"> -->
  732. <c:forEach items="${requestScope.processList }" var="tache">
  733. <div class="wf_shadow1">
  734. <%-- <c:if test="${tache.taskCount != 0 || tache.assistCount != 0}"> --%>
  735. <%-- <div style="position: absolute; margin-left: 750px; cursor: pointer; color: blue;" id="showTaskDetail_${tache.tache.tinsId}" onclick="showTaskDetail('${tache.tache.tinsId}');">查看传阅协办</div> --%>
  736. <%-- <div style="position: absolute; margin-left: 750px; cursor: pointer; color: blue; display: none;" id="hideTaskDetail_${tache.tache.tinsId}" onclick="showTaskDetail('${tache.tache.tinsId}');">隐藏传阅协办</div> --%>
  737. <%-- </c:if> --%>
  738. <%-- <c:if test="${tache.userHeaderImg.headerfileid!=null && tache.userHeaderImg.headerfileid!='' }"> --%>
  739. <!-- <div style="position: absolute; margin-left: 5px; width: 90px;"> -->
  740. <%-- <img alt="" style="width: 40px; height:40px;" src="${tache.userHeaderImg.path }"> --%>
  741. <!-- </div> -->
  742. <%-- </c:if> --%>
  743. <%-- <c:if test="${tache.userHeaderImg.headerfileid==null || tache.userHeaderImg.headerfileid=='' }"> --%>
  744. <!-- <div style="position: absolute; margin-left: 5px; width: 90px;"> -->
  745. <%-- <img alt="" style="width: 40px; height: 40px;" src="${pageContext.request.contextPath}/yw/bpm/style/header1.png"> --%>
  746. <!-- </div> -->
  747. <%-- </c:if> --%>
  748. <div class="marginleft60">
  749. 环节名称:<font class="blueFont">${tache.tache.tmodelName }</font>&nbsp;&nbsp;
  750. 创建时间:<font class="blueFont">${fn:substring(tache.tache.createdate, 0, 16) }22</font>&nbsp;&nbsp;
  751. <c:if test="${tache.tache.finishdate != null }">
  752. 环节办结:<font class="blueFont">${fn:substring(tache.tache.finishdate, 0, 16) }</font>&nbsp;&nbsp;
  753. </c:if>
  754. <font style="color: red; font-size: 14px;">${tache.tache.stateName }</font>
  755. </div>
  756. <div class="marginleft60">
  757. <font style="color: #000033; font-size: 20px;">${tache.tache.username }
  758. <c:if test="${tache.tache.authorizedUserId!='0' && tache.tache.authorizedUserId!='' && tache.tache.authorizedUserId!=null}">
  759. (授权:${tache.tache.authorizedUserName})
  760. </c:if>
  761. </font>
  762. <c:if test="${tache.tache.remark != null && fn:length(tache.tache.remark) > 0 }">
  763. </c:if>
  764. </div>
  765. <c:if test="${tache.tache.remark != null && fn:length(tache.tache.remark) > 0 }">
  766. <div class="marginleft60">
  767. <font style="color: blue; font-size: 14px;">${tache.tache.remark }</font>
  768. </div>
  769. </c:if>
  770. <%-- <c:if test="${tache.taskCount != 0 }"> --%>
  771. <%-- <div class="taskDetail_${tache.tache.tinsId} marginleft60" style="display: none;"> --%>
  772. <!-- <div><font class="blueFont12px">传阅信息</font></div> -->
  773. <%-- <c:forEach items="${tache.task }" var="task"> --%>
  774. <!-- <div> -->
  775. <%-- 传阅对象:<font class="blueFont12px">${task.username } </font>&nbsp;&nbsp; --%>
  776. <%-- 传阅时间:<font class="blueFont12px">${fn:substring(task.createdate, 0, 16) }</font> --%>
  777. <!-- </div> -->
  778. <%-- </c:forEach> --%>
  779. <!-- </div> -->
  780. <%-- </c:if> --%>
  781. <%-- <c:if test="${tache.assistCount != 0 }"> --%>
  782. <%-- <div class="taskDetail_${tache.tache.tinsId} marginleft60" style="display: none; "> --%>
  783. <!-- <div><font class="blueFont12px">协办信息</font></div> -->
  784. <%-- <c:forEach items="${tache.assist }" var="task"> --%>
  785. <!-- <div> -->
  786. <%-- 协办对象:<font class="blueFont12px">${task.assist.username }</font> &nbsp;&nbsp; --%>
  787. <%-- 办理内容:<font class="blueFont12px">${task.assist.taskContent }</font> &nbsp;&nbsp; --%>
  788. <%-- 创建时间:<font class="blueFont12px">${fn:substring(task.assist.createdate, 0, 16) }</font> &nbsp;&nbsp; --%>
  789. <%-- <c:if test="${task.assist.finishdate!='' && task.assist.finishdate!=null }"> --%>
  790. <%-- 完成时间:<font class="blueFont12px">${fn:substring(task.assist.finishdate, 0, 16) }</font> &nbsp;&nbsp; --%>
  791. <%-- </c:if> --%>
  792. <%-- <c:if test="${task.dialog.dialogInfo!='' && task.dialog.dialogInfo!=null }">反馈: --%>
  793. <%-- ${task.dialog.dialogInfo } --%>
  794. <%-- </c:if> --%>
  795. <!-- </div> -->
  796. <%-- </c:forEach> --%>
  797. <!-- </div> -->
  798. <%-- </c:if> --%>
  799. </div>
  800. </c:forEach>
  801. <!-- </div> -->
  802. </fieldset>
  803. <input type="hidden" id="tmodelId" name="tmodelId" value="${requestScope.tmodel.tmodelId }">
  804. <input type="hidden" id="tinsId" name="tinsId" value="${requestScope.flow.tinsId }">
  805. <input type="hidden" id="preTinsId" name="preTinsId" value="${requestScope.flow.preTinsId }">
  806. <input type="hidden" id="insId" name="insId" value="${requestScope.flow.insId }">
  807. <input type="hidden" id="modelId" name="modelId" value="${requestScope.flow.modelId }">
  808. <%-- <input type="hidden" id="creator" name="creator" value="${requestScope.flow.creator.userId }"> --%>
  809. <%-- <input type="hidden" id="groupxuserid" name="groupxuserid" value="${requestScope.flow.groupxuserid.id }"> --%>
  810. <%-- <input type="hidden" id="state" name="state" value="${requestScope.flow.groupxuserid.state }"> --%>
  811. <input type="hidden" id="task" name="task" value="process">
  812. <%-- <input type="hidden" id="formInsId" name="formInsId" value="${requestScope.flow.formInsId }"> --%>
  813. <%-- <input type="hidden" id="formId" name="formId" value="${requestScope.fmodel.formId.formId }"> --%>
  814. <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
  815. <input type="hidden" id="dialogId" name="dialogId" value="${param.dialogId }">
  816. <input type="hidden" id="groupid" name="groupid" value="${requestScope.flow.groupid}">
  817. <input type="hidden" id="isMoreIns" name="isMoreIns" value="${requestScope.flow.isMoreIns }">
  818. <input type="hidden" id="pathJudgeType" name="pathJudgeType" value="${requestScope.flow.pathJudgeType }">
  819. <input type="hidden" id="se" name="se" value="${requestScope.flow.seTmodel }">
  820. <%-- <input type="hidden" id="userid" name="userid" value="${requestScope.tache.groupxuserid.id}"> --%>
  821. <%-- <input type="hidden" id="handleValidate" value="${ requestScope.tmodel.handleValidate}"> --%>
  822. <%-- <input type="hidden" id="reqRemark" name="reqRemark" value="${requestScope.tmodel.reqRemark.value }"> --%>
  823. <div id="nextTacheInfo">
  824. <div class="forum-container">
  825. <table class="l-table-edit" style="margin-left: 10px; width: 750px !important;">
  826. <tr>
  827. <td class="l-table-edit-text">后续环节</td>
  828. <td class="l-table-edit-td">查看和选择后续环节操作人</td>
  829. </tr>
  830. <tbody id="nextTacheInfoTd">
  831. </tbody>
  832. <tr>
  833. <td style="text-align: center;" colspan="2"><span id="validateTip" style="color: red; display: none;">每个环节都需要至少选择一个办理人!</span></td>
  834. </tr>
  835. <tr>
  836. <td style="text-align: center;" colspan="2">
  837. <button type="button" onclick="saveFlow();" class="btn" id="sbmbtn">
  838. <span>提交</span>
  839. </button>
  840. <button type="button" onclick="closeNextTacheInfo()" class="btn" id="clsbtn" style="display: none;">
  841. <span>关闭</span>
  842. </button>
  843. </td>
  844. </tr>
  845. </table>
  846. </div>
  847. </div>
  848. <%-- <input type="hidden" id="tabid" name="tabid" value="${param.tabid }"> --%>
  849. <!-- <input type="hidden" id="task" name="task" value="addIncomePlan"> -->
  850. <%-- <input type="hidden" name="fmodel" value="${fmodel.modelId }"> --%>
  851. <%-- <input type="hidden" name="tmodel" value="${tmodel.tmodelId }"> --%>
  852. <!-- 选择项目进行判断,回填大写金额,在选择项目进行标示 -->
  853. <input type="hidden" id="income_plan" name="income_plan" value="income_plan_money">
  854. </center>
  855. </div>
  856. </div>
  857. <%-- <%@include file="/yw/eu/codeflow/workflow/workflow_start_process.jsp"%> --%>
  858. </form>
  859. <%@include file="/include/message.jsp"%>
  860. </body>
  861. </html>