首页 > 其他 > 详细

单据明细增加明细影像支持

时间:2014-11-22 23:16:40      阅读:372      评论:0      收藏:0      [点我收藏+]
  1. 数据库明细表增加字段 BILLC_IMAGES

    xml  <BILLC_IMAGES desc="" name="明细影像" />

    xsl 

                         <!--明细图片-->
                           <td align="center">
                            <span>
                              <xsl:attribute name="id">
                                <xsl:value-of select="concat(‘BILLC_IMAGES_ctl‘,@num)" />
                              </xsl:attribute>
                              <input type="hidden" onpropertychange="ChangeValue(this,‘SaveTable/TBILL_CONTENT[@num=‘+this.num+‘]/BILLC_IMAGES‘,this.value);">
                                <xsl:attribute name="id">
                                  <xsl:value-of select="concat(‘search_BILLC_IMAGES_ctl‘,@num,‘_input‘)" />
                                </xsl:attribute>
                                <xsl:attribute name="value">
                                  <xsl:value-of select="BILLC_IMAGES" />
                                </xsl:attribute>
                                <xsl:attribute name="num">
                                  <xsl:value-of select="@num" />
                                </xsl:attribute>
                              </input>
                              <input type="text" class="input" style="width:70%" readonly="true" onpropertychange="ChangeDescValue(this,‘SaveTable/TBILL_CONTENT[@num=‘+this.num+‘]/BILLC_IMAGES‘,this.value);">
                                <xsl:attribute name="id">
                                  <xsl:value-of select="concat(‘search_BILLC_IMAGES_ctl‘,@num,‘_showinput‘)" />
                                </xsl:attribute>
                                <xsl:attribute name="value">
                                  <xsl:value-of select="BILLC_IMAGES/@desc" />
                                </xsl:attribute>
                                <xsl:attribute name="num">
					             <xsl:value-of select="@num" />
					           </xsl:attribute> 
                              </input>
                                    <button class="image_small" onclick="fn_call(‘image‘,‘明细影像‘,‘BILLC_IMAGES‘,this.num)">
	                                 <xsl:attribute name="num">
	                                  <xsl:value-of select="@num" />
	                                  </xsl:attribute>                                                    
                             </button>
                            </span>
                          </td>

CSS增加:

.image_small {
	background-image: url(images/image.gif);
	background-repeat: no-repeat;
	border-color: #ffffff;
	border-style: solid;
	border-width: 0px;
	height: 17px;
	padding-left: 22px;
	padding-top: 3px;
	width: 17px;
}

bubuko.com,布布扣

单据明细增加明细影像支持

原文:http://iderun.blog.51cto.com/6445088/1581525

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!