Subject:
cvstrac中浏览已报告的任务单时,怎么分页显示?
[Print This Page]
Author:
chfchf
Time:
2006-4-4 13:37
Subject:
cvstrac中浏览已报告的任务单时,怎么分页显示?
如题!
Author:
chfchf
Time:
2006-4-9 08:18
有人关注过这个问题吗,怎么没人回答?
Author:
zjy
Time:
2006-4-9 10:42
CVSTracNT 是 cvstrac 的 Windows 移植版,当前版本的 cvstrac 还不支持分页报表显示。
如果确实有这个需要,您可以到官方网站上去建议:
http://www.cvstrac.org
Author:
chfchf
Time:
2006-4-11 09:12
在
www.cvstrac.org
上提交个这个问题,第二天就收到回应(效率还是蛮高的,
),给了段代码,是在ticket.c中修改:
Index: ticket.c
===================================================================
RCS file: /cvstrac/cvstrac/ticket.c,v
retrieving revision 1.104
diff -u -r1.104 ticket.c
--- ticket.c 5 Apr 2006 01:34:49 -0000 1.104
+++ ticket.c 11 Apr 2006 00:14:53 -0000
@@ -641,6 +641,16 @@
common_add_action_item(mprintf("attach_add?tn=%d",tn), "Attach");
}
}
+ z = db_short_query("SELECT max(tn) FROM ticket WHERE tn<%d", tn);
+ if( z && z[0] ){
+ common_add_action_item(mprintf("tktview?tn=%d",atoi(z)), "0Previous");
+ free(z);
+ }
+ z = db_short_query("SELECT min(tn) FROM ticket WHERE tn>%d", tn);
+ if( z && z[0] ){
+ common_add_action_item(mprintf("tktview?tn=%d",atoi(z)), "1Next");
+ free(z);
+ }
common_add_help_item("CvstracTicket");
/* Check to see how many "extra" ticket fields are defined
建议CnPack是否可以放在下个版本中?
Welcome to CnPack Forum (http://bbs.cnpack.org/)
Powered by Discuz! 5.0.0