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.

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