You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

655 lines
27 KiB

3 weeks ago
  1. 
  2. @{
  3. ViewBag.Title = "Index";
  4. Layout = "~/Views/Shared/_Form.cshtml";
  5. }
  6. <link href="~/Content/js/select2/select2.min.css" rel="stylesheet" />
  7. <script src="~/Content/js/datepicker/WdatePicker.js"></script>
  8. <script src="~/Content/js/select2/select2.min.js"></script>
  9. <style>
  10. #Additem {
  11. margin-left: 45%;
  12. }
  13. #AddTemitem {
  14. margin-right: 45%;
  15. }
  16. </style>
  17. <script>
  18. var _Clos = new Array();
  19. var rfqcode = $.request("rfqcode");
  20. var ID = $.request("ID");
  21. var Code = new Array();
  22. var _LW = new Array();
  23. function GetDate() {
  24. let currentTime = new Date();
  25. let year = currentTime.getFullYear();
  26. let month = currentTime.getMonth() + 1; // 注意,月份是从0开始的,所以要加1
  27. let date = currentTime.getDate();
  28. let hours = currentTime.getHours();
  29. let minutes = currentTime.getMinutes();
  30. let seconds = currentTime.getSeconds();
  31. // 格式化时间,补全前导零
  32. month = month < 10 ? '0' + month : month;
  33. date = date < 10 ? '0' + date : date;
  34. hours = hours < 10 ? '0' + hours : hours;
  35. minutes = minutes < 10 ? '0' + minutes : minutes;
  36. seconds = seconds < 10 ? '0' + seconds : seconds;
  37. // 拼接时间字符串
  38. let formattedTime = `${year}-${month}-${date} ${hours}:${minutes}:${seconds}`;
  39. return formattedTime;
  40. }
  41. $(function(){
  42. SetCols();
  43. if (ID=='') {
  44. $(".MOPick").css('display', 'none');
  45. }
  46. var Muser = '@NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode'
  47. var date = GetDate();
  48. $("#txtMUSER").val(Muser);
  49. $("#txtMTIME").val(date);
  50. InitControl();
  51. InitContro2();
  52. InitContro3();
  53. ClearTemp();
  54. reloadData();
  55. $("#sel_CodeType").change(function () {
  56. debugger;
  57. $.ajax({
  58. url: "/DHAY/ICSCustomerSuppliedIn/GetBidCode" + "?" + Math.random(),
  59. dataType: "json",
  60. async: false,
  61. success: function (data) {
  62. if (data.Code != '') {
  63. $("#Code").val(data.Code);
  64. $("#Code").attr("disabled", "disabled");
  65. }
  66. }
  67. });
  68. var inputElement = document.getElementById('Remarks');
  69. if (inputElement) {
  70. // 如果元素存在,(清除required属性)
  71. inputElement.removeAttribute('required');
  72. } else {
  73. console.warn('找不到ID为', 'Remarks', '的input元素');
  74. }
  75. if ($("#sel_CodeType").val() == 'MR06') {
  76. /* $("#sel_Dept").val('1107');*/
  77. $("#sel_Dept").val('1107').trigger("change");//单据类型
  78. if (inputElement) {
  79. // 如果元素存在,(清除required属性)
  80. inputElement.setAttribute('required', 'required');
  81. } else {
  82. console.warn('找不到ID为', 'Remarks', '的input元素');
  83. }
  84. }
  85. });
  86. $("#sel_Dept").val('1107');
  87. //// 确保在绑定事件处理器之后触发change事件
  88. //$("#sel_CodeType").val('ST1').trigger("change");
  89. })
  90. function SetCols() {
  91. $.ajax({
  92. url: "/Print/SelectColumnName?" + Math.random(),
  93. dataType: "json",
  94. async: false,
  95. success: function (data) {
  96. var cols = new Array();
  97. var collast = { label: '主键', name: 'ID', width: 150, align: 'left', hidden: true, key: true };
  98. cols.push(collast);
  99. var collast = { label: 'ID', name: 'ID', width: 150, align: 'left', hidden: true };
  100. cols.push(collast);
  101. //var collast = {
  102. // label: '查看', width: 100, align: 'left',
  103. // formatter: btnLook
  104. //};
  105. // cols.push(collast);
  106. var collast = { label: '料品编码', name: 'InvCode', width: 100, align: 'left' };
  107. cols.push(collast);
  108. var collast = { label: '料品名称', name: 'INVNAME', width: 100, align: 'left' };
  109. cols.push(collast);
  110. var collast = { label: '规格型号', name: 'InvStd', width: 100, align: 'left' };
  111. cols.push(collast);
  112. var collast = { label: '仓库编码', name: 'WHCode', width: 100, align: 'left', hidden: true };
  113. cols.push(collast);
  114. var collast = { label: '仓库名称', name: 'WHCodeName', width: 100, align: 'left', editable: true };
  115. cols.push(collast);
  116. var collast = { label: '批号', name: 'Batch', width: 100, align: 'left', editable: true };
  117. cols.push(collast);
  118. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left', editable: true, editrules: { number: true } };
  119. cols.push(collast);
  120. //var collast = { label: '受益项目', name: 'SYproject', width: 100, align: 'left', editable: true};
  121. //cols.push(collast);
  122. var collast = { label: '受益项目', name: 'SYproject', width: 100, align: 'left', editable: true, edittype: 'select', editoptions: { value: GetSelect_Project() } };
  123. cols.push(collast);
  124. var collast = { label: '客户料号', name: 'DetailReamrk', width: 150, align: 'left', editable: true };
  125. cols.push(collast);
  126. var collast = { label: '备注2', name: 'DetailReamrk2', width: 150, align: 'left', editable: true };
  127. cols.push(collast);
  128. if (data != null && data.length > 0) {
  129. DateList = data;
  130. for (var i = 0; i < data.length; i++) {
  131. var ColName = data[i].ColName;
  132. var ColCode = data[i].ColCode;
  133. if (ColName != "批次") {
  134. var obj = new Array();
  135. obj = {
  136. label: ColName,
  137. name: ColCode,
  138. width: 80,
  139. align: "left"
  140. }
  141. cols.push(obj);
  142. }
  143. cols.push(obj);
  144. }
  145. }
  146. _Clos = cols;
  147. }
  148. });
  149. }
  150. function GetSelect_Project() {
  151. debugger;
  152. var Header = {
  153. TypeName:"项目",
  154. OrgCode: '@NFine.Code.OperatorProvider.Provider.GetCurrent().Location'
  155. }
  156. var str = "";
  157. $.ajax({
  158. url: "/DHAY/ICSCustomerSuppliedReturn/GetU9CodeType?" + Math.random(),
  159. dataType: "json",
  160. data: { key1: JSON.stringify(Header) },
  161. async: false,
  162. async: false,
  163. success: function (data) {
  164. var jsonobj = eval(data);
  165. var length = jsonobj.length;
  166. for (var i = 0; i < length; i++) {
  167. if (i != length - 1) {
  168. str += jsonobj[i].Code + ":" + jsonobj[i].Name + ";";
  169. } else {
  170. str += jsonobj[i].Code + ":" + jsonobj[i].Name;// 这里是option里面的 value:label
  171. }
  172. var objFiledName = {
  173. Code: jsonobj[i].Code,
  174. Name: jsonobj[i].Name,
  175. }
  176. _LW.push(objFiledName);
  177. }
  178. }
  179. });
  180. return str;
  181. }
  182. function reloadData() {
  183. $("#gridList").dataGrid({
  184. url: "/WMS/ProductionIssue/GetICSReturnTemporary?rfqno=" + $("#txtApplyNegCode").val() + "&" + Math.random(),
  185. //postData: { rfqno: $("#RFQNO").val() },
  186. height: $(window).height() - 300,
  187. width: $(window).width(),
  188. cellEdit: true,
  189. colModel: _Clos,
  190. cellsubmit: "clientArray",
  191. width: "100%",
  192. //autowidth: true,
  193. rownumbers: true,
  194. viewrecords: true,
  195. ondblClickRow: function (rowid, cellname, value) {
  196. var colModel = $("#gridList").jqGrid("getGridParam", "colModel");
  197. var cellIndex = $("#gridList").jqGrid("getGridParam", "iCol");
  198. var cellname = colModel[cellIndex].name;
  199. if (cellname == "InvCode") {
  200. $.modalOpen({
  201. id: "InvCodeSelect",
  202. title: "选择物料信息",
  203. url: "/DHAY/ICSCustomerSuppliedReturn/GetInvCode",
  204. width: "50%",
  205. height: "50%",
  206. callBack: function (iframeId) {
  207. debugger;
  208. var obj = top.frames[iframeId].submitForm();
  209. $("#gridList").jqGrid('setCell', rowid, 'InvCode', obj.INVCODE, 'review-' + rowid);
  210. $("#gridList").jqGrid('setCell', rowid, 'INVNAME', obj.INVNAME, 'review-' + rowid);
  211. $("#gridList").jqGrid('setCell', rowid, 'InvStd', obj.InvStd, 'review-' + rowid);
  212. $("#gridList").jqGrid("saveCell", rowid, 1);
  213. $("#gridList").jqGrid("saveCell", rowid, 2);
  214. $("#gridList").jqGrid("saveCell", rowid, 3);
  215. $("#gridList").jqGrid("saveCell", rowid, 4);
  216. $("#gridList").jqGrid("saveCell", rowid, 5);
  217. $("#gridList").jqGrid("saveCell", rowid, 6);
  218. $("#gridList").jqGrid("saveCell", rowid, 7);
  219. $("#gridList").jqGrid("saveCell", rowid, 8);
  220. $("#gridList").jqGrid("saveCell", rowid, 9);
  221. top.frames[iframeId].Close();
  222. }
  223. });
  224. } else if (cellname == "WHCodeName") {
  225. $.modalOpen({
  226. id: "GetWHCode",
  227. title: "选择仓库",
  228. url: "/DHAY/ICSCustomerSuppliedReturn/GetWHCode",
  229. width: "50%",
  230. height: "50%",
  231. callBack: function (iframeId) {
  232. debugger;
  233. var obj = top.frames[iframeId].submitForm();
  234. $("#gridList").jqGrid('setCell', rowid, 'WHCode', obj.WarehouseCode, 'review-' + rowid);
  235. $("#gridList").jqGrid('setCell', rowid, 'WHCodeName', obj.WarehouseName, 'review-' + rowid);
  236. $("#gridList").jqGrid("saveCell", rowid, 1);
  237. $("#gridList").jqGrid("saveCell", rowid, 2);
  238. $("#gridList").jqGrid("saveCell", rowid, 3);
  239. $("#gridList").jqGrid("saveCell", rowid, 4);
  240. $("#gridList").jqGrid("saveCell", rowid, 5);
  241. $("#gridList").jqGrid("saveCell", rowid, 6);
  242. $("#gridList").jqGrid("saveCell", rowid, 7);
  243. $("#gridList").jqGrid("saveCell", rowid, 8);
  244. $("#gridList").jqGrid("saveCell", rowid, 9);
  245. top.frames[iframeId].Close();
  246. }
  247. });
  248. } else if (cellname == "Batch") {
  249. $.modalOpen({
  250. id: "InvCodeSelect",
  251. title: "选择批次信息",
  252. url: "/DHAY/ICSCustomerSuppliedReturn/GetBatch",
  253. width: "50%",
  254. height: "50%",
  255. callBack: function (iframeId) {
  256. debugger;
  257. var obj = top.frames[iframeId].submitForm();
  258. $("#gridList").jqGrid('setCell', rowid, 'Batch', obj.BatchCode, 'review-' + rowid);
  259. $("#gridList").jqGrid("saveCell", rowid, 1);
  260. $("#gridList").jqGrid("saveCell", rowid, 2);
  261. $("#gridList").jqGrid("saveCell", rowid, 3);
  262. $("#gridList").jqGrid("saveCell", rowid, 4);
  263. $("#gridList").jqGrid("saveCell", rowid, 5);
  264. $("#gridList").jqGrid("saveCell", rowid, 6);
  265. $("#gridList").jqGrid("saveCell", rowid, 7);
  266. $("#gridList").jqGrid("saveCell", rowid, 8);
  267. $("#gridList").jqGrid("saveCell", rowid, 9);
  268. top.frames[iframeId].Close();
  269. }
  270. });
  271. }
  272. //else if (cellname == "SYproject") {
  273. // $.modalOpen({
  274. // id: "SYprojectSelect",
  275. // title: "选择受益项目",
  276. // url: "/DHAY/ICSCustomerSuppliedIn/GetProject",
  277. // width: "50%",
  278. // height: "50%",
  279. // callBack: function (iframeId) {
  280. // debugger;
  281. // var obj = top.frames[iframeId].submitForm();
  282. // $("#gridList").jqGrid('setCell', rowid, 'SYproject', obj.Code, 'review-' + rowid);
  283. // $("#gridList").jqGrid('setCell', rowid, 'Name', obj.Name, 'review-' + rowid);
  284. // $("#gridList").jqGrid("saveCell", rowid, 1);
  285. // $("#gridList").jqGrid("saveCell", rowid, 2);
  286. // $("#gridList").jqGrid("saveCell", rowid, 3);
  287. // $("#gridList").jqGrid("saveCell", rowid, 4);
  288. // $("#gridList").jqGrid("saveCell", rowid, 5);
  289. // $("#gridList").jqGrid("saveCell", rowid, 6);
  290. // $("#gridList").jqGrid("saveCell", rowid, 7);
  291. // $("#gridList").jqGrid("saveCell", rowid, 8);
  292. // $("#gridList").jqGrid("saveCell", rowid, 9);
  293. // top.frames[iframeId].Close();
  294. // }
  295. // });
  296. //}
  297. },
  298. });
  299. }
  300. function btnLook(cellvalue, options, rowObject) {
  301. return cellvalue = "<a class=\"btn btn-primary dropdown-text\" onclick=\"UpLoadClick('" + rowObject.ID + "')\">查看</a>";
  302. }
  303. function UpLoadClick(ID) {
  304. $.modalOpen({
  305. id: "selectDeatil",
  306. title: "查看修改物料",
  307. url: "/WMS/ProductionIssue/SeachInventory?ID=" + ID + "&" + Math.random(),
  308. width: "1000px",
  309. height: "1000px",
  310. callBack: function (iframeId) {
  311. var obj = top.frames[iframeId].submitForm();
  312. var rowData = $("#gridList").jqGrid('getRowData', ID);
  313. rowData.TLZID = obj.TLZID,
  314. rowData.ZJID = obj.ZJID,
  315. rowData.InvCode = obj.InvCode,
  316. rowData.InvName = obj.InvName,
  317. rowData.InvStd = obj.InvStd,
  318. rowData.InvUnit = obj.InvUnit,
  319. rowData.Quantity = obj.Quantity,
  320. rowData.IssueNegQuantity = obj.IssueQuantity,
  321. rowData.Amount = obj.Amount,
  322. rowData.ExtensionID = obj.ExtensionID,
  323. rowData.ProjectCode = obj.ProjectCode,
  324. rowData.BatchCode = obj.BatchCode,
  325. rowData.Version = obj.Version,
  326. rowData.Brand = obj.Brand,
  327. rowData.cFree1 = obj.cFree1,
  328. rowData.cFree2 = obj.cFree2,
  329. rowData.cFree3 = obj.cFree3,
  330. rowData.cFree4 = obj.cFree4,
  331. rowData.cFree5 = obj.cFree5,
  332. rowData.cFree6 = obj.cFree6,
  333. rowData.cFree7 = obj.cFree7,
  334. rowData.cFree8 = obj.cFree8,
  335. rowData.cFree9 = obj.cFree9,
  336. rowData.cFree10 = obj.cFree10
  337. $("#gridList").jqGrid('setRowData', ID, rowData);
  338. $(".unwritten").hide();
  339. top.frames[iframeId].Close();
  340. }
  341. });
  342. }
  343. function guid() {
  344. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  345. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  346. return v.toString(16);
  347. });
  348. }
  349. //最后一行新增数据
  350. function AddRowToLast() {
  351. var obj = {
  352. ID: guid(),
  353. WHCode: ""
  354. };
  355. $("#gridList").jqGrid('addRowData', obj.ID, obj, 'last');
  356. $(".unwritten").hide();
  357. }
  358. function DeleteRowToLast() {
  359. debugger;
  360. var rowid = $("#gridList").jqGridRowValue().ID
  361. $("#gridList").delRowData(rowid);
  362. }
  363. //获取U9单据类型
  364. function InitControl() {
  365. var $CodeType = $("#sel_CodeType");
  366. $CodeType.select2({
  367. allowClear: true,
  368. escapeMarkup: function (m) {
  369. return m;
  370. }
  371. });
  372. $.ajax({
  373. url: "/DHAY/ICSAccessoriesMOApply/GetU9CodeType?type=杂收" + "&" + Math.random(),
  374. dataType: "json",
  375. async: false,
  376. success: function (data) {
  377. $.each(data, function (index, item) {
  378. $CodeType.append("<option value='" + item.Code + "'>&nbsp;" + item.Name + "</option>");
  379. });
  380. }
  381. });
  382. }
  383. //获取U9部门
  384. function InitContro2() {
  385. var $Dept = $("#sel_Dept");
  386. $Dept.select2({
  387. allowClear: true,
  388. escapeMarkup: function (m) {
  389. return m;
  390. }
  391. });
  392. $.ajax({
  393. url: "/DHAY/ICSAccessoriesMOApply/GetU9CodeType?type=部门" + "&" + Math.random(),
  394. dataType: "json",
  395. async: false,
  396. success: function (data) {
  397. $.each(data, function (index, item) {
  398. $Dept.append("<option value='" + item.Code + "'>&nbsp;" + item.Name + "</option>");
  399. });
  400. }
  401. });
  402. }
  403. //获取U9客户
  404. function InitContro3() {
  405. var $Custmer = $("#sel_Custmer");
  406. $Custmer.select2({
  407. allowClear: true,
  408. escapeMarkup: function (m) {
  409. return m;
  410. }
  411. });
  412. $.ajax({
  413. url: "/DHAY/ICSAccessoriesMOApply/GetU9CodeType?type=客户" + "&" + Math.random(),
  414. dataType: "json",
  415. async: false,
  416. success: function (data) {
  417. $.each(data, function (index, item) {
  418. $Custmer.append("<option value='" + item.Code + "'>&nbsp;" + item.Name + "</option>");
  419. });
  420. }
  421. });
  422. }
  423. function ClearTemp() {
  424. $.ajax({
  425. url: "/WMS/ProductionIssue/ClearTemp?" + Math.random(),
  426. datatype: "json",
  427. async: false
  428. })
  429. }
  430. function submitForm() {
  431. $("#gridList").find($("td[aria-describedby='gridList_rn']")).click();
  432. debugger;
  433. if (!$('#form1').formValid()) {
  434. return false;
  435. }
  436. var SYprojectCode = '';
  437. var CodeType = $("#sel_CodeType").val();//单据类型
  438. var CodeTypeName = $("#sel_CodeType option:selected").text();//单据类型名称
  439. var Dept = $("#sel_Dept").val();//部门
  440. var DeptName = $("#sel_Dept option:selected").text();//部门名称
  441. var ApplyNegCode = $("#txtApplyNegCode").val();//在建项目
  442. var Custmer = $("#sel_Custmer").val();//客户
  443. var CustmerName = $("#sel_Custmer option:selected").text();//客户名称
  444. var Remarks = $("#Remarks").val();//备注
  445. var Remarks2 = $("#Remarks2").val();//备注
  446. var Code = $("#Code").val();//单据号
  447. var MTIME = $("#txtMTIME").val();//单据号
  448. /* var SYproject = $("#txtSYproject").val();//受益项目*/
  449. var RoleEnCode = '@NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode'
  450. var WorkPoint = '@NFine.Code.OperatorProvider.Provider.GetCurrent().Location'
  451. var IDlist = "";
  452. var Details = [];
  453. SelPerson = "#SelBR_"
  454. var obj_vendor = $("#gridList");
  455. var rowIds_vendor = obj_vendor.getDataIDs();
  456. var arrayData_vendor = new Array();
  457. if (rowIds_vendor.length > 0) {
  458. for (var i = 0; i < rowIds_vendor.length; i++) {
  459. var vendorRowData = obj_vendor.getRowData(rowIds_vendor[i]);
  460. if (vendorRowData.Quantity == "" || vendorRowData.Quantity == 'undefined') {
  461. $.modalAlertNew("WMS00089");
  462. return;
  463. }
  464. //if (vendorRowData.SYproject == "" || vendorRowData.SYproject == 'undefined') {
  465. // $.modalAlertNew("WMS000100");
  466. // return;
  467. //}
  468. for (var s = 0; s < _LW.length; s++) {
  469. var SYprojectName = _LW[s].Name;
  470. if (SYprojectName == vendorRowData.SYproject) {
  471. SYprojectCode = _LW[s].Code;
  472. }
  473. }
  474. /* var WHCode = $("" + SelPerson + "" + vendorRowData.ID + "").val();*/
  475. var obj = {
  476. ID: vendorRowData.ID,
  477. Sequence: i + 1,
  478. InvCode: vendorRowData.InvCode,
  479. Quantity: vendorRowData.Quantity,
  480. WHCode: vendorRowData.WHCode,
  481. DetailReamrk: vendorRowData.DetailReamrk,
  482. DetailReamrk2: vendorRowData.DetailReamrk2,
  483. Batch: vendorRowData.Batch,
  484. SYproject: SYprojectCode
  485. };
  486. Details.push(obj);
  487. }
  488. var ICSASNs = {
  489. Dept: Dept,
  490. DeptName: DeptName,
  491. CodeType: CodeType,
  492. CodeTypeName: CodeTypeName,
  493. ApplyNegCode: ApplyNegCode,
  494. Custmer: Custmer,
  495. CustmerName: CustmerName,
  496. Remarks: Remarks,
  497. Remarks2: Remarks2,
  498. Code: Code,
  499. MTIME: MTIME,
  500. User: RoleEnCode,
  501. Detail: Details,
  502. }
  503. var ICSASN = [];
  504. ICSASN.push(ICSASNs);
  505. $.submitForm({
  506. url: "/DHAY/ICSCustomerSuppliedIn/SaveICSOtherIn?" + Math.random(),
  507. param: { ICSASN: JSON.stringify(ICSASN) },
  508. success: function () {
  509. $.currentWindow().$("#gridList").trigger("reloadGrid");
  510. }
  511. })
  512. }
  513. }
  514. function GetSelectPerson(ID, WHCode) {
  515. debugger;
  516. var str = "";
  517. $.ajax({
  518. url: "/DHAY/ICSCustomerSuppliedReturn/Select_ICSWHCode",
  519. dataType: "json",
  520. async: false,
  521. async: false,
  522. success: function (data) {
  523. if (data != null && data.length > 0) {
  524. $("#SelBR_" + ID + "").find("option").remove();
  525. for (var i = 0; i < data.length; i++) {
  526. $("#SelBR_" + ID + "").append("<option value='" + data[i].WarehouseCode + "'>" + data[i].WarehouseName + "</option>");
  527. }
  528. }
  529. }
  530. });
  531. /* $("#SelBR_" + ID + "").selectpicker('refresh');*/
  532. /*$("#SelBR_" + ID + "").selectpicker('val', WHCode);*/
  533. }
  534. </script>
  535. <form id="form1">
  536. <div class="topPanel" style="height:10px">
  537. <div class="btn-group">
  538. @*<a id="AddItemLot" style="margin-left:3px;" class="btn btn-primary" onclick="btnCreate()"><i class="fa fa-pencil-square-o"></i>添加明细</a>
  539. <a id="refresh" class="btn btn-primary" style="margin-left:3px;" onclick="reloadData()"><span class="glyphicon glyphicon-refresh"></span></a>*@
  540. </div>
  541. </div>
  542. <div style="margin-right: 20px;">
  543. <table class="form">
  544. <thead>主表信息</thead>
  545. <tr>
  546. <th class="formTitle">单据类型:</th>
  547. <td class="formValue">
  548. <select id="sel_CodeType" name="sel_CodeType" class="form-control select2 required" style="width: 230px" placeholder="请选择单据类型..."></select>
  549. <input type="hidden" id="hidetext" />
  550. </td>
  551. <th class="formTitle">单号:</th>
  552. <td class="formValue">
  553. <input id="Code" type="text" readonly="readonly" class="form-control required" />
  554. </td>
  555. </tr>
  556. <tr>
  557. <th class="formTitle">受益部门:</th>
  558. <td class="formValue">
  559. <select id="sel_Dept" name="sel_Dept" class="form-control select2 " style="width: 230px" placeholder="请选择受益部门..."></select>
  560. <input type="hidden" id="hidetext" />
  561. </td>
  562. <th class="formTitle">在建工程项目:</th>
  563. <td class="formValue">
  564. <input type="text" id="txtApplyNegCode" class="form-control" />
  565. </td>
  566. </tr>
  567. <tr>
  568. <th class="formTitle">客户:</th>
  569. <td class="formValue">
  570. <select id="sel_Custmer" name="sel_Custmer" class="form-control select2" style="width: 230px" placeholder="请选择客户..."></select>
  571. <input type="hidden" id="hidetext" />
  572. </td>
  573. <th class="formTitle">RD项目号:</th>
  574. <td class="formValue">
  575. <input type="text" id="Remarks" class="form-control" />
  576. </td>
  577. </tr>
  578. <tr>
  579. <th class="formTitle">项目编号:</th>
  580. <td class="formValue">
  581. <input type="text" id="Remarks2" class="form-control" />
  582. </td>
  583. </tr>
  584. <tr>
  585. <th class="formTitle">维护人:</th>
  586. <td class="formValue">
  587. <input id="txtMUSER" type="text" readonly="readonly" class="form-control" />
  588. </td>
  589. <th class="formTitle">维护时间:</th>
  590. <td class="formValue">
  591. <input id="txtMTIME" type="text" readonly="readonly" class="form-control" />
  592. </td>
  593. </tr>
  594. </table>
  595. </div>
  596. <div class="gridPanel" style="margin-left:10px">
  597. <span><strong>子表信息</strong></span>
  598. <table id="gridList"></table>
  599. <div style="text-align:center">
  600. <button id="AddRow" class="btn btn-primary" type="button" onclick="AddRowToLast()">添加</button>
  601. <button id="DeleteRow" type="button" class="btn btn-primary" onclick="DeleteRowToLast()">删除</button>
  602. </div>
  603. </div>
  604. </form>