|
@@ -0,0 +1,71 @@
|
|
|
+/**
|
|
|
+ * 入职申请:专业用户
|
|
|
+ */
|
|
|
+shr.defineClass("shr.affair.hrman.EmpEnrollBizBillHrManListEx", shr.affair.hrman.EmpEnrollBizBillHrManList, {
|
|
|
+ _timer: {},//保存定时器信息对象
|
|
|
+ _multiBillEditUipk: 'emp.empEnrollBizBill.multiEntry',
|
|
|
+ initalizeDOM: function () {
|
|
|
+
|
|
|
+ shr.affair.hrman.EmpEnrollBizBillHrManListEx.superClass.initalizeDOM.call(this);
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+ enrollTabAction: function (event) {
|
|
|
+ var _self = this;
|
|
|
+ var billId = $("#grid").jqGrid("getSelectedRows");
|
|
|
+
|
|
|
+ if (billId == undefined || billId.length == 0) {
|
|
|
+ shr.showInfo({ message: jsBizMultLan.emp_empEnrollBizBillHrManList_i18n_8 });
|
|
|
+ return;
|
|
|
+ } else if (billId.length > 1) {
|
|
|
+ for (var i = 1; i < billId.length; i++) {
|
|
|
+ if (billId[0] != billId[i]) {
|
|
|
+ shr.showInfo({ message: jsBizMultLan.emp_empEnrollBizBillHrManList_i18n_9 });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ } else if (billId[0] == '') {
|
|
|
+ shr.showWarning({ message: jsBizMultLan.emp_empEnrollBizBillHrManList_i18n_8, hideAfter: null });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ shr.callHandler({
|
|
|
+ handler: "com.kingdee.eas.custom.shengshen.handle.EntryRegistrationHandle",
|
|
|
+ action: "getRegisterFile",
|
|
|
+ param: { "billIdParam": billId, "branchText": $(".active").text() },
|
|
|
+ type: "POST",
|
|
|
+ success: function (res) {
|
|
|
+ var billState = res.billState;
|
|
|
+ if (billState == 3 || billState == 999) {
|
|
|
+ _self.remoteCall({
|
|
|
+ method: "checkBeforeUntiCheckEnroll",//调用的当前handler中的检查方法
|
|
|
+ param: { "billIdParam": billId[0] },
|
|
|
+ type: "POST",
|
|
|
+ success: function (res) {
|
|
|
+
|
|
|
+ if (res != null) {
|
|
|
+ var detailData = res;
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ shr.showError({
|
|
|
+ message: jsBizMultLan.emp_empEnrollBizBillHrManList_i18n_0
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
+});
|