WebTM/views/É豸¹ÜÀí/Sb_Add_EqpRepairCheckBillList.html
@@ -221,6 +221,13 @@
            //判断操作类型
            if (OperationType == 1) {//无源单
                $("#HEmpID").val(sessionStorage["HEmpID"]); //根据登录用户带出验收人ID
                $("#HEmpName").val(sessionStorage["HEmpName"]); //根据登录用户带出验收人
                $("#HDeptID").val(sessionStorage["HDeptID"]); //根据登录用户带出部门ID
                $("#HDeptName").val(sessionStorage["HDept"]); //根据登录用户带出部门
                $("#HManagerID").val(sessionStorage["HEmpID"]); //根据登录用户带出负责人ID
                $("#HManagerName").val(sessionStorage["HEmpName"]); //根据登录用户带出负责人
                set_AddFNew();
            }
            else if (OperationType == 3) {//编辑
@@ -392,7 +399,7 @@
                var checkStatus = table.checkStatus('mainTable')
                    , data = checkStatus.data;;
                var AddRow = table.cache['mainTable'];
                var NewRow = { "HRepairCheckID": 0, "HRepairCheckCode": "", "HRepairCheckName": "  ", "HRepairCheckContent": " ", "HManagerID": 0, "HManagerCode": "", "HManagerName": "  ", "HRemark": "  " };
                var NewRow = { "HRepairCheckID": 0, "HRepairCheckCode": "", "HRepairCheckName": "  ", "HRepairCheckContent": " ", "HManagerID": sessionStorage["HEmpID"], "HManagerCode": sessionStorage["HEmpNumber"], "HManagerName": sessionStorage["HEmpName"], "HRemark": "  " };
                switch (obj.event) {
                    //新增一行
                    case 'btn-AddLine': btnAddLine(NewRow);
@@ -545,7 +552,7 @@
            function set_AddFNew() {
                //获取最大单据号
                get_MAXNum();
                option.data = [{ "HRepairCheckID": 0, "HRepairCheckCode": "", "HRepairCheckName": "  ", "HRepairCheckContent": " ", "HManagerID": 0, "HManagerCode": "", "HManagerName": "  ", "HRemark": "  " }];
                option.data = [{ "HRepairCheckID": 0, "HRepairCheckCode": "", "HRepairCheckName": "  ", "HRepairCheckContent": " ", "HManagerID": sessionStorage["HEmpID"], "HManagerCode": sessionStorage["HEmpNumber"], "HManagerName": sessionStorage["HEmpName"], "HRemark": "  " }];
                table.render(option);
            }