码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-11-22 23:18:28      阅读:282      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!