[TIC-Web] Update the function for the cancel
[archive/20170607/tools/tic.git] / public / src / js / model / JobModel.js
index 1107cc6..f0a8de6 100644 (file)
@@ -49,6 +49,7 @@ define([
         this.jobStatusClass = null;
         this.jobImageName = null;
         this.jobImageSize = null;
+        this.jobPid = null;
         this.jobPath = null;
         this.jobImagePath = null;
         this.jobHasKsFile = false;
@@ -82,6 +83,7 @@ define([
         this.setJobStatus(obj.job_status);
         this.setJobImageName(obj.job_image_name);
         this.setJobImageSize(obj.job_image_size);
+        this.setJobPid(obj.job_pid);
 
         this.setJobHasKsFile(obj.job_hasksfile);
         this.setJobKs(obj.job_ks);
@@ -200,6 +202,14 @@ define([
         this.jobImageSize = value ? Util.bytesToSize(value) : '0KB';
     };
 
+    JobModel.prototype.getJobPid = function () {
+        return this.jobPid;
+    };
+
+    JobModel.prototype.setJobPid = function (value) {
+        this.jobPid = value || null;
+    };
+
     JobModel.prototype.getJobPath = function () {
         return this.jobPath;
     };