yuanzhi_kuang 5 months ago
parent
commit
f58e6f6026
1 changed files with 68 additions and 0 deletions
  1. 68 0
      js/customer/gyt/emp/web/js/recuritmentDemandListEx.js

+ 68 - 0
js/customer/gyt/emp/web/js/recuritmentDemandListEx.js

@@ -0,0 +1,68 @@
+/**
+ * @author: coyle
+ * 202506
+ * 招聘需求
+ */
+
+shr.defineClass("shr.rec.recuritmentDemandListEx", shr.rec.recuritmentDemandList, {
+	initalizeDOM : function() {
+		// 初始化JS环境
+		shr.rec.recuritmentDemandListEx.superClass.initalizeDOM.call(this);
+        var that = this;
+
+         
+        
+
+
+    },
+      
+
+     synBeisenAction: function () {
+         var that = this;
+          var selectedId = this.getSelectedFields("id");
+        if (selectedId == null || selectedId == '' || selectedId == undefined) {
+            shr.showWarning({
+                message: '请至少选择一条需要同步的数据!'
+                , hideAfter: 3
+            });
+            return;
+        }
+
+        that.remoteCall({
+            
+            type: "post",
+            method: "synBeisen",   //初始化汇总项目菜单
+            async: false,
+            param: {
+                selectedId:  selectedId.join(","),
+            },
+            success: function (res) {
+                if (res) {
+                    $("#grid").jqGrid("reloadGrid");
+					var msg = '选择'+res.allCount+'条数据';
+					if(res.exeCount > 0 ){
+						msg += ',推送'+res.exeCount+'条 ';
+					}
+					if(res.unCount > 0){
+						msg += ',执行失败'+res.unCount+'条 '
+					}
+					msg += ',请查看列表的同步结果! '
+                    shr.showSuccess({
+						message: msg,
+                        hideAfter: 5
+                    });
+                }
+
+            }
+        });
+         
+    },
+
+
+
+    
+ 
+
+
+    
+});