Преглед изворни кода

Merge branch 'feature/Org.add_description' into 'wrdp'

Merge of feature/Org.add_description 组织管理人员信息显示description to wrdp

See merge request o2oa/o2oa!2070
蔡祥熠 пре 5 година
родитељ
комит
60253bab67
1 измењених фајлова са 9 додато и 1 уклоњено
  1. 9 1
      o2web/source/x_component_Org/PersonExplorer.js

+ 9 - 1
o2web/source/x_component_Org/PersonExplorer.js

@@ -696,6 +696,9 @@ MWF.xApplication.Org.PersonExplorer.PersonContent.BaseInfor = new Class({
         var n = this.editContentNode.getElement(".infor_ipAddress");
         var n = this.editContentNode.getElement(".infor_ipAddress");
         if (n) n.set("text", this.data.ipAddress || "");
         if (n) n.set("text", this.data.ipAddress || "");
 
 
+        var n = this.editContentNode.getElement(".infor_description");
+        if (n) n.set("text", this.data.description || "");
+
         this.editContentNode.getElements("td.inforTitle").setStyles(this.style.baseInforTitleNode);
         this.editContentNode.getElements("td.inforTitle").setStyles(this.style.baseInforTitleNode);
         this.editContentNode.getElements("td.inforContent").setStyles(this.style.baseInforContentNode);
         this.editContentNode.getElements("td.inforContent").setStyles(this.style.baseInforContentNode);
         this.editContentNode.getElements("td.inforAction").setStyles(this.style.baseInforActionNode);
         this.editContentNode.getElements("td.inforAction").setStyles(this.style.baseInforActionNode);
@@ -720,7 +723,7 @@ MWF.xApplication.Org.PersonExplorer.PersonContent.BaseInfor = new Class({
         html += "<tr><td class='inforTitle'>"+this.explorer.app.lp.personBoardDate+":</td><td class='inforContent infor_boardDate'>"+(this.data.boardDate || "")+"</td>" +
         html += "<tr><td class='inforTitle'>"+this.explorer.app.lp.personBoardDate+":</td><td class='inforContent infor_boardDate'>"+(this.data.boardDate || "")+"</td>" +
             "<td class='inforTitle'>"+this.explorer.app.lp.personBirthday+":</td><td class='inforContent infor_birthday'>"+(this.data.birthday || "")+"</td></tr>";
             "<td class='inforTitle'>"+this.explorer.app.lp.personBirthday+":</td><td class='inforContent infor_birthday'>"+(this.data.birthday || "")+"</td></tr>";
         html += "<tr><td class='inforTitle'>"+this.explorer.app.lp.ipAddress+":</td><td class='inforContent infor_ipAddress'>"+(this.data.ipAddress || "")+"</td>" +
         html += "<tr><td class='inforTitle'>"+this.explorer.app.lp.ipAddress+":</td><td class='inforContent infor_ipAddress'>"+(this.data.ipAddress || "")+"</td>" +
-            "<td class='inforTitle'></td></tr>";
+            "<td class='inforTitle'>"+this.explorer.app.lp.description+":</td><td class='inforContent infor_description'>"+(this.data.description || "")+"</td></tr>";
 
 
         html += "<tr><td colspan='4' class='inforAction'></td></tr>";
         html += "<tr><td colspan='4' class='inforAction'></td></tr>";
         //this.baseInforRightNode.set("html", html);
         //this.baseInforRightNode.set("html", html);
@@ -840,6 +843,9 @@ MWF.xApplication.Org.PersonExplorer.PersonContent.BaseInfor = new Class({
         this.ipAddressInputNode.set("value", (this.data.ipAddress));
         this.ipAddressInputNode.set("value", (this.data.ipAddress));
 
 
 
 
+        tdContents[13].setStyles(this.style.baseInforContentNode_edit).empty();
+        this.descriptionInputNode = new Element("input", {"styles": this.style.inputNode}).inject(tdContents[13]);
+        this.descriptionInputNode.set("value", (this.data.description));
 
 
         var _self = this;
         var _self = this;
         this.editContentNode.getElements("input").addEvents({
         this.editContentNode.getElements("input").addEvents({
@@ -923,6 +929,7 @@ MWF.xApplication.Org.PersonExplorer.PersonContent.BaseInfor = new Class({
         data.boardDate = this.boardDateInputNode.get("value");
         data.boardDate = this.boardDateInputNode.get("value");
         data.birthday = this.birthdayInputNode.get("value");
         data.birthday = this.birthdayInputNode.get("value");
         data.ipAddress = this.ipAddressInputNode.get("value");
         data.ipAddress = this.ipAddressInputNode.get("value");
+        data.description = this.descriptionInputNode.get("value");
 
 
         var tdContents = this.editContentNode.getElements("td.inforContent");
         var tdContents = this.editContentNode.getElements("td.inforContent");
         var radios = tdContents[4].getElements("input");
         var radios = tdContents[4].getElements("input");
@@ -975,6 +982,7 @@ MWF.xApplication.Org.PersonExplorer.PersonContent.BaseInfor = new Class({
             tdContents[10].setStyles(this.style.baseInforContentNode).set("text", this.data.boardDate || "");
             tdContents[10].setStyles(this.style.baseInforContentNode).set("text", this.data.boardDate || "");
             tdContents[11].setStyles(this.style.baseInforContentNode).set("text", this.data.birthday || "");
             tdContents[11].setStyles(this.style.baseInforContentNode).set("text", this.data.birthday || "");
             tdContents[12].setStyles(this.style.baseInforContentNode).set("text", this.data.ipAddress || "");
             tdContents[12].setStyles(this.style.baseInforContentNode).set("text", this.data.ipAddress || "");
+            tdContents[13].setStyles(this.style.baseInforContentNode).set("text", this.data.description || "");
 
 
             this.mode = "read";
             this.mode = "read";