博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
页面通过功能点获取值
阅读量:6188 次
发布时间:2019-06-21

本文共 3312 字,大约阅读时间需要 11 分钟。

获取数据:

  <%
    String mContractCode = RequestHelper.GetQueryString("ContractCode");                 
    List<DbParam> mDicSysParam = new List<DbParam>();
    List<DbParam> mDicInputParam = new List<DbParam>();
//从之前页面获取
    mDicInputParam.Add(new DbParam("ContractCode", mContractCode));
    //执行列表页的查询,同样设置功能点,查询所需的
    DataTable mDefaultDataTable = AgileCorpDataService.GetDataFunctionDataTable("contract100122", mDicInputParam, out mDicSysParam);
//获取值
    String mContractCodeview = mDefaultDataTable.Rows[0]["ContractCode"].ToString();
    String mContactName = mDefaultDataTable.Rows[0]["ContactName"].ToString();
    String mContactUser = mDefaultDataTable.Rows[0]["ContactUser"].ToString();
    String mMobile = mDefaultDataTable.Rows[0]["Mobile"].ToString();
    String mAddress = mDefaultDataTable.Rows[0]["Address"].ToString();
    String mSignDate = mDefaultDataTable.Rows[0]["SignDate"].ToString();
    String mTotalAmount = mDefaultDataTable.Rows[0]["TotalAmount"].ToString();
   
                        %>

页面定义:
   <table>
            <tr>
                <td>
                    合同编号
                </td>
                <td>
               
                    <input id="contractcode" type="text" value="<%=mContractCodeview %>" style="border-left: none; border-right: none;
                        border-top: none; border-color: black; line-height: 20px; height: 20px; width: 100px;
                        text-align: left" />
                </td>
            </tr>
            <tr>
                <td>
                    甲方(出租方):
                </td>
                <td>
                    <input id="name1" type="text" value="<%=mContactName %>" style="border-left: none; border-right: none;
                        border-top: none; border-color: black; line-height: 20px; height: 20px; width: 400px;
                        text-align: left" />
                </td>
                <td>
                    邮编:
                </td>
                <td>
                    <input id="postalcode1 " type="text" value="" style="border-left: none; border-right: none;
                        border-top: none; border-color: black; line-height: 20px; height: 20px; width: 100px;
                        text-align: left" />
                </td>
            </tr>
            <tr>
                <td>
                    住址:
                </td>
                <td>
                    <input id="address1" type="text" value="<%=mAddress %>" style="border-left: none; border-right: none;
                        border-top: none; border-color: black; line-height: 20px; height: 20px; width: 400px;
                        text-align: left" />
                </td>
            </tr>
            <tr>
                <td>
                    委托代理人:
                </td>
                <td>
                    <input id="contactname" type="text" value="<%=mContactUser %>" style="border-left: none; border-right: none;
                        border-top: none; border-color: black; line-height: 20px; height: 20px; width: 100px;
                        text-align: left" />
                </td>
                <td>
                    联系电话:
                </td>
                <td>
                    <input id="tel1" type="text" value="<%=mMobile %>" style="border-left: none; border-right: none;
                        border-top: none; border-color: black; line-height: 20px; height: 20px; width: 100px;
                        text-align: left" />
                </td>
            </tr>
        </table>

功能点:

create proc Asset_spQueryContractModelList
(
@pi_ContractCode varchar(100)
)
as
begin
SELECT     dbo.Asset_Contract.ContractCode, dbo.Asset_ContactInfo.Address, dbo.Asset_Contract.SignDate, dbo.Asset_Contract.RendStartDate,
                      dbo.Asset_Contract.RendEndDate, dbo.Asset_Contract.TotalAmount, dbo.Asset_Contract.BusinessScope, dbo.Asset_ShopInfo.HouseUse, dbo.Asset_ShopInfo.Square,
                      dbo.Asset_ContactInfo.ContactName, dbo.Asset_ContactInfo.ContactUser, dbo.Asset_ContactInfo.Mobile
FROM         dbo.Asset_ContractShopInfo INNER JOIN
                      dbo.Asset_ShopInfo ON dbo.Asset_ContractShopInfo.ShopCode = dbo.Asset_ShopInfo.ShopCode INNER JOIN
                      dbo.Asset_Contract INNER JOIN
                      dbo.Asset_ContactInfo ON dbo.Asset_Contract.ContactCode = dbo.Asset_ContactInfo.ContactCode ON
                      dbo.Asset_ContractShopInfo.ContractCode = dbo.Asset_Contract.ContractCode
where
end

转载于:https://www.cnblogs.com/howie/archive/2012/07/30/2615697.html

你可能感兴趣的文章
基于私服nexus和jenkins搭建快嘉开发框架1.1环境
查看>>
Android WebView onReceivedTitle 方法不被调用的问题
查看>>
Multipart/form-data POST文件上传详解
查看>>
ActivityManager: Warning: Activity not started,...
查看>>
MongoDB进阶系列(12)——MongoDB 固定集合
查看>>
jdk动态代理异常处理分析,UndeclaredThrowableException
查看>>
极客学院文本爬虫实战
查看>>
Maven单元测试
查看>>
阿里巴巴日志规约
查看>>
Java 视频生成缩略图教程
查看>>
myEclipse-svn的安装使用
查看>>
java验证码(采用struts2实现)
查看>>
Win7 开启远程桌面
查看>>
response.setHeader()的用法 (转别人转的)
查看>>
JavaWEB前端向服务器端发送对象
查看>>
Cocos2d-x schedulers 定时器
查看>>
SNMP4J简介
查看>>
通过Keepalived实现Redis Failover自动故障切换功能
查看>>
SSM开发环境的搭建(方式二)
查看>>
JavaScript面向对象编程之双向链表结构实现立体轮播图效果
查看>>