CnPack Forum


 
Subject: cvstrac中浏览已报告的任务单时,怎么分页显示?
chfchf
新警察
Rank: 1



UID 723
Digest Posts 0
Credits 6
Posts 6
点点分 6
Reading Access 10
Registered 2005-2-28
Status Offline
Post at 2006-4-4 13:37  Profile | Blog | P.M. 
cvstrac中浏览已报告的任务单时,怎么分页显示?

如题!
Top
chfchf
新警察
Rank: 1



UID 723
Digest Posts 0
Credits 6
Posts 6
点点分 6
Reading Access 10
Registered 2005-2-28
Status Offline
Post at 2006-4-9 08:18  Profile | Blog | P.M. 
有人关注过这个问题吗,怎么没人回答?
Top
zjy
管理员
Rank: 9Rank: 9Rank: 9



UID 2
Digest Posts 6
Credits 2385
Posts 1543
点点分 2385
Reading Access 102
Registered 2002-12-16
Location China
Status Offline
Post at 2006-4-9 10:42  Profile | Site | Blog | P.M. 
CVSTracNT 是 cvstrac 的 Windows 移植版,当前版本的 cvstrac 还不支持分页报表显示。

如果确实有这个需要,您可以到官方网站上去建议:
http://www.cvstrac.org




Zhou JingYu
CnPack Administrator
http://www.cnpack.org/
Top
chfchf
新警察
Rank: 1



UID 723
Digest Posts 0
Credits 6
Posts 6
点点分 6
Reading Access 10
Registered 2005-2-28
Status Offline
Post at 2006-4-11 09:12  Profile | Blog | P.M. 
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是否可以放在下个版本中?
Top
 




All times are GMT++8, the time now is 2022-8-13 11:10

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.010322 second(s), 7 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP