浏览代码

Add links to change report

Neal Wilson 11 年前
父节点
当前提交
1f175c6203
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9
    1
      config/Reports/invchange.xml

+ 9
- 1
config/Reports/invchange.xml 查看文件

@@ -91,7 +91,12 @@
91 91
 				while(query.next())
92 92
 				{
93 93
 					output.writeStartElement("tr");
94
-					output.writeTextElement("td", query.value(0)); //ID
94
+					output.writeStartElement("td");
95
+					output.writeStartElement("a");
96
+					output.writeAttribute("href", "typica://script/" + query.value(0));
97
+					output.writeTextElement("span", query.value(0)); //ID
98
+					output.writeEndElement();
99
+					output.writeEndElement();
95 100
 					output.writeTextElement("td", query.value(1)); //Coffee
96 101
 					output.writeTextElement("td", query.value(2)); //Reference
97 102
 					output.writeTextElement("td", query.value(3)); //Starting Wt
@@ -123,6 +128,9 @@
123 128
 			endDateField.dateChanged.connect(function() {
124 129
 				refresh();
125 130
 			});
131
+			view.scriptLinkClicked.connect(function(url) {
132
+				print(url);
133
+			});
126 134
 		]]>
127 135
 	</program>
128 136
 </window>

正在加载...
取消
保存