2025-03-27 15:05:14 +08:00

165 lines
5.1 KiB
Plaintext

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PrintContractBill.ascx.cs"
Inherits="SuperMap.RealEstate.Contract.Compents.ContractExit.PrintContractBill" %>
<%@ Register Assembly="RealEstate.Web" Namespace="SuperMap.RealEstate.Web.UI.WebControls" TagPrefix="smwc" %>
<style>
.veg-teacher {
display: block;
overflow: hidden;
}
.veg-teacher li {
float: left;
margin-right: 15px;
cursor: pointer;
text-align: center;
}
.veg-teacher li .show-img-file {
width: 100px;
height: 100px;
font-size: 0;
}
.veg-teacher li .delete-btn {
display: inline-block;
font-size: 16px;
text-align: center;
}
/*.veg-teacher li img {
width: 100%;
height: 100%;
}*/
.veg-popup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 100;
display: none;
}
.veg-popup .veg-shade {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #000000;
opacity: 0.8;
}
.veg-popup .veg-img {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
width: 75%;
height: 90%;
text-align: center;
}
/*.veg-popup .veg-img img {
max-width: 100%;
max-height: 100%;
}*/
</style>
<script type="text/javascript">
$(document).ready(function () {
//QueryDate();
});
function QueryDate() {
RealEstate.Page.ShowMask('正在加载...');
$.ajax({
type: "POST",
url: "/Finance/Handler/handler_ajax.ashx?action_type=GetImageList&action_data=" + $("#M_user1_FINANCEPROINST_ID").val(),
data: { action_data: $("#M_user1_FINANCEPROINST_ID").val() },
dataType: "html",
success: function (data) {
try {
if (data != "") {
$("#M_user1_ratTable").html("");
$("#M_user1_ratTable").html(data);
}
RealEstate.Page.HideMask('正在加载...');
} catch (e) {
RealEstate.Page.HideMask('正在加载...');
}
}
});
}
</script>
<ul class="ListItem Col1">
<li style="text-align: right">
<div>
<asp:Button ID="Button_Reflash" Text=" 刷 新 " runat="server" OnClick="Button_Reflash_Click" />
<smwc:CallBackButton ID="CallBackButton_Print" Text=" 打 印 " runat="server"
OnCallBackClick="CallBackButton_Print_CallBackClick" Width="70px" />
<%-- <asp:Button ID="Button_Image" runat="server" Text="查看发票" />--%>
<asp:HiddenField ID="CONTRACTPROINST_ID" runat="server" Value="" />
</div>
</li>
</ul>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; text-align: center !important;">
<tr>
<td align="center">
<div id="ApproveBillManagement_Report" runat="server">
<asp:Xml ID="Xml1" runat="server"></asp:Xml>
</div>
</td>
</tr>
</table>
<fieldset class="cssGroupBar" id="fidATACH" runat="server">
<legend><b>附件信息</b></legend>
<ul class="veg-teacher">
<asp:Repeater ID="repATACH" runat="server" OnItemDataBound="repATACH_ItemDataBound">
<ItemTemplate>
<li>
<asp:LinkButton ID="LinkButton" runat="server" OnClick="LinkButton_Click" CssClass="ButtonNew margin100">
<span>测试文本</span></asp:LinkButton>
</li>
</ItemTemplate>
</asp:Repeater>
</ul>
</fieldset>
<div class="veg-popup" id="vegPopup">
<div class="veg-shade"></div>
<div class="veg-img">
<img title="单击右键可下载图片,单击图片可旋转,双击图片关闭" id="vegBigImg" onload="AutoResizeImage(1200,1200,this)" height="95%" width="95%" />
</div>
</div>
<script type="text/javascript">
function AutoResizeImage(maxWidth, maxHeight, objImg) {
var img = new Image();
img.src = objImg.src;
var hRatio;
var wRatio;
var Ratio = 1;
var w = img.width;
var h = img.height;
wRatio = maxWidth / w;
hRatio = maxHeight / h;
if (maxWidth == 0 && maxHeight == 0) {
Ratio = 1;
} else if (maxWidth == 0) {//
if (hRatio < 1) Ratio = hRatio;
} else if (maxHeight == 0) {
if (wRatio < 1) Ratio = wRatio;
} else if (wRatio < 1 || hRatio < 1) {
Ratio = (wRatio <= hRatio ? wRatio : hRatio);
}
if (Ratio < 1) {
w = w * Ratio;
h = h * Ratio;
}
objImg.height = h;
objImg.width = w;
}
</script>