拍摄pdf的gridviews快照 [英] taking snapshot of gridviews in pdf

查看:81
本文介绍了拍摄pdf的gridviews快照的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的项目流程有问题,请告诉我是否可行,
我有一个带有预算名称单选按钮的网格.
我下面有两个按钮可以加载选定的预算,另一个按钮可以拍摄快照.
现在的问题是,当我加载预算时,我的网格视图正在填充到下一页,但是在加载这些预算网格视图之前,我想在同一页面上查看该网格视图的快照.
我已经做到了,
我用于填充网格视图的过程是在单击快照时填充到数据集中并导出为pdf的过程.但是加载这些网格视图时在下一页进行的计算显然对我来说是不可用的.我想要一些解决方案来对这些计算从下一页到上一页进行访问.请帮助我.....

Hi,
I have problem with the flow of my project please tell me whether it is possible or not,
I have one grid with radio buttons with the budget names.
i have two buttons under it to load the selected budget and another is to take the snapshot.
now problem is my grid views are filling to the next page when i load the budget but i want snapshot of the gridviews on the same page before loading these budget gridviews.
i have done this,
the procedures i have used for filling the grid views i filled in the dataset on snapshot click and exported to pdf. but the calculations done on next page while loading these grid views obviously not accessible to me. i want some solution to acces these calculations from the next page to previous page. please help me.....

推荐答案

我相信您在此处构建页面的方式存在问题.您的页面仅应存在以向用户显示您的信息或从用户那里收集信息. UI代码中绝不应(只有少数例外)进行计算.这些计算应该移到它们所属的域级别的类中.这样,代码就可以重用,并且可以被可能需要它的任何页面访问.

有人可能建议您只在需要它们的页面中将计算方法设为公共静态,但这是一个坏主意,尤其是在涉及应用程序的可维护性时.
I believe you have an issue with the way you have structured your pages here. Your pages should only exist to display your information to the user, or collect information from the user. There should never(with few exceptions) be calculations within UI code. Those calculations should be moved either into a domain level class which is where they belong. That way the code becomes reusable and accessible to any page that may require it.

Some may suggest that you should just make the calculation methods public static in the page you need them from, but that is a bad idea, especially when it comes to the maintainability of your application.


这篇关于拍摄pdf的gridviews快照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆